feat: update chart docs
|
@ -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
|
||||
|
|
|
@ -18,9 +18,9 @@
|
|||
"sortablejs": "1.15.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.40.1"
|
||||
"@playwright/test": "~1.42.0"
|
||||
},
|
||||
"files": [
|
||||
"resources"
|
||||
]
|
||||
}
|
||||
}
|
|
@ -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
|
||||
}
|
||||
`
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
`
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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':
|
||||
'<p>是否可以通过点击遮罩层关闭弹窗,默认为 true ,可以在标签上设置:close-on-click-modal="false"不能通过点击遮罩层关闭弹窗。</p>',
|
||||
'en-US': 'Is show left arrow'
|
||||
},
|
||||
mode: ['mobile'],
|
||||
mobileDemo: 'close-on-click-modal'
|
||||
},
|
||||
{
|
||||
name: 'lock-scroll',
|
||||
type: 'Boolean',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': '<p>Dialog弹出时是否禁用滚动条,该属性默认为true</p>',
|
||||
'en-US': 'Is show right arrow'
|
||||
},
|
||||
mode: ['mobile'],
|
||||
mobileDemo: 'lock-scroll'
|
||||
},
|
||||
{
|
||||
name: 'modal-append-to-body',
|
||||
type: 'Boolean',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN':
|
||||
'<p>遮罩层是否应用到 body 上,为 false 时遮罩层会应用到 DialogBox 的父元素上,该属性默认为true</p>',
|
||||
'en-US': 'Is show right text'
|
||||
},
|
||||
mode: ['mobile'],
|
||||
mobileDemo: 'slot-title'
|
||||
},
|
||||
{
|
||||
name: 'show-header',
|
||||
type: 'Boolean',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': '<p>是否显示弹窗头部 header,默认值为 true 。</p>',
|
||||
'en-US': 'Is show left text'
|
||||
},
|
||||
mode: ['mobile'],
|
||||
mobileDemo: 'show-header'
|
||||
},
|
||||
{
|
||||
mode: []
|
||||
},
|
||||
{
|
||||
name: 'visible',
|
||||
type: 'String',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': '<p>控制弹出框显示与关闭</p>',
|
||||
'en-US': 'set main-title'
|
||||
},
|
||||
mode: ['mobile'],
|
||||
mobileDemo: 'with-input'
|
||||
}
|
||||
],
|
||||
events: [
|
||||
{
|
||||
mode: []
|
||||
},
|
||||
{
|
||||
name: 'close',
|
||||
type: 'Function()',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': '<p>Dialog 关闭的回调</p>',
|
||||
'en-US': 'Click'
|
||||
},
|
||||
mode: ['mobile'],
|
||||
mobileDemo: 'events-open-close'
|
||||
},
|
||||
{
|
||||
name: 'confirm',
|
||||
type: 'Function()',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': '<p>Dialog 确定按钮的的回调</p>',
|
||||
'en-US': 'Click'
|
||||
},
|
||||
mode: ['mobile'],
|
||||
mobileDemo: 'cancel-confirm'
|
||||
},
|
||||
{
|
||||
name: 'open',
|
||||
type: 'Function()',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': '<p>Dialog 打开的回调</p>',
|
||||
'en-US': 'Click'
|
||||
},
|
||||
mode: ['mobile'],
|
||||
mobileDemo: 'events-open-close'
|
||||
}
|
||||
],
|
||||
methods: [],
|
||||
slots: [
|
||||
{
|
||||
name: 'default',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': '<p>Dialog 的内容</p>',
|
||||
'en-US': 'Click'
|
||||
},
|
||||
mode: ['mobile'],
|
||||
mobileDemo: 'slot-title'
|
||||
},
|
||||
{
|
||||
name: 'footer',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': '<p>Dialog 按钮操作区的内容</p>',
|
||||
'en-US': 'Click'
|
||||
},
|
||||
mode: ['mobile'],
|
||||
mobileDemo: 'slot-footer'
|
||||
},
|
||||
{
|
||||
name: 'title',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': '<p>Dialog 标题区的内容</p>',
|
||||
'en-US': 'Click'
|
||||
},
|
||||
mode: ['mobile'],
|
||||
mobileDemo: 'slot-title'
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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版本新增
|
||||
`
|
||||
},
|
||||
{
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
`
|
||||
},
|
||||
|
|
|
@ -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':
|
||||
'是否展示多选框开启多选限制选择数量时,选中条数和限制总条数的占比的文字提示。 该属性的优先级大于<code>show-proportion</code> 属性,同时设置只',
|
||||
'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: [
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
`
|
||||
},
|
||||
|
|
|
@ -1,6 +1,12 @@
|
|||
<template>
|
||||
<div>
|
||||
<tiny-file-upload :action="action" list-type="picture-single" :file-list="fileList1" @preview="handlePreview">
|
||||
<tiny-file-upload
|
||||
:action="action"
|
||||
list-type="picture-single"
|
||||
:file-list="fileList1"
|
||||
@preview="handlePreview"
|
||||
image-bg-color="red"
|
||||
>
|
||||
</tiny-file-upload>
|
||||
<br />
|
||||
<br />
|
||||
|
@ -10,12 +16,11 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { FileUpload, Button } from '@opentiny/vue'
|
||||
import { FileUpload } from '@opentiny/vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
TinyFileUpload: FileUpload,
|
||||
TinyButton: Button
|
||||
TinyFileUpload: FileUpload
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
@ -23,7 +28,7 @@ export default {
|
|||
fileList1: [
|
||||
{
|
||||
name: 'Snipaste_2022-12-02_18-05-51.png',
|
||||
url: `${import.meta.env.VITE_APP_BUILD_BASE_URL}static/images/ld.png`
|
||||
url: `${import.meta.env.VITE_APP_BUILD_BASE_URL}static/images/hae-logo.png`
|
||||
}
|
||||
],
|
||||
fileList2: [
|
||||
|
@ -46,8 +51,8 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
handlePreview() {
|
||||
console.log(...arguments)
|
||||
handlePreview(...args) {
|
||||
console.log(...args)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,90 @@
|
|||
<template>
|
||||
<tiny-file-upload
|
||||
ref="upload"
|
||||
:action="action"
|
||||
:file-list="fileList"
|
||||
list-type="saas"
|
||||
@download-file="handleDownloadFile"
|
||||
></tiny-file-upload>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { FileUpload, Modal } from '@opentiny/vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
TinyFileUpload: FileUpload
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
action: 'http://localhost:3000/api/upload',
|
||||
fileList: [
|
||||
{
|
||||
docId: 'M1T2A1N548572512085860351',
|
||||
path: 'edm/one/',
|
||||
docVersion: 'V1',
|
||||
name: 'test1.png',
|
||||
docSize: 100 * 1024,
|
||||
size: 100 * 1024,
|
||||
serverName: 'ShenZhen'
|
||||
},
|
||||
{
|
||||
docId: 'M1T2A1N548572512085860352',
|
||||
path: 'edm/one/',
|
||||
docVersion: 'V1',
|
||||
name: 'test1.png',
|
||||
docSize: 100 * 1024,
|
||||
size: 100 * 1024,
|
||||
serverName: 'ShenZhen'
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleDownloadFile(file) {
|
||||
// 模拟下载成功场景
|
||||
if (file.docId === 'M1T2A1N548572512085860351') {
|
||||
file.showDownloadBar = true
|
||||
|
||||
// 更新downloadPercentage,vue2下写法
|
||||
this.$set(file, 'downloadPercentage', 0)
|
||||
// 更新downloadPercentage,vue3下写法
|
||||
// file.downloadPercentage = 0
|
||||
|
||||
const timer = setInterval(() => {
|
||||
if (file.downloadPercentage >= 100) {
|
||||
clearInterval(timer)
|
||||
// 下载完成后可以隐藏进度条,因为进度条有过渡动画,所以可以延迟1s再隐藏
|
||||
setTimeout(() => {
|
||||
file.showDownloadBar = false
|
||||
}, 1000)
|
||||
|
||||
Modal.message({ message: '下载成功', status: 'success' })
|
||||
return
|
||||
}
|
||||
file.downloadPercentage += 10
|
||||
}, 300)
|
||||
} else {
|
||||
// 模拟下载失败场景
|
||||
file.showDownloadBar = true
|
||||
|
||||
// 更新downloadPercentage,vue2下写法
|
||||
this.$set(file, 'downloadPercentage', 0)
|
||||
// 更新downloadPercentage,vue3下写法
|
||||
// file.downloadPercentage = 0
|
||||
|
||||
const timer = setInterval(() => {
|
||||
if (file.downloadPercentage >= 50) {
|
||||
clearInterval(timer)
|
||||
// file.showDownloadBar = false
|
||||
file.downloadStatus = 'exception'
|
||||
Modal.message({ message: '下载失败', status: 'error' })
|
||||
return
|
||||
}
|
||||
file.downloadPercentage += 10
|
||||
}, 300)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -96,7 +96,7 @@ export default {
|
|||
},
|
||||
desc: {
|
||||
'zh-CN':
|
||||
'<p>文件上传模式,配置 `download-all` 事件,会显示下载全部按钮,点击下载全部按钮会触发 `download-all` 事件<p>',
|
||||
'<p>文件上传模式,配置 `download-all` 事件,会显示下载全部按钮,点击下载全部按钮会触发 `download-all` 事件。<p>',
|
||||
'en-US': '<p>button click</p>'
|
||||
},
|
||||
codeFiles: ['download-all.vue']
|
||||
|
@ -109,11 +109,25 @@ export default {
|
|||
},
|
||||
desc: {
|
||||
'zh-CN':
|
||||
'<p>文件上传模式,配置 `download-file` 事件,已上传的文件会显示下载按钮,点击下载按钮会触发 `download-file` 事件<p>',
|
||||
'<p>文件上传模式,配置 `download-file` 事件,已上传的文件会显示下载按钮,点击下载按钮会触发 `download-file` 事件。<p>',
|
||||
'en-US': '<p>button click</p>'
|
||||
},
|
||||
codeFiles: ['download.vue']
|
||||
},
|
||||
{
|
||||
demoId: 'show-download-bar',
|
||||
name: {
|
||||
'zh-CN': '下载进度条',
|
||||
'en-US': 'Download progress bar'
|
||||
},
|
||||
desc: {
|
||||
'zh-CN':
|
||||
'<p>通过给 file 对象设置 `showDownloadBar:true` 可以显示下载进度条,`downloadPercentage` 属性传入下载进度,`downloadStatus` 设置下载状态。<p>',
|
||||
'en-US':
|
||||
'<p>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.</p>'
|
||||
},
|
||||
codeFiles: ['show-download-bar.vue']
|
||||
},
|
||||
{
|
||||
demoId: 'download-picture',
|
||||
name: {
|
||||
|
@ -122,7 +136,7 @@ export default {
|
|||
},
|
||||
desc: {
|
||||
'zh-CN':
|
||||
'<p>图片上传模式,配置 `download-file` 事件,已上传的文件会显示下载图标,点击下载按钮会触发 `download-file` 事件<p>',
|
||||
'<p>图片上传模式,配置 `download-file` 事件,已上传的文件会显示下载图标,点击下载按钮会触发 `download-file` 事件。<p>',
|
||||
'en-US': '<p>button click</p>'
|
||||
},
|
||||
codeFiles: ['download-picture.vue']
|
||||
|
@ -135,7 +149,7 @@ export default {
|
|||
},
|
||||
desc: {
|
||||
'zh-CN':
|
||||
'<p>文件上传模式,配置 `re-upload` 事件,上传失败的文件会显示重新上传按钮,点击重新上传按钮会触发 `re-upload` 事件<p>',
|
||||
'<p>文件上传模式,配置 `re-upload` 事件,上传失败的文件会显示重新上传按钮,点击重新上传按钮会触发 `re-upload` 事件。<p>',
|
||||
'en-US': '<p>button click</p>'
|
||||
},
|
||||
codeFiles: ['re-upload.vue']
|
||||
|
@ -148,7 +162,7 @@ export default {
|
|||
},
|
||||
desc: {
|
||||
'zh-CN':
|
||||
'<p>图片上传模式,配置 `re-upload` 事件,上传失败的文件会显示重新上传图标,点击重新上传按钮会触发 `re-upload` 事件<p>',
|
||||
'<p>图片上传模式,配置 `re-upload` 事件,上传失败的文件会显示重新上传图标,点击重新上传按钮会触发 `re-upload` 事件。<p>',
|
||||
'en-US': '<p>button click</p>'
|
||||
},
|
||||
codeFiles: ['re-upload-picture.vue']
|
||||
|
@ -308,7 +322,7 @@ export default {
|
|||
'en-US': 'events'
|
||||
},
|
||||
desc: {
|
||||
'zh-CN': '<p>可配置 `file-list` 属性展示对应的文件<p>',
|
||||
'zh-CN': '<p>可配置 `file-list` 属性展示对应的文件。<p>',
|
||||
'en-US': '<p>button click</p>'
|
||||
},
|
||||
codeFiles: ['drag-file-list.vue']
|
||||
|
@ -321,7 +335,7 @@ export default {
|
|||
},
|
||||
desc: {
|
||||
'zh-CN':
|
||||
'<p>`trigger-click` 点击文件上传时触发的事件<br>`preview` 点击预览时触发的事件<br> `download-file` 点击下载时触发的事件<br>`download-all` 点击全部下载时触发的事件<br>`re-upload` 点击重新上传时触发的事件<br>`click-file-list` 点击上传的文件列表时触发的事件<p>',
|
||||
'<p>`trigger-click` 点击文件上传时触发的事件<br>`preview` 点击预览时触发的事件<br> `download-file` 点击下载时触发的事件<br>`download-all` 点击全部下载时触发的事件<br>`re-upload` 点击重新上传时触发的事件<br>`click-file-list` 点击上传的文件列表时触发的事件。<p>',
|
||||
'en-US': '<p>button click</p>'
|
||||
},
|
||||
codeFiles: ['event-trigger-click.vue']
|
||||
|
|
|
@ -0,0 +1,55 @@
|
|||
<template>
|
||||
<div class="w-96">
|
||||
<tiny-form ref="ruleForm" :model="createData" :rules="rules" label-width="96px" show-message>
|
||||
<tiny-form-item label="必填项" prop="users" required>
|
||||
<template #prompt>
|
||||
<div class="relative sm:absolute text-xs leading-normal text-color-alert" title="强提示插槽">强提示插槽</div>
|
||||
</template>
|
||||
<tiny-input v-model="createData.users"></tiny-input>
|
||||
</tiny-form-item>
|
||||
<tiny-form-item label="URL" prop="url">
|
||||
<tiny-input v-model="createData.url"></tiny-input>
|
||||
</tiny-form-item>
|
||||
<tiny-form-item>
|
||||
<tiny-button type="primary" @click="handleSubmit('ruleForm')" class="ml-24"> 提交 </tiny-button>
|
||||
</tiny-form-item>
|
||||
</tiny-form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Form, FormItem, Input, Button, Modal } from '@opentiny/vue'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
TinyForm: Form,
|
||||
TinyFormItem: FormItem,
|
||||
TinyInput: Input,
|
||||
TinyButton: Button
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
createData: {
|
||||
users: '',
|
||||
url: ''
|
||||
},
|
||||
rules: {
|
||||
users: [
|
||||
{ required: true, message: '必填', trigger: 'blur' },
|
||||
{ min: 2, max: 11, message: '长度必须不小于2', trigger: 'change' }
|
||||
],
|
||||
url: { type: 'url' }
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleSubmit(formName) {
|
||||
this.$refs[formName].validate((valid) => {
|
||||
if (valid) {
|
||||
Modal.alert('提交成功')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
|
@ -215,6 +215,18 @@ export default {
|
|||
'<p>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`.</p>'
|
||||
},
|
||||
codeFiles: ['validate-debounce.vue']
|
||||
},
|
||||
{
|
||||
demoId: 'prompt-slot',
|
||||
name: {
|
||||
'zh-CN': '强提示插槽',
|
||||
'en-US': 'Prompt slot'
|
||||
},
|
||||
desc: {
|
||||
'zh-CN': '<p>通过 `prompt` 插槽,自定义强提示插槽的内容。</p>',
|
||||
'en-US': '<p>Customize the content of the strong prompt slot in the `prompt` slot. </p>'
|
||||
},
|
||||
codeFiles: ['prompt-slot.vue']
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<tiny-tabs v-model="activeName" tab-style="card" :with-close="true" @close="close">
|
||||
<tiny-tabs v-model="activeName" tab-style="card" :with-close="true" :before-close="beforeClose" @close="close">
|
||||
<tiny-tab-item :key="item.name" v-for="item in Tabs" :title="item.title" :name="item.name">
|
||||
{{ item.content }}
|
||||
</tiny-tab-item>
|
||||
|
@ -47,6 +47,10 @@ export default {
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
beforeClose(name) {
|
||||
// 只能关闭标签页“其他组件”
|
||||
return name === 'fifth'
|
||||
},
|
||||
close(name) {
|
||||
this.$message({
|
||||
title: 'close 事件',
|
||||
|
|
|
@ -0,0 +1,35 @@
|
|||
import { test, expect } from '@playwright/test'
|
||||
|
||||
test('基本用法', async ({ page }) => {
|
||||
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
||||
await page.goto('button#base')
|
||||
|
||||
const buttons = page.locator('.button-wrap .tiny-mobile-button')
|
||||
|
||||
// 主要按钮
|
||||
await expect(buttons.first()).toHaveClass(/tiny-mobile-button--primary/)
|
||||
await expect(buttons.first()).toHaveCSS('background-color', 'rgb(25, 25, 25)')
|
||||
await expect(buttons.first()).toHaveCSS('color', 'rgb(255, 255, 255)')
|
||||
|
||||
// 次要按钮
|
||||
await expect(buttons.nth(1)).toHaveClass(/tiny-mobile-button--secondary/)
|
||||
await expect(buttons.nth(1)).toHaveCSS('background-color', 'rgb(255, 255, 255)')
|
||||
await expect(buttons.nth(1)).toHaveCSS('color', 'rgb(25, 25, 25)')
|
||||
|
||||
// 危险按钮
|
||||
await expect(buttons.nth(2)).toHaveClass(/tiny-mobile-button--danger/)
|
||||
await expect(buttons.nth(2)).toHaveCSS('border-color', 'rgb(242, 48, 48)')
|
||||
await expect(buttons.nth(2)).toHaveCSS('color', 'rgb(242, 48, 48)')
|
||||
|
||||
// 文字按钮
|
||||
await expect(buttons.nth(3)).toHaveClass(/tiny-mobile-button--text/)
|
||||
await expect(buttons.nth(3)).toHaveCSS('border-style', 'none')
|
||||
|
||||
// 纯图标按钮
|
||||
await expect(buttons.nth(4)).toHaveClass(/tiny-mobile-button--icon/)
|
||||
await expect(buttons.nth(4).locator('span')).toBeEmpty()
|
||||
|
||||
// 图标按钮
|
||||
await expect(buttons.nth(5)).toHaveClass(/tiny-mobile-button--icon/)
|
||||
await expect(buttons.nth(5)).toContainText('图标按钮')
|
||||
})
|
|
@ -0,0 +1,13 @@
|
|||
import { test, expect } from '@playwright/test'
|
||||
|
||||
test('禁用', async ({ page }) => {
|
||||
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
||||
await page.goto('button#disabled')
|
||||
|
||||
const button = page.locator('#disabled .tiny-mobile-button').first()
|
||||
|
||||
await expect(button).toHaveClass(/is-disabled/)
|
||||
await expect(button).toHaveCSS('background-color', 'rgb(240, 240, 240)')
|
||||
await expect(button).toHaveCSS('color', 'rgb(194, 194, 194)')
|
||||
await expect(button).toHaveCSS('cursor', 'not-allowed')
|
||||
})
|
|
@ -0,0 +1,13 @@
|
|||
import { test, expect } from '@playwright/test'
|
||||
|
||||
test('事件', async ({ page }) => {
|
||||
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
||||
await page.goto('button#event')
|
||||
|
||||
const button = page.locator('#event .tiny-mobile-button')
|
||||
|
||||
await button.click()
|
||||
await expect(button).toHaveClass(/is-loading/)
|
||||
await page.waitForTimeout(2000)
|
||||
await expect(button).not.toHaveClass(/is-loading/)
|
||||
})
|
|
@ -0,0 +1,15 @@
|
|||
import { test, expect } from '@playwright/test'
|
||||
|
||||
test('自定义图标', async ({ page }) => {
|
||||
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
||||
await page.goto('button#icon')
|
||||
|
||||
const buttons = page.locator('#icon .tiny-mobile-button')
|
||||
|
||||
await expect(buttons.first()).toHaveClass(/tiny-mobile-button--icon/)
|
||||
await expect(buttons.first().locator('.is-icon')).toBeVisible()
|
||||
|
||||
await expect(buttons.nth(1)).toHaveClass(/tiny-mobile-button--icon/)
|
||||
await expect(buttons.nth(1).locator('.is-icon')).toBeVisible()
|
||||
await expect(buttons.nth(1).locator('span')).toBeVisible()
|
||||
})
|
|
@ -0,0 +1,11 @@
|
|||
import { test, expect } from '@playwright/test'
|
||||
|
||||
test('加载中状态', async ({ page }) => {
|
||||
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
||||
await page.goto('button#loading')
|
||||
|
||||
const buttons = page.locator('.button-wrap .tiny-mobile-button')
|
||||
|
||||
await expect(buttons.first()).toHaveClass(/is-loading/)
|
||||
await expect(buttons.first().locator('.tiny-mobile-button-loading-white')).toBeVisible()
|
||||
})
|
|
@ -0,0 +1,13 @@
|
|||
import { test, expect } from '@playwright/test'
|
||||
|
||||
test('重置时间', async ({ page }) => {
|
||||
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
||||
await page.goto('button#reset-time')
|
||||
|
||||
const button = page.locator('.button-wrap .tiny-mobile-button')
|
||||
await button.click()
|
||||
|
||||
await expect(button).toHaveClass(/is-disabled/)
|
||||
await page.waitForTimeout(500)
|
||||
await expect(button).not.toHaveClass(/is-disabled/)
|
||||
})
|
|
@ -0,0 +1,25 @@
|
|||
import { test, expect } from '@playwright/test'
|
||||
|
||||
test('尺寸', async ({ page }) => {
|
||||
page.on('pageerror', (exception) => expect(exception).toBeNull())
|
||||
await page.goto('button#size')
|
||||
|
||||
const buttons = page.locator('.button-wrap .tiny-mobile-button')
|
||||
|
||||
// 主要按钮
|
||||
const smallPrimaryBtn = buttons.first()
|
||||
const size = await smallPrimaryBtn.boundingBox()
|
||||
await expect(smallPrimaryBtn).toHaveClass(/tiny-mobile-button--small/)
|
||||
expect(size?.height).toBeCloseTo(28, 1)
|
||||
expect(smallPrimaryBtn).toHaveCSS('font-size', '12px')
|
||||
|
||||
// 文字按钮
|
||||
const smallTextBtn = buttons.nth(3)
|
||||
await expect(smallTextBtn).toHaveClass(/tiny-mobile-button--small/)
|
||||
expect(smallTextBtn).toHaveCSS('font-size', '12px')
|
||||
|
||||
// 图标按钮
|
||||
const smallIconBtn = buttons.nth(4)
|
||||
const iconSize = await smallIconBtn.locator('.tiny-icon').boundingBox()
|
||||
expect(iconSize?.width).toBeCloseTo(16, 1)
|
||||
})
|
|
@ -19,7 +19,7 @@ test.describe('文本域可缩放', () => {
|
|||
|
||||
const textarea = page.locator('.demo-input .tiny-mobile-textarea textarea')
|
||||
|
||||
await expect(textarea.nth(4)).toHaveClass(/is-autosize/)
|
||||
await expect(textarea.nth(5)).toHaveClass(/is-autosize/)
|
||||
await expect(textarea.nth(6)).toHaveClass(/is-autosize/)
|
||||
})
|
||||
})
|
||||
|
|
After Width: | Height: | Size: 66 KiB |
|
@ -29,8 +29,5 @@ const options = ref({
|
|||
]
|
||||
}
|
||||
]
|
||||
|
||||
})
|
||||
|
||||
|
||||
</script>
|
||||
|
|
|
@ -34,7 +34,6 @@ export default {
|
|||
]
|
||||
}
|
||||
]
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
import { test, expect } from '@playwright/test'
|
||||
import { test, expect } from '../fixtures'
|
||||
|
||||
test('base', async ({ page }) => {
|
||||
await page.goto('chart-bar#bar-base')
|
||||
const chart = page.locator('#bar-base .hui-chart')
|
||||
await expect(chart).toHaveScreenshot('base.png')
|
||||
await expect(page.locator('#bar-base .hui-chart')).toBeInViewport()
|
||||
await expect(page).toHaveScreenshot('base.png')
|
||||
})
|
||||
|
||||
test('demo2', async ({ page }) => {
|
||||
await page.goto('chart-bar#bar-demo2')
|
||||
const chart = page.locator('#bar-demo2 .hui-chart')
|
||||
await expect(chart).toHaveScreenshot('demo2.png')
|
||||
await expect(page.locator('#bar-demo2 .hui-chart')).toBeInViewport()
|
||||
await expect(page).toHaveScreenshot('demo2.png')
|
||||
})
|
||||
|
||||
test('demo3', async ({ page }) => {
|
||||
|
|
After Width: | Height: | Size: 66 KiB |
After Width: | Height: | Size: 55 KiB |
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 10 KiB |
After Width: | Height: | Size: 11 KiB |
After Width: | Height: | Size: 9.1 KiB |
After Width: | Height: | Size: 8.6 KiB |
|
@ -5,7 +5,6 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="jsx">
|
||||
import { ref } from 'vue'
|
||||
import { ChartBar as TinyChartBar } from '@opentiny/vue'
|
||||
|
||||
const options = {
|
||||
|
|
|
@ -21,7 +21,6 @@ const options = ref({
|
|||
data: '日期'
|
||||
},
|
||||
markLine: {
|
||||
|
||||
// markLine.top 表示顶部阈值线, markLine.bottom 表示底部阈值线
|
||||
top: 32
|
||||
},
|
||||
|
|
|
@ -26,7 +26,6 @@ export default {
|
|||
data: '日期'
|
||||
},
|
||||
markLine: {
|
||||
|
||||
// markLine.top 表示顶部阈值线, markLine.bottom 表示底部阈值线
|
||||
top: 32
|
||||
},
|
||||
|
|
|
@ -9,7 +9,6 @@ import { ref } from 'vue'
|
|||
import { ChartBar as TinyChartBar } from '@opentiny/vue'
|
||||
|
||||
const options = ref({
|
||||
|
||||
// 双向柱状图形态
|
||||
type: 'double-sides',
|
||||
direction: 'horizontal',
|
||||
|
@ -25,7 +24,7 @@ const options = ref({
|
|||
{ 'Month': 'Sep', '上行': 17, '下行': 12 },
|
||||
{ 'Month': 'Oct', '上行': 41, '下行': 33 },
|
||||
{ 'Month': 'Nov', '上行': 42, '下行': 22 },
|
||||
{ 'Month': 'Dec', '上行': 37, '下行': 17 },
|
||||
{ 'Month': 'Dec', '上行': 37, '下行': 17 }
|
||||
]
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -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 }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,8 +14,13 @@
|
|||
<h3 class="title">饼图</h3>
|
||||
<tiny-button style="margin-bottom: 20px" @click="switchColorMode">color-mode切换</tiny-button>
|
||||
<div class="content">
|
||||
<tiny-chart type="ring" @handle-color="handleColor" :options="options3" :color-mode="colorMode"
|
||||
:key="key"></tiny-chart>
|
||||
<tiny-chart
|
||||
type="ring"
|
||||
@handle-color="handleColor"
|
||||
:options="options3"
|
||||
:color-mode="colorMode"
|
||||
:key="key"
|
||||
></tiny-chart>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -14,8 +14,13 @@
|
|||
<h3 class="title">饼图</h3>
|
||||
<tiny-button style="margin-bottom: 20px" @click="switchColorMode">color-mode切换</tiny-button>
|
||||
<div class="content">
|
||||
<tiny-chart type="ring" @handle-color="handleColor" :options="options3" :color-mode="colorMode"
|
||||
:key="key"></tiny-chart>
|
||||
<tiny-chart
|
||||
type="ring"
|
||||
@handle-color="handleColor"
|
||||
:options="options3"
|
||||
:color-mode="colorMode"
|
||||
:key="key"
|
||||
></tiny-chart>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -28,6 +28,5 @@ const options = ref({
|
|||
]
|
||||
}
|
||||
]
|
||||
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -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 })
|
||||
})
|
||||
|
|
After Width: | Height: | Size: 66 KiB |
|
@ -22,6 +22,5 @@ const options = ref({
|
|||
legend: {
|
||||
show: false
|
||||
}
|
||||
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -27,7 +27,7 @@ export default {
|
|||
legend: {
|
||||
show: false
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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')
|
||||
|
|
After Width: | Height: | Size: 9.6 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 11 KiB |
|
@ -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')
|
||||
|
|
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 30 KiB |
After Width: | Height: | Size: 49 KiB |
After Width: | Height: | Size: 16 KiB |
|
@ -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() {
|
||||
|
|
|
@ -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],
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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: {
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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],
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 }
|
|
@ -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' }
|
||||
]
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -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' }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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' }
|
||||
]
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -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' }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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' }
|
||||
]
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -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' }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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' }
|
||||
]
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -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' }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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' }
|
||||
]
|
||||
})
|
||||
</script>
|
||||
|
|
|
@ -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' }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 }) => {
|
||||
|
|
After Width: | Height: | Size: 69 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 13 KiB |
After Width: | Height: | Size: 14 KiB |
After Width: | Height: | Size: 13 KiB |
|
@ -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] 是对应的颜色
|
||||
|
|
|
@ -14,7 +14,6 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
options: {
|
||||
|
||||
// splitColor 分割仪表盘
|
||||
// splitColor[i][0] 的值代表整根轴线的百分比, 应该 0 到 1 之间
|
||||
// splitColor[1][1] 是对应的颜色
|
||||
|
|
|
@ -9,7 +9,6 @@ import { ref } from 'vue'
|
|||
import { ChartGauge as TinyChartGauge } from '@opentiny/vue'
|
||||
|
||||
const options = ref({
|
||||
|
||||
// gradientColor表示从仪表盘左到右的渐变色
|
||||
// gradientColor.length == 1 时也可以表示单色
|
||||
// 注意: splitColor 的优先级高于 gradientColor
|
||||
|
|
|
@ -14,7 +14,6 @@ export default {
|
|||
data() {
|
||||
return {
|
||||
options: {
|
||||
|
||||
// gradientColor表示从仪表盘左到右的渐变色
|
||||
// gradientColor.length == 1 时也可以表示单色
|
||||
// 注意: splitColor 的优先级高于 gradientColor
|
||||
|
|
|
@ -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')
|
||||
})
|
||||
|
||||
|
|
After Width: | Height: | Size: 9.8 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 16 KiB |
After Width: | Height: | Size: 47 KiB |
After Width: | Height: | Size: 21 KiB |