|
|
@ -18,7 +18,7 @@ const props = defineProps<Props>() |
|
|
|
|
|
|
|
|
|
|
|
const emits = defineEmits<Emits>() |
|
|
|
const emits = defineEmits<Emits>() |
|
|
|
|
|
|
|
|
|
|
|
let editEnabled = $(inject(EditModeInj)) |
|
|
|
const editEnabled = inject(EditModeInj, ref(false)) |
|
|
|
|
|
|
|
|
|
|
|
let vModel = $(useVModel(props, 'modelValue', emits)) |
|
|
|
let vModel = $(useVModel(props, 'modelValue', emits)) |
|
|
|
|
|
|
|
|
|
|
@ -38,7 +38,7 @@ let isExpanded = $ref(false) |
|
|
|
const clear = () => { |
|
|
|
const clear = () => { |
|
|
|
error = undefined |
|
|
|
error = undefined |
|
|
|
isExpanded = false |
|
|
|
isExpanded = false |
|
|
|
editEnabled = false |
|
|
|
editEnabled.value = false |
|
|
|
|
|
|
|
|
|
|
|
localValue = vModel |
|
|
|
localValue = vModel |
|
|
|
} |
|
|
|
} |
|
|
|