hfn-components 0.6.1 → 0.6.2
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/index.css +1 -0
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/component.d.ts +3 -0
- package/es/component.mjs +14 -0
- package/es/components/chart/index.d.ts +201 -0
- package/es/components/chart/index.mjs +7 -0
- package/es/components/chart/src/HtChart.d.ts +77 -0
- package/es/components/chart/src/HtChart.mjs +93 -0
- package/es/components/chart/src/HtChart.vue.d.ts +207 -0
- package/es/components/chart/src/HtChart.vue.mjs +90 -0
- package/es/components/chart/src/HtChart.vue2.mjs +109 -0
- package/es/components/chart/src/chartConfig.d.ts +7 -0
- package/es/components/chart/src/chartConfig.mjs +88 -0
- package/es/components/chart/style/index.d.ts +1 -0
- package/es/components/chart/style/index.mjs +1 -0
- package/es/components/elTable/index.d.ts +821 -0
- package/es/components/elTable/index.mjs +7 -0
- package/es/components/elTable/src/columnDeal.vue.d.ts +65 -0
- package/es/components/elTable/src/columnDeal.vue.mjs +42 -0
- package/es/components/elTable/src/columnDeal.vue2.mjs +19 -0
- package/es/components/elTable/src/elTable.d.ts +56 -0
- package/es/components/elTable/src/elTable.mjs +49 -0
- package/es/components/elTable/src/elTable.vue.d.ts +820 -0
- package/es/components/elTable/src/elTable.vue.mjs +114 -0
- package/es/components/elTable/src/elTable.vue2.mjs +51 -0
- package/es/components/htTarget/index.d.ts +2028 -0
- package/es/components/htTarget/index.mjs +6 -0
- package/es/components/htTarget/src/htTarget.d.ts +25 -0
- package/es/components/htTarget/src/htTarget.mjs +20 -0
- package/es/components/htTarget/src/htTarget.vue.d.ts +2027 -0
- package/es/components/htTarget/src/htTarget.vue.mjs +240 -0
- package/es/components/htTarget/src/htTarget.vue2.mjs +158 -0
- package/es/components/htTarget/style/index.d.ts +1 -0
- package/es/components/htTarget/style/index.mjs +1 -0
- package/es/components/index.d.ts +4 -0
- package/es/components/index.mjs +7 -0
- package/es/components/pieChart/index.d.ts +104 -0
- package/es/components/pieChart/index.mjs +7 -0
- package/es/components/pieChart/src/HtPieChart.d.ts +36 -0
- package/es/components/pieChart/src/HtPieChart.mjs +42 -0
- package/es/components/pieChart/src/HtPieChart.vue.d.ts +109 -0
- package/es/components/pieChart/src/HtPieChart.vue.mjs +61 -0
- package/es/components/pieChart/src/HtPieChart.vue2.mjs +103 -0
- package/es/components/pieChart/style/index.d.ts +1 -0
- package/es/components/pieChart/style/index.mjs +1 -0
- package/es/components/table/HtTable.d.ts +142 -0
- package/es/components/table/HtTable.mjs +136 -0
- package/es/components/table/HtTable.vue.d.ts +1847 -0
- package/es/components/table/HtTable.vue.mjs +449 -0
- package/es/components/table/HtTable.vue2.mjs +124 -0
- package/es/components/table/index.d.ts +1845 -0
- package/es/components/table/index.mjs +7 -0
- package/es/constants/chartConfig.d.ts +8 -0
- package/es/constants/chartConfig.mjs +148 -0
- package/es/constants/index.d.ts +4 -0
- package/es/constants/index.mjs +4 -0
- package/es/constants/key.d.ts +1 -0
- package/es/constants/key.mjs +3 -0
- package/es/constants/table.d.ts +125 -0
- package/es/constants/table.mjs +156 -0
- package/es/constants/target.d.ts +15 -0
- package/es/constants/target.mjs +59 -0
- package/es/defaults.d.ts +4 -0
- package/es/defaults.mjs +7 -0
- package/es/index.d.ts +5 -0
- package/es/index.mjs +13 -0
- package/es/make-installer.d.ts +4 -0
- package/es/make-installer.mjs +15 -0
- package/es/plugin.d.ts +2 -0
- package/es/plugin.mjs +3 -0
- package/es/utils/chart.d.ts +8 -0
- package/es/utils/chart.mjs +197 -0
- package/es/utils/common.d.ts +3 -0
- package/es/utils/common.mjs +15 -0
- package/es/utils/index.d.ts +4 -0
- package/es/utils/index.mjs +4 -0
- package/es/utils/table.d.ts +2 -0
- package/es/utils/table.mjs +31 -0
- package/es/utils/tool.d.ts +2 -0
- package/es/utils/tool.mjs +42 -0
- package/global.d.ts +14 -0
- package/package.json +1 -1
- package/theme-chalk/ht-chart.css +1 -0
- package/theme-chalk/ht-table.css +1 -0
- package/theme-chalk/ht-target.css +1 -0
- package/theme-chalk/index.css +1 -0
- package/theme-chalk/src/chart.scss +58 -0
- package/theme-chalk/src/index.scss +3 -0
- package/theme-chalk/src/table.scss +45 -0
- package/theme-chalk/src/target.scss +39 -0
- package/component.ts +0 -15
- package/defaults.ts +0 -5
- package/index.ts +0 -6
- package/make-installer.ts +0 -17
- package/plugin.ts +0 -1
package/dist/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.echart-box{display:flex;flex-direction:column;height:100%;position:relative;width:100%}.echart-content{flex:auto}.echart-lenged{box-sizing:border-box;display:flex;flex-wrap:wrap;font-size:12px;height:auto;margin-top:6px;padding-right:22px;position:relative;width:100%;z-index:999}.bg-span{height:2px;width:14px}.bg-span,.bg-span-bar{display:inline-block;margin-right:6px}.bg-span-bar{border-radius:2px;height:10px;width:16px}.span-box{cursor:pointer;margin-left:5px;margin-right:6px}.noData,.span-box{align-items:center;display:flex}.noData{bottom:0;color:#ccc;font-size:16px;justify-content:center;position:absolute}._100,.noData{height:100%;width:100%}.dialog{padding:24px!important;width:860px!important}.factor-content{display:flex;flex-direction:column;flex-wrap:wrap;height:380px;width:100%}.factor_item{width:33.33%}.check_item,.factor_item{display:flex;margin-bottom:10px}.check_item{justify-content:space-between}.flex-alignCnter{align-items:center;cursor:pointer;display:flex}.target-head{display:grid;grid:auto/repeat(5,1fr)}.flow-col{border-left:1px solid #e8e8e8;height:520px;overflow-y:auto;padding-left:10px}.header-text-wrap{line-height:1.5;white-space:pre-line}.header-only-border .el-table,.header-only-border .el-table__inner-wrapper,.header-only-border.el-table--border{border:none!important}.header-only-border .el-table:after,.header-only-border .el-table:before,.header-only-border .el-table__inner-wrapper:after,.header-only-border .el-table__inner-wrapper:before{display:none!important}.header-only-border .el-table__cell{border:none!important}.header-only-border .el-table__header .el-table__cell{border:none!important;position:relative}.header-only-border .el-table__header .el-table__cell:after{background-color:#dcdfe6;content:"";height:40%;position:absolute;right:0;top:50%;transform:translateY(-50%);width:1px}.header-only-border .el-table__header .el-table__cell:last-child:after{display:none}
|
package/es/component.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HtElTable } from './components/elTable/index.mjs';
|
|
2
|
+
import { HtChart } from './components/chart/index.mjs';
|
|
3
|
+
import { HtPieChart } from './components/pieChart/index.mjs';
|
|
4
|
+
import { HtTarget } from './components/htTarget/index.mjs';
|
|
5
|
+
|
|
6
|
+
var Components = [
|
|
7
|
+
// HtTable,
|
|
8
|
+
HtChart,
|
|
9
|
+
HtElTable,
|
|
10
|
+
HtPieChart,
|
|
11
|
+
HtTarget
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
export { Components as default };
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
export declare const HtChart: import("hfn-components/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
readonly chartData: {
|
|
3
|
+
readonly type: import("vue").PropType<any[]>;
|
|
4
|
+
readonly default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
readonly chartId: {
|
|
7
|
+
readonly type: StringConstructor;
|
|
8
|
+
readonly default: "";
|
|
9
|
+
};
|
|
10
|
+
readonly chartType: {
|
|
11
|
+
readonly type: import("vue").PropType<import("hfn-components/es/utils").chartType>;
|
|
12
|
+
readonly default: "";
|
|
13
|
+
};
|
|
14
|
+
readonly titleText: {
|
|
15
|
+
readonly type: StringConstructor;
|
|
16
|
+
readonly default: "";
|
|
17
|
+
};
|
|
18
|
+
readonly titleText2: {
|
|
19
|
+
readonly type: StringConstructor;
|
|
20
|
+
readonly default: "";
|
|
21
|
+
};
|
|
22
|
+
readonly xAxisData: {
|
|
23
|
+
readonly type: import("vue").PropType<string[]>;
|
|
24
|
+
readonly default: readonly [];
|
|
25
|
+
};
|
|
26
|
+
readonly collation: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
readonly default: "des";
|
|
29
|
+
};
|
|
30
|
+
readonly isReturn: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly default: false;
|
|
33
|
+
};
|
|
34
|
+
readonly isPercent: {
|
|
35
|
+
readonly type: BooleanConstructor;
|
|
36
|
+
readonly default: false;
|
|
37
|
+
};
|
|
38
|
+
readonly floatNumber: {
|
|
39
|
+
readonly type: NumberConstructor;
|
|
40
|
+
readonly default: 4;
|
|
41
|
+
};
|
|
42
|
+
readonly yAxisUnit: {
|
|
43
|
+
readonly type: StringConstructor;
|
|
44
|
+
readonly default: "";
|
|
45
|
+
};
|
|
46
|
+
readonly yAxisObj: {
|
|
47
|
+
readonly type: ObjectConstructor;
|
|
48
|
+
readonly default: () => void;
|
|
49
|
+
};
|
|
50
|
+
readonly tooltipUnit: {
|
|
51
|
+
readonly type: StringConstructor;
|
|
52
|
+
readonly default: "";
|
|
53
|
+
};
|
|
54
|
+
readonly watchResize: {
|
|
55
|
+
readonly type: BooleanConstructor;
|
|
56
|
+
readonly default: false;
|
|
57
|
+
};
|
|
58
|
+
readonly showLegend: {
|
|
59
|
+
readonly type: BooleanConstructor;
|
|
60
|
+
readonly default: true;
|
|
61
|
+
};
|
|
62
|
+
readonly auxiliaryData: {
|
|
63
|
+
readonly type: ObjectConstructor;
|
|
64
|
+
readonly default: null;
|
|
65
|
+
};
|
|
66
|
+
readonly downLoadAutn: {
|
|
67
|
+
readonly type: BooleanConstructor;
|
|
68
|
+
readonly default: false;
|
|
69
|
+
};
|
|
70
|
+
readonly lineColor: {
|
|
71
|
+
readonly type: import("vue").PropType<string[]>;
|
|
72
|
+
readonly default: readonly [];
|
|
73
|
+
};
|
|
74
|
+
}, {
|
|
75
|
+
props: import("@vue/shared").LooseRequired<{
|
|
76
|
+
readonly chartData: any[];
|
|
77
|
+
readonly chartId: string;
|
|
78
|
+
readonly chartType: import("hfn-components/es/utils").chartType;
|
|
79
|
+
readonly titleText: string;
|
|
80
|
+
readonly titleText2: string;
|
|
81
|
+
readonly xAxisData: string[];
|
|
82
|
+
readonly collation: string;
|
|
83
|
+
readonly isReturn: boolean;
|
|
84
|
+
readonly isPercent: boolean;
|
|
85
|
+
readonly floatNumber: number;
|
|
86
|
+
readonly yAxisUnit: string;
|
|
87
|
+
readonly yAxisObj: Record<string, any>;
|
|
88
|
+
readonly tooltipUnit: string;
|
|
89
|
+
readonly watchResize: boolean;
|
|
90
|
+
readonly showLegend: boolean;
|
|
91
|
+
readonly auxiliaryData: Record<string, any>;
|
|
92
|
+
readonly downLoadAutn: boolean;
|
|
93
|
+
readonly lineColor: string[];
|
|
94
|
+
} & {}>;
|
|
95
|
+
myChart: import("vue").ShallowRef<any>;
|
|
96
|
+
isEmpty: import("vue").Ref<boolean>;
|
|
97
|
+
echartOptions: any;
|
|
98
|
+
drawGraph: () => void;
|
|
99
|
+
lengedDeal: () => void;
|
|
100
|
+
echartInit: () => void;
|
|
101
|
+
chartResize: () => void;
|
|
102
|
+
allLegend: import("vue").Ref<import("./src/HtChart.vue").Legend[]>;
|
|
103
|
+
noData: import("vue").Ref<boolean>;
|
|
104
|
+
legendStatus: (item: import("./src/HtChart.vue").Legend, index: number) => void;
|
|
105
|
+
legendEnter: (index: number) => void;
|
|
106
|
+
legendLeave: () => void;
|
|
107
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
108
|
+
readonly chartData: {
|
|
109
|
+
readonly type: import("vue").PropType<any[]>;
|
|
110
|
+
readonly default: () => never[];
|
|
111
|
+
};
|
|
112
|
+
readonly chartId: {
|
|
113
|
+
readonly type: StringConstructor;
|
|
114
|
+
readonly default: "";
|
|
115
|
+
};
|
|
116
|
+
readonly chartType: {
|
|
117
|
+
readonly type: import("vue").PropType<import("hfn-components/es/utils").chartType>;
|
|
118
|
+
readonly default: "";
|
|
119
|
+
};
|
|
120
|
+
readonly titleText: {
|
|
121
|
+
readonly type: StringConstructor;
|
|
122
|
+
readonly default: "";
|
|
123
|
+
};
|
|
124
|
+
readonly titleText2: {
|
|
125
|
+
readonly type: StringConstructor;
|
|
126
|
+
readonly default: "";
|
|
127
|
+
};
|
|
128
|
+
readonly xAxisData: {
|
|
129
|
+
readonly type: import("vue").PropType<string[]>;
|
|
130
|
+
readonly default: readonly [];
|
|
131
|
+
};
|
|
132
|
+
readonly collation: {
|
|
133
|
+
readonly type: StringConstructor;
|
|
134
|
+
readonly default: "des";
|
|
135
|
+
};
|
|
136
|
+
readonly isReturn: {
|
|
137
|
+
readonly type: BooleanConstructor;
|
|
138
|
+
readonly default: false;
|
|
139
|
+
};
|
|
140
|
+
readonly isPercent: {
|
|
141
|
+
readonly type: BooleanConstructor;
|
|
142
|
+
readonly default: false;
|
|
143
|
+
};
|
|
144
|
+
readonly floatNumber: {
|
|
145
|
+
readonly type: NumberConstructor;
|
|
146
|
+
readonly default: 4;
|
|
147
|
+
};
|
|
148
|
+
readonly yAxisUnit: {
|
|
149
|
+
readonly type: StringConstructor;
|
|
150
|
+
readonly default: "";
|
|
151
|
+
};
|
|
152
|
+
readonly yAxisObj: {
|
|
153
|
+
readonly type: ObjectConstructor;
|
|
154
|
+
readonly default: () => void;
|
|
155
|
+
};
|
|
156
|
+
readonly tooltipUnit: {
|
|
157
|
+
readonly type: StringConstructor;
|
|
158
|
+
readonly default: "";
|
|
159
|
+
};
|
|
160
|
+
readonly watchResize: {
|
|
161
|
+
readonly type: BooleanConstructor;
|
|
162
|
+
readonly default: false;
|
|
163
|
+
};
|
|
164
|
+
readonly showLegend: {
|
|
165
|
+
readonly type: BooleanConstructor;
|
|
166
|
+
readonly default: true;
|
|
167
|
+
};
|
|
168
|
+
readonly auxiliaryData: {
|
|
169
|
+
readonly type: ObjectConstructor;
|
|
170
|
+
readonly default: null;
|
|
171
|
+
};
|
|
172
|
+
readonly downLoadAutn: {
|
|
173
|
+
readonly type: BooleanConstructor;
|
|
174
|
+
readonly default: false;
|
|
175
|
+
};
|
|
176
|
+
readonly lineColor: {
|
|
177
|
+
readonly type: import("vue").PropType<string[]>;
|
|
178
|
+
readonly default: readonly [];
|
|
179
|
+
};
|
|
180
|
+
}>>, {
|
|
181
|
+
readonly chartData: any[];
|
|
182
|
+
readonly chartId: string;
|
|
183
|
+
readonly chartType: import("hfn-components/es/utils").chartType;
|
|
184
|
+
readonly titleText: string;
|
|
185
|
+
readonly titleText2: string;
|
|
186
|
+
readonly xAxisData: string[];
|
|
187
|
+
readonly collation: string;
|
|
188
|
+
readonly isReturn: boolean;
|
|
189
|
+
readonly isPercent: boolean;
|
|
190
|
+
readonly floatNumber: number;
|
|
191
|
+
readonly yAxisUnit: string;
|
|
192
|
+
readonly yAxisObj: Record<string, any>;
|
|
193
|
+
readonly tooltipUnit: string;
|
|
194
|
+
readonly watchResize: boolean;
|
|
195
|
+
readonly showLegend: boolean;
|
|
196
|
+
readonly auxiliaryData: Record<string, any>;
|
|
197
|
+
readonly downLoadAutn: boolean;
|
|
198
|
+
readonly lineColor: string[];
|
|
199
|
+
}, {}>> & Record<string, any>;
|
|
200
|
+
export default HtChart;
|
|
201
|
+
export * from './src/HtChart';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
import type { chartType } from 'hfn-components/es/utils';
|
|
3
|
+
export declare const chartProps: {
|
|
4
|
+
readonly chartData: {
|
|
5
|
+
readonly type: PropType<any[]>;
|
|
6
|
+
readonly default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
readonly chartId: {
|
|
9
|
+
readonly type: StringConstructor;
|
|
10
|
+
readonly default: "";
|
|
11
|
+
};
|
|
12
|
+
readonly chartType: {
|
|
13
|
+
readonly type: PropType<chartType>;
|
|
14
|
+
readonly default: "";
|
|
15
|
+
};
|
|
16
|
+
readonly titleText: {
|
|
17
|
+
readonly type: StringConstructor;
|
|
18
|
+
readonly default: "";
|
|
19
|
+
};
|
|
20
|
+
readonly titleText2: {
|
|
21
|
+
readonly type: StringConstructor;
|
|
22
|
+
readonly default: "";
|
|
23
|
+
};
|
|
24
|
+
readonly xAxisData: {
|
|
25
|
+
readonly type: PropType<string[]>;
|
|
26
|
+
readonly default: readonly [];
|
|
27
|
+
};
|
|
28
|
+
readonly collation: {
|
|
29
|
+
readonly type: StringConstructor;
|
|
30
|
+
readonly default: "des";
|
|
31
|
+
};
|
|
32
|
+
readonly isReturn: {
|
|
33
|
+
readonly type: BooleanConstructor;
|
|
34
|
+
readonly default: false;
|
|
35
|
+
};
|
|
36
|
+
readonly isPercent: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
readonly floatNumber: {
|
|
41
|
+
readonly type: NumberConstructor;
|
|
42
|
+
readonly default: 4;
|
|
43
|
+
};
|
|
44
|
+
readonly yAxisUnit: {
|
|
45
|
+
readonly type: StringConstructor;
|
|
46
|
+
readonly default: "";
|
|
47
|
+
};
|
|
48
|
+
readonly yAxisObj: {
|
|
49
|
+
readonly type: ObjectConstructor;
|
|
50
|
+
readonly default: () => void;
|
|
51
|
+
};
|
|
52
|
+
readonly tooltipUnit: {
|
|
53
|
+
readonly type: StringConstructor;
|
|
54
|
+
readonly default: "";
|
|
55
|
+
};
|
|
56
|
+
readonly watchResize: {
|
|
57
|
+
readonly type: BooleanConstructor;
|
|
58
|
+
readonly default: false;
|
|
59
|
+
};
|
|
60
|
+
readonly showLegend: {
|
|
61
|
+
readonly type: BooleanConstructor;
|
|
62
|
+
readonly default: true;
|
|
63
|
+
};
|
|
64
|
+
readonly auxiliaryData: {
|
|
65
|
+
readonly type: ObjectConstructor;
|
|
66
|
+
readonly default: null;
|
|
67
|
+
};
|
|
68
|
+
readonly downLoadAutn: {
|
|
69
|
+
readonly type: BooleanConstructor;
|
|
70
|
+
readonly default: false;
|
|
71
|
+
};
|
|
72
|
+
readonly lineColor: {
|
|
73
|
+
readonly type: PropType<string[]>;
|
|
74
|
+
readonly default: readonly [];
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
export type chartProp = ExtractPropTypes<typeof chartProps>;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
const chartProps = {
|
|
2
|
+
//图表数据
|
|
3
|
+
chartData: {
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
+
type: Array,
|
|
6
|
+
default: () => []
|
|
7
|
+
},
|
|
8
|
+
//图表id
|
|
9
|
+
chartId: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
13
|
+
//图表类型
|
|
14
|
+
chartType: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
//图表标题
|
|
19
|
+
titleText: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
//图表标题
|
|
24
|
+
titleText2: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
//是类目轴时x轴数据
|
|
29
|
+
xAxisData: {
|
|
30
|
+
type: Array,
|
|
31
|
+
default: []
|
|
32
|
+
},
|
|
33
|
+
collation: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: "des"
|
|
36
|
+
},
|
|
37
|
+
//是否为收益率
|
|
38
|
+
isReturn: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: false
|
|
41
|
+
},
|
|
42
|
+
//是否有百分比
|
|
43
|
+
isPercent: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: false
|
|
46
|
+
},
|
|
47
|
+
//保留几位小数
|
|
48
|
+
floatNumber: {
|
|
49
|
+
type: Number,
|
|
50
|
+
default: 4
|
|
51
|
+
},
|
|
52
|
+
//Y轴单位
|
|
53
|
+
yAxisUnit: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: ""
|
|
56
|
+
},
|
|
57
|
+
// Y轴对象
|
|
58
|
+
yAxisObj: {
|
|
59
|
+
type: Object,
|
|
60
|
+
default: () => {
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
//tooltip单位
|
|
64
|
+
tooltipUnit: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: ""
|
|
67
|
+
},
|
|
68
|
+
//图表重新加载
|
|
69
|
+
watchResize: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
default: false
|
|
72
|
+
},
|
|
73
|
+
showLegend: {
|
|
74
|
+
type: Boolean,
|
|
75
|
+
default: true
|
|
76
|
+
},
|
|
77
|
+
//堆叠辅助数据
|
|
78
|
+
auxiliaryData: {
|
|
79
|
+
type: Object,
|
|
80
|
+
default: null
|
|
81
|
+
},
|
|
82
|
+
//数据下载
|
|
83
|
+
downLoadAutn: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: false
|
|
86
|
+
},
|
|
87
|
+
lineColor: {
|
|
88
|
+
type: Array,
|
|
89
|
+
default: []
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export { chartProps };
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export interface Legend {
|
|
3
|
+
name: string;
|
|
4
|
+
lineType: string;
|
|
5
|
+
isShow: boolean;
|
|
6
|
+
color: string;
|
|
7
|
+
}
|
|
8
|
+
declare const _default: import("vue").DefineComponent<{
|
|
9
|
+
readonly chartData: {
|
|
10
|
+
readonly type: import("vue").PropType<any[]>;
|
|
11
|
+
readonly default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
readonly chartId: {
|
|
14
|
+
readonly type: StringConstructor;
|
|
15
|
+
readonly default: "";
|
|
16
|
+
};
|
|
17
|
+
readonly chartType: {
|
|
18
|
+
readonly type: import("vue").PropType<import("hfn-components/es/utils").chartType>;
|
|
19
|
+
readonly default: "";
|
|
20
|
+
};
|
|
21
|
+
readonly titleText: {
|
|
22
|
+
readonly type: StringConstructor;
|
|
23
|
+
readonly default: "";
|
|
24
|
+
};
|
|
25
|
+
readonly titleText2: {
|
|
26
|
+
readonly type: StringConstructor;
|
|
27
|
+
readonly default: "";
|
|
28
|
+
};
|
|
29
|
+
readonly xAxisData: {
|
|
30
|
+
readonly type: import("vue").PropType<string[]>;
|
|
31
|
+
readonly default: readonly [];
|
|
32
|
+
};
|
|
33
|
+
readonly collation: {
|
|
34
|
+
readonly type: StringConstructor;
|
|
35
|
+
readonly default: "des";
|
|
36
|
+
};
|
|
37
|
+
readonly isReturn: {
|
|
38
|
+
readonly type: BooleanConstructor;
|
|
39
|
+
readonly default: false;
|
|
40
|
+
};
|
|
41
|
+
readonly isPercent: {
|
|
42
|
+
readonly type: BooleanConstructor;
|
|
43
|
+
readonly default: false;
|
|
44
|
+
};
|
|
45
|
+
readonly floatNumber: {
|
|
46
|
+
readonly type: NumberConstructor;
|
|
47
|
+
readonly default: 4;
|
|
48
|
+
};
|
|
49
|
+
readonly yAxisUnit: {
|
|
50
|
+
readonly type: StringConstructor;
|
|
51
|
+
readonly default: "";
|
|
52
|
+
};
|
|
53
|
+
readonly yAxisObj: {
|
|
54
|
+
readonly type: ObjectConstructor;
|
|
55
|
+
readonly default: () => void;
|
|
56
|
+
};
|
|
57
|
+
readonly tooltipUnit: {
|
|
58
|
+
readonly type: StringConstructor;
|
|
59
|
+
readonly default: "";
|
|
60
|
+
};
|
|
61
|
+
readonly watchResize: {
|
|
62
|
+
readonly type: BooleanConstructor;
|
|
63
|
+
readonly default: false;
|
|
64
|
+
};
|
|
65
|
+
readonly showLegend: {
|
|
66
|
+
readonly type: BooleanConstructor;
|
|
67
|
+
readonly default: true;
|
|
68
|
+
};
|
|
69
|
+
readonly auxiliaryData: {
|
|
70
|
+
readonly type: ObjectConstructor;
|
|
71
|
+
readonly default: null;
|
|
72
|
+
};
|
|
73
|
+
readonly downLoadAutn: {
|
|
74
|
+
readonly type: BooleanConstructor;
|
|
75
|
+
readonly default: false;
|
|
76
|
+
};
|
|
77
|
+
readonly lineColor: {
|
|
78
|
+
readonly type: import("vue").PropType<string[]>;
|
|
79
|
+
readonly default: readonly [];
|
|
80
|
+
};
|
|
81
|
+
}, {
|
|
82
|
+
props: import("@vue/shared").LooseRequired<{
|
|
83
|
+
readonly chartData: any[];
|
|
84
|
+
readonly chartId: string;
|
|
85
|
+
readonly chartType: import("hfn-components/es/utils").chartType;
|
|
86
|
+
readonly titleText: string;
|
|
87
|
+
readonly titleText2: string;
|
|
88
|
+
readonly xAxisData: string[];
|
|
89
|
+
readonly collation: string;
|
|
90
|
+
readonly isReturn: boolean;
|
|
91
|
+
readonly isPercent: boolean;
|
|
92
|
+
readonly floatNumber: number;
|
|
93
|
+
readonly yAxisUnit: string;
|
|
94
|
+
readonly yAxisObj: Record<string, any>;
|
|
95
|
+
readonly tooltipUnit: string;
|
|
96
|
+
readonly watchResize: boolean;
|
|
97
|
+
readonly showLegend: boolean;
|
|
98
|
+
readonly auxiliaryData: Record<string, any>;
|
|
99
|
+
readonly downLoadAutn: boolean;
|
|
100
|
+
readonly lineColor: string[];
|
|
101
|
+
} & {}>;
|
|
102
|
+
myChart: import("vue").ShallowRef<any>;
|
|
103
|
+
isEmpty: Ref<boolean>;
|
|
104
|
+
echartOptions: any;
|
|
105
|
+
drawGraph: () => void;
|
|
106
|
+
lengedDeal: () => void;
|
|
107
|
+
echartInit: () => void;
|
|
108
|
+
chartResize: () => void;
|
|
109
|
+
allLegend: Ref<Legend[]>;
|
|
110
|
+
noData: Ref<boolean>;
|
|
111
|
+
legendStatus: (item: Legend, index: number) => void;
|
|
112
|
+
legendEnter: (index: number) => void;
|
|
113
|
+
legendLeave: () => void;
|
|
114
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
115
|
+
readonly chartData: {
|
|
116
|
+
readonly type: import("vue").PropType<any[]>;
|
|
117
|
+
readonly default: () => never[];
|
|
118
|
+
};
|
|
119
|
+
readonly chartId: {
|
|
120
|
+
readonly type: StringConstructor;
|
|
121
|
+
readonly default: "";
|
|
122
|
+
};
|
|
123
|
+
readonly chartType: {
|
|
124
|
+
readonly type: import("vue").PropType<import("hfn-components/es/utils").chartType>;
|
|
125
|
+
readonly default: "";
|
|
126
|
+
};
|
|
127
|
+
readonly titleText: {
|
|
128
|
+
readonly type: StringConstructor;
|
|
129
|
+
readonly default: "";
|
|
130
|
+
};
|
|
131
|
+
readonly titleText2: {
|
|
132
|
+
readonly type: StringConstructor;
|
|
133
|
+
readonly default: "";
|
|
134
|
+
};
|
|
135
|
+
readonly xAxisData: {
|
|
136
|
+
readonly type: import("vue").PropType<string[]>;
|
|
137
|
+
readonly default: readonly [];
|
|
138
|
+
};
|
|
139
|
+
readonly collation: {
|
|
140
|
+
readonly type: StringConstructor;
|
|
141
|
+
readonly default: "des";
|
|
142
|
+
};
|
|
143
|
+
readonly isReturn: {
|
|
144
|
+
readonly type: BooleanConstructor;
|
|
145
|
+
readonly default: false;
|
|
146
|
+
};
|
|
147
|
+
readonly isPercent: {
|
|
148
|
+
readonly type: BooleanConstructor;
|
|
149
|
+
readonly default: false;
|
|
150
|
+
};
|
|
151
|
+
readonly floatNumber: {
|
|
152
|
+
readonly type: NumberConstructor;
|
|
153
|
+
readonly default: 4;
|
|
154
|
+
};
|
|
155
|
+
readonly yAxisUnit: {
|
|
156
|
+
readonly type: StringConstructor;
|
|
157
|
+
readonly default: "";
|
|
158
|
+
};
|
|
159
|
+
readonly yAxisObj: {
|
|
160
|
+
readonly type: ObjectConstructor;
|
|
161
|
+
readonly default: () => void;
|
|
162
|
+
};
|
|
163
|
+
readonly tooltipUnit: {
|
|
164
|
+
readonly type: StringConstructor;
|
|
165
|
+
readonly default: "";
|
|
166
|
+
};
|
|
167
|
+
readonly watchResize: {
|
|
168
|
+
readonly type: BooleanConstructor;
|
|
169
|
+
readonly default: false;
|
|
170
|
+
};
|
|
171
|
+
readonly showLegend: {
|
|
172
|
+
readonly type: BooleanConstructor;
|
|
173
|
+
readonly default: true;
|
|
174
|
+
};
|
|
175
|
+
readonly auxiliaryData: {
|
|
176
|
+
readonly type: ObjectConstructor;
|
|
177
|
+
readonly default: null;
|
|
178
|
+
};
|
|
179
|
+
readonly downLoadAutn: {
|
|
180
|
+
readonly type: BooleanConstructor;
|
|
181
|
+
readonly default: false;
|
|
182
|
+
};
|
|
183
|
+
readonly lineColor: {
|
|
184
|
+
readonly type: import("vue").PropType<string[]>;
|
|
185
|
+
readonly default: readonly [];
|
|
186
|
+
};
|
|
187
|
+
}>>, {
|
|
188
|
+
readonly chartData: any[];
|
|
189
|
+
readonly chartId: string;
|
|
190
|
+
readonly chartType: import("hfn-components/es/utils").chartType;
|
|
191
|
+
readonly titleText: string;
|
|
192
|
+
readonly titleText2: string;
|
|
193
|
+
readonly xAxisData: string[];
|
|
194
|
+
readonly collation: string;
|
|
195
|
+
readonly isReturn: boolean;
|
|
196
|
+
readonly isPercent: boolean;
|
|
197
|
+
readonly floatNumber: number;
|
|
198
|
+
readonly yAxisUnit: string;
|
|
199
|
+
readonly yAxisObj: Record<string, any>;
|
|
200
|
+
readonly tooltipUnit: string;
|
|
201
|
+
readonly watchResize: boolean;
|
|
202
|
+
readonly showLegend: boolean;
|
|
203
|
+
readonly auxiliaryData: Record<string, any>;
|
|
204
|
+
readonly downLoadAutn: boolean;
|
|
205
|
+
readonly lineColor: string[];
|
|
206
|
+
}, {}>;
|
|
207
|
+
export default _default;
|