123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- export const commonProps = {
- value: {
- type: String,
- observer(value) {
- if (value !== this.value) {
- this.setData({ innerValue: value });
- this.value = value;
- }
- },
- },
- 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,
- };
- export const textareaProps = {
- autoHeight: Boolean,
- fixed: Boolean,
- showConfirmBar: {
- type: Boolean,
- value: true,
- },
- disableDefaultPadding: {
- type: Boolean,
- value: true,
- },
- };
|