@ebiz/designer-components 0.0.47 → 0.0.49
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/dist/designer-components.css +1 -1
- package/dist/index.mjs +33336 -107224
- package/package.json +1 -4
- package/src/apiService/simpleDataService.js +43 -43
- package/src/assets/styles/charts/main.less +0 -30
- package/src/components/Button.vue +3 -6
- package/src/components/EbizApproval.vue +327 -0
- package/src/components/EbizEmployeeSelector.vue +50 -15
- package/src/components/EbizFileUpload.vue +55 -18
- package/src/components/EbizRouteBreadcrumb.vue +9 -9
- package/src/components/EbizSelect.vue +52 -62
- package/src/components/EbizTabHeader.vue +29 -41
- package/src/components/senior/EbizSDialog/index.vue +4 -0
- package/src/index.js +4 -4
- package/src/router/index.js +7 -0
- package/src/views/EbizApprovalDemo.vue +77 -0
- package/src/views/EbizSDataDemo.vue +0 -1
- package/src/views/Home.vue +2 -1
- package/src/components/EbizMindmap/README.md +0 -8
- package/src/components/EbizMindmap/components/GridNode.vue +0 -102
- package/src/components/EbizMindmap/components/node.vue +0 -92
- package/src/components/EbizMindmap/components/vueNode.vue +0 -64
- package/src/components/EbizMindmap/index.vue +0 -383
- package/src/components/charts/chart.js +0 -47
- package/src/components/charts/components/AssembleBubbleChart/BaseOption.js +0 -50
- package/src/components/charts/components/AssembleBubbleChart/chartToken.js +0 -17
- package/src/components/charts/components/AssembleBubbleChart/handleOption.js +0 -66
- package/src/components/charts/components/AssembleBubbleChart/handleRootData.js +0 -165
- package/src/components/charts/components/AssembleBubbleChart/handleSeriesData.js +0 -70
- package/src/components/charts/components/AssembleBubbleChart/index.js +0 -65
- package/src/components/charts/components/AutonaviMapChart/index.js +0 -162
- package/src/components/charts/components/BaiduMapChart/index.js +0 -148
- package/src/components/charts/components/BarChart/barChartOption.js +0 -76
- package/src/components/charts/components/BarChart/chartToken.js +0 -17
- package/src/components/charts/components/BarChart/handleOptipn.js +0 -102
- package/src/components/charts/components/BarChart/handleSeries.js +0 -716
- package/src/components/charts/components/BarChart/handleVisualMap.js +0 -48
- package/src/components/charts/components/BarChart/index.js +0 -151
- package/src/components/charts/components/BaseChart/index.js +0 -122
- package/src/components/charts/components/BoxplotChart/chartToken.js +0 -17
- package/src/components/charts/components/BoxplotChart/handleOption.js +0 -64
- package/src/components/charts/components/BoxplotChart/handleSeries.js +0 -150
- package/src/components/charts/components/BoxplotChart/index.js +0 -47
- package/src/components/charts/components/BubbleChart/chartToken.js +0 -17
- package/src/components/charts/components/BubbleChart/handleData.js +0 -33
- package/src/components/charts/components/BubbleChart/handleOptipn.js +0 -63
- package/src/components/charts/components/BubbleChart/handleSeries.js +0 -86
- package/src/components/charts/components/BubbleChart/handleTrendLine.js +0 -119
- package/src/components/charts/components/BubbleChart/handleVisualMap.js +0 -50
- package/src/components/charts/components/BubbleChart/index.js +0 -96
- package/src/components/charts/components/BulletChart/bulletChartOption.js +0 -82
- package/src/components/charts/components/BulletChart/chartToken.js +0 -17
- package/src/components/charts/components/BulletChart/handleOptipn.js +0 -74
- package/src/components/charts/components/BulletChart/handleSeries.js +0 -143
- package/src/components/charts/components/BulletChart/index.js +0 -93
- package/src/components/charts/components/CandlestickChart/BaseOption.js +0 -44
- package/src/components/charts/components/CandlestickChart/chartToken.js +0 -17
- package/src/components/charts/components/CandlestickChart/hanleOption.js +0 -130
- package/src/components/charts/components/CandlestickChart/hanleSeries.js +0 -123
- package/src/components/charts/components/CandlestickChart/index.js +0 -68
- package/src/components/charts/components/CircleProcessChart/chartToken.js +0 -17
- package/src/components/charts/components/CircleProcessChart/handleOption.js +0 -68
- package/src/components/charts/components/CircleProcessChart/handleSeries.js +0 -127
- package/src/components/charts/components/CircleProcessChart/index.js +0 -63
- package/src/components/charts/components/FlowChart/Layout.js +0 -211
- package/src/components/charts/components/FlowChart/LineBezier.js +0 -120
- package/src/components/charts/components/FlowChart/LineDirect.js +0 -42
- package/src/components/charts/components/FlowChart/LineManager.js +0 -278
- package/src/components/charts/components/FlowChart/LineMode.js +0 -44
- package/src/components/charts/components/FlowChart/LineRound.js +0 -335
- package/src/components/charts/components/FlowChart/NodeManager.js +0 -185
- package/src/components/charts/components/FlowChart/dagre.js +0 -8829
- package/src/components/charts/components/FlowChart/frameworkFn.js +0 -38
- package/src/components/charts/components/FlowChart/index.js +0 -268
- package/src/components/charts/components/FlowChart/index.less +0 -90
- package/src/components/charts/components/FlowChart/insert.js +0 -40
- package/src/components/charts/components/FlowChart/util.js +0 -43
- package/src/components/charts/components/FunnelChart/chartToken.js +0 -17
- package/src/components/charts/components/FunnelChart/handleLegend.js +0 -44
- package/src/components/charts/components/FunnelChart/handleSeries.js +0 -77
- package/src/components/charts/components/FunnelChart/index.js +0 -44
- package/src/components/charts/components/GanttChart/CoordinateSystem.js +0 -358
- package/src/components/charts/components/GanttChart/TimeLine.js +0 -379
- package/src/components/charts/components/GanttChart/constant.js +0 -71
- package/src/components/charts/components/GanttChart/index.js +0 -51
- package/src/components/charts/components/GanttChart/index.less +0 -267
- package/src/components/charts/components/GanttChart/util.js +0 -335
- package/src/components/charts/components/GaugeChart/BaseOption.js +0 -22
- package/src/components/charts/components/GaugeChart/chartToken.js +0 -17
- package/src/components/charts/components/GaugeChart/handleOptipn.js +0 -22
- package/src/components/charts/components/GaugeChart/handleSeries.js +0 -504
- package/src/components/charts/components/GaugeChart/index.js +0 -53
- package/src/components/charts/components/GraphChart/index.js +0 -34
- package/src/components/charts/components/GraphTreeChart/BaseOption.js +0 -42
- package/src/components/charts/components/GraphTreeChart/handleData.js +0 -118
- package/src/components/charts/components/GraphTreeChart/handleOption.js +0 -142
- package/src/components/charts/components/GraphTreeChart/index.js +0 -65
- package/src/components/charts/components/GraphTreeChart/mixTree.js +0 -36
- package/src/components/charts/components/GraphTreeChart/utils.js +0 -75
- package/src/components/charts/components/HeatMapChart/BaseOption.js +0 -66
- package/src/components/charts/components/HeatMapChart/chartToken.js +0 -17
- package/src/components/charts/components/HeatMapChart/handleData.js +0 -138
- package/src/components/charts/components/HeatMapChart/handleOptipn.js +0 -227
- package/src/components/charts/components/HeatMapChart/handleSeries.js +0 -82
- package/src/components/charts/components/HeatMapChart/handleVisualMap.js +0 -91
- package/src/components/charts/components/HeatMapChart/index.js +0 -70
- package/src/components/charts/components/HillChart/baseOption.js +0 -50
- package/src/components/charts/components/HillChart/chartToken.js +0 -17
- package/src/components/charts/components/HillChart/handleOption.js +0 -193
- package/src/components/charts/components/HillChart/handleSeries.js +0 -39
- package/src/components/charts/components/HillChart/index.js +0 -96
- package/src/components/charts/components/HoneycombChart/NodeManager.js +0 -172
- package/src/components/charts/components/HoneycombChart/TipManager.js +0 -75
- package/src/components/charts/components/HoneycombChart/index.js +0 -117
- package/src/components/charts/components/HoneycombChart/index.less +0 -49
- package/src/components/charts/components/JadeJueChart/BaseOption.js +0 -40
- package/src/components/charts/components/JadeJueChart/chartToken.js +0 -17
- package/src/components/charts/components/JadeJueChart/handleOption.js +0 -262
- package/src/components/charts/components/JadeJueChart/handleSeries.js +0 -246
- package/src/components/charts/components/JadeJueChart/index.js +0 -71
- package/src/components/charts/components/JadeJueChart/labelFormatter.js +0 -131
- package/src/components/charts/components/LineChart/AreaChart/bottomArea.js +0 -177
- package/src/components/charts/components/LineChart/AreaChart/chartToken.js +0 -17
- package/src/components/charts/components/LineChart/AreaChart/index.js +0 -18
- package/src/components/charts/components/LineChart/AreaChart/topArea.js +0 -139
- package/src/components/charts/components/LineChart/chartToken.js +0 -17
- package/src/components/charts/components/LineChart/handleOptipn.js +0 -145
- package/src/components/charts/components/LineChart/handlePredict.js +0 -73
- package/src/components/charts/components/LineChart/handleSeries.js +0 -266
- package/src/components/charts/components/LineChart/handleVisualMap.js +0 -138
- package/src/components/charts/components/LineChart/index.js +0 -133
- package/src/components/charts/components/LiquidfillChart/chartToken.js +0 -17
- package/src/components/charts/components/LiquidfillChart/handleSeries.js +0 -170
- package/src/components/charts/components/LiquidfillChart/index.js +0 -43
- package/src/components/charts/components/LiquidfillChart/plugSeries.js +0 -78
- package/src/components/charts/components/LiquidfillChart/plugShape.js +0 -163
- package/src/components/charts/components/LiquidfillChart/plugView.js +0 -537
- package/src/components/charts/components/MilestoneChart/Layout.js +0 -183
- package/src/components/charts/components/MilestoneChart/Node.js +0 -319
- package/src/components/charts/components/MilestoneChart/assets/next.svg +0 -7
- package/src/components/charts/components/MilestoneChart/assets/prev.svg +0 -7
- package/src/components/charts/components/MilestoneChart/assets/prompt.svg +0 -9
- package/src/components/charts/components/MilestoneChart/index.js +0 -108
- package/src/components/charts/components/MilestoneChart/index.less +0 -244
- package/src/components/charts/components/MilestoneChart/insertDom.js +0 -32
- package/src/components/charts/components/MilestoneChart/insertIcon.js +0 -24
- package/src/components/charts/components/MilestoneChart/insertSvg.js +0 -109
- package/src/components/charts/components/OrganizationChart/NodeManager.js +0 -188
- package/src/components/charts/components/OrganizationChart/RotateManager.js +0 -349
- package/src/components/charts/components/OrganizationChart/index.js +0 -124
- package/src/components/charts/components/OrganizationChart/index.less +0 -112
- package/src/components/charts/components/PieChart/chartToken.js +0 -17
- package/src/components/charts/components/PieChart/handleLabel.js +0 -94
- package/src/components/charts/components/PieChart/handleMulti.js +0 -131
- package/src/components/charts/components/PieChart/handleSeries.js +0 -236
- package/src/components/charts/components/PieChart/index.js +0 -58
- package/src/components/charts/components/PolarBarChart/chartToken.js +0 -17
- package/src/components/charts/components/PolarBarChart/handleOption.js +0 -102
- package/src/components/charts/components/PolarBarChart/handleSeries.js +0 -127
- package/src/components/charts/components/PolarBarChart/index.js +0 -62
- package/src/components/charts/components/ProcessChart/BaseOption.js +0 -296
- package/src/components/charts/components/ProcessChart/chartToken.js +0 -17
- package/src/components/charts/components/ProcessChart/handleData.js +0 -156
- package/src/components/charts/components/ProcessChart/handleOption.js +0 -212
- package/src/components/charts/components/ProcessChart/handleSeries.js +0 -369
- package/src/components/charts/components/ProcessChart/index.js +0 -76
- package/src/components/charts/components/RadarChart/BaseOption.js +0 -248
- package/src/components/charts/components/RadarChart/GradientRadar/index.js +0 -421
- package/src/components/charts/components/RadarChart/chartToken.js +0 -17
- package/src/components/charts/components/RadarChart/handleOptipn.js +0 -316
- package/src/components/charts/components/RadarChart/handleSeries.js +0 -120
- package/src/components/charts/components/RadarChart/index.js +0 -77
- package/src/components/charts/components/RegionChart/chartToken.js +0 -17
- package/src/components/charts/components/RegionChart/handleOption.js +0 -29
- package/src/components/charts/components/RegionChart/index.js +0 -49
- package/src/components/charts/components/RiverChart/Belt.js +0 -181
- package/src/components/charts/components/RiverChart/Manager.js +0 -173
- package/src/components/charts/components/RiverChart/Node.js +0 -425
- package/src/components/charts/components/RiverChart/baseOption.js +0 -51
- package/src/components/charts/components/RiverChart/index.js +0 -79
- package/src/components/charts/components/RiverChart/index.less +0 -42
- package/src/components/charts/components/RiverChart/util.js +0 -160
- package/src/components/charts/components/SankeyChart/BaseOption.js +0 -74
- package/src/components/charts/components/SankeyChart/chartToken.js +0 -17
- package/src/components/charts/components/SankeyChart/handleOption.js +0 -258
- package/src/components/charts/components/SankeyChart/index.js +0 -111
- package/src/components/charts/components/SankeyChart/tooltip.js +0 -53
- package/src/components/charts/components/ScatterChart/chartToken.js +0 -17
- package/src/components/charts/components/ScatterChart/handleMarkPoint.js +0 -74
- package/src/components/charts/components/ScatterChart/handleOptipn.js +0 -66
- package/src/components/charts/components/ScatterChart/handleSeries.js +0 -48
- package/src/components/charts/components/ScatterChart/index.js +0 -60
- package/src/components/charts/components/SnowFlakeChart/BranchManager.js +0 -324
- package/src/components/charts/components/SnowFlakeChart/CommonConstant.js +0 -111
- package/src/components/charts/components/SnowFlakeChart/LeafManager.js +0 -76
- package/src/components/charts/components/SnowFlakeChart/NodeManager.js +0 -240
- package/src/components/charts/components/SnowFlakeChart/TagManager.js +0 -80
- package/src/components/charts/components/SnowFlakeChart/assets/down.svg +0 -8
- 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 +0 -7
- package/src/components/charts/components/SnowFlakeChart/assets/image2R.svg +0 -7
- package/src/components/charts/components/SnowFlakeChart/assets/image5L.svg +0 -7
- package/src/components/charts/components/SnowFlakeChart/assets/image5R.svg +0 -7
- 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 +0 -24
- package/src/components/charts/components/SnowFlakeChart/assets/outerBorderOverAll.svg +0 -18
- package/src/components/charts/components/SnowFlakeChart/assets/up.svg +0 -8
- 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 +0 -7
- package/src/components/charts/components/SnowFlakeChart/assets/wirelessR.svg +0 -7
- package/src/components/charts/components/SnowFlakeChart/defaultOption.js +0 -285
- package/src/components/charts/components/SnowFlakeChart/index.js +0 -408
- package/src/components/charts/components/SnowFlakeChart/index.less +0 -503
- package/src/components/charts/components/SnowFlakeChart/line/LineArrow.js +0 -62
- package/src/components/charts/components/SnowFlakeChart/line/LineDashed.js +0 -29
- package/src/components/charts/components/SnowFlakeChart/line/LineDotted.js +0 -29
- package/src/components/charts/components/SnowFlakeChart/line/LineStraight.js +0 -28
- package/src/components/charts/components/SnowFlakeChart/line/index.js +0 -202
- package/src/components/charts/components/SnowFlakeChart/util.js +0 -430
- package/src/components/charts/components/SunburstChart/chartToken.js +0 -17
- package/src/components/charts/components/SunburstChart/handleSeries.js +0 -48
- package/src/components/charts/components/SunburstChart/index.js +0 -41
- package/src/components/charts/components/TerraceChart/defaultGradient.js +0 -116
- package/src/components/charts/components/TerraceChart/defaultPath.js +0 -30
- package/src/components/charts/components/TerraceChart/index.js +0 -276
- package/src/components/charts/components/TerraceChart/index.less +0 -171
- package/src/components/charts/components/TerraceChart/insert.js +0 -35
- package/src/components/charts/components/TerraceChart/loading.js +0 -34
- package/src/components/charts/components/TimelineChart/chartToken.js +0 -17
- package/src/components/charts/components/TimelineChart/index.js +0 -109
- package/src/components/charts/components/TimelineChart/index.less +0 -152
- package/src/components/charts/components/TimelineChart/insertDom.js +0 -45
- package/src/components/charts/components/TimelineChart/timeline.js +0 -461
- package/src/components/charts/components/TreeChart/chartToken.js +0 -17
- package/src/components/charts/components/TreeChart/handleOptipn.js +0 -101
- package/src/components/charts/components/TreeChart/handleSeries.js +0 -148
- package/src/components/charts/components/TreeChart/index.js +0 -50
- package/src/components/charts/components/TreeMapChart/handleOptipn.js +0 -57
- package/src/components/charts/components/TreeMapChart/handleSeries.js +0 -57
- package/src/components/charts/components/TreeMapChart/handleVisualMap.js +0 -31
- package/src/components/charts/components/TreeMapChart/index.js +0 -56
- package/src/components/charts/components/WaveChart/chartToken.js +0 -17
- package/src/components/charts/components/WaveChart/index.js +0 -418
- package/src/components/charts/components/WaveChart/index.less +0 -77
- package/src/components/charts/components/WaveChart/insert.js +0 -38
- package/src/components/charts/components/WaveChart/loading.js +0 -34
- package/src/components/charts/components/WordCloudChart/BaseOption.js +0 -19
- package/src/components/charts/components/WordCloudChart/chartToken.js +0 -17
- package/src/components/charts/components/WordCloudChart/handleOptipn.js +0 -20
- package/src/components/charts/components/WordCloudChart/handleSeries.js +0 -106
- package/src/components/charts/components/WordCloudChart/index.js +0 -67
- package/src/components/charts/core.js +0 -386
- package/src/components/charts/feature/adaptive/index.js +0 -46
- package/src/components/charts/feature/adaptive/series/AssembleBubbleChart.js +0 -22
- package/src/components/charts/feature/adaptive/series/BarChart.js +0 -27
- package/src/components/charts/feature/adaptive/series/BoxplotChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/BubbleChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/BulletChart.js +0 -27
- package/src/components/charts/feature/adaptive/series/CircleProcessChart.js +0 -25
- package/src/components/charts/feature/adaptive/series/FunnelChart.js +0 -22
- package/src/components/charts/feature/adaptive/series/HeatMapChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/JadeJueChart.js +0 -24
- package/src/components/charts/feature/adaptive/series/LineChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/LiquidfillChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/PieChart.js +0 -25
- package/src/components/charts/feature/adaptive/series/PolarBarChart.js +0 -22
- package/src/components/charts/feature/adaptive/series/ScatterChart.js +0 -26
- package/src/components/charts/feature/adaptive/series/SunburstChart.js +0 -25
- package/src/components/charts/feature/adaptive/utils/axis.js +0 -26
- package/src/components/charts/feature/adaptive/utils/label.js +0 -30
- package/src/components/charts/feature/adaptive/utils/legend.js +0 -30
- package/src/components/charts/feature/adaptive/utils/title.js +0 -30
- package/src/components/charts/feature/adaptive/utils/tooltip.js +0 -30
- package/src/components/charts/feature/axistip/index.js +0 -116
- package/src/components/charts/feature/card/chartToken.js +0 -17
- package/src/components/charts/feature/card/index.js +0 -225
- package/src/components/charts/feature/card/index.less +0 -166
- package/src/components/charts/feature/drag/index.js +0 -353
- package/src/components/charts/feature/drag/index.less +0 -53
- package/src/components/charts/feature/equalLabel/index.js +0 -63
- package/src/components/charts/feature/expandLegend/constants.js +0 -22
- package/src/components/charts/feature/expandLegend/index.js +0 -190
- package/src/components/charts/feature/expandLegend/index.less +0 -1044
- package/src/components/charts/feature/expandLegend/mutiSelect/constants.js +0 -40
- package/src/components/charts/feature/expandLegend/mutiSelect/index.js +0 -157
- package/src/components/charts/feature/expandLegend/mutiSelect/item.js +0 -133
- package/src/components/charts/feature/expandLegend/mutiSelect/position.js +0 -44
- package/src/components/charts/feature/expandLegend/mutiSelect/search.js +0 -79
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/constants.js +0 -41
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/group.js +0 -112
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/index.js +0 -97
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/item.js +0 -115
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/more.js +0 -101
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/paging.js +0 -103
- package/src/components/charts/feature/expandLegend/mutiSelectLegend/scroll.js +0 -33
- package/src/components/charts/feature/expandLegend/mutiSelectList/constants.js +0 -34
- package/src/components/charts/feature/expandLegend/mutiSelectList/index.js +0 -181
- package/src/components/charts/feature/expandLegend/mutiSelectList/statisticList.js +0 -146
- package/src/components/charts/feature/expandLegend/singleSelect/constants.js +0 -40
- package/src/components/charts/feature/expandLegend/singleSelect/index.js +0 -170
- package/src/components/charts/feature/expandLegend/singleSelect/item.js +0 -74
- package/src/components/charts/feature/expandLegend/singleSelect/position.js +0 -34
- package/src/components/charts/feature/expandLegend/singleSelect/search.js +0 -76
- package/src/components/charts/feature/expandLegend/singleSelectLegend/constants.js +0 -41
- package/src/components/charts/feature/expandLegend/singleSelectLegend/group.js +0 -116
- package/src/components/charts/feature/expandLegend/singleSelectLegend/index.js +0 -97
- package/src/components/charts/feature/expandLegend/singleSelectLegend/item.js +0 -113
- package/src/components/charts/feature/expandLegend/singleSelectLegend/more.js +0 -40
- package/src/components/charts/feature/expandLegend/singleSelectLegend/scroll.js +0 -33
- package/src/components/charts/feature/expandLegend/tips/constants.js +0 -21
- package/src/components/charts/feature/expandLegend/tips/index.js +0 -168
- package/src/components/charts/feature/fluctuation/index.js +0 -65
- package/src/components/charts/feature/linter/dialog/index.js +0 -111
- package/src/components/charts/feature/linter/index.js +0 -131
- package/src/components/charts/feature/linter/lints/charts/Bar.js +0 -46
- package/src/components/charts/feature/linter/lints/charts/Line.js +0 -31
- package/src/components/charts/feature/linter/lints/charts/Pie.js +0 -39
- package/src/components/charts/feature/linter/lints/charts/Radar.js +0 -38
- package/src/components/charts/feature/linter/lints/charts/index.js +0 -37
- package/src/components/charts/feature/linter/lints/modules/angleAxis.js +0 -47
- package/src/components/charts/feature/linter/lints/modules/color.js +0 -19
- package/src/components/charts/feature/linter/lints/modules/dataZoom.js +0 -52
- package/src/components/charts/feature/linter/lints/modules/index.js +0 -64
- package/src/components/charts/feature/linter/lints/modules/legend.js +0 -64
- package/src/components/charts/feature/linter/lints/modules/radar.js +0 -59
- package/src/components/charts/feature/linter/lints/modules/radiusAxis.js +0 -49
- package/src/components/charts/feature/linter/lints/modules/title.js +0 -44
- package/src/components/charts/feature/linter/lints/modules/tooltip.js +0 -29
- package/src/components/charts/feature/linter/lints/modules/util.js +0 -97
- package/src/components/charts/feature/linter/lints/modules/xAxis.js +0 -52
- package/src/components/charts/feature/linter/lints/modules/yAxis.js +0 -52
- package/src/components/charts/feature/mediaScreen/index.js +0 -95
- package/src/components/charts/feature/mini/miniBarChart.js +0 -58
- package/src/components/charts/feature/mini/miniCircleProcessChart.js +0 -32
- package/src/components/charts/feature/mini/miniLineChart.js +0 -58
- package/src/components/charts/feature/mini/miniProcessChart.js +0 -64
- package/src/components/charts/feature/nodeRender/angular-node.js +0 -100
- package/src/components/charts/feature/nodeRender/index.js +0 -31
- package/src/components/charts/feature/nodeRender/react-node.js +0 -83
- package/src/components/charts/feature/nodeRender/vue-node.js +0 -109
- package/src/components/charts/feature/performance/lttb.js +0 -85
- package/src/components/charts/feature/readScreen/index.js +0 -19
- package/src/components/charts/feature/token/color/bpit/dark.js +0 -67
- package/src/components/charts/feature/token/color/bpit/index.js +0 -20
- package/src/components/charts/feature/token/color/bpit/light.js +0 -66
- package/src/components/charts/feature/token/color/cloud/board-dark.js +0 -260
- package/src/components/charts/feature/token/color/cloud/board.js +0 -276
- package/src/components/charts/feature/token/color/cloud/dark.js +0 -78
- package/src/components/charts/feature/token/color/cloud/index.js +0 -20
- package/src/components/charts/feature/token/color/cloud/light.js +0 -77
- package/src/components/charts/feature/token/color/hdesign/board.js +0 -204
- package/src/components/charts/feature/token/color/hdesign/dark.js +0 -78
- package/src/components/charts/feature/token/color/hdesign/index.js +0 -20
- package/src/components/charts/feature/token/color/hdesign/light.js +0 -79
- package/src/components/charts/feature/token/color/ict/board.js +0 -190
- package/src/components/charts/feature/token/color/ict/dark.js +0 -61
- package/src/components/charts/feature/token/color/ict/index.js +0 -20
- package/src/components/charts/feature/token/color/ict/light.js +0 -62
- package/src/components/charts/feature/token/color/index.js +0 -29
- package/src/components/charts/feature/token/color/util.js +0 -42
- package/src/components/charts/feature/token/factory/chartsToken/AreaChart.js +0 -20
- package/src/components/charts/feature/token/factory/chartsToken/AssembleBubbleChart.js +0 -26
- package/src/components/charts/feature/token/factory/chartsToken/BarChart.js +0 -27
- package/src/components/charts/feature/token/factory/chartsToken/BoxplotChart.js +0 -27
- package/src/components/charts/feature/token/factory/chartsToken/BubbleChart.js +0 -22
- package/src/components/charts/feature/token/factory/chartsToken/BulletChart.js +0 -23
- package/src/components/charts/feature/token/factory/chartsToken/CandlestickChart.js +0 -20
- package/src/components/charts/feature/token/factory/chartsToken/ChartCard.js +0 -33
- package/src/components/charts/feature/token/factory/chartsToken/CircleProcessChart.js +0 -23
- package/src/components/charts/feature/token/factory/chartsToken/FunnelChart.js +0 -26
- package/src/components/charts/feature/token/factory/chartsToken/GaugeChart.js +0 -27
- package/src/components/charts/feature/token/factory/chartsToken/HeatMapChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/HillChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/JadeJueChart.js +0 -28
- package/src/components/charts/feature/token/factory/chartsToken/LineChart.js +0 -36
- package/src/components/charts/feature/token/factory/chartsToken/LiquidfillChart.js +0 -22
- package/src/components/charts/feature/token/factory/chartsToken/PieChart.js +0 -49
- package/src/components/charts/feature/token/factory/chartsToken/PolarBarChart.js +0 -22
- package/src/components/charts/feature/token/factory/chartsToken/ProcessChart.js +0 -40
- package/src/components/charts/feature/token/factory/chartsToken/RadarChart.js +0 -36
- package/src/components/charts/feature/token/factory/chartsToken/RegionChart.js +0 -20
- package/src/components/charts/feature/token/factory/chartsToken/SankeyChart.js +0 -22
- package/src/components/charts/feature/token/factory/chartsToken/ScatterChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/SunburstChart.js +0 -22
- package/src/components/charts/feature/token/factory/chartsToken/TimelineChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/TreeChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/WaveChart.js +0 -23
- package/src/components/charts/feature/token/factory/chartsToken/WordCloudChart.js +0 -21
- package/src/components/charts/feature/token/factory/chartsToken/index.js +0 -79
- package/src/components/charts/feature/token/factory/getAliasToken.js +0 -41
- package/src/components/charts/feature/token/factory/getExportColors.js +0 -46
- package/src/components/charts/feature/token/factory/getGlobalToken.js +0 -25
- package/src/components/charts/feature/token/factory/getModelToken.js +0 -389
- package/src/components/charts/feature/token/factory/getSceneToken.js +0 -41
- package/src/components/charts/feature/token/factory/globalToken/border.js +0 -21
- package/src/components/charts/feature/token/factory/globalToken/borderRadius.js +0 -22
- package/src/components/charts/feature/token/factory/globalToken/font.js +0 -26
- package/src/components/charts/feature/token/factory/globalToken/index.js +0 -28
- package/src/components/charts/feature/token/factory/globalToken/lineType.js +0 -19
- package/src/components/charts/feature/token/factory/globalToken/size.js +0 -22
- package/src/components/charts/feature/token/factory/globalToken/space.js +0 -25
- package/src/components/charts/feature/token/factory/index.js +0 -39
- package/src/components/charts/feature/token/factory/mergeToken.js +0 -72
- package/src/components/charts/feature/token/index.js +0 -176
- package/src/components/charts/feature/token/readme.md +0 -11
- package/src/components/charts/feature/token/theme/bpit/index.js +0 -19
- package/src/components/charts/feature/token/theme/cloud/getAliasToken.js +0 -247
- package/src/components/charts/feature/token/theme/cloud/getSceneToken.js +0 -74
- package/src/components/charts/feature/token/theme/cloud/index.js +0 -19
- package/src/components/charts/feature/token/theme/hdesign/getAliasToken.js +0 -249
- package/src/components/charts/feature/token/theme/hdesign/getSceneToken.js +0 -75
- package/src/components/charts/feature/token/theme/hdesign/index.js +0 -19
- package/src/components/charts/feature/token/theme/ict/getAliasToken.js +0 -249
- package/src/components/charts/feature/token/theme/ict/getSceneToken.js +0 -72
- package/src/components/charts/feature/token/theme/ict/index.js +0 -19
- package/src/components/charts/feature/wcag/index.js +0 -335
- package/src/components/charts/feature/xss/index.js +0 -52
- package/src/components/charts/framework/charts/CircleArcChart/index.js +0 -142
- package/src/components/charts/framework/charts/CircleChart/index.js +0 -140
- package/src/components/charts/framework/charts/CustomizeChart/index.js +0 -166
- package/src/components/charts/framework/charts/ForceDirectedChart/index.js +0 -141
- package/src/components/charts/framework/charts/ForceDirectedChart/initDom.js +0 -20
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/Node.js +0 -148
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/center.js +0 -71
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/collide.js +0 -151
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/constant.js +0 -17
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/dispatch.js +0 -95
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/index.js +0 -19
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/jiggle.js +0 -16
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/lcg.js +0 -23
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/link.js +0 -128
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/manyBody.js +0 -127
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/quadtree.js +0 -393
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/radial.js +0 -68
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/simulation.js +0 -171
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/timer.js +0 -121
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/x.js +0 -52
- package/src/components/charts/framework/charts/ForceDirectedChart/libs/y.js +0 -52
- package/src/components/charts/framework/charts/GridChart/index.js +0 -174
- package/src/components/charts/framework/charts/LinearArcChart/index.js +0 -143
- package/src/components/charts/framework/charts/MindmapChart/index.js +0 -166
- package/src/components/charts/framework/charts/MindmapChart/index.less +0 -85
- package/src/components/charts/framework/core/Base.js +0 -53
- package/src/components/charts/framework/core/Relation.js +0 -78
- package/src/components/charts/framework/module/animation/Animate.js +0 -434
- package/src/components/charts/framework/module/animation/Animation.js +0 -76
- package/src/components/charts/framework/module/animation/AnimationGroup.js +0 -137
- package/src/components/charts/framework/module/animation/Easing.js +0 -225
- package/src/components/charts/framework/module/animation/Interpolation.js +0 -88
- package/src/components/charts/framework/module/animation/index.js +0 -20
- package/src/components/charts/framework/module/arrow/Manager.js +0 -133
- package/src/components/charts/framework/module/arrow/index.js +0 -96
- package/src/components/charts/framework/module/canvas/grid.js +0 -288
- package/src/components/charts/framework/module/canvas/index.js +0 -434
- package/src/components/charts/framework/module/canvas/index.less +0 -102
- package/src/components/charts/framework/module/canvas/initDom.js +0 -66
- package/src/components/charts/framework/module/canvas/tool.js +0 -62
- package/src/components/charts/framework/module/connector/Manager.js +0 -103
- package/src/components/charts/framework/module/connector/index.js +0 -99
- package/src/components/charts/framework/module/connector/index.less +0 -36
- package/src/components/charts/framework/module/connector/type/dot.js +0 -21
- package/src/components/charts/framework/module/connector/type/expand.js +0 -211
- package/src/components/charts/framework/module/contextmenu/index.js +0 -149
- package/src/components/charts/framework/module/contextmenu/index.less +0 -40
- package/src/components/charts/framework/module/data/Manager.js +0 -56
- package/src/components/charts/framework/module/data/index.js +0 -0
- package/src/components/charts/framework/module/legend/Item.js +0 -218
- package/src/components/charts/framework/module/legend/constants.js +0 -14
- package/src/components/charts/framework/module/legend/getSymbol.js +0 -86
- package/src/components/charts/framework/module/legend/index.js +0 -119
- package/src/components/charts/framework/module/legend/util.js +0 -81
- package/src/components/charts/framework/module/line/Animation.js +0 -125
- package/src/components/charts/framework/module/line/Manager.js +0 -299
- package/src/components/charts/framework/module/line/Tag.js +0 -61
- package/src/components/charts/framework/module/line/bufferRender.js +0 -74
- package/src/components/charts/framework/module/line/cross/pathPoints.js +0 -233
- package/src/components/charts/framework/module/line/cross/vectorUtil.js +0 -67
- package/src/components/charts/framework/module/line/customize.js +0 -29
- package/src/components/charts/framework/module/line/index.js +0 -260
- package/src/components/charts/framework/module/line/index.less +0 -24
- package/src/components/charts/framework/module/line/type/Bezier.js +0 -90
- package/src/components/charts/framework/module/line/type/Circle.js +0 -38
- package/src/components/charts/framework/module/line/type/Direct.js +0 -23
- package/src/components/charts/framework/module/line/type/Ellipse.js +0 -88
- package/src/components/charts/framework/module/line/type/Round.js +0 -245
- package/src/components/charts/framework/module/lineLayout/CircleShape/calculate.js +0 -71
- package/src/components/charts/framework/module/lineLayout/CircleShape/index.js +0 -32
- package/src/components/charts/framework/module/lineLayout/CircleShape/init.js +0 -34
- package/src/components/charts/framework/module/lineLayout/RectShape/calculate.js +0 -174
- package/src/components/charts/framework/module/lineLayout/RectShape/index.js +0 -43
- package/src/components/charts/framework/module/lineLayout/RectShape/init.js +0 -79
- package/src/components/charts/framework/module/lineLayout/RectShape/sharing.js +0 -57
- package/src/components/charts/framework/module/lineLayout/index.js +0 -30
- package/src/components/charts/framework/module/node/Manager.js +0 -190
- package/src/components/charts/framework/module/node/bufferRender.js +0 -73
- package/src/components/charts/framework/module/node/convertData/index.js +0 -24
- package/src/components/charts/framework/module/node/convertData/returnSelf.js +0 -16
- package/src/components/charts/framework/module/node/convertData/transform.js +0 -24
- package/src/components/charts/framework/module/node/convertData/treeToLink.js +0 -36
- package/src/components/charts/framework/module/node/index.js +0 -187
- package/src/components/charts/framework/module/nodeLayout/circle/excute.js +0 -270
- package/src/components/charts/framework/module/nodeLayout/circle/index.js +0 -24
- package/src/components/charts/framework/module/nodeLayout/customize/index.js +0 -16
- package/src/components/charts/framework/module/nodeLayout/defaults/excute.js +0 -27
- package/src/components/charts/framework/module/nodeLayout/defaults/index.js +0 -20
- package/src/components/charts/framework/module/nodeLayout/grid/excute.js +0 -392
- package/src/components/charts/framework/module/nodeLayout/grid/index.js +0 -20
- package/src/components/charts/framework/module/nodeLayout/index.js +0 -27
- package/src/components/charts/framework/module/nodeLayout/linearArc/index.js +0 -34
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/NodeBox.js +0 -165
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/algorithm.js +0 -261
- package/src/components/charts/framework/module/nodeLayout/nonLayeredTidyTree/index.js +0 -278
- package/src/components/charts/framework/module/readme.js +0 -127
- package/src/components/charts/index.js +0 -65
- package/src/components/charts/index.less +0 -29
- package/src/components/charts/option/PolarSys/index.js +0 -43
- package/src/components/charts/option/RectSys/index.js +0 -58
- package/src/components/charts/option/base/index.js +0 -25
- package/src/components/charts/option/config/angleAxis/base.js +0 -56
- package/src/components/charts/option/config/angleAxis/index.js +0 -43
- package/src/components/charts/option/config/animation/index.js +0 -64
- package/src/components/charts/option/config/datazoom/base.js +0 -123
- package/src/components/charts/option/config/datazoom/index.js +0 -61
- package/src/components/charts/option/config/grid/base.js +0 -22
- package/src/components/charts/option/config/grid/index.js +0 -32
- package/src/components/charts/option/config/legend/base.js +0 -80
- package/src/components/charts/option/config/legend/icon.js +0 -21
- package/src/components/charts/option/config/legend/index.js +0 -63
- package/src/components/charts/option/config/legend/itemStyle.js +0 -17
- package/src/components/charts/option/config/legend/ldata.js +0 -29
- package/src/components/charts/option/config/legend/pageIcon.js +0 -54
- package/src/components/charts/option/config/legend/position.js +0 -19
- package/src/components/charts/option/config/legend/size.js +0 -17
- package/src/components/charts/option/config/legend/textStyle.js +0 -16
- package/src/components/charts/option/config/mark/index.js +0 -74
- package/src/components/charts/option/config/polar/base.js +0 -30
- package/src/components/charts/option/config/polar/index.js +0 -36
- package/src/components/charts/option/config/polarTitle/base.js +0 -40
- package/src/components/charts/option/config/polarTitle/index.js +0 -52
- package/src/components/charts/option/config/polarTitle/subtextStyle.js +0 -21
- package/src/components/charts/option/config/polarTitle/textStyle.js +0 -22
- package/src/components/charts/option/config/radiusAxis/base.js +0 -55
- package/src/components/charts/option/config/radiusAxis/index.js +0 -41
- package/src/components/charts/option/config/rectTitle/base.js +0 -31
- package/src/components/charts/option/config/rectTitle/index.js +0 -53
- package/src/components/charts/option/config/toolbox/base.js +0 -42
- package/src/components/charts/option/config/toolbox/index.js +0 -12
- package/src/components/charts/option/config/tooltip/axisPointer.js +0 -31
- package/src/components/charts/option/config/tooltip/base.js +0 -62
- package/src/components/charts/option/config/tooltip/formatter.js +0 -64
- package/src/components/charts/option/config/tooltip/index.js +0 -41
- package/src/components/charts/option/config/visualMap/index.js +0 -91
- package/src/components/charts/option/config/xAxis/axisLabel.js +0 -35
- package/src/components/charts/option/config/xAxis/axisLine.js +0 -29
- package/src/components/charts/option/config/xAxis/axisMargin.js +0 -31
- package/src/components/charts/option/config/xAxis/base.js +0 -66
- package/src/components/charts/option/config/xAxis/boundaryGap.js +0 -17
- package/src/components/charts/option/config/xAxis/index.js +0 -52
- package/src/components/charts/option/config/xAxis/name.js +0 -18
- package/src/components/charts/option/config/xAxis/xdata.js +0 -23
- package/src/components/charts/option/config/xAxis/xkey.js +0 -21
- package/src/components/charts/option/config/yAxis/axisOptimization.js +0 -32
- package/src/components/charts/option/config/yAxis/base.js +0 -59
- package/src/components/charts/option/config/yAxis/index.js +0 -68
- package/src/components/charts/option/config/yAxis/ydata.js +0 -28
- package/src/components/charts/option/init/index.js +0 -204
- package/src/components/charts/register.js +0 -178
- package/src/components/charts/theme.js +0 -62
- package/src/components/charts/util/Sequence.js +0 -21
- package/src/components/charts/util/centerDom.js +0 -92
- package/src/components/charts/util/cloneDeep.js +0 -29
- package/src/components/charts/util/color.js +0 -193
- package/src/components/charts/util/constants.js +0 -125
- package/src/components/charts/util/convert.js +0 -49
- package/src/components/charts/util/debounce.js +0 -24
- package/src/components/charts/util/defendXSS.js +0 -81
- package/src/components/charts/util/dom.js +0 -90
- package/src/components/charts/util/equal.js +0 -62
- package/src/components/charts/util/event.js +0 -25
- package/src/components/charts/util/hashMap.js +0 -111
- package/src/components/charts/util/init/insert.js +0 -165
- package/src/components/charts/util/math.js +0 -183
- package/src/components/charts/util/merge.js +0 -78
- package/src/components/charts/util/paint.js +0 -98
- package/src/components/charts/util/sort/max.js +0 -64
- package/src/components/charts/util/sort/min.js +0 -64
- package/src/components/charts/util/throttle.js +0 -34
- package/src/components/charts/util/tips.js +0 -25
- package/src/components/charts/util/type.js +0 -46
@@ -1,40 +1,41 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="ebiz-file-upload">
|
3
|
-
<
|
3
|
+
<t-upload
|
4
4
|
ref="uploadRef"
|
5
5
|
v-model="fileList"
|
6
6
|
:action="uploadUrl"
|
7
7
|
:headers="headers"
|
8
8
|
:multiple="multiple"
|
9
9
|
:accept="accept"
|
10
|
-
:size
|
10
|
+
:max-size="sizeLimit"
|
11
11
|
:disabled="disabled"
|
12
|
-
:
|
13
|
-
:theme="
|
12
|
+
:drag="draggable"
|
13
|
+
:theme="tTheme"
|
14
14
|
:tips="tips"
|
15
15
|
:show-upload-progress="showUploadProgress"
|
16
16
|
:before-upload="handleBeforeUpload"
|
17
17
|
:on-success="handleSuccess"
|
18
18
|
:on-error="handleError"
|
19
|
-
:button-text="buttonText"
|
20
|
-
:button-size="buttonSize"
|
21
|
-
:button-type="buttonType"
|
22
|
-
:button-plain="buttonPlain"
|
23
19
|
@change="handleChange"
|
24
20
|
>
|
25
21
|
<template #default v-if="customTrigger">
|
26
22
|
<slot name="trigger"></slot>
|
27
23
|
</template>
|
28
|
-
|
24
|
+
<template #trigger v-else>
|
25
|
+
<t-button :size="btnSize" :theme="buttonType" :variant="buttonPlain ? 'outline' : 'base'">
|
26
|
+
{{ buttonText }}
|
27
|
+
</t-button>
|
28
|
+
</template>
|
29
|
+
</t-upload>
|
29
30
|
</div>
|
30
31
|
</template>
|
31
32
|
|
32
33
|
<script setup>
|
33
|
-
import { ref, computed, watch
|
34
|
-
import {
|
34
|
+
import { ref, computed, watch } from 'vue';
|
35
|
+
import { Upload as TUpload, Button as TButton } from 'tdesign-vue-next';
|
35
36
|
|
36
37
|
/**
|
37
|
-
* EbizFileUpload 组件 - 基于
|
38
|
+
* EbizFileUpload 组件 - 基于 TDesign Upload 的文件上传组件
|
38
39
|
* 支持自定义上传地址、文件类型限制、大小限制、多文件上传等
|
39
40
|
* 提供成功和失败的回调处理
|
40
41
|
*/
|
@@ -164,6 +165,24 @@ const fileList = ref(props.initialFiles || []);
|
|
164
165
|
// 计算上传地址
|
165
166
|
const uploadUrl = computed(() => props.action);
|
166
167
|
|
168
|
+
// 将tiny主题映射到tdesign主题
|
169
|
+
const tTheme = computed(() => {
|
170
|
+
switch (props.theme) {
|
171
|
+
case 'button': return 'button';
|
172
|
+
case 'both': return 'file-input';
|
173
|
+
default: return 'file';
|
174
|
+
}
|
175
|
+
});
|
176
|
+
|
177
|
+
// 将tiny按钮大小映射到tdesign按钮大小
|
178
|
+
const btnSize = computed(() => {
|
179
|
+
switch (props.buttonSize) {
|
180
|
+
case 'mini': return 'small';
|
181
|
+
case 'small': return 'medium';
|
182
|
+
default: return 'large';
|
183
|
+
}
|
184
|
+
});
|
185
|
+
|
167
186
|
// 上传前处理
|
168
187
|
const handleBeforeUpload = (_file) => {
|
169
188
|
// 可以在这里添加文件校验逻辑
|
@@ -171,19 +190,19 @@ const handleBeforeUpload = (_file) => {
|
|
171
190
|
};
|
172
191
|
|
173
192
|
// 上传成功处理
|
174
|
-
const handleSuccess = (
|
175
|
-
emit('success', { file, response, fileList });
|
193
|
+
const handleSuccess = (result, file, fileList) => {
|
194
|
+
emit('success', { file: file.raw, response: result, fileList });
|
176
195
|
};
|
177
196
|
|
178
197
|
// 上传失败处理
|
179
198
|
const handleError = (error, file, fileList) => {
|
180
|
-
emit('error', { file, error, fileList });
|
199
|
+
emit('error', { file: file.raw, error, fileList });
|
181
200
|
};
|
182
201
|
|
183
202
|
// 文件变更处理
|
184
|
-
const handleChange = (
|
185
|
-
emit('update:files',
|
186
|
-
emit('change', { file, fileList });
|
203
|
+
const handleChange = (value, context) => {
|
204
|
+
emit('update:files', value);
|
205
|
+
emit('change', { file: context.file?.raw, fileList: value });
|
187
206
|
};
|
188
207
|
|
189
208
|
// 监听initialFiles变化更新文件列表
|
@@ -199,4 +218,22 @@ watch(() => props.initialFiles, (newFiles) => {
|
|
199
218
|
width: 100%;
|
200
219
|
margin: 16px 0;
|
201
220
|
}
|
221
|
+
|
222
|
+
:deep(.t-upload__tips) {
|
223
|
+
font-size: 12px;
|
224
|
+
color: rgba(0, 0, 0, 0.6);
|
225
|
+
}
|
226
|
+
|
227
|
+
:deep(.t-upload__dragger) {
|
228
|
+
padding: 24px;
|
229
|
+
background-color: var(--td-bg-color-container);
|
230
|
+
border: 1px dashed var(--td-component-border);
|
231
|
+
border-radius: 3px;
|
232
|
+
cursor: pointer;
|
233
|
+
transition: border-color 0.2s cubic-bezier(0.38, 0, 0.24, 1);
|
234
|
+
}
|
235
|
+
|
236
|
+
:deep(.t-upload__dragger:hover) {
|
237
|
+
border-color: var(--td-brand-color);
|
238
|
+
}
|
202
239
|
</style>
|
@@ -1,26 +1,26 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
<
|
2
|
+
<t-breadcrumb>
|
3
|
+
<t-breadcrumb-item :to="{ path: '/' }">首页</t-breadcrumb-item>
|
4
|
+
<t-breadcrumb-item
|
5
5
|
v-for="(item, index) in breadcrumbItems"
|
6
6
|
:key="index"
|
7
7
|
:to="item.path"
|
8
8
|
>
|
9
9
|
{{ item.title }}
|
10
|
-
</
|
11
|
-
</
|
10
|
+
</t-breadcrumb-item>
|
11
|
+
</t-breadcrumb>
|
12
12
|
</template>
|
13
13
|
|
14
14
|
<script>
|
15
15
|
import { computed } from 'vue'
|
16
16
|
import { useRoute } from 'vue-router'
|
17
|
-
import {
|
17
|
+
import { Breadcrumb as TBreadcrumb, BreadcrumbItem as TBreadcrumbItem } from 'tdesign-vue-next'
|
18
18
|
|
19
19
|
export default {
|
20
20
|
name: 'EbizRouteBreadcrumb',
|
21
21
|
components: {
|
22
|
-
|
23
|
-
|
22
|
+
TBreadcrumb,
|
23
|
+
TBreadcrumbItem
|
24
24
|
},
|
25
25
|
setup() {
|
26
26
|
const route = useRoute()
|
@@ -41,7 +41,7 @@ export default {
|
|
41
41
|
</script>
|
42
42
|
|
43
43
|
<style scoped>
|
44
|
-
.
|
44
|
+
.t-breadcrumb {
|
45
45
|
margin: 16px 0;
|
46
46
|
}
|
47
47
|
</style>
|
@@ -1,95 +1,85 @@
|
|
1
1
|
<template>
|
2
2
|
<div>
|
3
|
-
<
|
4
|
-
v-model="
|
3
|
+
<t-select
|
4
|
+
v-model="selectedValue"
|
5
5
|
filterable
|
6
|
-
|
7
|
-
:remote-config="{ autoSearch: true }"
|
8
|
-
:remote-method="remoteMethod3"
|
9
|
-
:loading="loading3"
|
6
|
+
:loading="loading"
|
10
7
|
loading-text="Loading..."
|
8
|
+
:remote="true"
|
9
|
+
@search="remoteSearch"
|
11
10
|
@change="onChange"
|
11
|
+
style="width: 280px;"
|
12
12
|
>
|
13
|
-
<
|
14
|
-
</
|
15
|
-
|
13
|
+
<t-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
14
|
+
</t-select>
|
16
15
|
</div>
|
17
16
|
</template>
|
18
17
|
|
19
18
|
<script setup>
|
20
|
-
import { onMounted, ref, toRefs} from 'vue'
|
21
|
-
import {
|
19
|
+
import { onMounted, ref, toRefs } from 'vue'
|
20
|
+
import { Select as TSelect, Option as TOption } from 'tdesign-vue-next'
|
22
21
|
import request from '@/apiService/simpleDataService';
|
22
|
+
|
23
23
|
const props = defineProps({
|
24
24
|
apiConfig: {
|
25
25
|
type: Object,
|
26
|
-
default: {
|
27
|
-
|
28
|
-
|
29
|
-
}
|
26
|
+
default: () => ({
|
27
|
+
apiId: null,
|
28
|
+
apiType: ''
|
29
|
+
})
|
30
30
|
}
|
31
31
|
})
|
32
|
-
const emit = defineEmits(['formSubmitted'])
|
33
32
|
|
34
|
-
|
35
|
-
remoteMethod3('')
|
36
|
-
})
|
37
|
-
|
38
|
-
const loading3 = ref(false)
|
39
|
-
const value3 = ref('')
|
40
|
-
const options3 = ref([])
|
41
|
-
const list = ref([])
|
33
|
+
const emit = defineEmits(['formSubmitted'])
|
42
34
|
|
43
|
-
|
35
|
+
const loading = ref(false)
|
36
|
+
const selectedValue = ref('')
|
37
|
+
const options = ref([])
|
44
38
|
|
45
39
|
const { apiConfig } = toRefs(props);
|
46
40
|
|
47
|
-
const
|
41
|
+
const remoteSearch = (query) => {
|
42
|
+
if (!apiConfig.value.apiId) return;
|
43
|
+
|
44
|
+
loading.value = true;
|
48
45
|
request.fetch({
|
49
|
-
"queryParams":{"name": query}
|
50
|
-
},{
|
46
|
+
"queryParams": { "name": query }
|
47
|
+
}, {
|
51
48
|
apiId: apiConfig.value.apiId,
|
52
|
-
},'/appdata/select'
|
53
|
-
|
54
|
-
|
55
|
-
return { value: item.name, label: item.name }
|
56
|
-
})
|
57
|
-
console.log("options3.value", options3.value)
|
58
|
-
|
59
|
-
}).catch((err) => {
|
60
|
-
console.log("err111111", err)
|
61
|
-
})
|
62
|
-
}
|
63
|
-
const onChange = () => {
|
64
|
-
emit('formSubmitted', value3.value);
|
65
|
-
}
|
66
|
-
|
67
|
-
|
68
|
-
{/* const url = ('http://localhost:3000/admin/product/getHomeProList') */}
|
69
|
-
|
70
|
-
|
71
|
-
{/* onMounted(async() => {
|
72
|
-
// await axios.get(url).then((val) => {
|
73
|
-
// console.log('val', val.data.data)
|
74
|
-
// list.value = val.data.data.map((item) => {
|
75
|
-
// return { value: item.name, label: item.name }
|
76
|
-
// })
|
77
|
-
// })
|
78
|
-
|
79
|
-
|
80
|
-
// post请求 参数: apiId: 372, queryParams: {"type": 1}
|
81
|
-
await axios.post(url, { apiId: params.apiId, queryParams: { type: 1 } }).then((val) => {
|
82
|
-
list.value = val.data.data.map((item) => {
|
49
|
+
}, '/appdata/select')
|
50
|
+
.then((val) => {
|
51
|
+
options.value = val.data.map((item) => {
|
83
52
|
return { value: item.name, label: item.name }
|
84
53
|
})
|
85
54
|
})
|
55
|
+
.catch((_err) => {
|
56
|
+
// 错误处理
|
57
|
+
})
|
58
|
+
.finally(() => {
|
59
|
+
loading.value = false;
|
60
|
+
});
|
61
|
+
}
|
86
62
|
|
87
|
-
|
63
|
+
const onChange = () => {
|
64
|
+
emit('formSubmitted', selectedValue.value);
|
65
|
+
}
|
88
66
|
|
67
|
+
// 初始加载数据
|
68
|
+
onMounted(() => {
|
69
|
+
remoteSearch('');
|
70
|
+
})
|
89
71
|
</script>
|
90
72
|
|
91
73
|
<style lang="less" scoped>
|
92
|
-
|
93
|
-
|
74
|
+
/* TDesign主题样式定制 */
|
75
|
+
:deep(.t-select) {
|
76
|
+
&.t-is-focused {
|
77
|
+
border-color: #5e7ce0;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
:deep(.t-select__panel) {
|
82
|
+
max-height: 300px;
|
83
|
+
overflow-y: auto;
|
94
84
|
}
|
95
85
|
</style>
|
@@ -1,13 +1,12 @@
|
|
1
1
|
<template>
|
2
|
-
<
|
3
|
-
<
|
4
|
-
|
5
|
-
</tiny-tabs>
|
2
|
+
<t-tabs v-model="showTab" :theme="props.tabStyle === 'card' ? 'card' : 'normal'" @change="tabChange">
|
3
|
+
<t-tab-panel v-for="i in showTabs" :key="i.value" :label="i.label" :value="i.value.toString()" />
|
4
|
+
</t-tabs>
|
6
5
|
</template>
|
7
6
|
|
8
7
|
<script setup>
|
9
8
|
import { ref, computed, watch } from 'vue'
|
10
|
-
import {
|
9
|
+
import { Tabs as TTabs, TabPanel as TTabPanel } from 'tdesign-vue-next'
|
11
10
|
import { dataService } from "../index.js"
|
12
11
|
|
13
12
|
const emit = defineEmits(['tabChange'])
|
@@ -59,7 +58,6 @@ const remoteTabs = ref([])
|
|
59
58
|
|
60
59
|
// 展示的tabs
|
61
60
|
const showTabs = computed(() => {
|
62
|
-
console.log(props.tabs, 66, 110)
|
63
61
|
if (remoteTabs.value.length) return [{ label: '全部', value: '0' }, ...remoteTabs.value];
|
64
62
|
if (props.tabs.length) return props.tabs
|
65
63
|
return [{ label: '全部', value: '0' }]
|
@@ -72,13 +70,13 @@ const showTab = computed(() => {
|
|
72
70
|
})
|
73
71
|
|
74
72
|
// methods
|
75
|
-
const tabChange = (
|
76
|
-
emit('tabChange',
|
73
|
+
const tabChange = (value) => {
|
74
|
+
emit('tabChange', value === '0' ? '' : value)
|
77
75
|
}
|
78
76
|
|
79
77
|
// init
|
80
78
|
watch(() => showTabs.value, () => {
|
81
|
-
tabChange(
|
79
|
+
tabChange(showTab.value)
|
82
80
|
})
|
83
81
|
|
84
82
|
watch(() => props.apiConfig, (nVal) => {
|
@@ -93,53 +91,43 @@ watch(() => props.apiConfig, (nVal) => {
|
|
93
91
|
</script>
|
94
92
|
|
95
93
|
<style scoped lang="less">
|
96
|
-
|
94
|
+
// TDesign Tabs 主题色自定义
|
95
|
+
:deep(.t-tabs__nav--card) {
|
96
|
+
.t-tabs__nav-item.t-is-active {
|
97
|
+
background-color: #5e7ce0;
|
98
|
+
border-color: #5e7ce0;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
:deep(.t-tabs__nav-item) {
|
103
|
+
color: #606266;
|
104
|
+
|
105
|
+
&:hover {
|
106
|
+
color: #5e7ce0;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
:deep(.t-tabs__nav-item.t-is-active) {
|
97
111
|
color: #5e7ce0;
|
98
112
|
}
|
99
113
|
|
100
|
-
:deep(.
|
101
|
-
background: #5e7ce0;
|
102
|
-
height: 4px;
|
114
|
+
:deep(.t-tabs__bar) {
|
115
|
+
background-color: #5e7ce0;
|
103
116
|
}
|
104
117
|
|
105
|
-
:deep(.
|
118
|
+
:deep(.t-tabs__content) {
|
106
119
|
display: none;
|
107
120
|
}
|
108
121
|
|
109
|
-
:deep(.
|
122
|
+
:deep(.t-tabs__nav-container) {
|
110
123
|
border-bottom: 1px solid #e8e8e8;
|
111
124
|
margin-bottom: 0;
|
112
125
|
}
|
113
126
|
|
114
|
-
:deep(.
|
127
|
+
:deep(.t-tabs__nav-item) {
|
115
128
|
padding: 0 20px;
|
116
129
|
height: 40px;
|
117
130
|
line-height: 40px;
|
118
131
|
font-size: 14px;
|
119
|
-
color: #606266;
|
120
|
-
transition: color 0.3s;
|
121
|
-
cursor: pointer;
|
122
|
-
|
123
|
-
&:hover {
|
124
|
-
color: #5e7ce0;
|
125
|
-
}
|
126
|
-
}
|
127
|
-
|
128
|
-
:deep(.tiny-tabs__header) {
|
129
|
-
margin-bottom: 0;
|
130
|
-
overflow: hidden;
|
131
|
-
position: relative;
|
132
|
-
white-space: nowrap;
|
133
|
-
}
|
134
|
-
|
135
|
-
:deep(.tiny-tabs__nav-wrap) {
|
136
|
-
overflow: hidden;
|
137
|
-
position: relative;
|
138
|
-
white-space: nowrap;
|
139
|
-
}
|
140
|
-
|
141
|
-
:deep(.tiny-tabs__nav-scroll) {
|
142
|
-
overflow: hidden;
|
143
|
-
white-space: nowrap;
|
144
132
|
}
|
145
133
|
</style>
|
@@ -1,5 +1,8 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="ebiz-tdesign-button-dialog">
|
3
|
+
<div v-if="$slots.trigger" @click="openDialog">
|
4
|
+
<slot name="trigger"></slot>
|
5
|
+
</div>
|
3
6
|
<t-dialog v-model:visible="dialogVisible" :header="title || computedTitle" :width="dialogWidth" :top="dialogTop"
|
4
7
|
:attach="dialogAttach" :destroy-on-close="dialogDestroyOnClose" :mode="dialogMode" :placement="dialogPlacement"
|
5
8
|
:show-overlay="dialogShowOverlay" :close-on-esc-keydown="dialogCloseOnEscKeydown"
|
@@ -556,6 +559,7 @@ const loadDetailData = async (id) => {
|
|
556
559
|
|
557
560
|
// 打开弹窗并传递参数
|
558
561
|
const openDialog = (params = {}) => {
|
562
|
+
params = { ...params , ...props.params}
|
559
563
|
// 重置状态
|
560
564
|
if (props.dialogType === 'add') {
|
561
565
|
// 添加模式:清空表单数据
|
package/src/index.js
CHANGED
@@ -18,7 +18,6 @@ import EbizDivider from "./components/EbizDivider.vue";
|
|
18
18
|
import EbizStatsCard from "./components/EbizStatsCard.vue";
|
19
19
|
import EbizOkrTree from "./components/EbizOkrTree.vue";
|
20
20
|
import EbizRemoteSelect from "./components/EbizRemoteSelect.vue";
|
21
|
-
import EbizMindmap from "./components/EbizMindmap/index.vue";
|
22
21
|
import EbizRouteBreadcrumb from "./components/EbizRouteBreadcrumb.vue";
|
23
22
|
import EbizFileUpload from "./components/EbizFileUpload.vue";
|
24
23
|
import EbizTabHeader from "./components/EbizTabHeader.vue";
|
@@ -63,6 +62,7 @@ import EbizAutoForm from './components/EbizAutoForm.vue';
|
|
63
62
|
import EbizDepartmentSelector from './components/EbizDepartmentSelector.vue';
|
64
63
|
import EbizTdesignButtonDialog from './components/EbizTdesignButtonDialog.vue';
|
65
64
|
import { MessagePlugin as EbizMessage } from 'tdesign-vue-next';
|
65
|
+
import EbizApproval from './components/EbizApproval.vue';
|
66
66
|
|
67
67
|
// import EbizDescriptions from './components/EbizDescriptions.vue';
|
68
68
|
// import EbizDescriptionsItem from './components/EbizDescriptionsItem.vue'
|
@@ -116,8 +116,6 @@ export {
|
|
116
116
|
EbizTabHeader,
|
117
117
|
// 页面头部组件
|
118
118
|
EbizPageHeader,
|
119
|
-
// 思维导图
|
120
|
-
EbizMindmap,
|
121
119
|
// 文件上传组件
|
122
120
|
EbizFileUpload,
|
123
121
|
// 日历组件
|
@@ -211,5 +209,7 @@ export {
|
|
211
209
|
EbizSData,
|
212
210
|
EbizSForm,
|
213
211
|
EbizSFormItem,
|
214
|
-
EbizSDialog
|
212
|
+
EbizSDialog,
|
213
|
+
// 新增 EbizApproval 组件
|
214
|
+
EbizApproval
|
215
215
|
};
|
package/src/router/index.js
CHANGED
@@ -4,6 +4,7 @@ import ButtonView from '../views/Button.vue'
|
|
4
4
|
import TableView from '../views/TableView.vue'
|
5
5
|
import TdesignDescriptions from '../views/TdesignDescriptions.vue'
|
6
6
|
import EbizSForm from '../views/EbizSForm/index.vue'
|
7
|
+
import path from 'path'
|
7
8
|
|
8
9
|
const routes = [
|
9
10
|
{
|
@@ -346,6 +347,12 @@ const routes = [
|
|
346
347
|
name: 'EbizSDialog',
|
347
348
|
component: () => import('../views/EbizSDialogDemo.vue'),
|
348
349
|
meta: { title: 'Ebiz高级弹窗组件示例' }
|
350
|
+
},
|
351
|
+
{
|
352
|
+
path:"/approval",
|
353
|
+
name:"EbizApproval",
|
354
|
+
component:()=>import('../views/EbizApprovalDemo.vue'),
|
355
|
+
meta:{title:"Ebiz审批组件示例"}
|
349
356
|
}
|
350
357
|
]
|
351
358
|
|
@@ -0,0 +1,77 @@
|
|
1
|
+
<template>
|
2
|
+
<div class="approval-demo">
|
3
|
+
<h2>审批组件示例</h2>
|
4
|
+
|
5
|
+
<div class="demo-section">
|
6
|
+
<h3>基础用法</h3>
|
7
|
+
<ebiz-approval
|
8
|
+
v-model:approverList="approverList"
|
9
|
+
v-model:ccList="ccList"
|
10
|
+
key="approval-1"
|
11
|
+
:required="true"
|
12
|
+
@change="handleChange"
|
13
|
+
/>
|
14
|
+
</div>
|
15
|
+
|
16
|
+
<div class="demo-section">
|
17
|
+
<h3>不显示抄送人</h3>
|
18
|
+
<ebiz-approval
|
19
|
+
v-model:approverList="approverList2"
|
20
|
+
v-model:ccList="ccList2"
|
21
|
+
key="approval-2"
|
22
|
+
:id="2"
|
23
|
+
:required="true"
|
24
|
+
:showCC="false"
|
25
|
+
@change="handleChange"
|
26
|
+
/>
|
27
|
+
</div>
|
28
|
+
|
29
|
+
<div class="demo-section">
|
30
|
+
<h3>非必填</h3>
|
31
|
+
<ebiz-approval
|
32
|
+
v-model:approverList="approverList3"
|
33
|
+
v-model:ccList="ccList3"
|
34
|
+
key="approval-3"
|
35
|
+
:id="3"
|
36
|
+
:required="false"
|
37
|
+
@change="handleChange"
|
38
|
+
/>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</template>
|
42
|
+
|
43
|
+
<script setup lang="ts">
|
44
|
+
import { ref } from 'vue'
|
45
|
+
import { EbizApproval } from '../index'
|
46
|
+
|
47
|
+
const approverList = ref([])
|
48
|
+
const ccList = ref([])
|
49
|
+
|
50
|
+
const approverList2 = ref(['1'])
|
51
|
+
const ccList2 = ref([])
|
52
|
+
|
53
|
+
const approverList3 = ref(['1', '2', '3'])
|
54
|
+
const ccList3 = ref(['4', '5'])
|
55
|
+
|
56
|
+
const handleChange = (data: any) => {
|
57
|
+
console.log('变更数据:', data)
|
58
|
+
}
|
59
|
+
</script>
|
60
|
+
|
61
|
+
<style lang="less" scoped>
|
62
|
+
.approval-demo {
|
63
|
+
padding: 20px;
|
64
|
+
|
65
|
+
h2 {
|
66
|
+
margin-bottom: 24px;
|
67
|
+
}
|
68
|
+
|
69
|
+
.demo-section {
|
70
|
+
margin-bottom: 32px;
|
71
|
+
|
72
|
+
h3 {
|
73
|
+
margin-bottom: 16px;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
</style>
|
@@ -45,7 +45,6 @@ export default {
|
|
45
45
|
import { ref } from 'vue';
|
46
46
|
import { EbizSData, EbizSFormItem } from '../index';
|
47
47
|
import EbizTdesignButtonDialog from '../components/EbizTdesignButtonDialog.vue';
|
48
|
-
import { TinyGrid } from '@opentiny/vue';
|
49
48
|
|
50
49
|
// 表单数据
|
51
50
|
const formData1 = ref({
|
package/src/views/Home.vue
CHANGED
@@ -85,7 +85,8 @@ export default {
|
|
85
85
|
{ path: '/ebiz-s-form', title: 'PC端表单组件示例' },
|
86
86
|
{ path: '/ebiz-map', title: '地图经纬度选择器组件示例' },
|
87
87
|
{ path: '/ebiz-s-data', title: 'Ebiz数据组件示例' },
|
88
|
-
{ path: '/ebiz-s-dialog', title: 'Ebiz高级弹窗组件示例' }
|
88
|
+
{ path: '/ebiz-s-dialog', title: 'Ebiz高级弹窗组件示例' },
|
89
|
+
{ path: '/approval', title: 'Ebiz审批组件示例' }
|
89
90
|
]
|
90
91
|
|
91
92
|
return {
|
@@ -1,8 +0,0 @@
|
|
1
|
-
# 思维导图组件,组织关系图也是用的这个
|
2
|
-
|
3
|
-
这是一个组织关系图组件,使用的@opentiny/huicharts下的MindmapChart实现,使用文档 @https://opentiny.design/tiny-charts/MindmapLayout
|
4
|
-
|
5
|
-
官网的demo示例链接:https://opentiny.design/tiny-charts-playground/playground.html?name=MindmapChart-1&theme=hdesign-light
|
6
|
-
|
7
|
-
我们的需求里面出了有部门之外,还需要有企业和岗位,企业下面有部门,部门下面有岗位和子部门,岗位下面没有子级
|
8
|
-
|