st-comp 0.0.277 → 0.0.279
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -19
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +1 -1
- package/es/ConfigProvider.cjs +1 -1
- package/es/ConfigProvider.js +3 -3
- package/es/Contextmenu.cjs +1 -1
- package/es/Contextmenu.js +7 -7
- package/es/CustomFunction.cjs +2 -2
- package/es/CustomFunction.js +514 -308
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +37 -37
- package/es/HeatMap.cjs +1 -1
- package/es/HeatMap.js +7 -7
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +18 -18
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +93 -93
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +17 -17
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +14 -14
- package/es/KlinePlus.cjs +4 -4
- package/es/KlinePlus.js +760 -656
- package/es/LinearLegend.cjs +1 -1
- package/es/LinearLegend.js +1 -1
- package/es/Map.cjs +1 -1
- package/es/Map.js +1 -1
- package/es/MonacoEditor.cjs +1 -1
- package/es/MonacoEditor.js +18 -18
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +76 -76
- package/es/PasswordPrompt.cjs +1 -1
- package/es/PasswordPrompt.js +2 -2
- package/es/Pie.cjs +2 -2
- package/es/Pie.js +14 -14
- package/es/Table.cjs +1 -1
- package/es/Table.js +22 -22
- package/es/TreeMap.cjs +1 -1
- package/es/TreeMap.js +4 -4
- package/es/User.cjs +1 -1
- package/es/User.js +73 -73
- package/es/VarSelectDialog.cjs +2 -2
- package/es/VarSelectDialog.js +21 -21
- package/es/VarietyAiHelper.cjs +4 -4
- package/es/VarietyAiHelper.js +139 -138
- package/es/VarietyAutoComplete.cjs +1 -1
- package/es/VarietyAutoComplete.js +16 -16
- package/es/VarietySearch.cjs +4 -4
- package/es/VarietySearch.js +861 -857
- package/es/{VarietySelect-6a166293.js → VarietySelect-41daac7b.js} +10 -10
- package/es/{VarietySelect-610903f0.cjs → VarietySelect-d58eee29.cjs} +1 -1
- package/es/VarietyTextCopy.cjs +2 -2
- package/es/VarietyTextCopy.js +25 -25
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +6 -6
- package/es/{_initCloneObject-152b4f4e.js → _initCloneObject-5e73c9c8.js} +2 -2
- package/es/{_initCloneObject-76e116d0.cjs → _initCloneObject-a5832933.cjs} +1 -1
- package/es/aiTools-229609fb.cjs +2 -0
- package/es/aiTools-ce2f9281.js +115 -0
- package/es/aiTools.js +179 -176
- package/es/{config-provider-4c784baf.cjs → config-provider-06ea6b42.cjs} +1 -1
- package/es/{config-provider-7a3aca55.js → config-provider-88b637a8.js} +3 -3
- package/es/{dropdown-987c47fb.cjs → dropdown-4ce4c3e2.cjs} +1 -1
- package/es/{dropdown-01e09205.js → dropdown-72fbc15d.js} +2 -2
- package/es/{el-autocomplete-342ae823.js → el-autocomplete-6cafcdf1.js} +5 -5
- package/es/{el-autocomplete-16f66b34.cjs → el-autocomplete-e0857c5b.cjs} +1 -1
- package/es/{el-button-13dc915f.cjs → el-button-613e0bb2.cjs} +1 -1
- package/es/{el-button-314171a0.js → el-button-94d3de38.js} +3 -3
- package/es/{el-checkbox-5899681f.js → el-checkbox-6d4cb393.js} +3 -3
- package/es/{el-checkbox-bdf64663.cjs → el-checkbox-e90762df.cjs} +1 -1
- package/es/{el-dialog-0ef95df6.cjs → el-dialog-02942e22.cjs} +1 -1
- package/es/{el-dialog-86a3eec2.js → el-dialog-5e30161f.js} +4 -4
- package/es/{el-form-item-77ef6784.cjs → el-form-item-44f060d8.cjs} +1 -1
- package/es/{el-form-item-cda4d93c.js → el-form-item-9e8969ea.js} +5 -5
- package/es/{el-input-fa1445ad.js → el-input-342b2def.js} +13 -13
- package/es/{el-input-89222943.cjs → el-input-9a9a7f7f.cjs} +1 -1
- package/es/{el-input-number-d3338e5e.cjs → el-input-number-65c847d6.cjs} +1 -1
- package/es/{el-input-number-8f6dbf74.js → el-input-number-c22b803a.js} +35 -35
- package/es/{el-loading-84dde1a8.cjs → el-loading-8179b497.cjs} +1 -1
- package/es/{el-loading-9b671203.js → el-loading-bcc51e3d.js} +1 -1
- package/es/{el-menu-item-535fef90.js → el-menu-item-339baf6d.js} +21 -21
- package/es/{el-menu-item-4531fd0e.cjs → el-menu-item-83186444.cjs} +1 -1
- package/es/{el-message-box-621ed2f1.js → el-message-box-035b699c.js} +9 -9
- package/es/{el-message-box-f5717070.cjs → el-message-box-c62d3217.cjs} +1 -1
- package/es/{el-overlay-23de4324.js → el-overlay-3e17604b.js} +3 -3
- package/es/{el-overlay-151708cb.cjs → el-overlay-8f1da9e8.cjs} +1 -1
- package/es/{el-popconfirm-b8aa490e.cjs → el-popconfirm-4e32ec1b.cjs} +1 -1
- package/es/{el-popconfirm-bcff0aa5.js → el-popconfirm-f8a86e2c.js} +4 -4
- package/es/{el-popper-43ec37f4.cjs → el-popper-a4f3ae4d.cjs} +1 -1
- package/es/{el-popper-03988662.js → el-popper-fbd0dcea.js} +1 -1
- package/es/{el-segmented-db3a86be.js → el-segmented-56bd58a8.js} +2 -2
- package/es/{el-segmented-79a1367c.cjs → el-segmented-833ac177.cjs} +1 -1
- package/es/{el-select-4bd0010d.js → el-select-44fa547d.js} +8 -8
- package/es/{el-select-ec04e7ce.cjs → el-select-70806166.cjs} +1 -1
- package/es/{el-table-column-35e47229.cjs → el-table-column-3e2cdfca.cjs} +1 -1
- package/es/{el-table-column-7af2bec7.js → el-table-column-b74a857d.js} +9 -9
- package/es/{el-tag-bef9e83d.js → el-tag-66c83156.js} +2 -2
- package/es/{el-tag-5d5608e0.cjs → el-tag-9c2f329f.cjs} +1 -1
- package/es/{el-text-f998902c.js → el-text-034bd3f4.js} +1 -1
- package/es/{el-text-abf10fdf.cjs → el-text-6b2374bb.cjs} +1 -1
- package/es/index-00f6ca75.cjs +1 -0
- package/es/{index-a00e0534.cjs → index-185792a7.cjs} +1 -1
- package/es/{index-d1b554ac.js → index-1e2a38ab.js} +2 -2
- package/es/{index-0986e373.cjs → index-3153c1db.cjs} +1 -1
- package/es/{index-936e7dec.js → index-44a382a5.js} +2 -2
- package/es/{index-ce21e2ce.js → index-5216d5f5.js} +5 -5
- package/es/{index-7ed0999e.js → index-53cc4e43.js} +720 -716
- package/es/{index-cfcd60ca.cjs → index-5c0dd943.cjs} +1 -1
- package/es/{index-cfd00899.cjs → index-870b6c9d.cjs} +1 -1
- package/es/{index-a83ec4b7.js → index-8c2d7e05.js} +1 -1
- package/es/{index-8901a38c.cjs → index-94131fd7.cjs} +30 -30
- package/es/{index-db846633.cjs → index-9d16cea8.cjs} +1 -1
- package/es/{index-f3f6ee27.js → index-a33b2fb8.js} +178 -178
- package/es/{index-2d7ac156.cjs → index-a9246d17.cjs} +17 -17
- package/es/{index-60c69dd1.cjs → index-ac8dc53d.cjs} +1 -1
- package/es/{index-102edf6c.js → index-c5f2d372.js} +2 -2
- package/es/{index-6290ae0f.js → index-c6584658.js} +2 -2
- package/es/{index-5c44d71a.js → index-eb96e074.js} +149 -119
- package/es/{index-5ed42e9c.js → index-f034b910.js} +2 -2
- package/es/{index-c58e90e9.cjs → index-f58b2920.cjs} +1 -1
- package/es/{python-6cc6ec1b.js → python-8a1664e6.js} +18 -18
- package/es/{python-71f59893.cjs → python-a3db9620.cjs} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-02be4928.cjs → use-form-common-props-ac666630.cjs} +1 -1
- package/es/{use-form-common-props-76a09d89.js → use-form-common-props-ed72e914.js} +11 -11
- package/es/{use-global-config-31b3ec57.cjs → use-global-config-23472471.cjs} +1 -1
- package/es/{use-global-config-0f43458b.js → use-global-config-ee406d58.js} +2 -2
- package/es/{validator-ea292506.cjs → validator-366dbf39.cjs} +1 -1
- package/es/{validator-0e037618.js → validator-c60a8956.js} +1 -1
- package/es/{zh-cn-1227eb8a.js → zh-cn-b59a0910.js} +1 -1
- package/es/{zh-cn-0edc7234.cjs → zh-cn-c21d12d8.cjs} +1 -1
- package/lib/aiTools.js +179 -176
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +230 -230
- package/lib/{index-2a269748.js → index-62fa175a.js} +30149 -29800
- package/lib/{python-41da18e5.js → python-4a48fa39.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +53 -44
- package/auto-imports.d.ts +0 -13
- package/components.d.ts +0 -59
- package/es/aiTools-a3b095f6.js +0 -113
- package/es/aiTools-f36136a4.cjs +0 -2
- package/es/index-476c4459.cjs +0 -1
- package/index.html +0 -13
- package/packages/ChartLayout/index.ts +0 -8
- package/packages/ChartLayout/index.vue +0 -63
- package/packages/ConfigProvider/index.ts +0 -8
- package/packages/ConfigProvider/index.vue +0 -66
- package/packages/Contextmenu/index.ts +0 -8
- package/packages/Contextmenu/index.vue +0 -134
- package/packages/CustomFunction/components/ManageDialog.vue +0 -706
- package/packages/CustomFunction/index.ts +0 -8
- package/packages/CustomFunction/index.vue +0 -200
- package/packages/FactorWarning/index.ts +0 -8
- package/packages/FactorWarning/index.vue +0 -754
- package/packages/FactorWarning/tools.js +0 -10
- package/packages/HeatMap/index.ts +0 -8
- package/packages/HeatMap/index.vue +0 -141
- package/packages/Kline/components/Contextmenu/index.vue +0 -110
- package/packages/Kline/components/Tips/index.vue +0 -40
- package/packages/Kline/componentsNew/KlineSlide/index.vue +0 -155
- package/packages/Kline/componentsNew/KlineSub/index.vue +0 -297
- package/packages/Kline/componentsNew/KlineTips/index.vue +0 -66
- package/packages/Kline/componentsNew/KlineUtils/index.vue +0 -84
- package/packages/Kline/componentsNew/Tips/index.vue +0 -33
- package/packages/Kline/formatKlineData.ts +0 -109
- package/packages/Kline/images/buy.svg +0 -1
- package/packages/Kline/images/pen.png +0 -0
- package/packages/Kline/images/sell.svg +0 -1
- package/packages/Kline/images/t.svg +0 -1
- package/packages/Kline/index.ts +0 -16
- package/packages/Kline/index.vue +0 -891
- package/packages/Kline/option.ts +0 -539
- package/packages/Kline/type.d.ts +0 -219
- package/packages/Kline/utils.ts +0 -682
- package/packages/KlineBasic/api.js +0 -58
- package/packages/KlineBasic/components/AverageTips/index.vue +0 -33
- package/packages/KlineBasic/components/Contextmenu/index.vue +0 -105
- package/packages/KlineBasic/components/KlineSub/index.vue +0 -332
- package/packages/KlineBasic/components/KlineTips/index.vue +0 -99
- package/packages/KlineBasic/components/Tips/index.vue +0 -56
- package/packages/KlineBasic/index.ts +0 -8
- package/packages/KlineBasic/index.vue +0 -839
- package/packages/KlineBasic/utils.js +0 -258
- package/packages/KlineConfig/config.js +0 -46
- package/packages/KlineConfig/index.ts +0 -8
- package/packages/KlineConfig/index.vue +0 -356
- package/packages/KlineNew/components/KlineSlide/index.vue +0 -156
- package/packages/KlineNew/components/KlineSub/index.vue +0 -335
- package/packages/KlineNew/components/KlineTips/index.vue +0 -96
- package/packages/KlineNew/components/KlineUtils/index.vue +0 -341
- package/packages/KlineNew/components/Tips/index.vue +0 -33
- package/packages/KlineNew/index.ts +0 -14
- package/packages/KlinePlus/components/SliderChart.vue +0 -208
- package/packages/KlinePlus/components/Tips.vue +0 -36
- package/packages/KlinePlus/images/buy.svg +0 -1
- package/packages/KlinePlus/images/sell.svg +0 -1
- package/packages/KlinePlus/images/t.svg +0 -1
- package/packages/KlinePlus/index.ts +0 -8
- package/packages/KlinePlus/index.vue +0 -1067
- package/packages/KlinePlus/utils.js +0 -771
- package/packages/LinearLegend/index.ts +0 -8
- package/packages/LinearLegend/index.vue +0 -112
- package/packages/Map/China.json +0 -1
- package/packages/Map/index.ts +0 -8
- package/packages/Map/index.vue +0 -147
- package/packages/MonacoEditor/index.ts +0 -8
- package/packages/MonacoEditor/index.vue +0 -1141
- package/packages/MonacoEditor/tools.js +0 -18
- package/packages/Pagination/index.ts +0 -8
- package/packages/Pagination/index.vue +0 -87
- package/packages/PasswordPrompt/index.ts +0 -8
- package/packages/PasswordPrompt/index.vue +0 -267
- package/packages/Pie/index.ts +0 -8
- package/packages/Pie/index.vue +0 -148
- package/packages/Table/components/Button/index.vue +0 -61
- package/packages/Table/components/Formatter/index.vue +0 -26
- package/packages/Table/index.d.ts +0 -0
- package/packages/Table/index.ts +0 -8
- package/packages/Table/index.vue +0 -133
- package/packages/TreeMap/index.ts +0 -8
- package/packages/TreeMap/index.vue +0 -186
- package/packages/User/components/EditInfoDialog/Mobile.vue +0 -214
- package/packages/User/components/EditInfoDialog/index.vue +0 -161
- package/packages/User/components/EditPasswordDialog.vue +0 -168
- package/packages/User/components/SetPasswordDialog.vue +0 -160
- package/packages/User/index.ts +0 -8
- package/packages/User/index.vue +0 -117
- package/packages/VarSelectDialog/Mock.js +0 -495
- package/packages/VarSelectDialog/VarietySelect.vue +0 -78
- package/packages/VarSelectDialog/index.ts +0 -8
- package/packages/VarSelectDialog/index.vue +0 -323
- package/packages/VarietyAiHelper/images/like.png +0 -0
- package/packages/VarietyAiHelper/images/like_no.png +0 -0
- package/packages/VarietyAiHelper/index.ts +0 -8
- package/packages/VarietyAiHelper/index.vue +0 -910
- package/packages/VarietyAutoComplete/index.ts +0 -8
- package/packages/VarietyAutoComplete/index.vue +0 -89
- package/packages/VarietySearch/components/AddTag/index.vue +0 -268
- package/packages/VarietySearch/components/CommonIndicator/IndicatorTags.vue +0 -52
- package/packages/VarietySearch/components/CommonIndicator/index.vue +0 -697
- package/packages/VarietySearch/components/CommonIndicator/tools.js +0 -260
- package/packages/VarietySearch/components/CompositeOrder/index.vue +0 -260
- package/packages/VarietySearch/components/FactorScreen/FactorDescription.vue +0 -70
- package/packages/VarietySearch/components/FactorScreen/index.vue +0 -1158
- package/packages/VarietySearch/components/FactorScreen/tools.js +0 -34
- package/packages/VarietySearch/config.js +0 -539
- package/packages/VarietySearch/index.ts +0 -8
- package/packages/VarietySearch/index.vue +0 -688
- package/packages/VarietyTextCopy/index.ts +0 -8
- package/packages/VarietyTextCopy/index.vue +0 -136
- package/packages/VirtualTable/index.ts +0 -8
- package/packages/VirtualTable/index.vue +0 -241
- package/packages/index.ts +0 -59
- package/public/aiTools.js +0 -176
- package/public/talib.wasm +0 -0
- package/public/vite.svg +0 -1
- package/src/App.vue +0 -140
- package/src/assets/vue.svg +0 -1
- package/src/components/Dialog/index.vue +0 -16
- package/src/components/Kline/index.vue +0 -21
- package/src/components/Table/index.vue +0 -27
- package/src/main.ts +0 -17
- package/src/pages/ChartLayout/index.vue +0 -22
- package/src/pages/ConfigProvider/index.vue +0 -9
- package/src/pages/Contextmenu/index.vue +0 -46
- package/src/pages/CustomFunction/index.vue +0 -13
- package/src/pages/FactorWarning/index.vue +0 -203
- package/src/pages/HeatMap/index.vue +0 -128
- package/src/pages/Kline/index.vue +0 -12
- package/src/pages/KlineBasic/api.js +0 -48
- package/src/pages/KlineBasic/index.vue +0 -366
- package/src/pages/KlineBasic/indicator.js +0 -114
- package/src/pages/KlineConfig/index.vue +0 -20
- package/src/pages/KlineNew/components/KlineAction/components/ContextMenu/index.vue +0 -91
- package/src/pages/KlineNew/components/KlineAction/components/YearChart/index.vue +0 -532
- package/src/pages/KlineNew/components/KlineAction/images/pen.png +0 -0
- package/src/pages/KlineNew/components/KlineAction/index.vue +0 -716
- package/src/pages/KlineNew/components/KlineAction/mockApi/index.js +0 -13
- package/src/pages/KlineNew/components/KlineAction/utils.js +0 -571
- package/src/pages/KlineNew/components/KlineBasic/index.vue +0 -336
- package/src/pages/KlineNew/components/KlineBasic/utils.js +0 -46
- package/src/pages/KlineNew/components/KlineNew/index.vue +0 -316
- package/src/pages/KlineNew/components/KlineNew/utils.js +0 -31
- package/src/pages/KlineNew/components/KlineSlide/index.vue +0 -448
- package/src/pages/KlineNew/components/KlineSlide/utils.js +0 -78
- package/src/pages/KlineNew/components/KlineSlideNew/index.vue +0 -430
- package/src/pages/KlineNew/components/KlineSlideNew/utils.js +0 -78
- package/src/pages/KlineNew/index.vue +0 -92
- package/src/pages/KlinePlus/KlineDialog/MultiCycle.vue +0 -312
- package/src/pages/KlinePlus/KlineDialog/api.js +0 -108
- package/src/pages/KlinePlus/KlineDialog/index.vue +0 -582
- package/src/pages/KlinePlus/KlineDialog/indicator.js +0 -109
- package/src/pages/KlinePlus/KlineDialog/tools.js +0 -86
- package/src/pages/KlinePlus/index.vue +0 -30
- package/src/pages/KlinePlus/tradeLogMock.js +0 -1927
- package/src/pages/LinearLegend/index.vue +0 -92
- package/src/pages/Map/index.vue +0 -62
- package/src/pages/MonacoEditor/index.vue +0 -63
- package/src/pages/Pagination/index.vue +0 -24
- package/src/pages/PasswordPrompt/index.vue +0 -12
- package/src/pages/Pie/index.vue +0 -36
- package/src/pages/Table/index.vue +0 -117
- package/src/pages/TreeMap/index.vue +0 -542
- package/src/pages/User/index.vue +0 -24
- package/src/pages/VarSelectDialog/index.vue +0 -16
- package/src/pages/VarietyAiHelper/index.vue +0 -20
- package/src/pages/VarietyAutoComplete/index.vue +0 -19
- package/src/pages/VarietySearch/api.js +0 -70
- package/src/pages/VarietySearch/index.vue +0 -467
- package/src/pages/VarietyTextCopy/index.vue +0 -24
- package/src/pages/VirtualTable/demo.json +0 -6377
- package/src/pages/VirtualTable/index.vue +0 -79
- package/src/router/index.ts +0 -9
- package/src/router/routes.ts +0 -132
- package/src/style.css +0 -79
- package/src/vite-env.d.ts +0 -9
- package/tsconfig.json +0 -30
- package/tsconfig.node.json +0 -10
package/src/App.vue
DELETED
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="container">
|
|
3
|
-
<div class="header">前端公共组件库</div>
|
|
4
|
-
<div class="content">
|
|
5
|
-
<div class="content-left">
|
|
6
|
-
<el-menu
|
|
7
|
-
:default-active="route.path"
|
|
8
|
-
class="el-menu-vertical-demo"
|
|
9
|
-
text-color="rgba(255, 255, 255, 0.65)"
|
|
10
|
-
active-text-color="#ffffff"
|
|
11
|
-
background-color="#001529"
|
|
12
|
-
:router="true"
|
|
13
|
-
>
|
|
14
|
-
<el-menu-item
|
|
15
|
-
v-for="item in routes"
|
|
16
|
-
:index="item.path"
|
|
17
|
-
:key="item.name"
|
|
18
|
-
popper-append-to-body
|
|
19
|
-
>
|
|
20
|
-
<template #title>{{ item.name }}</template>
|
|
21
|
-
</el-menu-item>
|
|
22
|
-
</el-menu>
|
|
23
|
-
</div>
|
|
24
|
-
<div class="content-right">
|
|
25
|
-
<div class="content-right-main">
|
|
26
|
-
<st-configProvider :env="VITE_RUN_ENV">
|
|
27
|
-
<router-view />
|
|
28
|
-
</st-configProvider>
|
|
29
|
-
</div>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</template>
|
|
34
|
-
|
|
35
|
-
<script setup lang="ts">
|
|
36
|
-
import { useRoute } from "vue-router";
|
|
37
|
-
import routes from "./router/routes.ts";
|
|
38
|
-
|
|
39
|
-
const route = useRoute();
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @description: 项目使用实例
|
|
43
|
-
*/
|
|
44
|
-
// const VITE_RUN_ENV = import.meta.env; // 正常使用
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @description: 组件库Demo本地
|
|
48
|
-
*/
|
|
49
|
-
// const VITE_RUN_ENV = {
|
|
50
|
-
// VITE_PROJECT_NAME: "迈幻量化",
|
|
51
|
-
// VITE_PROJECT_CLIENTID: "7",
|
|
52
|
-
// VITE_BASE_URL: "http://127.0.0.1:7001",
|
|
53
|
-
// BASE_URL: "/",
|
|
54
|
-
// MODE: "localhost",
|
|
55
|
-
// DEV: true,
|
|
56
|
-
// PROD: false,
|
|
57
|
-
// SSR: false,
|
|
58
|
-
// };
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @description: 组件库Demo测试
|
|
62
|
-
*/
|
|
63
|
-
const VITE_RUN_ENV = {
|
|
64
|
-
VITE_PROJECT_NAME: "迈幻量化",
|
|
65
|
-
VITE_PROJECT_CLIENTID: "7",
|
|
66
|
-
VITE_BASE_URL: "http://192.168.12.38:5173",
|
|
67
|
-
BASE_URL: "/",
|
|
68
|
-
MODE: "test49",
|
|
69
|
-
DEV: true,
|
|
70
|
-
PROD: false,
|
|
71
|
-
SSR: false,
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* @description: 组件库Demo线上
|
|
76
|
-
*/
|
|
77
|
-
// const VITE_RUN_ENV = {
|
|
78
|
-
// VITE_PROJECT_NAME: "迈幻量化",
|
|
79
|
-
// VITE_PROJECT_CLIENTID: "7",
|
|
80
|
-
// VITE_BASE_URL: "//investapi.hzyotoy.com",
|
|
81
|
-
// BASE_URL: "/",
|
|
82
|
-
// MODE: "production",
|
|
83
|
-
// DEV: false,
|
|
84
|
-
// PROD: true,
|
|
85
|
-
// SSR: false,
|
|
86
|
-
// };
|
|
87
|
-
</script>
|
|
88
|
-
|
|
89
|
-
<style>
|
|
90
|
-
.el-menu-vertical-demo:not(.el-menu--collapse) {
|
|
91
|
-
width: 200px;
|
|
92
|
-
height: calc(100% - 64px);
|
|
93
|
-
}
|
|
94
|
-
.el-menu {
|
|
95
|
-
--el-menu-hover-bg-color: #1677ff !important;
|
|
96
|
-
border: none !important;
|
|
97
|
-
}
|
|
98
|
-
.el-menu li {
|
|
99
|
-
font-size: 18px;
|
|
100
|
-
}
|
|
101
|
-
.el-menu-item.is-active {
|
|
102
|
-
background-color: #1677ff;
|
|
103
|
-
}
|
|
104
|
-
</style>
|
|
105
|
-
|
|
106
|
-
<style lang="scss" scoped>
|
|
107
|
-
.container {
|
|
108
|
-
min-height: 100vh;
|
|
109
|
-
.header {
|
|
110
|
-
height: 64px;
|
|
111
|
-
padding-left: 22px;
|
|
112
|
-
background: #001529;
|
|
113
|
-
color: #fff;
|
|
114
|
-
line-height: 64px;
|
|
115
|
-
font-size: 22px;
|
|
116
|
-
}
|
|
117
|
-
.content {
|
|
118
|
-
display: flex;
|
|
119
|
-
height: calc(100vh - 64px);
|
|
120
|
-
&-left {
|
|
121
|
-
width: 220px;
|
|
122
|
-
height: 100%;
|
|
123
|
-
background: #001529;
|
|
124
|
-
overflow-y: scroll;
|
|
125
|
-
overflow-x: none;
|
|
126
|
-
}
|
|
127
|
-
&-right {
|
|
128
|
-
flex: 1;
|
|
129
|
-
background: #ebebeb;
|
|
130
|
-
padding: 20px;
|
|
131
|
-
&-main {
|
|
132
|
-
background: #fff;
|
|
133
|
-
width: calc(100% - 40px);
|
|
134
|
-
height: calc(100% - 40px);
|
|
135
|
-
padding: 20px;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
</style>
|
package/src/assets/vue.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="37.07" height="36" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 198"><path fill="#41B883" d="M204.8 0H256L128 220.8L0 0h97.92L128 51.2L157.44 0h47.36Z"></path><path fill="#41B883" d="m0 0l128 220.8L256 0h-51.2L128 132.48L50.56 0H0Z"></path><path fill="#35495E" d="M50.56 0L128 133.12L204.8 0h-47.36L128 51.2L97.92 0H50.56Z"></path></svg>
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :style="{ width: '100%', height: '600px' }">
|
|
3
|
-
<el-button @click="dialogVisible = true">
|
|
4
|
-
click to open the Dialog
|
|
5
|
-
</el-button>
|
|
6
|
-
<st-dialog v-model="dialogVisible"> </st-dialog>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script setup lang="ts">
|
|
11
|
-
import { ref } from 'vue'
|
|
12
|
-
const dialogVisible = ref(false);
|
|
13
|
-
|
|
14
|
-
</script>
|
|
15
|
-
|
|
16
|
-
<style lang="scss" scoped></style>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div id="Kline">
|
|
3
|
-
<st-kline
|
|
4
|
-
code="ao8888.SHFE"
|
|
5
|
-
endTime="2023-10-13T16:24:28"
|
|
6
|
-
indicator="DKX_EMA"
|
|
7
|
-
frequency="1m"
|
|
8
|
-
/>
|
|
9
|
-
</div>
|
|
10
|
-
</template>
|
|
11
|
-
|
|
12
|
-
<script setup lang="ts">
|
|
13
|
-
</script>
|
|
14
|
-
|
|
15
|
-
<style scoped>
|
|
16
|
-
#Kline{
|
|
17
|
-
margin: auto;
|
|
18
|
-
width: 1200px;
|
|
19
|
-
height: 600px;
|
|
20
|
-
}
|
|
21
|
-
</style>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :style="{ width: '50%', height: '600px' }">
|
|
3
|
-
<st-table
|
|
4
|
-
:data="data"
|
|
5
|
-
:column="column"
|
|
6
|
-
/>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script setup lang="ts">
|
|
11
|
-
const data = [
|
|
12
|
-
{ name: 'name1' },
|
|
13
|
-
{ name: 'name2' },
|
|
14
|
-
{ name: 'name3' },
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
const column = [
|
|
18
|
-
{
|
|
19
|
-
label: '名称',
|
|
20
|
-
prop: 'name',
|
|
21
|
-
},
|
|
22
|
-
]
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<style scoped>
|
|
26
|
-
|
|
27
|
-
</style>
|
package/src/main.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createApp } from "vue";
|
|
2
|
-
import "./style.css";
|
|
3
|
-
import App from "./App.vue";
|
|
4
|
-
import router from "./router";
|
|
5
|
-
import stComp from "../packages/index.ts";
|
|
6
|
-
import { createPinia } from "pinia";
|
|
7
|
-
|
|
8
|
-
// markdown编辑预览组件
|
|
9
|
-
import "@kangc/v-md-editor/lib/style/base-editor.css";
|
|
10
|
-
import "@kangc/v-md-editor/lib/theme/style/vuepress.css";
|
|
11
|
-
import Prism from "prismjs";
|
|
12
|
-
import vuepressTheme from "@kangc/v-md-editor/lib/theme/vuepress.js";
|
|
13
|
-
import VueMarkdownEditor from "@kangc/v-md-editor";
|
|
14
|
-
|
|
15
|
-
VueMarkdownEditor.use(vuepressTheme, { Prism });
|
|
16
|
-
|
|
17
|
-
createApp(App).use(router).use(stComp).use(createPinia()).use(VueMarkdownEditor).mount("#app");
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="width: 100%;height: 100%;">
|
|
3
|
-
<st-chartLayout
|
|
4
|
-
:data="data"
|
|
5
|
-
:row="2"
|
|
6
|
-
:col="3"
|
|
7
|
-
>
|
|
8
|
-
<template #default="{ data }">
|
|
9
|
-
<div style="width: 100%;height: 100%;;background: #ccc">{{ data }}</div>
|
|
10
|
-
</template>
|
|
11
|
-
</st-chartLayout>
|
|
12
|
-
</div>
|
|
13
|
-
</template>
|
|
14
|
-
|
|
15
|
-
<script setup lang="ts">
|
|
16
|
-
const data = [
|
|
17
|
-
1,2,3,4,5,6
|
|
18
|
-
]
|
|
19
|
-
</script>
|
|
20
|
-
|
|
21
|
-
<style lang="scss" scoped>
|
|
22
|
-
</style>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="demo">
|
|
3
|
-
<st-contextmenu>
|
|
4
|
-
<span>区域内右键</span>
|
|
5
|
-
<template #popover>
|
|
6
|
-
<el-menu
|
|
7
|
-
:style="{
|
|
8
|
-
borderRadius: '4px',
|
|
9
|
-
overflow: 'hidden',
|
|
10
|
-
background: '#fff',
|
|
11
|
-
borderRight: 0,
|
|
12
|
-
}"
|
|
13
|
-
>
|
|
14
|
-
<el-menu-item
|
|
15
|
-
v-for="menuItem in menuList"
|
|
16
|
-
:key="menuItem.key"
|
|
17
|
-
style="height: 36px"
|
|
18
|
-
>
|
|
19
|
-
{{ menuItem.label }}
|
|
20
|
-
</el-menu-item>
|
|
21
|
-
</el-menu>
|
|
22
|
-
</template>
|
|
23
|
-
</st-contextmenu>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<script setup>
|
|
28
|
-
const menuList = [
|
|
29
|
-
{
|
|
30
|
-
key: 1,
|
|
31
|
-
label: "操作一",
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
key: 2,
|
|
35
|
-
label: "操作二",
|
|
36
|
-
},
|
|
37
|
-
];
|
|
38
|
-
</script>
|
|
39
|
-
|
|
40
|
-
<style lang="scss" scoped>
|
|
41
|
-
.demo {
|
|
42
|
-
width: 200px;
|
|
43
|
-
height: 200px;
|
|
44
|
-
border: 1px solid #ccc;
|
|
45
|
-
}
|
|
46
|
-
</style>
|
|
@@ -1,203 +0,0 @@
|
|
|
1
|
-
<script setup>
|
|
2
|
-
import { getUserData } from "st-func";
|
|
3
|
-
import { ref, onMounted, inject } from "vue";
|
|
4
|
-
|
|
5
|
-
const { request } = inject("stConfig"); // 组件库全局配置
|
|
6
|
-
|
|
7
|
-
const visible = ref(false);
|
|
8
|
-
const title = ref("品种-code(周期)");
|
|
9
|
-
const moreFactorOptions = ref([]);
|
|
10
|
-
const emptyFactorOptions = ref([]);
|
|
11
|
-
const tableData = ref([]);
|
|
12
|
-
const shortcutData = ref([]);
|
|
13
|
-
const showConfig = {
|
|
14
|
-
ruleFormPrice: true, // 表单-价格范围
|
|
15
|
-
ruleFormMark: true, // 表单-备注
|
|
16
|
-
tableStatus: true, // 表格-状态
|
|
17
|
-
tableCreateTime: true, // 表格-设置时间
|
|
18
|
-
tableMark: true, // 表格-备注
|
|
19
|
-
tableEnable: true, // 表格-操作-启用
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// 打开弹窗
|
|
23
|
-
const openDialog = async () => {
|
|
24
|
-
// 获取预警因子[多, 空]选项
|
|
25
|
-
const params = {
|
|
26
|
-
pageNum: 1,
|
|
27
|
-
pageSize: 9999,
|
|
28
|
-
factorType: 2,
|
|
29
|
-
};
|
|
30
|
-
const { body } = await request.post("/middleLayer/post/alarm/deliversign/getFactorConfigByPage", params);
|
|
31
|
-
moreFactorOptions.value = body.list.reduce((result, item) => {
|
|
32
|
-
result.push({
|
|
33
|
-
alarmFactor: item.id,
|
|
34
|
-
...item.tbFactorConfigExtendList.find((citem) => citem.factorType === 1),
|
|
35
|
-
});
|
|
36
|
-
return result;
|
|
37
|
-
}, []);
|
|
38
|
-
emptyFactorOptions.value = body.list.reduce((result, item) => {
|
|
39
|
-
result.push({
|
|
40
|
-
alarmFactor: item.id,
|
|
41
|
-
...item.tbFactorConfigExtendList.find((citem) => citem.factorType === -1),
|
|
42
|
-
});
|
|
43
|
-
return result;
|
|
44
|
-
}, []);
|
|
45
|
-
// 获取快捷配置
|
|
46
|
-
queryShortcutData();
|
|
47
|
-
visible.value = true;
|
|
48
|
-
};
|
|
49
|
-
// 关闭弹窗
|
|
50
|
-
const handleClosed = () => {
|
|
51
|
-
console.log("弹窗关闭");
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
// 添加因子预警
|
|
55
|
-
const handleAddFactor = (ruleForm) => {
|
|
56
|
-
console.log(ruleForm);
|
|
57
|
-
};
|
|
58
|
-
// 删除因子预警
|
|
59
|
-
const handleDeleteFactor = (row) => {
|
|
60
|
-
console.log("删除", row);
|
|
61
|
-
};
|
|
62
|
-
// 启用因子预警
|
|
63
|
-
const handleEnabledFactor = (row) => {
|
|
64
|
-
console.log("启用", row);
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
// 查询快捷配置
|
|
68
|
-
const queryShortcutData = async () => {
|
|
69
|
-
const params = {
|
|
70
|
-
userId: getUserData("id"),
|
|
71
|
-
};
|
|
72
|
-
const { body } = await request.post("/middleLayer/post/alarm/deliversign/queryFactorAlarmConfig", params);
|
|
73
|
-
shortcutData.value = body;
|
|
74
|
-
};
|
|
75
|
-
// 更新快捷配置
|
|
76
|
-
const handleShortcutAdd = async (params) => {
|
|
77
|
-
await request.post("/middleLayer/post/alarm/deliversign/addOrUpdateFactorAlarmConfig", params);
|
|
78
|
-
queryShortcutData();
|
|
79
|
-
};
|
|
80
|
-
// 删除快捷配置
|
|
81
|
-
const handleShortcutDelete = async (params) => {
|
|
82
|
-
await request.post("/middleLayer/post/alarm/deliversign/delFactorAlarmConfig", { id: params.id });
|
|
83
|
-
queryShortcutData();
|
|
84
|
-
};
|
|
85
|
-
|
|
86
|
-
onMounted(() => {
|
|
87
|
-
tableData.value = [
|
|
88
|
-
{
|
|
89
|
-
id: 2521,
|
|
90
|
-
featureName: "上证指数",
|
|
91
|
-
featureCode: "Z000001",
|
|
92
|
-
featureId: 108952,
|
|
93
|
-
freqId: 3,
|
|
94
|
-
freqName: "60m",
|
|
95
|
-
factorId: 26,
|
|
96
|
-
factorName: "30均线上+向上+单箱",
|
|
97
|
-
factorExtendValue: "1",
|
|
98
|
-
factorExtendName: "30均线上+向上+单箱",
|
|
99
|
-
userId: 103,
|
|
100
|
-
totalCount: 12,
|
|
101
|
-
currentCount: 1,
|
|
102
|
-
enable: 1,
|
|
103
|
-
mark: null,
|
|
104
|
-
keyWord: null,
|
|
105
|
-
runningStatus: 1,
|
|
106
|
-
createdTime: "2024-12-10 16:21:25",
|
|
107
|
-
featureType: null,
|
|
108
|
-
maxPrice: null,
|
|
109
|
-
minPrice: null,
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
id: 2520,
|
|
113
|
-
featureName: "上证指数",
|
|
114
|
-
featureCode: "Z000001",
|
|
115
|
-
featureId: 108952,
|
|
116
|
-
freqId: 3,
|
|
117
|
-
freqName: "60m",
|
|
118
|
-
factorId: 14,
|
|
119
|
-
factorName: "dkx金叉后+单箱突破",
|
|
120
|
-
factorExtendValue: "1",
|
|
121
|
-
factorExtendName: "dkx金叉后+单箱突破",
|
|
122
|
-
userId: 103,
|
|
123
|
-
totalCount: 3,
|
|
124
|
-
currentCount: 0,
|
|
125
|
-
enable: 1,
|
|
126
|
-
mark: null,
|
|
127
|
-
keyWord: null,
|
|
128
|
-
runningStatus: 1,
|
|
129
|
-
createdTime: "2024-12-10 16:21:25",
|
|
130
|
-
featureType: null,
|
|
131
|
-
maxPrice: null,
|
|
132
|
-
minPrice: null,
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
id: 2519,
|
|
136
|
-
featureName: "上证指数",
|
|
137
|
-
featureCode: "Z000001",
|
|
138
|
-
featureId: 108952,
|
|
139
|
-
freqId: 3,
|
|
140
|
-
freqName: "60m",
|
|
141
|
-
factorId: 16,
|
|
142
|
-
factorName: "dkx黄白线上+双箱单次",
|
|
143
|
-
factorExtendValue: "1",
|
|
144
|
-
factorExtendName: "dkx黄白线上+双箱单次",
|
|
145
|
-
userId: 103,
|
|
146
|
-
totalCount: 3,
|
|
147
|
-
currentCount: 0,
|
|
148
|
-
enable: 1,
|
|
149
|
-
mark: null,
|
|
150
|
-
keyWord: null,
|
|
151
|
-
runningStatus: 1,
|
|
152
|
-
createdTime: "2024-12-10 16:21:25",
|
|
153
|
-
featureType: null,
|
|
154
|
-
maxPrice: null,
|
|
155
|
-
minPrice: null,
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
id: 2518,
|
|
159
|
-
featureName: "上证指数",
|
|
160
|
-
featureCode: "Z000001",
|
|
161
|
-
featureId: 108952,
|
|
162
|
-
freqId: 3,
|
|
163
|
-
freqName: "60m",
|
|
164
|
-
factorId: 13,
|
|
165
|
-
factorName: "dkx金叉",
|
|
166
|
-
factorExtendValue: "1",
|
|
167
|
-
factorExtendName: "dkx金叉",
|
|
168
|
-
userId: 103,
|
|
169
|
-
totalCount: 3,
|
|
170
|
-
currentCount: 0,
|
|
171
|
-
enable: 1,
|
|
172
|
-
mark: null,
|
|
173
|
-
keyWord: null,
|
|
174
|
-
runningStatus: 1,
|
|
175
|
-
createdTime: "2024-12-10 16:21:25",
|
|
176
|
-
featureType: null,
|
|
177
|
-
maxPrice: null,
|
|
178
|
-
minPrice: null,
|
|
179
|
-
},
|
|
180
|
-
];
|
|
181
|
-
});
|
|
182
|
-
</script>
|
|
183
|
-
|
|
184
|
-
<template>
|
|
185
|
-
<div style="width: 100%; height: 100%">
|
|
186
|
-
<el-button @click="openDialog">因子预警</el-button>
|
|
187
|
-
<st-factorWarning
|
|
188
|
-
v-model:visible="visible"
|
|
189
|
-
:title="title"
|
|
190
|
-
:moreFactorOptions="moreFactorOptions"
|
|
191
|
-
:emptyFactorOptions="emptyFactorOptions"
|
|
192
|
-
:tableData="tableData"
|
|
193
|
-
:shortcutData="shortcutData"
|
|
194
|
-
:showConfig="showConfig"
|
|
195
|
-
@add="handleAddFactor"
|
|
196
|
-
@delete="handleDeleteFactor"
|
|
197
|
-
@enabled="handleEnabledFactor"
|
|
198
|
-
@closed="handleClosed"
|
|
199
|
-
@shortcutAdd="handleShortcutAdd"
|
|
200
|
-
@shortcutDelete="handleShortcutDelete"
|
|
201
|
-
/>
|
|
202
|
-
</div>
|
|
203
|
-
</template>
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="height: 42px">
|
|
3
|
-
<st-linearLegend ref="linearLegendRef" :data="legendData" :unit="'亿'"/>
|
|
4
|
-
</div>
|
|
5
|
-
<div style="width: 100%;height: calc(100% - 42px);" v-if="data">
|
|
6
|
-
<st-heatMap ref="chartRef" :data="data" :config="config" />
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script setup lang="ts">
|
|
11
|
-
import { ref, onMounted } from 'vue'
|
|
12
|
-
|
|
13
|
-
const linearLegendRef = ref()
|
|
14
|
-
|
|
15
|
-
const legendData = [
|
|
16
|
-
{
|
|
17
|
-
range: [0, 0.5],
|
|
18
|
-
type: '[)',
|
|
19
|
-
color: '#999',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
range: [0.5, 1],
|
|
23
|
-
type: '[)',
|
|
24
|
-
color: 'rgba(255, 235, 59, 0.4)',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
range: [1, 5],
|
|
28
|
-
type: '[)',
|
|
29
|
-
color: 'rgba(255, 235, 59, 0.6)',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
range: [5, 10],
|
|
33
|
-
type: '[)',
|
|
34
|
-
color: 'rgba(255, 235, 59, 0.8)',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
range: [10],
|
|
38
|
-
type: '>=',
|
|
39
|
-
color: 'rgba(255, 235, 59, 1)',
|
|
40
|
-
},
|
|
41
|
-
]
|
|
42
|
-
|
|
43
|
-
const date = [
|
|
44
|
-
"2024-02-01",
|
|
45
|
-
"2024-02-02",
|
|
46
|
-
"",
|
|
47
|
-
"2024-02-05",
|
|
48
|
-
"2024-02-06",
|
|
49
|
-
"2024-02-07",
|
|
50
|
-
"2024-02-08",
|
|
51
|
-
"2024-02-09",
|
|
52
|
-
"",
|
|
53
|
-
"2024-02-12",
|
|
54
|
-
"2024-02-13",
|
|
55
|
-
"2024-02-14",
|
|
56
|
-
"2024-02-15",
|
|
57
|
-
"2024-02-16",
|
|
58
|
-
"",
|
|
59
|
-
"2024-02-19",
|
|
60
|
-
"2024-02-20",
|
|
61
|
-
"2024-02-21",
|
|
62
|
-
"2024-02-22",
|
|
63
|
-
"2024-02-23",
|
|
64
|
-
"",
|
|
65
|
-
"2024-02-26",
|
|
66
|
-
"2024-02-27",
|
|
67
|
-
"2024-02-28",
|
|
68
|
-
"2024-02-29",
|
|
69
|
-
]
|
|
70
|
-
|
|
71
|
-
const config = {
|
|
72
|
-
tooltipFormatter: (info: any, infoData: any) => {
|
|
73
|
-
return `<div>
|
|
74
|
-
<div>${infoData.data[info.data.value[1]].name}</div>
|
|
75
|
-
<div>日期:${infoData.date[info.data.value[0]]}</div>
|
|
76
|
-
<div>成交额:${info.value[2]}</div>
|
|
77
|
-
</div>`
|
|
78
|
-
},
|
|
79
|
-
grid: {
|
|
80
|
-
left: '60px',
|
|
81
|
-
bottom: '20px',
|
|
82
|
-
right: '50px',
|
|
83
|
-
top: 0
|
|
84
|
-
},
|
|
85
|
-
dataZoom: [
|
|
86
|
-
{
|
|
87
|
-
show: true,
|
|
88
|
-
realtime: true,
|
|
89
|
-
yAxisIndex: [0, 1],
|
|
90
|
-
startValue: 0,
|
|
91
|
-
endValue: 20,
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
type: 'inside',
|
|
95
|
-
yAxisIndex: [0, 0],
|
|
96
|
-
},
|
|
97
|
-
],
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
const data = ref<any>(null)
|
|
101
|
-
|
|
102
|
-
const init = () => {
|
|
103
|
-
data.value = {
|
|
104
|
-
date,
|
|
105
|
-
data: new Array(50).fill(null).map((item, index) => {
|
|
106
|
-
return {
|
|
107
|
-
name: `工商银行${index}`,
|
|
108
|
-
data: date.map((i) => {
|
|
109
|
-
if (i === '') {
|
|
110
|
-
return null
|
|
111
|
-
}
|
|
112
|
-
const value = Math.random() * 1000000000
|
|
113
|
-
return {
|
|
114
|
-
value,
|
|
115
|
-
color: linearLegendRef.value.numberToColor(value)
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
}
|
|
119
|
-
})
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
onMounted(() => {
|
|
124
|
-
init()
|
|
125
|
-
})
|
|
126
|
-
</script>
|
|
127
|
-
|
|
128
|
-
<style lang="scss" scoped></style>
|