diff --git a/components/input-item/demo/cases/demo5.vue b/components/input-item/demo/cases/demo5.vue index 3501f5dae..d6dff0111 100644 --- a/components/input-item/demo/cases/demo5.vue +++ b/components/input-item/demo/cases/demo5.vue @@ -12,7 +12,6 @@ type="bankCard" title="储蓄卡号" v-model="bankCardNo" - :key="bankCardKey" clearable @blur="checkBankCard" > @@ -43,7 +42,6 @@ export default { data() { return { bankCardNo: '', - bankCardKey: Date.now(), isError: false, } }, @@ -54,7 +52,6 @@ export default { } else { this.isError = false } - this.bankCardKey = Date.now() }, bankCardTip() { Dialog.alert({ diff --git a/components/input-item/index.vue b/components/input-item/index.vue index c3511142e..6df54f953 100644 --- a/components/input-item/index.vue +++ b/components/input-item/index.vue @@ -6,8 +6,8 @@ isTitleLatent ? 'is-title-latent' : '', isInputActive ? 'is-active' : '', isInputFocus ? 'is-focus' : '', - isInputError ? 'is-error' : '', - isInputBrief ? 'with-brief' : '', + isInputError() ? 'is-error' : '', + isInputBrief() && !isInputError() ? 'with-brief' : '', isDisabled ? 'is-disabled': '', isAmount ? 'is-amount': '', clearable ? 'is-clear' : '', @@ -86,14 +86,14 @@
+ errorMsg +
+