提交 5afea33b 编写于 作者: Q qiang

fix: field modelValue & value

上级 0838634f
...@@ -189,7 +189,7 @@ function useBase( ...@@ -189,7 +189,7 @@ function useBase(
var maxlength = Number(props.maxlength) var maxlength = Number(props.maxlength)
return isNaN(maxlength) ? 140 : maxlength return isNaN(maxlength) ? 140 : maxlength
}) })
const value = getValueString(props.modelValue || props.value) const value = getValueString(props.modelValue) || getValueString(props.value)
const state: State = reactive({ const state: State = reactive({
value, value,
valueOrigin: value, valueOrigin: value,
......
...@@ -2869,7 +2869,7 @@ function useBase(props2, rootRef, emit2) { ...@@ -2869,7 +2869,7 @@ function useBase(props2, rootRef, emit2) {
var maxlength2 = Number(props2.maxlength); var maxlength2 = Number(props2.maxlength);
return isNaN(maxlength2) ? 140 : maxlength2; return isNaN(maxlength2) ? 140 : maxlength2;
}); });
const value = getValueString(props2.modelValue || props2.value); const value = getValueString(props2.modelValue) || getValueString(props2.value);
const state = vue.reactive({ const state = vue.reactive({
value, value,
valueOrigin: value, valueOrigin: value,
......
...@@ -4656,7 +4656,7 @@ function useBase(props2, rootRef, emit2) { ...@@ -4656,7 +4656,7 @@ function useBase(props2, rootRef, emit2) {
var maxlength2 = Number(props2.maxlength); var maxlength2 = Number(props2.maxlength);
return isNaN(maxlength2) ? 140 : maxlength2; return isNaN(maxlength2) ? 140 : maxlength2;
}); });
const value = getValueString(props2.modelValue || props2.value); const value = getValueString(props2.modelValue) || getValueString(props2.value);
const state2 = reactive({ const state2 = reactive({
value, value,
valueOrigin: value, valueOrigin: value,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册