72 lines
2.9 KiB
TypeScript
72 lines
2.9 KiB
TypeScript
|
import type { TUiFiledWrapperProps } from './FieldWrapper.vue';
|
||
|
export type TUiFieldInputProps<T extends string | number | Date> = TUiFiledWrapperProps & {
|
||
|
type?: 'text' | 'number' | 'password' | 'date' | 'checkbox';
|
||
|
modelValue?: T;
|
||
|
placeholder?: string;
|
||
|
};
|
||
|
export type TUiFieldInputEmits = {
|
||
|
(e: 'input', v: Event): void;
|
||
|
(e: 'update:model-value', v?: string | number | Date): void;
|
||
|
(e: 'update:error', v?: string): void;
|
||
|
};
|
||
|
declare const _default: import('./vue/dist/vue.esm-bundler.js').DefineComponent<{
|
||
|
label: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<string>;
|
||
|
};
|
||
|
error: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<string>;
|
||
|
};
|
||
|
disabled: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<boolean>;
|
||
|
};
|
||
|
readonly: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<boolean>;
|
||
|
};
|
||
|
description: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<string>;
|
||
|
};
|
||
|
type: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<"number" | "text" | "checkbox" | "password" | "date">;
|
||
|
};
|
||
|
modelValue: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<any>;
|
||
|
};
|
||
|
placeholder: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<string>;
|
||
|
};
|
||
|
}, {}, unknown, {}, {}, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, import('./vue/dist/vue.esm-bundler.js').ComponentOptionsMixin, {
|
||
|
input: (v: Event) => void;
|
||
|
"update:model-value": (v?: string | number | Date | undefined) => void;
|
||
|
"update:error": (v?: string | undefined) => void;
|
||
|
}, string, import('./vue/dist/vue.esm-bundler.js').VNodeProps & import('./vue/dist/vue.esm-bundler.js').AllowedComponentProps & import('./vue/dist/vue.esm-bundler.js').ComponentCustomProps, Readonly<import('./vue/dist/vue.esm-bundler.js').ExtractPropTypes<{
|
||
|
label: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<string>;
|
||
|
};
|
||
|
error: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<string>;
|
||
|
};
|
||
|
disabled: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<boolean>;
|
||
|
};
|
||
|
readonly: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<boolean>;
|
||
|
};
|
||
|
description: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<string>;
|
||
|
};
|
||
|
type: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<"number" | "text" | "checkbox" | "password" | "date">;
|
||
|
};
|
||
|
modelValue: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<any>;
|
||
|
};
|
||
|
placeholder: {
|
||
|
type: import('./vue/dist/vue.esm-bundler.js').PropType<string>;
|
||
|
};
|
||
|
}>> & {
|
||
|
onInput?: ((v: Event) => any) | undefined;
|
||
|
"onUpdate:model-value"?: ((v?: string | number | Date | undefined) => any) | undefined;
|
||
|
"onUpdate:error"?: ((v?: string | undefined) => any) | undefined;
|
||
|
}, {}, {}>;
|
||
|
export default _default;
|