@opentinyvue/vue-huicharts-funnel 2.22.0 → 3.22.0
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/lib/index.js +47 -50
- package/package.json +3 -3
- package/src/chart-funnel.vue.d.ts +215 -3
package/lib/index.js
CHANGED
|
@@ -1,35 +1,39 @@
|
|
|
1
1
|
import Core, { itemPoint, itemLabel, itemContent, getFormatted } from '@opentinyvue/vue-huicharts-core';
|
|
2
2
|
import { $prefix } from '@opentinyvue/vue-common';
|
|
3
|
+
import { openBlock, createElementBlock, normalizeStyle } from 'vue';
|
|
3
4
|
|
|
4
|
-
function
|
|
5
|
-
var
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
hook = injectStyles;
|
|
5
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
6
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
8
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
9
|
+
t && (r = t);
|
|
10
|
+
var o = 0;
|
|
11
|
+
return function() {
|
|
12
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
13
|
+
};
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
} else {
|
|
24
|
-
var existing = options.beforeCreate;
|
|
25
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
26
|
-
}
|
|
15
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16
|
+
}
|
|
17
|
+
function _unsupportedIterableToArray(r, a) {
|
|
18
|
+
if (r) {
|
|
19
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
20
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
21
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
27
22
|
}
|
|
28
|
-
return {
|
|
29
|
-
exports: scriptExports,
|
|
30
|
-
options
|
|
31
|
-
};
|
|
32
23
|
}
|
|
24
|
+
function _arrayLikeToArray(r, a) {
|
|
25
|
+
(null == a || a > r.length) && (a = r.length);
|
|
26
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
27
|
+
return n;
|
|
28
|
+
}
|
|
29
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
30
|
+
var target = sfc.__vccOpts || sfc;
|
|
31
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
32
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
33
|
+
target[key] = val;
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
33
37
|
|
|
34
38
|
var getMetrics = function getMetrics2(args) {
|
|
35
39
|
var dimension = args.dimension, columns = args.columns, settings = args.settings;
|
|
@@ -179,21 +183,7 @@ var getIChartOption = function getIChartOption2(outerColumns, outerRows, setting
|
|
|
179
183
|
};
|
|
180
184
|
return ichartOption;
|
|
181
185
|
};
|
|
182
|
-
var
|
|
183
|
-
var _vm = this;
|
|
184
|
-
var _h = _vm.$createElement;
|
|
185
|
-
var _c = _vm._self._c || _h;
|
|
186
|
-
return _c("div", {
|
|
187
|
-
ref: "chartRef",
|
|
188
|
-
staticClass: "hui-chart chart-box",
|
|
189
|
-
style: {
|
|
190
|
-
width: _vm.width,
|
|
191
|
-
height: _vm.height
|
|
192
|
-
}
|
|
193
|
-
});
|
|
194
|
-
};
|
|
195
|
-
var staticRenderFns = [];
|
|
196
|
-
var __vue2_script = {
|
|
186
|
+
var _sfc_main = {
|
|
197
187
|
name: $prefix + "ChartFunnel",
|
|
198
188
|
mixins: [Core],
|
|
199
189
|
data: function data() {
|
|
@@ -212,16 +202,23 @@ var __vue2_script = {
|
|
|
212
202
|
}
|
|
213
203
|
}
|
|
214
204
|
};
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
205
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
206
|
+
return openBlock(), createElementBlock(
|
|
207
|
+
"div",
|
|
208
|
+
{
|
|
209
|
+
class: "hui-chart chart-box",
|
|
210
|
+
ref: "chartRef",
|
|
211
|
+
style: normalizeStyle({
|
|
212
|
+
width: _ctx.width,
|
|
213
|
+
height: _ctx.height
|
|
214
|
+
})
|
|
215
|
+
},
|
|
216
|
+
null,
|
|
217
|
+
4
|
|
218
|
+
/* STYLE */
|
|
219
|
+
);
|
|
221
220
|
}
|
|
222
|
-
var HuiChartsFunnel = /* @__PURE__ */
|
|
223
|
-
return __component__.exports;
|
|
224
|
-
}();
|
|
221
|
+
var HuiChartsFunnel = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
225
222
|
HuiChartsFunnel.install = function(Vue) {
|
|
226
223
|
Vue.component(HuiChartsFunnel.name, HuiChartsFunnel);
|
|
227
224
|
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-huicharts-funnel",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.22.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@opentinyvue/vue-huicharts-core": "~
|
|
11
|
-
"@opentinyvue/vue-common": "~
|
|
10
|
+
"@opentinyvue/vue-huicharts-core": "~3.22.0",
|
|
11
|
+
"@opentinyvue/vue-common": "~3.22.0"
|
|
12
12
|
},
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"types": "index.d.ts",
|
|
@@ -1,6 +1,218 @@
|
|
|
1
|
-
declare const _default: import("vue/
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{}, {}, {
|
|
2
2
|
iChartName: string;
|
|
3
|
-
}, {
|
|
3
|
+
}, {}, {
|
|
4
4
|
updateChart(): void;
|
|
5
|
-
},
|
|
5
|
+
}, {
|
|
6
|
+
name: string;
|
|
7
|
+
emits: string[];
|
|
8
|
+
props: {
|
|
9
|
+
data: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
default(): {};
|
|
12
|
+
};
|
|
13
|
+
settings: {
|
|
14
|
+
type: ObjectConstructor;
|
|
15
|
+
default(): {};
|
|
16
|
+
};
|
|
17
|
+
width: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
height: {
|
|
22
|
+
type: StringConstructor;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
events: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
default(): void;
|
|
28
|
+
};
|
|
29
|
+
initOptions: {
|
|
30
|
+
type: ObjectConstructor;
|
|
31
|
+
default(): {};
|
|
32
|
+
};
|
|
33
|
+
tooltipVisible: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
legendVisible: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
legendPosition: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
};
|
|
44
|
+
theme: ObjectConstructor;
|
|
45
|
+
themeName: (StringConstructor | ObjectConstructor)[];
|
|
46
|
+
judgeWidth: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
widthChangeDelay: {
|
|
51
|
+
type: NumberConstructor;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
resizeable: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
changeDelay: {
|
|
59
|
+
type: NumberConstructor;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
dataEmpty: BooleanConstructor;
|
|
63
|
+
beforeConfig: {
|
|
64
|
+
type: FunctionConstructor;
|
|
65
|
+
};
|
|
66
|
+
afterConfig: {
|
|
67
|
+
type: FunctionConstructor;
|
|
68
|
+
};
|
|
69
|
+
afterSetOption: {
|
|
70
|
+
type: FunctionConstructor;
|
|
71
|
+
};
|
|
72
|
+
afterSetOptionOnce: {
|
|
73
|
+
type: FunctionConstructor;
|
|
74
|
+
};
|
|
75
|
+
loading: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
extend: {
|
|
80
|
+
type: ObjectConstructor;
|
|
81
|
+
default(): void;
|
|
82
|
+
};
|
|
83
|
+
tooltipFormatter: {
|
|
84
|
+
type: FunctionConstructor;
|
|
85
|
+
};
|
|
86
|
+
markArea: {
|
|
87
|
+
type: ObjectConstructor;
|
|
88
|
+
};
|
|
89
|
+
markLine: {
|
|
90
|
+
type: ObjectConstructor;
|
|
91
|
+
};
|
|
92
|
+
markPoint: {
|
|
93
|
+
type: ObjectConstructor;
|
|
94
|
+
};
|
|
95
|
+
grid: {
|
|
96
|
+
type: (ObjectConstructor | ArrayConstructor)[];
|
|
97
|
+
};
|
|
98
|
+
colors: {
|
|
99
|
+
type: ArrayConstructor;
|
|
100
|
+
};
|
|
101
|
+
visualMap: (ObjectConstructor | ArrayConstructor)[];
|
|
102
|
+
dataZoom: (ObjectConstructor | ArrayConstructor)[];
|
|
103
|
+
toolbox: (ObjectConstructor | ArrayConstructor)[];
|
|
104
|
+
title: ObjectConstructor;
|
|
105
|
+
legend: (ObjectConstructor | ArrayConstructor)[];
|
|
106
|
+
xAxis: (ObjectConstructor | ArrayConstructor)[];
|
|
107
|
+
yAxis: (ObjectConstructor | ArrayConstructor)[];
|
|
108
|
+
radar: ObjectConstructor;
|
|
109
|
+
tooltip: ObjectConstructor;
|
|
110
|
+
axisPointer: ObjectConstructor;
|
|
111
|
+
brush: (ObjectConstructor | ArrayConstructor)[];
|
|
112
|
+
geo: ObjectConstructor;
|
|
113
|
+
timeline: (ObjectConstructor | ArrayConstructor)[];
|
|
114
|
+
graphic: (ObjectConstructor | ArrayConstructor)[];
|
|
115
|
+
series: (ObjectConstructor | ArrayConstructor)[];
|
|
116
|
+
backgroundColor: (StringConstructor | ObjectConstructor)[];
|
|
117
|
+
textStyle: ObjectConstructor;
|
|
118
|
+
animation: ObjectConstructor;
|
|
119
|
+
options: {
|
|
120
|
+
type: ObjectConstructor;
|
|
121
|
+
default: () => {};
|
|
122
|
+
};
|
|
123
|
+
cancelResizeCheck: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
setOptionOpts: {
|
|
128
|
+
type: ObjectConstructor;
|
|
129
|
+
default(): void;
|
|
130
|
+
};
|
|
131
|
+
colorMode: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
data(): {
|
|
137
|
+
huiChartOption: {};
|
|
138
|
+
eChartOption: {};
|
|
139
|
+
renderOption: {};
|
|
140
|
+
initOpts: {};
|
|
141
|
+
watchToPropsEchartOptions: never[];
|
|
142
|
+
selfChart: string[];
|
|
143
|
+
isSelfChart: boolean;
|
|
144
|
+
chartList: never[];
|
|
145
|
+
once: {};
|
|
146
|
+
store: {};
|
|
147
|
+
};
|
|
148
|
+
computed: {
|
|
149
|
+
delay(): any;
|
|
150
|
+
size(): any;
|
|
151
|
+
setting(): any;
|
|
152
|
+
};
|
|
153
|
+
watch: {
|
|
154
|
+
options: {
|
|
155
|
+
handler(): void;
|
|
156
|
+
deep: boolean;
|
|
157
|
+
};
|
|
158
|
+
setting: {
|
|
159
|
+
handler(): void;
|
|
160
|
+
deep: boolean;
|
|
161
|
+
};
|
|
162
|
+
events: {
|
|
163
|
+
handler(val: any, oldVal: any): void;
|
|
164
|
+
deep: boolean;
|
|
165
|
+
};
|
|
166
|
+
initOptions: {
|
|
167
|
+
handler(val: any): void;
|
|
168
|
+
deep: boolean;
|
|
169
|
+
};
|
|
170
|
+
judgeWidth: {
|
|
171
|
+
handler(val: any): void;
|
|
172
|
+
};
|
|
173
|
+
delay: {
|
|
174
|
+
handler(val: any): void;
|
|
175
|
+
deep: boolean;
|
|
176
|
+
};
|
|
177
|
+
resizeable: {
|
|
178
|
+
handler(val: any): void;
|
|
179
|
+
};
|
|
180
|
+
setOptionOpts: {
|
|
181
|
+
handler(val: any): void;
|
|
182
|
+
deep: boolean;
|
|
183
|
+
};
|
|
184
|
+
loading(val: any): void;
|
|
185
|
+
dataEmpty(val: any): void;
|
|
186
|
+
size: {
|
|
187
|
+
handler(): void;
|
|
188
|
+
};
|
|
189
|
+
colors: {
|
|
190
|
+
handler(): void;
|
|
191
|
+
deep: boolean;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
methods: {
|
|
195
|
+
selfSetting(options: any): void;
|
|
196
|
+
setAnimation(options: any): void;
|
|
197
|
+
applyMarks(options: any): void;
|
|
198
|
+
applyExtend(huiChartOption: any): any;
|
|
199
|
+
refreshChart(): void;
|
|
200
|
+
renderChart(huiChartOption: any): void;
|
|
201
|
+
addEvents(val: any): void;
|
|
202
|
+
removeEvents(oldVal: any): void;
|
|
203
|
+
resize(): void;
|
|
204
|
+
afterConfigFn(huiChartOption: any): any;
|
|
205
|
+
beforeConfigFn(data: any): any;
|
|
206
|
+
isStack(): boolean;
|
|
207
|
+
calcColors({ len, type, isStack }: {
|
|
208
|
+
len: any;
|
|
209
|
+
type: any;
|
|
210
|
+
isStack: any;
|
|
211
|
+
}): string[];
|
|
212
|
+
computedChartColor(): any;
|
|
213
|
+
};
|
|
214
|
+
created(): void;
|
|
215
|
+
mounted(): void;
|
|
216
|
+
beforeUnmount(): void;
|
|
217
|
+
}, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>;
|
|
6
218
|
export default _default;
|