@aplus-frontend/ui
Version:
131 lines (130 loc) • 8.23 kB
TypeScript
import { ApFieldText, ApFieldPassword } from './text';
import { default as ApFieldCheckbox } from './checkbox/index.vue';
import { default as ApFieldDate } from './date/index.vue';
import { default as ApFieldNumber } from './number/index.vue';
import { default as ApFieldRadio } from './radio/index.vue';
import { default as ApFieldSwitch } from './switch/index.vue';
import { default as ApFieldTextArea } from './text-area/index.vue';
import { default as ApFieldDateRange } from './date-range/index.vue';
import { default as ApFieldSelect } from './select/index.vue';
import { default as ApFieldSlider } from './slider/index.vue';
import { default as ApFieldSegmented } from './segmented/index.vue';
import { default as ApFieldRate } from './rate/index.vue';
import { default as ApFieldTreeSelect } from './tree-select/index.vue';
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, GlobalComponents, GlobalDirectives, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
import { ApFieldTextProps, FieldMode, ApFieldTextAreaProps, ApFieldNumberProps, ApFieldDateProps, ApFieldDateRangeProps, ApFieldRadioProps, ApFieldCheckboxProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTreeSelectProps, ApFieldTextPasswordProps } from './interface';
import { LiteralUnion } from '../type';
import { ApFormatPresetType } from './date/interface';
import { CheckboxOptionType } from '@aplus-frontend/antdv';
export type FieldType = {
Text: typeof ApFieldText;
TextArea: typeof ApFieldTextArea;
Number: typeof ApFieldNumber;
Date: typeof ApFieldDate;
DateRange: typeof ApFieldDateRange;
Radio: typeof ApFieldRadio;
Checkbox: typeof ApFieldCheckbox;
Select: typeof ApFieldSelect;
Switch: typeof ApFieldSwitch;
Slider: typeof ApFieldSlider;
Segmented: typeof ApFieldSegmented;
Rate: typeof ApFieldRate;
TreeSelect: typeof ApFieldTreeSelect;
};
export declare const ApFieldRead: {
readonly Text: DefineComponent<ApFieldTextProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextProps> & Readonly<{}>, {
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
mode: FieldMode;
disabled: boolean;
bordered: boolean;
emptyText: string;
lazy: boolean;
allowClear: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
readonly TextArea: DefineComponent<ApFieldTextAreaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextAreaProps> & Readonly<{}>, {
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
mode: FieldMode;
disabled: boolean;
bordered: boolean;
emptyText: string;
lazy: boolean;
allowClear: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
readonly Number: {
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFieldNumberProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
emptyText: string;
thousands: boolean;
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLSpanElement, ComponentProvideOptions, {
P: {};
B: {};
D: {};
C: {};
M: {};
Defaults: {};
}, Readonly< ApFieldNumberProps> & Readonly<{}>, {}, {}, {}, {}, {
emptyText: string;
thousands: boolean;
}>;
__isFragment?: never;
__isTeleport?: never;
__isSuspense?: never;
} & ComponentOptionsBase<Readonly< ApFieldNumberProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
emptyText: string;
thousands: boolean;
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
$slots: {
prefix?(_: {}): any;
addonAfter?(_: {}): any;
};
});
readonly Date: DefineComponent<ApFieldDateProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldDateProps> & Readonly<{}>, {
emptyText: string;
format: LiteralUnion<ApFormatPresetType, string>;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
readonly DateRange: DefineComponent<ApFieldDateRangeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldDateRangeProps> & Readonly<{}>, {
emptyText: string;
format: LiteralUnion<ApFormatPresetType, string>;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
readonly Radio: DefineComponent<ApFieldRadioProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldRadioProps> & Readonly<{}>, {
mode: FieldMode;
vertical: boolean;
disabled: boolean;
emptyText: string;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
readonly Checkbox: DefineComponent<ApFieldCheckboxProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldCheckboxProps> & Readonly<{}>, {
mode: FieldMode;
disabled: boolean;
emptyText: string;
options: (string | number | CheckboxOptionType)[];
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
readonly Select: DefineComponent<ApFieldSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldSelectProps> & Readonly<{}>, {
emptyText: string;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
readonly Switch: DefineComponent<ApFieldSwitchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldSwitchProps> & Readonly<{}>, {
size: "small" | "default";
disabled: boolean;
loading: boolean;
emptyText: string;
checkedValue: string | number | boolean;
unCheckedValue: string | number | boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
readonly TreeSelect: DefineComponent<ApFieldTreeSelectProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTreeSelectProps> & Readonly<{}>, {
mode: FieldMode;
emptyText: string;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
readonly Password: DefineComponent<ApFieldTextPasswordProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextPasswordProps> & Readonly<{}>, {
type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
mode: FieldMode;
visible: boolean;
disabled: boolean;
bordered: boolean;
emptyText: string;
lazy: boolean;
allowClear: boolean;
action: string;
visibilityToggle: boolean;
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
};
export declare const ApField: FieldType;
export * from './interface';
export { ApFieldText, ApFieldCheckbox, ApFieldDate, ApFieldNumber, ApFieldRadio, ApFieldSwitch, ApFieldTextArea, ApFieldDateRange, ApFieldSelect, ApFieldPassword, ApFieldSlider, ApFieldSegmented, ApFieldRate, ApFieldTreeSelect };