hfn-components 0.7.5 → 0.7.7

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.
@@ -163,6 +163,9 @@ export declare const HtChart: import("hfn-components/es/utils").SFCWithInstall<i
163
163
  }>>, {
164
164
  readonly chartData: any[];
165
165
  readonly chartId: string;
166
+ readonly floatNumber: number;
167
+ readonly watchResize: boolean;
168
+ readonly lineColor: string[];
166
169
  readonly chartType: import("hfn-components/es/utils").chartType;
167
170
  readonly titleText: string;
168
171
  readonly titleText2: string;
@@ -170,16 +173,13 @@ export declare const HtChart: import("hfn-components/es/utils").SFCWithInstall<i
170
173
  readonly collation: string;
171
174
  readonly isReturn: boolean;
172
175
  readonly isPercent: boolean;
173
- readonly floatNumber: number;
174
176
  readonly yAxisUnit: string;
175
177
  readonly yAxisObj: Record<string, any>;
176
178
  readonly xAxisObj: Record<string, any>;
177
179
  readonly tooltipUnit: string;
178
- readonly watchResize: boolean;
179
180
  readonly showLegend: boolean;
180
181
  readonly auxiliaryData: Record<string, any>;
181
182
  readonly downLoadAutn: boolean;
182
- readonly lineColor: string[];
183
183
  readonly gridObj: Record<string, any>;
184
184
  }, {}>> & Record<string, any>;
185
185
  export default HtChart;
@@ -169,6 +169,9 @@ declare const _default: import("vue").DefineComponent<{
169
169
  }>>, {
170
170
  readonly chartData: any[];
171
171
  readonly chartId: string;
172
+ readonly floatNumber: number;
173
+ readonly watchResize: boolean;
174
+ readonly lineColor: string[];
172
175
  readonly chartType: import("hfn-components/es/utils").chartType;
173
176
  readonly titleText: string;
174
177
  readonly titleText2: string;
@@ -176,16 +179,13 @@ declare const _default: import("vue").DefineComponent<{
176
179
  readonly collation: string;
177
180
  readonly isReturn: boolean;
178
181
  readonly isPercent: boolean;
179
- readonly floatNumber: number;
180
182
  readonly yAxisUnit: string;
181
183
  readonly yAxisObj: Record<string, any>;
182
184
  readonly xAxisObj: Record<string, any>;
183
185
  readonly tooltipUnit: string;
184
- readonly watchResize: boolean;
185
186
  readonly showLegend: boolean;
186
187
  readonly auxiliaryData: Record<string, any>;
187
188
  readonly downLoadAutn: boolean;
188
- readonly lineColor: string[];
189
189
  readonly gridObj: Record<string, any>;
190
190
  }, {}>;
191
191
  export default _default;
@@ -82,13 +82,13 @@ export declare const HtPieChart: import("hfn-components/es/utils").SFCWithInstal
82
82
  };
83
83
  }>>, {
84
84
  readonly chartData: any[];
85
+ readonly legendData: Record<string, any>;
86
+ readonly legendType: string;
85
87
  readonly chartId: string;
86
88
  readonly floatNumber: number;
89
+ readonly legendFormatter: Function;
87
90
  readonly watchResize: boolean;
88
91
  readonly lineColor: string[];
89
- readonly legendData: Record<string, any>;
90
- readonly legendType: string;
91
- readonly legendFormatter: Function;
92
92
  readonly isCustomTooltip: boolean;
93
93
  readonly toolTipFuc: Function;
94
94
  }, {}>> & Record<string, any>;
@@ -88,13 +88,13 @@ declare const _default: import("vue").DefineComponent<{
88
88
  };
89
89
  }>>, {
90
90
  readonly chartData: any[];
91
+ readonly legendData: Record<string, any>;
92
+ readonly legendType: string;
91
93
  readonly chartId: string;
92
94
  readonly floatNumber: number;
95
+ readonly legendFormatter: Function;
93
96
  readonly watchResize: boolean;
94
97
  readonly lineColor: string[];
95
- readonly legendData: Record<string, any>;
96
- readonly legendType: string;
97
- readonly legendFormatter: Function;
98
98
  readonly isCustomTooltip: boolean;
99
99
  readonly toolTipFuc: Function;
100
100
  }, {}>;
@@ -35,12 +35,18 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  if (val && val.length > 0) {
36
36
  echartOptions.color = props.lineColor;
37
37
  if (myChart.value) {
38
- echartInit();
38
+ drawGraph();
39
39
  }
40
40
  }
41
41
  },
42
42
  { deep: true, immediate: true }
43
43
  );
44
+ watch(
45
+ () => props.isCustomTooltip,
46
+ () => {
47
+ drawGraph();
48
+ }
49
+ );
44
50
  const chartResize = () => {
45
51
  myChart.value.resize();
46
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hfn-components",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "description": "",
5
5
  "main": "es/index.mjs",
6
6
  "module": "es/index.mjs",