(null)
- const handleInput = (e: Event) => {
- const value = (e.target as HTMLInputElement).value
- emit('update:modelValue', value)
- emit('change', value)
- }
-
- const handleClear = () => {
- emit('update:modelValue', '')
- inputRef.value?.focus()
- emit('change', '')
- }
-
- const showClear = computed(() => props.clearable && !!props.modelValue && !props.disabled)
+ // 使用统一前缀
+ const prefixCls = getPrefixCls('input')
+ const cls = computed(() => [prefixCls])
return () => (
-