//vue3+ts写法
interface Props {
btnText: string;
flag: string;
}
const props = defineProps<Props>();
//vue2写法
const props = ['btnText', 'flag']
//vue3写法
const props = defineProps({
btnText: {
type: String,
},
flag: {
type: String,
}
})