0
点赞
收藏
分享

微信扫一扫

Vue里使用ts

先峰老师 2022-02-04 阅读 47

❗❗❗vue里使用ts注意加setup

<script lang="ts" setup>
import { ref } from "vue";
const dialogVisible = ref(false);
const activeIndex = ref("1");
const activeIndex2 = ref("1");
const handleSelect = (key: string, keyPath: string[]) => {
  console.log(key, keyPath);
};
</script>
举报

相关推荐

0 条评论