From b1acc2cad8efe77178dea928a04f3982be6680c5 Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 15 Aug 2023 11:30:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=84=E4=BB=B6=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/form/input.js | 4 ++-- src/form/number.js | 4 ++-- src/form/textarea.js | 8 ++++---- src/image/index.js | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) 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