mirror of
https://github.com/element-plus/element-plus.git
synced 2025-04-12 16:40:36 +08:00
Fix/message-box: messageBox prompt default value is null (#642)
* fix(message-box): fix validate failed style error * fix(input): fix input's value is a 'null' string when modelValue is null
This commit is contained in:
parent
95d28d48ea
commit
7897fa1ba4
@ -243,7 +243,7 @@ export default defineComponent({
|
||||
resize: props.resize,
|
||||
}))
|
||||
const inputDisabled = computed(() => props.disabled || elForm.disabled)
|
||||
const nativeInputValue = computed(() => String(props.modelValue))
|
||||
const nativeInputValue = computed(() => (props.modelValue === null || props.modelValue === undefined) ? '' : String(props.modelValue))
|
||||
const upperLimit = computed(() => ctx.attrs.maxlength)
|
||||
const showClear = computed(() => {
|
||||
return props.clearable &&
|
||||
|
@ -77,7 +77,7 @@
|
||||
color: $--messagebox-content-color;
|
||||
font-size: $--messagebox-content-font-size;
|
||||
}
|
||||
|
||||
|
||||
@include e(container) {
|
||||
position: relative;
|
||||
}
|
||||
@ -85,7 +85,7 @@
|
||||
@include e(input) {
|
||||
padding-top: 15px;
|
||||
|
||||
& input.invalid {
|
||||
& div.invalid > input {
|
||||
border-color: $--color-danger;
|
||||
&:focus {
|
||||
border-color: $--color-danger;
|
||||
|
Loading…
x
Reference in New Issue
Block a user