@dt-frames/ui 2.0.0 → 2.0.2
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/es/assets/data/icons/actions.d.ts +1 -0
- package/es/assets/data/icons/actions.ts +423 -0
- package/es/assets/data/icons/code.d.ts +1 -0
- package/es/assets/data/icons/code.ts +10 -0
- package/es/assets/data/icons/commuticate.d.ts +1 -0
- package/es/assets/data/icons/commuticate.ts +182 -0
- package/es/assets/data/icons/currency.d.ts +1 -0
- package/es/assets/data/icons/currency.ts +44 -0
- package/es/assets/data/icons/devices.d.ts +1 -0
- package/es/assets/data/icons/devices.ts +126 -0
- package/es/assets/data/icons/edit.d.ts +1 -0
- package/es/assets/data/icons/edit.ts +163 -0
- package/es/assets/data/icons/file.d.ts +1 -0
- package/es/assets/data/icons/file.ts +99 -0
- package/es/assets/data/icons/math.d.ts +1 -0
- package/es/assets/data/icons/math.ts +53 -0
- package/es/assets/data/icons/message.d.ts +1 -0
- package/es/assets/data/icons/message.ts +68 -0
- package/es/assets/data/icons/navigate.d.ts +1 -0
- package/es/assets/data/icons/navigate.ts +181 -0
- package/es/assets/data/icons/other.d.ts +1 -0
- package/es/assets/data/icons/other.ts +324 -0
- package/es/assets/data/index.d.ts +4 -0
- package/es/assets/data/index.ts +58 -0
- package/es/assets/icons/iconfont.css +7266 -0
- package/es/assets/icons/iconfont.eot +0 -0
- package/es/assets/icons/iconfont.svg +5445 -0
- package/es/assets/icons/iconfont.ttf +0 -0
- package/es/assets/icons/iconfont.woff +0 -0
- package/es/assets/icons/iconfont.woff2 +0 -0
- 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.d.ts +101 -0
- package/es/assets/locales/en.ts +101 -0
- package/es/assets/locales/index.d.ts +2 -0
- package/es/assets/locales/index.ts +5 -0
- package/es/assets/locales/zh.d.ts +103 -0
- package/es/assets/locales/zh.ts +103 -0
- package/es/components/container/index.d.ts +93 -0
- package/es/components/container/index.js +288 -0
- package/es/components/container/index.less +64 -0
- package/es/components/container/src/components/bar.d.ts +14 -0
- package/es/components/container/src/components/scroll-bar.d.ts +70 -0
- package/es/components/container/src/hooks/scroll.d.ts +10 -0
- package/es/components/container/src/scroll-container.d.ts +76 -0
- package/es/components/container/src/slot-container.d.ts +18 -0
- package/es/components/container/src/types/scroll.type.d.ts +22 -0
- package/es/components/container/src/utils/scroll.d.ts +5 -0
- package/es/components/curd/index.d.ts +2 -0
- package/es/components/curd/index.js +3098 -0
- package/es/components/curd/src/components/Curd.d.ts +1451 -0
- package/es/components/curd/src/hooks/useCurd.d.ts +112 -0
- package/es/components/curd/src/props.d.ts +188 -0
- package/es/components/curd/src/types/curd.type.d.ts +19 -0
- package/es/components/drawer/index.d.ts +8041 -0
- package/es/components/drawer/index.js +837 -0
- package/es/components/drawer/index.less +10 -0
- package/es/components/drawer/src/components/DrawerFooter.d.ts +139 -0
- package/es/components/drawer/src/components/DrawerHeader.d.ts +13 -0
- package/es/components/drawer/src/hooks/useDrawer.d.ts +3 -0
- package/es/components/drawer/src/index.d.ts +8043 -0
- package/es/components/drawer/src/props.d.ts +64 -0
- package/es/components/drawer/src/types/index.type.d.ts +48 -0
- package/es/components/form/index.d.ts +3367 -0
- package/es/components/form/index.js +1895 -0
- package/es/components/form/index.less +141 -0
- package/es/components/form/src/components/FormButtons.d.ts +88 -0
- package/es/components/form/src/components/FormItem.d.ts +313 -0
- package/es/components/form/src/components/componentMap.d.ts +4 -0
- package/es/components/form/src/components/formIcon.d.ts +1231 -0
- package/es/components/form/src/components/formInputUseDialog.d.ts +911 -0
- package/es/components/form/src/components/index.d.ts +4 -0
- package/es/components/form/src/components/radioButton.d.ts +34 -0
- package/es/components/form/src/enums/index.d.ts +7 -0
- package/es/components/form/src/hooks/helper.d.ts +14 -0
- package/es/components/form/src/hooks/useForm.d.ts +6 -0
- package/es/components/form/src/hooks/useFormActions.d.ts +12 -0
- package/es/components/form/src/hooks/useFormEvent.d.ts +25 -0
- package/es/components/form/src/hooks/useFormValue.d.ts +3 -0
- package/es/components/form/src/hooks/useFormValues.d.ts +11 -0
- package/es/components/form/src/hooks/useLabelWidth.d.ts +22 -0
- package/es/components/form/src/index.d.ts +3113 -0
- package/es/components/form/src/props.d.ts +133 -0
- package/es/components/form/src/types/actions.type.d.ts +15 -0
- package/es/components/form/src/types/form.type.d.ts +70 -0
- package/es/components/icons/index.d.ts +3 -0
- package/es/components/icons/index.js +1969 -0
- package/es/components/icons/index.less +42 -0
- package/es/components/icons/src/pick-icon.d.ts +455 -0
- package/es/components/icons/src/svg-icon.d.ts +44 -0
- package/es/components/modal/index.d.ts +3 -0
- package/es/components/modal/index.js +1192 -0
- package/es/components/modal/index.less +54 -0
- package/es/components/modal/src/components/CloseIcon.d.ts +40 -0
- package/es/components/modal/src/components/Modal.d.ts +215 -0
- package/es/components/modal/src/components/ModalFooter.d.ts +139 -0
- package/es/components/modal/src/components/ModalWrap.d.ts +153 -0
- package/es/components/modal/src/hooks/useDrag.d.ts +7 -0
- package/es/components/modal/src/hooks/useFullScreen.d.ts +6 -0
- package/es/components/modal/src/hooks/useModal.d.ts +5 -0
- package/es/components/modal/src/index.d.ts +881 -0
- package/es/components/modal/src/props.d.ts +100 -0
- package/es/components/modal/src/types/modal.type.d.ts +17 -0
- package/es/components/source/hooks/useDownload.d.ts +8 -0
- package/es/components/source/hooks/useSource.d.ts +40 -0
- package/es/components/source/index.d.ts +2 -0
- package/es/components/source/index.js +331 -0
- package/es/components/source/types/source.type.d.ts +37 -0
- package/es/components/source/utils/index.d.ts +8 -0
- package/es/components/table/index.d.ts +3 -0
- package/es/components/table/index.js +4414 -0
- package/es/components/table/index.less +183 -0
- package/es/components/table/src/components/TableAction.d.ts +70 -0
- package/es/components/table/src/components/TableHeader.d.ts +1243 -0
- package/es/components/table/src/components/TableRender.d.ts +13 -0
- package/es/components/table/src/components/editTable/CellComponent.d.ts +22 -0
- package/es/components/table/src/components/editTable/EditTableCell.d.ts +93 -0
- package/es/components/table/src/components/editTable/componentMap.d.ts +4 -0
- package/es/components/table/src/components/editTable/index.d.ts +9 -0
- package/es/components/table/src/components/editTable/props.d.ts +27 -0
- package/es/components/table/src/components/tableSetting/Column.d.ts +69 -0
- package/es/components/table/src/components/tableSetting/Download.d.ts +1029 -0
- package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +995 -0
- package/es/components/table/src/components/tableSetting/Fullscreen.d.ts +22 -0
- package/es/components/table/src/components/tableSetting/index.d.ts +1137 -0
- package/es/components/table/src/hooks/useColumns.d.ts +14 -0
- package/es/components/table/src/hooks/useCustomRow.d.ts +20 -0
- package/es/components/table/src/hooks/useDataSource.d.ts +16 -0
- package/es/components/table/src/hooks/useHeader.d.ts +8 -0
- package/es/components/table/src/hooks/useHeaderCode.d.ts +3 -0
- package/es/components/table/src/hooks/useLoading.d.ts +6 -0
- package/es/components/table/src/hooks/usePagination.d.ts +122 -0
- package/es/components/table/src/hooks/useRow.d.ts +5 -0
- package/es/components/table/src/hooks/useRowSelection.d.ts +12 -0
- package/es/components/table/src/hooks/useTable.d.ts +9 -0
- package/es/components/table/src/hooks/useTableInstance.d.ts +16 -0
- package/es/components/table/src/hooks/useTableScroll.d.ts +13 -0
- package/es/components/table/src/index.d.ts +990 -0
- package/es/components/table/src/props.d.ts +244 -0
- package/es/components/table/src/types/actions.type.d.ts +22 -0
- package/es/components/table/src/types/header.type.d.ts +23 -0
- package/es/components/table/src/types/table.type.d.ts +92 -0
- package/es/directives/icon.d.ts +2 -0
- package/es/directives/index.d.ts +7 -0
- package/es/directives/index.js +2015 -0
- package/es/directives/permission.d.ts +2 -0
- package/es/global.d.ts +7 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +3242 -0
- package/es/theme/index.d.ts +10 -0
- package/es/theme/index.js +3242 -0
- package/es/theme/index.less +603 -0
- package/es/theme/src/components/content/index.d.ts +27 -0
- package/es/theme/src/components/feature/back-top.d.ts +5 -0
- package/es/theme/src/components/feature/index.d.ts +7 -0
- package/es/theme/src/components/footer/index.d.ts +31 -0
- package/es/theme/src/components/header/components/bread-crumb.d.ts +6 -0
- package/es/theme/src/components/header/components/fullscreen.d.ts +5 -0
- package/es/theme/src/components/header/components/index.d.ts +11 -0
- package/es/theme/src/components/header/components/lang-picker.d.ts +23 -0
- package/es/theme/src/components/header/components/logo.d.ts +36 -0
- package/es/theme/src/components/header/components/menu-filter.d.ts +22 -0
- package/es/theme/src/components/header/components/notify.d.ts +23 -0
- package/es/theme/src/components/header/components/setting-theme.d.ts +222 -0
- package/es/theme/src/components/header/components/size.d.ts +282 -0
- package/es/theme/src/components/header/components/theme-drawer/feature.d.ts +138 -0
- package/es/theme/src/components/header/components/theme-drawer/index.d.ts +3 -0
- package/es/theme/src/components/header/components/theme-drawer/menu-type.d.ts +16 -0
- package/es/theme/src/components/header/components/theme-drawer/select.d.ts +58 -0
- package/es/theme/src/components/header/components/theme-drawer/switch.d.ts +49 -0
- package/es/theme/src/components/header/components/trigger.d.ts +10 -0
- package/es/theme/src/components/header/components/user-info.d.ts +36 -0
- package/es/theme/src/components/header/helper/change-theme.d.ts +13 -0
- package/es/theme/src/components/header/helper/menu-tree.d.ts +3 -0
- package/es/theme/src/components/header/index.d.ts +698 -0
- package/es/theme/src/components/header/multiple-header.d.ts +787 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +62 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +207 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +127 -0
- package/es/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +26 -0
- package/es/theme/src/components/sider/components/drag-bar.d.ts +14 -0
- package/es/theme/src/components/sider/components/layout-menu.d.ts +22 -0
- package/es/theme/src/components/sider/components/props.d.ts +69 -0
- package/es/theme/src/components/sider/components/sider-trigger.d.ts +18 -0
- package/es/theme/src/components/sider/helper/sider.d.ts +12 -0
- package/es/theme/src/components/sider/helper/split-menu.d.ts +10 -0
- package/es/theme/src/components/sider/index.d.ts +70 -0
- package/es/theme/src/components/tabs/components/TabContent.d.ts +6 -0
- package/es/theme/src/components/tabs/components/TabRedo.d.ts +21 -0
- package/es/theme/src/components/tabs/components/index.d.ts +3 -0
- package/es/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +7 -0
- package/es/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -0
- package/es/theme/src/components/tabs/index.d.ts +63 -0
- package/es/theme/src/components/tabs/types/tabs.type.d.ts +7 -0
- package/es/theme/src/enums/index.d.ts +1 -0
- package/es/theme/src/enums/theme.enum.d.ts +33 -0
- package/es/theme/src/hooks/index.d.ts +6 -0
- package/es/theme/src/hooks/useDragLine.d.ts +2 -0
- package/es/theme/src/hooks/useHeader.d.ts +25 -0
- package/es/theme/src/hooks/useMenu.d.ts +27 -0
- package/es/theme/src/hooks/useMultifyTab.d.ts +7 -0
- package/es/theme/src/hooks/useOpenKeys.d.ts +7 -0
- package/es/theme/src/hooks/useTheme.d.ts +9 -0
- package/es/theme/src/index.d.ts +1644 -0
- package/es/theme/src/setting/theme.setting.d.ts +2 -0
- package/es/theme/src/stores/index.d.ts +3 -0
- package/es/theme/src/stores/routeReuse.store.d.ts +23 -0
- package/es/theme/src/stores/theme.store.d.ts +15 -0
- package/es/theme/src/types/index.d.ts +3 -0
- package/es/theme/src/types/menu.type.d.ts +15 -0
- package/es/theme/src/types/theme.type.d.ts +60 -0
- package/es/utils/withInstall.d.ts +4 -0
- package/index.d.ts +10 -0
- package/index.js +34 -0
- package/package.json +1 -5
- package/tailwind.config.cjs +11 -0
- package/tsconfig.json +41 -0
- package/tsconfig.node.json +9 -0
- package/vite.config.ts +78 -0
|
@@ -0,0 +1,34 @@
|
|
|
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 _sfc_main: import("vue").DefineComponent<{
|
|
9
|
+
value: {
|
|
10
|
+
type: PropType<string | number | boolean>;
|
|
11
|
+
};
|
|
12
|
+
options: {
|
|
13
|
+
type: PropType<RadioItem[]>;
|
|
14
|
+
default: () => any[];
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
props: any;
|
|
18
|
+
attrs: {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
state: any;
|
|
22
|
+
getOptions: import("vue").ComputedRef<OptionsItem[]>;
|
|
23
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
value: {
|
|
25
|
+
type: PropType<string | number | boolean>;
|
|
26
|
+
};
|
|
27
|
+
options: {
|
|
28
|
+
type: PropType<RadioItem[]>;
|
|
29
|
+
default: () => any[];
|
|
30
|
+
};
|
|
31
|
+
}>>, {
|
|
32
|
+
options: RadioItem[];
|
|
33
|
+
}>;
|
|
34
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Rule } from 'ant-design-vue/lib/form/interface';
|
|
2
|
+
import { ComponentType } from "../types/form.type";
|
|
3
|
+
export declare const SINGLE_DATA_TYPE: string[];
|
|
4
|
+
export declare const MULTIFY_DATA_TYPE: string[];
|
|
5
|
+
export declare const DATE_PICKER_TYPES: string[];
|
|
6
|
+
export declare const DATE_MODE_TYPE: {
|
|
7
|
+
time: string;
|
|
8
|
+
date: string;
|
|
9
|
+
month: string;
|
|
10
|
+
year: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function createPlaceholder(component: ComponentType): string;
|
|
13
|
+
export declare function setComponentRuleType(rule: Rule, component: ComponentType, valueFormat: string): void;
|
|
14
|
+
export declare function handleInputNumberValue(component?: ComponentType, val?: any): any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FormActionType } from '../types/actions.type';
|
|
2
|
+
import { FormProps } from "../types/form.type";
|
|
3
|
+
declare type RegisterFn = (formInstance: FormActionType) => void;
|
|
4
|
+
declare type UseFormReturnType = [RegisterFn, FormActionType];
|
|
5
|
+
export declare function useForm(props: FormProps): UseFormReturnType;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Recordable } from "@dt-frames/core";
|
|
2
|
+
import { ComputedRef, Ref } from "vue";
|
|
3
|
+
import { ButtonProps, FormProps, FormSchema } from "../types/form.type";
|
|
4
|
+
declare type FormOpt = {
|
|
5
|
+
updateSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => void;
|
|
6
|
+
getProps: ComputedRef<FormProps>;
|
|
7
|
+
defaultValue: Ref<Recordable>;
|
|
8
|
+
getFormValues: () => Recordable;
|
|
9
|
+
setFormValues: (values: Recordable) => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export declare function useFormActions(opt: FormOpt): ((params: boolean | ButtonProps) => void)[];
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Recordable } from "@dt-frames/core";
|
|
2
|
+
import { ComputedRef, Ref } from "vue";
|
|
3
|
+
import { FormActionType } from "../types/actions.type";
|
|
4
|
+
import { FormProps, FormSchema } from "../types/form.type";
|
|
5
|
+
export declare function useFormEvents({ emits, getSchema, formModel, defaultValue, formElRef, schemaRef, getProps, handleFormValues }: {
|
|
6
|
+
emits: (event: string, ...args: any[]) => void;
|
|
7
|
+
getSchema: ComputedRef<FormSchema[]>;
|
|
8
|
+
formModel: Recordable;
|
|
9
|
+
defaultValue: Ref<Recordable>;
|
|
10
|
+
formElRef: Ref<FormActionType>;
|
|
11
|
+
schemaRef: Ref<FormSchema[]>;
|
|
12
|
+
getProps: ComputedRef<FormProps>;
|
|
13
|
+
handleFormValues: (model: Recordable) => Recordable;
|
|
14
|
+
}): {
|
|
15
|
+
getFormValues: () => Recordable<any>;
|
|
16
|
+
updateSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => void;
|
|
17
|
+
resetSchema: (data: Partial<FormSchema> | Partial<FormSchema>[]) => void;
|
|
18
|
+
clearValidate: (name?: string | string[]) => Promise<void>;
|
|
19
|
+
resetForms: () => void;
|
|
20
|
+
removeFormByName: (names: string | string[]) => void;
|
|
21
|
+
validateFields: (nameList: (string | number)[]) => Promise<any>;
|
|
22
|
+
setFormValues: (values: Recordable | null) => Promise<void>;
|
|
23
|
+
validate: (nameList: (string | number)[]) => Promise<any>;
|
|
24
|
+
appendFormItems: (schema: FormSchema[], prefixName?: string, first?: boolean) => void;
|
|
25
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Recordable } from "@dt-frames/core";
|
|
2
|
+
import { ComputedRef, Ref } from "vue";
|
|
3
|
+
import { FormSchema } from '../types/form.type';
|
|
4
|
+
export declare function useFormValues({ defaultValue, getSchema, formModel }: {
|
|
5
|
+
defaultValue: Ref<any>;
|
|
6
|
+
getSchema: ComputedRef<FormSchema[]>;
|
|
7
|
+
formModel: Recordable;
|
|
8
|
+
}): {
|
|
9
|
+
initDefault: () => void;
|
|
10
|
+
handleFormValues: (model: Recordable) => Recordable<any>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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: any;
|
|
6
|
+
span?: string | number;
|
|
7
|
+
order?: string | number;
|
|
8
|
+
offset?: string | number;
|
|
9
|
+
md?: string | number;
|
|
10
|
+
xl?: string | number;
|
|
11
|
+
xxl?: string | number;
|
|
12
|
+
};
|
|
13
|
+
wrapperCol: {
|
|
14
|
+
style: any;
|
|
15
|
+
span?: string | number;
|
|
16
|
+
order?: string | number;
|
|
17
|
+
offset?: string | number;
|
|
18
|
+
md?: string | number;
|
|
19
|
+
xl?: string | number;
|
|
20
|
+
xxl?: string | number;
|
|
21
|
+
};
|
|
22
|
+
}>;
|