Open zyuan8591 opened 1 year ago
const props = defineProps({ name: { type: String, }, }); const emit = defineEmits(["update:modelValue"]); const userName = computed({ get() { return props.name; }, set(newValue) { emit("update:modelValue", newValue); }, });