hfn-components 0.6.0 → 0.6.1
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/component.ts +15 -0
- package/defaults.ts +5 -0
- package/index.ts +6 -0
- package/make-installer.ts +17 -0
- package/package.json +1 -1
- package/plugin.ts +1 -0
- package/dist/index.css +0 -1
- package/es/_virtual/_plugin-vue_export-helper.mjs +0 -9
- package/es/component.d.ts +0 -3
- package/es/component.mjs +0 -14
- package/es/components/chart/index.d.ts +0 -201
- package/es/components/chart/index.mjs +0 -7
- package/es/components/chart/src/HtChart.d.ts +0 -77
- package/es/components/chart/src/HtChart.mjs +0 -93
- package/es/components/chart/src/HtChart.vue.d.ts +0 -207
- package/es/components/chart/src/HtChart.vue.mjs +0 -90
- package/es/components/chart/src/HtChart.vue2.mjs +0 -109
- package/es/components/chart/src/chartConfig.d.ts +0 -7
- package/es/components/chart/src/chartConfig.mjs +0 -88
- package/es/components/chart/style/index.d.ts +0 -1
- package/es/components/chart/style/index.mjs +0 -1
- package/es/components/elTable/index.d.ts +0 -810
- package/es/components/elTable/index.mjs +0 -7
- package/es/components/elTable/src/columnDeal.vue.d.ts +0 -65
- package/es/components/elTable/src/columnDeal.vue.mjs +0 -42
- package/es/components/elTable/src/columnDeal.vue2.mjs +0 -19
- package/es/components/elTable/src/elTable.d.ts +0 -52
- package/es/components/elTable/src/elTable.mjs +0 -44
- package/es/components/elTable/src/elTable.vue.d.ts +0 -809
- package/es/components/elTable/src/elTable.vue.mjs +0 -108
- package/es/components/elTable/src/elTable.vue2.mjs +0 -46
- package/es/components/htTarget/index.d.ts +0 -2028
- package/es/components/htTarget/index.mjs +0 -6
- package/es/components/htTarget/src/htTarget.d.ts +0 -25
- package/es/components/htTarget/src/htTarget.mjs +0 -20
- package/es/components/htTarget/src/htTarget.vue.d.ts +0 -2027
- package/es/components/htTarget/src/htTarget.vue.mjs +0 -240
- package/es/components/htTarget/src/htTarget.vue2.mjs +0 -158
- package/es/components/htTarget/style/index.d.ts +0 -1
- package/es/components/htTarget/style/index.mjs +0 -1
- package/es/components/index.d.ts +0 -4
- package/es/components/index.mjs +0 -7
- package/es/components/pieChart/index.d.ts +0 -104
- package/es/components/pieChart/index.mjs +0 -7
- package/es/components/pieChart/src/HtPieChart.d.ts +0 -36
- package/es/components/pieChart/src/HtPieChart.mjs +0 -42
- package/es/components/pieChart/src/HtPieChart.vue.d.ts +0 -109
- package/es/components/pieChart/src/HtPieChart.vue.mjs +0 -61
- package/es/components/pieChart/src/HtPieChart.vue2.mjs +0 -103
- package/es/components/pieChart/style/index.d.ts +0 -1
- package/es/components/pieChart/style/index.mjs +0 -1
- 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/constants/chartConfig.d.ts +0 -8
- package/es/constants/chartConfig.mjs +0 -148
- package/es/constants/index.d.ts +0 -4
- package/es/constants/index.mjs +0 -4
- package/es/constants/key.d.ts +0 -1
- package/es/constants/key.mjs +0 -3
- package/es/constants/table.d.ts +0 -125
- package/es/constants/table.mjs +0 -156
- package/es/constants/target.d.ts +0 -15
- package/es/constants/target.mjs +0 -59
- package/es/css/index.css +0 -59
- package/es/defaults.d.ts +0 -4
- package/es/defaults.mjs +0 -7
- package/es/index.d.ts +0 -5
- package/es/index.mjs +0 -13
- package/es/make-installer.d.ts +0 -4
- package/es/make-installer.mjs +0 -15
- package/es/plugin.d.ts +0 -2
- package/es/plugin.mjs +0 -3
- package/es/utils/chart.d.ts +0 -8
- package/es/utils/chart.mjs +0 -197
- package/es/utils/common.d.ts +0 -3
- package/es/utils/common.mjs +0 -15
- package/es/utils/index.d.ts +0 -4
- package/es/utils/index.mjs +0 -4
- package/es/utils/table.d.ts +0 -2
- package/es/utils/table.mjs +0 -31
- package/es/utils/tool.d.ts +0 -2
- package/es/utils/tool.mjs +0 -42
- package/global.d.ts +0 -14
- package/theme-chalk/ht-chart.css +0 -1
- package/theme-chalk/ht-target.css +0 -1
- package/theme-chalk/index.css +0 -1
- package/theme-chalk/src/chart.scss +0 -58
- package/theme-chalk/src/index.scss +0 -2
- package/theme-chalk/src/target.scss +0 -39
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import _sfc_main from './htTarget.vue2.mjs';
|
|
2
|
-
import { openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, createBlock, createCommentVNode, Fragment, renderList, toDisplayString } from 'vue';
|
|
3
|
-
import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
|
|
4
|
-
|
|
5
|
-
const _hoisted_1 = {
|
|
6
|
-
key: 1,
|
|
7
|
-
style: { "width": "100%" }
|
|
8
|
-
};
|
|
9
|
-
const _hoisted_2 = { class: "factor-content" };
|
|
10
|
-
const _hoisted_3 = {
|
|
11
|
-
key: 2,
|
|
12
|
-
style: { "width": "100%" }
|
|
13
|
-
};
|
|
14
|
-
const _hoisted_4 = { class: "factor-content" };
|
|
15
|
-
const _hoisted_5 = ["onClick"];
|
|
16
|
-
const _hoisted_6 = /* @__PURE__ */ createElementVNode(
|
|
17
|
-
"svg",
|
|
18
|
-
{
|
|
19
|
-
t: "1736836637226",
|
|
20
|
-
class: "icon",
|
|
21
|
-
viewBox: "0 0 1024 1024",
|
|
22
|
-
version: "1.1",
|
|
23
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
24
|
-
"p-id": "8732",
|
|
25
|
-
width: "15",
|
|
26
|
-
height: "15"
|
|
27
|
-
},
|
|
28
|
-
[
|
|
29
|
-
/* @__PURE__ */ createElementVNode("path", {
|
|
30
|
-
d: "M912.064 187.984L583.968 516.064l316.768 316.8-67.872 67.872-316.768-316.8-328.112 328.128-67.888-67.888 328.112-328.112L108.784 176.672l67.888-67.888 339.424 339.392L844.16 120.096l67.888 67.888z",
|
|
31
|
-
fill: "#bfbfbf",
|
|
32
|
-
"p-id": "8733"
|
|
33
|
-
})
|
|
34
|
-
],
|
|
35
|
-
-1
|
|
36
|
-
/* HOISTED */
|
|
37
|
-
);
|
|
38
|
-
const _hoisted_7 = [
|
|
39
|
-
_hoisted_6
|
|
40
|
-
];
|
|
41
|
-
const _hoisted_8 = { class: "dialog-footer" };
|
|
42
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
43
|
-
return openBlock(), createElementBlock("div", null, [
|
|
44
|
-
createVNode($setup["ElDialog"], {
|
|
45
|
-
modelValue: $setup.dialogShow,
|
|
46
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $setup.dialogShow = $event),
|
|
47
|
-
class: "dialog",
|
|
48
|
-
onClose: _cache[5] || (_cache[5] = ($event) => $setup.emit("choiceCancel"))
|
|
49
|
-
}, {
|
|
50
|
-
footer: withCtx(() => [
|
|
51
|
-
createElementVNode("div", _hoisted_8, [
|
|
52
|
-
createVNode($setup["ElButton"], {
|
|
53
|
-
onClick: $setup.confirmTarge,
|
|
54
|
-
type: "primary"
|
|
55
|
-
}, {
|
|
56
|
-
default: withCtx(() => [
|
|
57
|
-
createTextVNode("\u786E\u8BA4")
|
|
58
|
-
]),
|
|
59
|
-
_: 1
|
|
60
|
-
/* STABLE */
|
|
61
|
-
})
|
|
62
|
-
])
|
|
63
|
-
]),
|
|
64
|
-
default: withCtx(() => [
|
|
65
|
-
createVNode($setup["ElRow"], null, {
|
|
66
|
-
default: withCtx(() => [
|
|
67
|
-
createVNode($setup["ElCol"], { span: 18 }, {
|
|
68
|
-
default: withCtx(() => [
|
|
69
|
-
createVNode($setup["ElRow"], { span: 20 }, {
|
|
70
|
-
default: withCtx(() => [
|
|
71
|
-
$setup.props.targetType === "all" ? (openBlock(), createBlock($setup["ElRadioGroup"], {
|
|
72
|
-
key: 0,
|
|
73
|
-
modelValue: $setup.typeTag,
|
|
74
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.typeTag = $event),
|
|
75
|
-
onChange: $setup.typeChange
|
|
76
|
-
}, {
|
|
77
|
-
default: withCtx(() => [
|
|
78
|
-
createVNode($setup["ElRadioButton"], {
|
|
79
|
-
label: "\u57FA\u7840\u4FE1\u606F",
|
|
80
|
-
value: "basic"
|
|
81
|
-
}),
|
|
82
|
-
createVNode($setup["ElRadioButton"], {
|
|
83
|
-
label: "\u4EA7\u54C1\u6307\u6807",
|
|
84
|
-
value: "target"
|
|
85
|
-
})
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
/* STABLE */
|
|
89
|
-
}, 8, ["modelValue"])) : createCommentVNode("v-if", true),
|
|
90
|
-
$setup.typeTag === "target" ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
91
|
-
createVNode($setup["ElRadioGroup"], {
|
|
92
|
-
modelValue: $setup.selectedHead,
|
|
93
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $setup.selectedHead = $event),
|
|
94
|
-
onChange: $setup.headChange,
|
|
95
|
-
class: "target-head"
|
|
96
|
-
}, {
|
|
97
|
-
default: withCtx(() => [
|
|
98
|
-
(openBlock(true), createElementBlock(
|
|
99
|
-
Fragment,
|
|
100
|
-
null,
|
|
101
|
-
renderList($setup.targetHead, (item, index) => {
|
|
102
|
-
return openBlock(), createBlock($setup["ElRadio"], {
|
|
103
|
-
key: index,
|
|
104
|
-
value: item.key,
|
|
105
|
-
class: "radio-item"
|
|
106
|
-
}, {
|
|
107
|
-
default: withCtx(() => [
|
|
108
|
-
createTextVNode(
|
|
109
|
-
toDisplayString(item.name),
|
|
110
|
-
1
|
|
111
|
-
/* TEXT */
|
|
112
|
-
)
|
|
113
|
-
]),
|
|
114
|
-
_: 2
|
|
115
|
-
/* DYNAMIC */
|
|
116
|
-
}, 1032, ["value"]);
|
|
117
|
-
}),
|
|
118
|
-
128
|
|
119
|
-
/* KEYED_FRAGMENT */
|
|
120
|
-
))
|
|
121
|
-
]),
|
|
122
|
-
_: 1
|
|
123
|
-
/* STABLE */
|
|
124
|
-
}, 8, ["modelValue"]),
|
|
125
|
-
createVNode($setup["ElCheckboxGroup"], {
|
|
126
|
-
modelValue: $setup.checkList,
|
|
127
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $setup.checkList = $event)
|
|
128
|
-
}, {
|
|
129
|
-
default: withCtx(() => [
|
|
130
|
-
createElementVNode("div", _hoisted_2, [
|
|
131
|
-
(openBlock(true), createElementBlock(
|
|
132
|
-
Fragment,
|
|
133
|
-
null,
|
|
134
|
-
renderList($setup.allfoot, (item) => {
|
|
135
|
-
return openBlock(), createElementBlock("div", {
|
|
136
|
-
class: "factor_item",
|
|
137
|
-
key: item.key
|
|
138
|
-
}, [
|
|
139
|
-
createVNode($setup["ElCheckbox"], {
|
|
140
|
-
onChange: ($event) => $setup.selectedTarget(item.key, $setup.selectedHead, "target"),
|
|
141
|
-
disabled: $setup.checkList.includes(item.key),
|
|
142
|
-
label: item.name,
|
|
143
|
-
value: item.key
|
|
144
|
-
}, null, 8, ["onChange", "disabled", "label", "value"])
|
|
145
|
-
]);
|
|
146
|
-
}),
|
|
147
|
-
128
|
|
148
|
-
/* KEYED_FRAGMENT */
|
|
149
|
-
))
|
|
150
|
-
])
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
/* STABLE */
|
|
154
|
-
}, 8, ["modelValue"])
|
|
155
|
-
])) : (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
156
|
-
createVNode($setup["ElCheckboxGroup"], {
|
|
157
|
-
modelValue: $setup.checkList,
|
|
158
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $setup.checkList = $event)
|
|
159
|
-
}, {
|
|
160
|
-
default: withCtx(() => [
|
|
161
|
-
createElementVNode("div", _hoisted_4, [
|
|
162
|
-
(openBlock(true), createElementBlock(
|
|
163
|
-
Fragment,
|
|
164
|
-
null,
|
|
165
|
-
renderList($setup.BASIC_KEY.filter((v) => v.type === _ctx.fundType), (item) => {
|
|
166
|
-
return openBlock(), createElementBlock("div", {
|
|
167
|
-
class: "factor_item",
|
|
168
|
-
key: item.key
|
|
169
|
-
}, [
|
|
170
|
-
createVNode($setup["ElCheckbox"], {
|
|
171
|
-
onChange: ($event) => $setup.selectedTarget(item.key, $setup.selectedHead, "basic"),
|
|
172
|
-
disabled: $setup.checkList.includes(item.key),
|
|
173
|
-
label: item.name,
|
|
174
|
-
value: item.key
|
|
175
|
-
}, null, 8, ["onChange", "disabled", "label", "value"])
|
|
176
|
-
]);
|
|
177
|
-
}),
|
|
178
|
-
128
|
|
179
|
-
/* KEYED_FRAGMENT */
|
|
180
|
-
))
|
|
181
|
-
])
|
|
182
|
-
]),
|
|
183
|
-
_: 1
|
|
184
|
-
/* STABLE */
|
|
185
|
-
}, 8, ["modelValue"])
|
|
186
|
-
]))
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
/* STABLE */
|
|
190
|
-
})
|
|
191
|
-
]),
|
|
192
|
-
_: 1
|
|
193
|
-
/* STABLE */
|
|
194
|
-
}),
|
|
195
|
-
createVNode($setup["ElCol"], {
|
|
196
|
-
span: 6,
|
|
197
|
-
class: "flow-col"
|
|
198
|
-
}, {
|
|
199
|
-
default: withCtx(() => [
|
|
200
|
-
(openBlock(true), createElementBlock(
|
|
201
|
-
Fragment,
|
|
202
|
-
null,
|
|
203
|
-
renderList($setup.selectedList, (item) => {
|
|
204
|
-
return openBlock(), createElementBlock("div", {
|
|
205
|
-
key: item.key,
|
|
206
|
-
class: "check_item"
|
|
207
|
-
}, [
|
|
208
|
-
createElementVNode(
|
|
209
|
-
"span",
|
|
210
|
-
null,
|
|
211
|
-
toDisplayString(item.name),
|
|
212
|
-
1
|
|
213
|
-
/* TEXT */
|
|
214
|
-
),
|
|
215
|
-
createElementVNode("span", {
|
|
216
|
-
class: "flex-alignCnter",
|
|
217
|
-
onClick: ($event) => $setup.deleteItem(item.key)
|
|
218
|
-
}, [..._hoisted_7], 8, _hoisted_5)
|
|
219
|
-
]);
|
|
220
|
-
}),
|
|
221
|
-
128
|
|
222
|
-
/* KEYED_FRAGMENT */
|
|
223
|
-
))
|
|
224
|
-
]),
|
|
225
|
-
_: 1
|
|
226
|
-
/* STABLE */
|
|
227
|
-
})
|
|
228
|
-
]),
|
|
229
|
-
_: 1
|
|
230
|
-
/* STABLE */
|
|
231
|
-
})
|
|
232
|
-
]),
|
|
233
|
-
_: 1
|
|
234
|
-
/* STABLE */
|
|
235
|
-
}, 8, ["modelValue"])
|
|
236
|
-
]);
|
|
237
|
-
}
|
|
238
|
-
var htTarget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/htTarget/src/htTarget.vue"]]);
|
|
239
|
-
|
|
240
|
-
export { htTarget as default };
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { defineComponent, ref, onMounted, watch } from 'vue';
|
|
2
|
-
import { ElDialog, ElButton, ElRow, ElCol, ElRadioGroup, ElRadio, ElCheckboxGroup, ElCheckbox, ElRadioButton } from 'element-plus';
|
|
3
|
-
import { targetProps } from './htTarget.mjs';
|
|
4
|
-
import { TARGET_HEAD_KEY, TARGET_END_KEY, BASIC_KEY } from '../../../constants/target.mjs';
|
|
5
|
-
import '../../../constants/chartConfig.mjs';
|
|
6
|
-
import cloneDeep from 'lodash.clonedeep';
|
|
7
|
-
|
|
8
|
-
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "htTarget",
|
|
10
|
-
props: targetProps,
|
|
11
|
-
emits: ["choiceTarget", "choiceCancel"],
|
|
12
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
13
|
-
__expose();
|
|
14
|
-
const props = __props;
|
|
15
|
-
const emit = __emit;
|
|
16
|
-
const targetHead = ref(cloneDeep(TARGET_HEAD_KEY));
|
|
17
|
-
const allfoot = ref(cloneDeep(TARGET_END_KEY));
|
|
18
|
-
const selectedHead = ref("lastOneMonth");
|
|
19
|
-
const checkList = ref([]);
|
|
20
|
-
const dialogShow = ref(false);
|
|
21
|
-
const typeTag = ref("target");
|
|
22
|
-
onMounted(() => {
|
|
23
|
-
let startYear = 2018;
|
|
24
|
-
const nowYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
25
|
-
while (startYear <= nowYear) {
|
|
26
|
-
targetHead.value.push({
|
|
27
|
-
name: `${startYear}`,
|
|
28
|
-
key: `${startYear}`
|
|
29
|
-
});
|
|
30
|
-
startYear++;
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
watch(
|
|
34
|
-
() => props.dialogShow,
|
|
35
|
-
(val) => {
|
|
36
|
-
dialogShow.value = val;
|
|
37
|
-
selectedTree.value = {};
|
|
38
|
-
selectedList.value = [];
|
|
39
|
-
props.targetData.forEach((item) => {
|
|
40
|
-
if (item.key.startsWith("basic_")) {
|
|
41
|
-
const strSplit = item.key.split("_");
|
|
42
|
-
selectedTarget(strSplit[1], "", "basic");
|
|
43
|
-
} else {
|
|
44
|
-
const strSplit = item.key.split("_");
|
|
45
|
-
selectedTarget(strSplit[1], strSplit[0], "target");
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
typeChange();
|
|
49
|
-
}
|
|
50
|
-
);
|
|
51
|
-
const headChange = () => {
|
|
52
|
-
if (selectedHead.value === "thisWeek" || selectedHead.value === "thisMonth" || selectedHead.value === "pastWeek") {
|
|
53
|
-
allfoot.value = cloneDeep(TARGET_END_KEY).filter((item) => item.key === "return" || item.key === "excessReturn");
|
|
54
|
-
} else if (selectedHead.value === "lastOneMonth" || selectedHead.value === "lastThreeMonth" || selectedHead.value === "lastSixMonth") {
|
|
55
|
-
allfoot.value = cloneDeep(TARGET_END_KEY).filter((item) => item.key !== "monthlyPositiveRatio");
|
|
56
|
-
} else {
|
|
57
|
-
allfoot.value = cloneDeep(TARGET_END_KEY);
|
|
58
|
-
}
|
|
59
|
-
if (selectedTree.value[selectedHead.value]) {
|
|
60
|
-
checkList.value = selectedTree.value[selectedHead.value];
|
|
61
|
-
} else {
|
|
62
|
-
checkList.value = [];
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
const typeChange = () => {
|
|
66
|
-
if (typeTag.value === "basic") {
|
|
67
|
-
checkList.value = selectedList.value.filter((v) => v.key.includes("basic")).map((v) => v.key.split("_")[1]);
|
|
68
|
-
} else {
|
|
69
|
-
headChange();
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
const selectedTree = ref({});
|
|
73
|
-
const selectedList = ref([]);
|
|
74
|
-
const selectedTarget = (val, headKey, type) => {
|
|
75
|
-
let itemObj = {
|
|
76
|
-
name: "",
|
|
77
|
-
key: "",
|
|
78
|
-
dealType: ""
|
|
79
|
-
};
|
|
80
|
-
if (type === "target") {
|
|
81
|
-
if (selectedTree.value[headKey]) {
|
|
82
|
-
selectedTree.value[headKey].push(val);
|
|
83
|
-
} else {
|
|
84
|
-
selectedTree.value[headKey] = [val];
|
|
85
|
-
}
|
|
86
|
-
const filterHead = targetHead.value.filter((item) => item.key === headKey);
|
|
87
|
-
const filterFoot = TARGET_END_KEY.filter((item) => item.key === val);
|
|
88
|
-
const headName = filterHead.length > 0 ? filterHead[0].name : "";
|
|
89
|
-
const footName = filterFoot.length > 0 ? filterFoot[0].name : "";
|
|
90
|
-
itemObj = {
|
|
91
|
-
name: headName + footName,
|
|
92
|
-
key: `${headKey}_${val}`,
|
|
93
|
-
dealType: footName ? filterFoot[0].dealType : ""
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
if (type === "basic") {
|
|
97
|
-
if (selectedTree.value["basic"]) {
|
|
98
|
-
selectedTree.value["basic"].push(val);
|
|
99
|
-
} else {
|
|
100
|
-
selectedTree.value["basic"] = [val];
|
|
101
|
-
}
|
|
102
|
-
const filterFoot = BASIC_KEY.filter((v) => v.type === props.fundType).filter((item) => item.key === val);
|
|
103
|
-
const footName = filterFoot.length > 0 ? filterFoot[0].name : "";
|
|
104
|
-
itemObj = {
|
|
105
|
-
name: footName,
|
|
106
|
-
key: `basic_${val}`,
|
|
107
|
-
dealType: footName ? filterFoot[0].dealType : ""
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
selectedList.value.push(itemObj);
|
|
111
|
-
};
|
|
112
|
-
const deleteItem = (key) => {
|
|
113
|
-
const keyList = key.split("_");
|
|
114
|
-
if (selectedHead.value === keyList[0]) {
|
|
115
|
-
checkList.value = checkList.value.filter((item) => item !== keyList[1]);
|
|
116
|
-
} else if (typeTag.value === "basic") {
|
|
117
|
-
checkList.value = checkList.value.filter((item) => item !== keyList[1]);
|
|
118
|
-
}
|
|
119
|
-
selectedTree.value[keyList[0]] = selectedTree.value[keyList[0]].filter((item) => item !== keyList[1]);
|
|
120
|
-
selectedList.value = selectedList.value.filter((item) => item.key !== key);
|
|
121
|
-
};
|
|
122
|
-
const confirmTarge = () => {
|
|
123
|
-
const selectedTable = selectedList.value.map((item) => {
|
|
124
|
-
return {
|
|
125
|
-
name: item.name,
|
|
126
|
-
key: `${item.key}`,
|
|
127
|
-
dealType: item.dealType
|
|
128
|
-
};
|
|
129
|
-
});
|
|
130
|
-
emit("choiceTarget", selectedTable);
|
|
131
|
-
};
|
|
132
|
-
const __returned__ = { props, emit, targetHead, allfoot, selectedHead, checkList, dialogShow, typeTag, headChange, typeChange, selectedTree, selectedList, selectedTarget, deleteItem, confirmTarge, get ElDialog() {
|
|
133
|
-
return ElDialog;
|
|
134
|
-
}, get ElButton() {
|
|
135
|
-
return ElButton;
|
|
136
|
-
}, get ElRow() {
|
|
137
|
-
return ElRow;
|
|
138
|
-
}, get ElCol() {
|
|
139
|
-
return ElCol;
|
|
140
|
-
}, get ElRadioGroup() {
|
|
141
|
-
return ElRadioGroup;
|
|
142
|
-
}, get ElRadio() {
|
|
143
|
-
return ElRadio;
|
|
144
|
-
}, get ElCheckboxGroup() {
|
|
145
|
-
return ElCheckboxGroup;
|
|
146
|
-
}, get ElCheckbox() {
|
|
147
|
-
return ElCheckbox;
|
|
148
|
-
}, get ElRadioButton() {
|
|
149
|
-
return ElRadioButton;
|
|
150
|
-
}, get BASIC_KEY() {
|
|
151
|
-
return BASIC_KEY;
|
|
152
|
-
} };
|
|
153
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
154
|
-
return __returned__;
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
export { _sfc_main as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'hfn-components/theme-chalk/src/target.scss';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import 'hfn-components/theme-chalk/src/target.scss';
|
package/es/components/index.d.ts
DELETED
package/es/components/index.mjs
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { HtElTable } from './elTable/index.mjs';
|
|
2
|
-
export { HtChart } from './chart/index.mjs';
|
|
3
|
-
export { HtTarget } from './htTarget/index.mjs';
|
|
4
|
-
export { HtPieChart } from './pieChart/index.mjs';
|
|
5
|
-
export { columnDealProps, elTableProps } from './elTable/src/elTable.mjs';
|
|
6
|
-
export { chartProps } from './chart/src/HtChart.mjs';
|
|
7
|
-
export { pieProps } from './pieChart/src/HtPieChart.mjs';
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
export declare const HtPieChart: 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 legendData: {
|
|
7
|
-
readonly type: ObjectConstructor;
|
|
8
|
-
readonly default: () => void;
|
|
9
|
-
};
|
|
10
|
-
readonly legendType: {
|
|
11
|
-
readonly type: StringConstructor;
|
|
12
|
-
readonly default: "scroll";
|
|
13
|
-
};
|
|
14
|
-
readonly chartId: {
|
|
15
|
-
readonly type: StringConstructor;
|
|
16
|
-
readonly default: "";
|
|
17
|
-
};
|
|
18
|
-
readonly floatNumber: {
|
|
19
|
-
readonly type: NumberConstructor;
|
|
20
|
-
readonly default: 2;
|
|
21
|
-
};
|
|
22
|
-
readonly legendFormatter: {
|
|
23
|
-
readonly type: FunctionConstructor;
|
|
24
|
-
readonly default: () => null;
|
|
25
|
-
};
|
|
26
|
-
readonly watchResize: {
|
|
27
|
-
readonly type: BooleanConstructor;
|
|
28
|
-
readonly default: false;
|
|
29
|
-
};
|
|
30
|
-
readonly lineColor: {
|
|
31
|
-
readonly type: import("vue").PropType<string[]>;
|
|
32
|
-
readonly default: readonly [];
|
|
33
|
-
};
|
|
34
|
-
}, {
|
|
35
|
-
props: import("@vue/shared").LooseRequired<{
|
|
36
|
-
readonly chartData: any[];
|
|
37
|
-
readonly chartId: string;
|
|
38
|
-
readonly floatNumber: number;
|
|
39
|
-
readonly watchResize: boolean;
|
|
40
|
-
readonly lineColor: string[];
|
|
41
|
-
readonly legendData: Record<string, any>;
|
|
42
|
-
readonly legendType: string;
|
|
43
|
-
readonly legendFormatter: Function;
|
|
44
|
-
} & {}>;
|
|
45
|
-
myChart: import("vue").ShallowRef<any>;
|
|
46
|
-
echartOptions: any;
|
|
47
|
-
chartResize: () => void;
|
|
48
|
-
noData: import("vue").Ref<boolean>;
|
|
49
|
-
allLegend: import("vue").Ref<{
|
|
50
|
-
name: string;
|
|
51
|
-
lineType: string;
|
|
52
|
-
isShow: boolean;
|
|
53
|
-
color: string;
|
|
54
|
-
}[]>;
|
|
55
|
-
drawGraph: () => void;
|
|
56
|
-
lengedDeal: () => void;
|
|
57
|
-
setEchartTooltip: () => void;
|
|
58
|
-
legendStatus: (item: import("./src/HtPieChart.vue").Legend, index: number) => void;
|
|
59
|
-
echartInit: () => void;
|
|
60
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
|
-
readonly chartData: {
|
|
62
|
-
readonly type: import("vue").PropType<any[]>;
|
|
63
|
-
readonly default: () => never[];
|
|
64
|
-
};
|
|
65
|
-
readonly legendData: {
|
|
66
|
-
readonly type: ObjectConstructor;
|
|
67
|
-
readonly default: () => void;
|
|
68
|
-
};
|
|
69
|
-
readonly legendType: {
|
|
70
|
-
readonly type: StringConstructor;
|
|
71
|
-
readonly default: "scroll";
|
|
72
|
-
};
|
|
73
|
-
readonly chartId: {
|
|
74
|
-
readonly type: StringConstructor;
|
|
75
|
-
readonly default: "";
|
|
76
|
-
};
|
|
77
|
-
readonly floatNumber: {
|
|
78
|
-
readonly type: NumberConstructor;
|
|
79
|
-
readonly default: 2;
|
|
80
|
-
};
|
|
81
|
-
readonly legendFormatter: {
|
|
82
|
-
readonly type: FunctionConstructor;
|
|
83
|
-
readonly default: () => null;
|
|
84
|
-
};
|
|
85
|
-
readonly watchResize: {
|
|
86
|
-
readonly type: BooleanConstructor;
|
|
87
|
-
readonly default: false;
|
|
88
|
-
};
|
|
89
|
-
readonly lineColor: {
|
|
90
|
-
readonly type: import("vue").PropType<string[]>;
|
|
91
|
-
readonly default: readonly [];
|
|
92
|
-
};
|
|
93
|
-
}>>, {
|
|
94
|
-
readonly chartData: any[];
|
|
95
|
-
readonly chartId: string;
|
|
96
|
-
readonly floatNumber: number;
|
|
97
|
-
readonly watchResize: boolean;
|
|
98
|
-
readonly lineColor: string[];
|
|
99
|
-
readonly legendData: Record<string, any>;
|
|
100
|
-
readonly legendType: string;
|
|
101
|
-
readonly legendFormatter: Function;
|
|
102
|
-
}, {}>> & Record<string, any>;
|
|
103
|
-
export default HtPieChart;
|
|
104
|
-
export * from './src/HtPieChart';
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
export declare const pieProps: {
|
|
3
|
-
readonly chartData: {
|
|
4
|
-
readonly type: PropType<any[]>;
|
|
5
|
-
readonly default: () => never[];
|
|
6
|
-
};
|
|
7
|
-
readonly legendData: {
|
|
8
|
-
readonly type: ObjectConstructor;
|
|
9
|
-
readonly default: () => void;
|
|
10
|
-
};
|
|
11
|
-
readonly legendType: {
|
|
12
|
-
readonly type: StringConstructor;
|
|
13
|
-
readonly default: "scroll";
|
|
14
|
-
};
|
|
15
|
-
readonly chartId: {
|
|
16
|
-
readonly type: StringConstructor;
|
|
17
|
-
readonly default: "";
|
|
18
|
-
};
|
|
19
|
-
readonly floatNumber: {
|
|
20
|
-
readonly type: NumberConstructor;
|
|
21
|
-
readonly default: 2;
|
|
22
|
-
};
|
|
23
|
-
readonly legendFormatter: {
|
|
24
|
-
readonly type: FunctionConstructor;
|
|
25
|
-
readonly default: () => null;
|
|
26
|
-
};
|
|
27
|
-
readonly watchResize: {
|
|
28
|
-
readonly type: BooleanConstructor;
|
|
29
|
-
readonly default: false;
|
|
30
|
-
};
|
|
31
|
-
readonly lineColor: {
|
|
32
|
-
readonly type: PropType<string[]>;
|
|
33
|
-
readonly default: readonly [];
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
export type pieProps = ExtractPropTypes<typeof pieProps>;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
const pieProps = {
|
|
2
|
-
//图表数据
|
|
3
|
-
chartData: {
|
|
4
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
-
type: Array,
|
|
6
|
-
default: () => []
|
|
7
|
-
},
|
|
8
|
-
legendData: {
|
|
9
|
-
type: Object,
|
|
10
|
-
default: () => {
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
legendType: {
|
|
14
|
-
type: String,
|
|
15
|
-
default: "scroll"
|
|
16
|
-
},
|
|
17
|
-
//图表id
|
|
18
|
-
chartId: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: ""
|
|
21
|
-
},
|
|
22
|
-
//保留几位小数
|
|
23
|
-
floatNumber: {
|
|
24
|
-
type: Number,
|
|
25
|
-
default: 2
|
|
26
|
-
},
|
|
27
|
-
legendFormatter: {
|
|
28
|
-
type: Function,
|
|
29
|
-
default: () => null
|
|
30
|
-
},
|
|
31
|
-
//图表重新加载
|
|
32
|
-
watchResize: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: false
|
|
35
|
-
},
|
|
36
|
-
lineColor: {
|
|
37
|
-
type: Array,
|
|
38
|
-
default: []
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
export { pieProps };
|