lang="ts"> interface Props { label: string disabled?: boolean // 省略 } withDefaults(defineProps<Props>(), { disabled: false, // 省略 }) </script> <script setup lang="ts"> import { defineProps, withDefaults } from 'vue'; const props = withDefaults(defineProps<{ label: string; disabled?: boolean; // 省略 }>(), { disabled: false, width: '', // 省略 }); </script>