修复组件属性定义

master
yutent 2023-08-15 11:30:53 +08:00
parent 9cacff73d2
commit b1acc2cad8
4 changed files with 9 additions and 9 deletions

View File

@ -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: '',

View File

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

View File

@ -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 // 并发拦截时间, 单位毫秒
}

View File

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