@dt-frames/ui 2.0.15 → 2.0.16
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/imgs/tree/forder-open.svg +1 -0
- package/es/assets/imgs/tree/forder.svg +1 -0
- package/es/assets/locales/zh.ts +1 -1
- package/es/components/curd/index.js +28 -8
- package/es/components/curd/src/components/Curd.d.ts +10 -0
- package/es/components/curd/src/hooks/useCurd.d.ts +2 -4
- package/es/components/curd/src/props.d.ts +5 -1
- package/es/components/drawer/index.js +25 -24
- package/es/components/form/index.js +50 -37
- package/es/components/form/index.less +16 -0
- package/es/components/form/src/props.d.ts +1 -1
- package/es/components/modal/index.js +8 -143
- package/es/components/modal/index.less +23 -0
- package/es/components/modal/src/index.d.ts +2 -84
- package/es/components/table/index.js +2 -2
- package/es/components/tree/index.js +197 -93
- package/es/components/tree/index.less +75 -13
- package/es/components/tree/src/basicProps.d.ts +46 -7
- package/es/components/tree/src/components/TreeHeader.d.ts +2 -2
- package/es/components/tree/src/hooks/useTree.d.ts +3 -2
- package/es/components/tree/src/index.d.ts +120 -29
- package/es/components/upload/index.js +28 -20
- package/es/components/upload/index.less +10 -1
- package/es/components/upload/src/index.d.ts +1 -1
- package/es/components/upload/src/utils/upload.d.ts +1 -1
- package/es/theme/index.js +307 -307
- package/es/theme/index.less +1 -0
- package/es/theme/src/components/header/components/size.d.ts +5 -5
- package/es/theme/src/components/header/index.d.ts +5 -5
- package/es/theme/src/components/header/multiple-header.d.ts +5 -5
- package/es/theme/src/index.d.ts +10 -10
- package/manualContentPath.js +10 -0
- package/package.json +1 -1
- package/tsconfig.json +1 -1
- package/es/packages/ui/src/assets/locales/en.d.ts +0 -103
- package/es/packages/ui/src/assets/locales/index.d.ts +0 -2
- package/es/packages/ui/src/assets/locales/zh.d.ts +0 -104
- package/es/packages/ui/src/components/form/index.d.ts +0 -7
- package/es/packages/ui/src/components/form/src/components/FormButtons.d.ts +0 -105
- package/es/packages/ui/src/components/form/src/components/FormItem.d.ts +0 -159
- package/es/packages/ui/src/components/form/src/components/componentMap.d.ts +0 -4
- package/es/packages/ui/src/components/form/src/components/formIcon.d.ts +0 -1223
- package/es/packages/ui/src/components/form/src/components/formInputUseDialog.d.ts +0 -911
- package/es/packages/ui/src/components/form/src/components/index.d.ts +0 -4
- package/es/packages/ui/src/components/form/src/components/radioButton.d.ts +0 -34
- package/es/packages/ui/src/components/form/src/enums/index.d.ts +0 -7
- package/es/packages/ui/src/components/form/src/hooks/helper.d.ts +0 -14
- package/es/packages/ui/src/components/form/src/hooks/useForm.d.ts +0 -6
- package/es/packages/ui/src/components/form/src/hooks/useFormActions.d.ts +0 -12
- package/es/packages/ui/src/components/form/src/hooks/useFormEvent.d.ts +0 -25
- package/es/packages/ui/src/components/form/src/hooks/useFormValue.d.ts +0 -3
- package/es/packages/ui/src/components/form/src/hooks/useFormValues.d.ts +0 -11
- package/es/packages/ui/src/components/form/src/hooks/useLabelWidth.d.ts +0 -6
- package/es/packages/ui/src/components/form/src/props.d.ts +0 -127
- package/es/packages/ui/src/components/form/src/types/actions.type.d.ts +0 -15
- package/es/packages/ui/src/components/form/src/types/form.type.d.ts +0 -79
- package/es/packages/ui/src/components/form/src/types/items.type.d.ts +0 -409
- package/es/packages/ui/src/components/iframe/index.d.ts +0 -2
- package/es/packages/ui/src/components/modal/index.d.ts +0 -4
- package/es/packages/ui/src/components/modal/src/hooks/useModal.d.ts +0 -5
- package/es/packages/ui/src/components/modal/src/props.d.ts +0 -101
- package/es/packages/ui/src/components/modal/src/types/modal.type.d.ts +0 -17
- package/es/packages/ui/src/components/upload/index.d.ts +0 -4
- package/es/packages/ui/src/components/upload/src/basicProps.d.ts +0 -87
- package/es/packages/ui/src/components/upload/src/components/PdfView.d.ts +0 -9
- package/es/packages/ui/src/components/upload/src/components/WordView.d.ts +0 -6
- package/es/packages/ui/src/components/upload/src/hooks/useFile.d.ts +0 -16
- package/es/packages/ui/src/components/upload/src/index.d.ts +0 -242
- package/es/packages/ui/src/components/upload/src/type/file.d.ts +0 -10
- package/es/packages/ui/src/components/upload/src/utils/upload.d.ts +0 -2
- package/es/packages/ui/src/global.d.ts +0 -7
- package/es/packages/ui/src/theme/index.d.ts +0 -12
- package/es/packages/ui/src/theme/src/components/header/helper/menu-tree.d.ts +0 -4
- package/es/packages/ui/src/theme/src/enums/index.d.ts +0 -1
- package/es/packages/ui/src/theme/src/enums/theme.enum.d.ts +0 -34
- package/es/packages/ui/src/theme/src/hooks/index.d.ts +0 -6
- package/es/packages/ui/src/theme/src/hooks/useDragLine.d.ts +0 -2
- package/es/packages/ui/src/theme/src/hooks/useHeader.d.ts +0 -25
- package/es/packages/ui/src/theme/src/hooks/useMenu.d.ts +0 -29
- package/es/packages/ui/src/theme/src/hooks/useMultifyTab.d.ts +0 -8
- package/es/packages/ui/src/theme/src/hooks/useOpenKeys.d.ts +0 -7
- package/es/packages/ui/src/theme/src/hooks/useTheme.d.ts +0 -9
- package/es/packages/ui/src/theme/src/setting/theme.setting.d.ts +0 -2
- package/es/packages/ui/src/theme/src/stores/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/stores/routeReuse.store.d.ts +0 -25
- package/es/packages/ui/src/theme/src/stores/theme.store.d.ts +0 -19
- package/es/packages/ui/src/theme/src/types/index.d.ts +0 -3
- package/es/packages/ui/src/theme/src/types/menu.type.d.ts +0 -15
- package/es/packages/ui/src/theme/src/types/theme.type.d.ts +0 -62
- package/es/packages/ui/src/utils/withInstall.d.ts +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.dt-tree-search{
|
|
2
|
-
padding: 10px;
|
|
2
|
+
padding: 0 4px 0 10px;
|
|
3
3
|
|
|
4
4
|
& > i {
|
|
5
5
|
width: 24px;
|
|
@@ -22,43 +22,102 @@
|
|
|
22
22
|
overflow-y: auto;
|
|
23
23
|
padding: 10px 0;
|
|
24
24
|
|
|
25
|
+
.ant-tree-treenode{
|
|
26
|
+
padding: 0;
|
|
27
|
+
align-items: center;
|
|
28
|
+
.ant-tree-switcher-icon{
|
|
29
|
+
line-height: 28px;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.ant-tree-checkbox {
|
|
34
|
+
margin-top: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
25
37
|
.tree-title{
|
|
26
38
|
font-size: 13px;
|
|
27
39
|
position: relative;
|
|
28
40
|
display: flex;
|
|
29
41
|
align-items: center;
|
|
30
42
|
width: 100%;
|
|
43
|
+
line-height: 28px;
|
|
31
44
|
padding-right: 10px;
|
|
45
|
+
padding-left: 3px;
|
|
46
|
+
transition: all 0.2s;
|
|
47
|
+
svg {
|
|
48
|
+
width: 22px;
|
|
49
|
+
padding-right: 8px;
|
|
50
|
+
opacity: 0.7;
|
|
51
|
+
}
|
|
32
52
|
&:hover .tree-action{
|
|
33
53
|
visibility: visible;
|
|
34
54
|
}
|
|
55
|
+
&:hover{
|
|
56
|
+
background-color: @primary-color-hover;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.toolbar{
|
|
62
|
+
transition: color 0.2s;
|
|
63
|
+
&:hover{
|
|
64
|
+
color: @primary-color;
|
|
35
65
|
}
|
|
36
66
|
}
|
|
37
67
|
|
|
68
|
+
.dragging::after {
|
|
69
|
+
bottom: 0 !important;
|
|
70
|
+
}
|
|
71
|
+
|
|
38
72
|
.tree-action{
|
|
39
73
|
visibility: hidden;
|
|
40
74
|
position: absolute;
|
|
41
75
|
top: 0;
|
|
42
76
|
right: 3px;
|
|
43
77
|
display: flex;
|
|
78
|
+
.i{
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
width: 22px;
|
|
81
|
+
color: @primary-color;
|
|
82
|
+
}
|
|
44
83
|
}
|
|
45
|
-
}
|
|
46
84
|
|
|
47
|
-
.
|
|
48
|
-
|
|
49
|
-
|
|
85
|
+
.tree-active-node {
|
|
86
|
+
background-color: @primary-color-hover;
|
|
87
|
+
color: @primary-color;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-middle{
|
|
91
|
+
.ant-spin-nested-loading{
|
|
92
|
+
.ant-tree-treenode{
|
|
93
|
+
.ant-tree-switcher-icon{
|
|
94
|
+
line-height: 32px;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
.tree-title{
|
|
98
|
+
font-size: 13px;
|
|
99
|
+
line-height: 32px;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
50
102
|
}
|
|
51
|
-
}
|
|
52
103
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
104
|
+
&-large{
|
|
105
|
+
.ant-spin-nested-loading{
|
|
106
|
+
.ant-tree-treenode{
|
|
107
|
+
.ant-tree-switcher-icon{
|
|
108
|
+
line-height: 36px;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
.tree-title{
|
|
112
|
+
font-size: 14px;
|
|
113
|
+
line-height: 36px;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
56
116
|
}
|
|
57
117
|
}
|
|
58
118
|
|
|
59
119
|
|
|
60
120
|
.dt-context-menu{
|
|
61
|
-
width: 156px;
|
|
62
121
|
ul{
|
|
63
122
|
margin: 0;
|
|
64
123
|
list-style: none;
|
|
@@ -79,12 +138,15 @@
|
|
|
79
138
|
li {
|
|
80
139
|
display: inline-block;
|
|
81
140
|
width: 100%;
|
|
82
|
-
height:
|
|
141
|
+
height: 34px;
|
|
83
142
|
margin: 0 !important;
|
|
84
|
-
line-height:
|
|
143
|
+
line-height: 32px;
|
|
144
|
+
&.ant-menu-item{
|
|
145
|
+
height: 34px;
|
|
146
|
+
}
|
|
85
147
|
|
|
86
148
|
span {
|
|
87
|
-
line-height:
|
|
149
|
+
line-height: 34px;
|
|
88
150
|
font-size: 13px;
|
|
89
151
|
}
|
|
90
152
|
|
|
@@ -13,6 +13,44 @@ export declare const BasicProps: {
|
|
|
13
13
|
type: BooleanConstructor;
|
|
14
14
|
default: boolean;
|
|
15
15
|
};
|
|
16
|
+
blockNode: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
fieldNames: {
|
|
21
|
+
type: PropType<FieldNames>;
|
|
22
|
+
default: {
|
|
23
|
+
children: string;
|
|
24
|
+
title: string;
|
|
25
|
+
key: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
disabled: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
draggable: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
filterTreeNode: {
|
|
37
|
+
type: PropType<(node: Recordable) => boolean>;
|
|
38
|
+
};
|
|
39
|
+
multiple: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
selectable: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
showLine: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
activeKey: {
|
|
52
|
+
type: PropType<KeyType>;
|
|
53
|
+
};
|
|
16
54
|
loading: {
|
|
17
55
|
type: BooleanConstructor;
|
|
18
56
|
default: boolean;
|
|
@@ -33,9 +71,6 @@ export declare const BasicProps: {
|
|
|
33
71
|
type: PropType<CheckKeys>;
|
|
34
72
|
default: () => any[];
|
|
35
73
|
};
|
|
36
|
-
fieldNames: {
|
|
37
|
-
type: PropType<FieldNames>;
|
|
38
|
-
};
|
|
39
74
|
beforeRightClick: {
|
|
40
75
|
type: PropType<(...arg: any) => ContextMenuItem[]>;
|
|
41
76
|
default: any;
|
|
@@ -66,10 +101,14 @@ export declare const BasicProps: {
|
|
|
66
101
|
type: PropType<(searchValue: any, node: TreeItem, fieldNames: FieldNames) => boolean>;
|
|
67
102
|
default: any;
|
|
68
103
|
};
|
|
69
|
-
checkable:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
104
|
+
checkable: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
expandOnSearch: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
73
112
|
treeData: {
|
|
74
113
|
type: PropType<import("ant-design-vue/lib/tree").DataNode[]>;
|
|
75
114
|
};
|
|
@@ -87,10 +87,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
87
87
|
}>> & {
|
|
88
88
|
onSearch?: (...args: any[]) => any;
|
|
89
89
|
}, {
|
|
90
|
-
|
|
90
|
+
search: boolean;
|
|
91
91
|
title: string;
|
|
92
|
+
checkable: boolean;
|
|
92
93
|
toolbar: boolean;
|
|
93
|
-
search: boolean;
|
|
94
94
|
searchText: string;
|
|
95
95
|
checkAll: Function;
|
|
96
96
|
expandAll: Function;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComputedRef, Ref } from "vue";
|
|
2
2
|
import { FieldNames, TreeItem, KeyType, InsertNodeParams } from "../type/tree";
|
|
3
|
-
import { TreeDataItem } from "ant-design-vue/
|
|
4
|
-
export declare function useTree(treeDataRef: Ref<TreeDataItem[]>, getFieldNames: ComputedRef<FieldNames
|
|
3
|
+
import { TreeDataItem, AntTreeNodeDropEvent } from "ant-design-vue/es/tree/Tree";
|
|
4
|
+
export declare function useTree(treeDataRef: Ref<TreeDataItem[]>, getFieldNames: ComputedRef<FieldNames>, emit: (event: string, ...args: any[]) => void): {
|
|
5
5
|
getAllKeys: (list?: TreeDataItem[]) => KeyType[];
|
|
6
6
|
getEnabledKeys: (list?: TreeDataItem[]) => KeyType[];
|
|
7
7
|
getChildrenKeys: (nodeKey: string | number, list?: TreeDataItem[]) => KeyType[];
|
|
@@ -11,4 +11,5 @@ export declare function useTree(treeDataRef: Ref<TreeDataItem[]>, getFieldNames:
|
|
|
11
11
|
insertNodesByKey: ({ parentKey, list, push }: InsertNodeParams) => void;
|
|
12
12
|
deleteNodeByKey: (key: string, list?: TreeDataItem[]) => void;
|
|
13
13
|
getSelectedNode: (key: KeyType, list?: TreeItem[], selectedNode?: TreeItem | null) => TreeItem;
|
|
14
|
+
onDrop: (info: AntTreeNodeDropEvent) => void;
|
|
14
15
|
};
|
|
@@ -12,6 +12,44 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
12
12
|
type: BooleanConstructor;
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
|
+
blockNode: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
fieldNames: {
|
|
20
|
+
type: import("vue").PropType<FieldNames>;
|
|
21
|
+
default: {
|
|
22
|
+
children: string;
|
|
23
|
+
title: string;
|
|
24
|
+
key: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
disabled: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
draggable: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
filterTreeNode: {
|
|
36
|
+
type: import("vue").PropType<(node: Recordable<any>) => boolean>;
|
|
37
|
+
};
|
|
38
|
+
multiple: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
selectable: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
showLine: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
activeKey: {
|
|
51
|
+
type: import("vue").PropType<KeyType>;
|
|
52
|
+
};
|
|
15
53
|
loading: {
|
|
16
54
|
type: BooleanConstructor;
|
|
17
55
|
default: boolean;
|
|
@@ -32,9 +70,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
32
70
|
type: import("vue").PropType<CheckKeys>;
|
|
33
71
|
default: () => any[];
|
|
34
72
|
};
|
|
35
|
-
fieldNames: {
|
|
36
|
-
type: import("vue").PropType<FieldNames>;
|
|
37
|
-
};
|
|
38
73
|
beforeRightClick: {
|
|
39
74
|
type: import("vue").PropType<(...arg: any) => import("./type/menu").ContextMenuItem[]>;
|
|
40
75
|
default: any;
|
|
@@ -65,10 +100,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
65
100
|
type: import("vue").PropType<(searchValue: any, node: TreeItem, fieldNames: FieldNames) => boolean>;
|
|
66
101
|
default: any;
|
|
67
102
|
};
|
|
68
|
-
checkable:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
103
|
+
checkable: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
expandOnSearch: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
72
111
|
treeData: {
|
|
73
112
|
type: import("vue").PropType<import("ant-design-vue/lib/tree").DataNode[]>;
|
|
74
113
|
};
|
|
@@ -101,6 +140,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
101
140
|
extendSlots: (slots: Readonly<{
|
|
102
141
|
[name: string]: import("vue").Slot;
|
|
103
142
|
}>, excludeKeys?: string[]) => any;
|
|
143
|
+
getUiSize: import("vue").ComputedRef<import('../../../theme').UiSize>;
|
|
104
144
|
props: any;
|
|
105
145
|
attrs: {
|
|
106
146
|
[x: string]: unknown;
|
|
@@ -108,7 +148,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
108
148
|
slots: Readonly<{
|
|
109
149
|
[name: string]: import("vue").Slot;
|
|
110
150
|
}>;
|
|
111
|
-
emit: (event: "update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "update:searchValue", ...args: any[]) => void;
|
|
151
|
+
emit: (event: "update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "drop" | "update:searchValue", ...args: any[]) => void;
|
|
152
|
+
activeKey: import("vue").Ref<KeyType>;
|
|
112
153
|
state: {
|
|
113
154
|
expandedKeys: KeyType[];
|
|
114
155
|
selectedKeys: KeyType[];
|
|
@@ -6283,7 +6324,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6283
6324
|
}>;
|
|
6284
6325
|
getTreeData: import("vue").ComputedRef<TreeItem[]>;
|
|
6285
6326
|
getNotFound: import("vue").ComputedRef<boolean>;
|
|
6286
|
-
getIcon: (params: Recordable, icon?: string) => string;
|
|
6327
|
+
getIcon: (params: Recordable, icon?: string) => string | JSX.Element;
|
|
6287
6328
|
treeData: import("vue").ComputedRef<any>;
|
|
6288
6329
|
getBindValues: import("vue").ComputedRef<any>;
|
|
6289
6330
|
showTitle: import("vue").ComputedRef<string | true | import("vue").Slot>;
|
|
@@ -6292,15 +6333,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6292
6333
|
handleSearch: (searchValue: string) => void;
|
|
6293
6334
|
createContextMenu: ((options: CreateContextOptions) => Promise<unknown>) | (() => void);
|
|
6294
6335
|
handleRightClick: ({ event, node }: Recordable) => Promise<void>;
|
|
6295
|
-
deleteNodeByKey: (key: string, list?: import("ant-design-vue/
|
|
6336
|
+
deleteNodeByKey: (key: string, list?: import("ant-design-vue/es/tree").DataNode[]) => void;
|
|
6296
6337
|
insertNodeByKey: ({ parentKey, node, push }: import("./type/tree").InsertNodeParams) => void;
|
|
6297
6338
|
insertNodesByKey: ({ parentKey, list, push }: import("./type/tree").InsertNodeParams) => void;
|
|
6298
|
-
filterByLevel: (level?: number, list?: import("ant-design-vue/
|
|
6299
|
-
updateNodeByKey: (key: string, node: import("ant-design-vue/
|
|
6300
|
-
getAllKeys: (list?: import("ant-design-vue/
|
|
6301
|
-
getChildrenKeys: (nodeKey: string | number, list?: import("ant-design-vue/
|
|
6302
|
-
getEnabledKeys: (list?: import("ant-design-vue/
|
|
6339
|
+
filterByLevel: (level?: number, list?: import("ant-design-vue/es/tree").DataNode[], currentLevel?: number) => string[] | number[];
|
|
6340
|
+
updateNodeByKey: (key: string, node: import("ant-design-vue/es/tree").DataNode, list?: import("ant-design-vue/es/tree").DataNode[]) => void;
|
|
6341
|
+
getAllKeys: (list?: import("ant-design-vue/es/tree").DataNode[]) => KeyType[];
|
|
6342
|
+
getChildrenKeys: (nodeKey: string | number, list?: import("ant-design-vue/es/tree").DataNode[]) => KeyType[];
|
|
6343
|
+
getEnabledKeys: (list?: import("ant-design-vue/es/tree").DataNode[]) => KeyType[];
|
|
6303
6344
|
getSelectedNode: (key: KeyType, list?: TreeItem[], selectedNode?: TreeItem) => TreeItem;
|
|
6345
|
+
onDrop: (info: import("ant-design-vue/es/tree").AntTreeNodeDropEvent) => void;
|
|
6304
6346
|
setExpandedKeys: (keys: KeyType[]) => void;
|
|
6305
6347
|
getExpandedKeys: () => KeyType[];
|
|
6306
6348
|
setSelectedKeys: (keys: KeyType[]) => void;
|
|
@@ -6402,15 +6444,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6402
6444
|
}>> & {
|
|
6403
6445
|
onSearch?: (...args: any[]) => any;
|
|
6404
6446
|
}, {
|
|
6405
|
-
|
|
6447
|
+
search: boolean;
|
|
6406
6448
|
title: string;
|
|
6449
|
+
checkable: boolean;
|
|
6407
6450
|
toolbar: boolean;
|
|
6408
|
-
search: boolean;
|
|
6409
6451
|
searchText: string;
|
|
6410
6452
|
checkAll: Function;
|
|
6411
6453
|
expandAll: Function;
|
|
6412
6454
|
}>;
|
|
6413
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "update:searchValue")[], "update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "update:searchValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6455
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "drop" | "update:searchValue")[], "update:expandedKeys" | "update:selectedKeys" | "update:value" | "check" | "change" | "clickNode" | "drop" | "update:searchValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
6414
6456
|
defaultExpandLevel: {
|
|
6415
6457
|
type: StringConstructor;
|
|
6416
6458
|
};
|
|
@@ -6421,6 +6463,44 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6421
6463
|
type: BooleanConstructor;
|
|
6422
6464
|
default: boolean;
|
|
6423
6465
|
};
|
|
6466
|
+
blockNode: {
|
|
6467
|
+
type: BooleanConstructor;
|
|
6468
|
+
default: boolean;
|
|
6469
|
+
};
|
|
6470
|
+
fieldNames: {
|
|
6471
|
+
type: import("vue").PropType<FieldNames>;
|
|
6472
|
+
default: {
|
|
6473
|
+
children: string;
|
|
6474
|
+
title: string;
|
|
6475
|
+
key: string;
|
|
6476
|
+
};
|
|
6477
|
+
};
|
|
6478
|
+
disabled: {
|
|
6479
|
+
type: BooleanConstructor;
|
|
6480
|
+
default: boolean;
|
|
6481
|
+
};
|
|
6482
|
+
draggable: {
|
|
6483
|
+
type: BooleanConstructor;
|
|
6484
|
+
default: boolean;
|
|
6485
|
+
};
|
|
6486
|
+
filterTreeNode: {
|
|
6487
|
+
type: import("vue").PropType<(node: Recordable<any>) => boolean>;
|
|
6488
|
+
};
|
|
6489
|
+
multiple: {
|
|
6490
|
+
type: BooleanConstructor;
|
|
6491
|
+
default: boolean;
|
|
6492
|
+
};
|
|
6493
|
+
selectable: {
|
|
6494
|
+
type: BooleanConstructor;
|
|
6495
|
+
default: boolean;
|
|
6496
|
+
};
|
|
6497
|
+
showLine: {
|
|
6498
|
+
type: BooleanConstructor;
|
|
6499
|
+
default: boolean;
|
|
6500
|
+
};
|
|
6501
|
+
activeKey: {
|
|
6502
|
+
type: import("vue").PropType<KeyType>;
|
|
6503
|
+
};
|
|
6424
6504
|
loading: {
|
|
6425
6505
|
type: BooleanConstructor;
|
|
6426
6506
|
default: boolean;
|
|
@@ -6441,9 +6521,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6441
6521
|
type: import("vue").PropType<CheckKeys>;
|
|
6442
6522
|
default: () => any[];
|
|
6443
6523
|
};
|
|
6444
|
-
fieldNames: {
|
|
6445
|
-
type: import("vue").PropType<FieldNames>;
|
|
6446
|
-
};
|
|
6447
6524
|
beforeRightClick: {
|
|
6448
6525
|
type: import("vue").PropType<(...arg: any) => import("./type/menu").ContextMenuItem[]>;
|
|
6449
6526
|
default: any;
|
|
@@ -6474,10 +6551,14 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6474
6551
|
type: import("vue").PropType<(searchValue: any, node: TreeItem, fieldNames: FieldNames) => boolean>;
|
|
6475
6552
|
default: any;
|
|
6476
6553
|
};
|
|
6477
|
-
checkable:
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6554
|
+
checkable: {
|
|
6555
|
+
type: BooleanConstructor;
|
|
6556
|
+
default: boolean;
|
|
6557
|
+
};
|
|
6558
|
+
expandOnSearch: {
|
|
6559
|
+
type: BooleanConstructor;
|
|
6560
|
+
default: boolean;
|
|
6561
|
+
};
|
|
6481
6562
|
treeData: {
|
|
6482
6563
|
type: import("vue").PropType<import("ant-design-vue/lib/tree").DataNode[]>;
|
|
6483
6564
|
};
|
|
@@ -6500,10 +6581,24 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6500
6581
|
onCheck?: (...args: any[]) => any;
|
|
6501
6582
|
onChange?: (...args: any[]) => any;
|
|
6502
6583
|
onClickNode?: (...args: any[]) => any;
|
|
6584
|
+
onDrop?: (...args: any[]) => any;
|
|
6503
6585
|
"onUpdate:searchValue"?: (...args: any[]) => any;
|
|
6504
6586
|
}, {
|
|
6587
|
+
search: boolean;
|
|
6588
|
+
title: string;
|
|
6505
6589
|
defaultExpandAll: boolean;
|
|
6506
6590
|
showIcon: boolean;
|
|
6591
|
+
blockNode: boolean;
|
|
6592
|
+
fieldNames: {
|
|
6593
|
+
children: string;
|
|
6594
|
+
title: string;
|
|
6595
|
+
key: string;
|
|
6596
|
+
};
|
|
6597
|
+
disabled: boolean;
|
|
6598
|
+
draggable: boolean;
|
|
6599
|
+
multiple: boolean;
|
|
6600
|
+
selectable: boolean;
|
|
6601
|
+
showLine: boolean;
|
|
6507
6602
|
loading: boolean;
|
|
6508
6603
|
checkStrictly: boolean;
|
|
6509
6604
|
expandedKeys: KeyType[];
|
|
@@ -6517,10 +6612,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
6517
6612
|
filterFn: (searchValue: any, node: TreeItem, fieldNames: FieldNames) => boolean;
|
|
6518
6613
|
checkable: boolean;
|
|
6519
6614
|
expandOnSearch: boolean;
|
|
6520
|
-
checkOnSearch: boolean;
|
|
6521
|
-
selectedOnSearch: boolean;
|
|
6522
|
-
title: string;
|
|
6523
6615
|
toolbar: boolean;
|
|
6524
|
-
search: boolean;
|
|
6525
6616
|
}>;
|
|
6526
6617
|
export default _sfc_main;
|
|
@@ -61,7 +61,7 @@ const basicProps = {
|
|
|
61
61
|
},
|
|
62
62
|
maxSize: {
|
|
63
63
|
type: Number,
|
|
64
|
-
default:
|
|
64
|
+
default: Infinity
|
|
65
65
|
},
|
|
66
66
|
helpText: {
|
|
67
67
|
type: String,
|
|
@@ -124,7 +124,7 @@ function useFile({
|
|
|
124
124
|
helpTexts.push(`\u652F\u6301${accept.join("\u3001").replaceAll(".", "")}\u683C\u5F0F`);
|
|
125
125
|
}
|
|
126
126
|
const maxSize = unref(maxSizeRef);
|
|
127
|
-
if (maxSize) {
|
|
127
|
+
if (maxSize && maxSize !== Infinity) {
|
|
128
128
|
helpTexts.push(`\u4E0D\u8D85\u8FC7${maxSize}M`);
|
|
129
129
|
}
|
|
130
130
|
const maxNumber = unref(maxCountRef);
|
|
@@ -177,34 +177,34 @@ const getFileThumb = (fileType) => {
|
|
|
177
177
|
switch (fileType) {
|
|
178
178
|
case "pptx":
|
|
179
179
|
case "ppt":
|
|
180
|
-
return "
|
|
180
|
+
return "imgs/fu_ppt.gif";
|
|
181
181
|
case "docx":
|
|
182
182
|
case "doc":
|
|
183
|
-
return "
|
|
183
|
+
return "imgs/fu_doc.gif";
|
|
184
184
|
case "pdf":
|
|
185
|
-
return "
|
|
185
|
+
return "imgs/fu_pdf.gif";
|
|
186
186
|
case "jpg":
|
|
187
187
|
case "jpeg":
|
|
188
188
|
case "png":
|
|
189
189
|
case "bmp":
|
|
190
190
|
case "ofd":
|
|
191
191
|
case "gif":
|
|
192
|
-
return "
|
|
192
|
+
return "imgs/fu_bmp.gif";
|
|
193
193
|
case "xls":
|
|
194
194
|
case "xlsx":
|
|
195
|
-
return "
|
|
195
|
+
return "imgs/fu_exl.gif";
|
|
196
196
|
case "csv":
|
|
197
|
-
return "
|
|
197
|
+
return "imgs/fu_txt.gif";
|
|
198
198
|
case "txt":
|
|
199
|
-
return "
|
|
199
|
+
return "imgs/fu_txt.gif";
|
|
200
200
|
case "rar":
|
|
201
201
|
case "zip":
|
|
202
202
|
case "7z":
|
|
203
203
|
case "tar":
|
|
204
204
|
case "gz":
|
|
205
|
-
return "
|
|
205
|
+
return "imgs/fu_rar.gif";
|
|
206
206
|
default:
|
|
207
|
-
return "
|
|
207
|
+
return "imgs/fu_blank.gif";
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
@@ -215,7 +215,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
215
215
|
const [register] = useModal({
|
|
216
216
|
width: "70%",
|
|
217
217
|
title: (data) => `\u9644\u4EF6\u9884\u89C8 - ${data.fileName}`,
|
|
218
|
-
|
|
218
|
+
bodyStyle: {
|
|
219
|
+
padding: 0
|
|
220
|
+
},
|
|
219
221
|
wrapClassName: "dt-pdf",
|
|
220
222
|
maskClosable: false,
|
|
221
223
|
footer: null
|
|
@@ -248,7 +250,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
248
250
|
const [register] = useModal({
|
|
249
251
|
width: "900px",
|
|
250
252
|
title: (data) => `\u9644\u4EF6\u9884\u89C8 - ${data.fileName}`,
|
|
251
|
-
|
|
253
|
+
bodyStyle: {
|
|
254
|
+
padding: 0
|
|
255
|
+
},
|
|
252
256
|
wrapClassName: "dt-word",
|
|
253
257
|
maskClosable: false,
|
|
254
258
|
footer: null
|
|
@@ -286,7 +290,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
286
290
|
};
|
|
287
291
|
}
|
|
288
292
|
});
|
|
289
|
-
const _hoisted_1 = {
|
|
293
|
+
const _hoisted_1 = {
|
|
294
|
+
key: 0,
|
|
295
|
+
class: "flex items-center"
|
|
296
|
+
};
|
|
290
297
|
const _hoisted_2 = { class: "pl-3" };
|
|
291
298
|
const _hoisted_3 = { class: "flex justify-between border border-solid border-gray-300 p-1 mt-2" };
|
|
292
299
|
const _hoisted_4 = { class: "flex items-center" };
|
|
@@ -341,7 +348,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
341
348
|
},
|
|
342
349
|
{
|
|
343
350
|
class: "mdi:delete-outline",
|
|
344
|
-
show: () => props.showDelete,
|
|
351
|
+
show: () => !unref(getBind).disabled && props.showDelete,
|
|
345
352
|
click: (file) => {
|
|
346
353
|
fileList.value = unref(fileList).filter((f) => f.fileId !== file.fileId);
|
|
347
354
|
}
|
|
@@ -418,12 +425,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
418
425
|
const { getAppConf } = useAppStore();
|
|
419
426
|
const { downloadUrl = getAppConf.pages.downloadUrl } = props;
|
|
420
427
|
let _downloadUrl = isString(downloadUrl) ? downloadUrl : downloadUrl.api;
|
|
428
|
+
let _downloadType = isString(downloadUrl) ? "get" : downloadUrl.type;
|
|
421
429
|
if (["jpg", "jpeg", "png", "bmp", "gif"].includes(file.fileType)) {
|
|
422
|
-
imgSrcRef.value = `${_downloadUrl}?id=${file.fileId}`;
|
|
430
|
+
imgSrcRef.value = `${getAppConf.http?.baseUrl}${_downloadUrl}?id=${file.fileId}`;
|
|
423
431
|
imgVisable.value = true;
|
|
424
432
|
return;
|
|
425
433
|
}
|
|
426
|
-
let result = await http
|
|
434
|
+
let result = await http[_downloadType](_downloadUrl, { id: file.fileId }, {
|
|
427
435
|
onlyData: false,
|
|
428
436
|
responseType: "blob",
|
|
429
437
|
isTransformResponse: false,
|
|
@@ -500,7 +508,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
500
508
|
])
|
|
501
509
|
]),
|
|
502
510
|
default: withCtx(() => [
|
|
503
|
-
|
|
511
|
+
!unref(getBind).disabled ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
504
512
|
createVNode(_component_AButton, null, {
|
|
505
513
|
default: withCtx(() => [
|
|
506
514
|
createElementVNode("i", {
|
|
@@ -511,7 +519,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
511
519
|
_: 1
|
|
512
520
|
}),
|
|
513
521
|
createElementVNode("p", _hoisted_2, toDisplayString(unref(getHelpText)), 1)
|
|
514
|
-
]),
|
|
522
|
+
])) : createCommentVNode("", true),
|
|
515
523
|
createVNode(_sfc_main$2, { onRegister: unref(registerPdf) }, null, 8, ["onRegister"]),
|
|
516
524
|
createVNode(_sfc_main$1, { onRegister: unref(registerDocx) }, null, 8, ["onRegister"])
|
|
517
525
|
]),
|
|
@@ -532,7 +540,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
532
540
|
onPreview: handlePreview
|
|
533
541
|
}), {
|
|
534
542
|
default: withCtx(() => [
|
|
535
|
-
!_ctx.maxCount || !unref(fileList).length || unref(fileList).length < _ctx.maxCount ? (openBlock(), createElementBlock("div", _hoisted_8, _hoisted_11)) : createCommentVNode("", true)
|
|
543
|
+
!unref(getBind).disabled && (!_ctx.maxCount || !unref(fileList).length || unref(fileList).length < _ctx.maxCount) ? (openBlock(), createElementBlock("div", _hoisted_8, _hoisted_11)) : createCommentVNode("", true)
|
|
536
544
|
]),
|
|
537
545
|
_: 1
|
|
538
546
|
}, 16, ["fileList"])) : createCommentVNode("", true),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import '../iframe/index.less';
|
|
2
|
+
@import '../modal/index.less';
|
|
2
3
|
|
|
3
4
|
|
|
4
5
|
.ant-image-preview-img {
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
top: 0 !important;
|
|
18
19
|
.ant-modal-content{
|
|
19
20
|
height: 100%;
|
|
20
|
-
|
|
21
|
+
|
|
21
22
|
.ant-modal-body{
|
|
22
23
|
height: calc(100% - 55px);
|
|
23
24
|
}
|
|
@@ -32,6 +33,10 @@
|
|
|
32
33
|
width: 100%;
|
|
33
34
|
}
|
|
34
35
|
}
|
|
36
|
+
|
|
37
|
+
.ant-modal-body{
|
|
38
|
+
overflow-x: hidden;
|
|
39
|
+
}
|
|
35
40
|
}
|
|
36
41
|
|
|
37
42
|
.word-view{
|
|
@@ -59,6 +64,10 @@
|
|
|
59
64
|
width: 104px !important;
|
|
60
65
|
}
|
|
61
66
|
}
|
|
67
|
+
|
|
68
|
+
.ant-upload-disabled{
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
62
71
|
|
|
63
72
|
.ant-upload-list-item-actions{
|
|
64
73
|
display: flex;
|
|
@@ -123,7 +123,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
123
123
|
uploadFile: ({ file, onSuccess, onError, onProgress }: UploadRequestOption) => Promise<void>;
|
|
124
124
|
fileView: (file: UploadFile) => Promise<void>;
|
|
125
125
|
download: (file: UploadFile) => void;
|
|
126
|
-
readonly getFileThumb: (fileType: string) => "
|
|
126
|
+
readonly getFileThumb: (fileType: string) => "imgs/fu_ppt.gif" | "imgs/fu_doc.gif" | "imgs/fu_pdf.gif" | "imgs/fu_bmp.gif" | "imgs/fu_exl.gif" | "imgs/fu_txt.gif" | "imgs/fu_rar.gif" | "imgs/fu_blank.gif";
|
|
127
127
|
PdfView: import("vue").DefineComponent<{}, {
|
|
128
128
|
exeReduce: import("vue").Ref<number>;
|
|
129
129
|
pdfUrlRef: import("vue").Ref<any>;
|