<script setup>
import { ref, watchEffect, defineProps, defineEmits } from "vue";
const props = defineProps({ show: String });
const emit = defineEmits(["up"]);
let isshow = ref(props.show);
watchEffect(() => {});
</script>
引用文件在上面
其余就是常用常量
props:setup第一个函数
emit:context:第二个函数
isshow:自己需要的变量
watcheffect:变量监听