@mptw/skylens-ui 1.4.69 → 1.4.70
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/SLChart.vue +7 -1
- package/package.json +1 -1
package/components/SLChart.vue
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@mouseover="onMouseOvered"
|
|
12
12
|
@mouseout="onMouseOuted"
|
|
13
13
|
@mousemove="onMouseMoved"
|
|
14
|
+
@legendselected="onLegendSelected"
|
|
14
15
|
ref="chartComp"
|
|
15
16
|
)
|
|
16
17
|
</template>
|
|
@@ -86,7 +87,7 @@ export default defineComponent({
|
|
|
86
87
|
default: false,
|
|
87
88
|
},
|
|
88
89
|
},
|
|
89
|
-
emits: ["click", "highlight", "mouseover", "mouseout", "mousemove"],
|
|
90
|
+
emits: ["click", "highlight", "mouseover", "mouseout", "mousemove", "legendselected"],
|
|
90
91
|
setup(props, { emit }) {
|
|
91
92
|
const { option } = toRefs(props);
|
|
92
93
|
|
|
@@ -160,6 +161,10 @@ export default defineComponent({
|
|
|
160
161
|
chartComp.value.resize();
|
|
161
162
|
}
|
|
162
163
|
|
|
164
|
+
function onLegendSelected(e: any) {
|
|
165
|
+
emit("legendselected", e);
|
|
166
|
+
}
|
|
167
|
+
|
|
163
168
|
return {
|
|
164
169
|
chartComp,
|
|
165
170
|
loadingOptions,
|
|
@@ -170,6 +175,7 @@ export default defineComponent({
|
|
|
170
175
|
onMouseOuted,
|
|
171
176
|
onMouseMoved,
|
|
172
177
|
resize,
|
|
178
|
+
onLegendSelected,
|
|
173
179
|
};
|
|
174
180
|
},
|
|
175
181
|
});
|