@mptw/skylens-ui 1.5.24 → 1.5.25
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/app/components/SLChart.vue +11 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
@mouseout="onMouseOuted"
|
|
13
13
|
@mousemove="onMouseMoved"
|
|
14
14
|
@legendselected="onLegendSelected"
|
|
15
|
+
@selectchanged='onSelectChanged'
|
|
15
16
|
ref="chartComp"
|
|
16
17
|
)
|
|
17
18
|
</template>
|
|
@@ -93,6 +94,7 @@ export default defineComponent({
|
|
|
93
94
|
"mouseout",
|
|
94
95
|
"mousemove",
|
|
95
96
|
"legendselected",
|
|
97
|
+
"selectchanged",
|
|
96
98
|
],
|
|
97
99
|
setup(props, { emit }) {
|
|
98
100
|
const { option } = toRefs(props);
|
|
@@ -171,6 +173,14 @@ export default defineComponent({
|
|
|
171
173
|
emit("legendselected", e);
|
|
172
174
|
}
|
|
173
175
|
|
|
176
|
+
function onSelectChanged(e: {
|
|
177
|
+
isFromClick: boolean;
|
|
178
|
+
fromAction: string;
|
|
179
|
+
fromActionPayload: { dataIndexInside: number; seriesIndex: number };
|
|
180
|
+
}) {
|
|
181
|
+
emit("selectchanged", e);
|
|
182
|
+
}
|
|
183
|
+
|
|
174
184
|
return {
|
|
175
185
|
chartComp,
|
|
176
186
|
loadingOptions,
|
|
@@ -182,6 +192,7 @@ export default defineComponent({
|
|
|
182
192
|
onMouseMoved,
|
|
183
193
|
resize,
|
|
184
194
|
onLegendSelected,
|
|
195
|
+
onSelectChanged,
|
|
185
196
|
};
|
|
186
197
|
},
|
|
187
198
|
});
|