fix(dialog-box): [dialog-box] modify smb theme of demo (#2069)

* fix(dialog-box): [dialog-box] modify smb theme of demo

* fix: modify e2e test

* fix(dialog-box): [dialog-box] modify smb theme of demo

* fix(dialog-box): [dialog-box] modify smb theme of demo
This commit is contained in:
James 2024-09-06 00:53:34 -07:00 committed by GitHub
parent e0ba1da568
commit d3be75b85f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 3 deletions

View File

@ -16,7 +16,8 @@
</tiny-form-item>
</tiny-form>
<template #footer>
<tiny-button type="primary" @click="boxVisibility = false"> </tiny-button>
<tiny-button @click="boxVisibility = false">取消</tiny-button>
<tiny-button type="primary" @click="boxVisibility = false">确定</tiny-button>
</template>
</tiny-dialog-box>
</div>

View File

@ -7,7 +7,7 @@ test('弹出与关闭事件', async ({ page }) => {
await page.getByRole('button', { name: '弹出与关闭事件' }).click()
await expect(page.getByText('窗口弹出')).toBeVisible()
await expect(page.getByText('窗口弹出动画完成')).toBeVisible()
await dialogBox.getByRole('button', { name: '确 定' }).click()
await dialogBox.getByRole('button', { name: '确定' }).click()
await expect(page.getByText('窗口关闭')).toBeVisible()
await expect(page.getByText('窗口关闭动画完成')).toBeVisible()
})

View File

@ -16,7 +16,8 @@
</tiny-form-item>
</tiny-form>
<template #footer>
<tiny-button type="primary" @click="boxVisibility = false"> </tiny-button>
<tiny-button @click="boxVisibility = false">取消</tiny-button>
<tiny-button type="primary" @click="boxVisibility = false">确定</tiny-button>
</template>
</tiny-dialog-box>
</div>