UNPKG

hongluan-ui

Version:
121 lines (116 loc) 2.59 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var shared = require('@vue/shared'); require('../../../constants/index.js'); require('../../../utils/index.js'); require('../../../hooks/index.js'); var validator = require('../../../utils/vue/validator.js'); var index = require('../../../hooks/use-aria/index.js'); var event = require('../../../constants/event.js'); const inputProps = { id: { type: String, default: void 0 }, modelValue: { type: [String, Number, Object], default: "" }, maxlength: { type: [String, Number] }, minlength: { type: [String, Number] }, nativeType: { type: String, default: "text" }, size: { type: String, validator: validator.isValidComponentSize }, resize: { type: String, validator: (val) => ["none", "both", "horizontal", "vertical"].includes(val) }, rows: { type: Number, default: 3 }, autosize: { type: [Boolean, Object], default: false }, autocomplete: { type: String, default: "off" }, type: { type: String, validator: validator.isValidComponentType }, formatter: { type: Function }, parser: { type: Function }, placeholder: { type: String }, form: { type: String }, disabled: { type: Boolean, default: false }, readonly: Boolean, clearable: Boolean, showPassword: Boolean, showWordLimit: Boolean, block: Boolean, label: { type: String, default: void 0 }, containerRole: { type: String, default: void 0 }, tabindex: { type: [String, Number], default: 0 }, validateEvent: { type: Boolean, default: true }, round: Boolean, fill: Boolean, thin: Boolean, inputStyle: { type: Object, default: () => ({}) }, autofocus: Boolean, ...index.useAriaProps(["ariaLabel"]) }; const inputEmits = { [event.UPDATE_MODEL_EVENT]: (value) => shared.isString(value), input: (value) => shared.isString(value), change: (value) => shared.isString(value), focus: (evt) => evt instanceof FocusEvent, blur: (evt) => evt instanceof FocusEvent, clear: () => true, mouseleave: (evt) => evt instanceof MouseEvent, mouseenter: (evt) => evt instanceof MouseEvent, keydown: (evt) => evt instanceof Event, compositionstart: (evt) => evt instanceof CompositionEvent, compositionupdate: (evt) => evt instanceof CompositionEvent, compositionend: (evt) => evt instanceof CompositionEvent }; exports.inputEmits = inputEmits; exports.inputProps = inputProps; //# sourceMappingURL=input.js.map