@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>
89 lines (88 loc) • 1.76 kB
TypeScript
import { ExtractPropTypes, PropType } from 'vue';
import { SizeT } from '../../_utils/types';
export declare const innerInputProps: {
/**
* 大小 SizeT
*/
size: {
type: PropType<SizeT>;
};
/**
* 下拉框的值
* v-model
*/
modelValue: {
type: (NumberConstructor | StringConstructor)[];
};
/**
* 下拉框的默认值
* 非受控
*/
defaultValue: {
type: (NumberConstructor | StringConstructor)[];
};
/**
* 是否是密码输入
*/
type: {
type: PropType<"text" | "password">;
default: string;
};
/**
* 提示文本
*/
placeholder: {
type: StringConstructor;
};
/**
* input id, 用于label关联
*/
inputId: {
type: StringConstructor;
};
/**
* 是否禁用
*/
disabled: {
type: BooleanConstructor;
};
/**
* 是否只读
*/
readonly: {
type: BooleanConstructor;
};
/**
* 是否非法
*/
invalid: {
type: BooleanConstructor;
};
/**
* 是否可以清除
*/
clearable: {
type: BooleanConstructor;
};
/**
* 解析输入框的值
*/
parse: {
type: PropType<(value: string) => string>;
};
/**
* 对值格式化,控制显示格式
* 需搭配parse处理,保证值的正确性
*/
format: {
type: PropType<(value: string | number) => string | number>;
};
/**
* 显示密码的方式
*/
showPasswordEvent: {
type: PropType<"click" | "pointerdown">;
default: string;
};
};
export type InnerInputProps = ExtractPropTypes<typeof innerInputProps>;