hfn-components 0.2.2 → 0.2.4
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/components/chart/src/HtChart.vue.mjs +1 -1
- package/es/components/chart/src/HtChart.vue2.mjs +3 -5
- package/es/components/elTable/index.d.ts +3 -3
- package/es/components/elTable/src/columnDeal.vue.d.ts +1 -1
- package/es/components/elTable/src/columnDeal.vue.mjs +1 -1
- package/es/components/elTable/src/elTable.vue.d.ts +3 -3
- package/es/components/elTable/src/elTable.vue.mjs +1 -1
- package/es/components/table/HtTable.vue.d.ts +2 -2
- package/es/components/table/HtTable.vue.mjs +1 -1
- package/es/components/table/index.d.ts +2 -2
- package/es/utils/chart.mjs +1 -10
- package/package.json +1 -1
|
@@ -86,6 +86,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
86
86
|
$setup.noData ? (openBlock(), createElementBlock("div", _hoisted_5, "\u6682\u65E0\u6570\u636E")) : createCommentVNode("v-if", true)
|
|
87
87
|
]);
|
|
88
88
|
}
|
|
89
|
-
var chart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/
|
|
89
|
+
var chart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/chart/src/HtChart.vue"]]);
|
|
90
90
|
|
|
91
91
|
export { chart as default };
|
|
@@ -34,11 +34,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
() => props.lineColor,
|
|
35
35
|
() => {
|
|
36
36
|
echartOptions.color = props.lineColor;
|
|
37
|
-
|
|
38
|
-
echartInit();
|
|
39
|
-
}
|
|
37
|
+
echartInit();
|
|
40
38
|
},
|
|
41
|
-
{ deep: true
|
|
39
|
+
{ deep: true }
|
|
42
40
|
);
|
|
43
41
|
const drawGraph = () => {
|
|
44
42
|
echartOptions.color = props.lineColor;
|
|
@@ -64,7 +62,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
62
|
setTimeout(() => {
|
|
65
63
|
if (!myChart.value) {
|
|
66
64
|
const ele = document.getElementById(props.chartId);
|
|
67
|
-
myChart.value = echarts.init(ele, null, { devicePixelRatio: 2
|
|
65
|
+
myChart.value = echarts.init(ele, null, { devicePixelRatio: 2 });
|
|
68
66
|
}
|
|
69
67
|
myChart.value.setOption(echartOptions, true);
|
|
70
68
|
}, 200);
|
|
@@ -17,9 +17,9 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
|
|
|
17
17
|
};
|
|
18
18
|
}, {
|
|
19
19
|
props: import("@vue/shared").LooseRequired<{
|
|
20
|
-
readonly loading: boolean;
|
|
21
20
|
readonly dataSource: unknown[];
|
|
22
21
|
readonly tableColumn: import("./src/elTable").ElTableColumns[];
|
|
22
|
+
readonly loading: boolean;
|
|
23
23
|
readonly headerColor: string;
|
|
24
24
|
} & {}>;
|
|
25
25
|
readonly ElTable: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
@@ -682,8 +682,8 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
|
|
|
682
682
|
readonly default: undefined;
|
|
683
683
|
};
|
|
684
684
|
}>>, {
|
|
685
|
-
readonly text: string | number | undefined;
|
|
686
685
|
readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "notProcessed";
|
|
686
|
+
readonly text: string | number | undefined;
|
|
687
687
|
}, {}>;
|
|
688
688
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
689
689
|
readonly dataSource: {
|
|
@@ -703,9 +703,9 @@ export declare const HtElTable: import("hfn-components/es/utils").SFCWithInstall
|
|
|
703
703
|
readonly default: "#f0f0f0";
|
|
704
704
|
};
|
|
705
705
|
}>>, {
|
|
706
|
-
readonly loading: boolean;
|
|
707
706
|
readonly dataSource: unknown[];
|
|
708
707
|
readonly tableColumn: import("./src/elTable").ElTableColumns[];
|
|
708
|
+
readonly loading: boolean;
|
|
709
709
|
readonly headerColor: string;
|
|
710
710
|
}, {}>> & Record<string, any>;
|
|
711
711
|
export default HtElTable;
|
|
@@ -29,7 +29,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
29
29
|
readonly default: undefined;
|
|
30
30
|
};
|
|
31
31
|
}>>, {
|
|
32
|
-
readonly text: string | number | undefined;
|
|
33
32
|
readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "notProcessed";
|
|
33
|
+
readonly text: string | number | undefined;
|
|
34
34
|
}, {}>;
|
|
35
35
|
export default _default;
|
|
@@ -30,6 +30,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30
30
|
/* TEXT */
|
|
31
31
|
));
|
|
32
32
|
}
|
|
33
|
-
var ColumnDeal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/
|
|
33
|
+
var ColumnDeal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/elTable/src/columnDeal.vue"]]);
|
|
34
34
|
|
|
35
35
|
export { ColumnDeal as default };
|
|
@@ -17,9 +17,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
};
|
|
18
18
|
}, {
|
|
19
19
|
props: import("@vue/shared").LooseRequired<{
|
|
20
|
-
readonly loading: boolean;
|
|
21
20
|
readonly dataSource: unknown[];
|
|
22
21
|
readonly tableColumn: import("./elTable").ElTableColumns[];
|
|
22
|
+
readonly loading: boolean;
|
|
23
23
|
readonly headerColor: string;
|
|
24
24
|
} & {}>;
|
|
25
25
|
readonly ElTable: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
@@ -682,8 +682,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
682
682
|
readonly default: undefined;
|
|
683
683
|
};
|
|
684
684
|
}>>, {
|
|
685
|
-
readonly text: string | number | undefined;
|
|
686
685
|
readonly dealType: "basicText4" | "colorText" | "colorPercentage" | "percentage" | "notProcessed";
|
|
686
|
+
readonly text: string | number | undefined;
|
|
687
687
|
}, {}>;
|
|
688
688
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
689
689
|
readonly dataSource: {
|
|
@@ -703,9 +703,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
703
703
|
readonly default: "#f0f0f0";
|
|
704
704
|
};
|
|
705
705
|
}>>, {
|
|
706
|
-
readonly loading: boolean;
|
|
707
706
|
readonly dataSource: unknown[];
|
|
708
707
|
readonly tableColumn: import("./elTable").ElTableColumns[];
|
|
708
|
+
readonly loading: boolean;
|
|
709
709
|
readonly headerColor: string;
|
|
710
710
|
}, {}>;
|
|
711
711
|
export default _default;
|
|
@@ -46,6 +46,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46
46
|
[$setup["vLoading"], $setup.props.loading]
|
|
47
47
|
]);
|
|
48
48
|
}
|
|
49
|
-
var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/
|
|
49
|
+
var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/elTable/src/elTable.vue"]]);
|
|
50
50
|
|
|
51
51
|
export { elTable as default };
|
|
@@ -108,11 +108,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
108
108
|
};
|
|
109
109
|
}, {
|
|
110
110
|
props: import("@vue/shared").LooseRequired<{
|
|
111
|
+
readonly dataSource: unknown[];
|
|
111
112
|
readonly loading: boolean;
|
|
112
113
|
readonly pageSize: number;
|
|
113
114
|
readonly total: number;
|
|
114
115
|
readonly columns: TableColumns[];
|
|
115
|
-
readonly dataSource: unknown[];
|
|
116
116
|
readonly selectedKeys: (string | number)[];
|
|
117
117
|
readonly actions: import("./HtTable").ActionItem[];
|
|
118
118
|
readonly nowPage: number;
|
|
@@ -1817,11 +1817,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1817
1817
|
onHandleSelectAll?: ((...args: any[]) => any) | undefined;
|
|
1818
1818
|
onResizeColumn?: ((...args: any[]) => any) | undefined;
|
|
1819
1819
|
}, {
|
|
1820
|
+
readonly dataSource: unknown[];
|
|
1820
1821
|
readonly loading: boolean;
|
|
1821
1822
|
readonly pageSize: number;
|
|
1822
1823
|
readonly total: number;
|
|
1823
1824
|
readonly columns: TableColumns[];
|
|
1824
|
-
readonly dataSource: unknown[];
|
|
1825
1825
|
readonly selectedKeys: (string | number)[];
|
|
1826
1826
|
readonly actions: import("./HtTable").ActionItem[];
|
|
1827
1827
|
readonly nowPage: number;
|
|
@@ -444,6 +444,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
444
444
|
/* STABLE_FRAGMENT */
|
|
445
445
|
);
|
|
446
446
|
}
|
|
447
|
-
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/
|
|
447
|
+
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/table/HtTable.vue"]]);
|
|
448
448
|
|
|
449
449
|
export { Table as default };
|
|
@@ -105,11 +105,11 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
105
105
|
};
|
|
106
106
|
}, {
|
|
107
107
|
props: import("@vue/shared").LooseRequired<{
|
|
108
|
+
readonly dataSource: unknown[];
|
|
108
109
|
readonly loading: boolean;
|
|
109
110
|
readonly pageSize: number;
|
|
110
111
|
readonly total: number;
|
|
111
112
|
readonly columns: import("./HtTable").TableColumns[];
|
|
112
|
-
readonly dataSource: unknown[];
|
|
113
113
|
readonly selectedKeys: (string | number)[];
|
|
114
114
|
readonly actions: import("./HtTable").ActionItem[];
|
|
115
115
|
readonly nowPage: number;
|
|
@@ -1814,11 +1814,11 @@ export declare const HtTable: import("hfn-components/es/utils").SFCWithInstall<i
|
|
|
1814
1814
|
onHandleSelectAll?: ((...args: any[]) => any) | undefined;
|
|
1815
1815
|
onResizeColumn?: ((...args: any[]) => any) | undefined;
|
|
1816
1816
|
}, {
|
|
1817
|
+
readonly dataSource: unknown[];
|
|
1817
1818
|
readonly loading: boolean;
|
|
1818
1819
|
readonly pageSize: number;
|
|
1819
1820
|
readonly total: number;
|
|
1820
1821
|
readonly columns: import("./HtTable").TableColumns[];
|
|
1821
|
-
readonly dataSource: unknown[];
|
|
1822
1822
|
readonly selectedKeys: (string | number)[];
|
|
1823
1823
|
readonly actions: import("./HtTable").ActionItem[];
|
|
1824
1824
|
readonly nowPage: number;
|
package/es/utils/chart.mjs
CHANGED
|
@@ -131,16 +131,7 @@ const setEchartTooltip = (options, props) => {
|
|
|
131
131
|
">
|
|
132
132
|
</span>`;
|
|
133
133
|
if (props.isReturn) {
|
|
134
|
-
|
|
135
|
-
// params[i].seriesId === 'excess' ||
|
|
136
|
-
params[i].seriesName === "\u7D2F\u8BA1\u8D85\u989D"
|
|
137
|
-
) {
|
|
138
|
-
html += `<span style='color:${params[i].color}'>
|
|
139
|
-
${params[i].seriesName}</span>\uFF1A${params[i].value[1]}%
|
|
140
|
-
`;
|
|
141
|
-
} else {
|
|
142
|
-
html += `<span style='color:${params[i].color}'>${params[i].seriesName}</span>\uFF1A${params[i].value[2]?.toFixed(props.floatNumber)}\uFF08${params[i].value[1] > 0 ? "+" : ""}${params[i].value[1]}%\uFF09`;
|
|
143
|
-
}
|
|
134
|
+
html += `<span style='color:${params[i].color}'>${params[i].seriesName}</span>\uFF1A${params[i].value[2]?.toFixed(props.floatNumber)}\uFF08${params[i].value[1] > 0 ? "+" : ""}${params[i].value[1]}%\uFF09`;
|
|
144
135
|
} else {
|
|
145
136
|
if (props.chartType === "category") {
|
|
146
137
|
html += `<span style='color:${params[i].color}'>
|