mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-23 09:52:57 +08:00
docs(TreeSelect): fix setup
This commit is contained in:
parent
25634382f6
commit
039732d4be
@ -149,7 +149,7 @@ export default {
|
|||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
setup() {
|
||||||
const activeIndex = ref(0);
|
const activeIndex = ref(0);
|
||||||
return {
|
return {
|
||||||
activeIndex,
|
activeIndex,
|
||||||
|
@ -157,7 +157,7 @@ export default {
|
|||||||
import { ref } from 'vue';
|
import { ref } from 'vue';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
setup() {
|
||||||
const activeIndex = ref(0);
|
const activeIndex = ref(0);
|
||||||
return {
|
return {
|
||||||
activeIndex,
|
activeIndex,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user