Skip to content

Commit

Permalink
fix(vue-renderless): [calendar, calendar-view, card, carousel, cascad…
Browse files Browse the repository at this point in the history
…er, cascader-panel, chart] fix site: Optimize site documentation typesetting
  • Loading branch information
dufu1991 committed Dec 27, 2024
1 parent c15edf5 commit 5be8e63
Show file tree
Hide file tree
Showing 154 changed files with 603 additions and 603 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,63 +8,63 @@ import { TinyCalendarView } from '@opentiny/vue'
const eventslist = ref([
{
title: '前端周会1',
title: '前端周会 1',
start: '2023-05-15 8:30:00',
end: '2023-05-15 9:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '前端周会2',
title: '前端周会 2',
start: '2023-05-15 10:00:00',
end: '2023-05-15 12:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'green'
},
{
title: '前端周会2-1',
title: '前端周会 2-1',
start: '2023-05-15 13:00:00',
end: '2023-05-15 15:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'red'
},
{
title: '前端周会3',
title: '前端周会 3',
start: '2023-05-16 9:00:00',
end: '2023-05-16 10:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'yellow'
},
{
title: '前端周会4',
title: '前端周会 4',
start: '2023-05-16 11:00:00',
end: '2023-05-16 14:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'purple'
},
{
title: '前端周会5',
title: '前端周会 5',
start: '2023-05-25 8:00:00',
end: '2023-05-25 9:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'cyan'
},
{
title: '前端周会6',
title: '前端周会 6',
start: '2023-05-26 8:00:00',
end: '2023-05-26 11:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '前端周会7',
title: '前端周会 7',
start: '2023-05-27 8:30:00',
end: '2023-05-27 9:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '节假日25-28',
title: '节假日 25-28',
start: '2023-05-25 10:30:00',
end: '2023-05-28 03:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
Expand Down
6 changes: 3 additions & 3 deletions examples/sites/demos/pc/app/calendar-view/basic-usage.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ test('基本用法', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('calendar-view#basic-usage')
const demoPage = page.locator('#basic-usage')
const fixWeek2 = page.getByText('前端周会2').first()
const popWeek2 = page.locator('.title').filter({ hasText: '前端周会2' })
const fixWeek2 = page.getByText('前端周会 2').first()
const popWeek2 = page.locator('.title').filter({ hasText: '前端周会 2' })
// 校验固定内容
await expect(demoPage).toHaveText(/15前端周会2前端周会2-1前端周会1/)
await expect(demoPage).toHaveText(/16前端周会4前端周会3/)
await expect(demoPage).toHaveText(/25节假日25-28前端周会5/)
await expect(demoPage.locator('.events-end').first()).toHaveClass(/bg-green/)
// 校验hover弹出框
// 校验 hover 弹出框
await fixWeek2.hover()
await page.waitForTimeout(200)
await expect(popWeek2).toBeVisible()
Expand Down
18 changes: 9 additions & 9 deletions examples/sites/demos/pc/app/calendar-view/basic-usage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,63 +13,63 @@ export default {
return {
eventslist: [
{
title: '前端周会1',
title: '前端周会 1',
start: '2023-05-15 8:30:00',
end: '2023-05-15 9:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '前端周会2',
title: '前端周会 2',
start: '2023-05-15 10:00:00',
end: '2023-05-15 12:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'green'
},
{
title: '前端周会2-1',
title: '前端周会 2-1',
start: '2023-05-15 13:00:00',
end: '2023-05-15 15:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'red'
},
{
title: '前端周会3',
title: '前端周会 3',
start: '2023-05-16 9:00:00',
end: '2023-05-16 10:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'yellow'
},
{
title: '前端周会4',
title: '前端周会 4',
start: '2023-05-16 11:00:00',
end: '2023-05-16 14:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'purple'
},
{
title: '前端周会5',
title: '前端周会 5',
start: '2023-05-25 8:00:00',
end: '2023-05-25 9:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'cyan'
},
{
title: '前端周会6',
title: '前端周会 6',
start: '2023-05-26 8:00:00',
end: '2023-05-26 11:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '前端周会7',
title: '前端周会 7',
start: '2023-05-27 8:30:00',
end: '2023-05-27 9:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '节假日25-28',
title: '节假日 25-28',
start: '2023-05-25 10:30:00',
end: '2023-05-28 03:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ test('日期标记', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('calendar-view#calendar-day-mark')
const listitem = page.getByRole('listitem')
const day30 = listitem.filter({ hasText: '30周日' }).locator('span').nth(2)
const day1 = listitem.filter({ hasText: '1周一' }).locator('span').nth(2)
const day6 = listitem.filter({ hasText: '6周六' }).locator('span').nth(2)
const day7 = page.getByText('7周日')
const day30 = listitem.filter({ hasText: '30 周日' }).locator('span').nth(2)
const day1 = listitem.filter({ hasText: '1 周一' }).locator('span').nth(2)
const day6 = listitem.filter({ hasText: '6 周六' }).locator('span').nth(2)
const day7 = page.getByText('7 周日')
const rightSvg = page.locator('.header-right > .tiny-svg')
const day8 = listitem.filter({ hasText: '8周一' }).locator('span').nth(2)
const day8 = listitem.filter({ hasText: '8 周一' }).locator('span').nth(2)
await expect(day30).toBeVisible()
await expect(day1).toHaveClass(/mark/)
await expect(day1).toHaveClass(/mark-red/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ const weekChange = (weekDate) => {
}
const yearChange = (newVal, oldVal) => {
TinyModal.message({ message: `年改变事件: ${newVal}, ${oldVal}`, status: 'info' })
TinyModal.message({ message: `年改变事件${newVal}${oldVal}`, status: 'info' })
}
const monthChange = (newVal, oldVal) => {
TinyModal.message({ message: `月改变事件: ${newVal}, ${oldVal}`, status: 'info' })
TinyModal.message({ message: `月改变事件${newVal}${oldVal}`, status: 'info' })
}
const modeChange = (val) => {
TinyModal.message({ message: `模式切换事件: ${val}`, status: 'info' })
TinyModal.message({ message: `模式切换事件${val}`, status: 'info' })
}
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test('事件', async ({ page }) => {
const leftSvg = page.locator('.header-left > .tiny-svg')
const rightSvg = page.locator('.header-right > .tiny-svg')
const mode = page.locator('label').nth(2)
const modalVal = page.getByText('模式切换事件: schedule')
const modalVal = page.getByText('模式切换事件schedule')
await timeBtn.click()
await page.waitForTimeout(100)
await leftYear.click()
Expand Down
6 changes: 3 additions & 3 deletions examples/sites/demos/pc/app/calendar-view/calendar-event.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ export default {
TinyModal.message({ message: `周改变事件: ${weekDate[0].value}`, status: 'info' })
},
yearChange(newVal, oldVal) {
TinyModal.message({ message: `年改变事件: ${newVal}, ${oldVal}`, status: 'info' })
TinyModal.message({ message: `年改变事件${newVal}${oldVal}`, status: 'info' })
},
monthChange(newVal, oldVal) {
TinyModal.message({ message: `月改变事件: ${newVal}, ${oldVal}`, status: 'info' })
TinyModal.message({ message: `月改变事件${newVal}${oldVal}`, status: 'info' })
},
modeChange(val) {
TinyModal.message({ message: `模式切换事件: ${val}`, status: 'info' })
TinyModal.message({ message: `模式切换事件${val}`, status: 'info' })
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,63 +29,63 @@ import { TinyCalendarView } from '@opentiny/vue'
const eventslist = ref([
{
title: '前端周会1',
title: '前端周会 1',
start: '2023-05-15 8:30:00',
end: '2023-05-15 9:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '前端周会2',
title: '前端周会 2',
start: '2023-05-15 10:00:00',
end: '2023-05-15 12:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'green'
},
{
title: '前端周会2-1',
title: '前端周会 2-1',
start: '2023-05-15 13:00:00',
end: '2023-05-15 15:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'red'
},
{
title: '前端周会3',
title: '前端周会 3',
start: '2023-05-16 9:00:00',
end: '2023-05-16 10:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'yellow'
},
{
title: '前端周会4',
title: '前端周会 4',
start: '2023-05-16 11:00:00',
end: '2023-05-16 14:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'purple'
},
{
title: '前端周会5',
title: '前端周会 5',
start: '2023-05-25 8:00:00',
end: '2023-05-25 9:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'cyan'
},
{
title: '前端周会6',
title: '前端周会 6',
start: '2023-05-26 8:00:00',
end: '2023-05-26 11:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '前端周会7',
title: '前端周会 7',
start: '2023-05-27 8:30:00',
end: '2023-05-27 9:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '节假日25-28',
title: '节假日 25-28',
start: '2023-05-25 10:30:00',
end: '2023-05-28 03:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ test('日程模式插槽', async ({ page }) => {
page.on('pageerror', (exception) => expect(exception).toBeNull())
await page.goto('calendar-view#calendar-schedule-slot')
const solt1 = page.locator('.new-schedule').first()
const soltData1 = page.getByText('新增事件2023-4-30')
const soltData1 = page.getByText('新增事件 2023-4-30')
const solt5 = page.locator('li:nth-child(5) > .new-schedule')
const soltData5 = page.getByText('新增事件2023-5-4')
const soltData5 = page.getByText('新增事件 2023-5-4')
await expect(solt1).toBeVisible()
await page.waitForTimeout(200)
await solt1.click()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,63 +34,63 @@ export default {
return {
eventslist: [
{
title: '前端周会1',
title: '前端周会 1',
start: '2023-05-15 8:30:00',
end: '2023-05-15 9:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '前端周会2',
title: '前端周会 2',
start: '2023-05-15 10:00:00',
end: '2023-05-15 12:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'green'
},
{
title: '前端周会2-1',
title: '前端周会 2-1',
start: '2023-05-15 13:00:00',
end: '2023-05-15 15:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'red'
},
{
title: '前端周会3',
title: '前端周会 3',
start: '2023-05-16 9:00:00',
end: '2023-05-16 10:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'yellow'
},
{
title: '前端周会4',
title: '前端周会 4',
start: '2023-05-16 11:00:00',
end: '2023-05-16 14:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'purple'
},
{
title: '前端周会5',
title: '前端周会 5',
start: '2023-05-25 8:00:00',
end: '2023-05-25 9:00:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'cyan'
},
{
title: '前端周会6',
title: '前端周会 6',
start: '2023-05-26 8:00:00',
end: '2023-05-26 11:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '前端周会7',
title: '前端周会 7',
start: '2023-05-27 8:30:00',
end: '2023-05-27 9:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
theme: 'blue'
},
{
title: '节假日25-28',
title: '节假日 25-28',
start: '2023-05-25 10:30:00',
end: '2023-05-28 03:30:00',
content: '日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注日程备注',
Expand Down
Loading

0 comments on commit 5be8e63

Please sign in to comment.