@opentinyvue/vue-huicharts-bmap 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 +49 -51
- package/package.json +3 -3
- package/src/baidu-map.vue.d.ts +215 -3
package/lib/index.js
CHANGED
|
@@ -1,36 +1,40 @@
|
|
|
1
1
|
import 'echarts/extension/bmap/bmap';
|
|
2
2
|
import Core from '@opentinyvue/vue-huicharts-core';
|
|
3
3
|
import { $prefix } from '@opentinyvue/vue-common';
|
|
4
|
+
import { openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot } from 'vue';
|
|
4
5
|
|
|
5
|
-
function
|
|
6
|
-
var
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
hook = injectStyles;
|
|
6
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
7
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
8
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
9
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
10
|
+
t && (r = t);
|
|
11
|
+
var o = 0;
|
|
12
|
+
return function() {
|
|
13
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
14
|
+
};
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
} else {
|
|
25
|
-
var existing = options.beforeCreate;
|
|
26
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
27
|
-
}
|
|
16
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17
|
+
}
|
|
18
|
+
function _unsupportedIterableToArray(r, a) {
|
|
19
|
+
if (r) {
|
|
20
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
21
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
22
|
+
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;
|
|
28
23
|
}
|
|
29
|
-
return {
|
|
30
|
-
exports: scriptExports,
|
|
31
|
-
options
|
|
32
|
-
};
|
|
33
24
|
}
|
|
25
|
+
function _arrayLikeToArray(r, a) {
|
|
26
|
+
(null == a || a > r.length) && (a = r.length);
|
|
27
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
31
|
+
var target = sfc.__vccOpts || sfc;
|
|
32
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
33
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
34
|
+
target[key] = val;
|
|
35
|
+
}
|
|
36
|
+
return target;
|
|
37
|
+
};
|
|
34
38
|
|
|
35
39
|
function _extends() {
|
|
36
40
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
@@ -41,22 +45,7 @@ function _extends() {
|
|
|
41
45
|
return n;
|
|
42
46
|
}, _extends.apply(null, arguments);
|
|
43
47
|
}
|
|
44
|
-
var
|
|
45
|
-
var _vm = this;
|
|
46
|
-
var _h = _vm.$createElement;
|
|
47
|
-
var _c = _vm._self._c || _h;
|
|
48
|
-
return _c("div", {
|
|
49
|
-
staticClass: "hui-chart chart-box"
|
|
50
|
-
}, [_c("div", {
|
|
51
|
-
ref: "chartRef",
|
|
52
|
-
style: {
|
|
53
|
-
width: _vm.width,
|
|
54
|
-
height: _vm.height
|
|
55
|
-
}
|
|
56
|
-
}), _vm._t("default")], 2);
|
|
57
|
-
};
|
|
58
|
-
var staticRenderFns = [];
|
|
59
|
-
var __vue2_script = {
|
|
48
|
+
var _sfc_main = {
|
|
60
49
|
name: $prefix + "ChartBaiduMap",
|
|
61
50
|
mixins: [Core],
|
|
62
51
|
data: function data() {
|
|
@@ -96,16 +85,25 @@ var __vue2_script = {
|
|
|
96
85
|
}
|
|
97
86
|
}
|
|
98
87
|
};
|
|
99
|
-
var
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
88
|
+
var _hoisted_1 = {
|
|
89
|
+
class: "hui-chart chart-box"
|
|
90
|
+
};
|
|
91
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
92
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
ref: "chartRef",
|
|
96
|
+
style: normalizeStyle({
|
|
97
|
+
width: _ctx.width,
|
|
98
|
+
height: _ctx.height
|
|
99
|
+
})
|
|
100
|
+
},
|
|
101
|
+
null,
|
|
102
|
+
4
|
|
103
|
+
/* STYLE */
|
|
104
|
+
), renderSlot(_ctx.$slots, "default")]);
|
|
105
105
|
}
|
|
106
|
-
var BaiduMap = /* @__PURE__ */
|
|
107
|
-
return __component__.exports;
|
|
108
|
-
}();
|
|
106
|
+
var BaiduMap = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
109
107
|
BaiduMap.install = function(Vue) {
|
|
110
108
|
Vue.component(BaiduMap.name, BaiduMap);
|
|
111
109
|
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-huicharts-bmap",
|
|
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",
|
package/src/baidu-map.vue.d.ts
CHANGED
|
@@ -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;
|