@dt-frames/ui 1.0.52 → 2.0.0
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,34 +0,0 @@
|
|
|
1
|
-
import { FormSchema } from "../../../forms";
|
|
2
|
-
import { PropType, VNodeChild } from "vue";
|
|
3
|
-
import { ButtonProps } from "@dt-frames/core";
|
|
4
|
-
export declare const basicProps: {
|
|
5
|
-
title: {
|
|
6
|
-
type: StringConstructor;
|
|
7
|
-
default: string;
|
|
8
|
-
};
|
|
9
|
-
width: {
|
|
10
|
-
type: PropType<string | number>;
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
|
-
schemas: {
|
|
14
|
-
type: PropType<FormSchema[]>;
|
|
15
|
-
default: any[];
|
|
16
|
-
};
|
|
17
|
-
footer: {
|
|
18
|
-
type: PropType<VNodeChild | JSX.Element | ButtonProps[]>;
|
|
19
|
-
default: any;
|
|
20
|
-
};
|
|
21
|
-
canFullscreen: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
closable: {
|
|
26
|
-
type: BooleanConstructor;
|
|
27
|
-
default: boolean;
|
|
28
|
-
};
|
|
29
|
-
curd: {
|
|
30
|
-
type: PropType<{
|
|
31
|
-
[key: string]: Function;
|
|
32
|
-
}>;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Recordable } from "@dt-frames/core";
|
|
2
|
-
import { CrudOptType } from "../types/curd.type";
|
|
3
|
-
export declare function useCurd(curdOpt: CrudOptType): {
|
|
4
|
-
DtCurdModal: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}>;
|
|
7
|
-
add: () => void;
|
|
8
|
-
del: ({ row }: Recordable) => void;
|
|
9
|
-
dels: (ids?: string[]) => void;
|
|
10
|
-
update: ({ row }: Recordable) => void;
|
|
11
|
-
closeModal: () => void;
|
|
12
|
-
openModal: (data?: {
|
|
13
|
-
data?: Recordable<any>;
|
|
14
|
-
afterClose?: (data: Recordable<any>) => void;
|
|
15
|
-
}, openOnSet?: boolean) => void;
|
|
16
|
-
setFormValues: (params: Recordable) => void;
|
|
17
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Recordable, ButtonProps } from "@dt-frames/core";
|
|
2
|
-
import { ComputedRef, VNodeChild } from "vue";
|
|
3
|
-
import { FormSchema, FormProps } from "../../../forms/src/types/form.type";
|
|
4
|
-
export declare type CrudOptType = {
|
|
5
|
-
t?: string;
|
|
6
|
-
title?: string | ComputedRef | Function;
|
|
7
|
-
width?: string | number;
|
|
8
|
-
schemas: FormSchema[];
|
|
9
|
-
footer?: VNodeChild | JSX.Element | ButtonProps[];
|
|
10
|
-
showFullscreen?: boolean;
|
|
11
|
-
showClose?: boolean;
|
|
12
|
-
primaryKey?: string;
|
|
13
|
-
formProps?: Partial<FormProps>;
|
|
14
|
-
curd?: {
|
|
15
|
-
onAdd?: (model: Recordable) => void;
|
|
16
|
-
onUpdate?: (model: Recordable) => void;
|
|
17
|
-
onDeletes?: (keys: string[]) => void;
|
|
18
|
-
onExport?: () => void;
|
|
19
|
-
onQueryById?: (id: string) => Promise<Recordable>;
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
@import '../modal/index.less';
|
|
2
|
-
|
|
3
|
-
.text-secondary{
|
|
4
|
-
color: #666;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.suffix-item .suffix {
|
|
8
|
-
display: inline-flex;
|
|
9
|
-
padding-left: 6px;
|
|
10
|
-
margin-top: 1px;
|
|
11
|
-
line-height: 1;
|
|
12
|
-
align-items: center;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.form-btns{
|
|
16
|
-
button{
|
|
17
|
-
margin-left: 12px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.advanced{
|
|
21
|
-
margin-left: 8px;
|
|
22
|
-
.text{
|
|
23
|
-
margin-right: 5px;
|
|
24
|
-
}
|
|
25
|
-
.basic-arrow{
|
|
26
|
-
margin-left: -8px;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.basic-arrow{
|
|
32
|
-
display: inline-block;
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
transform: rotate(0deg);
|
|
35
|
-
transition: all 0.3s ease 0.1s;
|
|
36
|
-
transform-origin: center center;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
.dt-icon{
|
|
40
|
-
vertical-align: middle;
|
|
41
|
-
color: @primary-color !important;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&--active{
|
|
45
|
-
transform: rotate(180deg);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.form-btns{
|
|
50
|
-
.ant-form-item-control-input-content{
|
|
51
|
-
display: flex;
|
|
52
|
-
.ant-btn{
|
|
53
|
-
display: flex;
|
|
54
|
-
align-items: center;
|
|
55
|
-
}
|
|
56
|
-
.ant-btn .dt-icon{
|
|
57
|
-
font-size: 20px;
|
|
58
|
-
height: 100%;
|
|
59
|
-
|
|
60
|
-
svg{
|
|
61
|
-
display: block;
|
|
62
|
-
height: 100%;
|
|
63
|
-
text-align: center;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.preIcon{
|
|
67
|
-
padding-right: 2px;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.ant-btn-primary .dt-icon svg{
|
|
72
|
-
color: #fff;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.basic-form--compact{
|
|
78
|
-
.ant-form-item {
|
|
79
|
-
margin-bottom: 14px !important;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.input-with-dialog{
|
|
84
|
-
position: relative;
|
|
85
|
-
span{
|
|
86
|
-
background: none;
|
|
87
|
-
cursor: pointer;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
i{
|
|
91
|
-
position: absolute;
|
|
92
|
-
right: 15px;
|
|
93
|
-
top: 0;
|
|
94
|
-
bottom: 0;
|
|
95
|
-
margin: auto;
|
|
96
|
-
line-height: 32px;
|
|
97
|
-
opacity: 0.3;
|
|
98
|
-
cursor: pointer;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.ant-input{
|
|
102
|
-
color: #333;
|
|
103
|
-
cursor: pointer;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { Recordable, ButtonProps } from '@dt-frames/core';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<{
|
|
4
|
-
mode: {
|
|
5
|
-
type: PropType<"search" | "dialog">;
|
|
6
|
-
default: string;
|
|
7
|
-
};
|
|
8
|
-
show: {
|
|
9
|
-
type: BooleanConstructor;
|
|
10
|
-
default: boolean;
|
|
11
|
-
};
|
|
12
|
-
showAdvancedButton: {
|
|
13
|
-
type: BooleanConstructor;
|
|
14
|
-
default: boolean;
|
|
15
|
-
};
|
|
16
|
-
minShowColumn: {
|
|
17
|
-
type: NumberConstructor;
|
|
18
|
-
default: number;
|
|
19
|
-
};
|
|
20
|
-
buttonList: {
|
|
21
|
-
type: PropType<ButtonProps[]>;
|
|
22
|
-
default: any[];
|
|
23
|
-
};
|
|
24
|
-
isAdvanced: {
|
|
25
|
-
type: BooleanConstructor;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
}, {
|
|
29
|
-
colOpt: import("vue").ComputedRef<{
|
|
30
|
-
style: Recordable<any>;
|
|
31
|
-
}>;
|
|
32
|
-
advancedRef: import("vue").Ref<{
|
|
33
|
-
valueOf: () => boolean;
|
|
34
|
-
}>;
|
|
35
|
-
showAdvanceRef: import("vue").ComputedRef<boolean>;
|
|
36
|
-
getAdvanceClass: import("vue").ComputedRef<(string | {
|
|
37
|
-
'basic-arrow--active': boolean;
|
|
38
|
-
})[]>;
|
|
39
|
-
t: {
|
|
40
|
-
(key: string): string;
|
|
41
|
-
(key: string, locale: string): string;
|
|
42
|
-
(key: string, locale: string, list: unknown[]): string;
|
|
43
|
-
(key: string, locale: string, named: Record<string, unknown>): string;
|
|
44
|
-
(key: string, list: unknown[]): string;
|
|
45
|
-
(key: string, named: Record<string, unknown>): string;
|
|
46
|
-
};
|
|
47
|
-
time: import("vue").Ref<number>;
|
|
48
|
-
toggleAdvanced: () => void;
|
|
49
|
-
handleBtnClick: (button: ButtonProps) => void;
|
|
50
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
-
mode: {
|
|
52
|
-
type: PropType<"search" | "dialog">;
|
|
53
|
-
default: string;
|
|
54
|
-
};
|
|
55
|
-
show: {
|
|
56
|
-
type: BooleanConstructor;
|
|
57
|
-
default: boolean;
|
|
58
|
-
};
|
|
59
|
-
showAdvancedButton: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
minShowColumn: {
|
|
64
|
-
type: NumberConstructor;
|
|
65
|
-
default: number;
|
|
66
|
-
};
|
|
67
|
-
buttonList: {
|
|
68
|
-
type: PropType<ButtonProps[]>;
|
|
69
|
-
default: any[];
|
|
70
|
-
};
|
|
71
|
-
isAdvanced: {
|
|
72
|
-
type: BooleanConstructor;
|
|
73
|
-
default: boolean;
|
|
74
|
-
};
|
|
75
|
-
}>>, {
|
|
76
|
-
mode: "search" | "dialog";
|
|
77
|
-
show: boolean;
|
|
78
|
-
showAdvancedButton: boolean;
|
|
79
|
-
minShowColumn: number;
|
|
80
|
-
buttonList: ButtonProps[];
|
|
81
|
-
isAdvanced: boolean;
|
|
82
|
-
}>;
|
|
83
|
-
export default _default;
|