birdpaper-ui
Version:
一个通用的 vue3 UI组件库。A common vue3 UI component library.
132 lines (131 loc) • 3.51 kB
TypeScript
import { InputSize } from "components/input";
import { PropType } from "vue";
declare const _sfc_main: import("vue").DefineComponent<{
/** 绑定值 Binding value */
modelValue: {
type: PropType<number | "">;
};
/** 输入框尺寸 Size of the input */
size: {
type: PropType<InputSize>;
default: string;
};
/** 是否禁用 Disabled or not */
disabled: {
type: BooleanConstructor;
default: boolean;
};
/** 是否只读状态 Readonly or not */
readonly: {
type: BooleanConstructor;
default: boolean;
};
/** 是否警示状态 Danger or not */
isDanger: {
type: BooleanConstructor;
default: boolean;
};
/** 占位提示文字 The placeholder text */
placeholder: {
type: StringConstructor;
default: string;
};
/** 是否隐藏按钮 */
hideButton: {
type: BooleanConstructor;
default: boolean;
};
/** 数字精度 */
precision: {
type: NumberConstructor;
};
/** 数字变化步长 */
step: {
type: NumberConstructor;
default: number;
};
/** 最小值 */
min: {
type: NumberConstructor;
};
/** 最大值 */
max: {
type: NumberConstructor;
};
}, {
name: string;
inputRef: import("vue").Ref<any>;
global_value: import("vue").Ref<string>;
isMax: import("vue").ComputedRef<boolean>;
isMin: import("vue").ComputedRef<boolean>;
handleStep: (type: string) => void;
onInput: (value: string) => void;
onBlur: () => void;
IconArrowDownSLine: any;
IconArrowUpSLine: any;
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "input" | "blur")[], "update:modelValue" | "input" | "blur", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
/** 绑定值 Binding value */
modelValue: {
type: PropType<number | "">;
};
/** 输入框尺寸 Size of the input */
size: {
type: PropType<InputSize>;
default: string;
};
/** 是否禁用 Disabled or not */
disabled: {
type: BooleanConstructor;
default: boolean;
};
/** 是否只读状态 Readonly or not */
readonly: {
type: BooleanConstructor;
default: boolean;
};
/** 是否警示状态 Danger or not */
isDanger: {
type: BooleanConstructor;
default: boolean;
};
/** 占位提示文字 The placeholder text */
placeholder: {
type: StringConstructor;
default: string;
};
/** 是否隐藏按钮 */
hideButton: {
type: BooleanConstructor;
default: boolean;
};
/** 数字精度 */
precision: {
type: NumberConstructor;
};
/** 数字变化步长 */
step: {
type: NumberConstructor;
default: number;
};
/** 最小值 */
min: {
type: NumberConstructor;
};
/** 最大值 */
max: {
type: NumberConstructor;
};
}>> & {
onInput?: (...args: any[]) => any;
"onUpdate:modelValue"?: (...args: any[]) => any;
onBlur?: (...args: any[]) => any;
}, {
size: InputSize;
disabled: boolean;
readonly: boolean;
isDanger: boolean;
placeholder: string;
hideButton: boolean;
step: number;
}, {}>;
export default _sfc_main;