hfn-components 0.3.5 → 0.3.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/components/chart/src/HtChart.vue.mjs +1 -1
- package/es/components/elTable/src/columnDeal.vue.mjs +1 -1
- package/es/components/elTable/src/elTable.vue.mjs +1 -1
- package/es/components/htTarget/index.d.ts +10 -0
- package/es/components/htTarget/src/htTarget.d.ts +4 -0
- package/es/components/htTarget/src/htTarget.mjs +4 -0
- package/es/components/htTarget/src/htTarget.vue.d.ts +10 -0
- package/es/components/htTarget/src/htTarget.vue.mjs +7 -6
- package/es/components/htTarget/src/htTarget.vue2.mjs +3 -12
- package/es/components/pieChart/src/HtPieChart.vue.mjs +1 -1
- package/es/components/table/HtTable.vue.mjs +1 -1
- package/package.json +1 -1
- package/es/css/index.css +0 -59
|
@@ -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 };
|
|
@@ -37,6 +37,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37
37
|
/* TEXT */
|
|
38
38
|
));
|
|
39
39
|
}
|
|
40
|
-
var ColumnDeal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/
|
|
40
|
+
var ColumnDeal = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/elTable/src/columnDeal.vue"]]);
|
|
41
41
|
|
|
42
42
|
export { ColumnDeal as default };
|
|
@@ -103,6 +103,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
103
103
|
[$setup["vLoading"], $setup.props.loading]
|
|
104
104
|
]);
|
|
105
105
|
}
|
|
106
|
-
var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/
|
|
106
|
+
var elTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/elTable/src/elTable.vue"]]);
|
|
107
107
|
|
|
108
108
|
export { elTable as default };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
readonly targetType: {
|
|
3
|
+
readonly type: StringConstructor;
|
|
4
|
+
readonly default: "";
|
|
5
|
+
};
|
|
2
6
|
readonly dialogShow: {
|
|
3
7
|
readonly type: BooleanConstructor;
|
|
4
8
|
readonly default: false;
|
|
@@ -10,6 +14,7 @@ export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<
|
|
|
10
14
|
}, {
|
|
11
15
|
props: import("@vue/shared").LooseRequired<{
|
|
12
16
|
readonly targetData: import("./src/htTarget").target[];
|
|
17
|
+
readonly targetType: string;
|
|
13
18
|
readonly dialogShow: boolean;
|
|
14
19
|
readonly onChoiceTarget?: ((...args: any[]) => any) | undefined;
|
|
15
20
|
readonly onChoiceCancel?: ((...args: any[]) => any) | undefined;
|
|
@@ -1987,6 +1992,10 @@ export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<
|
|
|
1987
1992
|
dealType: string;
|
|
1988
1993
|
}[];
|
|
1989
1994
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("choiceTarget" | "choiceCancel")[], "choiceTarget" | "choiceCancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1995
|
+
readonly targetType: {
|
|
1996
|
+
readonly type: StringConstructor;
|
|
1997
|
+
readonly default: "";
|
|
1998
|
+
};
|
|
1990
1999
|
readonly dialogShow: {
|
|
1991
2000
|
readonly type: BooleanConstructor;
|
|
1992
2001
|
readonly default: false;
|
|
@@ -2000,6 +2009,7 @@ export declare const HtTarget: import("hfn-components/es/utils").SFCWithInstall<
|
|
|
2000
2009
|
onChoiceCancel?: ((...args: any[]) => any) | undefined;
|
|
2001
2010
|
}, {
|
|
2002
2011
|
readonly targetData: import("./src/htTarget").target[];
|
|
2012
|
+
readonly targetType: string;
|
|
2003
2013
|
readonly dialogShow: boolean;
|
|
2004
2014
|
}, {}>> & Record<string, any>;
|
|
2005
2015
|
export default HtTarget;
|
|
@@ -5,6 +5,10 @@ export interface target {
|
|
|
5
5
|
dealType: string;
|
|
6
6
|
}
|
|
7
7
|
export declare const targetProps: {
|
|
8
|
+
readonly targetType: {
|
|
9
|
+
readonly type: StringConstructor;
|
|
10
|
+
readonly default: "";
|
|
11
|
+
};
|
|
8
12
|
readonly dialogShow: {
|
|
9
13
|
readonly type: BooleanConstructor;
|
|
10
14
|
readonly default: false;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly targetType: {
|
|
3
|
+
readonly type: StringConstructor;
|
|
4
|
+
readonly default: "";
|
|
5
|
+
};
|
|
2
6
|
readonly dialogShow: {
|
|
3
7
|
readonly type: BooleanConstructor;
|
|
4
8
|
readonly default: false;
|
|
@@ -10,6 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
14
|
}, {
|
|
11
15
|
props: import("@vue/shared").LooseRequired<{
|
|
12
16
|
readonly targetData: import("./htTarget").target[];
|
|
17
|
+
readonly targetType: string;
|
|
13
18
|
readonly dialogShow: boolean;
|
|
14
19
|
readonly onChoiceTarget?: ((...args: any[]) => any) | undefined;
|
|
15
20
|
readonly onChoiceCancel?: ((...args: any[]) => any) | undefined;
|
|
@@ -1987,6 +1992,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1987
1992
|
dealType: string;
|
|
1988
1993
|
}[];
|
|
1989
1994
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("choiceTarget" | "choiceCancel")[], "choiceTarget" | "choiceCancel", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1995
|
+
readonly targetType: {
|
|
1996
|
+
readonly type: StringConstructor;
|
|
1997
|
+
readonly default: "";
|
|
1998
|
+
};
|
|
1990
1999
|
readonly dialogShow: {
|
|
1991
2000
|
readonly type: BooleanConstructor;
|
|
1992
2001
|
readonly default: false;
|
|
@@ -2000,6 +2009,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2000
2009
|
onChoiceCancel?: ((...args: any[]) => any) | undefined;
|
|
2001
2010
|
}, {
|
|
2002
2011
|
readonly targetData: import("./htTarget").target[];
|
|
2012
|
+
readonly targetType: string;
|
|
2003
2013
|
readonly dialogShow: boolean;
|
|
2004
2014
|
}, {}>;
|
|
2005
2015
|
export default _default;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import _sfc_main from './htTarget.vue2.mjs';
|
|
2
|
-
import { openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, Fragment, renderList,
|
|
2
|
+
import { openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, createBlock, createCommentVNode, Fragment, renderList, toDisplayString } from 'vue';
|
|
3
3
|
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
4
|
|
|
5
5
|
const _hoisted_1 = {
|
|
6
|
-
key:
|
|
6
|
+
key: 1,
|
|
7
7
|
style: { "width": "100%" }
|
|
8
8
|
};
|
|
9
9
|
const _hoisted_2 = { class: "factor-content" };
|
|
10
10
|
const _hoisted_3 = {
|
|
11
|
-
key:
|
|
11
|
+
key: 2,
|
|
12
12
|
style: { "width": "100%" }
|
|
13
13
|
};
|
|
14
14
|
const _hoisted_4 = { class: "factor-content" };
|
|
@@ -43,7 +43,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
43
43
|
default: withCtx(() => [
|
|
44
44
|
createVNode($setup["ElRow"], { span: 20 }, {
|
|
45
45
|
default: withCtx(() => [
|
|
46
|
-
|
|
46
|
+
$setup.props.targetType === "all" ? (openBlock(), createBlock($setup["ElRadioGroup"], {
|
|
47
|
+
key: 0,
|
|
47
48
|
modelValue: $setup.typeTag,
|
|
48
49
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.typeTag = $event)
|
|
49
50
|
}, {
|
|
@@ -59,7 +60,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
59
60
|
]),
|
|
60
61
|
_: 1
|
|
61
62
|
/* STABLE */
|
|
62
|
-
}, 8, ["modelValue"]),
|
|
63
|
+
}, 8, ["modelValue"])) : createCommentVNode("v-if", true),
|
|
63
64
|
$setup.typeTag === "target" ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
64
65
|
createVNode($setup["ElRadioGroup"], {
|
|
65
66
|
modelValue: $setup.selectedHead,
|
|
@@ -203,6 +204,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
203
204
|
}, 8, ["modelValue"])
|
|
204
205
|
]);
|
|
205
206
|
}
|
|
206
|
-
var htTarget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/
|
|
207
|
+
var htTarget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/htTarget/src/htTarget.vue"]]);
|
|
207
208
|
|
|
208
209
|
export { htTarget as default };
|
|
@@ -34,12 +34,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
() => props.dialogShow,
|
|
35
35
|
(val) => {
|
|
36
36
|
dialogShow.value = val;
|
|
37
|
-
|
|
38
|
-
);
|
|
39
|
-
watch(
|
|
40
|
-
() => props.targetData,
|
|
41
|
-
(val) => {
|
|
42
|
-
val.forEach((item) => {
|
|
37
|
+
props.targetData.forEach((item) => {
|
|
43
38
|
if (item.key.startsWith("basic_")) {
|
|
44
39
|
const strSplit = item.key.split("_");
|
|
45
40
|
selectedTarget(strSplit[1], "", "basic");
|
|
@@ -48,15 +43,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
43
|
selectedTarget(strSplit[1], strSplit[0], "target");
|
|
49
44
|
}
|
|
50
45
|
});
|
|
51
|
-
}
|
|
52
|
-
{ deep: true }
|
|
46
|
+
}
|
|
53
47
|
);
|
|
54
48
|
const headChange = () => {
|
|
55
49
|
if (selectedHead.value === "thisWeek" || selectedHead.value === "thisMonth") {
|
|
56
|
-
allfoot.value =
|
|
57
|
-
{ name: "\u6536\u76CA", key: "return", dealType: "color_text_precent" },
|
|
58
|
-
{ name: "\u5E74\u5316\u6536\u76CA", key: "yearReturn", dealType: "color_text_precent" }
|
|
59
|
-
];
|
|
50
|
+
allfoot.value = cloneDeep(TARGET_END_KEY).splice(0, 2);
|
|
60
51
|
} else {
|
|
61
52
|
allfoot.value = cloneDeep(TARGET_END_KEY);
|
|
62
53
|
}
|
|
@@ -18,6 +18,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
18
18
|
$setup.noData ? (openBlock(), createElementBlock("div", _hoisted_3, "\u6682\u65E0\u6570\u636E")) : createCommentVNode("v-if", true)
|
|
19
19
|
]);
|
|
20
20
|
}
|
|
21
|
-
var htPieChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/
|
|
21
|
+
var htPieChart = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/pieChart/src/HtPieChart.vue"]]);
|
|
22
22
|
|
|
23
23
|
export { htPieChart as default };
|
|
@@ -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/libiluo/Desktop/company/component-library/packages/components/table/HtTable.vue"]]);
|
|
448
448
|
|
|
449
449
|
export { Table as default };
|
package/package.json
CHANGED
package/es/css/index.css
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
.echart-box {
|
|
2
|
-
width: 100%;
|
|
3
|
-
height: 100%;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
position: relative;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.echart-content {
|
|
10
|
-
flex: auto;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.echart-lenged {
|
|
14
|
-
width: 100%;
|
|
15
|
-
height: auto;
|
|
16
|
-
margin-top: 6px;
|
|
17
|
-
padding-right: 22px;
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
display: flex;
|
|
20
|
-
flex-wrap: wrap;
|
|
21
|
-
font-size: 12px;
|
|
22
|
-
position: relative;
|
|
23
|
-
z-index: 999;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.bg-span {
|
|
27
|
-
display: inline-block;
|
|
28
|
-
width: 14px;
|
|
29
|
-
height: 2px;
|
|
30
|
-
margin-right: 6px;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.bg-span-bar {
|
|
34
|
-
display: inline-block;
|
|
35
|
-
width: 16px;
|
|
36
|
-
height: 10px;
|
|
37
|
-
border-radius: 2px;
|
|
38
|
-
margin-right: 6px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.span-box {
|
|
42
|
-
margin-left: 5px;
|
|
43
|
-
margin-right: 6px;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.noData {
|
|
50
|
-
width: 100%;
|
|
51
|
-
height: 100%;
|
|
52
|
-
font-size: 16px;
|
|
53
|
-
display: flex;
|
|
54
|
-
justify-content: center;
|
|
55
|
-
align-items: center;
|
|
56
|
-
position: absolute;
|
|
57
|
-
bottom: 0px;
|
|
58
|
-
color: #ccc;
|
|
59
|
-
}
|