修复组件属性定义

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

View File

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

View File

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

View File

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