docs(TreeSelect): fix setup
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user