diff --git a/src/form/input.js b/src/form/input.js index 05df8bd..e9bce9f 100644 --- a/src/form/input.js +++ b/src/form/input.js @@ -24,8 +24,8 @@ class Input extends Component { icon: '', size: 'l', placeholder: '', - maxlength: null, - minlength: null, + maxlength: { type: Number, default: null }, + minlength: { type: Number, default: null }, value: { type: String, default: '', diff --git a/src/form/number.js b/src/form/number.js index 602efee..7321389 100644 --- a/src/form/number.js +++ b/src/form/number.js @@ -10,8 +10,8 @@ class WcNumber extends Component { static props = { type: 'primary', size: 'l', - max: null, - min: null, + max: { type: Number, default: null }, + min: { type: Number, default: null }, step: 1, value: { type: Number, diff --git a/src/form/textarea.js b/src/form/textarea.js index 2a19ddf..d8bb10c 100644 --- a/src/form/textarea.js +++ b/src/form/textarea.js @@ -19,10 +19,10 @@ class TextArea extends Component { readOnly: false, disabled: false, autosize: false, - maxheight: null, - minheight: null, - maxlength: null, - minlength: null, + maxheight: { type: Number, default: null }, + minheight: { type: Number, default: null }, + maxlength: { type: Number, default: null }, + minlength: { type: Number, default: null }, showLimit: false, lazy: 0 // 并发拦截时间, 单位毫秒 } diff --git a/src/image/index.js b/src/image/index.js index 068c38a..a335b0c 100644 --- a/src/image/index.js +++ b/src/image/index.js @@ -12,7 +12,7 @@ class Image extends Component { src: '', fit: 'fill', lazy: false, - referrerPolicy: null, + referrerPolicy: { type: String, default: null }, alt: { type: String, default: null