@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.
@@ -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
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.4.71",
4
+ "version": "1.4.72",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",