75 lines
1.4 KiB
JavaScript
75 lines
1.4 KiB
JavaScript
|
|
"use strict";
|
||
|
|
const defInputProps = {
|
||
|
|
valueModel: "",
|
||
|
|
placeholder: "请输入内容",
|
||
|
|
width: "100%",
|
||
|
|
suffix: "",
|
||
|
|
maxLength: 255,
|
||
|
|
type: "text",
|
||
|
|
className: "",
|
||
|
|
placeholderStyle: "color: #ccc;font-size:25rpx;",
|
||
|
|
classInputName: "",
|
||
|
|
textAlign: "left",
|
||
|
|
confirmType: "done",
|
||
|
|
hasClose: false
|
||
|
|
};
|
||
|
|
const wlInputProps = {
|
||
|
|
valueModel: {
|
||
|
|
type: String,
|
||
|
|
default: defInputProps.valueModel
|
||
|
|
},
|
||
|
|
placeholder: {
|
||
|
|
type: String,
|
||
|
|
default: defInputProps.placeholder
|
||
|
|
},
|
||
|
|
width: {
|
||
|
|
type: String,
|
||
|
|
default: defInputProps.width
|
||
|
|
},
|
||
|
|
suffix: {
|
||
|
|
type: String,
|
||
|
|
default: defInputProps.suffix
|
||
|
|
},
|
||
|
|
maxLength: {
|
||
|
|
type: Number,
|
||
|
|
default: defInputProps.maxLength
|
||
|
|
},
|
||
|
|
type: {
|
||
|
|
type: String,
|
||
|
|
default: defInputProps.type
|
||
|
|
},
|
||
|
|
className: {
|
||
|
|
type: String,
|
||
|
|
default: defInputProps.className
|
||
|
|
},
|
||
|
|
placeholderStyle: {
|
||
|
|
type: String,
|
||
|
|
default: defInputProps.placeholderStyle
|
||
|
|
},
|
||
|
|
classInputName: {
|
||
|
|
type: String,
|
||
|
|
default: defInputProps.classInputName
|
||
|
|
},
|
||
|
|
password: {
|
||
|
|
type: Boolean,
|
||
|
|
default: false
|
||
|
|
},
|
||
|
|
textAlign: {
|
||
|
|
type: String,
|
||
|
|
default: defInputProps.textAlign
|
||
|
|
},
|
||
|
|
confirmType: {
|
||
|
|
type: String,
|
||
|
|
default: defInputProps.confirmType
|
||
|
|
},
|
||
|
|
disabled: {
|
||
|
|
type: Boolean,
|
||
|
|
default: false
|
||
|
|
},
|
||
|
|
hasClose: {
|
||
|
|
type: Boolean,
|
||
|
|
default: defInputProps.hasClose
|
||
|
|
}
|
||
|
|
};
|
||
|
|
exports.wlInputProps = wlInputProps;
|