lang="ts" setup这种怎么写 props

lang="ts" setup这种怎么写 props

import { defineProps } from 'vue';

const props = defineProps({
  tags: {
    type: Array as () => string[],
    default: () => [],
  },
});
posted @ 2023-05-11 14:15  yjxQWQ  阅读(58)  评论(0编辑  收藏  举报