Skip to content

Commit b1e5e77

Browse files
authored
fix(vue-renderless): [breadcrumb, bulletin-board, button, button-group,calendar, calendar-view, card, carousel, cascader, cascader-panel, chart,checkbox, collapse, color-picker, color-select-panel,company,config-provider,container,crop,currency,date-picker,dept,dialog-box,dialog-select,directives,divider,drawer,drop-roles,drop-times,dropdown,espace,fall-menu,file-upload,filter-panel,float-button,floatbar,flowchart,fluent-editor,form,fullscreen] fix site: Optimize site documentation typesetting (#2709)
* feat(site):Optimize the typography of CJK characters, mix Chinese and English punctuation, and avoid excessive use of spaces for all Chinese text and comments within the site. * feat(site):Optimize the typography of CJK characters, mix Chinese and English punctuation, and avoid excessive use of spaces for all Chinese text and comments within the site. * fix(vue-renderless): [amount, anchor, area, autocomplete] fix site: Optimize site documentation typesetting * fix(vue-renderless): [base-select] fix site: Optimize site documentation typesetting * fix(vue-renderless): [base-select] fix site: Optimize site documentation typesetting * fix(vue-renderless): [base-select] fix site: Optimize site documentation typesetting * fix(vue-renderless): [breadcrumb, bulletin-board, button, button-group] fix site: Optimize site documentation typesetting * fix(vue-renderless): [calendar, calendar-view, card, carousel, cascader, cascader-panel, chart] fix site: Optimize site documentation typesetting * fix(vue-renderless): [checkbox, collapse, color-picker, color-select-panel,company,config-provider,container,crop,currency] fix site: Optimize site documentation typesetting * fix(vue-renderless): [breadcrumb, bulletin-board, button, button-group] fix site: Optimize site documentation typesetting * fix(vue-renderless): [date-picker,dept,dialog-box,dialog-select,directives,divider,drawer,drop-roles,drop-times,dropdown] fix site: Optimize site documentation typesetting * fix(vue-renderless): [espace,fall-menu,file-upload,filter-panel,float-button,floatbar,flowchart,fluent-editor,form,fullscreen] fix site: Optimize site documentation typesetting
1 parent 22bb2d7 commit b1e5e77

File tree

393 files changed

+1255
-1255
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

393 files changed

+1255
-1255
lines changed

examples/sites/demos/pc/app/breadcrumb/base.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ test('Breadcrumb 基础用法', async ({ page }) => {
99
const currentItem = breadcrumbItem.last()
1010
const separator = page.locator('.tiny-breadcrumb__separator')
1111

12-
// 面包屑导航、导航项出现,当前页导航加粗
12+
// 面包屑导航、导航项出现当前页导航加粗
1313
await expect(breadcrumb).toBeVisible()
1414
await expect(breadcrumbItem).toHaveCount(3)
1515
await expect(currentItem.last().locator('.is-link')).toHaveCSS('font-weight', '600')

examples/sites/demos/pc/app/breadcrumb/options.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test, expect } from '@playwright/test'
22

3-
test('Breadcrumb options配置', async ({ page }) => {
3+
test('Breadcrumb options 配置', async ({ page }) => {
44
page.on('pageerror', (exception) => expect(exception).toBeNull())
55
await page.goto('breadcrumb#options')
66

@@ -9,7 +9,7 @@ test('Breadcrumb options配置', async ({ page }) => {
99
const currentItem = breadcrumbItem.last()
1010
const separator = breadcrumb.locator('.tiny-breadcrumb__separator')
1111

12-
// 面包屑导航、导航项出现,当前页导航加粗
12+
// 面包屑导航、导航项出现当前页导航加粗
1313
await expect(breadcrumb).toBeVisible()
1414
await expect(breadcrumbItem).toHaveCount(3)
1515
await expect(currentItem.last().getByRole('link')).toHaveCSS('font-weight', '600')

examples/sites/demos/pc/app/breadcrumb/size.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test('Breadcrumb 尺寸设置', async ({ page }) => {
1010
const currentItem = breadcrumbItem.last()
1111
const separator = page.locator('.tiny-breadcrumb__separator')
1212

13-
// 面包屑导航、导航项出现,当前页导航加粗
13+
// 面包屑导航、导航项出现当前页导航加粗
1414
await expect(breadcrumb).toBeVisible()
1515
await expect(breadcrumbItem).toHaveCount(3)
1616
await expect(currentItem.last().locator('.is-link')).toHaveCSS('font-weight', '600')

examples/sites/demos/pc/app/bulletin-board/events-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ const data = ref([
8888
])
8989
function contentClick(item) {
9090
TinyModal.message({
91-
message: '触发 contentClick 事件:内容为' + item.text,
91+
message: '触发 contentClick 事件:内容为 ' + item.text,
9292
status: 'info'
9393
})
9494
}

examples/sites/demos/pc/app/bulletin-board/events.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ test('测试点击事件', async ({ page }) => {
77
const modal = page.locator('.tiny-modal')
88

99
await demo.getByRole('link', { name: 'TINY v2.1.3 版本' }).click()
10-
await expect(modal.getByText('click 事件:内容为TINY v2.1.3 版本')).toBeVisible()
10+
await expect(modal.getByText('click 事件:内容为 TINY v2.1.3 版本')).toBeVisible()
1111
})

examples/sites/demos/pc/app/bulletin-board/events.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export default {
9696
methods: {
9797
contentClick(item) {
9898
TinyModal.message({
99-
message: '触发 contentClick 事件:内容为' + item.text,
99+
message: '触发 contentClick 事件:内容为 ' + item.text,
100100
status: 'info'
101101
})
102102
}

examples/sites/demos/pc/app/bulletin-board/more-link.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test, expect } from '@playwright/test'
22

3-
test('BulletinBoard 显示 “更多” 链接(', async ({ page }) => {
3+
test('BulletinBoard 显示“更多”链接 (', async ({ page }) => {
44
page.on('pageerror', (exception) => expect(exception).toBeNull())
55
await page.goto('bulletin-board#more-link')
66

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { test, expect } from '@playwright/test'
22

3-
test('BulletinBoard 基于Route的跳转', async ({ page }) => {
3+
test('BulletinBoard 基于 Route 的跳转', async ({ page }) => {
44
page.on('pageerror', (exception) => expect(exception).toBeNull())
55
await page.goto('bulletin-board#route')
66

77
const preview = page.locator('#route')
88
const contentTitle = preview.locator('.tiny-bulletin-board__textTitle')
99

10-
// 判断a标签href属性值
10+
// 判断 a 标签 href 属性值
1111
await expect(contentTitle).toHaveAttribute('href', '/#/Alert')
1212
})

examples/sites/demos/pc/app/bulletin-board/tab-title.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test, expect } from '@playwright/test'
22

3-
test('BulletinBoard 选项卡标题(', async ({ page }) => {
3+
test('BulletinBoard 选项卡标题 (', async ({ page }) => {
44
page.on('pageerror', (exception) => expect(exception).toBeNull())
55
await page.goto('bulletin-board#tab-title')
66

examples/sites/demos/pc/app/bulletin-board/title.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test, expect } from '@playwright/test'
22

3-
test('BulletinBoard 公告牌标题(', async ({ page }) => {
3+
test('BulletinBoard 公告牌标题 (', async ({ page }) => {
44
page.on('pageerror', (exception) => expect(exception).toBeNull())
55
await page.goto('bulletin-board#title')
66

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { test, expect } from '@playwright/test'
22

3-
test('BulletinBoard 基于Url的跳转', async ({ page }) => {
3+
test('BulletinBoard 基于 Url 的跳转', async ({ page }) => {
44
page.on('pageerror', (exception) => expect(exception).toBeNull())
55
await page.goto('bulletin-board#url')
66

77
const preview = page.locator('#url')
88
const contentTitle = preview.locator('.tiny-bulletin-board__textTitle')
99

10-
// a标签href属性值
10+
// a 标签 href 属性值
1111
await expect(contentTitle).toHaveAttribute('href', 'localhost:3000/#/webcore/zh-CN/guide/changelog')
1212
})

examples/sites/demos/pc/app/bulletin-board/webdoc/bulletin-board.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default {
5656
{
5757
demoId: 'url',
5858
name: {
59-
'zh-CN': '基于Url的跳转',
59+
'zh-CN': '基于 Url 的跳转',
6060
'en-US': 'URL-based redirection'
6161
},
6262
desc: {
@@ -70,7 +70,7 @@ export default {
7070
{
7171
demoId: 'route',
7272
name: {
73-
'zh-CN': '基于Route的跳转',
73+
'zh-CN': '基于 Route 的跳转',
7474
'en-US': 'Route-based redirection'
7575
},
7676
desc: {
@@ -82,7 +82,7 @@ export default {
8282
{
8383
demoId: 'more-link',
8484
name: {
85-
'zh-CN': '显示 “更多” 链接',
85+
'zh-CN': '显示“更多”链接',
8686
'en-US': 'Show More links'
8787
},
8888
desc: {

examples/sites/demos/pc/app/button-group/change-event-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ const groupData = ref([
1616
])
1717
1818
function handleChange(val) {
19-
TinyModal.message({ message: `change事件触发了,选中值为${val}`, status: 'info' })
19+
TinyModal.message({ message: `change 事件触发了,选中值为 ${val}`, status: 'info' })
2020
}
2121
</script>
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { test, expect } from '@playwright/test'
22

3-
test('按钮组change事件', async ({ page }) => {
3+
test('按钮组 change 事件', async ({ page }) => {
44
page.on('pageerror', (exception) => expect(exception).toBeNull())
55
await page.goto('button-group#change-event')
66

@@ -9,7 +9,7 @@ test('按钮组change事件', async ({ page }) => {
99
const modal = page.locator('.tiny-modal')
1010

1111
await btn.nth(1).click()
12-
await expect(modal.filter({ hasText: 'change事件触发了,选中值为Button2' })).toBeVisible()
12+
await expect(modal.filter({ hasText: 'change 事件触发了,选中值为 Button2' })).toBeVisible()
1313
await btn.nth(2).click()
14-
await expect(modal.filter({ hasText: 'change事件触发了,选中值为Button3' })).toBeVisible()
14+
await expect(modal.filter({ hasText: 'change 事件触发了,选中值为 Button3' })).toBeVisible()
1515
})

examples/sites/demos/pc/app/button-group/change-event.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
},
2424
methods: {
2525
handleChange(val) {
26-
TinyModal.message({ message: `change事件触发了,选中值为${val}`, status: 'info' })
26+
TinyModal.message({ message: `change 事件触发了,选中值为 ${val}`, status: 'info' })
2727
}
2828
}
2929
}

examples/sites/demos/pc/app/button-group/disabled-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const groupData = ref([
2222
2323
const disabledGroup = ref([
2424
{ text: 'Button1', value: 1 },
25-
{ text: 'Button2', value: 2, disabled: true, tip: '因为xxx原因被禁用' },
25+
{ text: 'Button2', value: 2, disabled: true, tip: '因为 xxx 原因被禁用' },
2626
{ text: 'Button3', value: 3 }
2727
])
2828
</script>

examples/sites/demos/pc/app/button-group/disabled.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ test('测试按钮是否禁用', async ({ page }) => {
2626

2727
// 按钮悬浮提示
2828
await buttonGroup3.locator('button').nth(1).hover()
29-
await expect(page.getByText('因为xxx原因被禁用')).toBeVisible()
29+
await expect(page.getByText('因为 xxx 原因被禁用')).toBeVisible()
3030
})

examples/sites/demos/pc/app/button-group/disabled.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
],
2727
disabledGroup: [
2828
{ text: 'Button1', value: 1 },
29-
{ text: 'Button2', value: 2, disabled: true, tip: '因为xxx原因被禁用' },
29+
{ text: 'Button2', value: 2, disabled: true, tip: '因为 xxx 原因被禁用' },
3030
{ text: 'Button3', value: 3 }
3131
]
3232
}

examples/sites/demos/pc/app/button-group/sup-composition-api.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const groupData = ref([
5555
value: 'Button3',
5656
sup: {
5757
class: 'sup-text',
58-
text: '8折'
58+
text: '8 折'
5959
}
6060
},
6161
{
@@ -64,7 +64,7 @@ const groupData = ref([
6464
sup: {
6565
slot: 'button4',
6666
class: 'sup-slot',
67-
text: '8折'
67+
text: '8 折'
6868
}
6969
}
7070
])

examples/sites/demos/pc/app/button-group/sup.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ test('测试选块角标', async ({ page }) => {
2121

2222
// 测试文字角标
2323
const sup3 = getSup(item.nth(2))
24-
await expect(sup3).toHaveText('8折')
24+
await expect(sup3).toHaveText('8 折')
2525
await expect(sup3).toHaveClass(/tiny-group-item__sup-text/)
2626

2727
// 测试自定义角标
2828
const sup4 = getSup(item.nth(3))
2929
await expect(sup4.locator('svg')).toBeVisible()
30-
await expect(sup4).toHaveText('8折')
30+
await expect(sup4).toHaveText('8 折')
3131
await expect(sup4).toHaveClass(/sup-slot/)
3232
})

examples/sites/demos/pc/app/button-group/sup.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default {
6262
value: 'Button3',
6363
sup: {
6464
class: 'sup-text',
65-
text: '8折'
65+
text: '8 折'
6666
}
6767
},
6868
{
@@ -71,7 +71,7 @@ export default {
7171
sup: {
7272
slot: 'button4',
7373
class: 'sup-slot',
74-
text: '8折'
74+
text: '8 折'
7575
}
7676
}
7777
],

examples/sites/demos/pc/app/button-group/webdoc/button-group.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default {
3737
},
3838
desc: {
3939
'zh-CN':
40-
'<p>通过 <code>disabled</code> 设置按钮组是否禁用,数据项设置 <code>disabled</code> 属性可以禁用单个按钮,数据项设置 <code>tip</code> 属性(v3.17.0版本增加此功能)增加按钮悬浮提示功能。</p>',
40+
'<p>通过 <code>disabled</code> 设置按钮组是否禁用,数据项设置 <code>disabled</code> 属性可以禁用单个按钮,数据项设置 <code>tip</code> 属性 (v3.17.0 版本增加此功能) 增加按钮悬浮提示功能。</p>',
4141
'en-US':
4242
'<p>You can set whether to disable the button group through <code>disabled</code>. You can set the <code>disabled</code> attribute to disable a single button. You can set the <code>tip</code> attribute to add the reason for disabling the button. </p></p>'
4343
},

examples/sites/demos/pc/app/button/reset-time.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ test('测试按钮禁用事件', async ({ page }) => {
1010
const noDisabled = demo.getByRole('button', { name: '无禁用' })
1111
const fiveSecondDisabled = demo.getByRole('button', { name: '禁用 5 秒' })
1212

13-
// 默认禁用1S
13+
// 默认禁用 1S
1414
await defalutDisabled.click()
1515
await expect(defalutDisabled).toBeDisabled()
1616
await page.waitForTimeout(1000)
@@ -20,7 +20,7 @@ test('测试按钮禁用事件', async ({ page }) => {
2020
await noDisabled.click()
2121
await expect(noDisabled).not.toBeDisabled()
2222

23-
// 自定义禁用5s
23+
// 自定义禁用 5s
2424
await fiveSecondDisabled.click()
2525
await expect(fiveSecondDisabled).toBeDisabled()
2626
await page.waitForTimeout(5000)

examples/sites/demos/pc/app/calendar-view/basic-usage-composition-api.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,63 +8,63 @@ import { TinyCalendarView } from '@opentiny/vue'
88
99
const eventslist = ref([
1010
{
11-
title: '前端周会1',
11+
title: '前端周会 1',
1212
start: '2023-05-15 8:30:00',
1313
end: '2023-05-15 9:00:00',
1414
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
1515
theme: 'blue'
1616
},
1717
{
18-
title: '前端周会2',
18+
title: '前端周会 2',
1919
start: '2023-05-15 10:00:00',
2020
end: '2023-05-15 12:00:00',
2121
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
2222
theme: 'green'
2323
},
2424
{
25-
title: '前端周会2-1',
25+
title: '前端周会 2-1',
2626
start: '2023-05-15 13:00:00',
2727
end: '2023-05-15 15:00:00',
2828
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
2929
theme: 'red'
3030
},
3131
{
32-
title: '前端周会3',
32+
title: '前端周会 3',
3333
start: '2023-05-16 9:00:00',
3434
end: '2023-05-16 10:00:00',
3535
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
3636
theme: 'yellow'
3737
},
3838
{
39-
title: '前端周会4',
39+
title: '前端周会 4',
4040
start: '2023-05-16 11:00:00',
4141
end: '2023-05-16 14:00:00',
4242
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
4343
theme: 'purple'
4444
},
4545
{
46-
title: '前端周会5',
46+
title: '前端周会 5',
4747
start: '2023-05-25 8:00:00',
4848
end: '2023-05-25 9:00:00',
4949
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
5050
theme: 'cyan'
5151
},
5252
{
53-
title: '前端周会6',
53+
title: '前端周会 6',
5454
start: '2023-05-26 8:00:00',
5555
end: '2023-05-26 11:30:00',
5656
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
5757
theme: 'blue'
5858
},
5959
{
60-
title: '前端周会7',
60+
title: '前端周会 7',
6161
start: '2023-05-27 8:30:00',
6262
end: '2023-05-27 9:30:00',
6363
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
6464
theme: 'blue'
6565
},
6666
{
67-
title: '节假日25-28',
67+
title: '节假日 25-28',
6868
start: '2023-05-25 10:30:00',
6969
end: '2023-05-28 03:30:00',
7070
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',

examples/sites/demos/pc/app/calendar-view/basic-usage.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ test('基本用法', async ({ page }) => {
44
page.on('pageerror', (exception) => expect(exception).toBeNull())
55
await page.goto('calendar-view#basic-usage')
66
const demoPage = page.locator('#basic-usage')
7-
const fixWeek2 = page.getByText('前端周会2').first()
8-
const popWeek2 = page.locator('.title').filter({ hasText: '前端周会2' })
7+
const fixWeek2 = page.getByText('前端周会 2').first()
8+
const popWeek2 = page.locator('.title').filter({ hasText: '前端周会 2' })
99
// 校验固定内容
1010
await expect(demoPage).toHaveText(/1522-11/)
1111
await expect(demoPage).toHaveText(/1643/)
1212
await expect(demoPage).toHaveText(/2525-285/)
1313
await expect(demoPage.locator('.events-end').first()).toHaveClass(/bg-green/)
14-
// 校验hover弹出框
14+
// 校验 hover 弹出框
1515
await fixWeek2.hover()
1616
await page.waitForTimeout(200)
1717
await expect(popWeek2).toBeVisible()

0 commit comments

Comments
 (0)