hfn-components 0.6.4 → 0.6.6
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/es/component.mjs +3 -3
- package/es/components/chart/index.d.ts +10 -34
- package/es/components/chart/src/HtChart.d.ts +4 -0
- package/es/components/chart/src/HtChart.mjs +6 -0
- package/es/components/chart/src/HtChart.vue.d.ts +10 -35
- package/es/components/chart/src/HtChart.vue.mjs +1 -1
- package/es/components/chart/src/HtChart.vue2.mjs +5 -1
- package/es/components/htTable/index.d.ts +122 -0
- package/es/components/htTable/index.mjs +7 -0
- package/es/components/htTable/src/columnDeal.vue.d.ts +41 -0
- package/es/components/{elTable → htTable}/src/columnDeal.vue.mjs +4 -7
- package/es/components/{elTable → htTable}/src/columnDeal.vue2.mjs +1 -1
- package/es/components/{elTable/src/elTable.d.ts → htTable/src/htTable.d.ts} +1 -5
- package/es/components/{elTable/src/elTable.mjs → htTable/src/htTable.mjs} +0 -4
- package/es/components/htTable/src/htTable.vue.d.ts +61 -0
- package/es/components/{elTable/src/elTable.vue.mjs → htTable/src/htTable.vue.mjs} +20 -20
- package/es/components/{elTable/src/elTable.vue2.mjs → htTable/src/htTable.vue2.mjs} +5 -2
- package/es/components/htTarget/index.d.ts +7 -1987
- package/es/components/htTarget/src/htTarget.vue.d.ts +5 -1985
- package/es/components/htTarget/src/htTarget.vue.mjs +1 -1
- package/es/components/htTarget/src/htTarget.vue2.mjs +3 -0
- package/es/components/index.d.ts +1 -1
- package/es/components/index.mjs +2 -2
- package/es/components/pieChart/index.d.ts +1 -27
- package/es/components/pieChart/src/HtPieChart.vue.d.ts +1 -27
- package/es/components/pieChart/src/HtPieChart.vue.mjs +1 -1
- package/es/components/pieChart/src/HtPieChart.vue2.mjs +3 -0
- package/es/hfn-components/component.d.ts +3 -0
- package/es/hfn-components/defaults.d.ts +4 -0
- package/es/hfn-components/index.d.ts +5 -0
- package/es/hfn-components/make-installer.d.ts +4 -0
- package/es/hfn-components/plugin.d.ts +2 -0
- package/es/index.mjs +2 -2
- package/es/utils/chart.d.ts +1 -1
- package/es/utils/chart.mjs +5 -3
- package/package.json +2 -6
- package/es/components/chart/src/chartConfig.d.ts +0 -7
- package/es/components/chart/src/chartConfig.mjs +0 -88
- package/es/components/elTable/index.d.ts +0 -828
- package/es/components/elTable/index.mjs +0 -7
- package/es/components/elTable/src/columnDeal.vue.d.ts +0 -65
- package/es/components/elTable/src/elTable.vue.d.ts +0 -827
- package/es/components/table/HtTable.d.ts +0 -142
- package/es/components/table/HtTable.mjs +0 -136
- package/es/components/table/HtTable.vue.d.ts +0 -1847
- package/es/components/table/HtTable.vue.mjs +0 -449
- package/es/components/table/HtTable.vue2.mjs +0 -124
- package/es/components/table/index.d.ts +0 -1845
- package/es/components/table/index.mjs +0 -7
- package/es/css/index.css +0 -59
package/es/component.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HtTable } from './components/htTable/index.mjs';
|
|
2
2
|
import { HtChart } from './components/chart/index.mjs';
|
|
3
3
|
import { HtPieChart } from './components/pieChart/index.mjs';
|
|
4
4
|
import { HtTarget } from './components/htTarget/index.mjs';
|
|
5
5
|
|
|
6
6
|
var Components = [
|
|
7
|
-
//
|
|
7
|
+
//
|
|
8
8
|
HtChart,
|
|
9
|
-
|
|
9
|
+
HtTable,
|
|
10
10
|
HtPieChart,
|
|
11
11
|
HtTarget
|
|
12
12
|
];
|
|
@@ -47,6 +47,10 @@ export declare const HtChart: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
47
47
|
readonly type: ObjectConstructor;
|
|
48
48
|
readonly default: () => void;
|
|
49
49
|
};
|
|
50
|
+
readonly xAxisObj: {
|
|
51
|
+
readonly type: ObjectConstructor;
|
|
52
|
+
readonly default: () => void;
|
|
53
|
+
};
|
|
50
54
|
readonly tooltipUnit: {
|
|
51
55
|
readonly type: StringConstructor;
|
|
52
56
|
readonly default: "";
|
|
@@ -71,40 +75,7 @@ export declare const HtChart: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
71
75
|
readonly type: import("vue").PropType<string[]>;
|
|
72
76
|
readonly default: readonly [];
|
|
73
77
|
};
|
|
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<{
|
|
78
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
108
79
|
readonly chartData: {
|
|
109
80
|
readonly type: import("vue").PropType<any[]>;
|
|
110
81
|
readonly default: () => never[];
|
|
@@ -153,6 +124,10 @@ export declare const HtChart: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
153
124
|
readonly type: ObjectConstructor;
|
|
154
125
|
readonly default: () => void;
|
|
155
126
|
};
|
|
127
|
+
readonly xAxisObj: {
|
|
128
|
+
readonly type: ObjectConstructor;
|
|
129
|
+
readonly default: () => void;
|
|
130
|
+
};
|
|
156
131
|
readonly tooltipUnit: {
|
|
157
132
|
readonly type: StringConstructor;
|
|
158
133
|
readonly default: "";
|
|
@@ -190,6 +165,7 @@ export declare const HtChart: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
190
165
|
readonly floatNumber: number;
|
|
191
166
|
readonly yAxisUnit: string;
|
|
192
167
|
readonly yAxisObj: Record<string, any>;
|
|
168
|
+
readonly xAxisObj: Record<string, any>;
|
|
193
169
|
readonly tooltipUnit: string;
|
|
194
170
|
readonly watchResize: boolean;
|
|
195
171
|
readonly showLegend: boolean;
|
|
@@ -49,6 +49,10 @@ export declare const chartProps: {
|
|
|
49
49
|
readonly type: ObjectConstructor;
|
|
50
50
|
readonly default: () => void;
|
|
51
51
|
};
|
|
52
|
+
readonly xAxisObj: {
|
|
53
|
+
readonly type: ObjectConstructor;
|
|
54
|
+
readonly default: () => void;
|
|
55
|
+
};
|
|
52
56
|
readonly tooltipUnit: {
|
|
53
57
|
readonly type: StringConstructor;
|
|
54
58
|
readonly default: "";
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Ref } from 'vue';
|
|
2
1
|
export interface Legend {
|
|
3
2
|
name: string;
|
|
4
3
|
lineType: string;
|
|
@@ -54,6 +53,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
53
|
readonly type: ObjectConstructor;
|
|
55
54
|
readonly default: () => void;
|
|
56
55
|
};
|
|
56
|
+
readonly xAxisObj: {
|
|
57
|
+
readonly type: ObjectConstructor;
|
|
58
|
+
readonly default: () => void;
|
|
59
|
+
};
|
|
57
60
|
readonly tooltipUnit: {
|
|
58
61
|
readonly type: StringConstructor;
|
|
59
62
|
readonly default: "";
|
|
@@ -78,40 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
78
81
|
readonly type: import("vue").PropType<string[]>;
|
|
79
82
|
readonly default: readonly [];
|
|
80
83
|
};
|
|
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<{
|
|
84
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
115
85
|
readonly chartData: {
|
|
116
86
|
readonly type: import("vue").PropType<any[]>;
|
|
117
87
|
readonly default: () => never[];
|
|
@@ -160,6 +130,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
160
130
|
readonly type: ObjectConstructor;
|
|
161
131
|
readonly default: () => void;
|
|
162
132
|
};
|
|
133
|
+
readonly xAxisObj: {
|
|
134
|
+
readonly type: ObjectConstructor;
|
|
135
|
+
readonly default: () => void;
|
|
136
|
+
};
|
|
163
137
|
readonly tooltipUnit: {
|
|
164
138
|
readonly type: StringConstructor;
|
|
165
139
|
readonly default: "";
|
|
@@ -197,6 +171,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
197
171
|
readonly floatNumber: number;
|
|
198
172
|
readonly yAxisUnit: string;
|
|
199
173
|
readonly yAxisObj: Record<string, any>;
|
|
174
|
+
readonly xAxisObj: Record<string, any>;
|
|
200
175
|
readonly tooltipUnit: string;
|
|
201
176
|
readonly watchResize: boolean;
|
|
202
177
|
readonly showLegend: boolean;
|
|
@@ -85,6 +85,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
85
85
|
$setup.noData ? (openBlock(), createElementBlock("div", _hoisted_5, "\u6682\u65E0\u6570\u636E")) : createCommentVNode("v-if", true)
|
|
86
86
|
]);
|
|
87
87
|
}
|
|
88
|
-
var chart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/
|
|
88
|
+
var chart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/chart/src/HtChart.vue"]]);
|
|
89
89
|
|
|
90
90
|
export { chart as default };
|
|
@@ -6,6 +6,9 @@ import { setEchartTitle, setEchartXAxis, setEchartYAxis, setEchartTooltip, legen
|
|
|
6
6
|
import * as echarts from 'echarts/core';
|
|
7
7
|
|
|
8
8
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
+
...{
|
|
10
|
+
name: "HtChart"
|
|
11
|
+
},
|
|
9
12
|
__name: "HtChart",
|
|
10
13
|
props: chartProps,
|
|
11
14
|
setup(__props, { expose: __expose }) {
|
|
@@ -36,6 +39,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
39
|
if (val && val.length > 0) {
|
|
37
40
|
echartOptions.color = props.lineColor;
|
|
38
41
|
if (myChart.value) {
|
|
42
|
+
lengedDeal();
|
|
39
43
|
echartInit();
|
|
40
44
|
}
|
|
41
45
|
}
|
|
@@ -47,7 +51,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
47
51
|
echartOptions.color = props.lineColor;
|
|
48
52
|
}
|
|
49
53
|
setEchartTitle(echartOptions, props);
|
|
50
|
-
setEchartXAxis(echartOptions, props.chartType, props.xAxisData);
|
|
54
|
+
setEchartXAxis(echartOptions, props.chartType, props.xAxisData, props);
|
|
51
55
|
setEchartYAxis(echartOptions, props);
|
|
52
56
|
setEchartTooltip(echartOptions, props);
|
|
53
57
|
lengedDeal();
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
3
|
+
readonly dataSource: {
|
|
4
|
+
readonly type: ArrayConstructor;
|
|
5
|
+
readonly default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
readonly tableColumn: {
|
|
8
|
+
readonly type: import("vue").PropType<import("./src/htTable").ElTableColumns[]>;
|
|
9
|
+
readonly default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
readonly loading: {
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly default: false;
|
|
14
|
+
};
|
|
15
|
+
readonly headerColor: {
|
|
16
|
+
readonly type: StringConstructor;
|
|
17
|
+
readonly default: "#f0f0f0";
|
|
18
|
+
};
|
|
19
|
+
readonly resizable: {
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly default: true;
|
|
22
|
+
};
|
|
23
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
readonly dataSource: {
|
|
25
|
+
readonly type: ArrayConstructor;
|
|
26
|
+
readonly default: () => never[];
|
|
27
|
+
};
|
|
28
|
+
readonly tableColumn: {
|
|
29
|
+
readonly type: import("vue").PropType<import("./src/htTable").ElTableColumns[]>;
|
|
30
|
+
readonly default: () => never[];
|
|
31
|
+
};
|
|
32
|
+
readonly loading: {
|
|
33
|
+
readonly type: BooleanConstructor;
|
|
34
|
+
readonly default: false;
|
|
35
|
+
};
|
|
36
|
+
readonly headerColor: {
|
|
37
|
+
readonly type: StringConstructor;
|
|
38
|
+
readonly default: "#f0f0f0";
|
|
39
|
+
};
|
|
40
|
+
readonly resizable: {
|
|
41
|
+
readonly type: BooleanConstructor;
|
|
42
|
+
readonly default: true;
|
|
43
|
+
};
|
|
44
|
+
}>>, {
|
|
45
|
+
readonly dataSource: unknown[];
|
|
46
|
+
readonly tableColumn: import("./src/htTable").ElTableColumns[];
|
|
47
|
+
readonly loading: boolean;
|
|
48
|
+
readonly headerColor: string;
|
|
49
|
+
readonly resizable: boolean;
|
|
50
|
+
}, true, {}, {}, {
|
|
51
|
+
P: {};
|
|
52
|
+
B: {};
|
|
53
|
+
D: {};
|
|
54
|
+
C: {};
|
|
55
|
+
M: {};
|
|
56
|
+
Defaults: {};
|
|
57
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
readonly dataSource: {
|
|
59
|
+
readonly type: ArrayConstructor;
|
|
60
|
+
readonly default: () => never[];
|
|
61
|
+
};
|
|
62
|
+
readonly tableColumn: {
|
|
63
|
+
readonly type: import("vue").PropType<import("./src/htTable").ElTableColumns[]>;
|
|
64
|
+
readonly default: () => never[];
|
|
65
|
+
};
|
|
66
|
+
readonly loading: {
|
|
67
|
+
readonly type: BooleanConstructor;
|
|
68
|
+
readonly default: false;
|
|
69
|
+
};
|
|
70
|
+
readonly headerColor: {
|
|
71
|
+
readonly type: StringConstructor;
|
|
72
|
+
readonly default: "#f0f0f0";
|
|
73
|
+
};
|
|
74
|
+
readonly resizable: {
|
|
75
|
+
readonly type: BooleanConstructor;
|
|
76
|
+
readonly default: true;
|
|
77
|
+
};
|
|
78
|
+
}>>, {}, {}, {}, {}, {
|
|
79
|
+
readonly dataSource: unknown[];
|
|
80
|
+
readonly tableColumn: import("./src/htTable").ElTableColumns[];
|
|
81
|
+
readonly loading: boolean;
|
|
82
|
+
readonly headerColor: string;
|
|
83
|
+
readonly resizable: boolean;
|
|
84
|
+
}>;
|
|
85
|
+
__isFragment?: never;
|
|
86
|
+
__isTeleport?: never;
|
|
87
|
+
__isSuspense?: never;
|
|
88
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
89
|
+
readonly dataSource: {
|
|
90
|
+
readonly type: ArrayConstructor;
|
|
91
|
+
readonly default: () => never[];
|
|
92
|
+
};
|
|
93
|
+
readonly tableColumn: {
|
|
94
|
+
readonly type: import("vue").PropType<import("./src/htTable").ElTableColumns[]>;
|
|
95
|
+
readonly default: () => never[];
|
|
96
|
+
};
|
|
97
|
+
readonly loading: {
|
|
98
|
+
readonly type: BooleanConstructor;
|
|
99
|
+
readonly default: false;
|
|
100
|
+
};
|
|
101
|
+
readonly headerColor: {
|
|
102
|
+
readonly type: StringConstructor;
|
|
103
|
+
readonly default: "#f0f0f0";
|
|
104
|
+
};
|
|
105
|
+
readonly resizable: {
|
|
106
|
+
readonly type: BooleanConstructor;
|
|
107
|
+
readonly default: true;
|
|
108
|
+
};
|
|
109
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
110
|
+
readonly dataSource: unknown[];
|
|
111
|
+
readonly tableColumn: import("./src/htTable").ElTableColumns[];
|
|
112
|
+
readonly loading: boolean;
|
|
113
|
+
readonly headerColor: string;
|
|
114
|
+
readonly resizable: boolean;
|
|
115
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
116
|
+
$slots: Partial<Record<string, (_: {
|
|
117
|
+
text: any;
|
|
118
|
+
row: any;
|
|
119
|
+
}) => any>>;
|
|
120
|
+
})> & Record<string, any>;
|
|
121
|
+
export default HtTable;
|
|
122
|
+
export * from './src/htTable';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly dealType: {
|
|
3
|
+
readonly type: import("vue").PropType<import("hfn-components/es/constants").dealKeyType>;
|
|
4
|
+
readonly default: "";
|
|
5
|
+
};
|
|
6
|
+
readonly text: {
|
|
7
|
+
readonly type: import("vue").PropType<string | number | undefined>;
|
|
8
|
+
readonly default: undefined;
|
|
9
|
+
};
|
|
10
|
+
readonly dealFunction: {
|
|
11
|
+
readonly type: FunctionConstructor;
|
|
12
|
+
readonly default: () => void;
|
|
13
|
+
};
|
|
14
|
+
readonly row: {
|
|
15
|
+
readonly type: ObjectConstructor;
|
|
16
|
+
readonly default: () => void;
|
|
17
|
+
};
|
|
18
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
readonly dealType: {
|
|
20
|
+
readonly type: import("vue").PropType<import("hfn-components/es/constants").dealKeyType>;
|
|
21
|
+
readonly default: "";
|
|
22
|
+
};
|
|
23
|
+
readonly text: {
|
|
24
|
+
readonly type: import("vue").PropType<string | number | undefined>;
|
|
25
|
+
readonly default: undefined;
|
|
26
|
+
};
|
|
27
|
+
readonly dealFunction: {
|
|
28
|
+
readonly type: FunctionConstructor;
|
|
29
|
+
readonly default: () => void;
|
|
30
|
+
};
|
|
31
|
+
readonly row: {
|
|
32
|
+
readonly type: ObjectConstructor;
|
|
33
|
+
readonly default: () => void;
|
|
34
|
+
};
|
|
35
|
+
}>>, {
|
|
36
|
+
readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "percentage4" | "absPercentage" | "thoundsandText2" | "thoundsandText4" | "notProcessed" | "other" | "customDeal" | "customSlot";
|
|
37
|
+
readonly text: string | number | undefined;
|
|
38
|
+
readonly dealFunction: Function;
|
|
39
|
+
readonly row: Record<string, any>;
|
|
40
|
+
}, {}>;
|
|
41
|
+
export default _default;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import _sfc_main from './columnDeal.vue2.mjs';
|
|
2
|
-
import { openBlock, createElementBlock, toDisplayString, createElementVNode, normalizeStyle
|
|
2
|
+
import { openBlock, createElementBlock, toDisplayString, createElementVNode, normalizeStyle } from 'vue';
|
|
3
3
|
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
5
|
const _hoisted_1 = { key: 0 };
|
|
6
6
|
const _hoisted_2 = { key: 1 };
|
|
7
7
|
const _hoisted_3 = ["innerHTML"];
|
|
8
8
|
const _hoisted_4 = { key: 3 };
|
|
9
|
-
const _hoisted_5 = { key: 4 };
|
|
10
9
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11
10
|
return _ctx.dealType === "notProcessed" || _ctx.dealType === "other" ? (openBlock(), createElementBlock(
|
|
12
11
|
"div",
|
|
@@ -27,16 +26,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27
26
|
])) : _ctx.dealType === "customDeal" ? (openBlock(), createElementBlock("div", {
|
|
28
27
|
key: 2,
|
|
29
28
|
innerHTML: _ctx.dealFunction(_ctx.row, _ctx.text)
|
|
30
|
-
}, null, 8, _hoisted_3)) :
|
|
31
|
-
renderSlot(_ctx.$slots, _ctx.slot)
|
|
32
|
-
])) : (openBlock(), createElementBlock(
|
|
29
|
+
}, null, 8, _hoisted_3)) : (openBlock(), createElementBlock(
|
|
33
30
|
"div",
|
|
34
|
-
|
|
31
|
+
_hoisted_4,
|
|
35
32
|
toDisplayString(_ctx.text !== void 0 ? $setup.CLOUMN_DEAL[_ctx.dealType](_ctx.text) : "-"),
|
|
36
33
|
1
|
|
37
34
|
/* TEXT */
|
|
38
35
|
));
|
|
39
36
|
}
|
|
40
|
-
var ColumnDeal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/
|
|
37
|
+
var ColumnDeal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/htTable/src/columnDeal.vue"]]);
|
|
41
38
|
|
|
42
39
|
export { ColumnDeal as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent } from 'vue';
|
|
2
2
|
import { CLOUMN_DEAL } from '../../../constants/table.mjs';
|
|
3
3
|
import '../../../constants/chartConfig.mjs';
|
|
4
|
-
import { columnDealProps } from './
|
|
4
|
+
import { columnDealProps } from './htTable.mjs';
|
|
5
5
|
|
|
6
6
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
7
7
|
__name: "columnDeal",
|
|
@@ -32,7 +32,7 @@ export declare const elTableProps: {
|
|
|
32
32
|
};
|
|
33
33
|
export declare const columnDealProps: {
|
|
34
34
|
readonly dealType: {
|
|
35
|
-
readonly type: PropType<
|
|
35
|
+
readonly type: PropType<dealKeyType>;
|
|
36
36
|
readonly default: "";
|
|
37
37
|
};
|
|
38
38
|
readonly text: {
|
|
@@ -47,10 +47,6 @@ export declare const columnDealProps: {
|
|
|
47
47
|
readonly type: ObjectConstructor;
|
|
48
48
|
readonly default: () => void;
|
|
49
49
|
};
|
|
50
|
-
readonly slot: {
|
|
51
|
-
readonly type: StringConstructor;
|
|
52
|
-
readonly default: "";
|
|
53
|
-
};
|
|
54
50
|
};
|
|
55
51
|
export type ElTableProps = ExtractPropTypes<typeof elTableProps>;
|
|
56
52
|
export type ColumnDealProps = ExtractPropTypes<typeof columnDealProps>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
declare function __VLS_template(): Partial<Record<string, (_: {
|
|
2
|
+
text: any;
|
|
3
|
+
row: any;
|
|
4
|
+
}) => any>>;
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<{
|
|
6
|
+
readonly dataSource: {
|
|
7
|
+
readonly type: ArrayConstructor;
|
|
8
|
+
readonly default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
readonly tableColumn: {
|
|
11
|
+
readonly type: import("vue").PropType<import("./htTable").ElTableColumns[]>;
|
|
12
|
+
readonly default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
readonly loading: {
|
|
15
|
+
readonly type: BooleanConstructor;
|
|
16
|
+
readonly default: false;
|
|
17
|
+
};
|
|
18
|
+
readonly headerColor: {
|
|
19
|
+
readonly type: StringConstructor;
|
|
20
|
+
readonly default: "#f0f0f0";
|
|
21
|
+
};
|
|
22
|
+
readonly resizable: {
|
|
23
|
+
readonly type: BooleanConstructor;
|
|
24
|
+
readonly default: true;
|
|
25
|
+
};
|
|
26
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
readonly dataSource: {
|
|
28
|
+
readonly type: ArrayConstructor;
|
|
29
|
+
readonly default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
readonly tableColumn: {
|
|
32
|
+
readonly type: import("vue").PropType<import("./htTable").ElTableColumns[]>;
|
|
33
|
+
readonly default: () => never[];
|
|
34
|
+
};
|
|
35
|
+
readonly loading: {
|
|
36
|
+
readonly type: BooleanConstructor;
|
|
37
|
+
readonly default: false;
|
|
38
|
+
};
|
|
39
|
+
readonly headerColor: {
|
|
40
|
+
readonly type: StringConstructor;
|
|
41
|
+
readonly default: "#f0f0f0";
|
|
42
|
+
};
|
|
43
|
+
readonly resizable: {
|
|
44
|
+
readonly type: BooleanConstructor;
|
|
45
|
+
readonly default: true;
|
|
46
|
+
};
|
|
47
|
+
}>>, {
|
|
48
|
+
readonly dataSource: unknown[];
|
|
49
|
+
readonly tableColumn: import("./htTable").ElTableColumns[];
|
|
50
|
+
readonly loading: boolean;
|
|
51
|
+
readonly headerColor: string;
|
|
52
|
+
readonly resizable: boolean;
|
|
53
|
+
}, {}>;
|
|
54
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
55
|
+
export default _default;
|
|
56
|
+
|
|
57
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
|
+
new (): {
|
|
59
|
+
$slots: S;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import _sfc_main from './
|
|
2
|
-
import { withDirectives, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, renderSlot } from 'vue';
|
|
1
|
+
import _sfc_main from './htTable.vue2.mjs';
|
|
2
|
+
import { withDirectives, openBlock, createBlock, withCtx, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createCommentVNode, renderSlot, createVNode } from 'vue';
|
|
3
3
|
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
5
|
const _hoisted_1 = {
|
|
@@ -67,24 +67,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
67
67
|
))
|
|
68
68
|
]),
|
|
69
69
|
default: withCtx((scope) => [
|
|
70
|
-
|
|
70
|
+
createCommentVNode(" \u81EA\u5B9A\u4E49\u63D2\u69FD\uFF1A\u76F4\u63A5\u5728 HtTable \u5904\u7406\uFF0C\u4E0D\u7ECF\u8FC7 ColumnDeal "),
|
|
71
|
+
item.dealType === "customSlot" ? renderSlot(_ctx.$slots, item.slot, {
|
|
71
72
|
key: 0,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
text: $setup.convertKey(scope.row, item.key)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}, 1032, ["dealType", "slot"])) : (openBlock(), createBlock($setup["ColumnDeal"], {
|
|
73
|
+
text: $setup.convertKey(scope.row, item.key),
|
|
74
|
+
row: scope.row
|
|
75
|
+
}) : item.dealType === "other" ? (openBlock(), createElementBlock(
|
|
76
|
+
Fragment,
|
|
77
|
+
{ key: 1 },
|
|
78
|
+
[
|
|
79
|
+
createCommentVNode(" \u5176\u4ED6\u7C7B\u578B\uFF1A\u901A\u8FC7 ColumnDeal \u5904\u7406 "),
|
|
80
|
+
createVNode($setup["ColumnDeal"], {
|
|
81
|
+
dealType: scope.row.dealType,
|
|
82
|
+
text: $setup.convertKey(scope.row, item.key)
|
|
83
|
+
}, null, 8, ["dealType", "text"])
|
|
84
|
+
],
|
|
85
|
+
2112
|
|
86
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
87
|
+
)) : (openBlock(), createBlock($setup["ColumnDeal"], {
|
|
88
88
|
key: 2,
|
|
89
89
|
dealType: item.dealType,
|
|
90
90
|
text: $setup.convertKey(scope.row, item.key),
|
|
@@ -106,6 +106,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
106
106
|
[$setup["vLoading"], $setup.props.loading]
|
|
107
107
|
]);
|
|
108
108
|
}
|
|
109
|
-
var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/
|
|
109
|
+
var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/htTable/src/htTable.vue"]]);
|
|
110
110
|
|
|
111
111
|
export { elTable as default };
|
|
@@ -5,10 +5,13 @@ import { TARGET_HEAD_KEY, TARGET_END_KEY } from '../../../constants/target.mjs';
|
|
|
5
5
|
import '../../../constants/chartConfig.mjs';
|
|
6
6
|
import cloneDeep from 'lodash.clonedeep';
|
|
7
7
|
import ColumnDeal from './columnDeal.vue.mjs';
|
|
8
|
-
import { elTableProps } from './
|
|
8
|
+
import { elTableProps } from './htTable.mjs';
|
|
9
9
|
|
|
10
10
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
-
|
|
11
|
+
...{
|
|
12
|
+
name: "HtTable"
|
|
13
|
+
},
|
|
14
|
+
__name: "htTable",
|
|
12
15
|
props: elTableProps,
|
|
13
16
|
setup(__props, { expose: __expose }) {
|
|
14
17
|
__expose();
|