hfn-components 0.2.6 → 0.2.8

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.
Files changed (45) hide show
  1. package/dist/index.css +1 -1
  2. package/es/component.mjs +3 -1
  3. package/es/components/chart/src/HtChart.vue.mjs +2 -3
  4. package/es/components/chart/src/HtChart.vue2.mjs +1 -1
  5. package/es/components/elTable/index.d.ts +5 -4
  6. package/es/components/elTable/src/columnDeal.vue.d.ts +5 -4
  7. package/es/components/elTable/src/columnDeal.vue.mjs +1 -1
  8. package/es/components/elTable/src/columnDeal.vue2.mjs +1 -0
  9. package/es/components/elTable/src/elTable.d.ts +1 -1
  10. package/es/components/elTable/src/elTable.vue.d.ts +5 -4
  11. package/es/components/elTable/src/elTable.vue.mjs +1 -1
  12. package/es/components/elTable/src/elTable.vue2.mjs +1 -0
  13. package/es/components/htTarget/index.d.ts +1231 -0
  14. package/es/components/htTarget/src/htTarget.d.ts +1 -0
  15. package/es/components/htTarget/src/htTarget.mjs +3 -0
  16. package/es/components/htTarget/src/htTarget.vue.d.ts +1231 -0
  17. package/es/components/htTarget/src/htTarget.vue.mjs +183 -6
  18. package/es/components/htTarget/src/htTarget.vue2.mjs +81 -4
  19. package/es/components/index.d.ts +1 -0
  20. package/es/components/index.mjs +2 -0
  21. package/es/components/pieChart/index.d.ts +107 -0
  22. package/es/components/pieChart/index.mjs +7 -0
  23. package/es/components/pieChart/src/HtPieChart.d.ts +40 -0
  24. package/es/components/pieChart/src/HtPieChart.mjs +47 -0
  25. package/es/components/pieChart/src/HtPieChart.vue.d.ts +106 -0
  26. package/es/components/pieChart/src/HtPieChart.vue.mjs +23 -0
  27. package/es/components/pieChart/src/HtPieChart.vue2.mjs +84 -0
  28. package/es/components/pieChart/style/index.d.ts +1 -0
  29. package/es/components/pieChart/style/index.mjs +1 -0
  30. package/es/components/table/HtTable.vue.mjs +1 -1
  31. package/es/constants/chartConfig.d.ts +8 -0
  32. package/es/constants/chartConfig.mjs +110 -0
  33. package/es/constants/index.d.ts +1 -0
  34. package/es/constants/index.mjs +2 -1
  35. package/es/constants/table.d.ts +1 -0
  36. package/es/constants/table.mjs +4 -0
  37. package/es/constants/target.d.ts +16 -0
  38. package/es/constants/target.mjs +39 -1
  39. package/es/index.mjs +2 -0
  40. package/es/make-installer.mjs +1 -0
  41. package/package.json +1 -1
  42. package/theme-chalk/ht-chart.css +1 -1
  43. package/theme-chalk/index.css +1 -1
  44. package/theme-chalk/src/chart.scss +5 -0
  45. package/es/css/index.css +0 -59
@@ -1,13 +1,28 @@
1
1
  import _sfc_main from './htTarget.vue2.mjs';
2
- import { openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode } from 'vue';
2
+ import { openBlock, createElementBlock, createVNode, withCtx, createElementVNode, createTextVNode, Fragment, renderList, createBlock, toDisplayString } from 'vue';
3
3
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
4
4
 
5
- const _hoisted_1 = { class: "dialog-footer" };
5
+ const _hoisted_1 = {
6
+ key: 0,
7
+ style: { "width": "100%" }
8
+ };
9
+ const _hoisted_2 = { class: "factor-content" };
10
+ const _hoisted_3 = {
11
+ key: 1,
12
+ style: { "width": "100%" }
13
+ };
14
+ const _hoisted_4 = { class: "factor-content" };
15
+ const _hoisted_5 = ["onClick"];
16
+ const _hoisted_6 = { class: "dialog-footer" };
6
17
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
7
18
  return openBlock(), createElementBlock("div", null, [
8
- createVNode($setup["ElDialog"], null, {
19
+ createVNode($setup["ElDialog"], {
20
+ modelValue: $setup.aaa,
21
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $setup.aaa = $event),
22
+ class: "dialog"
23
+ }, {
9
24
  footer: withCtx(() => [
10
- createElementVNode("div", _hoisted_1, [
25
+ createElementVNode("div", _hoisted_6, [
11
26
  createVNode($setup["ElButton"], { type: "primary" }, {
12
27
  default: withCtx(() => [
13
28
  createTextVNode(" Confirm ")
@@ -17,11 +32,173 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
17
32
  })
18
33
  ])
19
34
  ]),
35
+ default: withCtx(() => [
36
+ createVNode($setup["ElRow"], null, {
37
+ default: withCtx(() => [
38
+ createVNode($setup["ElCol"], { span: 18 }, {
39
+ default: withCtx(() => [
40
+ createVNode($setup["ElRow"], { span: 20 }, {
41
+ default: withCtx(() => [
42
+ createVNode($setup["ElRadioGroup"], {
43
+ modelValue: $setup.typeTag,
44
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.typeTag = $event)
45
+ }, {
46
+ default: withCtx(() => [
47
+ createVNode($setup["ElRadioButton"], {
48
+ label: "\u57FA\u7840\u4FE1\u606F",
49
+ value: "basic"
50
+ }),
51
+ createVNode($setup["ElRadioButton"], {
52
+ label: "\u4EA7\u54C1\u6307\u6807",
53
+ value: "target"
54
+ })
55
+ ]),
56
+ _: 1
57
+ /* STABLE */
58
+ }, 8, ["modelValue"]),
59
+ $setup.typeTag === "target" ? (openBlock(), createElementBlock("div", _hoisted_1, [
60
+ createVNode($setup["ElRadioGroup"], {
61
+ modelValue: $setup.selectedHead,
62
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $setup.selectedHead = $event),
63
+ onChange: $setup.headChange
64
+ }, {
65
+ default: withCtx(() => [
66
+ (openBlock(true), createElementBlock(
67
+ Fragment,
68
+ null,
69
+ renderList($setup.targetHead, (item, index) => {
70
+ return openBlock(), createBlock($setup["ElRadio"], {
71
+ key: index,
72
+ value: item.key,
73
+ class: "radio-item"
74
+ }, {
75
+ default: withCtx(() => [
76
+ createTextVNode(
77
+ toDisplayString(item.name),
78
+ 1
79
+ /* TEXT */
80
+ )
81
+ ]),
82
+ _: 2
83
+ /* DYNAMIC */
84
+ }, 1032, ["value"]);
85
+ }),
86
+ 128
87
+ /* KEYED_FRAGMENT */
88
+ ))
89
+ ]),
90
+ _: 1
91
+ /* STABLE */
92
+ }, 8, ["modelValue"]),
93
+ createVNode($setup["ElCheckboxGroup"], {
94
+ modelValue: $setup.checkList,
95
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $setup.checkList = $event)
96
+ }, {
97
+ default: withCtx(() => [
98
+ createElementVNode("div", _hoisted_2, [
99
+ (openBlock(true), createElementBlock(
100
+ Fragment,
101
+ null,
102
+ renderList($setup.allfoot, (item) => {
103
+ return openBlock(), createElementBlock("div", {
104
+ class: "factor_item",
105
+ key: item.key
106
+ }, [
107
+ createVNode($setup["ElCheckbox"], {
108
+ onChange: ($event) => $setup.selectedTarget(item.key, "target"),
109
+ disabled: $setup.checkList.includes(item.key),
110
+ label: item.name,
111
+ value: item.key
112
+ }, null, 8, ["onChange", "disabled", "label", "value"])
113
+ ]);
114
+ }),
115
+ 128
116
+ /* KEYED_FRAGMENT */
117
+ ))
118
+ ])
119
+ ]),
120
+ _: 1
121
+ /* STABLE */
122
+ }, 8, ["modelValue"])
123
+ ])) : (openBlock(), createElementBlock("div", _hoisted_3, [
124
+ createVNode($setup["ElCheckboxGroup"], {
125
+ modelValue: $setup.checkList,
126
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $setup.checkList = $event)
127
+ }, {
128
+ default: withCtx(() => [
129
+ createElementVNode("div", _hoisted_4, [
130
+ (openBlock(true), createElementBlock(
131
+ Fragment,
132
+ null,
133
+ renderList($setup.BASIC_KEY, (item) => {
134
+ return openBlock(), createElementBlock("div", {
135
+ class: "factor_item",
136
+ key: item.key
137
+ }, [
138
+ createVNode($setup["ElCheckbox"], {
139
+ onChange: ($event) => $setup.selectedTarget(item.key, "basic"),
140
+ disabled: $setup.checkList.includes(item.key),
141
+ label: item.name,
142
+ value: item.key
143
+ }, null, 8, ["onChange", "disabled", "label", "value"])
144
+ ]);
145
+ }),
146
+ 128
147
+ /* KEYED_FRAGMENT */
148
+ ))
149
+ ])
150
+ ]),
151
+ _: 1
152
+ /* STABLE */
153
+ }, 8, ["modelValue"])
154
+ ]))
155
+ ]),
156
+ _: 1
157
+ /* STABLE */
158
+ })
159
+ ]),
160
+ _: 1
161
+ /* STABLE */
162
+ }),
163
+ createVNode($setup["ElCol"], { span: 6 }, {
164
+ default: withCtx(() => [
165
+ (openBlock(true), createElementBlock(
166
+ Fragment,
167
+ null,
168
+ renderList($setup.selectedList, (item) => {
169
+ return openBlock(), createElementBlock("div", {
170
+ key: item.key,
171
+ class: "check_item"
172
+ }, [
173
+ createElementVNode(
174
+ "span",
175
+ null,
176
+ toDisplayString(item.name),
177
+ 1
178
+ /* TEXT */
179
+ ),
180
+ createElementVNode("span", {
181
+ onClick: ($event) => $setup.deleteItem(item.key)
182
+ }, "\u274C", 8, _hoisted_5)
183
+ ]);
184
+ }),
185
+ 128
186
+ /* KEYED_FRAGMENT */
187
+ ))
188
+ ]),
189
+ _: 1
190
+ /* STABLE */
191
+ })
192
+ ]),
193
+ _: 1
194
+ /* STABLE */
195
+ })
196
+ ]),
20
197
  _: 1
21
198
  /* STABLE */
22
- })
199
+ }, 8, ["modelValue"])
23
200
  ]);
24
201
  }
25
- var htTarget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/zhanghang/Documents/project/component-library/packages/components/htTarget/src/htTarget.vue"]]);
202
+ var htTarget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/Users/libiluo/Desktop/company/component-library/packages/components/htTarget/src/htTarget.vue"]]);
26
203
 
27
204
  export { htTarget as default };
@@ -1,12 +1,19 @@
1
1
  import { defineComponent, ref, onMounted } from 'vue';
2
- import { ElDialog, ElButton } from 'element-plus';
3
- import { TARGET_HEAD_KEY } from '../../../constants/target.mjs';
2
+ import { ElDialog, ElButton, ElRow, ElCol, ElRadioGroup, ElRadio, ElCheckboxGroup, ElCheckbox, ElRadioButton } from 'element-plus';
3
+ import { TARGET_HEAD_KEY, TARGET_END_KEY, BASIC_KEY } from '../../../constants/target.mjs';
4
+ import '../../../constants/chartConfig.mjs';
5
+ import cloneDeep from 'lodash.clonedeep';
4
6
 
5
7
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
8
  __name: "htTarget",
7
9
  setup(__props, { expose: __expose }) {
8
10
  __expose();
9
- const targetHead = ref(TARGET_HEAD_KEY);
11
+ const targetHead = ref(cloneDeep(TARGET_HEAD_KEY));
12
+ const allfoot = ref(cloneDeep(TARGET_END_KEY));
13
+ const selectedHead = ref("lastOneMonth");
14
+ const checkList = ref([]);
15
+ const typeTag = ref("target");
16
+ const aaa = ref(true);
10
17
  onMounted(() => {
11
18
  let startYear = 2018;
12
19
  const nowYear = (/* @__PURE__ */ new Date()).getFullYear();
@@ -18,10 +25,80 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
18
25
  startYear++;
19
26
  }
20
27
  });
21
- const __returned__ = { targetHead, get ElDialog() {
28
+ const headChange = () => {
29
+ if (selectedTree.value[selectedHead.value]) {
30
+ checkList.value = selectedTree.value[selectedHead.value];
31
+ } else {
32
+ checkList.value = [];
33
+ }
34
+ };
35
+ const selectedTree = ref({});
36
+ const selectedList = ref([]);
37
+ const selectedTarget = (val, type) => {
38
+ let itemObj = {
39
+ name: "",
40
+ key: ""
41
+ };
42
+ if (type === "target") {
43
+ if (selectedTree.value[selectedHead.value]) {
44
+ selectedTree.value[selectedHead.value].push(val);
45
+ } else {
46
+ selectedTree.value[selectedHead.value] = [val];
47
+ }
48
+ const filterHead = TARGET_HEAD_KEY.filter((item) => item.key === selectedHead.value);
49
+ const filterFoot = TARGET_END_KEY.filter((item) => item.key === val);
50
+ const headName = filterHead.length > 0 ? filterHead[0].name : "";
51
+ const footName = filterFoot.length > 0 ? filterFoot[0].name : "";
52
+ itemObj = {
53
+ name: headName + footName,
54
+ key: `${selectedHead.value}+${val}`
55
+ };
56
+ }
57
+ if (type === "basic") {
58
+ if (selectedTree.value["Basic"]) {
59
+ selectedTree.value["Basic"].push(val);
60
+ } else {
61
+ selectedTree.value["Basic"] = [val];
62
+ }
63
+ const filterFoot = BASIC_KEY.filter((item) => item.key === val);
64
+ const footName = filterFoot.length > 0 ? filterFoot[0].name : "";
65
+ itemObj = {
66
+ name: footName,
67
+ key: `basic+${val}`
68
+ };
69
+ }
70
+ selectedList.value.push(itemObj);
71
+ };
72
+ const deleteItem = (key) => {
73
+ console.log(key);
74
+ const keyList = key.split("+");
75
+ console.log(keyList);
76
+ if (selectedHead.value === keyList[0]) {
77
+ checkList.value = checkList.value.filter((item) => item !== keyList[1]);
78
+ }
79
+ selectedTree.value[keyList[0]] = selectedTree.value[keyList[0]].filter((item) => item !== keyList[1]);
80
+ selectedList.value = selectedList.value.filter((item) => item.key !== key);
81
+ };
82
+ const __returned__ = { targetHead, allfoot, selectedHead, checkList, typeTag, aaa, headChange, selectedTree, selectedList, selectedTarget, deleteItem, get ElDialog() {
22
83
  return ElDialog;
23
84
  }, get ElButton() {
24
85
  return ElButton;
86
+ }, get ElRow() {
87
+ return ElRow;
88
+ }, get ElCol() {
89
+ return ElCol;
90
+ }, get ElRadioGroup() {
91
+ return ElRadioGroup;
92
+ }, get ElRadio() {
93
+ return ElRadio;
94
+ }, get ElCheckboxGroup() {
95
+ return ElCheckboxGroup;
96
+ }, get ElCheckbox() {
97
+ return ElCheckbox;
98
+ }, get ElRadioButton() {
99
+ return ElRadioButton;
100
+ }, get BASIC_KEY() {
101
+ return BASIC_KEY;
25
102
  } };
26
103
  Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
27
104
  return __returned__;
@@ -1,3 +1,4 @@
1
1
  export * from './elTable';
2
2
  export * from './chart';
3
3
  export * from './htTarget';
4
+ export * from './pieChart';
@@ -1,5 +1,7 @@
1
1
  export { HtElTable } from './elTable/index.mjs';
2
2
  export { HtChart } from './chart/index.mjs';
3
3
  export { HtTarget } from './htTarget/index.mjs';
4
+ export { HtPieChart } from './pieChart/index.mjs';
4
5
  export { columnDealProps, elTableProps } from './elTable/src/elTable.mjs';
5
6
  export { chartProps } from './chart/src/HtChart.mjs';
7
+ export { pieProps } from './pieChart/src/HtPieChart.mjs';
@@ -0,0 +1,107 @@
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 customizePercentage: {
19
+ readonly type: BooleanConstructor;
20
+ readonly default: false;
21
+ };
22
+ readonly floatNumber: {
23
+ readonly type: NumberConstructor;
24
+ readonly default: 2;
25
+ };
26
+ readonly legendFormatter: {
27
+ readonly type: FunctionConstructor;
28
+ readonly default: () => null;
29
+ };
30
+ readonly watchResize: {
31
+ readonly type: BooleanConstructor;
32
+ readonly default: false;
33
+ };
34
+ readonly lineColor: {
35
+ readonly type: import("vue").PropType<string[]>;
36
+ readonly default: readonly [];
37
+ };
38
+ }, {
39
+ props: import("@vue/shared").LooseRequired<{
40
+ readonly chartData: any[];
41
+ readonly chartId: string;
42
+ readonly floatNumber: number;
43
+ readonly watchResize: boolean;
44
+ readonly lineColor: string[];
45
+ readonly legendData: Record<string, any>;
46
+ readonly legendType: string;
47
+ readonly customizePercentage: boolean;
48
+ readonly legendFormatter: Function;
49
+ } & {}>;
50
+ myChart: import("vue").ShallowRef<any>;
51
+ echartOptions: any;
52
+ chartResize: () => void;
53
+ noData: import("vue").Ref<boolean>;
54
+ drawGraph: () => void;
55
+ setLenged: () => void;
56
+ setEchartTooltip: () => void;
57
+ echartInit: () => void;
58
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
59
+ readonly chartData: {
60
+ readonly type: import("vue").PropType<any[]>;
61
+ readonly default: () => never[];
62
+ };
63
+ readonly legendData: {
64
+ readonly type: ObjectConstructor;
65
+ readonly default: () => void;
66
+ };
67
+ readonly legendType: {
68
+ readonly type: StringConstructor;
69
+ readonly default: "scroll";
70
+ };
71
+ readonly chartId: {
72
+ readonly type: StringConstructor;
73
+ readonly default: "";
74
+ };
75
+ readonly customizePercentage: {
76
+ readonly type: BooleanConstructor;
77
+ readonly default: false;
78
+ };
79
+ readonly floatNumber: {
80
+ readonly type: NumberConstructor;
81
+ readonly default: 2;
82
+ };
83
+ readonly legendFormatter: {
84
+ readonly type: FunctionConstructor;
85
+ readonly default: () => null;
86
+ };
87
+ readonly watchResize: {
88
+ readonly type: BooleanConstructor;
89
+ readonly default: false;
90
+ };
91
+ readonly lineColor: {
92
+ readonly type: import("vue").PropType<string[]>;
93
+ readonly default: readonly [];
94
+ };
95
+ }>>, {
96
+ readonly chartData: any[];
97
+ readonly chartId: string;
98
+ readonly floatNumber: number;
99
+ readonly watchResize: boolean;
100
+ readonly lineColor: string[];
101
+ readonly legendData: Record<string, any>;
102
+ readonly legendType: string;
103
+ readonly customizePercentage: boolean;
104
+ readonly legendFormatter: Function;
105
+ }, {}>> & Record<string, any>;
106
+ export default HtPieChart;
107
+ export * from './src/HtPieChart';
@@ -0,0 +1,7 @@
1
+ import htPieChart from './src/HtPieChart.vue.mjs';
2
+ import { withInstall } from '../../utils/common.mjs';
3
+ export { pieProps } from './src/HtPieChart.mjs';
4
+
5
+ const HtPieChart = withInstall(htPieChart);
6
+
7
+ export { HtPieChart, HtPieChart as default };
@@ -0,0 +1,40 @@
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 customizePercentage: {
20
+ readonly type: BooleanConstructor;
21
+ readonly default: false;
22
+ };
23
+ readonly floatNumber: {
24
+ readonly type: NumberConstructor;
25
+ readonly default: 2;
26
+ };
27
+ readonly legendFormatter: {
28
+ readonly type: FunctionConstructor;
29
+ readonly default: () => null;
30
+ };
31
+ readonly watchResize: {
32
+ readonly type: BooleanConstructor;
33
+ readonly default: false;
34
+ };
35
+ readonly lineColor: {
36
+ readonly type: PropType<string[]>;
37
+ readonly default: readonly [];
38
+ };
39
+ };
40
+ export type pieProps = ExtractPropTypes<typeof pieProps>;
@@ -0,0 +1,47 @@
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
+ customizePercentage: {
24
+ type: Boolean,
25
+ default: false
26
+ },
27
+ //保留几位小数
28
+ floatNumber: {
29
+ type: Number,
30
+ default: 2
31
+ },
32
+ legendFormatter: {
33
+ type: Function,
34
+ default: () => null
35
+ },
36
+ //图表重新加载
37
+ watchResize: {
38
+ type: Boolean,
39
+ default: false
40
+ },
41
+ lineColor: {
42
+ type: Array,
43
+ default: []
44
+ }
45
+ };
46
+
47
+ export { pieProps };
@@ -0,0 +1,106 @@
1
+ declare const _default: 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 customizePercentage: {
19
+ readonly type: BooleanConstructor;
20
+ readonly default: false;
21
+ };
22
+ readonly floatNumber: {
23
+ readonly type: NumberConstructor;
24
+ readonly default: 2;
25
+ };
26
+ readonly legendFormatter: {
27
+ readonly type: FunctionConstructor;
28
+ readonly default: () => null;
29
+ };
30
+ readonly watchResize: {
31
+ readonly type: BooleanConstructor;
32
+ readonly default: false;
33
+ };
34
+ readonly lineColor: {
35
+ readonly type: import("vue").PropType<string[]>;
36
+ readonly default: readonly [];
37
+ };
38
+ }, {
39
+ props: import("@vue/shared").LooseRequired<{
40
+ readonly chartData: any[];
41
+ readonly chartId: string;
42
+ readonly floatNumber: number;
43
+ readonly watchResize: boolean;
44
+ readonly lineColor: string[];
45
+ readonly legendData: Record<string, any>;
46
+ readonly legendType: string;
47
+ readonly customizePercentage: boolean;
48
+ readonly legendFormatter: Function;
49
+ } & {}>;
50
+ myChart: import("vue").ShallowRef<any>;
51
+ echartOptions: any;
52
+ chartResize: () => void;
53
+ noData: import("vue").Ref<boolean>;
54
+ drawGraph: () => void;
55
+ setLenged: () => void;
56
+ setEchartTooltip: () => void;
57
+ echartInit: () => void;
58
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
59
+ readonly chartData: {
60
+ readonly type: import("vue").PropType<any[]>;
61
+ readonly default: () => never[];
62
+ };
63
+ readonly legendData: {
64
+ readonly type: ObjectConstructor;
65
+ readonly default: () => void;
66
+ };
67
+ readonly legendType: {
68
+ readonly type: StringConstructor;
69
+ readonly default: "scroll";
70
+ };
71
+ readonly chartId: {
72
+ readonly type: StringConstructor;
73
+ readonly default: "";
74
+ };
75
+ readonly customizePercentage: {
76
+ readonly type: BooleanConstructor;
77
+ readonly default: false;
78
+ };
79
+ readonly floatNumber: {
80
+ readonly type: NumberConstructor;
81
+ readonly default: 2;
82
+ };
83
+ readonly legendFormatter: {
84
+ readonly type: FunctionConstructor;
85
+ readonly default: () => null;
86
+ };
87
+ readonly watchResize: {
88
+ readonly type: BooleanConstructor;
89
+ readonly default: false;
90
+ };
91
+ readonly lineColor: {
92
+ readonly type: import("vue").PropType<string[]>;
93
+ readonly default: readonly [];
94
+ };
95
+ }>>, {
96
+ readonly chartData: any[];
97
+ readonly chartId: string;
98
+ readonly floatNumber: number;
99
+ readonly watchResize: boolean;
100
+ readonly lineColor: string[];
101
+ readonly legendData: Record<string, any>;
102
+ readonly legendType: string;
103
+ readonly customizePercentage: boolean;
104
+ readonly legendFormatter: Function;
105
+ }, {}>;
106
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import _sfc_main from './HtPieChart.vue2.mjs';
2
+ import { openBlock, createElementBlock, createElementVNode, createCommentVNode } from 'vue';
3
+ import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
4
+
5
+ const _hoisted_1 = { class: "echart-box" };
6
+ const _hoisted_2 = ["id"];
7
+ const _hoisted_3 = {
8
+ key: 0,
9
+ class: "noData"
10
+ };
11
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
12
+ return openBlock(), createElementBlock("div", _hoisted_1, [
13
+ createElementVNode("div", {
14
+ class: "_100",
15
+ id: _ctx.chartId
16
+ }, null, 8, _hoisted_2),
17
+ createCommentVNode(" \u56FE\u4F8B\u5168\u7F6E\u7070\u76D2\u5B50 "),
18
+ $setup.noData ? (openBlock(), createElementBlock("div", _hoisted_3, "\u6682\u65E0\u6570\u636E")) : createCommentVNode("v-if", true)
19
+ ]);
20
+ }
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
+
23
+ export { htPieChart as default };