📜 Vue3 script steup , use props

<script setup>
  import { defineProps, reactive } from "vue";

  const props = defineProps({
    no: String,
  });

  const { no } = toRefs(props);

  const state = reactive({
    room: {},
  });
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13

emit 同理 defineEmits