🐛: layer 类型

This commit is contained in:
sight
2022-07-09 10:32:27 +08:00
parent a939c48b79
commit 04dd4ab102
4 changed files with 27 additions and 23 deletions

View File

@@ -45,13 +45,17 @@ const emit = defineEmits<InputEmits>();
const { t } = useI18n();
const slots = useSlots();
const currentValue = ref<string>(String(props.modelValue == null ? '' : props.modelValue));
const currentValue = ref<string>(
String(props.modelValue == null ? "" : props.modelValue)
);
const hasContent = computed(() => (props.modelValue as string)?.length > 0);
watch(
() => props.modelValue,
() => {
currentValue.value = String(props.modelValue == null ? '' : props.modelValue);
currentValue.value = String(
props.modelValue == null ? "" : props.modelValue
);
}
);