diff --git a/examples/sites/demos/pc/app/anchor/change.spec.ts b/examples/sites/demos/pc/app/anchor/change.spec.ts index 2854c008b4..92093343b9 100644 --- a/examples/sites/demos/pc/app/anchor/change.spec.ts +++ b/examples/sites/demos/pc/app/anchor/change.spec.ts @@ -1,6 +1,6 @@ import { test, expect } from '@playwright/test' -test('change事件', async ({ page }) => { +test('change 事件', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('anchor#change') diff --git a/examples/sites/demos/pc/app/anchor/webdoc/anchor.js b/examples/sites/demos/pc/app/anchor/webdoc/anchor.js index 8bc400115c..e3e9174490 100644 --- a/examples/sites/demos/pc/app/anchor/webdoc/anchor.js +++ b/examples/sites/demos/pc/app/anchor/webdoc/anchor.js @@ -43,7 +43,7 @@ export default { { demoId: 'change', name: { - 'zh-CN': 'change事件', + 'zh-CN': 'change 事件', 'en-US': 'change event' }, desc: { diff --git a/examples/sites/demos/pc/app/area/area-events-composition-api.vue b/examples/sites/demos/pc/app/area/area-events-composition-api.vue index dc86c67379..4d6907ce42 100644 --- a/examples/sites/demos/pc/app/area/area-events-composition-api.vue +++ b/examples/sites/demos/pc/app/area/area-events-composition-api.vue @@ -16,21 +16,21 @@ const value = ref(['3623', '4199', '649991', '661414']) function changeRegion(value) { TinyNotify({ - message: '当前选择的 Region 为:' + value, + message: '当前选择的 Region 为:' + value, position: 'top-right' }) } function changeRep(value) { TinyNotify({ - message: '当前选择的 Rep 为:' + value, + message: '当前选择的 Rep 为:' + value, position: 'top-right' }) } function changeOffice(value) { TinyNotify({ - message: '当前选择的 Office 为:' + value, + message: '当前选择的 Office 为:' + value, position: 'top-right' }) } diff --git a/examples/sites/demos/pc/app/area/area-events.vue b/examples/sites/demos/pc/app/area/area-events.vue index b2e37f5be0..0875afa90c 100644 --- a/examples/sites/demos/pc/app/area/area-events.vue +++ b/examples/sites/demos/pc/app/area/area-events.vue @@ -23,19 +23,19 @@ export default { methods: { changeRegion(value) { TinyNotify({ - message: '当前选择的 Region 为:' + value, + message: '当前选择的 Region 为:' + value, position: 'top-right' }) }, changeRep(value) { TinyNotify({ - message: '当前选择的 Rep 为:' + value, + message: '当前选择的 Rep 为:' + value, position: 'top-right' }) }, changeOffice(value) { TinyNotify({ - message: '当前选择的 Office 为:' + value, + message: '当前选择的 Office 为:' + value, position: 'top-right' }) } diff --git a/examples/sites/demos/pc/app/area/custom-service-composition-api.vue b/examples/sites/demos/pc/app/area/custom-service-composition-api.vue index 742bd3ac7d..317e4794ed 100644 --- a/examples/sites/demos/pc/app/area/custom-service-composition-api.vue +++ b/examples/sites/demos/pc/app/area/custom-service-composition-api.vue @@ -23,7 +23,7 @@ function getJCR() { id: '3623', id_and_type: '3623JCR', parent_and_type: null, - name: 'A公司销售服务部', + name: 'A 公司销售服务部', date_from: '2005/06/21 00:00:00', name_en: 'Consumer BG Marketing and Sales Service Dept', parent_type: null, @@ -36,7 +36,7 @@ function getJCR() { id: '650561', id_and_type: '650561JCR', parent_and_type: null, - name: 'A公司销售服务部(东莞)', + name: 'A 公司销售服务部(东莞)', date_from: '2012/09/27 00:00:00', name_en: 'Consumer BG Marketing and Sales Service Dept (Dongguan)', parent_type: null, diff --git a/examples/sites/demos/pc/app/area/custom-service.spec.ts b/examples/sites/demos/pc/app/area/custom-service.spec.ts index 165353a0b6..5858e6e56a 100644 --- a/examples/sites/demos/pc/app/area/custom-service.spec.ts +++ b/examples/sites/demos/pc/app/area/custom-service.spec.ts @@ -34,7 +34,7 @@ test('测试自定义服务', async ({ page }) => { await getSelectItem(areaRep).first().click() await areaInput.nth(3).click() await getSelectItem(areaOffice).first().click() - await expect(areaInput.first()).toHaveValue('A公司销售服务部') + await expect(areaInput.first()).toHaveValue('A 公司销售服务部') await expect(areaInput.nth(1)).toHaveValue('火星终端子公司') await expect(areaInput.nth(2)).toHaveValue('北京代表处') await expect(areaInput.nth(3)).toHaveValue('牙买加办事处') diff --git a/examples/sites/demos/pc/app/area/custom-service.vue b/examples/sites/demos/pc/app/area/custom-service.vue index 396ffa0a29..80e108ee92 100644 --- a/examples/sites/demos/pc/app/area/custom-service.vue +++ b/examples/sites/demos/pc/app/area/custom-service.vue @@ -30,7 +30,7 @@ export default { id: '3623', id_and_type: '3623JCR', parent_and_type: null, - name: 'A公司销售服务部', + name: 'A 公司销售服务部', date_from: '2005/06/21 00:00:00', name_en: 'Consumer BG Marketing and Sales Service Dept', parent_type: null, @@ -43,7 +43,7 @@ export default { id: '650561', id_and_type: '650561JCR', parent_and_type: null, - name: 'A公司销售服务部(东莞)', + name: 'A 公司销售服务部(东莞)', date_from: '2012/09/27 00:00:00', name_en: 'Consumer BG Marketing and Sales Service Dept (Dongguan)', parent_type: null, diff --git a/examples/sites/demos/pc/app/area/webdoc/area.js b/examples/sites/demos/pc/app/area/webdoc/area.js index 64749c63f7..292a6b4cd1 100644 --- a/examples/sites/demos/pc/app/area/webdoc/area.js +++ b/examples/sites/demos/pc/app/area/webdoc/area.js @@ -47,7 +47,7 @@ export default { 'en-US': 'Set Disabled' }, desc: { - 'zh-CN': '

通过 disabled 设置组件禁用默认值为 false 。

\n', + 'zh-CN': '

通过 disabled 设置组件禁用默认值为 false。

\n', 'en-US': '

Use disabled to disable the component. The default value is false.

\n' }, codeFiles: ['disabled.vue'] diff --git a/examples/sites/demos/pc/app/autocomplete/basic-usage-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/basic-usage-composition-api.vue index 722fb9b255..b4ce681442 100644 --- a/examples/sites/demos/pc/app/autocomplete/basic-usage-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/basic-usage-composition-api.vue @@ -28,27 +28,27 @@ function createFilter(queryString) { function loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/basic-usage.spec.ts b/examples/sites/demos/pc/app/autocomplete/basic-usage.spec.ts index 2d8d2cdde3..07f4a1f6d6 100644 --- a/examples/sites/demos/pc/app/autocomplete/basic-usage.spec.ts +++ b/examples/sites/demos/pc/app/autocomplete/basic-usage.spec.ts @@ -7,7 +7,7 @@ test('basic-usage', async ({ page }) => { await expect(autocomplete).toBeVisible() await page.getByRole('textbox', { name: '请输入内容', exact: true }).click() - await page.getByRole('option', { name: 'GFD科技YX公司' }).click() + await page.getByRole('option', { name: 'GFD 科技 YX 公司' }).click() - await expect(page.getByRole('textbox', { name: '请输入内容', exact: true })).toHaveValue('GFD科技YX公司') + await expect(page.getByRole('textbox', { name: '请输入内容', exact: true })).toHaveValue('GFD 科技 YX 公司') }) diff --git a/examples/sites/demos/pc/app/autocomplete/basic-usage.vue b/examples/sites/demos/pc/app/autocomplete/basic-usage.vue index bb9fc278df..e750ebf007 100644 --- a/examples/sites/demos/pc/app/autocomplete/basic-usage.vue +++ b/examples/sites/demos/pc/app/autocomplete/basic-usage.vue @@ -30,27 +30,27 @@ export default { loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/clearable-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/clearable-composition-api.vue index 39ed0a9133..b72432be66 100644 --- a/examples/sites/demos/pc/app/autocomplete/clearable-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/clearable-composition-api.vue @@ -35,27 +35,27 @@ function createFilter(queryString) { function loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/clearable.spec.ts b/examples/sites/demos/pc/app/autocomplete/clearable.spec.ts index e70bf59da2..d89e1d6f34 100644 --- a/examples/sites/demos/pc/app/autocomplete/clearable.spec.ts +++ b/examples/sites/demos/pc/app/autocomplete/clearable.spec.ts @@ -6,7 +6,7 @@ test('可清除', async ({ page }) => { const demo = page.locator('#clearable') await demo.getByRole('textbox', { name: '请输入内容', exact: true }).click() - await page.getByRole('option', { name: 'WWWW科技YX公司' }).click() + await page.getByRole('option', { name: 'WWWW 科技 YX 公司' }).click() await demo.getByRole('textbox', { name: '请输入内容', exact: true }).hover() await demo.getByRole('combobox').locator('.tiny-input__clear').click() diff --git a/examples/sites/demos/pc/app/autocomplete/clearable.vue b/examples/sites/demos/pc/app/autocomplete/clearable.vue index 78b1f5567a..a9c6dc5fc4 100644 --- a/examples/sites/demos/pc/app/autocomplete/clearable.vue +++ b/examples/sites/demos/pc/app/autocomplete/clearable.vue @@ -37,27 +37,27 @@ export default { loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/custom-icon-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/custom-icon-composition-api.vue index 4404102c2f..53346c1f0e 100644 --- a/examples/sites/demos/pc/app/autocomplete/custom-icon-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/custom-icon-composition-api.vue @@ -38,27 +38,27 @@ function createFilter(queryString) { function loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/custom-icon.vue b/examples/sites/demos/pc/app/autocomplete/custom-icon.vue index 6a5366ed05..7340dcbf74 100644 --- a/examples/sites/demos/pc/app/autocomplete/custom-icon.vue +++ b/examples/sites/demos/pc/app/autocomplete/custom-icon.vue @@ -40,27 +40,27 @@ export default { loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/debounce-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/debounce-composition-api.vue index f185a40251..17973463ca 100644 --- a/examples/sites/demos/pc/app/autocomplete/debounce-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/debounce-composition-api.vue @@ -34,27 +34,27 @@ function createFilter(queryString) { function loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/debounce.spec.ts b/examples/sites/demos/pc/app/autocomplete/debounce.spec.ts index 1f0b10a943..4586725dab 100644 --- a/examples/sites/demos/pc/app/autocomplete/debounce.spec.ts +++ b/examples/sites/demos/pc/app/autocomplete/debounce.spec.ts @@ -5,9 +5,9 @@ test('debounce', async ({ page }) => { await page.goto('autocomplete#debounce') await page.getByRole('textbox', { name: '请输入内容', exact: true }).click() - await expect(page.getByRole('option', { name: 'WWWW科技YX公司' })).not.toBeVisible() + await expect(page.getByRole('option', { name: 'WWWW 科技 YX 公司' })).not.toBeVisible() await page.waitForTimeout(1000) - await expect(page.getByRole('option', { name: 'WWWW科技YX公司' })).toBeVisible() + await expect(page.getByRole('option', { name: 'WWWW 科技 YX 公司' })).toBeVisible() await expect( page.locator('.demo-autocomplete > .tiny-autocomplete > .tiny-input > .tiny-input-display-only > input') ).toHaveAttribute('debounce', '1000') diff --git a/examples/sites/demos/pc/app/autocomplete/debounce.vue b/examples/sites/demos/pc/app/autocomplete/debounce.vue index f74baf49a6..84cc5d75ad 100644 --- a/examples/sites/demos/pc/app/autocomplete/debounce.vue +++ b/examples/sites/demos/pc/app/autocomplete/debounce.vue @@ -36,27 +36,27 @@ export default { loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/display-only-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/display-only-composition-api.vue index 65beb9e1d7..e5f2cc6d0a 100644 --- a/examples/sites/demos/pc/app/autocomplete/display-only-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/display-only-composition-api.vue @@ -28,23 +28,23 @@ const createFilter = (queryString) => { const loadAll = () => { return [ { - value: 'GFD科技有限公司', + value: 'GFD 科技有限公司', address: '福州' }, { - value: 'WWWW科技有限公司', + value: 'WWWW 科技有限公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGB有限公司', + value: 'TGB 有限公司', address: '梅州' }, { - value: 'YHN科技有限公司', + value: 'YHN 科技有限公司', address: '韶关' }, { diff --git a/examples/sites/demos/pc/app/autocomplete/display-only.vue b/examples/sites/demos/pc/app/autocomplete/display-only.vue index 12a89f9921..b56698e004 100644 --- a/examples/sites/demos/pc/app/autocomplete/display-only.vue +++ b/examples/sites/demos/pc/app/autocomplete/display-only.vue @@ -35,23 +35,23 @@ export default { loadAll() { return [ { - value: 'GFD科技有限公司', + value: 'GFD 科技有限公司', address: '福州' }, { - value: 'WWWW科技有限公司', + value: 'WWWW 科技有限公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGB有限公司', + value: 'TGB 有限公司', address: '梅州' }, { - value: 'YHN科技有限公司', + value: 'YHN 科技有限公司', address: '韶关' }, { diff --git a/examples/sites/demos/pc/app/autocomplete/hide-loading-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/hide-loading-composition-api.vue index 5fef96e2b6..3a5a6bc562 100644 --- a/examples/sites/demos/pc/app/autocomplete/hide-loading-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/hide-loading-composition-api.vue @@ -30,7 +30,7 @@ onMounted(() => { async function querySearch(queryString, cb) { let res = queryString ? list.value.filter(createFilter(queryString)) : list.value - // 为了演示加载图标的效果,增加1s的延时 + // 为了演示加载图标的效果,增加 1s 的延时 await new Promise((resolve) => setTimeout(resolve, 1000)) // 返回建议列表的数据 cb(res) @@ -43,23 +43,23 @@ function createFilter(queryString) { function loadAll() { return [ { - value: 'GFD科技公司', + value: 'GFD 科技公司', address: '福州' }, { - value: 'WWWW科技公司', + value: 'WWWW 科技公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGB公司', + value: 'TGB 公司', address: '梅州' }, { - value: 'YHN科技公司', + value: 'YHN 科技公司', address: '韶关' }, { diff --git a/examples/sites/demos/pc/app/autocomplete/hide-loading.vue b/examples/sites/demos/pc/app/autocomplete/hide-loading.vue index 143a0455dc..07921eaa27 100644 --- a/examples/sites/demos/pc/app/autocomplete/hide-loading.vue +++ b/examples/sites/demos/pc/app/autocomplete/hide-loading.vue @@ -34,7 +34,7 @@ export default { let list = this.list let res = queryString ? list.filter(this.createFilter(queryString)) : list - // 为了演示加载图标的效果,增加1s的延时 + // 为了演示加载图标的效果,增加 1s 的延时 await new Promise((resolve) => setTimeout(resolve, 1000)) // 返回建议列表的数据 cb(res) @@ -45,23 +45,23 @@ export default { loadAll() { return [ { - value: 'GFD科技公司', + value: 'GFD 科技公司', address: '福州' }, { - value: 'WWWW科技公司', + value: 'WWWW 科技公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGB公司', + value: 'TGB 公司', address: '梅州' }, { - value: 'YHN科技公司', + value: 'YHN 科技公司', address: '韶关' }, { diff --git a/examples/sites/demos/pc/app/autocomplete/highlight-first-item-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/highlight-first-item-composition-api.vue index 111ffa86e4..127f210881 100644 --- a/examples/sites/demos/pc/app/autocomplete/highlight-first-item-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/highlight-first-item-composition-api.vue @@ -34,31 +34,31 @@ function createFilter(queryString) { function loadAll() { return [ { - value: 'GGG科技YX公司', + value: 'GGG 科技 YX 公司', address: '深圳' }, { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/highlight-first-item.spec.ts b/examples/sites/demos/pc/app/autocomplete/highlight-first-item.spec.ts index fe69f4b099..2549c9b2fc 100644 --- a/examples/sites/demos/pc/app/autocomplete/highlight-first-item.spec.ts +++ b/examples/sites/demos/pc/app/autocomplete/highlight-first-item.spec.ts @@ -4,6 +4,6 @@ test('highlight-first-item', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('autocomplete#highlight-first-item') await page.getByRole('textbox', { name: '请输入内容', exact: true }).click() - await page.getByRole('option', { name: 'TGBYX公司' }).click() + await page.getByRole('option', { name: 'TGBYX 公司' }).click() await expect(page.getByRole('textbox', { name: '请输入内容', exact: true })).toHaveAttribute('highlightfirstitem', 'true') }) diff --git a/examples/sites/demos/pc/app/autocomplete/highlight-first-item.vue b/examples/sites/demos/pc/app/autocomplete/highlight-first-item.vue index 17a09db6e2..52a3650e96 100644 --- a/examples/sites/demos/pc/app/autocomplete/highlight-first-item.vue +++ b/examples/sites/demos/pc/app/autocomplete/highlight-first-item.vue @@ -36,31 +36,31 @@ export default { loadAll() { return [ { - value: 'GGG科技YX公司', + value: 'GGG 科技 YX 公司', address: '深圳' }, { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/no-trigger-on-focus-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/no-trigger-on-focus-composition-api.vue index 35f5f2da37..cce6a25c07 100644 --- a/examples/sites/demos/pc/app/autocomplete/no-trigger-on-focus-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/no-trigger-on-focus-composition-api.vue @@ -34,27 +34,27 @@ function createFilter(queryString) { function loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/no-trigger-on-focus.vue b/examples/sites/demos/pc/app/autocomplete/no-trigger-on-focus.vue index 398be15361..20b7e7ce3d 100644 --- a/examples/sites/demos/pc/app/autocomplete/no-trigger-on-focus.vue +++ b/examples/sites/demos/pc/app/autocomplete/no-trigger-on-focus.vue @@ -36,27 +36,27 @@ export default { loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/placement-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/placement-composition-api.vue index 2222613bdf..c9090727b2 100644 --- a/examples/sites/demos/pc/app/autocomplete/placement-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/placement-composition-api.vue @@ -34,27 +34,27 @@ function createFilter(queryString) { function loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/placement.vue b/examples/sites/demos/pc/app/autocomplete/placement.vue index e7a5052380..ce7526f3ce 100644 --- a/examples/sites/demos/pc/app/autocomplete/placement.vue +++ b/examples/sites/demos/pc/app/autocomplete/placement.vue @@ -36,27 +36,27 @@ export default { loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/popper-class-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/popper-class-composition-api.vue index b7c384bf4d..ef82d373b1 100644 --- a/examples/sites/demos/pc/app/autocomplete/popper-class-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/popper-class-composition-api.vue @@ -41,27 +41,27 @@ function createFilter(queryString) { function loadAll() { return [ { - name: 'GFDDDDDDD科技YX公司', + name: 'GFDDDDDDD 科技 YX 公司', address: '福州' }, { - name: 'WWWWWWWWWW科技YX公司', + name: 'WWWWWWWWWW 科技 YX 公司', address: '深圳福田区' }, { - name: 'RFVVVVVV有限责任公司', + name: 'RFVVVVVV 有限责任公司', address: '中山市' }, { - name: 'TGBGBBBBBBBBYX公司', + name: 'TGBGBBBBBBBBYX 公司', address: '梅州' }, { - name: 'YHNNNNNNN科技YX公司', + name: 'YHNNNNNNN 科技 YX 公司', address: '韶关' }, { - name: '康康物业YX公司', + name: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/popper-class.vue b/examples/sites/demos/pc/app/autocomplete/popper-class.vue index e83ea09f7e..26a761511f 100644 --- a/examples/sites/demos/pc/app/autocomplete/popper-class.vue +++ b/examples/sites/demos/pc/app/autocomplete/popper-class.vue @@ -47,27 +47,27 @@ export default { loadAll() { return [ { - name: 'GFDDDDDDD科技YX公司', + name: 'GFDDDDDDD 科技 YX 公司', address: '福州' }, { - name: 'WWWWWWWWWW科技YX公司', + name: 'WWWWWWWWWW 科技 YX 公司', address: '深圳福田区' }, { - name: 'RFVVVVVV有限责任公司', + name: 'RFVVVVVV 有限责任公司', address: '中山市' }, { - name: 'TGBGBBBBBBBBYX公司', + name: 'TGBGBBBBBBBBYX 公司', address: '梅州' }, { - name: 'YHNNNNNNN科技YX公司', + name: 'YHNNNNNNN 科技 YX 公司', address: '韶关' }, { - name: '康康物业YX公司', + name: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/remote-search-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/remote-search-composition-api.vue index 1d2b9beacd..56048aa767 100644 --- a/examples/sites/demos/pc/app/autocomplete/remote-search-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/remote-search-composition-api.vue @@ -40,27 +40,27 @@ function createFilter(queryString) { function loadAll() { return [ { - name: 'GFD科技YX公司', + name: 'GFD 科技 YX 公司', address: '福州' }, { - name: 'WWWW科技YX公司', + name: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - name: 'RFV有限责任公司', + name: 'RFV 有限责任公司', address: '中山市' }, { - name: 'TGBYX公司', + name: 'TGBYX 公司', address: '梅州' }, { - name: 'YHN科技YX公司', + name: 'YHN 科技 YX 公司', address: '韶关' }, { - name: '康康物业YX公司', + name: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/remote-search.spec.ts b/examples/sites/demos/pc/app/autocomplete/remote-search.spec.ts index 70d6924a8e..c79100a311 100644 --- a/examples/sites/demos/pc/app/autocomplete/remote-search.spec.ts +++ b/examples/sites/demos/pc/app/autocomplete/remote-search.spec.ts @@ -4,5 +4,5 @@ test('remote-search', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('autocomplete#remote-search') await page.getByRole('textbox', { name: '请输入内容', exact: true }).click() - await expect(page.getByRole('option', { name: 'GFD科技YX公司' })).toBeVisible() + await expect(page.getByRole('option', { name: 'GFD 科技 YX 公司' })).toBeVisible() }) diff --git a/examples/sites/demos/pc/app/autocomplete/remote-search.vue b/examples/sites/demos/pc/app/autocomplete/remote-search.vue index 96ee71fd56..96af2321bd 100644 --- a/examples/sites/demos/pc/app/autocomplete/remote-search.vue +++ b/examples/sites/demos/pc/app/autocomplete/remote-search.vue @@ -42,27 +42,27 @@ export default { loadAll() { return [ { - name: 'GFD科技YX公司', + name: 'GFD 科技 YX 公司', address: '福州' }, { - name: 'WWWW科技YX公司', + name: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - name: 'RFV有限责任公司', + name: 'RFV 有限责任公司', address: '中山市' }, { - name: 'TGBYX公司', + name: 'TGBYX 公司', address: '梅州' }, { - name: 'YHN科技YX公司', + name: 'YHN 科技 YX 公司', address: '韶关' }, { - name: '康康物业YX公司', + name: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/select-event-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/select-event-composition-api.vue index 595c7a56fe..78f283b6f4 100644 --- a/examples/sites/demos/pc/app/autocomplete/select-event-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/select-event-composition-api.vue @@ -35,27 +35,27 @@ function createFilter(queryString) { function loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/select-event.spec.ts b/examples/sites/demos/pc/app/autocomplete/select-event.spec.ts index 3c98a99477..1f4de223b4 100644 --- a/examples/sites/demos/pc/app/autocomplete/select-event.spec.ts +++ b/examples/sites/demos/pc/app/autocomplete/select-event.spec.ts @@ -4,6 +4,6 @@ test('select-event', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('autocomplete#select-event') await page.getByRole('textbox', { name: '请输入内容', exact: true }).click() - await page.getByRole('option', { name: 'GFD科技YX公司' }).click() - await expect(page.locator('div').filter({ hasText: '当前选择:{"value":"GFD科技YX公司","address":"福州"}' }).nth(1)).toBeVisible() + await page.getByRole('option', { name: 'GFD 科技 YX 公司' }).click() + await expect(page.locator('div').filter({ hasText: '当前选择:{"value":"GFD 科技 YX 公司","address":"福州"}' }).nth(1)).toBeVisible() }) diff --git a/examples/sites/demos/pc/app/autocomplete/select-event.vue b/examples/sites/demos/pc/app/autocomplete/select-event.vue index 85e385ef31..5d1eee5058 100644 --- a/examples/sites/demos/pc/app/autocomplete/select-event.vue +++ b/examples/sites/demos/pc/app/autocomplete/select-event.vue @@ -37,27 +37,27 @@ export default { loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/size-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/size-composition-api.vue index 845c279117..5e7d2fe2c2 100644 --- a/examples/sites/demos/pc/app/autocomplete/size-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/size-composition-api.vue @@ -59,27 +59,27 @@ function createFilter(queryString) { function loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/size.vue b/examples/sites/demos/pc/app/autocomplete/size.vue index 2c64af8c10..42a6d4b9c7 100644 --- a/examples/sites/demos/pc/app/autocomplete/size.vue +++ b/examples/sites/demos/pc/app/autocomplete/size.vue @@ -61,27 +61,27 @@ export default { loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/slot-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/slot-composition-api.vue index 3dafb3289a..ad1e5a6dec 100644 --- a/examples/sites/demos/pc/app/autocomplete/slot-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/slot-composition-api.vue @@ -49,27 +49,27 @@ function createFilter(queryString) { function loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/slot.spec.ts b/examples/sites/demos/pc/app/autocomplete/slot.spec.ts index 1be05ac5f6..9c61bca267 100644 --- a/examples/sites/demos/pc/app/autocomplete/slot.spec.ts +++ b/examples/sites/demos/pc/app/autocomplete/slot.spec.ts @@ -13,5 +13,5 @@ test('slot', async ({ page }) => { await expect(suffix).toBeVisible() await page.locator('.demo-autocomplete > .tiny-autocomplete.default-slot').click() - await expect(page.getByRole('option', { name: 'GFD科技YX公司 福州' })).toBeVisible() + await expect(page.getByRole('option', { name: 'GFD 科技 YX 公司 福州' })).toBeVisible() }) diff --git a/examples/sites/demos/pc/app/autocomplete/slot.vue b/examples/sites/demos/pc/app/autocomplete/slot.vue index 0101f92a92..e7c01360ae 100644 --- a/examples/sites/demos/pc/app/autocomplete/slot.vue +++ b/examples/sites/demos/pc/app/autocomplete/slot.vue @@ -51,27 +51,27 @@ export default { loadAll() { return [ { - value: 'GFD科技YX公司', + value: 'GFD 科技 YX 公司', address: '福州' }, { - value: 'WWWW科技YX公司', + value: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - value: 'RFV有限责任公司', + value: 'RFV 有限责任公司', address: '中山市' }, { - value: 'TGBYX公司', + value: 'TGBYX 公司', address: '梅州' }, { - value: 'YHN科技YX公司', + value: 'YHN 科技 YX 公司', address: '韶关' }, { - value: '康康物业YX公司', + value: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/value-key-composition-api.vue b/examples/sites/demos/pc/app/autocomplete/value-key-composition-api.vue index a041540cb9..f71be47129 100644 --- a/examples/sites/demos/pc/app/autocomplete/value-key-composition-api.vue +++ b/examples/sites/demos/pc/app/autocomplete/value-key-composition-api.vue @@ -34,27 +34,27 @@ function createFilter(queryString) { function loadAll() { return [ { - name: 'GFD科技YX公司', + name: 'GFD 科技 YX 公司', address: '福州' }, { - name: 'WWWW科技YX公司', + name: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - name: 'RFV有限责任公司', + name: 'RFV 有限责任公司', address: '中山市' }, { - name: 'TGBYX公司', + name: 'TGBYX 公司', address: '梅州' }, { - name: 'YHN科技YX公司', + name: 'YHN 科技 YX 公司', address: '韶关' }, { - name: '康康物业YX公司', + name: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/autocomplete/value-key.spec.ts b/examples/sites/demos/pc/app/autocomplete/value-key.spec.ts index 234e451312..ec9176882f 100644 --- a/examples/sites/demos/pc/app/autocomplete/value-key.spec.ts +++ b/examples/sites/demos/pc/app/autocomplete/value-key.spec.ts @@ -4,7 +4,7 @@ test('value-key', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('autocomplete#value-key') - await page.getByRole('textbox', { name: '请输入内容', exact: true }).fill('GFD科技YX公司') - await expect(await page.getByRole('option', { name: 'GFD科技YX公司' })).toBeVisible() + await page.getByRole('textbox', { name: '请输入内容', exact: true }).fill('GFD 科技 YX 公司') + await expect(await page.getByRole('option', { name: 'GFD 科技 YX 公司' })).toBeVisible() }) diff --git a/examples/sites/demos/pc/app/autocomplete/value-key.vue b/examples/sites/demos/pc/app/autocomplete/value-key.vue index d18aafa62a..1ce8c78ab9 100644 --- a/examples/sites/demos/pc/app/autocomplete/value-key.vue +++ b/examples/sites/demos/pc/app/autocomplete/value-key.vue @@ -36,27 +36,27 @@ export default { loadAll() { return [ { - name: 'GFD科技YX公司', + name: 'GFD 科技 YX 公司', address: '福州' }, { - name: 'WWWW科技YX公司', + name: 'WWWW 科技 YX 公司', address: '深圳福田区' }, { - name: 'RFV有限责任公司', + name: 'RFV 有限责任公司', address: '中山市' }, { - name: 'TGBYX公司', + name: 'TGBYX 公司', address: '梅州' }, { - name: 'YHN科技YX公司', + name: 'YHN 科技 YX 公司', address: '韶关' }, { - name: '康康物业YX公司', + name: '康康物业 YX 公司', address: '广州天河区' } ] diff --git a/examples/sites/demos/pc/app/base-select/all-text-composition-api.vue b/examples/sites/demos/pc/app/base-select/all-text-composition-api.vue index 2a6a1abdab..bc99ab39f5 100644 --- a/examples/sites/demos/pc/app/base-select/all-text-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/all-text-composition-api.vue @@ -11,11 +11,11 @@ import { ref } from 'vue' import { TinyBaseSelect, TinyOption } from '@opentiny/vue' const options = ref([ - { value: '选项1', label: '黄金糕' }, - { value: '选项2', label: '双皮奶' }, - { value: '选项3', label: '蚵仔煎' }, - { value: '选项4', label: '龙须面' }, - { value: '选项6', label: '螺蛳粉' } + { value: '选项 1', label: '黄金糕' }, + { value: '选项 2', label: '双皮奶' }, + { value: '选项 3', label: '蚵仔煎' }, + { value: '选项 4', label: '龙须面' }, + { value: '选项 6', label: '螺蛳粉' } ]) const value = ref([]) diff --git a/examples/sites/demos/pc/app/base-select/all-text.vue b/examples/sites/demos/pc/app/base-select/all-text.vue index e82f327fe5..726d47861b 100644 --- a/examples/sites/demos/pc/app/base-select/all-text.vue +++ b/examples/sites/demos/pc/app/base-select/all-text.vue @@ -18,11 +18,11 @@ export default { return { value: [], options: [ - { value: '选项1', label: '黄金糕' }, - { value: '选项2', label: '双皮奶' }, - { value: '选项3', label: '蚵仔煎' }, - { value: '选项4', label: '龙须面' }, - { value: '选项6', label: '螺蛳粉' } + { value: '选项 1', label: '黄金糕' }, + { value: '选项 2', label: '双皮奶' }, + { value: '选项 3', label: '蚵仔煎' }, + { value: '选项 4', label: '龙须面' }, + { value: '选项 6', label: '螺蛳粉' } ] } } diff --git a/examples/sites/demos/pc/app/base-select/allow-create-composition-api.vue b/examples/sites/demos/pc/app/base-select/allow-create-composition-api.vue index eb69906498..3e2a5d25f2 100644 --- a/examples/sites/demos/pc/app/base-select/allow-create-composition-api.vue +++ b/examples/sites/demos/pc/app/base-select/allow-create-composition-api.vue @@ -1,20 +1,20 @@