diff --git a/.gitignore b/.gitignore index c430c001d..3e8e256ad 100644 --- a/.gitignore +++ b/.gitignore @@ -62,6 +62,11 @@ packages/theme/src/theme/*-theme/component.js pnpm-lock.yaml gulp/bundle.json +# 屏蔽测试用例报告相关文件 +allure-report +allure-results +test-results + # 本地构建的saas相关资源文件 examples/sites/public/tiny-vue*.js examples/sites/public/tiny-vue*.mjs diff --git a/examples/docs/package.json b/examples/docs/package.json index 1e5113682..a97695d7f 100644 --- a/examples/docs/package.json +++ b/examples/docs/package.json @@ -18,9 +18,9 @@ "sortablejs": "1.15.0" }, "devDependencies": { - "@playwright/test": "^1.40.1" + "@playwright/test": "~1.42.0" }, "files": [ "resources" ] -} +} \ No newline at end of file diff --git a/examples/sites/demos/apis/dialog-box.js b/examples/sites/demos/apis/dialog-box.js index fb7eb49ae..f39dbd9d8 100644 --- a/examples/sites/demos/apis/dialog-box.js +++ b/examples/sites/demos/apis/dialog-box.js @@ -161,10 +161,10 @@ export default { { name: 'resize', type: 'boolean', - defaultValue: 'true', + defaultValue: 'false', desc: { - 'zh-CN': '实现窗口最大化', - 'en-US': 'Maximize windows' + 'zh-CN': '弹窗是否能切换全屏', + 'en-US': 'Whether the pop-up window can be switched to full screen' }, mode: ['pc'], pcDemo: 'form-in-dialog' @@ -245,6 +245,17 @@ export default { }, mode: ['pc'], pcDemo: 'dialog-width' + }, + { + name: 'dialog-transition', + type: 'string', + defaultValue: ``, + desc: { + 'zh-CN': '启动弹出动效由小变大', + 'en-US': 'Startup pop-up effect from small to large' + }, + mode: ['pc'], + pcDemo: 'transition-effect' } ], events: [ @@ -335,6 +346,18 @@ export default { }, mode: ['pc'], pcDemo: 'open-close-events' + }, + { + name: 'resize', + typeAnchorName: 'IResizeEvent', + type: '(ev: IResizeEvent) => void', + defaultValue: '', + desc: { + 'zh-CN': '弹窗大小变化时的事件,比如切换全屏状态时', + 'en-US': 'Event when the pop-up window size changes, for example, when the full-screen mode is switched.' + }, + mode: ['pc'], + pcDemo: 'fullscreen' } ], methods: [], @@ -343,7 +366,7 @@ export default { name: 'default', defaultValue: '', desc: { - 'zh-CN': 'Dialog 的内容', + 'zh-CN': 'Dialog 的内容插槽', 'en-US': 'Dialog content' }, mode: ['pc'], @@ -353,7 +376,7 @@ export default { name: 'footer', defaultValue: '', desc: { - 'zh-CN': 'Dialog 按钮操作区的内容', + 'zh-CN': 'Dialog 按钮操作区的内容插槽', 'en-US': 'Dialog button operation area content' }, mode: ['pc'], @@ -363,7 +386,7 @@ export default { name: 'title', defaultValue: '', desc: { - 'zh-CN': 'Dialog 标题区的内容', + 'zh-CN': 'Dialog 标题区的内容插槽', 'en-US': 'Dialog content in the title area' }, mode: ['pc'], @@ -371,5 +394,19 @@ export default { } ] } + ], + types: [ + { + name: 'IResizeEvent', + type: 'interface', + code: ` +interface IResizeEvent { + // 当前的全屏状态 + fullscreen: boolean + // 弹窗的元素 + dialog: HTMLElement +} + ` + } ] } diff --git a/examples/sites/demos/apis/dialog-select.js b/examples/sites/demos/apis/dialog-select.js index 91d8fa5fd..18e49ad0c 100644 --- a/examples/sites/demos/apis/dialog-select.js +++ b/examples/sites/demos/apis/dialog-select.js @@ -362,6 +362,18 @@ export default { }, mode: ['pc'], pcDemo: 'nest-grid-multi' + }, + { + name: 'resize', + typeAnchorName: 'IResizeEvent', + type: '(ev: IResizeEvent) => void', + defaultValue: '', + desc: { + 'zh-CN': '弹窗大小变化时的事件,比如切换全屏状态时', + 'en-US': 'Event when the pop-up window size changes, for example, when the full-screen mode is switched.' + }, + mode: ['pc'], + pcDemo: '' } ], methods: [ @@ -637,6 +649,18 @@ newPageSize: number // 变更后分页大小 currentPage: number // 当前所在页 currentPageSize: number // 当前分页大小 }` + }, + { + name: 'IResizeEvent', + type: 'interface', + code: ` +interface IResizeEvent { + // 当前的全屏状态 + fullscreen: boolean + // 弹窗的元素 + dialog: HTMLElement +} + ` } ] } diff --git a/examples/sites/demos/apis/dialogbox.js b/examples/sites/demos/apis/dialogbox.js deleted file mode 100644 index da7285af1..000000000 --- a/examples/sites/demos/apis/dialogbox.js +++ /dev/null @@ -1,145 +0,0 @@ -export default { - mode: ['mobile'], - apis: [ - { - name: 'Dialogbox', - type: 'component', - props: [ - { - mode: [] - }, - { - name: 'close-on-click-modal', - type: 'Boolean', - defaultValue: '', - desc: { - 'zh-CN': - '

是否可以通过点击遮罩层关闭弹窗,默认为 true ,可以在标签上设置:close-on-click-modal="false"不能通过点击遮罩层关闭弹窗。

', - 'en-US': 'Is show left arrow' - }, - mode: ['mobile'], - mobileDemo: 'close-on-click-modal' - }, - { - name: 'lock-scroll', - type: 'Boolean', - defaultValue: '', - desc: { - 'zh-CN': '

Dialog弹出时是否禁用滚动条,该属性默认为true

', - 'en-US': 'Is show right arrow' - }, - mode: ['mobile'], - mobileDemo: 'lock-scroll' - }, - { - name: 'modal-append-to-body', - type: 'Boolean', - defaultValue: '', - desc: { - 'zh-CN': - '

遮罩层是否应用到 body 上,为 false 时遮罩层会应用到 DialogBox 的父元素上,该属性默认为true

', - 'en-US': 'Is show right text' - }, - mode: ['mobile'], - mobileDemo: 'slot-title' - }, - { - name: 'show-header', - type: 'Boolean', - defaultValue: '', - desc: { - 'zh-CN': '

是否显示弹窗头部 header,默认值为 true 。

', - 'en-US': 'Is show left text' - }, - mode: ['mobile'], - mobileDemo: 'show-header' - }, - { - mode: [] - }, - { - name: 'visible', - type: 'String', - defaultValue: '', - desc: { - 'zh-CN': '

控制弹出框显示与关闭

', - 'en-US': 'set main-title' - }, - mode: ['mobile'], - mobileDemo: 'with-input' - } - ], - events: [ - { - mode: [] - }, - { - name: 'close', - type: 'Function()', - defaultValue: '', - desc: { - 'zh-CN': '

Dialog 关闭的回调

', - 'en-US': 'Click' - }, - mode: ['mobile'], - mobileDemo: 'events-open-close' - }, - { - name: 'confirm', - type: 'Function()', - defaultValue: '', - desc: { - 'zh-CN': '

Dialog 确定按钮的的回调

', - 'en-US': 'Click' - }, - mode: ['mobile'], - mobileDemo: 'cancel-confirm' - }, - { - name: 'open', - type: 'Function()', - defaultValue: '', - desc: { - 'zh-CN': '

Dialog 打开的回调

', - 'en-US': 'Click' - }, - mode: ['mobile'], - mobileDemo: 'events-open-close' - } - ], - methods: [], - slots: [ - { - name: 'default', - defaultValue: '', - desc: { - 'zh-CN': '

Dialog 的内容

', - 'en-US': 'Click' - }, - mode: ['mobile'], - mobileDemo: 'slot-title' - }, - { - name: 'footer', - defaultValue: '', - desc: { - 'zh-CN': '

Dialog 按钮操作区的内容

', - 'en-US': 'Click' - }, - mode: ['mobile'], - mobileDemo: 'slot-footer' - }, - { - name: 'title', - defaultValue: '', - desc: { - 'zh-CN': '

Dialog 标题区的内容

', - 'en-US': 'Click' - }, - mode: ['mobile'], - mobileDemo: 'slot-title' - } - ] - } - ] -} diff --git a/examples/sites/demos/apis/file-upload.js b/examples/sites/demos/apis/file-upload.js index f58f8d6d5..8605b1852 100644 --- a/examples/sites/demos/apis/file-upload.js +++ b/examples/sites/demos/apis/file-upload.js @@ -327,6 +327,18 @@ export default { mode: ['mobile-first'], mfDemo: '' }, + { + name: 'image-bg-color', + type: 'string', + defaultValue: '', + desc: { + 'zh-CN': '配置 `list-type` 等于 `picture-single` 或 `picture-card` 模式下图片的背景色。', + 'en-US': + 'Configure the background color of the image when `list-type` is set to `picture-single` or `picture-card`.' + }, + mode: ['mobile-first'], + mfDemo: '' + }, { name: 'is-folder-title', type: 'Boolean', @@ -1067,7 +1079,7 @@ interface IHeaders { name: 'IListType', type: 'type', code: ` -type IListType = 'text' | 'picture' | 'picture-card' | 'thumb' | 'saas' +type IListType = 'text' | 'picture' | 'picture-card' | 'thumb' | 'saas' // saas为3.14.0版本新增 ` }, { diff --git a/examples/sites/demos/apis/form.js b/examples/sites/demos/apis/form.js index 0bb72ce0c..18b3d9a4b 100644 --- a/examples/sites/demos/apis/form.js +++ b/examples/sites/demos/apis/form.js @@ -602,6 +602,16 @@ export default { }, mode: ['pc'], pcDemo: 'error-label' + }, + { + name: 'prompt', + defaultValue: '', + desc: { + 'zh-CN': '强提示插槽', + 'en-US': 'Prompt slot' + }, + mode: ['mobile-first'], + mfDemo: 'prompt-slot' } ] } diff --git a/examples/sites/demos/apis/popover.js b/examples/sites/demos/apis/popover.js index 1e0a34c53..5bb73e44d 100644 --- a/examples/sites/demos/apis/popover.js +++ b/examples/sites/demos/apis/popover.js @@ -374,6 +374,8 @@ interface IPopperOption { bubbling: boolean // 是否监听元素所有上级有滚动元素的scroll事件,监听到则更新popper的位置。用于解决某些弹出层位置在页面滚动时,位置不正确的场景,默认false followReferenceHide: boolean // 当触发源隐藏时,自动隐藏弹出层,默认true removeOnDestroy: boolean // 弹出层消失后,是否移除弹出层的DOM元素,布尔false + updateHiddenPopperOnScroll: boolean // 滚动过程中是否更新隐藏的弹出层位置 + boundariesElement: 'viewport' | 'body' | HTMLElement // 滚动过程中,弹出层的碰撞边界。 默认值为: 'viewport' } ` }, diff --git a/examples/sites/demos/apis/select.js b/examples/sites/demos/apis/select.js index 40ae04a1e..74fbc5d9e 100644 --- a/examples/sites/demos/apis/select.js +++ b/examples/sites/demos/apis/select.js @@ -5,6 +5,19 @@ export default { name: 'select', type: 'component', props: [ + { + name: 'all-text', + type: 'string', + defaultValue: '', + desc: { + 'zh-CN': '当下拉中显示全部时,自定义全部的显示文本。不指定时,则默认显示"全部"', + 'en-US': + 'When all is displayed in the drop-down list, you can customize the display text of all. If this parameter is not specified, All is displayed by default.' + }, + mode: ['pc', 'mobile-first'], + pcDemo: 'all-text', + mfDemo: 'all-text' + }, { name: 'allow-copy', type: 'boolean', @@ -598,13 +611,26 @@ export default { type: 'boolean', defaultValue: 'false', desc: { - 'zh-CN': '是否展示多选框选中条数和总条数的占比', + 'zh-CN': '是否展示多选框选中条数和总条数的占比的文字提示', 'en-US': 'Display the proportion of the number of selected items and the total number of items in the multiple-choice box' }, mode: ['pc', 'mobile-first'], pcDemo: 'collapse-tags', mfDemo: 'collapse-tags' + }, + { + name: 'show-limit-text', + type: 'boolean', + defaultValue: 'false', + desc: { + 'zh-CN': + '是否展示多选框开启多选限制选择数量时,选中条数和限制总条数的占比的文字提示。 该属性的优先级大于show-proportion 属性,同时设置只', + 'en-US': + 'Display the proportion of the number of selected items and the total number of items in the multiple-choice box' + }, + mode: ['pc'], + pcDemo: 'multiple' } ], events: [ diff --git a/examples/sites/demos/apis/tabs.js b/examples/sites/demos/apis/tabs.js index 7a94cccdf..f4ed92bca 100644 --- a/examples/sites/demos/apis/tabs.js +++ b/examples/sites/demos/apis/tabs.js @@ -313,9 +313,9 @@ export default { type: 'boolean', defaultValue: 'false', desc: { - 'zh-CN': '页签是否在超过 title-width 省略显示', + 'zh-CN': '页签是否在超过 title-width 省略显示,优先级低于 tooltip-config', 'en-US': - 'Callback function before closing a tab. The input parameter is the tab name. If the function returns false or a rejected Promise, the tab is not closed.' + 'Indicates whether to display the tab when the title width is exceeded. The priority is lower than tooltip-config.' }, mode: ['pc', 'mobile-first'], pcDemo: 'overflow-title', diff --git a/examples/sites/demos/apis/tooltip.js b/examples/sites/demos/apis/tooltip.js index 339dbb33f..cfc468109 100644 --- a/examples/sites/demos/apis/tooltip.js +++ b/examples/sites/demos/apis/tooltip.js @@ -319,6 +319,8 @@ interface IPopperOption { bubbling: boolean // 是否监听元素所有上级有滚动元素的scroll事件,监听到则更新popper的位置。用于解决某些弹出层位置在页面滚动时,位置不正确的场景,默认false followReferenceHide: boolean // 当触发源隐藏时,自动隐藏弹出层,默认true removeOnDestroy: boolean // 弹出层消失后,是否移除弹出层的DOM元素,布尔false + updateHiddenPopperOnScroll: boolean // 滚动过程中是否更新隐藏的弹出层位置 + boundariesElement: 'viewport' | 'body' | HTMLElement // 滚动过程中,弹出层的碰撞边界。 默认值为: 'viewport' } ` }, diff --git a/examples/sites/demos/mobile-first/app/file-upload/preview-picture.vue b/examples/sites/demos/mobile-first/app/file-upload/preview-picture.vue index ba4d25884..cf8cfaa1d 100644 --- a/examples/sites/demos/mobile-first/app/file-upload/preview-picture.vue +++ b/examples/sites/demos/mobile-first/app/file-upload/preview-picture.vue @@ -1,6 +1,12 @@ diff --git a/examples/sites/demos/mobile-first/app/file-upload/webdoc/file-upload.js b/examples/sites/demos/mobile-first/app/file-upload/webdoc/file-upload.js index a8c58f069..8d7993fe5 100644 --- a/examples/sites/demos/mobile-first/app/file-upload/webdoc/file-upload.js +++ b/examples/sites/demos/mobile-first/app/file-upload/webdoc/file-upload.js @@ -96,7 +96,7 @@ export default { }, desc: { 'zh-CN': - '

文件上传模式,配置 `download-all` 事件,会显示下载全部按钮,点击下载全部按钮会触发 `download-all` 事件

', + '

文件上传模式,配置 `download-all` 事件,会显示下载全部按钮,点击下载全部按钮会触发 `download-all` 事件。

', 'en-US': '

button click

' }, codeFiles: ['download-all.vue'] @@ -109,11 +109,25 @@ export default { }, desc: { 'zh-CN': - '

文件上传模式,配置 `download-file` 事件,已上传的文件会显示下载按钮,点击下载按钮会触发 `download-file` 事件

', + '

文件上传模式,配置 `download-file` 事件,已上传的文件会显示下载按钮,点击下载按钮会触发 `download-file` 事件。

', 'en-US': '

button click

' }, codeFiles: ['download.vue'] }, + { + demoId: 'show-download-bar', + name: { + 'zh-CN': '下载进度条', + 'en-US': 'Download progress bar' + }, + desc: { + 'zh-CN': + '

通过给 file 对象设置 `showDownloadBar:true` 可以显示下载进度条,`downloadPercentage` 属性传入下载进度,`downloadStatus` 设置下载状态。

', + 'en-US': + '

You can set the `showDownloadBar:true` attribute of the file object to display the download progress bar, set the`downloadPercentage` attribute to transfer the download progress, and set the`downloadStatus` to set the download status.

' + }, + codeFiles: ['show-download-bar.vue'] + }, { demoId: 'download-picture', name: { @@ -122,7 +136,7 @@ export default { }, desc: { 'zh-CN': - '

图片上传模式,配置 `download-file` 事件,已上传的文件会显示下载图标,点击下载按钮会触发 `download-file` 事件

', + '

图片上传模式,配置 `download-file` 事件,已上传的文件会显示下载图标,点击下载按钮会触发 `download-file` 事件。

', 'en-US': '

button click

' }, codeFiles: ['download-picture.vue'] @@ -135,7 +149,7 @@ export default { }, desc: { 'zh-CN': - '

文件上传模式,配置 `re-upload` 事件,上传失败的文件会显示重新上传按钮,点击重新上传按钮会触发 `re-upload` 事件

', + '

文件上传模式,配置 `re-upload` 事件,上传失败的文件会显示重新上传按钮,点击重新上传按钮会触发 `re-upload` 事件。

', 'en-US': '

button click

' }, codeFiles: ['re-upload.vue'] @@ -148,7 +162,7 @@ export default { }, desc: { 'zh-CN': - '

图片上传模式,配置 `re-upload` 事件,上传失败的文件会显示重新上传图标,点击重新上传按钮会触发 `re-upload` 事件

', + '

图片上传模式,配置 `re-upload` 事件,上传失败的文件会显示重新上传图标,点击重新上传按钮会触发 `re-upload` 事件。

', 'en-US': '

button click

' }, codeFiles: ['re-upload-picture.vue'] @@ -308,7 +322,7 @@ export default { 'en-US': 'events' }, desc: { - 'zh-CN': '

可配置 `file-list` 属性展示对应的文件

', + 'zh-CN': '

可配置 `file-list` 属性展示对应的文件。

', 'en-US': '

button click

' }, codeFiles: ['drag-file-list.vue'] @@ -321,7 +335,7 @@ export default { }, desc: { 'zh-CN': - '

`trigger-click` 点击文件上传时触发的事件
`preview` 点击预览时触发的事件
`download-file` 点击下载时触发的事件
`download-all` 点击全部下载时触发的事件
`re-upload` 点击重新上传时触发的事件
`click-file-list` 点击上传的文件列表时触发的事件

', + '

`trigger-click` 点击文件上传时触发的事件
`preview` 点击预览时触发的事件
`download-file` 点击下载时触发的事件
`download-all` 点击全部下载时触发的事件
`re-upload` 点击重新上传时触发的事件
`click-file-list` 点击上传的文件列表时触发的事件。

', 'en-US': '

button click

' }, codeFiles: ['event-trigger-click.vue'] diff --git a/examples/sites/demos/mobile-first/app/form/prompt-slot.vue b/examples/sites/demos/mobile-first/app/form/prompt-slot.vue new file mode 100644 index 000000000..f37c7f74c --- /dev/null +++ b/examples/sites/demos/mobile-first/app/form/prompt-slot.vue @@ -0,0 +1,55 @@ + + + diff --git a/examples/sites/demos/mobile-first/app/form/webdoc/form.js b/examples/sites/demos/mobile-first/app/form/webdoc/form.js index e744baa0a..1338e8d0e 100644 --- a/examples/sites/demos/mobile-first/app/form/webdoc/form.js +++ b/examples/sites/demos/mobile-first/app/form/webdoc/form.js @@ -215,6 +215,18 @@ export default { '

Set the `validate-debounce` attribute of FormItem to `true` to enable the verification anti-jitter function. In the case of continuous input, the verification starts when the last input ends. The default value is `false`.

' }, codeFiles: ['validate-debounce.vue'] + }, + { + demoId: 'prompt-slot', + name: { + 'zh-CN': '强提示插槽', + 'en-US': 'Prompt slot' + }, + desc: { + 'zh-CN': '

通过 `prompt` 插槽,自定义强提示插槽的内容。

', + 'en-US': '

Customize the content of the strong prompt slot in the `prompt` slot.

' + }, + codeFiles: ['prompt-slot.vue'] } ] } diff --git a/examples/sites/demos/mobile-first/app/tabs/tabs-events-close.vue b/examples/sites/demos/mobile-first/app/tabs/tabs-events-close.vue index 28b351733..67705ad91 100644 --- a/examples/sites/demos/mobile-first/app/tabs/tabs-events-close.vue +++ b/examples/sites/demos/mobile-first/app/tabs/tabs-events-close.vue @@ -1,5 +1,5 @@ diff --git a/examples/sites/demos/pc/app/chart/bar/demo7.vue b/examples/sites/demos/pc/app/chart/bar/demo7.vue index b041d996e..51bd94660 100644 --- a/examples/sites/demos/pc/app/chart/bar/demo7.vue +++ b/examples/sites/demos/pc/app/chart/bar/demo7.vue @@ -14,7 +14,6 @@ export default { data() { return { options: { - // 双向柱状图形态 type: 'double-sides', direction: 'horizontal', @@ -30,7 +29,7 @@ export default { { 'Month': 'Sep', '上行': 17, '下行': 12 }, { 'Month': 'Oct', '上行': 41, '下行': 33 }, { 'Month': 'Nov', '上行': 42, '下行': 22 }, - { 'Month': 'Dec', '上行': 37, '下行': 17 }, + { 'Month': 'Dec', '上行': 37, '下行': 17 } ] } } diff --git a/examples/sites/demos/pc/app/chart/base-composition-api.vue b/examples/sites/demos/pc/app/chart/base-composition-api.vue index a4b88702f..570924d41 100644 --- a/examples/sites/demos/pc/app/chart/base-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/base-composition-api.vue @@ -14,8 +14,13 @@

饼图

color-mode切换
- +
diff --git a/examples/sites/demos/pc/app/chart/base.vue b/examples/sites/demos/pc/app/chart/base.vue index 7e77e8081..9c3ff21b6 100644 --- a/examples/sites/demos/pc/app/chart/base.vue +++ b/examples/sites/demos/pc/app/chart/base.vue @@ -14,8 +14,13 @@

饼图

color-mode切换
- +
diff --git a/examples/sites/demos/pc/app/chart/bmap/base-composition-api.vue b/examples/sites/demos/pc/app/chart/bmap/base-composition-api.vue index 7c2617cea..729b368ad 100644 --- a/examples/sites/demos/pc/app/chart/bmap/base-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/bmap/base-composition-api.vue @@ -28,6 +28,5 @@ const options = ref({ ] } ] - }) diff --git a/examples/sites/demos/pc/app/chart/bmap/bmap.spec.ts b/examples/sites/demos/pc/app/chart/bmap/bmap.spec.ts index 7dedc901d..6b0df9b3f 100644 --- a/examples/sites/demos/pc/app/chart/bmap/bmap.spec.ts +++ b/examples/sites/demos/pc/app/chart/bmap/bmap.spec.ts @@ -1,7 +1,8 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { - await page.goto('chart-baidu-map#bmap-base') + await page.goto('chart-baidu-map') const chart = page.locator('#bmap-base .hui-chart') - await expect(chart).toHaveScreenshot('base.png') + await expect(chart).toBeInViewport() + await expect(chart).toHaveScreenshot('base.png', { maxDiffPixelRatio: 0.1 }) }) diff --git a/examples/sites/demos/pc/app/chart/bmap/bmap.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/bmap/bmap.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..45c4d86ad Binary files /dev/null and b/examples/sites/demos/pc/app/chart/bmap/bmap.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/boxplot/base-composition-api.vue b/examples/sites/demos/pc/app/chart/boxplot/base-composition-api.vue index 73e99ce72..e77b5c606 100644 --- a/examples/sites/demos/pc/app/chart/boxplot/base-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/boxplot/base-composition-api.vue @@ -22,6 +22,5 @@ const options = ref({ legend: { show: false } - }) diff --git a/examples/sites/demos/pc/app/chart/boxplot/base.vue b/examples/sites/demos/pc/app/chart/boxplot/base.vue index 4b11fb4aa..b05c0e714 100644 --- a/examples/sites/demos/pc/app/chart/boxplot/base.vue +++ b/examples/sites/demos/pc/app/chart/boxplot/base.vue @@ -27,7 +27,7 @@ export default { legend: { show: false } - }, + } } } } diff --git a/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts b/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts index 1cab297dc..ced997e0a 100644 --- a/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts +++ b/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-boxplot#boxplot-base') diff --git a/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..040ccba00 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/multiple-chromium-win32.png b/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/multiple-chromium-win32.png new file mode 100644 index 000000000..d9860e26f Binary files /dev/null and b/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/multiple-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/vertical-chromium-win32.png b/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/vertical-chromium-win32.png new file mode 100644 index 000000000..d7473fc87 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/boxplot/boxplot.spec.ts-snapshots/vertical-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/candle/candle.spec.ts b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts index cba2a9ee3..d1373bd66 100644 --- a/examples/sites/demos/pc/app/chart/candle/candle.spec.ts +++ b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-candle#candle-base') diff --git a/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..1be5f42cc Binary files /dev/null and b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..16dcc1c92 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..591b8019b Binary files /dev/null and b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..f3e7e1301 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..c46a3eadc Binary files /dev/null and b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo6-chromium-win32.png b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo6-chromium-win32.png new file mode 100644 index 000000000..ee4c7cadc Binary files /dev/null and b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo6-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo7-chromium-win32.png b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo7-chromium-win32.png new file mode 100644 index 000000000..f8f10f40f Binary files /dev/null and b/examples/sites/demos/pc/app/chart/candle/candle.spec.ts-snapshots/demo7-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/candle/demo2-composition-api.vue b/examples/sites/demos/pc/app/chart/candle/demo2-composition-api.vue index 3121615a8..79d0fe111 100644 --- a/examples/sites/demos/pc/app/chart/candle/demo2-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/candle/demo2-composition-api.vue @@ -9,310 +9,44 @@ import { ref } from 'vue' import { ChartCandle as TinyChartCandle } from '@opentiny/vue' const baseData = [ - [ - '2004-01-05', - 10411.85, - 10544.07, - 10411.85, - 10575.92, - 221290000 - ], - [ - '2004-01-06', - 10543.85, - 10538.66, - 10454.37, - 10584.07, - 191460000 - ], - [ - '2004-01-07', - 10535.46, - 10529.03, - 10432.12, - 10587.55, - 225490000 - ], - [ - '2004-01-08', - 10530.07, - 10592.44, - 10480.59, - 10651.99, - 237770000 - ], - [ - '2004-01-09', - 10589.25, - 10458.89, - 10420.52, - 10603.48, - 223250000 - ], - [ - '2004-01-12', - 10461.55, - 10485.18, - 10389.85, - 10543.03, - 197960000 - ], - [ - '2004-01-13', - 10485.18, - 10427.18, - 10341.19, - 10539.25, - 197310000 - ], - [ - '2004-01-14', - 10428.67, - 10538.37, - 10426.89, - 10573.85, - 186280000 - ], - [ - '2004-01-15', - 10534.52, - 10553.85, - 10454.52, - 10639.03, - 260090000 - ], - [ - '2004-01-16', - 10556.37, - 10600.51, - 10503.71, - 10666.88, - 254170000 - ], - [ - '2004-01-20', - 10601.42, - 10528.66, - 10447.92, - 10676.96, - 224300000 - ], - [ - '2004-01-21', - 10522.77, - 10623.62, - 10453.11, - 10665.72, - 214920000 - ], - [ - '2004-01-22', - 10624.22, - 10623.18, - 10545.03, - 10717.41, - 219720000 - ], - [ - '2004-01-23', - 10625.25, - 10568.29, - 10490.14, - 10691.77, - 234260000 - ], - [ - '2004-01-26', - 10568.12, - 10702.51, - 10510.44, - 10725.18, - 186170000 - ], - [ - '2004-01-27', - 10701.11, - 10609.92, - 10579.33, - 10748.81, - 206560000 - ], - [ - '2004-01-28', - 10610.07, - 10468.37, - 10412.44, - 10703.25, - 247660000 - ], - [ - '2004-01-29', - 10467.41, - 10510.29, - 10369.92, - 10611.56, - 273970000 - ], - [ - '2004-01-30', - 10510.22, - 10488.07, - 10385.56, - 10551.03, - 208990000 - ], - [ - '2004-02-02', - 10487.78, - 10499.18, - 10395.55, - 10614.44, - 224800000 - ], - [ - '2004-02-03', - 10499.48, - 10505.18, - 10414.15, - 10571.48, - 183810000 - ], - [ - '2004-02-04', - 10503.11, - 10470.74, - 10394.81, - 10567.85, - 227760000 - ], - [ - '2004-02-05', - 10469.33, - 10495.55, - 10399.92, - 10566.37, - 187810000 - ], - [ - '2004-02-06', - 10494.89, - 10593.03, - 10433.74, - 10634.81, - 182880000 - ], - [ - '2004-02-09', - 10592.41, - 10579.03, - 10433.72, - 10634.81, - 160720000 - ], - [ - '2004-02-10', - 10578.74, - 10613.85, - 10511.18, - 10667.03, - 160590000 - ], - [ - '2004-02-11', - 10605.48, - 10737.72, - 10561.55, - 10779.41, - 277850000 - ], - [ - '2004-02-12', - 10735.18, - 10694.07, - 10636.44, - 10775.03, - 197560000 - ], - [ - '2004-02-13', - 10696.22, - 10627.85, - 10578.66, - 10755.47, - 208340000 - ], - [ - '2004-02-17', - 10628.88, - 10714.88, - 10628.88, - 10762.07, - 169730000 - ], - [ - '2004-02-18', - 10706.68, - 10671.99, - 10623.62, - 10764.36, - 164370000 - ], - [ - '2004-02-19', - 10674.59, - 10664.73, - 10626.44, - 10794.95, - 219890000 - ], - [ - '2004-02-20', - 10666.29, - 10619.03, - 10559.11, - 10722.77, - 220560000 - ], - [ - '2004-02-23', - 10619.55, - 10609.62, - 10508.89, - 10711.84, - 229950000 - ], - [ - '2004-02-24', - 10609.55, - 10566.37, - 10479.33, - 10681.41, - 225670000 - ], - [ - '2004-02-25', - 10566.59, - 10601.62, - 10509.42, - 10660.73, - 192420000 - ], - [ - '2004-02-26', - 10598.14, - 10580.14, - 10493.71, - 10652.96, - 223230000 - ], - [ - '2004-02-27', - 10581.55, - 10583.92, - 10519.03, - 10689.55, - 200050000 - ] + ['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000], + ['2004-01-06', 10543.85, 10538.66, 10454.37, 10584.07, 191460000], + ['2004-01-07', 10535.46, 10529.03, 10432.12, 10587.55, 225490000], + ['2004-01-08', 10530.07, 10592.44, 10480.59, 10651.99, 237770000], + ['2004-01-09', 10589.25, 10458.89, 10420.52, 10603.48, 223250000], + ['2004-01-12', 10461.55, 10485.18, 10389.85, 10543.03, 197960000], + ['2004-01-13', 10485.18, 10427.18, 10341.19, 10539.25, 197310000], + ['2004-01-14', 10428.67, 10538.37, 10426.89, 10573.85, 186280000], + ['2004-01-15', 10534.52, 10553.85, 10454.52, 10639.03, 260090000], + ['2004-01-16', 10556.37, 10600.51, 10503.71, 10666.88, 254170000], + ['2004-01-20', 10601.42, 10528.66, 10447.92, 10676.96, 224300000], + ['2004-01-21', 10522.77, 10623.62, 10453.11, 10665.72, 214920000], + ['2004-01-22', 10624.22, 10623.18, 10545.03, 10717.41, 219720000], + ['2004-01-23', 10625.25, 10568.29, 10490.14, 10691.77, 234260000], + ['2004-01-26', 10568.12, 10702.51, 10510.44, 10725.18, 186170000], + ['2004-01-27', 10701.11, 10609.92, 10579.33, 10748.81, 206560000], + ['2004-01-28', 10610.07, 10468.37, 10412.44, 10703.25, 247660000], + ['2004-01-29', 10467.41, 10510.29, 10369.92, 10611.56, 273970000], + ['2004-01-30', 10510.22, 10488.07, 10385.56, 10551.03, 208990000], + ['2004-02-02', 10487.78, 10499.18, 10395.55, 10614.44, 224800000], + ['2004-02-03', 10499.48, 10505.18, 10414.15, 10571.48, 183810000], + ['2004-02-04', 10503.11, 10470.74, 10394.81, 10567.85, 227760000], + ['2004-02-05', 10469.33, 10495.55, 10399.92, 10566.37, 187810000], + ['2004-02-06', 10494.89, 10593.03, 10433.74, 10634.81, 182880000], + ['2004-02-09', 10592.41, 10579.03, 10433.72, 10634.81, 160720000], + ['2004-02-10', 10578.74, 10613.85, 10511.18, 10667.03, 160590000], + ['2004-02-11', 10605.48, 10737.72, 10561.55, 10779.41, 277850000], + ['2004-02-12', 10735.18, 10694.07, 10636.44, 10775.03, 197560000], + ['2004-02-13', 10696.22, 10627.85, 10578.66, 10755.47, 208340000], + ['2004-02-17', 10628.88, 10714.88, 10628.88, 10762.07, 169730000], + ['2004-02-18', 10706.68, 10671.99, 10623.62, 10764.36, 164370000], + ['2004-02-19', 10674.59, 10664.73, 10626.44, 10794.95, 219890000], + ['2004-02-20', 10666.29, 10619.03, 10559.11, 10722.77, 220560000], + ['2004-02-23', 10619.55, 10609.62, 10508.89, 10711.84, 229950000], + ['2004-02-24', 10609.55, 10566.37, 10479.33, 10681.41, 225670000], + ['2004-02-25', 10566.59, 10601.62, 10509.42, 10660.73, 192420000], + ['2004-02-26', 10598.14, 10580.14, 10493.71, 10652.96, 223230000], + ['2004-02-27', 10581.55, 10583.92, 10519.03, 10689.55, 200050000] ] function handleData() { diff --git a/examples/sites/demos/pc/app/chart/candle/demo2.vue b/examples/sites/demos/pc/app/chart/candle/demo2.vue index 9571262b8..ea66c3faf 100644 --- a/examples/sites/demos/pc/app/chart/candle/demo2.vue +++ b/examples/sites/demos/pc/app/chart/candle/demo2.vue @@ -14,310 +14,44 @@ export default { data() { return { baseData: [ - [ - '2004-01-05', - 10411.85, - 10544.07, - 10411.85, - 10575.92, - 221290000 - ], - [ - '2004-01-06', - 10543.85, - 10538.66, - 10454.37, - 10584.07, - 191460000 - ], - [ - '2004-01-07', - 10535.46, - 10529.03, - 10432.12, - 10587.55, - 225490000 - ], - [ - '2004-01-08', - 10530.07, - 10592.44, - 10480.59, - 10651.99, - 237770000 - ], - [ - '2004-01-09', - 10589.25, - 10458.89, - 10420.52, - 10603.48, - 223250000 - ], - [ - '2004-01-12', - 10461.55, - 10485.18, - 10389.85, - 10543.03, - 197960000 - ], - [ - '2004-01-13', - 10485.18, - 10427.18, - 10341.19, - 10539.25, - 197310000 - ], - [ - '2004-01-14', - 10428.67, - 10538.37, - 10426.89, - 10573.85, - 186280000 - ], - [ - '2004-01-15', - 10534.52, - 10553.85, - 10454.52, - 10639.03, - 260090000 - ], - [ - '2004-01-16', - 10556.37, - 10600.51, - 10503.71, - 10666.88, - 254170000 - ], - [ - '2004-01-20', - 10601.42, - 10528.66, - 10447.92, - 10676.96, - 224300000 - ], - [ - '2004-01-21', - 10522.77, - 10623.62, - 10453.11, - 10665.72, - 214920000 - ], - [ - '2004-01-22', - 10624.22, - 10623.18, - 10545.03, - 10717.41, - 219720000 - ], - [ - '2004-01-23', - 10625.25, - 10568.29, - 10490.14, - 10691.77, - 234260000 - ], - [ - '2004-01-26', - 10568.12, - 10702.51, - 10510.44, - 10725.18, - 186170000 - ], - [ - '2004-01-27', - 10701.11, - 10609.92, - 10579.33, - 10748.81, - 206560000 - ], - [ - '2004-01-28', - 10610.07, - 10468.37, - 10412.44, - 10703.25, - 247660000 - ], - [ - '2004-01-29', - 10467.41, - 10510.29, - 10369.92, - 10611.56, - 273970000 - ], - [ - '2004-01-30', - 10510.22, - 10488.07, - 10385.56, - 10551.03, - 208990000 - ], - [ - '2004-02-02', - 10487.78, - 10499.18, - 10395.55, - 10614.44, - 224800000 - ], - [ - '2004-02-03', - 10499.48, - 10505.18, - 10414.15, - 10571.48, - 183810000 - ], - [ - '2004-02-04', - 10503.11, - 10470.74, - 10394.81, - 10567.85, - 227760000 - ], - [ - '2004-02-05', - 10469.33, - 10495.55, - 10399.92, - 10566.37, - 187810000 - ], - [ - '2004-02-06', - 10494.89, - 10593.03, - 10433.74, - 10634.81, - 182880000 - ], - [ - '2004-02-09', - 10592.41, - 10579.03, - 10433.72, - 10634.81, - 160720000 - ], - [ - '2004-02-10', - 10578.74, - 10613.85, - 10511.18, - 10667.03, - 160590000 - ], - [ - '2004-02-11', - 10605.48, - 10737.72, - 10561.55, - 10779.41, - 277850000 - ], - [ - '2004-02-12', - 10735.18, - 10694.07, - 10636.44, - 10775.03, - 197560000 - ], - [ - '2004-02-13', - 10696.22, - 10627.85, - 10578.66, - 10755.47, - 208340000 - ], - [ - '2004-02-17', - 10628.88, - 10714.88, - 10628.88, - 10762.07, - 169730000 - ], - [ - '2004-02-18', - 10706.68, - 10671.99, - 10623.62, - 10764.36, - 164370000 - ], - [ - '2004-02-19', - 10674.59, - 10664.73, - 10626.44, - 10794.95, - 219890000 - ], - [ - '2004-02-20', - 10666.29, - 10619.03, - 10559.11, - 10722.77, - 220560000 - ], - [ - '2004-02-23', - 10619.55, - 10609.62, - 10508.89, - 10711.84, - 229950000 - ], - [ - '2004-02-24', - 10609.55, - 10566.37, - 10479.33, - 10681.41, - 225670000 - ], - [ - '2004-02-25', - 10566.59, - 10601.62, - 10509.42, - 10660.73, - 192420000 - ], - [ - '2004-02-26', - 10598.14, - 10580.14, - 10493.71, - 10652.96, - 223230000 - ], - [ - '2004-02-27', - 10581.55, - 10583.92, - 10519.03, - 10689.55, - 200050000 - ] + ['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000], + ['2004-01-06', 10543.85, 10538.66, 10454.37, 10584.07, 191460000], + ['2004-01-07', 10535.46, 10529.03, 10432.12, 10587.55, 225490000], + ['2004-01-08', 10530.07, 10592.44, 10480.59, 10651.99, 237770000], + ['2004-01-09', 10589.25, 10458.89, 10420.52, 10603.48, 223250000], + ['2004-01-12', 10461.55, 10485.18, 10389.85, 10543.03, 197960000], + ['2004-01-13', 10485.18, 10427.18, 10341.19, 10539.25, 197310000], + ['2004-01-14', 10428.67, 10538.37, 10426.89, 10573.85, 186280000], + ['2004-01-15', 10534.52, 10553.85, 10454.52, 10639.03, 260090000], + ['2004-01-16', 10556.37, 10600.51, 10503.71, 10666.88, 254170000], + ['2004-01-20', 10601.42, 10528.66, 10447.92, 10676.96, 224300000], + ['2004-01-21', 10522.77, 10623.62, 10453.11, 10665.72, 214920000], + ['2004-01-22', 10624.22, 10623.18, 10545.03, 10717.41, 219720000], + ['2004-01-23', 10625.25, 10568.29, 10490.14, 10691.77, 234260000], + ['2004-01-26', 10568.12, 10702.51, 10510.44, 10725.18, 186170000], + ['2004-01-27', 10701.11, 10609.92, 10579.33, 10748.81, 206560000], + ['2004-01-28', 10610.07, 10468.37, 10412.44, 10703.25, 247660000], + ['2004-01-29', 10467.41, 10510.29, 10369.92, 10611.56, 273970000], + ['2004-01-30', 10510.22, 10488.07, 10385.56, 10551.03, 208990000], + ['2004-02-02', 10487.78, 10499.18, 10395.55, 10614.44, 224800000], + ['2004-02-03', 10499.48, 10505.18, 10414.15, 10571.48, 183810000], + ['2004-02-04', 10503.11, 10470.74, 10394.81, 10567.85, 227760000], + ['2004-02-05', 10469.33, 10495.55, 10399.92, 10566.37, 187810000], + ['2004-02-06', 10494.89, 10593.03, 10433.74, 10634.81, 182880000], + ['2004-02-09', 10592.41, 10579.03, 10433.72, 10634.81, 160720000], + ['2004-02-10', 10578.74, 10613.85, 10511.18, 10667.03, 160590000], + ['2004-02-11', 10605.48, 10737.72, 10561.55, 10779.41, 277850000], + ['2004-02-12', 10735.18, 10694.07, 10636.44, 10775.03, 197560000], + ['2004-02-13', 10696.22, 10627.85, 10578.66, 10755.47, 208340000], + ['2004-02-17', 10628.88, 10714.88, 10628.88, 10762.07, 169730000], + ['2004-02-18', 10706.68, 10671.99, 10623.62, 10764.36, 164370000], + ['2004-02-19', 10674.59, 10664.73, 10626.44, 10794.95, 219890000], + ['2004-02-20', 10666.29, 10619.03, 10559.11, 10722.77, 220560000], + ['2004-02-23', 10619.55, 10609.62, 10508.89, 10711.84, 229950000], + ['2004-02-24', 10609.55, 10566.37, 10479.33, 10681.41, 225670000], + ['2004-02-25', 10566.59, 10601.62, 10509.42, 10660.73, 192420000], + ['2004-02-26', 10598.14, 10580.14, 10493.71, 10652.96, 223230000], + ['2004-02-27', 10581.55, 10583.92, 10519.03, 10689.55, 200050000] ], options: { MA: [5, 10, 20, 30], diff --git a/examples/sites/demos/pc/app/chart/candle/demo3-composition-api.vue b/examples/sites/demos/pc/app/chart/candle/demo3-composition-api.vue index 36a2dcf85..83dbed8f6 100644 --- a/examples/sites/demos/pc/app/chart/candle/demo3-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/candle/demo3-composition-api.vue @@ -9,310 +9,44 @@ import { ref } from 'vue' import { ChartCandle as TinyChartCandle } from '@opentiny/vue' const baseData = [ - [ - '2004-01-05', - 10411.85, - 10544.07, - 10411.85, - 10575.92, - 221290000 - ], - [ - '2004-01-06', - 10543.85, - 10538.66, - 10454.37, - 10584.07, - 191460000 - ], - [ - '2004-01-07', - 10535.46, - 10529.03, - 10432.12, - 10587.55, - 225490000 - ], - [ - '2004-01-08', - 10530.07, - 10592.44, - 10480.59, - 10651.99, - 237770000 - ], - [ - '2004-01-09', - 10589.25, - 10458.89, - 10420.52, - 10603.48, - 223250000 - ], - [ - '2004-01-12', - 10461.55, - 10485.18, - 10389.85, - 10543.03, - 197960000 - ], - [ - '2004-01-13', - 10485.18, - 10427.18, - 10341.19, - 10539.25, - 197310000 - ], - [ - '2004-01-14', - 10428.67, - 10538.37, - 10426.89, - 10573.85, - 186280000 - ], - [ - '2004-01-15', - 10534.52, - 10553.85, - 10454.52, - 10639.03, - 260090000 - ], - [ - '2004-01-16', - 10556.37, - 10600.51, - 10503.71, - 10666.88, - 254170000 - ], - [ - '2004-01-20', - 10601.42, - 10528.66, - 10447.92, - 10676.96, - 224300000 - ], - [ - '2004-01-21', - 10522.77, - 10623.62, - 10453.11, - 10665.72, - 214920000 - ], - [ - '2004-01-22', - 10624.22, - 10623.18, - 10545.03, - 10717.41, - 219720000 - ], - [ - '2004-01-23', - 10625.25, - 10568.29, - 10490.14, - 10691.77, - 234260000 - ], - [ - '2004-01-26', - 10568.12, - 10702.51, - 10510.44, - 10725.18, - 186170000 - ], - [ - '2004-01-27', - 10701.11, - 10609.92, - 10579.33, - 10748.81, - 206560000 - ], - [ - '2004-01-28', - 10610.07, - 10468.37, - 10412.44, - 10703.25, - 247660000 - ], - [ - '2004-01-29', - 10467.41, - 10510.29, - 10369.92, - 10611.56, - 273970000 - ], - [ - '2004-01-30', - 10510.22, - 10488.07, - 10385.56, - 10551.03, - 208990000 - ], - [ - '2004-02-02', - 10487.78, - 10499.18, - 10395.55, - 10614.44, - 224800000 - ], - [ - '2004-02-03', - 10499.48, - 10505.18, - 10414.15, - 10571.48, - 183810000 - ], - [ - '2004-02-04', - 10503.11, - 10470.74, - 10394.81, - 10567.85, - 227760000 - ], - [ - '2004-02-05', - 10469.33, - 10495.55, - 10399.92, - 10566.37, - 187810000 - ], - [ - '2004-02-06', - 10494.89, - 10593.03, - 10433.74, - 10634.81, - 182880000 - ], - [ - '2004-02-09', - 10592.41, - 10579.03, - 10433.72, - 10634.81, - 160720000 - ], - [ - '2004-02-10', - 10578.74, - 10613.85, - 10511.18, - 10667.03, - 160590000 - ], - [ - '2004-02-11', - 10605.48, - 10737.72, - 10561.55, - 10779.41, - 277850000 - ], - [ - '2004-02-12', - 10735.18, - 10694.07, - 10636.44, - 10775.03, - 197560000 - ], - [ - '2004-02-13', - 10696.22, - 10627.85, - 10578.66, - 10755.47, - 208340000 - ], - [ - '2004-02-17', - 10628.88, - 10714.88, - 10628.88, - 10762.07, - 169730000 - ], - [ - '2004-02-18', - 10706.68, - 10671.99, - 10623.62, - 10764.36, - 164370000 - ], - [ - '2004-02-19', - 10674.59, - 10664.73, - 10626.44, - 10794.95, - 219890000 - ], - [ - '2004-02-20', - 10666.29, - 10619.03, - 10559.11, - 10722.77, - 220560000 - ], - [ - '2004-02-23', - 10619.55, - 10609.62, - 10508.89, - 10711.84, - 229950000 - ], - [ - '2004-02-24', - 10609.55, - 10566.37, - 10479.33, - 10681.41, - 225670000 - ], - [ - '2004-02-25', - 10566.59, - 10601.62, - 10509.42, - 10660.73, - 192420000 - ], - [ - '2004-02-26', - 10598.14, - 10580.14, - 10493.71, - 10652.96, - 223230000 - ], - [ - '2004-02-27', - 10581.55, - 10583.92, - 10519.03, - 10689.55, - 200050000 - ] + ['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000], + ['2004-01-06', 10543.85, 10538.66, 10454.37, 10584.07, 191460000], + ['2004-01-07', 10535.46, 10529.03, 10432.12, 10587.55, 225490000], + ['2004-01-08', 10530.07, 10592.44, 10480.59, 10651.99, 237770000], + ['2004-01-09', 10589.25, 10458.89, 10420.52, 10603.48, 223250000], + ['2004-01-12', 10461.55, 10485.18, 10389.85, 10543.03, 197960000], + ['2004-01-13', 10485.18, 10427.18, 10341.19, 10539.25, 197310000], + ['2004-01-14', 10428.67, 10538.37, 10426.89, 10573.85, 186280000], + ['2004-01-15', 10534.52, 10553.85, 10454.52, 10639.03, 260090000], + ['2004-01-16', 10556.37, 10600.51, 10503.71, 10666.88, 254170000], + ['2004-01-20', 10601.42, 10528.66, 10447.92, 10676.96, 224300000], + ['2004-01-21', 10522.77, 10623.62, 10453.11, 10665.72, 214920000], + ['2004-01-22', 10624.22, 10623.18, 10545.03, 10717.41, 219720000], + ['2004-01-23', 10625.25, 10568.29, 10490.14, 10691.77, 234260000], + ['2004-01-26', 10568.12, 10702.51, 10510.44, 10725.18, 186170000], + ['2004-01-27', 10701.11, 10609.92, 10579.33, 10748.81, 206560000], + ['2004-01-28', 10610.07, 10468.37, 10412.44, 10703.25, 247660000], + ['2004-01-29', 10467.41, 10510.29, 10369.92, 10611.56, 273970000], + ['2004-01-30', 10510.22, 10488.07, 10385.56, 10551.03, 208990000], + ['2004-02-02', 10487.78, 10499.18, 10395.55, 10614.44, 224800000], + ['2004-02-03', 10499.48, 10505.18, 10414.15, 10571.48, 183810000], + ['2004-02-04', 10503.11, 10470.74, 10394.81, 10567.85, 227760000], + ['2004-02-05', 10469.33, 10495.55, 10399.92, 10566.37, 187810000], + ['2004-02-06', 10494.89, 10593.03, 10433.74, 10634.81, 182880000], + ['2004-02-09', 10592.41, 10579.03, 10433.72, 10634.81, 160720000], + ['2004-02-10', 10578.74, 10613.85, 10511.18, 10667.03, 160590000], + ['2004-02-11', 10605.48, 10737.72, 10561.55, 10779.41, 277850000], + ['2004-02-12', 10735.18, 10694.07, 10636.44, 10775.03, 197560000], + ['2004-02-13', 10696.22, 10627.85, 10578.66, 10755.47, 208340000], + ['2004-02-17', 10628.88, 10714.88, 10628.88, 10762.07, 169730000], + ['2004-02-18', 10706.68, 10671.99, 10623.62, 10764.36, 164370000], + ['2004-02-19', 10674.59, 10664.73, 10626.44, 10794.95, 219890000], + ['2004-02-20', 10666.29, 10619.03, 10559.11, 10722.77, 220560000], + ['2004-02-23', 10619.55, 10609.62, 10508.89, 10711.84, 229950000], + ['2004-02-24', 10609.55, 10566.37, 10479.33, 10681.41, 225670000], + ['2004-02-25', 10566.59, 10601.62, 10509.42, 10660.73, 192420000], + ['2004-02-26', 10598.14, 10580.14, 10493.71, 10652.96, 223230000], + ['2004-02-27', 10581.55, 10583.92, 10519.03, 10689.55, 200050000] ] function handleData() { diff --git a/examples/sites/demos/pc/app/chart/candle/demo3.vue b/examples/sites/demos/pc/app/chart/candle/demo3.vue index 3c8cd2ba2..1c9f30db2 100644 --- a/examples/sites/demos/pc/app/chart/candle/demo3.vue +++ b/examples/sites/demos/pc/app/chart/candle/demo3.vue @@ -14,310 +14,44 @@ export default { data() { return { baseData: [ - [ - '2004-01-05', - 10411.85, - 10544.07, - 10411.85, - 10575.92, - 221290000 - ], - [ - '2004-01-06', - 10543.85, - 10538.66, - 10454.37, - 10584.07, - 191460000 - ], - [ - '2004-01-07', - 10535.46, - 10529.03, - 10432.12, - 10587.55, - 225490000 - ], - [ - '2004-01-08', - 10530.07, - 10592.44, - 10480.59, - 10651.99, - 237770000 - ], - [ - '2004-01-09', - 10589.25, - 10458.89, - 10420.52, - 10603.48, - 223250000 - ], - [ - '2004-01-12', - 10461.55, - 10485.18, - 10389.85, - 10543.03, - 197960000 - ], - [ - '2004-01-13', - 10485.18, - 10427.18, - 10341.19, - 10539.25, - 197310000 - ], - [ - '2004-01-14', - 10428.67, - 10538.37, - 10426.89, - 10573.85, - 186280000 - ], - [ - '2004-01-15', - 10534.52, - 10553.85, - 10454.52, - 10639.03, - 260090000 - ], - [ - '2004-01-16', - 10556.37, - 10600.51, - 10503.71, - 10666.88, - 254170000 - ], - [ - '2004-01-20', - 10601.42, - 10528.66, - 10447.92, - 10676.96, - 224300000 - ], - [ - '2004-01-21', - 10522.77, - 10623.62, - 10453.11, - 10665.72, - 214920000 - ], - [ - '2004-01-22', - 10624.22, - 10623.18, - 10545.03, - 10717.41, - 219720000 - ], - [ - '2004-01-23', - 10625.25, - 10568.29, - 10490.14, - 10691.77, - 234260000 - ], - [ - '2004-01-26', - 10568.12, - 10702.51, - 10510.44, - 10725.18, - 186170000 - ], - [ - '2004-01-27', - 10701.11, - 10609.92, - 10579.33, - 10748.81, - 206560000 - ], - [ - '2004-01-28', - 10610.07, - 10468.37, - 10412.44, - 10703.25, - 247660000 - ], - [ - '2004-01-29', - 10467.41, - 10510.29, - 10369.92, - 10611.56, - 273970000 - ], - [ - '2004-01-30', - 10510.22, - 10488.07, - 10385.56, - 10551.03, - 208990000 - ], - [ - '2004-02-02', - 10487.78, - 10499.18, - 10395.55, - 10614.44, - 224800000 - ], - [ - '2004-02-03', - 10499.48, - 10505.18, - 10414.15, - 10571.48, - 183810000 - ], - [ - '2004-02-04', - 10503.11, - 10470.74, - 10394.81, - 10567.85, - 227760000 - ], - [ - '2004-02-05', - 10469.33, - 10495.55, - 10399.92, - 10566.37, - 187810000 - ], - [ - '2004-02-06', - 10494.89, - 10593.03, - 10433.74, - 10634.81, - 182880000 - ], - [ - '2004-02-09', - 10592.41, - 10579.03, - 10433.72, - 10634.81, - 160720000 - ], - [ - '2004-02-10', - 10578.74, - 10613.85, - 10511.18, - 10667.03, - 160590000 - ], - [ - '2004-02-11', - 10605.48, - 10737.72, - 10561.55, - 10779.41, - 277850000 - ], - [ - '2004-02-12', - 10735.18, - 10694.07, - 10636.44, - 10775.03, - 197560000 - ], - [ - '2004-02-13', - 10696.22, - 10627.85, - 10578.66, - 10755.47, - 208340000 - ], - [ - '2004-02-17', - 10628.88, - 10714.88, - 10628.88, - 10762.07, - 169730000 - ], - [ - '2004-02-18', - 10706.68, - 10671.99, - 10623.62, - 10764.36, - 164370000 - ], - [ - '2004-02-19', - 10674.59, - 10664.73, - 10626.44, - 10794.95, - 219890000 - ], - [ - '2004-02-20', - 10666.29, - 10619.03, - 10559.11, - 10722.77, - 220560000 - ], - [ - '2004-02-23', - 10619.55, - 10609.62, - 10508.89, - 10711.84, - 229950000 - ], - [ - '2004-02-24', - 10609.55, - 10566.37, - 10479.33, - 10681.41, - 225670000 - ], - [ - '2004-02-25', - 10566.59, - 10601.62, - 10509.42, - 10660.73, - 192420000 - ], - [ - '2004-02-26', - 10598.14, - 10580.14, - 10493.71, - 10652.96, - 223230000 - ], - [ - '2004-02-27', - 10581.55, - 10583.92, - 10519.03, - 10689.55, - 200050000 - ] + ['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000], + ['2004-01-06', 10543.85, 10538.66, 10454.37, 10584.07, 191460000], + ['2004-01-07', 10535.46, 10529.03, 10432.12, 10587.55, 225490000], + ['2004-01-08', 10530.07, 10592.44, 10480.59, 10651.99, 237770000], + ['2004-01-09', 10589.25, 10458.89, 10420.52, 10603.48, 223250000], + ['2004-01-12', 10461.55, 10485.18, 10389.85, 10543.03, 197960000], + ['2004-01-13', 10485.18, 10427.18, 10341.19, 10539.25, 197310000], + ['2004-01-14', 10428.67, 10538.37, 10426.89, 10573.85, 186280000], + ['2004-01-15', 10534.52, 10553.85, 10454.52, 10639.03, 260090000], + ['2004-01-16', 10556.37, 10600.51, 10503.71, 10666.88, 254170000], + ['2004-01-20', 10601.42, 10528.66, 10447.92, 10676.96, 224300000], + ['2004-01-21', 10522.77, 10623.62, 10453.11, 10665.72, 214920000], + ['2004-01-22', 10624.22, 10623.18, 10545.03, 10717.41, 219720000], + ['2004-01-23', 10625.25, 10568.29, 10490.14, 10691.77, 234260000], + ['2004-01-26', 10568.12, 10702.51, 10510.44, 10725.18, 186170000], + ['2004-01-27', 10701.11, 10609.92, 10579.33, 10748.81, 206560000], + ['2004-01-28', 10610.07, 10468.37, 10412.44, 10703.25, 247660000], + ['2004-01-29', 10467.41, 10510.29, 10369.92, 10611.56, 273970000], + ['2004-01-30', 10510.22, 10488.07, 10385.56, 10551.03, 208990000], + ['2004-02-02', 10487.78, 10499.18, 10395.55, 10614.44, 224800000], + ['2004-02-03', 10499.48, 10505.18, 10414.15, 10571.48, 183810000], + ['2004-02-04', 10503.11, 10470.74, 10394.81, 10567.85, 227760000], + ['2004-02-05', 10469.33, 10495.55, 10399.92, 10566.37, 187810000], + ['2004-02-06', 10494.89, 10593.03, 10433.74, 10634.81, 182880000], + ['2004-02-09', 10592.41, 10579.03, 10433.72, 10634.81, 160720000], + ['2004-02-10', 10578.74, 10613.85, 10511.18, 10667.03, 160590000], + ['2004-02-11', 10605.48, 10737.72, 10561.55, 10779.41, 277850000], + ['2004-02-12', 10735.18, 10694.07, 10636.44, 10775.03, 197560000], + ['2004-02-13', 10696.22, 10627.85, 10578.66, 10755.47, 208340000], + ['2004-02-17', 10628.88, 10714.88, 10628.88, 10762.07, 169730000], + ['2004-02-18', 10706.68, 10671.99, 10623.62, 10764.36, 164370000], + ['2004-02-19', 10674.59, 10664.73, 10626.44, 10794.95, 219890000], + ['2004-02-20', 10666.29, 10619.03, 10559.11, 10722.77, 220560000], + ['2004-02-23', 10619.55, 10609.62, 10508.89, 10711.84, 229950000], + ['2004-02-24', 10609.55, 10566.37, 10479.33, 10681.41, 225670000], + ['2004-02-25', 10566.59, 10601.62, 10509.42, 10660.73, 192420000], + ['2004-02-26', 10598.14, 10580.14, 10493.71, 10652.96, 223230000], + ['2004-02-27', 10581.55, 10583.92, 10519.03, 10689.55, 200050000] ], options: { volume: true, diff --git a/examples/sites/demos/pc/app/chart/candle/demo4-composition-api.vue b/examples/sites/demos/pc/app/chart/candle/demo4-composition-api.vue index 94681b161..016463d94 100644 --- a/examples/sites/demos/pc/app/chart/candle/demo4-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/candle/demo4-composition-api.vue @@ -9,310 +9,44 @@ import { ref } from 'vue' import { ChartCandle as TinyChartCandle } from '@opentiny/vue' const baseData = [ - [ - '2004-01-05', - 10411.85, - 10544.07, - 10411.85, - 10575.92, - 221290000 - ], - [ - '2004-01-06', - 10543.85, - 10538.66, - 10454.37, - 10584.07, - 191460000 - ], - [ - '2004-01-07', - 10535.46, - 10529.03, - 10432.12, - 10587.55, - 225490000 - ], - [ - '2004-01-08', - 10530.07, - 10592.44, - 10480.59, - 10651.99, - 237770000 - ], - [ - '2004-01-09', - 10589.25, - 10458.89, - 10420.52, - 10603.48, - 223250000 - ], - [ - '2004-01-12', - 10461.55, - 10485.18, - 10389.85, - 10543.03, - 197960000 - ], - [ - '2004-01-13', - 10485.18, - 10427.18, - 10341.19, - 10539.25, - 197310000 - ], - [ - '2004-01-14', - 10428.67, - 10538.37, - 10426.89, - 10573.85, - 186280000 - ], - [ - '2004-01-15', - 10534.52, - 10553.85, - 10454.52, - 10639.03, - 260090000 - ], - [ - '2004-01-16', - 10556.37, - 10600.51, - 10503.71, - 10666.88, - 254170000 - ], - [ - '2004-01-20', - 10601.42, - 10528.66, - 10447.92, - 10676.96, - 224300000 - ], - [ - '2004-01-21', - 10522.77, - 10623.62, - 10453.11, - 10665.72, - 214920000 - ], - [ - '2004-01-22', - 10624.22, - 10623.18, - 10545.03, - 10717.41, - 219720000 - ], - [ - '2004-01-23', - 10625.25, - 10568.29, - 10490.14, - 10691.77, - 234260000 - ], - [ - '2004-01-26', - 10568.12, - 10702.51, - 10510.44, - 10725.18, - 186170000 - ], - [ - '2004-01-27', - 10701.11, - 10609.92, - 10579.33, - 10748.81, - 206560000 - ], - [ - '2004-01-28', - 10610.07, - 10468.37, - 10412.44, - 10703.25, - 247660000 - ], - [ - '2004-01-29', - 10467.41, - 10510.29, - 10369.92, - 10611.56, - 273970000 - ], - [ - '2004-01-30', - 10510.22, - 10488.07, - 10385.56, - 10551.03, - 208990000 - ], - [ - '2004-02-02', - 10487.78, - 10499.18, - 10395.55, - 10614.44, - 224800000 - ], - [ - '2004-02-03', - 10499.48, - 10505.18, - 10414.15, - 10571.48, - 183810000 - ], - [ - '2004-02-04', - 10503.11, - 10470.74, - 10394.81, - 10567.85, - 227760000 - ], - [ - '2004-02-05', - 10469.33, - 10495.55, - 10399.92, - 10566.37, - 187810000 - ], - [ - '2004-02-06', - 10494.89, - 10593.03, - 10433.74, - 10634.81, - 182880000 - ], - [ - '2004-02-09', - 10592.41, - 10579.03, - 10433.72, - 10634.81, - 160720000 - ], - [ - '2004-02-10', - 10578.74, - 10613.85, - 10511.18, - 10667.03, - 160590000 - ], - [ - '2004-02-11', - 10605.48, - 10737.72, - 10561.55, - 10779.41, - 277850000 - ], - [ - '2004-02-12', - 10735.18, - 10694.07, - 10636.44, - 10775.03, - 197560000 - ], - [ - '2004-02-13', - 10696.22, - 10627.85, - 10578.66, - 10755.47, - 208340000 - ], - [ - '2004-02-17', - 10628.88, - 10714.88, - 10628.88, - 10762.07, - 169730000 - ], - [ - '2004-02-18', - 10706.68, - 10671.99, - 10623.62, - 10764.36, - 164370000 - ], - [ - '2004-02-19', - 10674.59, - 10664.73, - 10626.44, - 10794.95, - 219890000 - ], - [ - '2004-02-20', - 10666.29, - 10619.03, - 10559.11, - 10722.77, - 220560000 - ], - [ - '2004-02-23', - 10619.55, - 10609.62, - 10508.89, - 10711.84, - 229950000 - ], - [ - '2004-02-24', - 10609.55, - 10566.37, - 10479.33, - 10681.41, - 225670000 - ], - [ - '2004-02-25', - 10566.59, - 10601.62, - 10509.42, - 10660.73, - 192420000 - ], - [ - '2004-02-26', - 10598.14, - 10580.14, - 10493.71, - 10652.96, - 223230000 - ], - [ - '2004-02-27', - 10581.55, - 10583.92, - 10519.03, - 10689.55, - 200050000 - ] + ['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000], + ['2004-01-06', 10543.85, 10538.66, 10454.37, 10584.07, 191460000], + ['2004-01-07', 10535.46, 10529.03, 10432.12, 10587.55, 225490000], + ['2004-01-08', 10530.07, 10592.44, 10480.59, 10651.99, 237770000], + ['2004-01-09', 10589.25, 10458.89, 10420.52, 10603.48, 223250000], + ['2004-01-12', 10461.55, 10485.18, 10389.85, 10543.03, 197960000], + ['2004-01-13', 10485.18, 10427.18, 10341.19, 10539.25, 197310000], + ['2004-01-14', 10428.67, 10538.37, 10426.89, 10573.85, 186280000], + ['2004-01-15', 10534.52, 10553.85, 10454.52, 10639.03, 260090000], + ['2004-01-16', 10556.37, 10600.51, 10503.71, 10666.88, 254170000], + ['2004-01-20', 10601.42, 10528.66, 10447.92, 10676.96, 224300000], + ['2004-01-21', 10522.77, 10623.62, 10453.11, 10665.72, 214920000], + ['2004-01-22', 10624.22, 10623.18, 10545.03, 10717.41, 219720000], + ['2004-01-23', 10625.25, 10568.29, 10490.14, 10691.77, 234260000], + ['2004-01-26', 10568.12, 10702.51, 10510.44, 10725.18, 186170000], + ['2004-01-27', 10701.11, 10609.92, 10579.33, 10748.81, 206560000], + ['2004-01-28', 10610.07, 10468.37, 10412.44, 10703.25, 247660000], + ['2004-01-29', 10467.41, 10510.29, 10369.92, 10611.56, 273970000], + ['2004-01-30', 10510.22, 10488.07, 10385.56, 10551.03, 208990000], + ['2004-02-02', 10487.78, 10499.18, 10395.55, 10614.44, 224800000], + ['2004-02-03', 10499.48, 10505.18, 10414.15, 10571.48, 183810000], + ['2004-02-04', 10503.11, 10470.74, 10394.81, 10567.85, 227760000], + ['2004-02-05', 10469.33, 10495.55, 10399.92, 10566.37, 187810000], + ['2004-02-06', 10494.89, 10593.03, 10433.74, 10634.81, 182880000], + ['2004-02-09', 10592.41, 10579.03, 10433.72, 10634.81, 160720000], + ['2004-02-10', 10578.74, 10613.85, 10511.18, 10667.03, 160590000], + ['2004-02-11', 10605.48, 10737.72, 10561.55, 10779.41, 277850000], + ['2004-02-12', 10735.18, 10694.07, 10636.44, 10775.03, 197560000], + ['2004-02-13', 10696.22, 10627.85, 10578.66, 10755.47, 208340000], + ['2004-02-17', 10628.88, 10714.88, 10628.88, 10762.07, 169730000], + ['2004-02-18', 10706.68, 10671.99, 10623.62, 10764.36, 164370000], + ['2004-02-19', 10674.59, 10664.73, 10626.44, 10794.95, 219890000], + ['2004-02-20', 10666.29, 10619.03, 10559.11, 10722.77, 220560000], + ['2004-02-23', 10619.55, 10609.62, 10508.89, 10711.84, 229950000], + ['2004-02-24', 10609.55, 10566.37, 10479.33, 10681.41, 225670000], + ['2004-02-25', 10566.59, 10601.62, 10509.42, 10660.73, 192420000], + ['2004-02-26', 10598.14, 10580.14, 10493.71, 10652.96, 223230000], + ['2004-02-27', 10581.55, 10583.92, 10519.03, 10689.55, 200050000] ] function handleData() { diff --git a/examples/sites/demos/pc/app/chart/candle/demo4.vue b/examples/sites/demos/pc/app/chart/candle/demo4.vue index 0ff1ec6f3..97a2d68e4 100644 --- a/examples/sites/demos/pc/app/chart/candle/demo4.vue +++ b/examples/sites/demos/pc/app/chart/candle/demo4.vue @@ -14,310 +14,44 @@ export default { data() { return { baseData: [ - [ - '2004-01-05', - 10411.85, - 10544.07, - 10411.85, - 10575.92, - 221290000 - ], - [ - '2004-01-06', - 10543.85, - 10538.66, - 10454.37, - 10584.07, - 191460000 - ], - [ - '2004-01-07', - 10535.46, - 10529.03, - 10432.12, - 10587.55, - 225490000 - ], - [ - '2004-01-08', - 10530.07, - 10592.44, - 10480.59, - 10651.99, - 237770000 - ], - [ - '2004-01-09', - 10589.25, - 10458.89, - 10420.52, - 10603.48, - 223250000 - ], - [ - '2004-01-12', - 10461.55, - 10485.18, - 10389.85, - 10543.03, - 197960000 - ], - [ - '2004-01-13', - 10485.18, - 10427.18, - 10341.19, - 10539.25, - 197310000 - ], - [ - '2004-01-14', - 10428.67, - 10538.37, - 10426.89, - 10573.85, - 186280000 - ], - [ - '2004-01-15', - 10534.52, - 10553.85, - 10454.52, - 10639.03, - 260090000 - ], - [ - '2004-01-16', - 10556.37, - 10600.51, - 10503.71, - 10666.88, - 254170000 - ], - [ - '2004-01-20', - 10601.42, - 10528.66, - 10447.92, - 10676.96, - 224300000 - ], - [ - '2004-01-21', - 10522.77, - 10623.62, - 10453.11, - 10665.72, - 214920000 - ], - [ - '2004-01-22', - 10624.22, - 10623.18, - 10545.03, - 10717.41, - 219720000 - ], - [ - '2004-01-23', - 10625.25, - 10568.29, - 10490.14, - 10691.77, - 234260000 - ], - [ - '2004-01-26', - 10568.12, - 10702.51, - 10510.44, - 10725.18, - 186170000 - ], - [ - '2004-01-27', - 10701.11, - 10609.92, - 10579.33, - 10748.81, - 206560000 - ], - [ - '2004-01-28', - 10610.07, - 10468.37, - 10412.44, - 10703.25, - 247660000 - ], - [ - '2004-01-29', - 10467.41, - 10510.29, - 10369.92, - 10611.56, - 273970000 - ], - [ - '2004-01-30', - 10510.22, - 10488.07, - 10385.56, - 10551.03, - 208990000 - ], - [ - '2004-02-02', - 10487.78, - 10499.18, - 10395.55, - 10614.44, - 224800000 - ], - [ - '2004-02-03', - 10499.48, - 10505.18, - 10414.15, - 10571.48, - 183810000 - ], - [ - '2004-02-04', - 10503.11, - 10470.74, - 10394.81, - 10567.85, - 227760000 - ], - [ - '2004-02-05', - 10469.33, - 10495.55, - 10399.92, - 10566.37, - 187810000 - ], - [ - '2004-02-06', - 10494.89, - 10593.03, - 10433.74, - 10634.81, - 182880000 - ], - [ - '2004-02-09', - 10592.41, - 10579.03, - 10433.72, - 10634.81, - 160720000 - ], - [ - '2004-02-10', - 10578.74, - 10613.85, - 10511.18, - 10667.03, - 160590000 - ], - [ - '2004-02-11', - 10605.48, - 10737.72, - 10561.55, - 10779.41, - 277850000 - ], - [ - '2004-02-12', - 10735.18, - 10694.07, - 10636.44, - 10775.03, - 197560000 - ], - [ - '2004-02-13', - 10696.22, - 10627.85, - 10578.66, - 10755.47, - 208340000 - ], - [ - '2004-02-17', - 10628.88, - 10714.88, - 10628.88, - 10762.07, - 169730000 - ], - [ - '2004-02-18', - 10706.68, - 10671.99, - 10623.62, - 10764.36, - 164370000 - ], - [ - '2004-02-19', - 10674.59, - 10664.73, - 10626.44, - 10794.95, - 219890000 - ], - [ - '2004-02-20', - 10666.29, - 10619.03, - 10559.11, - 10722.77, - 220560000 - ], - [ - '2004-02-23', - 10619.55, - 10609.62, - 10508.89, - 10711.84, - 229950000 - ], - [ - '2004-02-24', - 10609.55, - 10566.37, - 10479.33, - 10681.41, - 225670000 - ], - [ - '2004-02-25', - 10566.59, - 10601.62, - 10509.42, - 10660.73, - 192420000 - ], - [ - '2004-02-26', - 10598.14, - 10580.14, - 10493.71, - 10652.96, - 223230000 - ], - [ - '2004-02-27', - 10581.55, - 10583.92, - 10519.03, - 10689.55, - 200050000 - ] + ['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000], + ['2004-01-06', 10543.85, 10538.66, 10454.37, 10584.07, 191460000], + ['2004-01-07', 10535.46, 10529.03, 10432.12, 10587.55, 225490000], + ['2004-01-08', 10530.07, 10592.44, 10480.59, 10651.99, 237770000], + ['2004-01-09', 10589.25, 10458.89, 10420.52, 10603.48, 223250000], + ['2004-01-12', 10461.55, 10485.18, 10389.85, 10543.03, 197960000], + ['2004-01-13', 10485.18, 10427.18, 10341.19, 10539.25, 197310000], + ['2004-01-14', 10428.67, 10538.37, 10426.89, 10573.85, 186280000], + ['2004-01-15', 10534.52, 10553.85, 10454.52, 10639.03, 260090000], + ['2004-01-16', 10556.37, 10600.51, 10503.71, 10666.88, 254170000], + ['2004-01-20', 10601.42, 10528.66, 10447.92, 10676.96, 224300000], + ['2004-01-21', 10522.77, 10623.62, 10453.11, 10665.72, 214920000], + ['2004-01-22', 10624.22, 10623.18, 10545.03, 10717.41, 219720000], + ['2004-01-23', 10625.25, 10568.29, 10490.14, 10691.77, 234260000], + ['2004-01-26', 10568.12, 10702.51, 10510.44, 10725.18, 186170000], + ['2004-01-27', 10701.11, 10609.92, 10579.33, 10748.81, 206560000], + ['2004-01-28', 10610.07, 10468.37, 10412.44, 10703.25, 247660000], + ['2004-01-29', 10467.41, 10510.29, 10369.92, 10611.56, 273970000], + ['2004-01-30', 10510.22, 10488.07, 10385.56, 10551.03, 208990000], + ['2004-02-02', 10487.78, 10499.18, 10395.55, 10614.44, 224800000], + ['2004-02-03', 10499.48, 10505.18, 10414.15, 10571.48, 183810000], + ['2004-02-04', 10503.11, 10470.74, 10394.81, 10567.85, 227760000], + ['2004-02-05', 10469.33, 10495.55, 10399.92, 10566.37, 187810000], + ['2004-02-06', 10494.89, 10593.03, 10433.74, 10634.81, 182880000], + ['2004-02-09', 10592.41, 10579.03, 10433.72, 10634.81, 160720000], + ['2004-02-10', 10578.74, 10613.85, 10511.18, 10667.03, 160590000], + ['2004-02-11', 10605.48, 10737.72, 10561.55, 10779.41, 277850000], + ['2004-02-12', 10735.18, 10694.07, 10636.44, 10775.03, 197560000], + ['2004-02-13', 10696.22, 10627.85, 10578.66, 10755.47, 208340000], + ['2004-02-17', 10628.88, 10714.88, 10628.88, 10762.07, 169730000], + ['2004-02-18', 10706.68, 10671.99, 10623.62, 10764.36, 164370000], + ['2004-02-19', 10674.59, 10664.73, 10626.44, 10794.95, 219890000], + ['2004-02-20', 10666.29, 10619.03, 10559.11, 10722.77, 220560000], + ['2004-02-23', 10619.55, 10609.62, 10508.89, 10711.84, 229950000], + ['2004-02-24', 10609.55, 10566.37, 10479.33, 10681.41, 225670000], + ['2004-02-25', 10566.59, 10601.62, 10509.42, 10660.73, 192420000], + ['2004-02-26', 10598.14, 10580.14, 10493.71, 10652.96, 223230000], + ['2004-02-27', 10581.55, 10583.92, 10519.03, 10689.55, 200050000] ], options: { dataZoom: { diff --git a/examples/sites/demos/pc/app/chart/candle/demo5-composition-api.vue b/examples/sites/demos/pc/app/chart/candle/demo5-composition-api.vue index 14bf00d45..4745f184b 100644 --- a/examples/sites/demos/pc/app/chart/candle/demo5-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/candle/demo5-composition-api.vue @@ -9,310 +9,44 @@ import { ref } from 'vue' import { ChartCandle as TinyChartCandle } from '@opentiny/vue' const baseData = [ - [ - '2004-01-05', - 10411.85, - 10544.07, - 10411.85, - 10575.92, - 221290000 - ], - [ - '2004-01-06', - 10543.85, - 10538.66, - 10454.37, - 10584.07, - 191460000 - ], - [ - '2004-01-07', - 10535.46, - 10529.03, - 10432.12, - 10587.55, - 225490000 - ], - [ - '2004-01-08', - 10530.07, - 10592.44, - 10480.59, - 10651.99, - 237770000 - ], - [ - '2004-01-09', - 10589.25, - 10458.89, - 10420.52, - 10603.48, - 223250000 - ], - [ - '2004-01-12', - 10461.55, - 10485.18, - 10389.85, - 10543.03, - 197960000 - ], - [ - '2004-01-13', - 10485.18, - 10427.18, - 10341.19, - 10539.25, - 197310000 - ], - [ - '2004-01-14', - 10428.67, - 10538.37, - 10426.89, - 10573.85, - 186280000 - ], - [ - '2004-01-15', - 10534.52, - 10553.85, - 10454.52, - 10639.03, - 260090000 - ], - [ - '2004-01-16', - 10556.37, - 10600.51, - 10503.71, - 10666.88, - 254170000 - ], - [ - '2004-01-20', - 10601.42, - 10528.66, - 10447.92, - 10676.96, - 224300000 - ], - [ - '2004-01-21', - 10522.77, - 10623.62, - 10453.11, - 10665.72, - 214920000 - ], - [ - '2004-01-22', - 10624.22, - 10623.18, - 10545.03, - 10717.41, - 219720000 - ], - [ - '2004-01-23', - 10625.25, - 10568.29, - 10490.14, - 10691.77, - 234260000 - ], - [ - '2004-01-26', - 10568.12, - 10702.51, - 10510.44, - 10725.18, - 186170000 - ], - [ - '2004-01-27', - 10701.11, - 10609.92, - 10579.33, - 10748.81, - 206560000 - ], - [ - '2004-01-28', - 10610.07, - 10468.37, - 10412.44, - 10703.25, - 247660000 - ], - [ - '2004-01-29', - 10467.41, - 10510.29, - 10369.92, - 10611.56, - 273970000 - ], - [ - '2004-01-30', - 10510.22, - 10488.07, - 10385.56, - 10551.03, - 208990000 - ], - [ - '2004-02-02', - 10487.78, - 10499.18, - 10395.55, - 10614.44, - 224800000 - ], - [ - '2004-02-03', - 10499.48, - 10505.18, - 10414.15, - 10571.48, - 183810000 - ], - [ - '2004-02-04', - 10503.11, - 10470.74, - 10394.81, - 10567.85, - 227760000 - ], - [ - '2004-02-05', - 10469.33, - 10495.55, - 10399.92, - 10566.37, - 187810000 - ], - [ - '2004-02-06', - 10494.89, - 10593.03, - 10433.74, - 10634.81, - 182880000 - ], - [ - '2004-02-09', - 10592.41, - 10579.03, - 10433.72, - 10634.81, - 160720000 - ], - [ - '2004-02-10', - 10578.74, - 10613.85, - 10511.18, - 10667.03, - 160590000 - ], - [ - '2004-02-11', - 10605.48, - 10737.72, - 10561.55, - 10779.41, - 277850000 - ], - [ - '2004-02-12', - 10735.18, - 10694.07, - 10636.44, - 10775.03, - 197560000 - ], - [ - '2004-02-13', - 10696.22, - 10627.85, - 10578.66, - 10755.47, - 208340000 - ], - [ - '2004-02-17', - 10628.88, - 10714.88, - 10628.88, - 10762.07, - 169730000 - ], - [ - '2004-02-18', - 10706.68, - 10671.99, - 10623.62, - 10764.36, - 164370000 - ], - [ - '2004-02-19', - 10674.59, - 10664.73, - 10626.44, - 10794.95, - 219890000 - ], - [ - '2004-02-20', - 10666.29, - 10619.03, - 10559.11, - 10722.77, - 220560000 - ], - [ - '2004-02-23', - 10619.55, - 10609.62, - 10508.89, - 10711.84, - 229950000 - ], - [ - '2004-02-24', - 10609.55, - 10566.37, - 10479.33, - 10681.41, - 225670000 - ], - [ - '2004-02-25', - 10566.59, - 10601.62, - 10509.42, - 10660.73, - 192420000 - ], - [ - '2004-02-26', - 10598.14, - 10580.14, - 10493.71, - 10652.96, - 223230000 - ], - [ - '2004-02-27', - 10581.55, - 10583.92, - 10519.03, - 10689.55, - 200050000 - ] + ['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000], + ['2004-01-06', 10543.85, 10538.66, 10454.37, 10584.07, 191460000], + ['2004-01-07', 10535.46, 10529.03, 10432.12, 10587.55, 225490000], + ['2004-01-08', 10530.07, 10592.44, 10480.59, 10651.99, 237770000], + ['2004-01-09', 10589.25, 10458.89, 10420.52, 10603.48, 223250000], + ['2004-01-12', 10461.55, 10485.18, 10389.85, 10543.03, 197960000], + ['2004-01-13', 10485.18, 10427.18, 10341.19, 10539.25, 197310000], + ['2004-01-14', 10428.67, 10538.37, 10426.89, 10573.85, 186280000], + ['2004-01-15', 10534.52, 10553.85, 10454.52, 10639.03, 260090000], + ['2004-01-16', 10556.37, 10600.51, 10503.71, 10666.88, 254170000], + ['2004-01-20', 10601.42, 10528.66, 10447.92, 10676.96, 224300000], + ['2004-01-21', 10522.77, 10623.62, 10453.11, 10665.72, 214920000], + ['2004-01-22', 10624.22, 10623.18, 10545.03, 10717.41, 219720000], + ['2004-01-23', 10625.25, 10568.29, 10490.14, 10691.77, 234260000], + ['2004-01-26', 10568.12, 10702.51, 10510.44, 10725.18, 186170000], + ['2004-01-27', 10701.11, 10609.92, 10579.33, 10748.81, 206560000], + ['2004-01-28', 10610.07, 10468.37, 10412.44, 10703.25, 247660000], + ['2004-01-29', 10467.41, 10510.29, 10369.92, 10611.56, 273970000], + ['2004-01-30', 10510.22, 10488.07, 10385.56, 10551.03, 208990000], + ['2004-02-02', 10487.78, 10499.18, 10395.55, 10614.44, 224800000], + ['2004-02-03', 10499.48, 10505.18, 10414.15, 10571.48, 183810000], + ['2004-02-04', 10503.11, 10470.74, 10394.81, 10567.85, 227760000], + ['2004-02-05', 10469.33, 10495.55, 10399.92, 10566.37, 187810000], + ['2004-02-06', 10494.89, 10593.03, 10433.74, 10634.81, 182880000], + ['2004-02-09', 10592.41, 10579.03, 10433.72, 10634.81, 160720000], + ['2004-02-10', 10578.74, 10613.85, 10511.18, 10667.03, 160590000], + ['2004-02-11', 10605.48, 10737.72, 10561.55, 10779.41, 277850000], + ['2004-02-12', 10735.18, 10694.07, 10636.44, 10775.03, 197560000], + ['2004-02-13', 10696.22, 10627.85, 10578.66, 10755.47, 208340000], + ['2004-02-17', 10628.88, 10714.88, 10628.88, 10762.07, 169730000], + ['2004-02-18', 10706.68, 10671.99, 10623.62, 10764.36, 164370000], + ['2004-02-19', 10674.59, 10664.73, 10626.44, 10794.95, 219890000], + ['2004-02-20', 10666.29, 10619.03, 10559.11, 10722.77, 220560000], + ['2004-02-23', 10619.55, 10609.62, 10508.89, 10711.84, 229950000], + ['2004-02-24', 10609.55, 10566.37, 10479.33, 10681.41, 225670000], + ['2004-02-25', 10566.59, 10601.62, 10509.42, 10660.73, 192420000], + ['2004-02-26', 10598.14, 10580.14, 10493.71, 10652.96, 223230000], + ['2004-02-27', 10581.55, 10583.92, 10519.03, 10689.55, 200050000] ] function handleData() { diff --git a/examples/sites/demos/pc/app/chart/candle/demo5.vue b/examples/sites/demos/pc/app/chart/candle/demo5.vue index 8f41cb660..578d8455c 100644 --- a/examples/sites/demos/pc/app/chart/candle/demo5.vue +++ b/examples/sites/demos/pc/app/chart/candle/demo5.vue @@ -14,310 +14,44 @@ export default { data() { return { baseData: [ - [ - '2004-01-05', - 10411.85, - 10544.07, - 10411.85, - 10575.92, - 221290000 - ], - [ - '2004-01-06', - 10543.85, - 10538.66, - 10454.37, - 10584.07, - 191460000 - ], - [ - '2004-01-07', - 10535.46, - 10529.03, - 10432.12, - 10587.55, - 225490000 - ], - [ - '2004-01-08', - 10530.07, - 10592.44, - 10480.59, - 10651.99, - 237770000 - ], - [ - '2004-01-09', - 10589.25, - 10458.89, - 10420.52, - 10603.48, - 223250000 - ], - [ - '2004-01-12', - 10461.55, - 10485.18, - 10389.85, - 10543.03, - 197960000 - ], - [ - '2004-01-13', - 10485.18, - 10427.18, - 10341.19, - 10539.25, - 197310000 - ], - [ - '2004-01-14', - 10428.67, - 10538.37, - 10426.89, - 10573.85, - 186280000 - ], - [ - '2004-01-15', - 10534.52, - 10553.85, - 10454.52, - 10639.03, - 260090000 - ], - [ - '2004-01-16', - 10556.37, - 10600.51, - 10503.71, - 10666.88, - 254170000 - ], - [ - '2004-01-20', - 10601.42, - 10528.66, - 10447.92, - 10676.96, - 224300000 - ], - [ - '2004-01-21', - 10522.77, - 10623.62, - 10453.11, - 10665.72, - 214920000 - ], - [ - '2004-01-22', - 10624.22, - 10623.18, - 10545.03, - 10717.41, - 219720000 - ], - [ - '2004-01-23', - 10625.25, - 10568.29, - 10490.14, - 10691.77, - 234260000 - ], - [ - '2004-01-26', - 10568.12, - 10702.51, - 10510.44, - 10725.18, - 186170000 - ], - [ - '2004-01-27', - 10701.11, - 10609.92, - 10579.33, - 10748.81, - 206560000 - ], - [ - '2004-01-28', - 10610.07, - 10468.37, - 10412.44, - 10703.25, - 247660000 - ], - [ - '2004-01-29', - 10467.41, - 10510.29, - 10369.92, - 10611.56, - 273970000 - ], - [ - '2004-01-30', - 10510.22, - 10488.07, - 10385.56, - 10551.03, - 208990000 - ], - [ - '2004-02-02', - 10487.78, - 10499.18, - 10395.55, - 10614.44, - 224800000 - ], - [ - '2004-02-03', - 10499.48, - 10505.18, - 10414.15, - 10571.48, - 183810000 - ], - [ - '2004-02-04', - 10503.11, - 10470.74, - 10394.81, - 10567.85, - 227760000 - ], - [ - '2004-02-05', - 10469.33, - 10495.55, - 10399.92, - 10566.37, - 187810000 - ], - [ - '2004-02-06', - 10494.89, - 10593.03, - 10433.74, - 10634.81, - 182880000 - ], - [ - '2004-02-09', - 10592.41, - 10579.03, - 10433.72, - 10634.81, - 160720000 - ], - [ - '2004-02-10', - 10578.74, - 10613.85, - 10511.18, - 10667.03, - 160590000 - ], - [ - '2004-02-11', - 10605.48, - 10737.72, - 10561.55, - 10779.41, - 277850000 - ], - [ - '2004-02-12', - 10735.18, - 10694.07, - 10636.44, - 10775.03, - 197560000 - ], - [ - '2004-02-13', - 10696.22, - 10627.85, - 10578.66, - 10755.47, - 208340000 - ], - [ - '2004-02-17', - 10628.88, - 10714.88, - 10628.88, - 10762.07, - 169730000 - ], - [ - '2004-02-18', - 10706.68, - 10671.99, - 10623.62, - 10764.36, - 164370000 - ], - [ - '2004-02-19', - 10674.59, - 10664.73, - 10626.44, - 10794.95, - 219890000 - ], - [ - '2004-02-20', - 10666.29, - 10619.03, - 10559.11, - 10722.77, - 220560000 - ], - [ - '2004-02-23', - 10619.55, - 10609.62, - 10508.89, - 10711.84, - 229950000 - ], - [ - '2004-02-24', - 10609.55, - 10566.37, - 10479.33, - 10681.41, - 225670000 - ], - [ - '2004-02-25', - 10566.59, - 10601.62, - 10509.42, - 10660.73, - 192420000 - ], - [ - '2004-02-26', - 10598.14, - 10580.14, - 10493.71, - 10652.96, - 223230000 - ], - [ - '2004-02-27', - 10581.55, - 10583.92, - 10519.03, - 10689.55, - 200050000 - ] + ['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000], + ['2004-01-06', 10543.85, 10538.66, 10454.37, 10584.07, 191460000], + ['2004-01-07', 10535.46, 10529.03, 10432.12, 10587.55, 225490000], + ['2004-01-08', 10530.07, 10592.44, 10480.59, 10651.99, 237770000], + ['2004-01-09', 10589.25, 10458.89, 10420.52, 10603.48, 223250000], + ['2004-01-12', 10461.55, 10485.18, 10389.85, 10543.03, 197960000], + ['2004-01-13', 10485.18, 10427.18, 10341.19, 10539.25, 197310000], + ['2004-01-14', 10428.67, 10538.37, 10426.89, 10573.85, 186280000], + ['2004-01-15', 10534.52, 10553.85, 10454.52, 10639.03, 260090000], + ['2004-01-16', 10556.37, 10600.51, 10503.71, 10666.88, 254170000], + ['2004-01-20', 10601.42, 10528.66, 10447.92, 10676.96, 224300000], + ['2004-01-21', 10522.77, 10623.62, 10453.11, 10665.72, 214920000], + ['2004-01-22', 10624.22, 10623.18, 10545.03, 10717.41, 219720000], + ['2004-01-23', 10625.25, 10568.29, 10490.14, 10691.77, 234260000], + ['2004-01-26', 10568.12, 10702.51, 10510.44, 10725.18, 186170000], + ['2004-01-27', 10701.11, 10609.92, 10579.33, 10748.81, 206560000], + ['2004-01-28', 10610.07, 10468.37, 10412.44, 10703.25, 247660000], + ['2004-01-29', 10467.41, 10510.29, 10369.92, 10611.56, 273970000], + ['2004-01-30', 10510.22, 10488.07, 10385.56, 10551.03, 208990000], + ['2004-02-02', 10487.78, 10499.18, 10395.55, 10614.44, 224800000], + ['2004-02-03', 10499.48, 10505.18, 10414.15, 10571.48, 183810000], + ['2004-02-04', 10503.11, 10470.74, 10394.81, 10567.85, 227760000], + ['2004-02-05', 10469.33, 10495.55, 10399.92, 10566.37, 187810000], + ['2004-02-06', 10494.89, 10593.03, 10433.74, 10634.81, 182880000], + ['2004-02-09', 10592.41, 10579.03, 10433.72, 10634.81, 160720000], + ['2004-02-10', 10578.74, 10613.85, 10511.18, 10667.03, 160590000], + ['2004-02-11', 10605.48, 10737.72, 10561.55, 10779.41, 277850000], + ['2004-02-12', 10735.18, 10694.07, 10636.44, 10775.03, 197560000], + ['2004-02-13', 10696.22, 10627.85, 10578.66, 10755.47, 208340000], + ['2004-02-17', 10628.88, 10714.88, 10628.88, 10762.07, 169730000], + ['2004-02-18', 10706.68, 10671.99, 10623.62, 10764.36, 164370000], + ['2004-02-19', 10674.59, 10664.73, 10626.44, 10794.95, 219890000], + ['2004-02-20', 10666.29, 10619.03, 10559.11, 10722.77, 220560000], + ['2004-02-23', 10619.55, 10609.62, 10508.89, 10711.84, 229950000], + ['2004-02-24', 10609.55, 10566.37, 10479.33, 10681.41, 225670000], + ['2004-02-25', 10566.59, 10601.62, 10509.42, 10660.73, 192420000], + ['2004-02-26', 10598.14, 10580.14, 10493.71, 10652.96, 223230000], + ['2004-02-27', 10581.55, 10583.92, 10519.03, 10689.55, 200050000] ], options: { padding: ['20%', 100, '20%', 100], diff --git a/examples/sites/demos/pc/app/chart/candle/demo6-composition-api.vue b/examples/sites/demos/pc/app/chart/candle/demo6-composition-api.vue index 51478adea..5c5ee2189 100644 --- a/examples/sites/demos/pc/app/chart/candle/demo6-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/candle/demo6-composition-api.vue @@ -9,310 +9,44 @@ import { ref } from 'vue' import { ChartCandle as TinyChartCandle } from '@opentiny/vue' const baseData = [ - [ - '2004-01-05', - 10411.85, - 10544.07, - 10411.85, - 10575.92, - 221290000 - ], - [ - '2004-01-06', - 10543.85, - 10538.66, - 10454.37, - 10584.07, - 191460000 - ], - [ - '2004-01-07', - 10535.46, - 10529.03, - 10432.12, - 10587.55, - 225490000 - ], - [ - '2004-01-08', - 10530.07, - 10592.44, - 10480.59, - 10651.99, - 237770000 - ], - [ - '2004-01-09', - 10589.25, - 10458.89, - 10420.52, - 10603.48, - 223250000 - ], - [ - '2004-01-12', - 10461.55, - 10485.18, - 10389.85, - 10543.03, - 197960000 - ], - [ - '2004-01-13', - 10485.18, - 10427.18, - 10341.19, - 10539.25, - 197310000 - ], - [ - '2004-01-14', - 10428.67, - 10538.37, - 10426.89, - 10573.85, - 186280000 - ], - [ - '2004-01-15', - 10534.52, - 10553.85, - 10454.52, - 10639.03, - 260090000 - ], - [ - '2004-01-16', - 10556.37, - 10600.51, - 10503.71, - 10666.88, - 254170000 - ], - [ - '2004-01-20', - 10601.42, - 10528.66, - 10447.92, - 10676.96, - 224300000 - ], - [ - '2004-01-21', - 10522.77, - 10623.62, - 10453.11, - 10665.72, - 214920000 - ], - [ - '2004-01-22', - 10624.22, - 10623.18, - 10545.03, - 10717.41, - 219720000 - ], - [ - '2004-01-23', - 10625.25, - 10568.29, - 10490.14, - 10691.77, - 234260000 - ], - [ - '2004-01-26', - 10568.12, - 10702.51, - 10510.44, - 10725.18, - 186170000 - ], - [ - '2004-01-27', - 10701.11, - 10609.92, - 10579.33, - 10748.81, - 206560000 - ], - [ - '2004-01-28', - 10610.07, - 10468.37, - 10412.44, - 10703.25, - 247660000 - ], - [ - '2004-01-29', - 10467.41, - 10510.29, - 10369.92, - 10611.56, - 273970000 - ], - [ - '2004-01-30', - 10510.22, - 10488.07, - 10385.56, - 10551.03, - 208990000 - ], - [ - '2004-02-02', - 10487.78, - 10499.18, - 10395.55, - 10614.44, - 224800000 - ], - [ - '2004-02-03', - 10499.48, - 10505.18, - 10414.15, - 10571.48, - 183810000 - ], - [ - '2004-02-04', - 10503.11, - 10470.74, - 10394.81, - 10567.85, - 227760000 - ], - [ - '2004-02-05', - 10469.33, - 10495.55, - 10399.92, - 10566.37, - 187810000 - ], - [ - '2004-02-06', - 10494.89, - 10593.03, - 10433.74, - 10634.81, - 182880000 - ], - [ - '2004-02-09', - 10592.41, - 10579.03, - 10433.72, - 10634.81, - 160720000 - ], - [ - '2004-02-10', - 10578.74, - 10613.85, - 10511.18, - 10667.03, - 160590000 - ], - [ - '2004-02-11', - 10605.48, - 10737.72, - 10561.55, - 10779.41, - 277850000 - ], - [ - '2004-02-12', - 10735.18, - 10694.07, - 10636.44, - 10775.03, - 197560000 - ], - [ - '2004-02-13', - 10696.22, - 10627.85, - 10578.66, - 10755.47, - 208340000 - ], - [ - '2004-02-17', - 10628.88, - 10714.88, - 10628.88, - 10762.07, - 169730000 - ], - [ - '2004-02-18', - 10706.68, - 10671.99, - 10623.62, - 10764.36, - 164370000 - ], - [ - '2004-02-19', - 10674.59, - 10664.73, - 10626.44, - 10794.95, - 219890000 - ], - [ - '2004-02-20', - 10666.29, - 10619.03, - 10559.11, - 10722.77, - 220560000 - ], - [ - '2004-02-23', - 10619.55, - 10609.62, - 10508.89, - 10711.84, - 229950000 - ], - [ - '2004-02-24', - 10609.55, - 10566.37, - 10479.33, - 10681.41, - 225670000 - ], - [ - '2004-02-25', - 10566.59, - 10601.62, - 10509.42, - 10660.73, - 192420000 - ], - [ - '2004-02-26', - 10598.14, - 10580.14, - 10493.71, - 10652.96, - 223230000 - ], - [ - '2004-02-27', - 10581.55, - 10583.92, - 10519.03, - 10689.55, - 200050000 - ] + ['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000], + ['2004-01-06', 10543.85, 10538.66, 10454.37, 10584.07, 191460000], + ['2004-01-07', 10535.46, 10529.03, 10432.12, 10587.55, 225490000], + ['2004-01-08', 10530.07, 10592.44, 10480.59, 10651.99, 237770000], + ['2004-01-09', 10589.25, 10458.89, 10420.52, 10603.48, 223250000], + ['2004-01-12', 10461.55, 10485.18, 10389.85, 10543.03, 197960000], + ['2004-01-13', 10485.18, 10427.18, 10341.19, 10539.25, 197310000], + ['2004-01-14', 10428.67, 10538.37, 10426.89, 10573.85, 186280000], + ['2004-01-15', 10534.52, 10553.85, 10454.52, 10639.03, 260090000], + ['2004-01-16', 10556.37, 10600.51, 10503.71, 10666.88, 254170000], + ['2004-01-20', 10601.42, 10528.66, 10447.92, 10676.96, 224300000], + ['2004-01-21', 10522.77, 10623.62, 10453.11, 10665.72, 214920000], + ['2004-01-22', 10624.22, 10623.18, 10545.03, 10717.41, 219720000], + ['2004-01-23', 10625.25, 10568.29, 10490.14, 10691.77, 234260000], + ['2004-01-26', 10568.12, 10702.51, 10510.44, 10725.18, 186170000], + ['2004-01-27', 10701.11, 10609.92, 10579.33, 10748.81, 206560000], + ['2004-01-28', 10610.07, 10468.37, 10412.44, 10703.25, 247660000], + ['2004-01-29', 10467.41, 10510.29, 10369.92, 10611.56, 273970000], + ['2004-01-30', 10510.22, 10488.07, 10385.56, 10551.03, 208990000], + ['2004-02-02', 10487.78, 10499.18, 10395.55, 10614.44, 224800000], + ['2004-02-03', 10499.48, 10505.18, 10414.15, 10571.48, 183810000], + ['2004-02-04', 10503.11, 10470.74, 10394.81, 10567.85, 227760000], + ['2004-02-05', 10469.33, 10495.55, 10399.92, 10566.37, 187810000], + ['2004-02-06', 10494.89, 10593.03, 10433.74, 10634.81, 182880000], + ['2004-02-09', 10592.41, 10579.03, 10433.72, 10634.81, 160720000], + ['2004-02-10', 10578.74, 10613.85, 10511.18, 10667.03, 160590000], + ['2004-02-11', 10605.48, 10737.72, 10561.55, 10779.41, 277850000], + ['2004-02-12', 10735.18, 10694.07, 10636.44, 10775.03, 197560000], + ['2004-02-13', 10696.22, 10627.85, 10578.66, 10755.47, 208340000], + ['2004-02-17', 10628.88, 10714.88, 10628.88, 10762.07, 169730000], + ['2004-02-18', 10706.68, 10671.99, 10623.62, 10764.36, 164370000], + ['2004-02-19', 10674.59, 10664.73, 10626.44, 10794.95, 219890000], + ['2004-02-20', 10666.29, 10619.03, 10559.11, 10722.77, 220560000], + ['2004-02-23', 10619.55, 10609.62, 10508.89, 10711.84, 229950000], + ['2004-02-24', 10609.55, 10566.37, 10479.33, 10681.41, 225670000], + ['2004-02-25', 10566.59, 10601.62, 10509.42, 10660.73, 192420000], + ['2004-02-26', 10598.14, 10580.14, 10493.71, 10652.96, 223230000], + ['2004-02-27', 10581.55, 10583.92, 10519.03, 10689.55, 200050000] ] function handleData() { diff --git a/examples/sites/demos/pc/app/chart/candle/demo6.vue b/examples/sites/demos/pc/app/chart/candle/demo6.vue index f2387adde..16e661ce4 100644 --- a/examples/sites/demos/pc/app/chart/candle/demo6.vue +++ b/examples/sites/demos/pc/app/chart/candle/demo6.vue @@ -14,310 +14,44 @@ export default { data() { return { baseData: [ - [ - '2004-01-05', - 10411.85, - 10544.07, - 10411.85, - 10575.92, - 221290000 - ], - [ - '2004-01-06', - 10543.85, - 10538.66, - 10454.37, - 10584.07, - 191460000 - ], - [ - '2004-01-07', - 10535.46, - 10529.03, - 10432.12, - 10587.55, - 225490000 - ], - [ - '2004-01-08', - 10530.07, - 10592.44, - 10480.59, - 10651.99, - 237770000 - ], - [ - '2004-01-09', - 10589.25, - 10458.89, - 10420.52, - 10603.48, - 223250000 - ], - [ - '2004-01-12', - 10461.55, - 10485.18, - 10389.85, - 10543.03, - 197960000 - ], - [ - '2004-01-13', - 10485.18, - 10427.18, - 10341.19, - 10539.25, - 197310000 - ], - [ - '2004-01-14', - 10428.67, - 10538.37, - 10426.89, - 10573.85, - 186280000 - ], - [ - '2004-01-15', - 10534.52, - 10553.85, - 10454.52, - 10639.03, - 260090000 - ], - [ - '2004-01-16', - 10556.37, - 10600.51, - 10503.71, - 10666.88, - 254170000 - ], - [ - '2004-01-20', - 10601.42, - 10528.66, - 10447.92, - 10676.96, - 224300000 - ], - [ - '2004-01-21', - 10522.77, - 10623.62, - 10453.11, - 10665.72, - 214920000 - ], - [ - '2004-01-22', - 10624.22, - 10623.18, - 10545.03, - 10717.41, - 219720000 - ], - [ - '2004-01-23', - 10625.25, - 10568.29, - 10490.14, - 10691.77, - 234260000 - ], - [ - '2004-01-26', - 10568.12, - 10702.51, - 10510.44, - 10725.18, - 186170000 - ], - [ - '2004-01-27', - 10701.11, - 10609.92, - 10579.33, - 10748.81, - 206560000 - ], - [ - '2004-01-28', - 10610.07, - 10468.37, - 10412.44, - 10703.25, - 247660000 - ], - [ - '2004-01-29', - 10467.41, - 10510.29, - 10369.92, - 10611.56, - 273970000 - ], - [ - '2004-01-30', - 10510.22, - 10488.07, - 10385.56, - 10551.03, - 208990000 - ], - [ - '2004-02-02', - 10487.78, - 10499.18, - 10395.55, - 10614.44, - 224800000 - ], - [ - '2004-02-03', - 10499.48, - 10505.18, - 10414.15, - 10571.48, - 183810000 - ], - [ - '2004-02-04', - 10503.11, - 10470.74, - 10394.81, - 10567.85, - 227760000 - ], - [ - '2004-02-05', - 10469.33, - 10495.55, - 10399.92, - 10566.37, - 187810000 - ], - [ - '2004-02-06', - 10494.89, - 10593.03, - 10433.74, - 10634.81, - 182880000 - ], - [ - '2004-02-09', - 10592.41, - 10579.03, - 10433.72, - 10634.81, - 160720000 - ], - [ - '2004-02-10', - 10578.74, - 10613.85, - 10511.18, - 10667.03, - 160590000 - ], - [ - '2004-02-11', - 10605.48, - 10737.72, - 10561.55, - 10779.41, - 277850000 - ], - [ - '2004-02-12', - 10735.18, - 10694.07, - 10636.44, - 10775.03, - 197560000 - ], - [ - '2004-02-13', - 10696.22, - 10627.85, - 10578.66, - 10755.47, - 208340000 - ], - [ - '2004-02-17', - 10628.88, - 10714.88, - 10628.88, - 10762.07, - 169730000 - ], - [ - '2004-02-18', - 10706.68, - 10671.99, - 10623.62, - 10764.36, - 164370000 - ], - [ - '2004-02-19', - 10674.59, - 10664.73, - 10626.44, - 10794.95, - 219890000 - ], - [ - '2004-02-20', - 10666.29, - 10619.03, - 10559.11, - 10722.77, - 220560000 - ], - [ - '2004-02-23', - 10619.55, - 10609.62, - 10508.89, - 10711.84, - 229950000 - ], - [ - '2004-02-24', - 10609.55, - 10566.37, - 10479.33, - 10681.41, - 225670000 - ], - [ - '2004-02-25', - 10566.59, - 10601.62, - 10509.42, - 10660.73, - 192420000 - ], - [ - '2004-02-26', - 10598.14, - 10580.14, - 10493.71, - 10652.96, - 223230000 - ], - [ - '2004-02-27', - 10581.55, - 10583.92, - 10519.03, - 10689.55, - 200050000 - ] + ['2004-01-05', 10411.85, 10544.07, 10411.85, 10575.92, 221290000], + ['2004-01-06', 10543.85, 10538.66, 10454.37, 10584.07, 191460000], + ['2004-01-07', 10535.46, 10529.03, 10432.12, 10587.55, 225490000], + ['2004-01-08', 10530.07, 10592.44, 10480.59, 10651.99, 237770000], + ['2004-01-09', 10589.25, 10458.89, 10420.52, 10603.48, 223250000], + ['2004-01-12', 10461.55, 10485.18, 10389.85, 10543.03, 197960000], + ['2004-01-13', 10485.18, 10427.18, 10341.19, 10539.25, 197310000], + ['2004-01-14', 10428.67, 10538.37, 10426.89, 10573.85, 186280000], + ['2004-01-15', 10534.52, 10553.85, 10454.52, 10639.03, 260090000], + ['2004-01-16', 10556.37, 10600.51, 10503.71, 10666.88, 254170000], + ['2004-01-20', 10601.42, 10528.66, 10447.92, 10676.96, 224300000], + ['2004-01-21', 10522.77, 10623.62, 10453.11, 10665.72, 214920000], + ['2004-01-22', 10624.22, 10623.18, 10545.03, 10717.41, 219720000], + ['2004-01-23', 10625.25, 10568.29, 10490.14, 10691.77, 234260000], + ['2004-01-26', 10568.12, 10702.51, 10510.44, 10725.18, 186170000], + ['2004-01-27', 10701.11, 10609.92, 10579.33, 10748.81, 206560000], + ['2004-01-28', 10610.07, 10468.37, 10412.44, 10703.25, 247660000], + ['2004-01-29', 10467.41, 10510.29, 10369.92, 10611.56, 273970000], + ['2004-01-30', 10510.22, 10488.07, 10385.56, 10551.03, 208990000], + ['2004-02-02', 10487.78, 10499.18, 10395.55, 10614.44, 224800000], + ['2004-02-03', 10499.48, 10505.18, 10414.15, 10571.48, 183810000], + ['2004-02-04', 10503.11, 10470.74, 10394.81, 10567.85, 227760000], + ['2004-02-05', 10469.33, 10495.55, 10399.92, 10566.37, 187810000], + ['2004-02-06', 10494.89, 10593.03, 10433.74, 10634.81, 182880000], + ['2004-02-09', 10592.41, 10579.03, 10433.72, 10634.81, 160720000], + ['2004-02-10', 10578.74, 10613.85, 10511.18, 10667.03, 160590000], + ['2004-02-11', 10605.48, 10737.72, 10561.55, 10779.41, 277850000], + ['2004-02-12', 10735.18, 10694.07, 10636.44, 10775.03, 197560000], + ['2004-02-13', 10696.22, 10627.85, 10578.66, 10755.47, 208340000], + ['2004-02-17', 10628.88, 10714.88, 10628.88, 10762.07, 169730000], + ['2004-02-18', 10706.68, 10671.99, 10623.62, 10764.36, 164370000], + ['2004-02-19', 10674.59, 10664.73, 10626.44, 10794.95, 219890000], + ['2004-02-20', 10666.29, 10619.03, 10559.11, 10722.77, 220560000], + ['2004-02-23', 10619.55, 10609.62, 10508.89, 10711.84, 229950000], + ['2004-02-24', 10609.55, 10566.37, 10479.33, 10681.41, 225670000], + ['2004-02-25', 10566.59, 10601.62, 10509.42, 10660.73, 192420000], + ['2004-02-26', 10598.14, 10580.14, 10493.71, 10652.96, 223230000], + ['2004-02-27', 10581.55, 10583.92, 10519.03, 10689.55, 200050000] ], options: { volume: true, diff --git a/examples/sites/demos/pc/app/chart/fixtures.js b/examples/sites/demos/pc/app/chart/fixtures.js new file mode 100644 index 000000000..1f930d4bd --- /dev/null +++ b/examples/sites/demos/pc/app/chart/fixtures.js @@ -0,0 +1,19 @@ +import { test as baseTest, expect } from '@playwright/test' + +const config = { + waitTime: 2000 // 默认2000毫秒 +} + +// 创建一个可以在所有测试中使用的自定义 test +const test = baseTest.extend({ + page: async ({ page }, use) => { + const originalGoto = page.goto.bind(page) + page.goto = async (url, options) => { + await originalGoto(url, options) + await page.waitForTimeout(config.waitTime) + } + // 使用自定义的page + await use(page) + } +}) +export { test, expect, config } diff --git a/examples/sites/demos/pc/app/chart/funnel/base-composition-api.vue b/examples/sites/demos/pc/app/chart/funnel/base-composition-api.vue index d99d59ac8..329751c6e 100644 --- a/examples/sites/demos/pc/app/chart/funnel/base-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/funnel/base-composition-api.vue @@ -13,7 +13,7 @@ const options = ref({ { value: 100, name: 'Show' }, { value: 75, name: 'Click' }, { value: 50, name: 'Visit' }, - { value: 25, name: 'Order' }, + { value: 25, name: 'Order' } ] }) diff --git a/examples/sites/demos/pc/app/chart/funnel/base.vue b/examples/sites/demos/pc/app/chart/funnel/base.vue index 6010000f5..ec7a6716f 100644 --- a/examples/sites/demos/pc/app/chart/funnel/base.vue +++ b/examples/sites/demos/pc/app/chart/funnel/base.vue @@ -18,7 +18,7 @@ export default { { value: 100, name: 'Show' }, { value: 75, name: 'Click' }, { value: 50, name: 'Visit' }, - { value: 25, name: 'Order' }, + { value: 25, name: 'Order' } ] } } diff --git a/examples/sites/demos/pc/app/chart/funnel/demo2-composition-api.vue b/examples/sites/demos/pc/app/chart/funnel/demo2-composition-api.vue index 6c75b01bc..4011aed5d 100644 --- a/examples/sites/demos/pc/app/chart/funnel/demo2-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/funnel/demo2-composition-api.vue @@ -14,7 +14,7 @@ const options = ref({ { value: 100, name: 'Show' }, { value: 75, name: 'Click' }, { value: 50, name: 'Visit' }, - { value: 25, name: 'Order' }, + { value: 25, name: 'Order' } ] }) diff --git a/examples/sites/demos/pc/app/chart/funnel/demo2.vue b/examples/sites/demos/pc/app/chart/funnel/demo2.vue index 600baa55d..266f84956 100644 --- a/examples/sites/demos/pc/app/chart/funnel/demo2.vue +++ b/examples/sites/demos/pc/app/chart/funnel/demo2.vue @@ -19,7 +19,7 @@ export default { { value: 100, name: 'Show' }, { value: 75, name: 'Click' }, { value: 50, name: 'Visit' }, - { value: 25, name: 'Order' }, + { value: 25, name: 'Order' } ] } } diff --git a/examples/sites/demos/pc/app/chart/funnel/demo3-composition-api.vue b/examples/sites/demos/pc/app/chart/funnel/demo3-composition-api.vue index 881f7ce11..6dd42d4e0 100644 --- a/examples/sites/demos/pc/app/chart/funnel/demo3-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/funnel/demo3-composition-api.vue @@ -15,7 +15,7 @@ const options = ref({ { value: 100, name: 'Show' }, { value: 75, name: 'Click' }, { value: 50, name: 'Visit' }, - { value: 25, name: 'Order' }, + { value: 25, name: 'Order' } ] }) diff --git a/examples/sites/demos/pc/app/chart/funnel/demo3.vue b/examples/sites/demos/pc/app/chart/funnel/demo3.vue index 244613183..8a1bd052e 100644 --- a/examples/sites/demos/pc/app/chart/funnel/demo3.vue +++ b/examples/sites/demos/pc/app/chart/funnel/demo3.vue @@ -20,7 +20,7 @@ export default { { value: 100, name: 'Show' }, { value: 75, name: 'Click' }, { value: 50, name: 'Visit' }, - { value: 25, name: 'Order' }, + { value: 25, name: 'Order' } ] } } diff --git a/examples/sites/demos/pc/app/chart/funnel/demo4-composition-api.vue b/examples/sites/demos/pc/app/chart/funnel/demo4-composition-api.vue index 73a72e8b5..265d90712 100644 --- a/examples/sites/demos/pc/app/chart/funnel/demo4-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/funnel/demo4-composition-api.vue @@ -31,7 +31,7 @@ const options = ref({ { value: 100, name: 'Show' }, { value: 75, name: 'Click' }, { value: 50, name: 'Visit' }, - { value: 25, name: 'Order' }, + { value: 25, name: 'Order' } ] }) diff --git a/examples/sites/demos/pc/app/chart/funnel/demo4.vue b/examples/sites/demos/pc/app/chart/funnel/demo4.vue index 87e64a9db..015879c40 100644 --- a/examples/sites/demos/pc/app/chart/funnel/demo4.vue +++ b/examples/sites/demos/pc/app/chart/funnel/demo4.vue @@ -35,7 +35,7 @@ export default { { value: 100, name: 'Show' }, { value: 75, name: 'Click' }, { value: 50, name: 'Visit' }, - { value: 25, name: 'Order' }, + { value: 25, name: 'Order' } ] } } diff --git a/examples/sites/demos/pc/app/chart/funnel/demo5-composition-api.vue b/examples/sites/demos/pc/app/chart/funnel/demo5-composition-api.vue index 9f0bbfee4..b1b39695b 100644 --- a/examples/sites/demos/pc/app/chart/funnel/demo5-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/funnel/demo5-composition-api.vue @@ -14,7 +14,7 @@ const options = ref({ { value: 100, name: 'Show' }, { value: 75, name: 'Click' }, { value: 50, name: 'Visit' }, - { value: 25, name: 'Order' }, + { value: 25, name: 'Order' } ] }) diff --git a/examples/sites/demos/pc/app/chart/funnel/demo5.vue b/examples/sites/demos/pc/app/chart/funnel/demo5.vue index c7b71ee13..1c6f52fb1 100644 --- a/examples/sites/demos/pc/app/chart/funnel/demo5.vue +++ b/examples/sites/demos/pc/app/chart/funnel/demo5.vue @@ -19,7 +19,7 @@ export default { { value: 100, name: 'Show' }, { value: 75, name: 'Click' }, { value: 50, name: 'Visit' }, - { value: 25, name: 'Order' }, + { value: 25, name: 'Order' } ] } } diff --git a/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts index 07c0f388d..a21ff2566 100644 --- a/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts +++ b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts @@ -1,9 +1,11 @@ -import { test, expect } from '@playwright/test' +import { test, expect, config } from '../fixtures' + +config.waitTime = 4000 test('base', async ({ page }) => { await page.goto('chart-funnel#funnel-base') - const chart = page.locator('#funnel-base .hui-chart') - await expect(chart).toHaveScreenshot('base.png') + await expect(page.locator('#funnel-base .hui-chart')).toBeInViewport() + await expect(page).toHaveScreenshot('base.png') }) test('demo2', async ({ page }) => { diff --git a/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..1d48cee81 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..bf8f90056 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..d1731d3fc Binary files /dev/null and b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..e2fe113ae Binary files /dev/null and b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..b2a9a7bbe Binary files /dev/null and b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo6-chromium-win32.png b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo6-chromium-win32.png new file mode 100644 index 000000000..b705b01bb Binary files /dev/null and b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo6-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo7-chromium-win32.png b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo7-chromium-win32.png new file mode 100644 index 000000000..0cc090575 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/funnel/funnel.spec.ts-snapshots/demo7-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/gauge/demo3-composition-api.vue b/examples/sites/demos/pc/app/chart/gauge/demo3-composition-api.vue index 9370e1914..3d75f1879 100644 --- a/examples/sites/demos/pc/app/chart/gauge/demo3-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/gauge/demo3-composition-api.vue @@ -9,7 +9,6 @@ import { ref } from 'vue' import { ChartGauge as TinyChartGauge } from '@opentiny/vue' const options = ref({ - // splitColor 分割仪表盘 // splitColor[i][0] 的值代表整根轴线的百分比, 应该 0 到 1 之间 // splitColor[1][1] 是对应的颜色 diff --git a/examples/sites/demos/pc/app/chart/gauge/demo3.vue b/examples/sites/demos/pc/app/chart/gauge/demo3.vue index 631f0d555..2b25a2e42 100644 --- a/examples/sites/demos/pc/app/chart/gauge/demo3.vue +++ b/examples/sites/demos/pc/app/chart/gauge/demo3.vue @@ -14,7 +14,6 @@ export default { data() { return { options: { - // splitColor 分割仪表盘 // splitColor[i][0] 的值代表整根轴线的百分比, 应该 0 到 1 之间 // splitColor[1][1] 是对应的颜色 diff --git a/examples/sites/demos/pc/app/chart/gauge/demo5-composition-api.vue b/examples/sites/demos/pc/app/chart/gauge/demo5-composition-api.vue index de11ffc7c..17c9de5f1 100644 --- a/examples/sites/demos/pc/app/chart/gauge/demo5-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/gauge/demo5-composition-api.vue @@ -9,7 +9,6 @@ import { ref } from 'vue' import { ChartGauge as TinyChartGauge } from '@opentiny/vue' const options = ref({ - // gradientColor表示从仪表盘左到右的渐变色 // gradientColor.length == 1 时也可以表示单色 // 注意: splitColor 的优先级高于 gradientColor diff --git a/examples/sites/demos/pc/app/chart/gauge/demo5.vue b/examples/sites/demos/pc/app/chart/gauge/demo5.vue index adaa84ebb..f5aa6fc4a 100644 --- a/examples/sites/demos/pc/app/chart/gauge/demo5.vue +++ b/examples/sites/demos/pc/app/chart/gauge/demo5.vue @@ -14,7 +14,6 @@ export default { data() { return { options: { - // gradientColor表示从仪表盘左到右的渐变色 // gradientColor.length == 1 时也可以表示单色 // 注意: splitColor 的优先级高于 gradientColor diff --git a/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts index 51c445397..00b605b88 100644 --- a/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts +++ b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts @@ -1,5 +1,6 @@ -import { test, expect } from '@playwright/test' +import { test, expect, config } from '../fixtures' +config.waitTime = 4000 test('base', async ({ page }) => { await page.goto('chart-gauge#gauge-base') const chart = page.locator('#gauge-base .hui-chart') @@ -15,6 +16,7 @@ test('demo2', async ({ page }) => { test('demo3', async ({ page }) => { await page.goto('chart-gauge#gauge-demo3') const chart = page.locator('#gauge-demo3 .hui-chart') + await expect(chart).toBeInViewport() await expect(chart).toHaveScreenshot('demo3.png') }) diff --git a/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..06bc9d47a Binary files /dev/null and b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..d1f4b2c15 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..3274c7126 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..50a264614 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..c6ce093ba Binary files /dev/null and b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo6-chromium-win32.png b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo6-chromium-win32.png new file mode 100644 index 000000000..46b64cbe4 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/gauge/gauge.spec.ts-snapshots/demo6-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/graph/demo2-composition-api.vue b/examples/sites/demos/pc/app/chart/graph/demo2-composition-api.vue index 09dde4daf..3db8f1e8b 100644 --- a/examples/sites/demos/pc/app/chart/graph/demo2-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/graph/demo2-composition-api.vue @@ -51,5 +51,4 @@ const options = ref({ } ] }) - diff --git a/examples/sites/demos/pc/app/chart/graph/demo2.vue b/examples/sites/demos/pc/app/chart/graph/demo2.vue index 3bd442c9b..400917caf 100644 --- a/examples/sites/demos/pc/app/chart/graph/demo2.vue +++ b/examples/sites/demos/pc/app/chart/graph/demo2.vue @@ -16,7 +16,6 @@ let links = data.map((item, i) => { }) links.pop() - let option = { xAxis: { type: 'category', diff --git a/examples/sites/demos/pc/app/chart/graph/graph.spec.ts b/examples/sites/demos/pc/app/chart/graph/graph.spec.ts index 1b38234af..dd3eba6db 100644 --- a/examples/sites/demos/pc/app/chart/graph/graph.spec.ts +++ b/examples/sites/demos/pc/app/chart/graph/graph.spec.ts @@ -1,6 +1,7 @@ -import { test, expect } from '@playwright/test' +import { test, expect, config } from '../fixtures' test('base', async ({ page }) => { + config.waitTime = 4000 await page.goto('chart-graph#graph-base') const chart = page.locator('#graph-base .hui-chart') await expect(chart).toHaveScreenshot('base.png') diff --git a/examples/sites/demos/pc/app/chart/graph/graph.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/graph/graph.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..81322433e Binary files /dev/null and b/examples/sites/demos/pc/app/chart/graph/graph.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..7121f6cd0 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..d0ece8c35 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/graph/graph.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts index 4a7d0fc4e..b06562d41 100644 --- a/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts +++ b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-heatmap#heatmap-base') diff --git a/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..6170f6b2e Binary files /dev/null and b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..b9c67d506 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..bcb79d73f Binary files /dev/null and b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..91c5a39cb Binary files /dev/null and b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..d40379916 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/heatmap/heatmap.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/histogram/base-composition-api.vue b/examples/sites/demos/pc/app/chart/histogram/base-composition-api.vue index 86fa0c051..115c1cf3a 100644 --- a/examples/sites/demos/pc/app/chart/histogram/base-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/histogram/base-composition-api.vue @@ -21,8 +21,7 @@ const options = ref({ { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: 'Month', yAxis: { diff --git a/examples/sites/demos/pc/app/chart/histogram/base.vue b/examples/sites/demos/pc/app/chart/histogram/base.vue index e8d9c1f4b..9bab936be 100644 --- a/examples/sites/demos/pc/app/chart/histogram/base.vue +++ b/examples/sites/demos/pc/app/chart/histogram/base.vue @@ -26,8 +26,7 @@ export default { { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: 'Month', yAxis: { diff --git a/examples/sites/demos/pc/app/chart/histogram/demo3-composition-api.vue b/examples/sites/demos/pc/app/chart/histogram/demo3-composition-api.vue index ff0da3e2e..3c0b30128 100644 --- a/examples/sites/demos/pc/app/chart/histogram/demo3-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/histogram/demo3-composition-api.vue @@ -24,7 +24,7 @@ const options = ref({ { 'Month': 'Sep', 'Value': 0.01 }, { 'Month': 'Oct', 'Value': 0.01 }, { 'Month': 'Nov', 'Value': 0.01 }, - { 'Month': 'Dec', 'Value': 0.01 }, + { 'Month': 'Dec', 'Value': 0.01 } ], xAxis: { data: 'Month' diff --git a/examples/sites/demos/pc/app/chart/histogram/demo3.vue b/examples/sites/demos/pc/app/chart/histogram/demo3.vue index 7b47ac66a..bf5fa358a 100644 --- a/examples/sites/demos/pc/app/chart/histogram/demo3.vue +++ b/examples/sites/demos/pc/app/chart/histogram/demo3.vue @@ -29,7 +29,7 @@ export default { { 'Month': 'Sep', 'Value': 0.01 }, { 'Month': 'Oct', 'Value': 0.01 }, { 'Month': 'Nov', 'Value': 0.01 }, - { 'Month': 'Dec', 'Value': 0.01 }, + { 'Month': 'Dec', 'Value': 0.01 } ], xAxis: { data: 'Month' diff --git a/examples/sites/demos/pc/app/chart/histogram/demo4-composition-api.vue b/examples/sites/demos/pc/app/chart/histogram/demo4-composition-api.vue index fdb39fce8..be79849dc 100644 --- a/examples/sites/demos/pc/app/chart/histogram/demo4-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/histogram/demo4-composition-api.vue @@ -19,7 +19,8 @@ const options = ref({ htmlString += itemSeventeen.name + '
' } htmlString += `
- ${itemSeventeen.seriesName} User @@ -43,8 +44,7 @@ const options = ref({ { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 37 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 17 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 17 } ], xAxis: 'Month', yAxis: { diff --git a/examples/sites/demos/pc/app/chart/histogram/demo4.vue b/examples/sites/demos/pc/app/chart/histogram/demo4.vue index 316773876..10c513746 100644 --- a/examples/sites/demos/pc/app/chart/histogram/demo4.vue +++ b/examples/sites/demos/pc/app/chart/histogram/demo4.vue @@ -24,8 +24,9 @@ export default { htmlString += itemSeventeen.name + '
' } htmlString += `
- + ${itemSeventeen.seriesName} User { await page.goto('chart-histogram#histogram-base') diff --git a/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..3a849f411 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..a8e2c6607 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..6342194f5 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..c323e029b Binary files /dev/null and b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..34066e7da Binary files /dev/null and b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo6-chromium-win32.png b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo6-chromium-win32.png new file mode 100644 index 000000000..0918477db Binary files /dev/null and b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo6-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo7-chromium-win32.png b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo7-chromium-win32.png new file mode 100644 index 000000000..a75e30151 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo7-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo8-chromium-win32.png b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo8-chromium-win32.png new file mode 100644 index 000000000..8537a7af1 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/histogram/histogram.spec.ts-snapshots/demo8-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/line/base-composition-api.vue b/examples/sites/demos/pc/app/chart/line/base-composition-api.vue index 19741597b..abef0d1fe 100644 --- a/examples/sites/demos/pc/app/chart/line/base-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/line/base-composition-api.vue @@ -26,8 +26,7 @@ const options = ref({ { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: 'Month', yAxis: { diff --git a/examples/sites/demos/pc/app/chart/line/base.vue b/examples/sites/demos/pc/app/chart/line/base.vue index 11cf7efe2..9c7e0a9a2 100644 --- a/examples/sites/demos/pc/app/chart/line/base.vue +++ b/examples/sites/demos/pc/app/chart/line/base.vue @@ -31,8 +31,7 @@ export default { { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: 'Month', yAxis: { diff --git a/examples/sites/demos/pc/app/chart/line/demo2-composition-api.vue b/examples/sites/demos/pc/app/chart/line/demo2-composition-api.vue index b49cbb5cf..f52f064a1 100644 --- a/examples/sites/demos/pc/app/chart/line/demo2-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/line/demo2-composition-api.vue @@ -27,8 +27,7 @@ const options = ref({ { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: { data: 'Month', diff --git a/examples/sites/demos/pc/app/chart/line/demo2.vue b/examples/sites/demos/pc/app/chart/line/demo2.vue index 7ddc8d26d..bbb72fbf5 100644 --- a/examples/sites/demos/pc/app/chart/line/demo2.vue +++ b/examples/sites/demos/pc/app/chart/line/demo2.vue @@ -32,8 +32,7 @@ export default { { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: { data: 'Month', diff --git a/examples/sites/demos/pc/app/chart/line/demo3-composition-api.vue b/examples/sites/demos/pc/app/chart/line/demo3-composition-api.vue index fa1ff4471..f280b390e 100644 --- a/examples/sites/demos/pc/app/chart/line/demo3-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/line/demo3-composition-api.vue @@ -10,7 +10,7 @@ import { ChartLine as TinyChartLine } from '@opentiny/vue' const options = ref({ padding: [50, 30, 50, 20], - step: true, //true属性配置阶梯线 + step: true, // true属性配置阶梯线 legend: { show: true, icon: 'line' @@ -27,8 +27,7 @@ const options = ref({ { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: 'Month', yAxis: { diff --git a/examples/sites/demos/pc/app/chart/line/demo3.vue b/examples/sites/demos/pc/app/chart/line/demo3.vue index e4cbcf1f6..72a65fe2b 100644 --- a/examples/sites/demos/pc/app/chart/line/demo3.vue +++ b/examples/sites/demos/pc/app/chart/line/demo3.vue @@ -15,7 +15,7 @@ export default { return { options: { padding: [50, 30, 50, 20], - step: true, //true属性配置阶梯线 + step: true, // true属性配置阶梯线 legend: { show: true, icon: 'line' @@ -32,8 +32,7 @@ export default { { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: 'Month', yAxis: { diff --git a/examples/sites/demos/pc/app/chart/line/demo4-composition-api.vue b/examples/sites/demos/pc/app/chart/line/demo4-composition-api.vue index b8c5c01da..c5d9bfa9f 100644 --- a/examples/sites/demos/pc/app/chart/line/demo4-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/line/demo4-composition-api.vue @@ -26,8 +26,7 @@ const options = ref({ { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: 'Month', yAxis: { diff --git a/examples/sites/demos/pc/app/chart/line/demo5-composition-api.vue b/examples/sites/demos/pc/app/chart/line/demo5-composition-api.vue index b9d7d4018..de31182b6 100644 --- a/examples/sites/demos/pc/app/chart/line/demo5-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/line/demo5-composition-api.vue @@ -25,8 +25,7 @@ const options = ref({ { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: { data: 'Month', diff --git a/examples/sites/demos/pc/app/chart/line/demo5.vue b/examples/sites/demos/pc/app/chart/line/demo5.vue index 5ee06d161..a6d0e1497 100644 --- a/examples/sites/demos/pc/app/chart/line/demo5.vue +++ b/examples/sites/demos/pc/app/chart/line/demo5.vue @@ -30,8 +30,7 @@ export default { { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: { data: 'Month', diff --git a/examples/sites/demos/pc/app/chart/line/demo6.vue b/examples/sites/demos/pc/app/chart/line/demo6.vue index 3a1fc5b83..c6fe54887 100644 --- a/examples/sites/demos/pc/app/chart/line/demo6.vue +++ b/examples/sites/demos/pc/app/chart/line/demo6.vue @@ -31,24 +31,24 @@ export default { { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: 'Month', // 自定义y轴 - yAxis: [{ - name: 'Percent(%)', // 名称 - max: 65, // 最大值 - min: 0, // 最小值 - interval: 5, // 数值间距 - nameTextStyle: { - // 名称样式 - padding: [20, 0, 0, 20] - }, - unit: '%' // 单位 - - }] + yAxis: [ + { + name: 'Percent(%)', // 名称 + max: 65, // 最大值 + min: 0, // 最小值 + interval: 5, // 数值间距 + nameTextStyle: { + // 名称样式 + padding: [20, 0, 0, 20] + }, + unit: '%' // 单位 + } + ] } } } diff --git a/examples/sites/demos/pc/app/chart/line/demo8.vue b/examples/sites/demos/pc/app/chart/line/demo8.vue index f180d2771..5b4327d26 100644 --- a/examples/sites/demos/pc/app/chart/line/demo8.vue +++ b/examples/sites/demos/pc/app/chart/line/demo8.vue @@ -92,7 +92,7 @@ export default { { 'Time': '01:57', 'Domestic': 17, 'Abroad': 30 }, { 'Time': '01:58', 'Domestic': 40, 'Abroad': 33 }, { 'Time': '01:59', 'Domestic': 42, 'Abroad': 22 }, - { 'Time': '02:00', 'Domestic': 41, 'Abroad': 11 }, + { 'Time': '02:00', 'Domestic': 41, 'Abroad': 11 } ], xAxis: 'Time', yAxis: { diff --git a/examples/sites/demos/pc/app/chart/line/demo9-composition-api.vue b/examples/sites/demos/pc/app/chart/line/demo9-composition-api.vue index 6b5b96857..a2c48ad77 100644 --- a/examples/sites/demos/pc/app/chart/line/demo9-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/line/demo9-composition-api.vue @@ -22,8 +22,7 @@ const options = ref({ { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: { data: 'Month', diff --git a/examples/sites/demos/pc/app/chart/line/demo9.vue b/examples/sites/demos/pc/app/chart/line/demo9.vue index 4001527a2..df4dbb338 100644 --- a/examples/sites/demos/pc/app/chart/line/demo9.vue +++ b/examples/sites/demos/pc/app/chart/line/demo9.vue @@ -27,8 +27,7 @@ export default { { 'Month': 'Sep', 'Domestic': 17, 'Abroad': 30 }, { 'Month': 'Oct', 'Domestic': 40, 'Abroad': 33 }, { 'Month': 'Nov', 'Domestic': 42, 'Abroad': 22 }, - { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 }, - + { 'Month': 'Dec', 'Domestic': 32, 'Abroad': 1 } ], xAxis: { data: 'Month', diff --git a/examples/sites/demos/pc/app/chart/line/line.spec.ts b/examples/sites/demos/pc/app/chart/line/line.spec.ts index e130d663c..1c260fbfa 100644 --- a/examples/sites/demos/pc/app/chart/line/line.spec.ts +++ b/examples/sites/demos/pc/app/chart/line/line.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-line#line-base') diff --git a/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..6aeacd87c Binary files /dev/null and b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..16a24d7e5 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..af364fa2c Binary files /dev/null and b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..11160ad9b Binary files /dev/null and b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..0b1e8314b Binary files /dev/null and b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo6-chromium-win32.png b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo6-chromium-win32.png new file mode 100644 index 000000000..515af06bf Binary files /dev/null and b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo6-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo7-chromium-win32.png b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo7-chromium-win32.png new file mode 100644 index 000000000..b07f2d3c6 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo7-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo8-chromium-win32.png b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo8-chromium-win32.png new file mode 100644 index 000000000..ab8c828ba Binary files /dev/null and b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo8-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo9-chromium-win32.png b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo9-chromium-win32.png new file mode 100644 index 000000000..ca047e65a Binary files /dev/null and b/examples/sites/demos/pc/app/chart/line/line.spec.ts-snapshots/demo9-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..492f35264 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..a4b58d2b2 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..17b0d4787 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..14485cb19 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..f8493a971 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/liquidfill/liquidfill.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/map/map.spec.ts b/examples/sites/demos/pc/app/chart/map/map.spec.ts index 1dd1d50e3..693553b36 100644 --- a/examples/sites/demos/pc/app/chart/map/map.spec.ts +++ b/examples/sites/demos/pc/app/chart/map/map.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-map#map-base') diff --git a/examples/sites/demos/pc/app/chart/map/map.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/map/map.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..7c055ceec Binary files /dev/null and b/examples/sites/demos/pc/app/chart/map/map.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/pie/pie.spec.ts b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts index d85eba5cf..56318af5f 100644 --- a/examples/sites/demos/pc/app/chart/pie/pie.spec.ts +++ b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-pie#pie-base') diff --git a/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..dbdb12a94 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..a6c0176d4 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..2c7a56298 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..ddb0b4858 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..d15dd5753 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo6-chromium-win32.png b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo6-chromium-win32.png new file mode 100644 index 000000000..a6c0176d4 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo6-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo7-chromium-win32.png b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo7-chromium-win32.png new file mode 100644 index 000000000..145e59278 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/pie/pie.spec.ts-snapshots/demo7-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/process/process.spec.ts b/examples/sites/demos/pc/app/chart/process/process.spec.ts index db90fe800..3639b4930 100644 --- a/examples/sites/demos/pc/app/chart/process/process.spec.ts +++ b/examples/sites/demos/pc/app/chart/process/process.spec.ts @@ -1,37 +1,37 @@ import { test, expect } from '@playwright/test' test('base', async ({ page }) => { - await page.goto('chart-process#process-base') - const chart = page.locator('#process-base .hui-chart') - await expect(chart).toHaveScreenshot('base.png') + await page.goto('chart-process#process-base') + const chart = page.locator('#process-base .hui-chart') + await expect(chart).toHaveScreenshot('base.png') }) test('demo2', async ({ page }) => { - await page.goto('chart-process#process-demo2') - const chart = page.locator('#process-demo2 .hui-chart') - await expect(chart).toHaveScreenshot('demo2.png') + await page.goto('chart-process#process-demo2') + const chart = page.locator('#process-demo2 .hui-chart') + await expect(chart).toHaveScreenshot('demo2.png') }) test('demo3', async ({ page }) => { - await page.goto('chart-process#process-demo3') - const chart = page.locator('#process-demo3 .hui-chart') - await expect(chart).toHaveScreenshot('demo3.png') + await page.goto('chart-process#process-demo3') + const chart = page.locator('#process-demo3 .hui-chart') + await expect(chart).toHaveScreenshot('demo3.png') }) test('demo4', async ({ page }) => { - await page.goto('chart-process#process-demo4') - const chart = page.locator('#process-demo4 .hui-chart') - await expect(chart).toHaveScreenshot('demo4.png') + await page.goto('chart-process#process-demo4') + const chart = page.locator('#process-demo4 .hui-chart') + await expect(chart).toHaveScreenshot('demo4.png') }) test('demo5', async ({ page }) => { - await page.goto('chart-process#process-demo5') - const chart = page.locator('#process-demo5 .hui-chart') - await expect(chart).toHaveScreenshot('demo5.png') + await page.goto('chart-process#process-demo5') + const chart = page.locator('#process-demo5 .hui-chart') + await expect(chart).toHaveScreenshot('demo5.png') }) test('demo6', async ({ page }) => { - await page.goto('chart-process#process-demo6') - const chart = page.locator('#process-demo6 .hui-chart') - await expect(chart).toHaveScreenshot('demo6.png') + await page.goto('chart-process#process-demo6') + const chart = page.locator('#process-demo6 .hui-chart') + await expect(chart).toHaveScreenshot('demo6.png') }) diff --git a/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..cdd990a5c Binary files /dev/null and b/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..955d25362 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..23482b356 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..f5d1808bc Binary files /dev/null and b/examples/sites/demos/pc/app/chart/process/process.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/props/demo10-composition-api.vue b/examples/sites/demos/pc/app/chart/props/demo10-composition-api.vue index 702e9ec9b..d50d5dbc0 100644 --- a/examples/sites/demos/pc/app/chart/props/demo10-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/props/demo10-composition-api.vue @@ -1,8 +1,14 @@ diff --git a/examples/sites/demos/pc/app/chart/props/demo10.vue b/examples/sites/demos/pc/app/chart/props/demo10.vue index a88089232..596e68b93 100644 --- a/examples/sites/demos/pc/app/chart/props/demo10.vue +++ b/examples/sites/demos/pc/app/chart/props/demo10.vue @@ -1,8 +1,14 @@ diff --git a/examples/sites/demos/pc/app/chart/radar/radar.spec.ts b/examples/sites/demos/pc/app/chart/radar/radar.spec.ts index 30ed63e55..99cd44986 100644 --- a/examples/sites/demos/pc/app/chart/radar/radar.spec.ts +++ b/examples/sites/demos/pc/app/chart/radar/radar.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-radar#radar-base') diff --git a/examples/sites/demos/pc/app/chart/radar/radar.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/radar/radar.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..5a2f2d72a Binary files /dev/null and b/examples/sites/demos/pc/app/chart/radar/radar.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..5807b05e2 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..f42a47cb8 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/radar/radar.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/ring/demo2-composition-api.vue b/examples/sites/demos/pc/app/chart/ring/demo2-composition-api.vue index ebcbefa3d..9441dd591 100644 --- a/examples/sites/demos/pc/app/chart/ring/demo2-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/ring/demo2-composition-api.vue @@ -54,7 +54,7 @@ const options = ref({ { name: 'EIP_1', value: 10 }, { name: 'EIP_2', value: 40 } ] - }, + } ] }) diff --git a/examples/sites/demos/pc/app/chart/ring/demo2.vue b/examples/sites/demos/pc/app/chart/ring/demo2.vue index 8b6cdb13f..f18d6a675 100644 --- a/examples/sites/demos/pc/app/chart/ring/demo2.vue +++ b/examples/sites/demos/pc/app/chart/ring/demo2.vue @@ -59,7 +59,7 @@ export default { { name: 'EIP_1', value: 10 }, { name: 'EIP_2', value: 40 } ] - }, + } ] } } diff --git a/examples/sites/demos/pc/app/chart/ring/demo3-composition-api.vue b/examples/sites/demos/pc/app/chart/ring/demo3-composition-api.vue index d5c5abd19..664a8309c 100644 --- a/examples/sites/demos/pc/app/chart/ring/demo3-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/ring/demo3-composition-api.vue @@ -12,7 +12,7 @@ const options = ref({ type: 'nulti-circle', position: { radius: ['44%', '50%'], - center: ['35%', '50%'], + center: ['35%', '50%'] }, color: ['#fa2a2d', '#ff7500', '#ffbf00', '#41ba41', '#00aaee'], title: { diff --git a/examples/sites/demos/pc/app/chart/ring/demo3.vue b/examples/sites/demos/pc/app/chart/ring/demo3.vue index 9261e0933..2992ec762 100644 --- a/examples/sites/demos/pc/app/chart/ring/demo3.vue +++ b/examples/sites/demos/pc/app/chart/ring/demo3.vue @@ -17,7 +17,7 @@ export default { type: 'nulti-circle', position: { radius: ['44%', '50%'], - center: ['35%', '50%'], + center: ['35%', '50%'] }, color: ['#fa2a2d', '#ff7500', '#ffbf00', '#41ba41', '#00aaee'], title: { diff --git a/examples/sites/demos/pc/app/chart/ring/demo6-composition-api.vue b/examples/sites/demos/pc/app/chart/ring/demo6-composition-api.vue index df8782bc0..56565fbfc 100644 --- a/examples/sites/demos/pc/app/chart/ring/demo6-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/ring/demo6-composition-api.vue @@ -37,7 +37,7 @@ const options = ref({ { value: 100, name: '架构设计' }, { value: 90, name: '开发' }, { value: 49, name: '性能' }, - { value: 14, name: '测试' }, + { value: 14, name: '测试' } ] }) diff --git a/examples/sites/demos/pc/app/chart/ring/demo6.vue b/examples/sites/demos/pc/app/chart/ring/demo6.vue index fe403bd88..5a9698d8a 100644 --- a/examples/sites/demos/pc/app/chart/ring/demo6.vue +++ b/examples/sites/demos/pc/app/chart/ring/demo6.vue @@ -42,7 +42,7 @@ export default { { value: 100, name: '架构设计' }, { value: 90, name: '开发' }, { value: 49, name: '性能' }, - { value: 14, name: '测试' }, + { value: 14, name: '测试' } ] } } diff --git a/examples/sites/demos/pc/app/chart/ring/ring.spec.ts b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts index 96d222a4d..61c31f798 100644 --- a/examples/sites/demos/pc/app/chart/ring/ring.spec.ts +++ b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts @@ -1,9 +1,10 @@ -import { test, expect } from '@playwright/test' +import { test, expect, config } from '../fixtures' +config.waitTime = 5000 test('base', async ({ page }) => { await page.goto('chart-ring#ring-base') - const chart = page.locator('#ring-base .hui-chart') - await expect(chart).toHaveScreenshot('base.png') + await expect(page.locator('#ring-base .hui-chart')).toBeInViewport() + await expect(page).toHaveScreenshot('base.png') }) test('demo2', async ({ page }) => { @@ -21,10 +22,12 @@ test('demo3', async ({ page }) => { test('demo4', async ({ page }) => { await page.goto('chart-ring#ring-demo4') const chart = page.locator('#ring-demo4 .hui-chart') + await expect(chart).toBeVisible() await expect(chart).toHaveScreenshot('demo4.png') }) test('demo5', async ({ page }) => { + config.waitTime = 5000 await page.goto('chart-ring#ring-demo5') const chart = page.locator('#ring-demo5 .hui-chart') await expect(chart).toHaveScreenshot('demo5.png') @@ -39,5 +42,6 @@ test('demo6', async ({ page }) => { test('ring-title', async ({ page }) => { await page.goto('chart-ring#ring-ring-title') const chart = page.locator('#ring-ring-title .hui-chart') + await expect(chart).toBeVisible() await expect(chart).toHaveScreenshot('ring-title.png') }) diff --git a/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..3182148f0 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..05037216d Binary files /dev/null and b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..3f23f1c2c Binary files /dev/null and b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..68528550a Binary files /dev/null and b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..05037216d Binary files /dev/null and b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo6-chromium-win32.png b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo6-chromium-win32.png new file mode 100644 index 000000000..84e506557 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/demo6-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/ring-title-chromium-win32.png b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/ring-title-chromium-win32.png new file mode 100644 index 000000000..d409ecae3 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/ring/ring.spec.ts-snapshots/ring-title-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/sankey/base-composition-api.vue b/examples/sites/demos/pc/app/chart/sankey/base-composition-api.vue index 53f6f5f6d..dd8d16cb1 100644 --- a/examples/sites/demos/pc/app/chart/sankey/base-composition-api.vue +++ b/examples/sites/demos/pc/app/chart/sankey/base-composition-api.vue @@ -9,7 +9,6 @@ import { ref } from 'vue' import { ChartSankey as TinyChartSankey } from '@opentiny/vue' const options = ref({ - // 页面节点是否可被拖动,布尔值,默认值为true draggable: false, @@ -52,6 +51,4 @@ const options = ref({ ] } }) - - diff --git a/examples/sites/demos/pc/app/chart/sankey/sankey.spec.ts b/examples/sites/demos/pc/app/chart/sankey/sankey.spec.ts index 3fde1b92e..44fd952aa 100644 --- a/examples/sites/demos/pc/app/chart/sankey/sankey.spec.ts +++ b/examples/sites/demos/pc/app/chart/sankey/sankey.spec.ts @@ -1,13 +1,15 @@ -import { test, expect } from '@playwright/test' +import { test, expect, config } from '../fixtures' test('base', async ({ page }) => { + config.waitTime = 5000 await page.goto('chart-sankey#sankey-base') - const chart = page.locator('#sankey-base .hui-chart') - await expect(chart).toHaveScreenshot('base.png') + await expect(page.locator('#sankey-base .hui-chart')).toBeInViewport() + await expect(page).toHaveScreenshot('base.png') }) test('demo2', async ({ page }) => { + config.waitTime = 3000 await page.goto('chart-sankey#sankey-demo2') - const chart = page.locator('#sankey-demo2 .hui-chart') - await expect(chart).toHaveScreenshot('demo2.png') + await expect(page.locator('#sankey-demo2 .hui-chart')).toBeInViewport() + await expect(page).toHaveScreenshot('demo2.png') }) diff --git a/examples/sites/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..9e597ea25 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..b145bbf7b Binary files /dev/null and b/examples/sites/demos/pc/app/chart/sankey/sankey.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts index 262f2ef1a..d7d21c868 100644 --- a/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts +++ b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-scatter#scatter-base') diff --git a/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..d3e2b0ba9 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..eae4890db Binary files /dev/null and b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..9e46e0df0 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..2dcde9dc0 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..22429d550 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo6-chromium-win32.png b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo6-chromium-win32.png new file mode 100644 index 000000000..ae655d30d Binary files /dev/null and b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo6-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo7-chromium-win32.png b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo7-chromium-win32.png new file mode 100644 index 000000000..d6aae2d61 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo7-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo8-chromium-win32.png b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo8-chromium-win32.png new file mode 100644 index 000000000..ac3851f52 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/scatter/scatter.spec.ts-snapshots/demo8-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts b/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts index 66e9b8dcf..a8f131bfc 100644 --- a/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts +++ b/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-sunburst#sunburst-base') diff --git a/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..36d8f5f9d Binary files /dev/null and b/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..ac5193b79 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..032590a77 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/sunburst/sunburst.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/tree/tree.spec.ts b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts index 9190224c1..4fa9a8989 100644 --- a/examples/sites/demos/pc/app/chart/tree/tree.spec.ts +++ b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-tree#tree-base') diff --git a/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..fce427346 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..a39bd7b1c Binary files /dev/null and b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..aeb23aa91 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..8dd868c85 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..63339e271 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/tree/tree.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts index 88426596b..02bb0e30e 100644 --- a/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts +++ b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-waterfall#waterfall-base') diff --git a/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..b1a422340 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..4da0bf00d Binary files /dev/null and b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..74943f3cc Binary files /dev/null and b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..4ed7b2888 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo5-chromium-win32.png b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo5-chromium-win32.png new file mode 100644 index 000000000..8590cbca7 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/waterfall/waterfall.spec.ts-snapshots/demo5-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-attributes-demo.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-attributes-demo.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-attributes-demo.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-attributes-demo.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-autonavi-map.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-autonavi-map.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-autonavi-map.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-autonavi-map.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-baidu-map.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-baidu-map.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-baidu-map.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-baidu-map.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-bar.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-bar.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-bar.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-bar.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-boxplot.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-boxplot.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-boxplot.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-boxplot.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-candle.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-candle.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-candle.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-candle.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-events.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-events.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-events.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-events.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-funnel.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-funnel.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-funnel.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-funnel.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-gauge.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-gauge.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-gauge.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-gauge.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-graph.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-graph.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-graph.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-graph.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-heatmap.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-heatmap.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-heatmap.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-heatmap.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-histogram.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-histogram.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-histogram.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-histogram.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-line.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-line.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-line.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-line.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-liquidfill.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-liquidfill.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-liquidfill.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-liquidfill.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-map.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-map.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-map.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-map.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-pie.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-pie.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-pie.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-pie.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-question.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-question.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-question.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-question.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-radar.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-radar.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-radar.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-radar.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-ring.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-ring.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-ring.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-ring.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-sankey.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-sankey.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-sankey.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-sankey.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-scatter.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-scatter.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-scatter.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-scatter.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-sunburst.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-sunburst.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-sunburst.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-sunburst.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-tree.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-tree.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-tree.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-tree.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-waterfall.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-waterfall.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-waterfall.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-waterfall.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/webdoc/chart-wordcloud.json.cn.md b/examples/sites/demos/pc/app/chart/webdoc/chart-wordcloud.json.cn.md index 8b802cd4a..857982e89 100644 --- a/examples/sites/demos/pc/app/chart/webdoc/chart-wordcloud.json.cn.md +++ b/examples/sites/demos/pc/app/chart/webdoc/chart-wordcloud.json.cn.md @@ -1,5 +1,5 @@ --- -title: Chart 图表 +title: Chart 图表 --- # Chart 图表 diff --git a/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts b/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts index 43aeaaf72..25d9b533a 100644 --- a/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts +++ b/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts @@ -1,4 +1,4 @@ -import { test, expect } from '@playwright/test' +import { test, expect } from '../fixtures' test('base', async ({ page }) => { await page.goto('chart-wordcloud#wordcloud-base') diff --git a/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/base-chromium-win32.png b/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/base-chromium-win32.png new file mode 100644 index 000000000..0d82a752b Binary files /dev/null and b/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/base-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo2-chromium-win32.png b/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo2-chromium-win32.png new file mode 100644 index 000000000..4e70c7dc8 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo2-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo3-chromium-win32.png b/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo3-chromium-win32.png new file mode 100644 index 000000000..c00779485 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo3-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo4-chromium-win32.png b/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo4-chromium-win32.png new file mode 100644 index 000000000..e5c2f91d1 Binary files /dev/null and b/examples/sites/demos/pc/app/chart/wordcloud/wordcloud.spec.ts-snapshots/demo4-chromium-win32.png differ diff --git a/examples/sites/demos/pc/app/dialog-box/dialog-top-height.spec.ts b/examples/sites/demos/pc/app/dialog-box/dialog-top-height.spec.ts index ab0d61056..8c08a1ada 100644 --- a/examples/sites/demos/pc/app/dialog-box/dialog-top-height.spec.ts +++ b/examples/sites/demos/pc/app/dialog-box/dialog-top-height.spec.ts @@ -4,7 +4,6 @@ test('dialogBox 弹窗距离顶部的高度', async ({ page }) => { page.on('pageerror', (exception) => expect(exception).toBeNull()) await page.goto('dialog-box#dialog-top-height') const dialogBox = page.locator('.tiny-dialog-box') - await page.getByRole('link', { name: '弹窗距离顶部的高度' }).click() await page.getByRole('button', { name: '显示在顶部' }).click() // 默认弹窗距离顶部的高度 await expect(dialogBox.nth(0)).toHaveCSS('top', '0px') @@ -12,5 +11,4 @@ test('dialogBox 弹窗距离顶部的高度', async ({ page }) => { await page.getByRole('button', { name: /300px/ }).click() // 自定义弹窗距离顶部的高度 await expect(dialogBox.nth(1)).toHaveCSS('top', '300px') - await page.getByRole('button', { name: 'Close' }).nth(1).click() }) diff --git a/examples/sites/demos/pc/app/dialog-box/dialog-width.spec.ts b/examples/sites/demos/pc/app/dialog-box/dialog-width.spec.ts index 9566ba539..6e6908043 100644 --- a/examples/sites/demos/pc/app/dialog-box/dialog-width.spec.ts +++ b/examples/sites/demos/pc/app/dialog-box/dialog-width.spec.ts @@ -9,5 +9,4 @@ test('dialogBox 弹窗的宽度', async ({ page }) => { await page.getByRole('button', { name: 'Close' }).click() await page.getByRole('button', { name: /60%/ }).click() await expect(dialogBox.nth(1)).toBeVisible() - await page.getByRole('button', { name: '确 定' }).nth(1).click() }) diff --git a/examples/sites/demos/pc/app/dialog-box/fullscreen-composition-api.vue b/examples/sites/demos/pc/app/dialog-box/fullscreen-composition-api.vue index b1da38693..6ee90b8ab 100644 --- a/examples/sites/demos/pc/app/dialog-box/fullscreen-composition-api.vue +++ b/examples/sites/demos/pc/app/dialog-box/fullscreen-composition-api.vue @@ -1,7 +1,7 @@