mirror of
https://gitee.com/xiangheng/x_admin.git
synced 2025-11-03 00:14:02 +08:00
升级依赖
This commit is contained in:
@@ -61,7 +61,12 @@ export const inputProps = {
|
||||
/**
|
||||
* 原生属性,最大长度
|
||||
*/
|
||||
maxlength: makeNumberProp(-1),
|
||||
maxlength: {
|
||||
type: Number,
|
||||
// #ifndef MP-ALIPAY
|
||||
default: -1
|
||||
// #endif
|
||||
},
|
||||
/**
|
||||
* 原生属性,禁用
|
||||
*/
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<text
|
||||
:class="[
|
||||
inputValue && String(inputValue).length > 0 ? 'wd-input__count-current' : '',
|
||||
String(inputValue).length > maxlength ? 'is-error' : ''
|
||||
String(inputValue).length > maxlength! ? 'is-error' : ''
|
||||
]"
|
||||
>
|
||||
{{ String(inputValue).length }}
|
||||
|
||||
Reference in New Issue
Block a user