@ebiz/designer-components 0.0.18-tj.1
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 +29 -0
- package/dist/designer-components.css +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.mjs +110735 -0
- package/package.json +40 -0
- package/src/App.vue +26 -0
- package/src/apiService/SIMPLE_DATA_SERVICE.md +285 -0
- package/src/apiService/simpleDataService.js +174 -0
- package/src/assets/base.css +86 -0
- package/src/assets/logo.svg +1 -0
- package/src/assets/main.css +1 -0
- package/src/assets/styles/charts/main.less +30 -0
- package/src/components/Button.vue +103 -0
- package/src/components/DataContainer.vue +39 -0
- package/src/components/EbizDivider.vue +97 -0
- package/src/components/EbizFileUpload.vue +202 -0
- package/src/components/EbizMindmap/README.md +8 -0
- package/src/components/EbizMindmap/components/GridNode.vue +102 -0
- package/src/components/EbizMindmap/components/node.vue +92 -0
- package/src/components/EbizMindmap/components/vueNode.vue +64 -0
- package/src/components/EbizMindmap/index.vue +383 -0
- package/src/components/EbizOkrTree.vue +99 -0
- package/src/components/EbizRemoteSelect.vue +167 -0
- package/src/components/EbizRouteBreadcrumb.vue +47 -0
- package/src/components/EbizSelect.vue +95 -0
- package/src/components/EbizSpace.vue +101 -0
- package/src/components/EbizStatsCard.vue +114 -0
- package/src/components/EbizSwiper.vue +114 -0
- package/src/components/EbizSwiperItem.vue +14 -0
- package/src/components/EbizTabHeader.vue +149 -0
- package/src/components/EbizTitle.vue +93 -0
- package/src/components/Form.vue +27 -0
- package/src/components/Home.vue +8 -0
- package/src/components/MyComponent.vue +39 -0
- package/src/components/Table.vue +45 -0
- package/src/components/TdesignButton.vue +130 -0
- package/src/components/TdesignCalendar/index.vue +143 -0
- package/src/components/TdesignCard.vue +196 -0
- package/src/components/TdesignCollapse.vue +143 -0
- package/src/components/TdesignCollapsePanel.vue +80 -0
- package/src/components/TdesignDatePicker.vue +125 -0
- package/src/components/TdesignForm.vue +134 -0
- package/src/components/TdesignFormItem.vue +106 -0
- package/src/components/TdesignIcon.vue +68 -0
- package/src/components/TdesignImage.vue +163 -0
- package/src/components/TdesignImageViewer.vue +201 -0
- package/src/components/TdesignInput.vue +243 -0
- package/src/components/TdesignSelect.vue +445 -0
- package/src/components/TdesignTag.vue +118 -0
- package/src/components/charts/chart.js +47 -0
- package/src/components/charts/components/AssembleBubbleChart/BaseOption.js +50 -0
- package/src/components/charts/components/AssembleBubbleChart/chartToken.js +17 -0
- package/src/components/charts/components/AssembleBubbleChart/handleOption.js +66 -0
- package/src/components/charts/components/AssembleBubbleChart/handleRootData.js +165 -0
- package/src/components/charts/components/AssembleBubbleChart/handleSeriesData.js +70 -0
- package/src/components/charts/components/AssembleBubbleChart/index.js +65 -0
- package/src/components/charts/components/AutonaviMapChart/index.js +162 -0
- package/src/components/charts/components/BaiduMapChart/index.js +148 -0
- package/src/components/charts/components/BarChart/barChartOption.js +76 -0
- package/src/components/charts/components/BarChart/chartToken.js +17 -0
- package/src/components/charts/components/BarChart/handleOptipn.js +102 -0
- package/src/components/charts/components/BarChart/handleSeries.js +716 -0
- package/src/components/charts/components/BarChart/handleVisualMap.js +48 -0
- package/src/components/charts/components/BarChart/index.js +151 -0
- package/src/components/charts/components/BaseChart/index.js +122 -0
- package/src/components/charts/components/BoxplotChart/chartToken.js +17 -0
- package/src/components/charts/components/BoxplotChart/handleOption.js +64 -0
- package/src/components/charts/components/BoxplotChart/handleSeries.js +150 -0
- package/src/components/charts/components/BoxplotChart/index.js +47 -0
- package/src/components/charts/components/BubbleChart/chartToken.js +17 -0
- package/src/components/charts/components/BubbleChart/handleData.js +33 -0
- package/src/components/charts/components/BubbleChart/handleOptipn.js +63 -0
- package/src/components/charts/components/BubbleChart/handleSeries.js +86 -0
- package/src/components/charts/components/BubbleChart/handleTrendLine.js +119 -0
- package/src/components/charts/components/BubbleChart/handleVisualMap.js +50 -0
- package/src/components/charts/components/BubbleChart/index.js +96 -0
- package/src/components/charts/components/BulletChart/bulletChartOption.js +82 -0
- package/src/components/charts/components/BulletChart/chartToken.js +17 -0
- package/src/components/charts/components/BulletChart/handleOptipn.js +74 -0
- package/src/components/charts/components/BulletChart/handleSeries.js +143 -0
- package/src/components/charts/components/BulletChart/index.js +93 -0
- package/src/components/charts/components/CandlestickChart/BaseOption.js +44 -0
- package/src/components/charts/components/CandlestickChart/chartToken.js +17 -0
- package/src/components/charts/components/CandlestickChart/hanleOption.js +130 -0
- package/src/components/charts/components/CandlestickChart/hanleSeries.js +123 -0
- package/src/components/charts/components/CandlestickChart/index.js +68 -0
- package/src/components/charts/components/CircleProcessChart/chartToken.js +17 -0
- package/src/components/charts/components/CircleProcessChart/handleOption.js +68 -0
- package/src/components/charts/components/CircleProcessChart/handleSeries.js +127 -0
- package/src/components/charts/components/CircleProcessChart/index.js +63 -0
- package/src/components/charts/components/FlowChart/Layout.js +211 -0
- package/src/components/charts/components/FlowChart/LineBezier.js +120 -0
- package/src/components/charts/components/FlowChart/LineDirect.js +42 -0
- package/src/components/charts/components/FlowChart/LineManager.js +278 -0
- package/src/components/charts/components/FlowChart/LineMode.js +44 -0
- package/src/components/charts/components/FlowChart/LineRound.js +335 -0
- package/src/components/charts/components/FlowChart/NodeManager.js +185 -0
- package/src/components/charts/components/FlowChart/dagre.js +8829 -0
- package/src/components/charts/components/FlowChart/frameworkFn.js +38 -0
- package/src/components/charts/components/FlowChart/index.js +268 -0
- package/src/components/charts/components/FlowChart/index.less +90 -0
- package/src/components/charts/components/FlowChart/insert.js +40 -0
- package/src/components/charts/components/FlowChart/util.js +43 -0
- package/src/components/charts/components/FunnelChart/chartToken.js +17 -0
- package/src/components/charts/components/FunnelChart/handleLegend.js +44 -0
- package/src/components/charts/components/FunnelChart/handleSeries.js +77 -0
- package/src/components/charts/components/FunnelChart/index.js +44 -0
- package/src/components/charts/components/GanttChart/CoordinateSystem.js +358 -0
- package/src/components/charts/components/GanttChart/TimeLine.js +379 -0
- package/src/components/charts/components/GanttChart/constant.js +71 -0
- package/src/components/charts/components/GanttChart/index.js +51 -0
- package/src/components/charts/components/GanttChart/index.less +267 -0
- package/src/components/charts/components/GanttChart/util.js +335 -0
- package/src/components/charts/components/GaugeChart/BaseOption.js +22 -0
- package/src/components/charts/components/GaugeChart/chartToken.js +17 -0
- package/src/components/charts/components/GaugeChart/handleOptipn.js +22 -0
- package/src/components/charts/components/GaugeChart/handleSeries.js +504 -0
- package/src/components/charts/components/GaugeChart/index.js +53 -0
- package/src/components/charts/components/GraphChart/index.js +34 -0
- package/src/components/charts/components/GraphTreeChart/BaseOption.js +42 -0
- package/src/components/charts/components/GraphTreeChart/handleData.js +118 -0
- package/src/components/charts/components/GraphTreeChart/handleOption.js +142 -0
- package/src/components/charts/components/GraphTreeChart/index.js +65 -0
- package/src/components/charts/components/GraphTreeChart/mixTree.js +36 -0
- package/src/components/charts/components/GraphTreeChart/utils.js +75 -0
- package/src/components/charts/components/HeatMapChart/BaseOption.js +66 -0
- package/src/components/charts/components/HeatMapChart/chartToken.js +17 -0
- package/src/components/charts/components/HeatMapChart/handleData.js +138 -0
- package/src/components/charts/components/HeatMapChart/handleOptipn.js +227 -0
- package/src/components/charts/components/HeatMapChart/handleSeries.js +82 -0
- package/src/components/charts/components/HeatMapChart/handleVisualMap.js +91 -0
- package/src/components/charts/components/HeatMapChart/index.js +70 -0
- package/src/components/charts/components/HillChart/baseOption.js +50 -0
- package/src/components/charts/components/HillChart/chartToken.js +17 -0
- package/src/components/charts/components/HillChart/handleOption.js +193 -0
- package/src/components/charts/components/HillChart/handleSeries.js +39 -0
- package/src/components/charts/components/HillChart/index.js +96 -0
- package/src/components/charts/components/HoneycombChart/NodeManager.js +172 -0
- package/src/components/charts/components/HoneycombChart/TipManager.js +75 -0
- package/src/components/charts/components/HoneycombChart/index.js +117 -0
- package/src/components/charts/components/HoneycombChart/index.less +49 -0
- package/src/components/charts/components/JadeJueChart/BaseOption.js +40 -0
- package/src/components/charts/components/JadeJueChart/chartToken.js +17 -0
- package/src/components/charts/components/JadeJueChart/handleOption.js +262 -0
- package/src/components/charts/components/JadeJueChart/handleSeries.js +246 -0
- package/src/components/charts/components/JadeJueChart/index.js +71 -0
- package/src/components/charts/components/JadeJueChart/labelFormatter.js +131 -0
- package/src/components/charts/components/LineChart/AreaChart/bottomArea.js +177 -0
- package/src/components/charts/components/LineChart/AreaChart/chartToken.js +17 -0
- package/src/components/charts/components/LineChart/AreaChart/index.js +18 -0
- package/src/components/charts/components/LineChart/AreaChart/topArea.js +139 -0
- package/src/components/charts/components/LineChart/chartToken.js +17 -0
- package/src/components/charts/components/LineChart/handleOptipn.js +145 -0
- package/src/components/charts/components/LineChart/handlePredict.js +73 -0
- package/src/components/charts/components/LineChart/handleSeries.js +266 -0
- package/src/components/charts/components/LineChart/handleVisualMap.js +138 -0
- package/src/components/charts/components/LineChart/index.js +133 -0
- package/src/components/charts/components/LiquidfillChart/chartToken.js +17 -0
- package/src/components/charts/components/LiquidfillChart/handleSeries.js +170 -0
- package/src/components/charts/components/LiquidfillChart/index.js +43 -0
- package/src/components/charts/components/LiquidfillChart/plugSeries.js +78 -0
- package/src/components/charts/components/LiquidfillChart/plugShape.js +163 -0
- package/src/components/charts/components/LiquidfillChart/plugView.js +537 -0
- package/src/components/charts/components/MilestoneChart/Layout.js +183 -0
- package/src/components/charts/components/MilestoneChart/Node.js +319 -0
- package/src/components/charts/components/MilestoneChart/assets/next.svg +7 -0
- package/src/components/charts/components/MilestoneChart/assets/prev.svg +7 -0
- package/src/components/charts/components/MilestoneChart/assets/prompt.svg +9 -0
- package/src/components/charts/components/MilestoneChart/index.js +108 -0
- package/src/components/charts/components/MilestoneChart/index.less +244 -0
- package/src/components/charts/components/MilestoneChart/insertDom.js +32 -0
- package/src/components/charts/components/MilestoneChart/insertIcon.js +24 -0
- package/src/components/charts/components/MilestoneChart/insertSvg.js +109 -0
- package/src/components/charts/components/OrganizationChart/NodeManager.js +188 -0
- package/src/components/charts/components/OrganizationChart/RotateManager.js +349 -0
- package/src/components/charts/components/OrganizationChart/index.js +124 -0
- package/src/components/charts/components/OrganizationChart/index.less +112 -0
- package/src/components/charts/components/PieChart/chartToken.js +17 -0
- package/src/components/charts/components/PieChart/handleLabel.js +94 -0
- package/src/components/charts/components/PieChart/handleMulti.js +131 -0
- package/src/components/charts/components/PieChart/handleSeries.js +236 -0
- package/src/components/charts/components/PieChart/index.js +58 -0
- package/src/components/charts/components/PolarBarChart/chartToken.js +17 -0
- package/src/components/charts/components/PolarBarChart/handleOption.js +102 -0
- package/src/components/charts/components/PolarBarChart/handleSeries.js +127 -0
- package/src/components/charts/components/PolarBarChart/index.js +62 -0
- package/src/components/charts/components/ProcessChart/BaseOption.js +296 -0
- package/src/components/charts/components/ProcessChart/chartToken.js +17 -0
- package/src/components/charts/components/ProcessChart/handleData.js +156 -0
- package/src/components/charts/components/ProcessChart/handleOption.js +212 -0
- package/src/components/charts/components/ProcessChart/handleSeries.js +369 -0
- package/src/components/charts/components/ProcessChart/index.js +76 -0
- package/src/components/charts/components/RadarChart/BaseOption.js +248 -0
- package/src/components/charts/components/RadarChart/GradientRadar/index.js +421 -0
- package/src/components/charts/components/RadarChart/chartToken.js +17 -0
- package/src/components/charts/components/RadarChart/handleOptipn.js +316 -0
- package/src/components/charts/components/RadarChart/handleSeries.js +120 -0
- package/src/components/charts/components/RadarChart/index.js +77 -0
- package/src/components/charts/components/RegionChart/chartToken.js +17 -0
- package/src/components/charts/components/RegionChart/handleOption.js +29 -0
- package/src/components/charts/components/RegionChart/index.js +49 -0
- package/src/components/charts/components/RiverChart/Belt.js +181 -0
- package/src/components/charts/components/RiverChart/Manager.js +173 -0
- package/src/components/charts/components/RiverChart/Node.js +425 -0
- package/src/components/charts/components/RiverChart/baseOption.js +51 -0
- package/src/components/charts/components/RiverChart/index.js +79 -0
- package/src/components/charts/components/RiverChart/index.less +42 -0
- package/src/components/charts/components/RiverChart/util.js +160 -0
- package/src/components/charts/components/SankeyChart/BaseOption.js +74 -0
- package/src/components/charts/components/SankeyChart/chartToken.js +17 -0
- package/src/components/charts/components/SankeyChart/handleOption.js +258 -0
- package/src/components/charts/components/SankeyChart/index.js +111 -0
- package/src/components/charts/components/SankeyChart/tooltip.js +53 -0
- package/src/components/charts/components/ScatterChart/chartToken.js +17 -0
- package/src/components/charts/components/ScatterChart/handleMarkPoint.js +74 -0
- package/src/components/charts/components/ScatterChart/handleOptipn.js +66 -0
- package/src/components/charts/components/ScatterChart/handleSeries.js +48 -0
- package/src/components/charts/components/ScatterChart/index.js +60 -0
- package/src/components/charts/components/SnowFlakeChart/BranchManager.js +324 -0
- package/src/components/charts/components/SnowFlakeChart/CommonConstant.js +111 -0
- package/src/components/charts/components/SnowFlakeChart/LeafManager.js +76 -0
- package/src/components/charts/components/SnowFlakeChart/NodeManager.js +240 -0
- package/src/components/charts/components/SnowFlakeChart/TagManager.js +80 -0
- package/src/components/charts/components/SnowFlakeChart/assets/down.svg +8 -0
- package/src/components/charts/components/SnowFlakeChart/assets/errorBg-leaf.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/errorBg.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/image2L.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/assets/image2R.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/assets/image5L.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/assets/image5R.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/assets/normalBg-leaf.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/normalBg.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/outerBorder.svg +24 -0
- package/src/components/charts/components/SnowFlakeChart/assets/outerBorderOverAll.svg +18 -0
- package/src/components/charts/components/SnowFlakeChart/assets/up.svg +8 -0
- package/src/components/charts/components/SnowFlakeChart/assets/warningBg-leaf.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/warningBg.png +0 -0
- package/src/components/charts/components/SnowFlakeChart/assets/wirelessL.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/assets/wirelessR.svg +7 -0
- package/src/components/charts/components/SnowFlakeChart/defaultOption.js +285 -0
- package/src/components/charts/components/SnowFlakeChart/index.js +408 -0
- package/src/components/charts/components/SnowFlakeChart/index.less +503 -0
- package/src/components/charts/components/SnowFlakeChart/line/LineArrow.js +62 -0
- package/src/components/charts/components/SnowFlakeChart/line/LineDashed.js +29 -0
- package/src/components/charts/components/SnowFlakeChart/line/LineDotted.js +29 -0
- package/src/components/charts/components/SnowFlakeChart/line/LineStraight.js +28 -0
- package/src/components/charts/components/SnowFlakeChart/line/index.js +202 -0
- package/src/components/charts/components/SnowFlakeChart/util.js +430 -0
- package/src/components/charts/components/SunburstChart/chartToken.js +17 -0
- package/src/components/charts/components/SunburstChart/handleSeries.js +48 -0
- package/src/components/charts/components/SunburstChart/index.js +41 -0
- package/src/components/charts/components/TerraceChart/defaultGradient.js +116 -0
- package/src/components/charts/components/TerraceChart/defaultPath.js +30 -0
- package/src/components/charts/components/TerraceChart/index.js +276 -0
- package/src/components/charts/components/TerraceChart/index.less +171 -0
- package/src/components/charts/components/TerraceChart/insert.js +35 -0
- package/src/components/charts/components/TerraceChart/loading.js +34 -0
- package/src/components/charts/components/TimelineChart/chartToken.js +17 -0
- package/src/components/charts/components/TimelineChart/index.js +109 -0
- package/src/components/charts/components/TimelineChart/index.less +152 -0
- package/src/components/charts/components/TimelineChart/insertDom.js +45 -0
- package/src/components/charts/components/TimelineChart/timeline.js +461 -0
- package/src/components/charts/components/TreeChart/chartToken.js +17 -0
- package/src/components/charts/components/TreeChart/handleOptipn.js +101 -0
- package/src/components/charts/components/TreeChart/handleSeries.js +148 -0
- package/src/components/charts/components/TreeChart/index.js +50 -0
- package/src/components/charts/components/TreeMapChart/handleOptipn.js +57 -0
- package/src/components/charts/components/TreeMapChart/handleSeries.js +57 -0
- package/src/components/charts/components/TreeMapChart/handleVisualMap.js +31 -0
- package/src/components/charts/components/TreeMapChart/index.js +56 -0
- package/src/components/charts/components/WaveChart/chartToken.js +17 -0
- package/src/components/charts/components/WaveChart/index.js +418 -0
- package/src/components/charts/components/WaveChart/index.less +77 -0
- package/src/components/charts/components/WaveChart/insert.js +38 -0
- package/src/components/charts/components/WaveChart/loading.js +34 -0
- package/src/components/charts/components/WordCloudChart/BaseOption.js +19 -0
- package/src/components/charts/components/WordCloudChart/chartToken.js +17 -0
- package/src/components/charts/components/WordCloudChart/handleOptipn.js +20 -0
- package/src/components/charts/components/WordCloudChart/handleSeries.js +106 -0
- package/src/components/charts/components/WordCloudChart/index.js +67 -0
- package/src/components/charts/core.js +386 -0
- package/src/components/charts/feature/adaptive/index.js +46 -0
- package/src/components/charts/feature/adaptive/series/AssembleBubbleChart.js +22 -0
- package/src/components/charts/feature/adaptive/series/BarChart.js +27 -0
- package/src/components/charts/feature/adaptive/series/BoxplotChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/BubbleChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/BulletChart.js +27 -0
- package/src/components/charts/feature/adaptive/series/CircleProcessChart.js +25 -0
- package/src/components/charts/feature/adaptive/series/FunnelChart.js +22 -0
- package/src/components/charts/feature/adaptive/series/HeatMapChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/JadeJueChart.js +24 -0
- package/src/components/charts/feature/adaptive/series/LineChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/LiquidfillChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/PieChart.js +25 -0
- package/src/components/charts/feature/adaptive/series/PolarBarChart.js +22 -0
- package/src/components/charts/feature/adaptive/series/ScatterChart.js +26 -0
- package/src/components/charts/feature/adaptive/series/SunburstChart.js +25 -0
- package/src/components/charts/feature/adaptive/utils/axis.js +26 -0
- package/src/components/charts/feature/adaptive/utils/label.js +30 -0
- package/src/components/charts/feature/adaptive/utils/legend.js +30 -0
- package/src/components/charts/feature/adaptive/utils/title.js +30 -0
- package/src/components/charts/feature/adaptive/utils/tooltip.js +30 -0
- package/src/components/charts/feature/axistip/index.js +116 -0
- package/src/components/charts/feature/card/chartToken.js +17 -0
- package/src/components/charts/feature/card/index.js +225 -0
- package/src/components/charts/feature/card/index.less +166 -0
- package/src/components/charts/feature/drag/index.js +353 -0
- package/src/components/charts/feature/drag/index.less +53 -0
- package/src/components/charts/feature/equalLabel/index.js +63 -0
- package/src/components/charts/feature/expandLegend/constants.js +22 -0
- package/src/components/charts/feature/expandLegend/index.js +190 -0
- package/src/components/charts/feature/expandLegend/index.less +1044 -0
- package/src/components/charts/feature/expandLegend/mutiSelect/constants.js +40 -0
- package/src/components/charts/feature/expandLegend/mutiSelect/index.js +157 -0
- package/src/components/charts/feature/expandLegend/mutiSelect/item.js +133 -0
- package/src/components/charts/feature/expandLegend/mutiSelect/position.js +44 -0
- package/src/components/charts/feature/expandLegend/mutiSelect/search.js +79 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/constants.js +41 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/group.js +112 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/index.js +97 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/item.js +115 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/more.js +101 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/paging.js +103 -0
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/scroll.js +33 -0
- package/src/components/charts/feature/expandLegend/mutiSelectList/constants.js +34 -0
- package/src/components/charts/feature/expandLegend/mutiSelectList/index.js +181 -0
- package/src/components/charts/feature/expandLegend/mutiSelectList/statisticList.js +146 -0
- package/src/components/charts/feature/expandLegend/singleSelect/constants.js +40 -0
- package/src/components/charts/feature/expandLegend/singleSelect/index.js +170 -0
- package/src/components/charts/feature/expandLegend/singleSelect/item.js +74 -0
- package/src/components/charts/feature/expandLegend/singleSelect/position.js +34 -0
- package/src/components/charts/feature/expandLegend/singleSelect/search.js +76 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/constants.js +41 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/group.js +116 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/index.js +97 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/item.js +113 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/more.js +40 -0
- package/src/components/charts/feature/expandLegend/singleSelectLegend/scroll.js +33 -0
- package/src/components/charts/feature/expandLegend/tips/constants.js +21 -0
- package/src/components/charts/feature/expandLegend/tips/index.js +168 -0
- package/src/components/charts/feature/fluctuation/index.js +65 -0
- package/src/components/charts/feature/linter/dialog/index.js +111 -0
- package/src/components/charts/feature/linter/index.js +131 -0
- package/src/components/charts/feature/linter/lints/charts/Bar.js +46 -0
- package/src/components/charts/feature/linter/lints/charts/Line.js +31 -0
- package/src/components/charts/feature/linter/lints/charts/Pie.js +39 -0
- package/src/components/charts/feature/linter/lints/charts/Radar.js +38 -0
- package/src/components/charts/feature/linter/lints/charts/index.js +37 -0
- package/src/components/charts/feature/linter/lints/modules/angleAxis.js +47 -0
- package/src/components/charts/feature/linter/lints/modules/color.js +19 -0
- package/src/components/charts/feature/linter/lints/modules/dataZoom.js +52 -0
- package/src/components/charts/feature/linter/lints/modules/index.js +64 -0
- package/src/components/charts/feature/linter/lints/modules/legend.js +64 -0
- package/src/components/charts/feature/linter/lints/modules/radar.js +59 -0
- package/src/components/charts/feature/linter/lints/modules/radiusAxis.js +49 -0
- package/src/components/charts/feature/linter/lints/modules/title.js +44 -0
- package/src/components/charts/feature/linter/lints/modules/tooltip.js +29 -0
- package/src/components/charts/feature/linter/lints/modules/util.js +97 -0
- package/src/components/charts/feature/linter/lints/modules/xAxis.js +52 -0
- package/src/components/charts/feature/linter/lints/modules/yAxis.js +52 -0
- package/src/components/charts/feature/mediaScreen/index.js +95 -0
- package/src/components/charts/feature/mini/miniBarChart.js +58 -0
- package/src/components/charts/feature/mini/miniCircleProcessChart.js +32 -0
- package/src/components/charts/feature/mini/miniLineChart.js +58 -0
- package/src/components/charts/feature/mini/miniProcessChart.js +64 -0
- package/src/components/charts/feature/nodeRender/angular-node.js +100 -0
- package/src/components/charts/feature/nodeRender/index.js +31 -0
- package/src/components/charts/feature/nodeRender/react-node.js +83 -0
- package/src/components/charts/feature/nodeRender/vue-node.js +109 -0
- package/src/components/charts/feature/performance/lttb.js +85 -0
- package/src/components/charts/feature/readScreen/index.js +19 -0
- package/src/components/charts/feature/token/color/bpit/dark.js +67 -0
- package/src/components/charts/feature/token/color/bpit/index.js +20 -0
- package/src/components/charts/feature/token/color/bpit/light.js +66 -0
- package/src/components/charts/feature/token/color/cloud/board-dark.js +260 -0
- package/src/components/charts/feature/token/color/cloud/board.js +276 -0
- package/src/components/charts/feature/token/color/cloud/dark.js +78 -0
- package/src/components/charts/feature/token/color/cloud/index.js +20 -0
- package/src/components/charts/feature/token/color/cloud/light.js +77 -0
- package/src/components/charts/feature/token/color/hdesign/board.js +204 -0
- package/src/components/charts/feature/token/color/hdesign/dark.js +78 -0
- package/src/components/charts/feature/token/color/hdesign/index.js +20 -0
- package/src/components/charts/feature/token/color/hdesign/light.js +79 -0
- package/src/components/charts/feature/token/color/ict/board.js +190 -0
- package/src/components/charts/feature/token/color/ict/dark.js +61 -0
- package/src/components/charts/feature/token/color/ict/index.js +20 -0
- package/src/components/charts/feature/token/color/ict/light.js +62 -0
- package/src/components/charts/feature/token/color/index.js +29 -0
- package/src/components/charts/feature/token/color/util.js +42 -0
- package/src/components/charts/feature/token/factory/chartsToken/AreaChart.js +20 -0
- package/src/components/charts/feature/token/factory/chartsToken/AssembleBubbleChart.js +26 -0
- package/src/components/charts/feature/token/factory/chartsToken/BarChart.js +27 -0
- package/src/components/charts/feature/token/factory/chartsToken/BoxplotChart.js +27 -0
- package/src/components/charts/feature/token/factory/chartsToken/BubbleChart.js +22 -0
- package/src/components/charts/feature/token/factory/chartsToken/BulletChart.js +23 -0
- package/src/components/charts/feature/token/factory/chartsToken/CandlestickChart.js +20 -0
- package/src/components/charts/feature/token/factory/chartsToken/ChartCard.js +33 -0
- package/src/components/charts/feature/token/factory/chartsToken/CircleProcessChart.js +23 -0
- package/src/components/charts/feature/token/factory/chartsToken/FunnelChart.js +26 -0
- package/src/components/charts/feature/token/factory/chartsToken/GaugeChart.js +27 -0
- package/src/components/charts/feature/token/factory/chartsToken/HeatMapChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/HillChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/JadeJueChart.js +28 -0
- package/src/components/charts/feature/token/factory/chartsToken/LineChart.js +36 -0
- package/src/components/charts/feature/token/factory/chartsToken/LiquidfillChart.js +22 -0
- package/src/components/charts/feature/token/factory/chartsToken/PieChart.js +49 -0
- package/src/components/charts/feature/token/factory/chartsToken/PolarBarChart.js +22 -0
- package/src/components/charts/feature/token/factory/chartsToken/ProcessChart.js +40 -0
- package/src/components/charts/feature/token/factory/chartsToken/RadarChart.js +36 -0
- package/src/components/charts/feature/token/factory/chartsToken/RegionChart.js +20 -0
- package/src/components/charts/feature/token/factory/chartsToken/SankeyChart.js +22 -0
- package/src/components/charts/feature/token/factory/chartsToken/ScatterChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/SunburstChart.js +22 -0
- package/src/components/charts/feature/token/factory/chartsToken/TimelineChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/TreeChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/WaveChart.js +23 -0
- package/src/components/charts/feature/token/factory/chartsToken/WordCloudChart.js +21 -0
- package/src/components/charts/feature/token/factory/chartsToken/index.js +79 -0
- package/src/components/charts/feature/token/factory/getAliasToken.js +41 -0
- package/src/components/charts/feature/token/factory/getExportColors.js +46 -0
- package/src/components/charts/feature/token/factory/getGlobalToken.js +25 -0
- package/src/components/charts/feature/token/factory/getModelToken.js +389 -0
- package/src/components/charts/feature/token/factory/getSceneToken.js +41 -0
- package/src/components/charts/feature/token/factory/globalToken/border.js +21 -0
- package/src/components/charts/feature/token/factory/globalToken/borderRadius.js +22 -0
- package/src/components/charts/feature/token/factory/globalToken/font.js +26 -0
- package/src/components/charts/feature/token/factory/globalToken/index.js +28 -0
- package/src/components/charts/feature/token/factory/globalToken/lineType.js +19 -0
- package/src/components/charts/feature/token/factory/globalToken/size.js +22 -0
- package/src/components/charts/feature/token/factory/globalToken/space.js +25 -0
- package/src/components/charts/feature/token/factory/index.js +39 -0
- package/src/components/charts/feature/token/factory/mergeToken.js +72 -0
- package/src/components/charts/feature/token/index.js +176 -0
- package/src/components/charts/feature/token/readme.md +11 -0
- package/src/components/charts/feature/token/theme/bpit/index.js +19 -0
- package/src/components/charts/feature/token/theme/cloud/getAliasToken.js +247 -0
- package/src/components/charts/feature/token/theme/cloud/getSceneToken.js +74 -0
- package/src/components/charts/feature/token/theme/cloud/index.js +19 -0
- package/src/components/charts/feature/token/theme/hdesign/getAliasToken.js +249 -0
- package/src/components/charts/feature/token/theme/hdesign/getSceneToken.js +75 -0
- package/src/components/charts/feature/token/theme/hdesign/index.js +19 -0
- package/src/components/charts/feature/token/theme/ict/getAliasToken.js +249 -0
- package/src/components/charts/feature/token/theme/ict/getSceneToken.js +72 -0
- package/src/components/charts/feature/token/theme/ict/index.js +19 -0
- package/src/components/charts/feature/wcag/index.js +335 -0
- package/src/components/charts/feature/xss/index.js +52 -0
- package/src/components/charts/framework/charts/CircleArcChart/index.js +142 -0
- package/src/components/charts/framework/charts/CircleChart/index.js +140 -0
- package/src/components/charts/framework/charts/CustomizeChart/index.js +166 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/index.js +141 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/initDom.js +20 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/Node.js +148 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/center.js +71 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/collide.js +151 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/constant.js +17 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/dispatch.js +95 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/index.js +19 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/jiggle.js +16 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/lcg.js +23 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/link.js +128 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/manyBody.js +127 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/quadtree.js +393 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/radial.js +68 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/simulation.js +171 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/timer.js +121 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/x.js +52 -0
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/y.js +52 -0
- package/src/components/charts/framework/charts/GridChart/index.js +174 -0
- package/src/components/charts/framework/charts/LinearArcChart/index.js +143 -0
- package/src/components/charts/framework/charts/MindmapChart/index.js +166 -0
- package/src/components/charts/framework/charts/MindmapChart/index.less +85 -0
- package/src/components/charts/framework/core/Base.js +53 -0
- package/src/components/charts/framework/core/Relation.js +78 -0
- package/src/components/charts/framework/module/animation/Animate.js +434 -0
- package/src/components/charts/framework/module/animation/Animation.js +76 -0
- package/src/components/charts/framework/module/animation/AnimationGroup.js +137 -0
- package/src/components/charts/framework/module/animation/Easing.js +225 -0
- package/src/components/charts/framework/module/animation/Interpolation.js +88 -0
- package/src/components/charts/framework/module/animation/index.js +20 -0
- package/src/components/charts/framework/module/arrow/Manager.js +133 -0
- package/src/components/charts/framework/module/arrow/index.js +96 -0
- package/src/components/charts/framework/module/canvas/grid.js +288 -0
- package/src/components/charts/framework/module/canvas/index.js +434 -0
- package/src/components/charts/framework/module/canvas/index.less +102 -0
- package/src/components/charts/framework/module/canvas/initDom.js +66 -0
- package/src/components/charts/framework/module/canvas/tool.js +62 -0
- package/src/components/charts/framework/module/connector/Manager.js +103 -0
- package/src/components/charts/framework/module/connector/index.js +99 -0
- package/src/components/charts/framework/module/connector/index.less +36 -0
- package/src/components/charts/framework/module/connector/type/dot.js +21 -0
- package/src/components/charts/framework/module/connector/type/expand.js +211 -0
- package/src/components/charts/framework/module/contextmenu/index.js +149 -0
- package/src/components/charts/framework/module/contextmenu/index.less +40 -0
- package/src/components/charts/framework/module/data/Manager.js +56 -0
- package/src/components/charts/framework/module/data/index.js +0 -0
- package/src/components/charts/framework/module/legend/Item.js +218 -0
- package/src/components/charts/framework/module/legend/constants.js +14 -0
- package/src/components/charts/framework/module/legend/getSymbol.js +86 -0
- package/src/components/charts/framework/module/legend/index.js +119 -0
- package/src/components/charts/framework/module/legend/util.js +81 -0
- package/src/components/charts/framework/module/line/Animation.js +125 -0
- package/src/components/charts/framework/module/line/Manager.js +299 -0
- package/src/components/charts/framework/module/line/Tag.js +61 -0
- package/src/components/charts/framework/module/line/bufferRender.js +74 -0
- package/src/components/charts/framework/module/line/cross/pathPoints.js +233 -0
- package/src/components/charts/framework/module/line/cross/vectorUtil.js +67 -0
- package/src/components/charts/framework/module/line/customize.js +29 -0
- package/src/components/charts/framework/module/line/index.js +260 -0
- package/src/components/charts/framework/module/line/index.less +24 -0
- package/src/components/charts/framework/module/line/type/Bezier.js +90 -0
- package/src/components/charts/framework/module/line/type/Circle.js +38 -0
- package/src/components/charts/framework/module/line/type/Direct.js +23 -0
- package/src/components/charts/framework/module/line/type/Ellipse.js +88 -0
- package/src/components/charts/framework/module/line/type/Round.js +245 -0
- package/src/components/charts/framework/module/lineLayout/CircleShape/calculate.js +71 -0
- package/src/components/charts/framework/module/lineLayout/CircleShape/index.js +32 -0
- package/src/components/charts/framework/module/lineLayout/CircleShape/init.js +34 -0
- package/src/components/charts/framework/module/lineLayout/RectShape/calculate.js +174 -0
- package/src/components/charts/framework/module/lineLayout/RectShape/index.js +43 -0
- package/src/components/charts/framework/module/lineLayout/RectShape/init.js +79 -0
- package/src/components/charts/framework/module/lineLayout/RectShape/sharing.js +57 -0
- package/src/components/charts/framework/module/lineLayout/index.js +30 -0
- package/src/components/charts/framework/module/node/Manager.js +190 -0
- package/src/components/charts/framework/module/node/bufferRender.js +73 -0
- package/src/components/charts/framework/module/node/convertData/index.js +24 -0
- package/src/components/charts/framework/module/node/convertData/returnSelf.js +16 -0
- package/src/components/charts/framework/module/node/convertData/transform.js +24 -0
- package/src/components/charts/framework/module/node/convertData/treeToLink.js +36 -0
- package/src/components/charts/framework/module/node/index.js +187 -0
- package/src/components/charts/framework/module/nodeLayout/circle/excute.js +270 -0
- package/src/components/charts/framework/module/nodeLayout/circle/index.js +24 -0
- package/src/components/charts/framework/module/nodeLayout/customize/index.js +16 -0
- package/src/components/charts/framework/module/nodeLayout/defaults/excute.js +27 -0
- package/src/components/charts/framework/module/nodeLayout/defaults/index.js +20 -0
- package/src/components/charts/framework/module/nodeLayout/grid/excute.js +392 -0
- package/src/components/charts/framework/module/nodeLayout/grid/index.js +20 -0
- package/src/components/charts/framework/module/nodeLayout/index.js +27 -0
- package/src/components/charts/framework/module/nodeLayout/linearArc/index.js +34 -0
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/NodeBox.js +165 -0
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/algorithm.js +261 -0
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/index.js +278 -0
- package/src/components/charts/framework/module/readme.js +127 -0
- package/src/components/charts/index.js +65 -0
- package/src/components/charts/index.less +29 -0
- package/src/components/charts/option/PolarSys/index.js +43 -0
- package/src/components/charts/option/RectSys/index.js +58 -0
- package/src/components/charts/option/base/index.js +25 -0
- package/src/components/charts/option/config/angleAxis/base.js +56 -0
- package/src/components/charts/option/config/angleAxis/index.js +43 -0
- package/src/components/charts/option/config/animation/index.js +64 -0
- package/src/components/charts/option/config/datazoom/base.js +123 -0
- package/src/components/charts/option/config/datazoom/index.js +61 -0
- package/src/components/charts/option/config/grid/base.js +22 -0
- package/src/components/charts/option/config/grid/index.js +32 -0
- package/src/components/charts/option/config/legend/base.js +80 -0
- package/src/components/charts/option/config/legend/icon.js +21 -0
- package/src/components/charts/option/config/legend/index.js +63 -0
- package/src/components/charts/option/config/legend/itemStyle.js +17 -0
- package/src/components/charts/option/config/legend/ldata.js +29 -0
- package/src/components/charts/option/config/legend/pageIcon.js +54 -0
- package/src/components/charts/option/config/legend/position.js +19 -0
- package/src/components/charts/option/config/legend/size.js +17 -0
- package/src/components/charts/option/config/legend/textStyle.js +16 -0
- package/src/components/charts/option/config/mark/index.js +74 -0
- package/src/components/charts/option/config/polar/base.js +30 -0
- package/src/components/charts/option/config/polar/index.js +36 -0
- package/src/components/charts/option/config/polarTitle/base.js +40 -0
- package/src/components/charts/option/config/polarTitle/index.js +52 -0
- package/src/components/charts/option/config/polarTitle/subtextStyle.js +21 -0
- package/src/components/charts/option/config/polarTitle/textStyle.js +22 -0
- package/src/components/charts/option/config/radiusAxis/base.js +55 -0
- package/src/components/charts/option/config/radiusAxis/index.js +41 -0
- package/src/components/charts/option/config/rectTitle/base.js +31 -0
- package/src/components/charts/option/config/rectTitle/index.js +53 -0
- package/src/components/charts/option/config/toolbox/base.js +42 -0
- package/src/components/charts/option/config/toolbox/index.js +12 -0
- package/src/components/charts/option/config/tooltip/axisPointer.js +31 -0
- package/src/components/charts/option/config/tooltip/base.js +62 -0
- package/src/components/charts/option/config/tooltip/formatter.js +64 -0
- package/src/components/charts/option/config/tooltip/index.js +41 -0
- package/src/components/charts/option/config/visualMap/index.js +91 -0
- package/src/components/charts/option/config/xAxis/axisLabel.js +35 -0
- package/src/components/charts/option/config/xAxis/axisLine.js +29 -0
- package/src/components/charts/option/config/xAxis/axisMargin.js +31 -0
- package/src/components/charts/option/config/xAxis/base.js +66 -0
- package/src/components/charts/option/config/xAxis/boundaryGap.js +17 -0
- package/src/components/charts/option/config/xAxis/index.js +52 -0
- package/src/components/charts/option/config/xAxis/name.js +18 -0
- package/src/components/charts/option/config/xAxis/xdata.js +23 -0
- package/src/components/charts/option/config/xAxis/xkey.js +21 -0
- package/src/components/charts/option/config/yAxis/axisOptimization.js +32 -0
- package/src/components/charts/option/config/yAxis/base.js +59 -0
- package/src/components/charts/option/config/yAxis/index.js +68 -0
- package/src/components/charts/option/config/yAxis/ydata.js +28 -0
- package/src/components/charts/option/init/index.js +204 -0
- package/src/components/charts/register.js +178 -0
- package/src/components/charts/theme.js +62 -0
- package/src/components/charts/util/Sequence.js +21 -0
- package/src/components/charts/util/centerDom.js +92 -0
- package/src/components/charts/util/cloneDeep.js +29 -0
- package/src/components/charts/util/color.js +193 -0
- package/src/components/charts/util/constants.js +125 -0
- package/src/components/charts/util/convert.js +49 -0
- package/src/components/charts/util/debounce.js +24 -0
- package/src/components/charts/util/defendXSS.js +81 -0
- package/src/components/charts/util/dom.js +90 -0
- package/src/components/charts/util/equal.js +62 -0
- package/src/components/charts/util/event.js +25 -0
- package/src/components/charts/util/hashMap.js +111 -0
- package/src/components/charts/util/init/insert.js +165 -0
- package/src/components/charts/util/math.js +183 -0
- package/src/components/charts/util/merge.js +78 -0
- package/src/components/charts/util/paint.js +98 -0
- package/src/components/charts/util/sort/max.js +64 -0
- package/src/components/charts/util/sort/min.js +64 -0
- package/src/components/charts/util/throttle.js +34 -0
- package/src/components/charts/util/tips.js +25 -0
- package/src/components/charts/util/type.js +46 -0
- package/src/components/ebiz-form/components/cascader.vue +61 -0
- package/src/components/ebiz-form/components/checkbox.vue +37 -0
- package/src/components/ebiz-form/components/city.vue +137 -0
- package/src/components/ebiz-form/components/date-panel.vue +52 -0
- package/src/components/ebiz-form/components/date-range-panel.vue +52 -0
- package/src/components/ebiz-form/components/date-range.vue +56 -0
- package/src/components/ebiz-form/components/date.vue +52 -0
- package/src/components/ebiz-form/components/editor-multi-language.vue +47 -0
- package/src/components/ebiz-form/components/editor.vue +78 -0
- package/src/components/ebiz-form/components/file-multi-language.vue +52 -0
- package/src/components/ebiz-form/components/file.vue +149 -0
- package/src/components/ebiz-form/components/images-multi-language.vue +52 -0
- package/src/components/ebiz-form/components/images.vue +129 -0
- package/src/components/ebiz-form/components/img-multi-language.vue +51 -0
- package/src/components/ebiz-form/components/img.vue +129 -0
- package/src/components/ebiz-form/components/number.vue +50 -0
- package/src/components/ebiz-form/components/radio.vue +28 -0
- package/src/components/ebiz-form/components/select.vue +119 -0
- package/src/components/ebiz-form/components/switch.vue +23 -0
- package/src/components/ebiz-form/components/text-multi-language.vue +47 -0
- package/src/components/ebiz-form/components/text.vue +52 -0
- package/src/components/ebiz-form/components/textarea-multi-language.vue +48 -0
- package/src/components/ebiz-form/components/textarea.vue +29 -0
- package/src/components/ebiz-form/components/video-multi-language.vue +51 -0
- package/src/components/ebiz-form/components/video.vue +97 -0
- package/src/components/ebiz-form/index.vue +157 -0
- package/src/components/icons/IconCommunity.vue +7 -0
- package/src/components/icons/IconDocumentation.vue +7 -0
- package/src/components/icons/IconEcosystem.vue +7 -0
- package/src/components/icons/IconSupport.vue +7 -0
- package/src/components/icons/IconTooling.vue +19 -0
- package/src/index.js +84 -0
- package/src/main.js +57 -0
- package/src/router/index.js +155 -0
- package/src/utils/formatCode.js +24 -0
- package/src/utils/generateImportStatement.js +52 -0
- package/src/utils/hasJsx.js +25 -0
- package/src/utils/index.js +166 -0
- package/src/utils/mergeOptions.js +29 -0
- package/src/utils/parseRequiredBlocks.js +18 -0
- package/src/utils/upload.ts +126 -0
- package/src/utils/vue-sfc-validator.js +155 -0
- package/src/views/Button.vue +20 -0
- package/src/views/DataContainer.vue +20 -0
- package/src/views/EbizSpace.vue +186 -0
- package/src/views/EbizSwiper.vue +158 -0
- package/src/views/Form.vue +20 -0
- package/src/views/Home.vue +79 -0
- package/src/views/Mindmap.vue +20 -0
- package/src/views/MyComponent.vue +20 -0
- package/src/views/OkrTree.vue +20 -0
- package/src/views/RemoteSelect.vue +20 -0
- package/src/views/Table.vue +20 -0
- package/src/views/TagDemo.vue +102 -0
- package/src/views/TdesignButton.vue +191 -0
- package/src/views/TdesignCalendar.vue +95 -0
- package/src/views/TdesignCard.vue +297 -0
- package/src/views/TdesignCollapse.vue +294 -0
- package/src/views/TdesignDatePicker.vue +188 -0
- package/src/views/TdesignForm.vue +249 -0
- package/src/views/TdesignIcon.vue +204 -0
- package/src/views/TdesignImage.vue +216 -0
- package/src/views/TdesignImageViewer.vue +199 -0
- package/src/views/TdesignInput.vue +253 -0
- package/src/views/TdesignSelect.vue +474 -0
- package/src/views/TdesignSwiper.vue +158 -0
- package/src/views/Title.vue +20 -0
@@ -0,0 +1,72 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
import { aliasTokenMap } from './getAliasToken';
|
13
|
+
import getGlobalToken from './getGlobalToken';
|
14
|
+
import getModelToken from './getModelToken';
|
15
|
+
import getChartsToken from './chartsToken';
|
16
|
+
import { TOKENCHARTNAMES } from '../../../util/constants';
|
17
|
+
import color from '../color';
|
18
|
+
import merge from '../../../util/merge';
|
19
|
+
import cloneDeep from '../../../util/cloneDeep';
|
20
|
+
|
21
|
+
function getBasicToken(name, config) {
|
22
|
+
return {
|
23
|
+
...getGlobalToken(name),
|
24
|
+
...config,
|
25
|
+
};
|
26
|
+
}
|
27
|
+
|
28
|
+
function getMapToken(name, config) {
|
29
|
+
return {
|
30
|
+
...aliasTokenMap[name](config),
|
31
|
+
...config,
|
32
|
+
};
|
33
|
+
}
|
34
|
+
|
35
|
+
function getConfigModelToken(config) {
|
36
|
+
return {
|
37
|
+
...getModelToken(config),
|
38
|
+
...config,
|
39
|
+
};
|
40
|
+
}
|
41
|
+
|
42
|
+
function mergeSpecialToken(name, chartsConfig, config) {
|
43
|
+
TOKENCHARTNAMES.forEach(item => {
|
44
|
+
if (config[item]) merge(chartsConfig, config[item]);
|
45
|
+
});
|
46
|
+
// 针对colorState特殊处理
|
47
|
+
const { colorState } = config;
|
48
|
+
if (colorState) {
|
49
|
+
const newColorState = merge(cloneDeep(color[name].colorSet.colorState), colorState);
|
50
|
+
return { ...chartsConfig, colorState: newColorState };
|
51
|
+
}
|
52
|
+
return { ...chartsConfig };
|
53
|
+
}
|
54
|
+
|
55
|
+
/**
|
56
|
+
*
|
57
|
+
* @param {string} name 传入的主题名称
|
58
|
+
* @param {object} config 传入的主题配置
|
59
|
+
*/
|
60
|
+
|
61
|
+
export default function mergeToken(name, config) {
|
62
|
+
const basicConfig = getBasicToken(name, config);
|
63
|
+
const mapConfig = getMapToken(name, basicConfig);
|
64
|
+
const modelConfig = getConfigModelToken(mapConfig);
|
65
|
+
const chartsConfig = getChartsToken(mapConfig);
|
66
|
+
const specialConfig = mergeSpecialToken(name, chartsConfig, config);
|
67
|
+
return {
|
68
|
+
colorGroup: basicConfig.colorGroup,
|
69
|
+
...modelConfig,
|
70
|
+
...specialConfig,
|
71
|
+
};
|
72
|
+
}
|
@@ -0,0 +1,176 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
import { ictLight, ictDark } from './theme/ict';
|
13
|
+
import { bpitLight, bpitDark } from './theme/bpit';
|
14
|
+
import { cloudLight, cloudDark } from './theme/cloud';
|
15
|
+
import { hdesignLight, hdesignDark } from './theme/hdesign';
|
16
|
+
import merge from '../../util/merge';
|
17
|
+
import HashMap from '../../util/hashMap';
|
18
|
+
import cloneDeep from '../../util/cloneDeep';
|
19
|
+
import tips from '../../util/tips';
|
20
|
+
import { THEMES, CURRENT_THEME, DEFAULT_THEME_NAME, THEME_ERROR_TIP_MESSAGE } from '../../util/constants';
|
21
|
+
import mergeToken from './factory/mergeToken';
|
22
|
+
import { EXPORT_COLORS_KEY } from './factory/getExportColors';
|
23
|
+
|
24
|
+
const themeToken = new HashMap({
|
25
|
+
[THEMES.LIGHT]: cloneDeep(ictLight),
|
26
|
+
[THEMES.DARK]: cloneDeep(ictDark),
|
27
|
+
[THEMES.BPIT_LIGHT]: cloneDeep(bpitLight),
|
28
|
+
[THEMES.BPIT_DARK]: cloneDeep(bpitDark),
|
29
|
+
[THEMES.CLOUD_LIGHT]: cloneDeep(cloudLight),
|
30
|
+
[THEMES.CLOUD_DARK]: cloneDeep(cloudDark),
|
31
|
+
[THEMES.HDESIGN_LIGHT]: cloneDeep(hdesignLight),
|
32
|
+
[THEMES.HDESIGN_DARK]: cloneDeep(hdesignDark),
|
33
|
+
[CURRENT_THEME]: cloneDeep(ictLight),
|
34
|
+
});
|
35
|
+
class Token {
|
36
|
+
// 当前主题名称
|
37
|
+
static themeName = undefined;
|
38
|
+
|
39
|
+
static config = cloneDeep(ictLight);
|
40
|
+
|
41
|
+
// todo待修改
|
42
|
+
static set(name, config) {
|
43
|
+
const defaultConfig = cloneDeep(this.getConfig(DEFAULT_THEME_NAME));
|
44
|
+
merge(defaultConfig, config);
|
45
|
+
themeToken.set(name, defaultConfig);
|
46
|
+
}
|
47
|
+
// 以下待确认
|
48
|
+
static setConfig(name, config) {
|
49
|
+
// 以下为新的逻辑
|
50
|
+
const themeKeys = this.getThemeKeys();
|
51
|
+
const validate = themeKeys.includes(name);
|
52
|
+
// 修改已有主题的配置
|
53
|
+
if (validate) {
|
54
|
+
const newConfig = mergeToken(name, config);
|
55
|
+
const oldConfig = this.getConfig(name);
|
56
|
+
merge(oldConfig, newConfig);
|
57
|
+
} else {
|
58
|
+
const newConfig = mergeToken(DEFAULT_THEME_NAME, config);
|
59
|
+
themeToken.set(name, newConfig);
|
60
|
+
}
|
61
|
+
}
|
62
|
+
// 以下待确认
|
63
|
+
static getThemeKeys() {
|
64
|
+
return themeToken.keys();
|
65
|
+
}
|
66
|
+
|
67
|
+
// 以下待确认
|
68
|
+
static resetThemeCongfig() {
|
69
|
+
themeToken.set(THEMES.LIGHT, cloneDeep(ictLight));
|
70
|
+
themeToken.set(THEMES.DARK, cloneDeep(ictDark));
|
71
|
+
themeToken.set(THEMES.BPIT_LIGHT, cloneDeep(bpitLight));
|
72
|
+
themeToken.set(THEMES.BPIT_DARK, cloneDeep(bpitDark));
|
73
|
+
themeToken.set(THEMES.CLOUD_LIGHT, cloneDeep(cloudLight));
|
74
|
+
themeToken.set(THEMES.CLOUD_DARK, cloneDeep(cloudDark));
|
75
|
+
themeToken.set(THEMES.HDESIGN_LIGHT, cloneDeep(hdesignLight));
|
76
|
+
themeToken.set(THEMES.HDESIGN_DARK, cloneDeep(hdesignDark));
|
77
|
+
themeToken.set(CURRENT_THEME, cloneDeep(ictLight));
|
78
|
+
}
|
79
|
+
|
80
|
+
static getConfig(name) {
|
81
|
+
return themeToken.get(name);
|
82
|
+
}
|
83
|
+
|
84
|
+
static setDefaultTheme(name) {
|
85
|
+
const tempTheme = this.validate(name);
|
86
|
+
if (this.themeName !== tempTheme) {
|
87
|
+
this.themeName = tempTheme;
|
88
|
+
// 以下config功能待完善
|
89
|
+
themeToken.set(CURRENT_THEME, themeToken.get(tempTheme));
|
90
|
+
this.config = this.getConfig(CURRENT_THEME);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
// 校验主题的合法性,将不合法的主题值重置为默认的light主题,并给与提示
|
95
|
+
static validate(name) {
|
96
|
+
// 如果没传并且没有全局注册过直接就是light主题
|
97
|
+
let tempTheme = name || this.themeName || DEFAULT_THEME_NAME;
|
98
|
+
|
99
|
+
if (tempTheme.toLowerCase().includes('cloud-light')) {
|
100
|
+
tempTheme = THEMES.CLOUD_LIGHT;
|
101
|
+
}
|
102
|
+
|
103
|
+
if (tempTheme.toLowerCase().includes('cloud-dark')) {
|
104
|
+
tempTheme = THEMES.CLOUD_DARK;
|
105
|
+
}
|
106
|
+
|
107
|
+
const themeKeys = themeToken.keys();
|
108
|
+
|
109
|
+
const validate = themeKeys.includes(tempTheme);
|
110
|
+
|
111
|
+
if (!validate) {
|
112
|
+
tips.error(THEME_ERROR_TIP_MESSAGE);
|
113
|
+
tempTheme = THEMES.LIGHT;
|
114
|
+
}
|
115
|
+
|
116
|
+
return tempTheme;
|
117
|
+
}
|
118
|
+
|
119
|
+
/**
|
120
|
+
*
|
121
|
+
* @param {string} chartName 图表名称,根据名称从config中获取对应图表的chartToken
|
122
|
+
* @returns Object 用于series或者其他模块的Proxy代理token对象
|
123
|
+
*/
|
124
|
+
|
125
|
+
static getTokenByName(chartName) {
|
126
|
+
|
127
|
+
const handler = (_, prop) => {
|
128
|
+
const token = {
|
129
|
+
...this.config[chartName],
|
130
|
+
};
|
131
|
+
return token[prop];
|
132
|
+
}
|
133
|
+
|
134
|
+
return new Proxy(
|
135
|
+
{},
|
136
|
+
{
|
137
|
+
get: handler,
|
138
|
+
},
|
139
|
+
);
|
140
|
+
}
|
141
|
+
|
142
|
+
/**
|
143
|
+
* 用于ui规范检查
|
144
|
+
* @param {string} chartName 图表名称,根据名称从config中获取对应图表的chartToken
|
145
|
+
* @returns Object 在factory中定义的chartToken对象
|
146
|
+
*/
|
147
|
+
static getChartTokenByName(chartName) {
|
148
|
+
return this.config[chartName]
|
149
|
+
}
|
150
|
+
|
151
|
+
static getToken() {
|
152
|
+
return this.config
|
153
|
+
}
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Theme暴露使用的颜色变量
|
157
|
+
* @returns object
|
158
|
+
*/
|
159
|
+
static getColors() {
|
160
|
+
|
161
|
+
const colorHandler = (_, prop) => {
|
162
|
+
const vaild = EXPORT_COLORS_KEY.includes(prop)
|
163
|
+
return vaild ? this.config.exportColors[prop] : undefined
|
164
|
+
}
|
165
|
+
|
166
|
+
return new Proxy(
|
167
|
+
{},
|
168
|
+
{
|
169
|
+
get: colorHandler,
|
170
|
+
},
|
171
|
+
);
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
export { THEMES };
|
176
|
+
export default Token;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
### globalToken: 基础变量,包含基础字号、间距、颜色等等
|
2
|
+
图表使用的全局变量,包含 font,border,color,space 等
|
3
|
+
|
4
|
+
### aliasToken:二层变量,讲基础变量稍微语义化,如初级文本、次级文本,抹平黑白主题差异
|
5
|
+
基于 globalToken 衍生的别名变量,取值从 globalToken 中取,实现黑白主题的色值切换和不同主题之间的差异
|
6
|
+
|
7
|
+
### modelToken:三层变量,由二层变量生成,公共模块化变量,如x轴、y轴、图例、datazoom样式
|
8
|
+
基于 aliasToken 衍生的三级变量,取值从 aliasToken 中取,实现不同主题之间的差异覆盖
|
9
|
+
|
10
|
+
### chartsToken:四层变量,由二层变量生成,各图表变量,如线型图、柱状图样式
|
11
|
+
目前是基于 globalToken,aliasToken,modelToken 衍生的变量,用于按照图表名称的具体 option 配置
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
import { THEMES } from '../../../../util/constants';
|
13
|
+
import getToken from '../../factory';
|
14
|
+
|
15
|
+
const bpitLight = getToken(THEMES.BPIT_LIGHT);
|
16
|
+
|
17
|
+
const bpitDark = getToken(THEMES.BPIT_DARK);
|
18
|
+
|
19
|
+
export { bpitLight, bpitDark };
|
@@ -0,0 +1,247 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
function getAliasToken(globalToken, sceneToken) {
|
13
|
+
|
14
|
+
const {
|
15
|
+
fontSizeBase,
|
16
|
+
fontSizeMd,
|
17
|
+
space2x,
|
18
|
+
spaceBase,
|
19
|
+
fontSizeLg,
|
20
|
+
fontSize4xl,
|
21
|
+
lineTypeSolid,
|
22
|
+
lineTypeDashedLG,
|
23
|
+
borderNone,
|
24
|
+
borderBase,
|
25
|
+
borderRadiusBase,
|
26
|
+
border2x,
|
27
|
+
borderRadiusNone,
|
28
|
+
spaceNone,
|
29
|
+
space4x,
|
30
|
+
size05x,
|
31
|
+
size6x,
|
32
|
+
size2x,
|
33
|
+
sizeBase,
|
34
|
+
} = globalToken;
|
35
|
+
|
36
|
+
const {
|
37
|
+
colorBgMask,
|
38
|
+
colorBgPrimary,
|
39
|
+
colorBgSecondary,
|
40
|
+
colorBgPlaceholder,
|
41
|
+
colorBgHover,
|
42
|
+
colorBgHandle,
|
43
|
+
colorTextPrimary,
|
44
|
+
colorTextSecondary,
|
45
|
+
colorTextPlaceholder,
|
46
|
+
colorTextDisabled,
|
47
|
+
colorIconPrimary,
|
48
|
+
colorIconDisabled,
|
49
|
+
colorLine,
|
50
|
+
colorLineSecondary,
|
51
|
+
colorLineSeparator,
|
52
|
+
colorFillNone,
|
53
|
+
colorFill,
|
54
|
+
colorFillSelect,
|
55
|
+
colorFillSelectSecondary,
|
56
|
+
colorFillHover,
|
57
|
+
colorFillHandle,
|
58
|
+
colorBorder,
|
59
|
+
colorBorderSelect,
|
60
|
+
colorShadowPrimary,
|
61
|
+
colorShadowSecondary,
|
62
|
+
shadowOffsetYPrimary,
|
63
|
+
shadowOffsetYSecondary,
|
64
|
+
shadowBlurPrimary,
|
65
|
+
shadowBlurSecondary,
|
66
|
+
} = sceneToken
|
67
|
+
|
68
|
+
return {
|
69
|
+
// -----------------------------------------------------颜色-------------------------------------------------------------------------
|
70
|
+
// 卡片背景
|
71
|
+
colorBgContainer: colorBgPrimary,
|
72
|
+
// tip背景
|
73
|
+
colorBgContainerSecondary: colorBgSecondary,
|
74
|
+
// 悬浮背景
|
75
|
+
colorBgContainerHover: colorBgHover,
|
76
|
+
// 标题颜色
|
77
|
+
colorTitle: colorTextPrimary,
|
78
|
+
// 副标题颜色
|
79
|
+
colorSubTitle: colorTextSecondary,
|
80
|
+
// 名称文本(轴名称,legend名称等)
|
81
|
+
colorTextName: colorTextPlaceholder,
|
82
|
+
// 轴label
|
83
|
+
colorAxisLabel: colorTextPlaceholder,
|
84
|
+
// label颜色
|
85
|
+
colorLabel: colorTextPrimary,
|
86
|
+
// 进度图专用name名称
|
87
|
+
colorLabelSecondary: colorTextPlaceholder,
|
88
|
+
// label禁用颜色
|
89
|
+
colorLabelDisabled: colorTextDisabled,
|
90
|
+
// 图标色
|
91
|
+
colorIcon: colorIconPrimary,
|
92
|
+
// 图标失效色
|
93
|
+
colorIconInactive: colorIconDisabled,
|
94
|
+
// 坐标轴线颜色
|
95
|
+
colorAxisLine: colorLine,
|
96
|
+
// 刻度线颜色
|
97
|
+
colorAxisTickLine: colorLineSecondary,
|
98
|
+
// 分隔线颜色
|
99
|
+
colorAxisSplitLine: colorLine,
|
100
|
+
// 用于极坐标的径向轴和雷达坐标的分隔线颜色,和坐标轴线颜色保持一致,特殊处理专用
|
101
|
+
colorAxisSplitLineSecondary: colorLine,
|
102
|
+
// 坐标轴指示器悬浮线
|
103
|
+
colorAxisPointerLine: colorLineSeparator,
|
104
|
+
// 分隔线
|
105
|
+
colorSeparatorLine: colorLineSeparator,
|
106
|
+
// lableline
|
107
|
+
colorLabelLine: colorLine,
|
108
|
+
// 无色
|
109
|
+
colorNone: colorFillNone,
|
110
|
+
// 占位色
|
111
|
+
colorPlaceholder: colorBgPlaceholder,
|
112
|
+
// 遮盖色
|
113
|
+
colorMask: colorBgMask,
|
114
|
+
// zoom背景色
|
115
|
+
colorZoomBg: colorBgHover,
|
116
|
+
// zoom border颜色
|
117
|
+
colorZoomBorder: colorFillNone,
|
118
|
+
// zoom 数据区域 border
|
119
|
+
colorZoomDataAreaBorder: colorBorder,
|
120
|
+
// zoom 数据区域填充
|
121
|
+
colorZoomDataAreaFill: colorFill,
|
122
|
+
// zoom 选中区域填充
|
123
|
+
colorZoomFill: colorFillSelect,
|
124
|
+
// zoom 选中区域数据border
|
125
|
+
colorZoomSelectDataAreaBorder: colorBorderSelect,
|
126
|
+
// zoom 选中区域数据填充
|
127
|
+
colorZoomSelectDataAreaFill: colorFillSelectSecondary,
|
128
|
+
// zoom 手柄颜色
|
129
|
+
colorZoomHandle: colorFillHandle,
|
130
|
+
// zoom 手柄border
|
131
|
+
colorZoomHandleBorder: colorBgHandle,
|
132
|
+
// hover阴影
|
133
|
+
colorShadowHover: colorFillHover,
|
134
|
+
// tip阴影
|
135
|
+
colorShadowContainer: colorShadowPrimary,
|
136
|
+
// 手柄阴影
|
137
|
+
colorShadowHandle: colorShadowSecondary,
|
138
|
+
// symbol hover填充
|
139
|
+
symbolFillHover: colorBgMask,
|
140
|
+
// ---------------------------------------------------阴影-------------------------------------------------
|
141
|
+
// tip阴影offsetY
|
142
|
+
shadowOffsetYContainer: shadowOffsetYPrimary,
|
143
|
+
// 手柄阴影offsetY
|
144
|
+
shadowOffsetYHandle: shadowOffsetYSecondary,
|
145
|
+
// tip阴影模糊
|
146
|
+
shadowBlurContainer: shadowBlurPrimary,
|
147
|
+
// 手柄阴影模糊
|
148
|
+
shadowBlurHandle: shadowBlurSecondary,
|
149
|
+
// ------------------------------------------------------------------字号---------------------------------------------------
|
150
|
+
// 主文本字号
|
151
|
+
textFontSize: fontSizeMd, // 确定
|
152
|
+
// 次级文本字号
|
153
|
+
subtextFontSize: fontSizeBase, // 确定
|
154
|
+
// 标题文本字号
|
155
|
+
titleFontSize: fontSize4xl,
|
156
|
+
// 副标题文本字号
|
157
|
+
subtitleFontSize: fontSizeLg,
|
158
|
+
// label字号
|
159
|
+
labelFontSize: fontSizeBase,
|
160
|
+
// ----------------------------------------------线宽---------------------------------------------------------
|
161
|
+
// 坐标轴 1
|
162
|
+
axisLineWidth: borderBase,
|
163
|
+
// 用于极坐标系和雷达坐标系
|
164
|
+
axisLineWidthSecondary: borderBase,// 确定
|
165
|
+
// 刻度线 1
|
166
|
+
axisTickLineWidth: borderBase,
|
167
|
+
// 分隔线线宽 1
|
168
|
+
axisSplitLineWidth: borderBase,
|
169
|
+
// 坐标轴指示器的标线线宽 1
|
170
|
+
axisPointerLineWidth: borderBase,
|
171
|
+
// 常规线宽
|
172
|
+
lineWidth: border2x,
|
173
|
+
// 二级线宽
|
174
|
+
lineWidthSecondary: borderBase,
|
175
|
+
// 无线宽
|
176
|
+
lineWidthNone: borderNone,
|
177
|
+
// -------------------------------------------------------------------线型-------------------------------------------------------------------
|
178
|
+
// 坐标轴类型
|
179
|
+
axisLineType: lineTypeSolid,
|
180
|
+
// 刻度线类型
|
181
|
+
axisTickLineType: lineTypeSolid,
|
182
|
+
// 直角坐标系分隔线类型
|
183
|
+
axisSplitLineType: lineTypeDashedLG,
|
184
|
+
// 极坐标系分隔线类型
|
185
|
+
axisSplitLineTypeSecondary: lineTypeSolid,
|
186
|
+
// 坐标轴指示器标线类型
|
187
|
+
axisPointerLineType: lineTypeSolid,
|
188
|
+
// ---------------------------------------------------------------------间距-------------------------------------------------------------------------------
|
189
|
+
// 坐标轴名称间距
|
190
|
+
axisNameSpace: space2x,
|
191
|
+
// 坐标轴文本间距
|
192
|
+
axisLabelSpace: spaceBase,
|
193
|
+
// 标题文本间距
|
194
|
+
titleSpace: space2x,
|
195
|
+
// 容器的间距
|
196
|
+
containerGap: spaceBase,
|
197
|
+
// 图例的间距
|
198
|
+
legendSpace: space4x,
|
199
|
+
// 无padding
|
200
|
+
paddingNone: spaceNone,
|
201
|
+
paddingSM: spaceBase,
|
202
|
+
padding: space2x,
|
203
|
+
paddingLG: space4x,
|
204
|
+
tipItemGap: size2x,
|
205
|
+
tipIconGap: sizeBase,
|
206
|
+
tipValueGap: size2x,
|
207
|
+
// -----------------------------------------------------------------边框------------------------------------------------------------------------------
|
208
|
+
// zoom数据区域边框
|
209
|
+
zoomDataAreaBorderWidth: borderBase,
|
210
|
+
// 边框 细
|
211
|
+
borderWidth: borderBase,
|
212
|
+
// 边框
|
213
|
+
borderWidthLG: border2x,
|
214
|
+
// border 0
|
215
|
+
borderWidthNone: borderNone,
|
216
|
+
// 图元的边框0
|
217
|
+
symbolBorderWidthNone: borderNone,
|
218
|
+
// 图元的边框
|
219
|
+
symbolBorderWidth: border2x,
|
220
|
+
// -------------------------------------------------------------size----------------------------------------------------------------------------------------
|
221
|
+
// 图元
|
222
|
+
symbolSize: size2x,
|
223
|
+
// 雷达图专用
|
224
|
+
symbolSizeSecondary: size2x - 2,
|
225
|
+
// 图元 线形图用
|
226
|
+
symbolSizeSM: sizeBase,
|
227
|
+
// 柱条的宽度
|
228
|
+
barWidth: size2x,
|
229
|
+
// 堆叠进度图宽度
|
230
|
+
barWidthSecondary: size2x,
|
231
|
+
// 图例单元尺寸
|
232
|
+
legendItemSize: size05x,
|
233
|
+
// 图例圆形单元尺寸
|
234
|
+
legendCircleItemSize: size2x - 2,
|
235
|
+
// labelLine的长度
|
236
|
+
labelLineLength: size6x,
|
237
|
+
// ------------------------------------------------圆角---------------------------------------------------
|
238
|
+
// 容器的圆角
|
239
|
+
containerBoderRadius: borderRadiusBase,
|
240
|
+
// 圆角 0
|
241
|
+
borderRadiusNone,
|
242
|
+
// 圆角 小
|
243
|
+
borderRadius: borderRadiusBase,
|
244
|
+
};
|
245
|
+
}
|
246
|
+
|
247
|
+
export { getAliasToken as getCloudAliasToken };
|
@@ -0,0 +1,74 @@
|
|
1
|
+
import { codeToRGB } from '../../../../util/color';
|
2
|
+
// cloud黑白主题为两套不同的色板,灰阶命名黑白主题相反
|
3
|
+
function getSceneToken(globalToken, light = true) {
|
4
|
+
const {
|
5
|
+
colorGray0,
|
6
|
+
colorGray10,
|
7
|
+
colorGray15,
|
8
|
+
colorGray20,
|
9
|
+
colorGray30,
|
10
|
+
colorGray40,
|
11
|
+
colorGray50,
|
12
|
+
colorGray60,
|
13
|
+
colorGray70,
|
14
|
+
colorGray90,
|
15
|
+
colorGray100,
|
16
|
+
colorTransparent,
|
17
|
+
colorBoard,
|
18
|
+
spaceBase,
|
19
|
+
space05x,
|
20
|
+
space4x
|
21
|
+
} = globalToken;
|
22
|
+
|
23
|
+
return {
|
24
|
+
// 用于实现一些遮盖场景
|
25
|
+
colorBgMask: light ? colorGray0 : colorGray10,
|
26
|
+
// 初级底色 (卡片)
|
27
|
+
colorBgPrimary: light ? colorGray0 : colorGray10,
|
28
|
+
// 次级背景色 tip背景
|
29
|
+
colorBgSecondary: light ? colorGray0 : colorGray15,
|
30
|
+
// 占位背景色
|
31
|
+
colorBgPlaceholder: light ? colorGray30 : colorGray15,
|
32
|
+
// datazoom背景
|
33
|
+
colorBgHover: light ? colorGray10 : codeToRGB(colorGray100, 0.1),
|
34
|
+
// datazoom handle border todo
|
35
|
+
colorBgHandle: light ? colorBoard.blue.colorBlue60 : colorBoard.blue.colorBlue70,
|
36
|
+
// 主要文本色
|
37
|
+
colorTextPrimary: colorGray90,
|
38
|
+
// 次要文本色
|
39
|
+
colorTextSecondary: colorGray70,
|
40
|
+
// 占位文本色
|
41
|
+
colorTextPlaceholder: light ? colorGray60 : colorGray50,
|
42
|
+
// 禁用文本色
|
43
|
+
colorTextDisabled: colorGray50,
|
44
|
+
// 图标色
|
45
|
+
colorIconPrimary: light ? colorGray60 : colorGray70,
|
46
|
+
// 图标禁用色
|
47
|
+
colorIconDisabled: colorGray50,
|
48
|
+
colorLine: colorGray20,
|
49
|
+
colorLineSecondary: light ? colorGray40 : colorGray20,
|
50
|
+
//分隔线
|
51
|
+
colorLineSeparator: colorGray90,
|
52
|
+
colorFillNone: colorTransparent,
|
53
|
+
// datzoom 未选中数据 fill
|
54
|
+
colorFill: light ? codeToRGB(colorGray100, 0.05) : codeToRGB(colorGray100, 0.1),
|
55
|
+
// datzoom 选中区域 fill todo
|
56
|
+
colorFillSelect: light ? codeToRGB(colorBoard.blue.colorBlue60, 0.2) : codeToRGB(colorBoard.blue.colorBlue70, 0.2),
|
57
|
+
// datzoom 选中数据 fill todo
|
58
|
+
colorFillSelectSecondary: light ? colorBoard.blue.colorBlue30 : colorBoard.blue.colorBlue100,
|
59
|
+
// hover阴影
|
60
|
+
colorFillHover: light ? codeToRGB(colorGray100, 0.05) : codeToRGB(colorGray100, 0.1),
|
61
|
+
// datzoom handle 填充
|
62
|
+
colorFillHandle: light ? colorGray0 : colorGray100,
|
63
|
+
colorBorder: light ? colorGray50 : colorGray40,
|
64
|
+
colorBorderSelect: light ? colorBoard.blue.colorBlue60 : colorBoard.blue.colorBlue60,
|
65
|
+
colorShadowPrimary: light ? codeToRGB(colorGray100, 0.16) : codeToRGB(colorGray0, 0.08),
|
66
|
+
colorShadowSecondary: light ? codeToRGB(colorGray100, 0.08) : codeToRGB(colorGray0, 0.08),
|
67
|
+
shadowOffsetYPrimary: spaceBase,
|
68
|
+
shadowOffsetYSecondary: space05x,
|
69
|
+
shadowBlurPrimary: space4x,
|
70
|
+
shadowBlurSecondary: spaceBase,
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
export { getSceneToken as getCloudSceneToken }
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) 2024 - present OpenTiny HUICharts Authors.
|
3
|
+
* Copyright (c) 2024 - present Huawei Cloud Computing Technologies Co., Ltd.
|
4
|
+
*
|
5
|
+
* Use of this source code is governed by an MIT-style license.
|
6
|
+
*
|
7
|
+
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
|
8
|
+
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
|
9
|
+
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
|
10
|
+
*
|
11
|
+
*/
|
12
|
+
import { THEMES } from '../../../../util/constants';
|
13
|
+
import getToken from '../../factory';
|
14
|
+
|
15
|
+
const cloudLight = getToken(THEMES.CLOUD_LIGHT);
|
16
|
+
|
17
|
+
const cloudDark = getToken(THEMES.CLOUD_DARK);
|
18
|
+
|
19
|
+
export { cloudLight, cloudDark };
|