@dt-frames/ui 1.0.52 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -1
- package/package.json +62 -40
- package/es/assets/data/icons/actions.d.ts +0 -1
- package/es/assets/data/icons/actions.ts +0 -427
- package/es/assets/data/icons/code.d.ts +0 -1
- package/es/assets/data/icons/code.ts +0 -10
- package/es/assets/data/icons/commuticate.d.ts +0 -1
- package/es/assets/data/icons/commuticate.ts +0 -190
- package/es/assets/data/icons/currency.d.ts +0 -1
- package/es/assets/data/icons/currency.ts +0 -46
- package/es/assets/data/icons/devices.d.ts +0 -1
- package/es/assets/data/icons/devices.ts +0 -128
- package/es/assets/data/icons/edit.d.ts +0 -1
- package/es/assets/data/icons/edit.ts +0 -165
- package/es/assets/data/icons/file.d.ts +0 -1
- package/es/assets/data/icons/file.ts +0 -104
- package/es/assets/data/icons/math.d.ts +0 -1
- package/es/assets/data/icons/math.ts +0 -53
- package/es/assets/data/icons/message.d.ts +0 -1
- package/es/assets/data/icons/message.ts +0 -75
- package/es/assets/data/icons/navigate.d.ts +0 -1
- package/es/assets/data/icons/navigate.ts +0 -181
- package/es/assets/data/icons/other.d.ts +0 -1
- package/es/assets/data/icons/other.ts +0 -333
- package/es/assets/data/icons.d.ts +0 -4
- package/es/assets/data/icons.ts +0 -58
- package/es/assets/imgs/header/avatar.png +0 -0
- package/es/assets/imgs/logo/logo.png +0 -0
- package/es/assets/imgs/table/empty.png +0 -0
- package/es/assets/locales/en.json +0 -97
- package/es/assets/locales/zh.json +0 -100
- package/es/assets/style/index.less +0 -10
- package/es/assets/style/reset.less +0 -17
- package/es/components/container/index.d.ts +0 -3
- package/es/components/container/index.less +0 -85
- package/es/components/container/src/bar.d.ts +0 -14
- package/es/components/container/src/scroll-bar.d.ts +0 -93
- package/es/components/container/src/scroll-container.d.ts +0 -99
- package/es/components/curd/index.d.ts +0 -2
- package/es/components/curd/src/components/dialog.d.ts +0 -1505
- package/es/components/curd/src/components/props.d.ts +0 -34
- package/es/components/curd/src/hooks/useCurd.d.ts +0 -17
- package/es/components/curd/src/types/curd.type.d.ts +0 -22
- package/es/components/forms/index.d.ts +0 -5
- package/es/components/forms/index.less +0 -107
- package/es/components/forms/src/componentMap.d.ts +0 -4
- package/es/components/forms/src/components/formButton.d.ts +0 -83
- package/es/components/forms/src/components/formIcon.d.ts +0 -2866
- package/es/components/forms/src/components/formInputUseDialog.d.ts +0 -911
- package/es/components/forms/src/components/formItem.d.ts +0 -58
- package/es/components/forms/src/components/radioButton.d.ts +0 -33
- package/es/components/forms/src/const/form.const.d.ts +0 -7
- package/es/components/forms/src/hooks/helper.d.ts +0 -8
- package/es/components/forms/src/hooks/useForm.d.ts +0 -5
- package/es/components/forms/src/hooks/useFormActions.d.ts +0 -13
- package/es/components/forms/src/hooks/useFormEvents.d.ts +0 -26
- package/es/components/forms/src/hooks/useFormValue.d.ts +0 -3
- package/es/components/forms/src/hooks/useFormValues.d.ts +0 -14
- package/es/components/forms/src/hooks/useLabelWidth.d.ts +0 -35
- package/es/components/forms/src/index.d.ts +0 -182
- package/es/components/forms/src/prop.d.ts +0 -79
- package/es/components/forms/src/types/form.type.d.ts +0 -115
- package/es/components/icons/index.d.ts +0 -3
- package/es/components/icons/index.less +0 -109
- package/es/components/icons/src/pick-icon.d.ts +0 -441
- package/es/components/icons/src/svg-icon.d.ts +0 -44
- package/es/components/iframe/index.d.ts +0 -2
- package/es/components/iframe/index.less +0 -3
- package/es/components/iframe/src/index.d.ts +0 -967
- package/es/components/iframe/src/index.less +0 -3
- package/es/components/index.d.ts +0 -14
- package/es/components/modal/index.d.ts +0 -3
- package/es/components/modal/index.less +0 -60
- package/es/components/modal/src/components/close-icon.d.ts +0 -309
- package/es/components/modal/src/components/modal-wrap.d.ts +0 -237
- package/es/components/modal/src/components/modal.d.ts +0 -200
- package/es/components/modal/src/components/modalFooter.d.ts +0 -124
- package/es/components/modal/src/hooks/useDrag.d.ts +0 -7
- package/es/components/modal/src/hooks/useFullScreen.d.ts +0 -12
- package/es/components/modal/src/hooks/useModal.d.ts +0 -4
- package/es/components/modal/src/index.d.ts +0 -1190
- package/es/components/modal/src/props.d.ts +0 -93
- package/es/components/modal/src/types/modal.type.d.ts +0 -25
- package/es/components/router/base-router.d.ts +0 -2
- package/es/components/router/index.d.ts +0 -2
- package/es/components/source/index.d.ts +0 -1
- package/es/components/source/src/hooks/useDownload.d.ts +0 -8
- package/es/components/source/src/hooks/useFetch.d.ts +0 -4
- package/es/components/source/src/hooks/useSource.d.ts +0 -43
- package/es/components/source/src/index.d.ts +0 -2
- package/es/components/source/src/types/source.type.d.ts +0 -34
- package/es/components/source/src/types/table.type.d.ts +0 -7
- package/es/components/table/index.d.ts +0 -4
- package/es/components/table/index.less +0 -224
- package/es/components/table/src/components/TableActions.d.ts +0 -1280
- package/es/components/table/src/components/TableHeader.d.ts +0 -28
- package/es/components/table/src/components/TableRender.d.ts +0 -25
- package/es/components/table/src/components/editable/CellComponent.d.ts +0 -14
- package/es/components/table/src/components/editable/EditTableCell.d.ts +0 -88
- package/es/components/table/src/components/editable/componentMap.d.ts +0 -4
- package/es/components/table/src/components/editable/index.d.ts +0 -9
- package/es/components/table/src/components/setting/Column.d.ts +0 -1360
- package/es/components/table/src/components/setting/Download.d.ts +0 -3088
- package/es/components/table/src/components/setting/DownloadCtrl.d.ts +0 -1930
- package/es/components/table/src/components/setting/Fullscreen.d.ts +0 -280
- package/es/components/table/src/components/setting/index.d.ts +0 -26
- package/es/components/table/src/const.d.ts +0 -12
- package/es/components/table/src/hooks/useColumns.d.ts +0 -14
- package/es/components/table/src/hooks/useCustomRow.d.ts +0 -19
- package/es/components/table/src/hooks/useDataSource.d.ts +0 -16
- package/es/components/table/src/hooks/useHeaderCode.d.ts +0 -3
- package/es/components/table/src/hooks/useLoading.d.ts +0 -17
- package/es/components/table/src/hooks/usePagination.d.ts +0 -122
- package/es/components/table/src/hooks/useRowSelection.d.ts +0 -12
- package/es/components/table/src/hooks/useRows.d.ts +0 -5
- package/es/components/table/src/hooks/useTable.d.ts +0 -5
- package/es/components/table/src/hooks/useTableHeader.d.ts +0 -8
- package/es/components/table/src/hooks/useTableInstance.d.ts +0 -15
- package/es/components/table/src/hooks/useTableScroll.d.ts +0 -12
- package/es/components/table/src/index.d.ts +0 -710
- package/es/components/table/src/props.d.ts +0 -208
- package/es/components/table/src/types/table.type.d.ts +0 -111
- package/es/components/table/src/types/tableHeader.type.d.ts +0 -23
- package/es/components/tree/index.d.ts +0 -2
- package/es/components/tree/index.less +0 -53
- package/es/components/tree/src/hooks/useTree.d.ts +0 -14
- package/es/components/tree/src/props.d.ts +0 -108
- package/es/components/tree/src/type/tree.d.ts +0 -85
- package/es/components/tree/src/utils/tree.d.ts +0 -5
- package/es/directives/icon.d.ts +0 -2
- package/es/directives/index.d.ts +0 -6
- package/es/directives/permission.d.ts +0 -2
- package/es/global.d.ts +0 -8
- package/es/index.d.ts +0 -3
- package/es/index.js +0 -10433
- package/es/theme/feature/back-top.d.ts +0 -105
- package/es/theme/feature/index.d.ts +0 -107
- package/es/theme/footer/index.d.ts +0 -30
- package/es/theme/footer/index.less +0 -16
- package/es/theme/header/components/bread-crumb.d.ts +0 -128
- package/es/theme/header/components/fullscreen.d.ts +0 -5
- package/es/theme/header/components/handler.d.ts +0 -2
- package/es/theme/header/components/index.d.ts +0 -11
- package/es/theme/header/components/lang-picker.d.ts +0 -291
- package/es/theme/header/components/logo.d.ts +0 -91
- package/es/theme/header/components/notify.d.ts +0 -268
- package/es/theme/header/components/size.d.ts +0 -282
- package/es/theme/header/components/theme-drawer/feature.d.ts +0 -1113
- package/es/theme/header/components/theme-drawer/index.d.ts +0 -3
- package/es/theme/header/components/theme-drawer/menu-type.d.ts +0 -273
- package/es/theme/header/components/theme-drawer/select-item.d.ts +0 -778
- package/es/theme/header/components/theme-drawer/switch-item.d.ts +0 -297
- package/es/theme/header/components/trigger.d.ts +0 -14
- package/es/theme/header/components/user-info.d.ts +0 -8322
- package/es/theme/header/const/index.d.ts +0 -20
- package/es/theme/header/helper/menu-tree.d.ts +0 -3
- package/es/theme/header/index.less +0 -458
- package/es/theme/header/set-theme.less +0 -68
- package/es/theme/index.d.ts +0 -2
- package/es/theme/sider/components/basic-menu/basic-menu-item.d.ts +0 -123
- package/es/theme/sider/components/basic-menu/basic-menu.d.ts +0 -756
- package/es/theme/sider/components/basic-menu/basic-sub-menu-item.d.ts +0 -254
- package/es/theme/sider/components/basic-menu/menu-item-content.d.ts +0 -36
- package/es/theme/sider/components/drag-bar.d.ts +0 -14
- package/es/theme/sider/components/layout-menu.d.ts +0 -22
- package/es/theme/sider/components/props.d.ts +0 -69
- package/es/theme/sider/components/sider-trigger.d.ts +0 -68
- package/es/theme/sider/helper/sider.d.ts +0 -12
- package/es/theme/sider/helper/split-menu.d.ts +0 -10
- package/es/theme/sider/hooks/useDragLine.d.ts +0 -2
- package/es/theme/sider/hooks/useOpenKeys.d.ts +0 -13
- package/es/theme/sider/index.d.ts +0 -152
- package/es/theme/sider/index.less +0 -212
- package/es/theme/tabs/components/TabContent.d.ts +0 -887
- package/es/theme/tabs/hooks/useMultifyTabs.d.ts +0 -7
- package/es/theme/tabs/hooks/useTabDropdown.d.ts +0 -6
- package/es/theme/tabs/index.less +0 -165
- package/es/theme/tabs/types/tabs.type.d.ts +0 -7
- package/es/theme/theme.less +0 -73
- package/es/theme/transition.less +0 -105
- package/index.html +0 -13
- package/tsconfig.json +0 -28
- package/vite.config.js +0 -10
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Recordable } from "@dt-frames/core";
|
|
2
|
-
import { FormSchema, FormProps, FormActionType } from '../types/form.type';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
schema: {
|
|
5
|
-
type: import("vue").PropType<FormSchema>;
|
|
6
|
-
};
|
|
7
|
-
formProps: {
|
|
8
|
-
type: import("vue").PropType<FormProps>;
|
|
9
|
-
default: () => {};
|
|
10
|
-
};
|
|
11
|
-
defaultValues: {
|
|
12
|
-
type: import("vue").PropType<Recordable<any>>;
|
|
13
|
-
default: () => {};
|
|
14
|
-
};
|
|
15
|
-
formModel: {
|
|
16
|
-
type: import("vue").PropType<Recordable<any>>;
|
|
17
|
-
default: () => {};
|
|
18
|
-
};
|
|
19
|
-
setFormModel: {
|
|
20
|
-
type: import("vue").PropType<(key: string, value: any) => void>;
|
|
21
|
-
};
|
|
22
|
-
formActionType: {
|
|
23
|
-
type: import("vue").PropType<FormActionType>;
|
|
24
|
-
};
|
|
25
|
-
style: {
|
|
26
|
-
type: import("vue").PropType<Recordable<any>>;
|
|
27
|
-
};
|
|
28
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
-
schema: {
|
|
30
|
-
type: import("vue").PropType<FormSchema>;
|
|
31
|
-
};
|
|
32
|
-
formProps: {
|
|
33
|
-
type: import("vue").PropType<FormProps>;
|
|
34
|
-
default: () => {};
|
|
35
|
-
};
|
|
36
|
-
defaultValues: {
|
|
37
|
-
type: import("vue").PropType<Recordable<any>>;
|
|
38
|
-
default: () => {};
|
|
39
|
-
};
|
|
40
|
-
formModel: {
|
|
41
|
-
type: import("vue").PropType<Recordable<any>>;
|
|
42
|
-
default: () => {};
|
|
43
|
-
};
|
|
44
|
-
setFormModel: {
|
|
45
|
-
type: import("vue").PropType<(key: string, value: any) => void>;
|
|
46
|
-
};
|
|
47
|
-
formActionType: {
|
|
48
|
-
type: import("vue").PropType<FormActionType>;
|
|
49
|
-
};
|
|
50
|
-
style: {
|
|
51
|
-
type: import("vue").PropType<Recordable<any>>;
|
|
52
|
-
};
|
|
53
|
-
}>>, {
|
|
54
|
-
formProps: {};
|
|
55
|
-
defaultValues: {};
|
|
56
|
-
formModel: {};
|
|
57
|
-
}>;
|
|
58
|
-
export default _default;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { PropType } from "vue";
|
|
2
|
-
declare type OptionsItem = {
|
|
3
|
-
label: string;
|
|
4
|
-
value: string | number | boolean;
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
};
|
|
7
|
-
declare type RadioItem = string | OptionsItem;
|
|
8
|
-
declare const _default: import("vue").DefineComponent<{
|
|
9
|
-
value: {
|
|
10
|
-
type: PropType<string | number | boolean>;
|
|
11
|
-
};
|
|
12
|
-
options: {
|
|
13
|
-
type: PropType<RadioItem[]>;
|
|
14
|
-
default: () => any[];
|
|
15
|
-
};
|
|
16
|
-
}, {
|
|
17
|
-
attrs: {
|
|
18
|
-
[x: string]: unknown;
|
|
19
|
-
};
|
|
20
|
-
getOptions: import("vue").ComputedRef<OptionsItem[]>;
|
|
21
|
-
state: any;
|
|
22
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
-
value: {
|
|
24
|
-
type: PropType<string | number | boolean>;
|
|
25
|
-
};
|
|
26
|
-
options: {
|
|
27
|
-
type: PropType<RadioItem[]>;
|
|
28
|
-
default: () => any[];
|
|
29
|
-
};
|
|
30
|
-
}>>, {
|
|
31
|
-
options: RadioItem[];
|
|
32
|
-
}>;
|
|
33
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from "../types/form.type";
|
|
2
|
-
import type { ValidationRule } from 'ant-design-vue/lib/form/Form';
|
|
3
|
-
export declare function createPlaceholder(component: ComponentType): string;
|
|
4
|
-
export declare const SINGLE_DATA_TYPE: string[];
|
|
5
|
-
export declare const MULTIFY_DATA_TYPE: string[];
|
|
6
|
-
export declare function setComponentRuleType(rule: ValidationRule, component: ComponentType, valueFormat: string): void;
|
|
7
|
-
export declare function handleInputNumberValue(component?: ComponentType, val?: any): any;
|
|
8
|
-
export declare const datePickerType: string[];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FormActionType, FormProps } from "../types/form.type";
|
|
2
|
-
declare type RegisterFn = (formInstance: FormActionType) => void;
|
|
3
|
-
declare type UseFormReturnType = [RegisterFn, FormActionType];
|
|
4
|
-
export declare function useForm(props: FormProps): UseFormReturnType;
|
|
5
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Recordable, ButtonProps } from "@dt-frames/core";
|
|
2
|
-
import { ComputedRef, Ref } from "vue";
|
|
3
|
-
import { FormProps, FormSchema } from "../types/form.type";
|
|
4
|
-
declare type FormOpt = {
|
|
5
|
-
updateSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
|
|
6
|
-
getProps: ComputedRef<FormProps>;
|
|
7
|
-
getSchema: ComputedRef<FormSchema[]>;
|
|
8
|
-
defaultValue: Ref<Recordable>;
|
|
9
|
-
getFormValues: () => Recordable;
|
|
10
|
-
setFormValues: (values: Recordable) => Promise<void>;
|
|
11
|
-
};
|
|
12
|
-
export declare function useFormActions(opt: FormOpt): ((params: boolean | ButtonProps) => void)[];
|
|
13
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { Recordable } from "@dt-frames/core";
|
|
2
|
-
import { ComputedRef, Ref } from "vue";
|
|
3
|
-
import { FormActionType, FormProps, FormSchema } from "../types/form.type";
|
|
4
|
-
declare type FormEventsType = {
|
|
5
|
-
emit: (event: string, ...args: any[]) => void;
|
|
6
|
-
getProps: ComputedRef<FormProps>;
|
|
7
|
-
getSchema: ComputedRef<FormSchema[]>;
|
|
8
|
-
formModel: Recordable;
|
|
9
|
-
defaultValue: Ref<Recordable>;
|
|
10
|
-
formElRef: Ref<FormActionType>;
|
|
11
|
-
schemaRef: Ref<FormSchema[]>;
|
|
12
|
-
handleFormValues: Function;
|
|
13
|
-
};
|
|
14
|
-
export declare function useFormEvents({ emit, getSchema, formModel, defaultValue, formElRef, schemaRef, handleFormValues }: FormEventsType): {
|
|
15
|
-
updateSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
|
|
16
|
-
resetSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
|
|
17
|
-
clearValidate: (name?: string | string[]) => Promise<void>;
|
|
18
|
-
resetForms: () => void;
|
|
19
|
-
removeFormByName: (names: string | string[]) => void;
|
|
20
|
-
setFormValues: (values: Recordable | null) => Promise<void>;
|
|
21
|
-
appendFormItems: (schema: FormSchema, prefixName?: string, first?: boolean) => void;
|
|
22
|
-
getFormValues: () => any;
|
|
23
|
-
validate: (nameList: (string | number)[]) => Promise<any>;
|
|
24
|
-
validateFields: (nameList: (string | number)[]) => Promise<any>;
|
|
25
|
-
};
|
|
26
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Recordable } from "@dt-frames/core";
|
|
2
|
-
import { ComputedRef, Ref } from "vue";
|
|
3
|
-
import { FormProps, FormSchema } from "../types/form.type";
|
|
4
|
-
declare type FormValueOptions = {
|
|
5
|
-
getProps: ComputedRef<FormProps>;
|
|
6
|
-
defaultValue: Ref<any>;
|
|
7
|
-
getSchema: ComputedRef<FormSchema[]>;
|
|
8
|
-
formModel: Recordable;
|
|
9
|
-
};
|
|
10
|
-
export declare function useFormValues({ defaultValue, getSchema, formModel, getProps }: FormValueOptions): {
|
|
11
|
-
handleFormValues: (values: Recordable) => Recordable<any>;
|
|
12
|
-
initDefault: () => void;
|
|
13
|
-
};
|
|
14
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Ref } from "vue";
|
|
2
|
-
import { FormProps, FormSchema } from "../types/form.type";
|
|
3
|
-
export declare function useLabelWidth(schemaItemRef: Ref<FormSchema>, propsRef: Ref<FormProps>): import("vue").ComputedRef<{
|
|
4
|
-
labelCol: {
|
|
5
|
-
style: {
|
|
6
|
-
textAlign: string;
|
|
7
|
-
};
|
|
8
|
-
span?: string | number;
|
|
9
|
-
order?: string | number;
|
|
10
|
-
offset?: string | number;
|
|
11
|
-
md?: string | number;
|
|
12
|
-
xl?: string | number;
|
|
13
|
-
xxl?: string | number;
|
|
14
|
-
};
|
|
15
|
-
wrapperCol: Partial<import("../types/form.type").ColEx>;
|
|
16
|
-
} | {
|
|
17
|
-
labelCol: {
|
|
18
|
-
style: any;
|
|
19
|
-
span?: string | number;
|
|
20
|
-
order?: string | number;
|
|
21
|
-
offset?: string | number;
|
|
22
|
-
md?: string | number;
|
|
23
|
-
xl?: string | number;
|
|
24
|
-
xxl?: string | number;
|
|
25
|
-
};
|
|
26
|
-
wrapperCol: {
|
|
27
|
-
style: any;
|
|
28
|
-
span?: string | number;
|
|
29
|
-
order?: string | number;
|
|
30
|
-
offset?: string | number;
|
|
31
|
-
md?: string | number;
|
|
32
|
-
xl?: string | number;
|
|
33
|
-
xxl?: string | number;
|
|
34
|
-
};
|
|
35
|
-
}>;
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
2
|
-
import { Recordable, ButtonProps } from '@dt-frames/core';
|
|
3
|
-
import { FormActionType, FormProps, FormSchema } from './types/form.type';
|
|
4
|
-
declare const _default: import("vue").DefineComponent<{
|
|
5
|
-
mode: {
|
|
6
|
-
type: import("vue").PropType<"search" | "dialog">;
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
9
|
-
autoFetch: {
|
|
10
|
-
type: BooleanConstructor;
|
|
11
|
-
default: boolean;
|
|
12
|
-
};
|
|
13
|
-
model: {
|
|
14
|
-
type: import("vue").PropType<Recordable<any>>;
|
|
15
|
-
default: {};
|
|
16
|
-
};
|
|
17
|
-
labelWidth: {
|
|
18
|
-
type: NumberConstructor;
|
|
19
|
-
String: StringConstructor;
|
|
20
|
-
default: number;
|
|
21
|
-
};
|
|
22
|
-
schemas: {
|
|
23
|
-
type: import("vue").PropType<FormSchema[]>;
|
|
24
|
-
default: () => any[];
|
|
25
|
-
};
|
|
26
|
-
compact: {
|
|
27
|
-
type: BooleanConstructor;
|
|
28
|
-
default: any;
|
|
29
|
-
};
|
|
30
|
-
size: {
|
|
31
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
32
|
-
};
|
|
33
|
-
formActions: {
|
|
34
|
-
type: import("vue").PropType<FormActionType>;
|
|
35
|
-
};
|
|
36
|
-
labelAlign: {
|
|
37
|
-
type: import("vue").PropType<"left" | "right">;
|
|
38
|
-
};
|
|
39
|
-
rowProps: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
|
40
|
-
align: import("vue").PropType<"top" | "bottom" | "middle" | "stretch">;
|
|
41
|
-
justify: import("vue").PropType<"space-around" | "space-between" | "center" | "end" | "start">;
|
|
42
|
-
prefixCls: StringConstructor;
|
|
43
|
-
gutter: {
|
|
44
|
-
type: import("vue").PropType<import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter]>;
|
|
45
|
-
default: import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter];
|
|
46
|
-
};
|
|
47
|
-
wrap: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: any;
|
|
50
|
-
};
|
|
51
|
-
}>>>;
|
|
52
|
-
colProps: import("vue").PropType<import("./types/form.type").ColEx>;
|
|
53
|
-
}, {
|
|
54
|
-
getFormBindValue: import("vue").ComputedRef<Recordable<any>>;
|
|
55
|
-
getFormClass: import("vue").ComputedRef<(string | {
|
|
56
|
-
'basic-form--compact': boolean;
|
|
57
|
-
})[]>;
|
|
58
|
-
formModel: Recordable<any>;
|
|
59
|
-
getLayout: import("vue").ComputedRef<"vertical" | "horizontal" | "inline">;
|
|
60
|
-
getProps: import("vue").ComputedRef<FormProps>;
|
|
61
|
-
getSchema: import("vue").ComputedRef<FormSchema[]>;
|
|
62
|
-
defaultValue: Ref<Recordable<any>>;
|
|
63
|
-
formActionMethods: FormActionType;
|
|
64
|
-
formElRef: any;
|
|
65
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
-
mode: {
|
|
67
|
-
type: import("vue").PropType<"search" | "dialog">;
|
|
68
|
-
default: string;
|
|
69
|
-
};
|
|
70
|
-
autoFetch: {
|
|
71
|
-
type: BooleanConstructor;
|
|
72
|
-
default: boolean;
|
|
73
|
-
};
|
|
74
|
-
model: {
|
|
75
|
-
type: import("vue").PropType<Recordable<any>>;
|
|
76
|
-
default: {};
|
|
77
|
-
};
|
|
78
|
-
labelWidth: {
|
|
79
|
-
type: NumberConstructor;
|
|
80
|
-
String: StringConstructor;
|
|
81
|
-
default: number;
|
|
82
|
-
};
|
|
83
|
-
schemas: {
|
|
84
|
-
type: import("vue").PropType<FormSchema[]>;
|
|
85
|
-
default: () => any[];
|
|
86
|
-
};
|
|
87
|
-
compact: {
|
|
88
|
-
type: BooleanConstructor;
|
|
89
|
-
default: any;
|
|
90
|
-
};
|
|
91
|
-
size: {
|
|
92
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
93
|
-
};
|
|
94
|
-
formActions: {
|
|
95
|
-
type: import("vue").PropType<FormActionType>;
|
|
96
|
-
};
|
|
97
|
-
labelAlign: {
|
|
98
|
-
type: import("vue").PropType<"left" | "right">;
|
|
99
|
-
};
|
|
100
|
-
rowProps: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
|
101
|
-
align: import("vue").PropType<"top" | "bottom" | "middle" | "stretch">;
|
|
102
|
-
justify: import("vue").PropType<"space-around" | "space-between" | "center" | "end" | "start">;
|
|
103
|
-
prefixCls: StringConstructor;
|
|
104
|
-
gutter: {
|
|
105
|
-
type: import("vue").PropType<import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter]>;
|
|
106
|
-
default: import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter];
|
|
107
|
-
};
|
|
108
|
-
wrap: {
|
|
109
|
-
type: BooleanConstructor;
|
|
110
|
-
default: any;
|
|
111
|
-
};
|
|
112
|
-
}>>>;
|
|
113
|
-
colProps: import("vue").PropType<import("./types/form.type").ColEx>;
|
|
114
|
-
}>> & {
|
|
115
|
-
onRegister?: (...args: any[]) => any;
|
|
116
|
-
onReset?: (...args: any[]) => any;
|
|
117
|
-
}>>;
|
|
118
|
-
setFormModel: (key: string, value: any) => void;
|
|
119
|
-
handleMethod: (params: boolean | ButtonProps) => void;
|
|
120
|
-
handleEnterPress: () => void;
|
|
121
|
-
getActionsProps: import("vue").ComputedRef<Recordable<any>>;
|
|
122
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("register" | "reset")[], "register" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
123
|
-
mode: {
|
|
124
|
-
type: import("vue").PropType<"search" | "dialog">;
|
|
125
|
-
default: string;
|
|
126
|
-
};
|
|
127
|
-
autoFetch: {
|
|
128
|
-
type: BooleanConstructor;
|
|
129
|
-
default: boolean;
|
|
130
|
-
};
|
|
131
|
-
model: {
|
|
132
|
-
type: import("vue").PropType<Recordable<any>>;
|
|
133
|
-
default: {};
|
|
134
|
-
};
|
|
135
|
-
labelWidth: {
|
|
136
|
-
type: NumberConstructor;
|
|
137
|
-
String: StringConstructor;
|
|
138
|
-
default: number;
|
|
139
|
-
};
|
|
140
|
-
schemas: {
|
|
141
|
-
type: import("vue").PropType<FormSchema[]>;
|
|
142
|
-
default: () => any[];
|
|
143
|
-
};
|
|
144
|
-
compact: {
|
|
145
|
-
type: BooleanConstructor;
|
|
146
|
-
default: any;
|
|
147
|
-
};
|
|
148
|
-
size: {
|
|
149
|
-
type: import("vue").PropType<"small" | "default" | "large">;
|
|
150
|
-
};
|
|
151
|
-
formActions: {
|
|
152
|
-
type: import("vue").PropType<FormActionType>;
|
|
153
|
-
};
|
|
154
|
-
labelAlign: {
|
|
155
|
-
type: import("vue").PropType<"left" | "right">;
|
|
156
|
-
};
|
|
157
|
-
rowProps: import("vue").PropType<Partial<import("vue").ExtractPropTypes<{
|
|
158
|
-
align: import("vue").PropType<"top" | "bottom" | "middle" | "stretch">;
|
|
159
|
-
justify: import("vue").PropType<"space-around" | "space-between" | "center" | "end" | "start">;
|
|
160
|
-
prefixCls: StringConstructor;
|
|
161
|
-
gutter: {
|
|
162
|
-
type: import("vue").PropType<import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter]>;
|
|
163
|
-
default: import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter];
|
|
164
|
-
};
|
|
165
|
-
wrap: {
|
|
166
|
-
type: BooleanConstructor;
|
|
167
|
-
default: any;
|
|
168
|
-
};
|
|
169
|
-
}>>>;
|
|
170
|
-
colProps: import("vue").PropType<import("./types/form.type").ColEx>;
|
|
171
|
-
}>> & {
|
|
172
|
-
onRegister?: (...args: any[]) => any;
|
|
173
|
-
onReset?: (...args: any[]) => any;
|
|
174
|
-
}, {
|
|
175
|
-
mode: "search" | "dialog";
|
|
176
|
-
model: {};
|
|
177
|
-
labelWidth: number;
|
|
178
|
-
autoFetch: boolean;
|
|
179
|
-
schemas: FormSchema[];
|
|
180
|
-
compact: boolean;
|
|
181
|
-
}>;
|
|
182
|
-
export default _default;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { Recordable } from "@dt-frames/core";
|
|
2
|
-
import { PropType } from "vue";
|
|
3
|
-
import { ColEx, FormActionType, FormProps, FormSchema } from "./types/form.type";
|
|
4
|
-
export declare const BasicProps: {
|
|
5
|
-
mode: {
|
|
6
|
-
type: PropType<"search" | "dialog">;
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
9
|
-
autoFetch: {
|
|
10
|
-
type: BooleanConstructor;
|
|
11
|
-
default: boolean;
|
|
12
|
-
};
|
|
13
|
-
model: {
|
|
14
|
-
type: PropType<Recordable<any>>;
|
|
15
|
-
default: {};
|
|
16
|
-
};
|
|
17
|
-
labelWidth: {
|
|
18
|
-
type: NumberConstructor;
|
|
19
|
-
String: StringConstructor;
|
|
20
|
-
default: number;
|
|
21
|
-
};
|
|
22
|
-
schemas: {
|
|
23
|
-
type: PropType<FormSchema[]>;
|
|
24
|
-
default: () => any[];
|
|
25
|
-
};
|
|
26
|
-
compact: {
|
|
27
|
-
type: BooleanConstructor;
|
|
28
|
-
default: any;
|
|
29
|
-
};
|
|
30
|
-
size: {
|
|
31
|
-
type: PropType<"small" | "default" | "large">;
|
|
32
|
-
};
|
|
33
|
-
formActions: {
|
|
34
|
-
type: PropType<FormActionType>;
|
|
35
|
-
};
|
|
36
|
-
labelAlign: {
|
|
37
|
-
type: PropType<"left" | "right">;
|
|
38
|
-
};
|
|
39
|
-
rowProps: PropType<Partial<import("vue").ExtractPropTypes<{
|
|
40
|
-
align: PropType<"top" | "bottom" | "middle" | "stretch">;
|
|
41
|
-
justify: PropType<"space-around" | "space-between" | "center" | "end" | "start">;
|
|
42
|
-
prefixCls: StringConstructor;
|
|
43
|
-
gutter: {
|
|
44
|
-
type: PropType<import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter]>;
|
|
45
|
-
default: import("ant-design-vue/lib/grid/Row").Gutter | [import("ant-design-vue/lib/grid/Row").Gutter, import("ant-design-vue/lib/grid/Row").Gutter];
|
|
46
|
-
};
|
|
47
|
-
wrap: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: any;
|
|
50
|
-
};
|
|
51
|
-
}>>>;
|
|
52
|
-
colProps: PropType<ColEx>;
|
|
53
|
-
};
|
|
54
|
-
export declare const FormItemProps: {
|
|
55
|
-
schema: {
|
|
56
|
-
type: PropType<FormSchema>;
|
|
57
|
-
};
|
|
58
|
-
formProps: {
|
|
59
|
-
type: PropType<FormProps>;
|
|
60
|
-
default: () => {};
|
|
61
|
-
};
|
|
62
|
-
defaultValues: {
|
|
63
|
-
type: PropType<Recordable<any>>;
|
|
64
|
-
default: () => {};
|
|
65
|
-
};
|
|
66
|
-
formModel: {
|
|
67
|
-
type: PropType<Recordable<any>>;
|
|
68
|
-
default: () => {};
|
|
69
|
-
};
|
|
70
|
-
setFormModel: {
|
|
71
|
-
type: PropType<(key: string, value: any) => void>;
|
|
72
|
-
};
|
|
73
|
-
formActionType: {
|
|
74
|
-
type: PropType<FormActionType>;
|
|
75
|
-
};
|
|
76
|
-
style: {
|
|
77
|
-
type: PropType<Recordable<any>>;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Recordable, ButtonProps } from "@dt-frames/core";
|
|
2
|
-
import { VNode } from "vue";
|
|
3
|
-
import { RuleObject } from 'ant-design-vue/lib/form/interface';
|
|
4
|
-
import type { RowProps } from 'ant-design-vue/lib/grid/Row';
|
|
5
|
-
export declare type Rule = RuleObject & {
|
|
6
|
-
trigger?: 'blur' | 'change' | ['change', 'blur'];
|
|
7
|
-
};
|
|
8
|
-
export declare type FormCallBackParams = {
|
|
9
|
-
schema: Omit<FormSchema, 'props'>;
|
|
10
|
-
values: Recordable;
|
|
11
|
-
model: Recordable;
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
export declare type ComponentType = 'Input' | 'InputWithDialog' | 'InputGroup' | 'InputPassword' | 'InputSearch' | 'InputTextArea' | 'InputNumber' | 'InputCountDown' | 'Select' | 'TreeSelect' | 'ApiTree' | 'ApiTreeSelect' | 'Radio' | 'RadioButtonGroup' | 'RadioGroup' | 'Checkbox' | 'CheckboxGroup' | 'AutoComplete' | 'Cascader' | 'DatePicker' | 'MonthPicker' | 'RangePicker' | 'WeekPicker' | 'TimePicker' | 'Switch' | 'Upload' | 'IconPicker' | 'Render' | 'Slider' | 'Rate' | 'Divider' | 'Icon';
|
|
15
|
-
export declare type ColEx = {
|
|
16
|
-
style?: any;
|
|
17
|
-
span?: number | string;
|
|
18
|
-
order?: number | string;
|
|
19
|
-
offset?: number | string;
|
|
20
|
-
md?: number | string;
|
|
21
|
-
xl?: number | string;
|
|
22
|
-
xxl?: number | string;
|
|
23
|
-
};
|
|
24
|
-
export declare type ToolTipProps = {
|
|
25
|
-
color: string;
|
|
26
|
-
placement: 'top' | 'left' | 'right' | 'bottom' | 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight' | 'leftTop' | 'leftBottom' | 'rightTop' | 'rightBottom';
|
|
27
|
-
};
|
|
28
|
-
export declare type FormProps = {
|
|
29
|
-
mode?: 'search' | 'dialog';
|
|
30
|
-
autoFetch?: boolean;
|
|
31
|
-
layout?: 'vertical' | 'inline' | 'horizontal';
|
|
32
|
-
model?: Recordable;
|
|
33
|
-
labelWidth?: number | string;
|
|
34
|
-
enLabelWidth?: string | number;
|
|
35
|
-
labelAlign?: 'left' | 'right';
|
|
36
|
-
labelCol?: Partial<ColEx>;
|
|
37
|
-
wrapperCol?: Partial<ColEx>;
|
|
38
|
-
rowProps?: RowProps;
|
|
39
|
-
colProps?: Partial<ColEx>;
|
|
40
|
-
schemas?: FormSchema[];
|
|
41
|
-
size?: 'default' | 'small' | 'large';
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
autoSubmitOnEnter?: boolean;
|
|
44
|
-
alwaysShowLines?: number;
|
|
45
|
-
compact?: boolean;
|
|
46
|
-
onSearch?: Function;
|
|
47
|
-
onReset?: Function;
|
|
48
|
-
minShowColumn?: number;
|
|
49
|
-
showAdvancedButton?: boolean;
|
|
50
|
-
enterToSearch?: boolean;
|
|
51
|
-
buttons?: ButtonProps[];
|
|
52
|
-
loading?: Recordable;
|
|
53
|
-
style?: Recordable;
|
|
54
|
-
};
|
|
55
|
-
export declare type FormSchema = {
|
|
56
|
-
t?: string;
|
|
57
|
-
name?: string | string[];
|
|
58
|
-
changeEvent?: string;
|
|
59
|
-
valueField?: string;
|
|
60
|
-
label?: string | VNode;
|
|
61
|
-
subLabel?: string;
|
|
62
|
-
labelWidth?: string | number;
|
|
63
|
-
enLabelWidth?: string | number;
|
|
64
|
-
labelAlign?: 'left' | 'right';
|
|
65
|
-
toolTip?: string | ((parms: FormCallBackParams) => string | string[]);
|
|
66
|
-
toolTipProps?: ToolTipProps;
|
|
67
|
-
component?: ComponentType;
|
|
68
|
-
props?: ((opt: {
|
|
69
|
-
schema?: FormSchema;
|
|
70
|
-
formActions?: any;
|
|
71
|
-
formActionType?: FormActionType;
|
|
72
|
-
formModel?: Recordable;
|
|
73
|
-
}) => Recordable) | object;
|
|
74
|
-
required?: boolean | ((parms: FormCallBackParams) => boolean);
|
|
75
|
-
suffix?: string | number | ((parms: FormCallBackParams) => VNode | VNode[] | string);
|
|
76
|
-
prefix?: string | number | ((parms: FormCallBackParams) => VNode | VNode[] | string);
|
|
77
|
-
rules?: Rule[];
|
|
78
|
-
rulesMessageJoinLabel?: boolean;
|
|
79
|
-
defaultValue?: any;
|
|
80
|
-
span?: number;
|
|
81
|
-
show?: boolean | ((parms: FormCallBackParams) => boolean);
|
|
82
|
-
render?: (parms?: FormCallBackParams) => VNode | VNode[] | string;
|
|
83
|
-
renderCol?: (parms: FormCallBackParams) => VNode | VNode[] | string;
|
|
84
|
-
colProps?: Partial<ColEx>;
|
|
85
|
-
renderComponent?: ((parms: FormCallBackParams) => Recordable) | VNode | VNode[] | string;
|
|
86
|
-
slot?: string;
|
|
87
|
-
colSlot?: string;
|
|
88
|
-
dynamicDisabled?: boolean | ((parms: FormCallBackParams) => boolean);
|
|
89
|
-
dynamicRules?: (parms: FormCallBackParams) => Rule[];
|
|
90
|
-
colon?: boolean;
|
|
91
|
-
labelCol?: Partial<ColEx>;
|
|
92
|
-
wrapperCol?: Partial<ColEx>;
|
|
93
|
-
isAdvanced?: boolean;
|
|
94
|
-
openDialog?: (parms: Recordable) => void;
|
|
95
|
-
linkProps?: string[];
|
|
96
|
-
};
|
|
97
|
-
export declare type FormActionType = {
|
|
98
|
-
setProps: (props: FormProps) => Promise<void>;
|
|
99
|
-
updateSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
|
|
100
|
-
resetSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => Promise<void>;
|
|
101
|
-
clearValidate: (name?: string | string[]) => Promise<void>;
|
|
102
|
-
resetForms: (data: Partial<FormSchema> | Partial<FormSchema>[]) => void;
|
|
103
|
-
removeFormByName: (name: string | string[]) => void;
|
|
104
|
-
setFormValues: (values: Recordable) => Promise<void>;
|
|
105
|
-
appendFormItems: (schema: FormSchema, prefixField: string | undefined, first?: boolean | undefined) => void;
|
|
106
|
-
validate: (nameList?: (string | number)[]) => Promise<any>;
|
|
107
|
-
validateFields: (nameList?: (string | number)[]) => Promise<any>;
|
|
108
|
-
getFormValues: () => Recordable;
|
|
109
|
-
};
|
|
110
|
-
export declare type AdvanceState = {
|
|
111
|
-
isAdvanced: boolean;
|
|
112
|
-
hideAdvanceBtn: boolean;
|
|
113
|
-
isLoad: boolean;
|
|
114
|
-
actionSpan: number;
|
|
115
|
-
};
|