@mptw/skylens-ui 1.4.71 → 1.4.72
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/components/SLMapChart.vue +13 -1
- package/package.json +1 -1
|
@@ -5,6 +5,8 @@
|
|
|
5
5
|
:option="formatedOption"
|
|
6
6
|
autoresize
|
|
7
7
|
@click="onClicked"
|
|
8
|
+
@mouseover="onMouseOvered"
|
|
9
|
+
@mouseout="onMouseOuted"
|
|
8
10
|
ref="chartComp"
|
|
9
11
|
).vchart
|
|
10
12
|
</template>
|
|
@@ -97,7 +99,7 @@ export default defineComponent({
|
|
|
97
99
|
default: false,
|
|
98
100
|
},
|
|
99
101
|
},
|
|
100
|
-
emits: ["click"],
|
|
102
|
+
emits: ["click", 'mouseover', 'mouseout'],
|
|
101
103
|
setup(props, { emit }) {
|
|
102
104
|
const { option } = toRefs(props);
|
|
103
105
|
|
|
@@ -133,6 +135,14 @@ export default defineComponent({
|
|
|
133
135
|
});
|
|
134
136
|
}
|
|
135
137
|
|
|
138
|
+
function onMouseOvered(e: any) {
|
|
139
|
+
emit("mouseover", e);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function onMouseOuted(e: any) {
|
|
143
|
+
emit("mouseout", e);
|
|
144
|
+
}
|
|
145
|
+
|
|
136
146
|
onMounted(() => {
|
|
137
147
|
loadMapJson();
|
|
138
148
|
});
|
|
@@ -140,6 +150,8 @@ export default defineComponent({
|
|
|
140
150
|
return {
|
|
141
151
|
formatedOption,
|
|
142
152
|
onClicked,
|
|
153
|
+
onMouseOvered,
|
|
154
|
+
onMouseOuted,
|
|
143
155
|
};
|
|
144
156
|
},
|
|
145
157
|
});
|