Skip to content

Commit

Permalink
fix(vue-renderless): [radio,rate,rich-text-editor,roles,scroll-text,s…
Browse files Browse the repository at this point in the history
…earch,select,skeleton,slider,split,statistic,steps,sticky,switch,tabs,tag,tag-group,text-popup,time-line,time-line-new,time-picker,time-select,toggle-menu,tooltip,transfer,tree,tree-menu,tree-select] fix site: Optimize site documentation typesetting
  • Loading branch information
dufu1991 committed Jan 3, 2025
1 parent 1c6da5a commit f902ae3
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ import { TinyRate, TinyModal } from '@opentiny/vue'
const rate1 = ref(2)
function onchange(v) {
TinyModal.message({ message: `选中的值是${v}`, status: 'info' })
TinyModal.message({ message: `选中的值是 ${v}`, status: 'info' })
}
</script>
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/rate/rate-events.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
},
methods: {
onchange(v) {
TinyModal.message({ message: `选中的值是${v}`, status: 'info' })
TinyModal.message({ message: `选中的值是 ${v}`, status: 'info' })
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,6 @@ function changeRole(roleIdNumber) {
/* 选中值发生变化时触发 */
roleId.value = roleIdNumber
TinyModal.message(`当前选中的角色 id 是${roleIdNumber}`)
TinyModal.message(`当前选中的角色 id 是 ${roleIdNumber}`)
}
</script>
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/roles/fetch-role.vue
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export default {
/* 选中值发生变化时触发 */
this.roleId = roleId
TinyModal.message(`当前选中的角色 id 是${roleId}`)
TinyModal.message(`当前选中的角色 id 是 ${roleId}`)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ import { TinySelect } from '@opentiny/vue'
const allData = Array.from({ length: 1000 }, (a, i) => {
return {
value: '00' + i,
province: '省份' + i,
city: '城市' + i,
area: '区域' + i,
label: `${i}-市${i}`
province: '省份 ' + i,
city: '城市 ' + i,
area: '区域 ' + i,
label: ` ${i}-市 ${i}`
}
})
const baseGridOp = {
Expand Down
6 changes: 3 additions & 3 deletions examples/sites/demos/pc/app/select/nest-grid-remote.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ test.describe('下拉表格远程搜索', () => {
await expect(tags.first()).toContainText(/0/)
await page.getByRole('row', { name: '省份 1 城市 1 区域 1' }).getByRole('cell').first().click()
expect((await tags.all()).length).toEqual(2)
await expect(tags.first()).toContainText(/0/)
await expect(tags.nth(1)).toContainText(/1/)
await expect(tags.first()).toContainText(/ 0/)
await expect(tags.nth(1)).toContainText(/ 1/)
})

test('多选,下拉表格远程搜索 + 自动搜索 + 显示按钮', async ({ page }) => {
Expand All @@ -122,7 +122,7 @@ test.describe('下拉表格远程搜索', () => {

await dropdown.getByRole('row', { name: '省份 1 城市 1 区域 1' }).getByRole('cell').first().click()
expect((await tag.all()).length).toEqual(2)
await expect(tag.first()).toContainText(/0/)
await expect(tag.first()).toContainText(/ 0/)
await expect(tag.nth(1)).toContainText(/1/)
await tag.nth(0).locator('.tiny-svg').click()
await tag.nth(0).locator('.tiny-svg').click()
Expand Down
8 changes: 4 additions & 4 deletions examples/sites/demos/pc/app/select/nest-grid-remote.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@ export default {
this.allData = Array.from({ length: 1000 }, (a, i) => {
return {
value: '00' + i,
province: '省份' + i,
city: '城市' + i,
area: '区域' + i,
label: `${i}-市${i}`
province: '省份 ' + i,
city: '城市 ' + i,
area: '区域 ' + i,
label: ` ${i}-市 ${i}`
}
})
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ onMounted(() => {
for (let i = 0; i <= 800; i++) {
const obj = {
id: i,
area: '华南区' + i,
area: '华南区 ' + i,
province: '广东省',
city: '广州市'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
for (let i = 0; i <= 800; i++) {
const obj = {
id: i,
area: '华南区' + i,
area: '华南区 ' + i,
province: '广东省',
city: '广州市'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { ref } from 'vue'
import { TinySelect, TinyModal } from '@opentiny/vue'
const buildOptions = () =>
Array.from({ length: 100000 }).map((item, i) => JSON.parse(`{"value":"选项${i}","label":"北京${i}"}`))
Array.from({ length: 100000 }).map((item, i) => JSON.parse(`{"value":"选项 ${i}","label":"北京 ${i}"}`))
const value1 = ref('')
const value2 = ref([])
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/select/optimization.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import { TinySelect, TinyModal } from '@opentiny/vue'
const buildOptions = () =>
Array.from({ length: 100000 }).map((item, i) => JSON.parse(`{"value":"选项${i}","label":"北京${i}"}`))
Array.from({ length: 100000 }).map((item, i) => JSON.parse(`{"value":"选项 ${i}","label":"北京 ${i}"}`))
export default {
components: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ const getGridData = () => {
for (let i = 1; i <= 20; i++) {
data.push({
id: i.toString(),
name: 'GFD 科技 YX 公司' + i,
area: '华东区' + i,
name: 'GFD 科技 YX 公司 ' + i,
area: '华东区 ' + i,
disabled: i % 4 === 0
})
}
Expand Down
4 changes: 2 additions & 2 deletions examples/sites/demos/pc/app/transfer/nested-table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ export default {
for (let i = 1; i <= 20; i++) {
data.push({
id: i.toString(),
name: 'GFD 科技 YX 公司' + i,
area: '华东区' + i,
name: 'GFD 科技 YX 公司 ' + i,
area: '华东区 ' + i,
disabled: i % 4 === 0
})
}
Expand Down

0 comments on commit f902ae3

Please sign in to comment.