UNPKG

@opensig/opendesign

Version:

<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>

120 lines (119 loc) 1.76 kB
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const inInputProps = { /** * 下拉框的值 * v-model 受控 */ modelValue: { type: String }, /** * 下拉框的默认值 * 非受控 */ defaultValue: { type: String }, /** * 是否是密码输入 */ type: { type: String, default: "text" }, /** * 提示文本 */ placeholder: { type: String }, /** * input id, 用于label关联 */ inputId: { type: String }, /** * 是否禁用 */ disabled: { type: Boolean }, /** * 是否只读 */ readonly: { type: Boolean }, /** * 是否可以清除 */ clearable: { type: Boolean }, /** * 最小字符长度 */ minLength: { type: Number }, /** * 最大字符长度 */ maxLength: { type: Number }, /** * 获取长度方法 */ getLength: { type: Function }, /** * 超过最大字符长度时是否允许输入 */ inputOnOutlimit: { type: Boolean, default: true }, /** * 对值格式化,控制显示格式 */ format: { type: Function }, /** * 判断值的有效性 */ validate: { type: Function }, /** * 输入为无效值时,在blur/pressEnter时的回调,返回值为纠正后的值 */ valueOnInvalidChange: { type: Function }, /** * 显示密码的方式 */ showPasswordEvent: { type: String, default: "pointerdown" }, /** * 是否自动适配内容宽度 */ autoWidth: { type: Boolean }, /** * 密码单个字符占位符 */ passwordPlaceholder: { type: String, default: "•" } }; exports.inInputProps = inInputProps;