升级依赖

This commit is contained in:
xiangheng
2024-06-05 17:53:40 +08:00
parent facd51c147
commit 593b8e820d
47 changed files with 923 additions and 335 deletions

View File

@@ -61,7 +61,12 @@ export const inputProps = {
/**
* 原生属性,最大长度
*/
maxlength: makeNumberProp(-1),
maxlength: {
type: Number,
// #ifndef MP-ALIPAY
default: -1
// #endif
},
/**
* 原生属性,禁用
*/

View File

@@ -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 }}