修复组件属性定义
parent
9cacff73d2
commit
b1acc2cad8
|
@ -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: '',
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 // 并发拦截时间, 单位毫秒
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue