Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0be0da3

Browse files
authored
docs(grid): [grid]correct wrong words (#3111)
* docs(grid): [grid]correct wrong words * fix: fix error e2e test
1 parent 639b45b commit 0be0da3

File tree

3 files changed

+4
-22
lines changed

3 files changed

+4
-22
lines changed

examples/sites/demos/pc/app/grid/edit/status-of-editing-composition-api.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div>
33
<h4 class="title">开启编辑状态:</h4>
44
<div class="btn-box">
5-
<tiny-butotn @click="addRow">新增行</tiny-butotn>
5+
<tiny-button @click="addRow">新增行</tiny-button>
66
</div>
77
<tiny-grid
88
:data="tableData"
@@ -48,7 +48,7 @@
4848

4949
<script setup>
5050
import { ref } from 'vue'
51-
import { TinyGrid, TinyGridColumn, TinyButton as TinyButotn } from '@opentiny/vue'
51+
import { TinyGrid, TinyGridColumn, TinyButton } from '@opentiny/vue'
5252
5353
const insertGrid = ref('insertGrid')
5454

examples/sites/demos/pc/app/grid/edit/status-of-editing.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div>
33
<h4 class="title">开启编辑状态:</h4>
44
<div class="btn-box">
5-
<tiny-butotn @click="addRow">新增行</tiny-butotn>
5+
<tiny-button @click="addRow">新增行</tiny-button>
66
</div>
77
<tiny-grid
88
:data="tableData"
@@ -51,7 +51,7 @@ import { TinyGrid, TinyGridColumn, TinyButton } from '@opentiny/vue'
5151
5252
export default {
5353
components: {
54-
TinyButotn: TinyButton,
54+
TinyButton,
5555
TinyGrid,
5656
TinyGridColumn
5757
},

examples/sites/demos/pc/app/grid/slot/editor-slot.spec.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,4 @@ test('编辑器插槽', async ({ page }) => {
1616
.first()
1717
.click()
1818
await expect(page.getByRole('cell', { name: 'WWWWsdfd 科技 YX 公司' })).toBeVisible()
19-
20-
await page.getByText('17:00:00').first().click()
21-
await page.waitForTimeout(1000)
22-
await page.locator('.tiny-date-editor .tiny-input__icon-container svg').nth(1).click()
23-
await page
24-
.locator('.tiny-time-spinner__list')
25-
.first()
26-
.locator('.tiny-time-spinner__item')
27-
.filter({ hasText: /^19$/ })
28-
.first()
29-
.click()
30-
await page
31-
.locator('div')
32-
.filter({ hasText: /^$/ })
33-
.first()
34-
.click()
35-
await expect(page.getByRole('cell', { name: '19:00:00' })).toBeVisible()
36-
await expect(page.locator('.tiny-modal').filter({ hasText: // })).toBeVisible()
3719
})

0 commit comments

Comments
 (0)