@mptw/skylens-ui 1.4.71 → 1.4.73

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,9 @@
5
5
  :option="formatedOption"
6
6
  autoresize
7
7
  @click="onClicked"
8
+ @mouseover="onMouseOvered"
9
+ @mouseout="onMouseOuted"
10
+ @selectchanged="onSelectChanged"
8
11
  ref="chartComp"
9
12
  ).vchart
10
13
  </template>
@@ -97,7 +100,7 @@ export default defineComponent({
97
100
  default: false,
98
101
  },
99
102
  },
100
- emits: ["click"],
103
+ emits: ["click", 'mouseover', 'mouseout', 'selectchanged'],
101
104
  setup(props, { emit }) {
102
105
  const { option } = toRefs(props);
103
106
 
@@ -133,6 +136,18 @@ export default defineComponent({
133
136
  });
134
137
  }
135
138
 
139
+ function onMouseOvered(e: any) {
140
+ emit("mouseover", e);
141
+ }
142
+
143
+ function onMouseOuted(e: any) {
144
+ emit("mouseout", e);
145
+ }
146
+
147
+ function onSelectChanged(e: any) {
148
+ emit("selectchanged", e);
149
+ }
150
+
136
151
  onMounted(() => {
137
152
  loadMapJson();
138
153
  });
@@ -140,6 +155,9 @@ export default defineComponent({
140
155
  return {
141
156
  formatedOption,
142
157
  onClicked,
158
+ onMouseOvered,
159
+ onMouseOuted,
160
+ onSelectChanged,
143
161
  };
144
162
  },
145
163
  });
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.73",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",