mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-09-03 06:39:45 +08:00
parent
0e699d950e
commit
f915fc2333
@ -30,17 +30,15 @@ VantComponent({
|
|||||||
currentIndex: 0
|
currentIndex: 0
|
||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
beforeCreate() {
|
||||||
const { defaultIndex, initialOptions } = this.data;
|
const { defaultIndex, initialOptions } = this.data;
|
||||||
this.set(
|
|
||||||
{
|
this.set({
|
||||||
currentIndex: defaultIndex,
|
currentIndex: defaultIndex,
|
||||||
options: initialOptions
|
options: initialOptions
|
||||||
},
|
}).then(() => {
|
||||||
() => {
|
this.setIndex(defaultIndex);
|
||||||
this.setIndex(defaultIndex);
|
});
|
||||||
}
|
|
||||||
);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user