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
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<st-linearLegend ref="linearLegendRef" :data="data" :unit="'%'"/>
|
|
4
|
-
</div>
|
|
5
|
-
<div>
|
|
6
|
-
<st-linearLegend :data="data2" :unit="'亿'"/>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script setup lang="ts">
|
|
11
|
-
import { ref, onMounted } from 'vue'
|
|
12
|
-
|
|
13
|
-
const linearLegendRef = ref()
|
|
14
|
-
|
|
15
|
-
const data = [
|
|
16
|
-
{
|
|
17
|
-
range: [-7],
|
|
18
|
-
type: '<',
|
|
19
|
-
color: 'rgba(0, 128, 0, 0.4)',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
range: [-7, -5],
|
|
23
|
-
type: '[)',
|
|
24
|
-
color: 'rgba(0, 128, 0, 0.6)',
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
range: [-5, -3],
|
|
28
|
-
type: '[)',
|
|
29
|
-
color: 'rgba(0, 128, 0, 0.8)',
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
range: [-3, 0],
|
|
33
|
-
type: '[)',
|
|
34
|
-
color: 'rgba(0, 128, 0, 1)',
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
range: [0],
|
|
38
|
-
type: '=',
|
|
39
|
-
color: '#000',
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
range: [0, 3],
|
|
43
|
-
type: '(]',
|
|
44
|
-
color: 'rgba(255, 0, 0, 1)',
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
range: [3, 5],
|
|
48
|
-
type: '(]',
|
|
49
|
-
color: 'rgba(255, 0, 0, 0.8)',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
range: [5, 7],
|
|
53
|
-
type: '(]',
|
|
54
|
-
color: 'rgba(255, 0, 0, 0.6)',
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
range: [7],
|
|
58
|
-
type: '>',
|
|
59
|
-
color: 'rgba(255, 0, 0, 0.4)',
|
|
60
|
-
},
|
|
61
|
-
]
|
|
62
|
-
const data2 = [
|
|
63
|
-
{
|
|
64
|
-
range: [0, 0.5],
|
|
65
|
-
type: '[)',
|
|
66
|
-
color: '#000',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
range: [0.5, 1],
|
|
70
|
-
type: '[)',
|
|
71
|
-
color: 'rgba(255, 235, 59, 1)',
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
range: [1, 5],
|
|
75
|
-
type: '[)',
|
|
76
|
-
color: 'rgba(255, 235, 59, 0.6)',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
range: [5, Infinity],
|
|
80
|
-
type: '>=',
|
|
81
|
-
color: 'rgba(255, 235, 59, 0.4)',
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
|
|
85
|
-
onMounted(() => {
|
|
86
|
-
console.log(linearLegendRef.value.numberToColor(0))
|
|
87
|
-
})
|
|
88
|
-
</script>
|
|
89
|
-
|
|
90
|
-
<style lang="scss" scoped>
|
|
91
|
-
|
|
92
|
-
</style>
|
package/src/pages/Map/index.vue
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="width: 100%;height: 100%;">
|
|
3
|
-
<st-map
|
|
4
|
-
:data="data"
|
|
5
|
-
:pieces="pieces"
|
|
6
|
-
:config="config"
|
|
7
|
-
/>
|
|
8
|
-
</div>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script setup lang="ts">
|
|
12
|
-
const config = {
|
|
13
|
-
tooltipFormatter: (params: any) => {
|
|
14
|
-
if (params.data) {
|
|
15
|
-
return `<div>
|
|
16
|
-
<div>${params.data.name} 18</div>
|
|
17
|
-
<div>中国石化 三一重工 中国联通 长江电力</div>
|
|
18
|
-
</div>`
|
|
19
|
-
}
|
|
20
|
-
return null
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
const pieces = [
|
|
24
|
-
{
|
|
25
|
-
gt: 0,
|
|
26
|
-
lte: 50,
|
|
27
|
-
color: '#93CE07'
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
gt: 50,
|
|
31
|
-
lte: 100,
|
|
32
|
-
color: '#FBDB0F'
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
gt: 100,
|
|
36
|
-
lte: 150,
|
|
37
|
-
color: '#FC7D02'
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
gt: 150,
|
|
41
|
-
lte: 200,
|
|
42
|
-
color: '#FD0100'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
gt: 200,
|
|
46
|
-
lte: 300,
|
|
47
|
-
color: '#AA069F'
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
gt: 300,
|
|
51
|
-
color: '#AC3B2A'
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
const data = [
|
|
55
|
-
{ name: '黑龙江省', value: 20057.34 },
|
|
56
|
-
{ name: '浙江省', value: 15477.48 },
|
|
57
|
-
]
|
|
58
|
-
</script>
|
|
59
|
-
|
|
60
|
-
<style lang="scss" scoped>
|
|
61
|
-
|
|
62
|
-
</style>
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-button @click="consoleFn">打印</el-button>
|
|
3
|
-
<el-button @click="resetFn">重置</el-button>
|
|
4
|
-
<el-button @click="setReadOnly(true)">只读</el-button>
|
|
5
|
-
<el-button @click="setReadOnly(false)">取消只读</el-button>
|
|
6
|
-
<div style="width: 800px; height: 500px; border: 1px solid #000;">
|
|
7
|
-
<st-monacoEditor
|
|
8
|
-
ref="monacoEditorRef"
|
|
9
|
-
:defaultValue="value"
|
|
10
|
-
:suggestionEnable="true"
|
|
11
|
-
:variableEnable="true"
|
|
12
|
-
@change="changeCode"
|
|
13
|
-
/>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script setup>
|
|
18
|
-
import { ref } from 'vue'
|
|
19
|
-
|
|
20
|
-
const defaultValue = `def add(x, y):
|
|
21
|
-
return x + y
|
|
22
|
-
|
|
23
|
-
def subtract(x, y):
|
|
24
|
-
return x - y
|
|
25
|
-
|
|
26
|
-
def multiply(x, y):
|
|
27
|
-
return x * y
|
|
28
|
-
|
|
29
|
-
def divide(x, y):
|
|
30
|
-
if y == 0:
|
|
31
|
-
return "Undefined (division by zero)"
|
|
32
|
-
return x / y
|
|
33
|
-
|
|
34
|
-
# 测试
|
|
35
|
-
print(add(5, 3))
|
|
36
|
-
print(subtract(5, 3))
|
|
37
|
-
print(multiply(5, 3))
|
|
38
|
-
print(divide(5, 3))
|
|
39
|
-
`
|
|
40
|
-
|
|
41
|
-
const monacoEditorRef = ref(null)
|
|
42
|
-
const value = ref(defaultValue)
|
|
43
|
-
|
|
44
|
-
const consoleFn = () => {
|
|
45
|
-
console.log(monacoEditorRef.value.getValue())
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const resetFn = () => {
|
|
49
|
-
monacoEditorRef.value.setValue(defaultValue)
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
const changeCode = (val) => {
|
|
53
|
-
// console.log('changeCode', val)
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
const setReadOnly = (readOnly) => {
|
|
57
|
-
monacoEditorRef.value.setReadOnly(readOnly)
|
|
58
|
-
}
|
|
59
|
-
</script>
|
|
60
|
-
|
|
61
|
-
<style lang="scss" scoped>
|
|
62
|
-
|
|
63
|
-
</style>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<st-pagination
|
|
3
|
-
:total="total"
|
|
4
|
-
v-model:pageData="pageData"
|
|
5
|
-
@change="getTableData"
|
|
6
|
-
/>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script setup lang="ts">
|
|
10
|
-
import { ref } from 'vue'
|
|
11
|
-
|
|
12
|
-
const pageData = ref({
|
|
13
|
-
pageNum: 1,
|
|
14
|
-
pageSize: 10,
|
|
15
|
-
})
|
|
16
|
-
const total = ref(100)
|
|
17
|
-
|
|
18
|
-
// 模拟表格数据接口请求发送函数
|
|
19
|
-
const getTableData = () => {
|
|
20
|
-
console.log('分页数据自动更新:', pageData.value)
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<style lang="scss" scoped></style>
|
package/src/pages/Pie/index.vue
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div style="width: 100%;height: 100%;">
|
|
3
|
-
<st-pie :data="data" :config="config" />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script setup lang="ts">
|
|
8
|
-
const config = {
|
|
9
|
-
tooltipFormatter: (params: any) => {
|
|
10
|
-
if (params.data) {
|
|
11
|
-
return `<div>
|
|
12
|
-
<div>${params.data.name} 18</div>
|
|
13
|
-
<div>中国石化 三一重工 中国联通 长江电力</div>
|
|
14
|
-
</div>`
|
|
15
|
-
}
|
|
16
|
-
return null
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
const data: any = []
|
|
20
|
-
let value: any = 300
|
|
21
|
-
while(value > 100) {
|
|
22
|
-
data.push({
|
|
23
|
-
name: `title-${value}`,
|
|
24
|
-
value,
|
|
25
|
-
})
|
|
26
|
-
value = value - Math.ceil(Math.random() * 20)
|
|
27
|
-
}
|
|
28
|
-
data.push({
|
|
29
|
-
name: `title-${0}`,
|
|
30
|
-
value: 0,
|
|
31
|
-
})
|
|
32
|
-
</script>
|
|
33
|
-
|
|
34
|
-
<style lang="scss" scoped>
|
|
35
|
-
|
|
36
|
-
</style>
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :style="{ width: '100%', height: '600px' }">
|
|
3
|
-
<st-table
|
|
4
|
-
:data="data"
|
|
5
|
-
:column="column"
|
|
6
|
-
>
|
|
7
|
-
<template #slotName="scope">
|
|
8
|
-
<h3>{{ scope.row.slotText }}</h3>
|
|
9
|
-
</template>
|
|
10
|
-
</st-table>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup lang="ts">
|
|
15
|
-
const column = [
|
|
16
|
-
{
|
|
17
|
-
label: '名称',
|
|
18
|
-
prop: 'name',
|
|
19
|
-
width: '260px',
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
label: '自定义显示文案',
|
|
23
|
-
prop: 'name',
|
|
24
|
-
type: 'formatter',
|
|
25
|
-
formatter: (value: any) => `名称:${value}`
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
label: '自定义样式',
|
|
29
|
-
prop: 'color',
|
|
30
|
-
type: 'formatter',
|
|
31
|
-
style: (value: any) => {
|
|
32
|
-
return {
|
|
33
|
-
color: value
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
label: '插槽',
|
|
39
|
-
prop: 'slotText',
|
|
40
|
-
type: 'slot',
|
|
41
|
-
slot: 'slotName',
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
label: '操作',
|
|
45
|
-
prop: 'action',
|
|
46
|
-
type: 'btns',
|
|
47
|
-
width: '260px',
|
|
48
|
-
btns: [
|
|
49
|
-
{
|
|
50
|
-
text: (data: any) => {
|
|
51
|
-
return data.btnText as string
|
|
52
|
-
},
|
|
53
|
-
onClick: (data: any) => {
|
|
54
|
-
console.log(data)
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
text: '绩效分析',
|
|
59
|
-
disabled: (data: any) => {
|
|
60
|
-
return data.disabledBtn
|
|
61
|
-
},
|
|
62
|
-
onClick: (data: any) => {
|
|
63
|
-
console.log('绩效分析', data)
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
children: [
|
|
68
|
-
{
|
|
69
|
-
needCheck: {
|
|
70
|
-
title: '确认是否删除该项训练记录'
|
|
71
|
-
},
|
|
72
|
-
text: '删除',
|
|
73
|
-
onClick: (data: any) => {
|
|
74
|
-
console.log('删除', data)
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
text: '分享',
|
|
79
|
-
show: false,
|
|
80
|
-
onClick: (data: any) => {
|
|
81
|
-
console.log('分享', data)
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
]
|
|
85
|
-
}
|
|
86
|
-
]
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
|
|
90
|
-
const data = [
|
|
91
|
-
{
|
|
92
|
-
name: 'name1',
|
|
93
|
-
btnText: '按钮1',
|
|
94
|
-
disabledBtn: true,
|
|
95
|
-
color: 'red',
|
|
96
|
-
slotText: '插槽内容1',
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: 'name2',
|
|
100
|
-
btnText: '按钮2',
|
|
101
|
-
disabledBtn: false,
|
|
102
|
-
color: 'green',
|
|
103
|
-
slotText: '插槽内容2',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'name3',
|
|
107
|
-
btnText: '按钮3',
|
|
108
|
-
disabledBtn: false,
|
|
109
|
-
color: 'blue',
|
|
110
|
-
slotText: '插槽内容3',
|
|
111
|
-
},
|
|
112
|
-
]
|
|
113
|
-
</script>
|
|
114
|
-
|
|
115
|
-
<style lang="scss" scoped>
|
|
116
|
-
|
|
117
|
-
</style>
|