Merge branch 'dev' into next
This commit is contained in:
@@ -54,7 +54,7 @@ export default createComponent({
|
||||
},
|
||||
},
|
||||
|
||||
emits: ['select'],
|
||||
emits: ['select', 'change'],
|
||||
|
||||
setup(props, { emit, slots }) {
|
||||
const root = ref();
|
||||
@@ -172,6 +172,12 @@ export default createComponent({
|
||||
}
|
||||
);
|
||||
|
||||
watch(activeAnchor, (value) => {
|
||||
if (value) {
|
||||
emit('change', value);
|
||||
}
|
||||
});
|
||||
|
||||
const renderIndexes = () =>
|
||||
props.indexList.map((index) => {
|
||||
const active = index === activeAnchor.value;
|
||||
|
||||
Reference in New Issue
Block a user