修复组件属性定义
parent
9cacff73d2
commit
b1acc2cad8
|
@ -24,8 +24,8 @@ class Input extends Component {
|
||||||
icon: '',
|
icon: '',
|
||||||
size: 'l',
|
size: 'l',
|
||||||
placeholder: '',
|
placeholder: '',
|
||||||
maxlength: null,
|
maxlength: { type: Number, default: null },
|
||||||
minlength: null,
|
minlength: { type: Number, default: null },
|
||||||
value: {
|
value: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
|
|
|
@ -10,8 +10,8 @@ class WcNumber extends Component {
|
||||||
static props = {
|
static props = {
|
||||||
type: 'primary',
|
type: 'primary',
|
||||||
size: 'l',
|
size: 'l',
|
||||||
max: null,
|
max: { type: Number, default: null },
|
||||||
min: null,
|
min: { type: Number, default: null },
|
||||||
step: 1,
|
step: 1,
|
||||||
value: {
|
value: {
|
||||||
type: Number,
|
type: Number,
|
||||||
|
|
|
@ -19,10 +19,10 @@ class TextArea extends Component {
|
||||||
readOnly: false,
|
readOnly: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
autosize: false,
|
autosize: false,
|
||||||
maxheight: null,
|
maxheight: { type: Number, default: null },
|
||||||
minheight: null,
|
minheight: { type: Number, default: null },
|
||||||
maxlength: null,
|
maxlength: { type: Number, default: null },
|
||||||
minlength: null,
|
minlength: { type: Number, default: null },
|
||||||
showLimit: false,
|
showLimit: false,
|
||||||
lazy: 0 // 并发拦截时间, 单位毫秒
|
lazy: 0 // 并发拦截时间, 单位毫秒
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@ class Image extends Component {
|
||||||
src: '',
|
src: '',
|
||||||
fit: 'fill',
|
fit: 'fill',
|
||||||
lazy: false,
|
lazy: false,
|
||||||
referrerPolicy: null,
|
referrerPolicy: { type: String, default: null },
|
||||||
alt: {
|
alt: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null
|
default: null
|
||||||
|
|
Loading…
Reference in New Issue