mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-05 10:22:44 +08:00
57 lines
1.0 KiB
JavaScript
57 lines
1.0 KiB
JavaScript
export const commonProps = {
|
|
value: String,
|
|
placeholder: String,
|
|
placeholderStyle: String,
|
|
placeholderClass: String,
|
|
disabled: Boolean,
|
|
maxlength: {
|
|
type: Number,
|
|
value: -1,
|
|
},
|
|
cursorSpacing: {
|
|
type: Number,
|
|
value: 50,
|
|
},
|
|
autoFocus: Boolean,
|
|
focus: Boolean,
|
|
cursor: {
|
|
type: Number,
|
|
value: -1,
|
|
},
|
|
selectionStart: {
|
|
type: Number,
|
|
value: -1,
|
|
},
|
|
selectionEnd: {
|
|
type: Number,
|
|
value: -1,
|
|
},
|
|
adjustPosition: {
|
|
type: Boolean,
|
|
value: true,
|
|
},
|
|
holdKeyboard: Boolean,
|
|
};
|
|
export const inputProps = {
|
|
type: {
|
|
type: String,
|
|
value: 'text',
|
|
},
|
|
password: Boolean,
|
|
confirmType: String,
|
|
confirmHold: Boolean,
|
|
alwaysEmbed: Boolean,
|
|
};
|
|
export const textareaProps = {
|
|
autoHeight: Boolean,
|
|
fixed: Boolean,
|
|
showConfirmBar: {
|
|
type: Boolean,
|
|
value: true,
|
|
},
|
|
disableDefaultPadding: {
|
|
type: Boolean,
|
|
value: true,
|
|
},
|
|
};
|