hy-dispatch-ui-v3 0.2.59 → 0.2.61
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/dist/tailwind.css +131 -6
- package/es/_virtual/_plugin-vue_export-helper.mjs +9 -0
- package/es/api/index.mjs +137 -0
- package/es/bussiness/hyAddDepartmentType/addDepartmentType.vue.mjs +365 -0
- package/es/bussiness/hyAddDepartmentType/index.mjs +6 -0
- package/es/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +31 -0
- package/es/bussiness/index.mjs +1 -1
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +1 -1
- package/es/components/hyBatchUploadDialog/batchUploadDialog.vue.mjs +45 -36
- package/es/components/hyDatePicker/datePicker.vue.mjs +2 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +106 -43
- package/es/components/hyForm/cpns/locationSelect.vue.mjs +358 -0
- package/es/components/hyForm/form.vue.mjs +83 -31
- package/es/components/hyForm/js/index.mjs +9 -2
- package/es/components/hyForm/js/useAppForm.mjs +6 -36
- package/es/components/hyMap/map.vue.mjs +3 -3
- package/es/components/hyMenu/menu.vue.mjs +38 -23
- package/es/components/hyMenu/style/menu.scss +3 -1
- package/es/components/hyOrgCascader/js/index.mjs +2 -2
- package/es/components/hyRadioGroup/index.mjs +6 -0
- package/es/components/hyRadioGroup/radioGroup.vue.mjs +123 -0
- package/es/components/hyRadioGroup/style/radioGroup.scss +0 -0
- package/es/components/hySearch/cpns/searchItem.vue.mjs +20 -13
- package/es/components/hySearch/js/useAppSearch.mjs +3 -33
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +9 -1
- package/es/components/hyTable/js/index.mjs +6 -3
- package/es/components/hyTable/js/search.mjs +1 -0
- package/es/components/hyTable/table.vue.mjs +11 -4
- package/es/components/hyTableForm/batchTableForm.vue.mjs +5 -2
- package/es/components/hyTableForm/tableForm.vue.mjs +6 -0
- package/es/components/hyTree/js/index.mjs +69 -53
- package/es/components/hyTree/tree.vue.mjs +36 -1
- package/es/components/hyVideoPlayer/js/index.mjs +0 -1
- package/es/components/index.mjs +1 -0
- package/es/hooks/useApi.mjs +2 -2
- package/es/hooks/useGlobalConfig.mjs +1 -1
- package/es/index.mjs +4 -1
- package/es/locale/en.mjs +17 -1
- package/es/locale/zh_CN.mjs +17 -1
- package/es/static/hy-svg-icons/hy-icon-ops-linear-shouqi.js +8 -0
- package/es/static/hy-svg-icons/hy-icon-ops-linear-zhankai.js +8 -0
- package/es/style/index.scss +53 -0
- package/es/style/theme.scss +0 -53
- package/es/utils/form.mjs +56 -7
- package/es/utils/handler.mjs +5 -0
- package/es/utils/index.mjs +2 -1
- package/es/utils/map/hook/bigMap.mjs +4 -0
- package/es/utils/map/hook/gaode.mjs +3 -0
- package/es/utils/map/hook/leafletjs.mjs +10 -10
- package/es/utils/map/index.mjs +27 -7
- package/es/utils/tree.mjs +1 -0
- package/es/version.mjs +1 -1
- package/lib/_virtual/_plugin-vue_export-helper.js +13 -0
- package/lib/api/index.js +147 -0
- package/lib/bussiness/hyAddDepartmentType/addDepartmentType.vue.js +369 -0
- package/lib/bussiness/hyAddDepartmentType/index.js +11 -0
- package/lib/bussiness/hyAddDepartmentType/style/addDepartmentType.scss +31 -0
- package/lib/bussiness/index.js +5 -0
- package/lib/components/hyBatchUploadDialog/batchUploadDialog.vue.js +44 -35
- package/lib/components/hyDatePicker/datePicker.vue.js +2 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +111 -48
- package/lib/components/hyForm/cpns/locationSelect.vue.js +362 -0
- package/lib/components/hyForm/form.vue.js +79 -27
- package/lib/components/hyForm/js/index.js +9 -1
- package/lib/components/hyForm/js/useAppForm.js +5 -35
- package/lib/components/hyMap/map.vue.js +3 -3
- package/lib/components/hyMenu/menu.vue.js +37 -22
- package/lib/components/hyMenu/style/menu.scss +3 -1
- package/lib/components/hyOrgCascader/js/index.js +2 -2
- package/lib/components/hyRadioGroup/index.js +11 -0
- package/lib/components/hyRadioGroup/radioGroup.vue.js +127 -0
- package/lib/components/hyRadioGroup/style/radioGroup.scss +0 -0
- package/lib/components/hySearch/cpns/searchItem.vue.js +19 -12
- package/lib/components/hySearch/js/useAppSearch.js +2 -32
- package/lib/components/hyTable/cpns/virtualTable.vue.js +9 -1
- package/lib/components/hyTable/js/index.js +6 -3
- package/lib/components/hyTable/js/search.js +1 -0
- package/lib/components/hyTable/table.vue.js +43 -36
- package/lib/components/hyTableForm/batchTableForm.vue.js +5 -2
- package/lib/components/hyTableForm/tableForm.vue.js +6 -0
- package/lib/components/hyTree/js/index.js +69 -53
- package/lib/components/hyTree/tree.vue.js +36 -1
- package/lib/components/hyVideoPlayer/js/index.js +0 -1
- package/lib/components/index.js +14 -12
- package/lib/hooks/useApi.js +2 -2
- package/lib/index.js +61 -49
- package/lib/locale/en.js +17 -1
- package/lib/locale/zh_CN.js +17 -1
- package/lib/static/hy-svg-icons/hy-icon-ops-linear-shouqi.js +8 -0
- package/lib/static/hy-svg-icons/hy-icon-ops-linear-zhankai.js +8 -0
- package/lib/style/index.scss +53 -0
- package/lib/style/theme.scss +0 -53
- package/lib/utils/form.js +57 -5
- package/lib/utils/handler.js +5 -0
- package/lib/utils/index.js +8 -0
- package/lib/utils/map/hook/bigMap.js +4 -0
- package/lib/utils/map/hook/gaode.js +3 -0
- package/lib/utils/map/hook/leafletjs.js +10 -10
- package/lib/utils/map/index.js +26 -6
- package/lib/utils/tree.js +10 -0
- package/lib/version.js +1 -1
- package/package.json +2 -2
|
@@ -146,6 +146,41 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
146
146
|
checkStrictly: {
|
|
147
147
|
type: Boolean,
|
|
148
148
|
default: false
|
|
149
|
+
},
|
|
150
|
+
// 单选时可以取消选中
|
|
151
|
+
cancelable: {
|
|
152
|
+
type: Boolean,
|
|
153
|
+
default: true
|
|
154
|
+
},
|
|
155
|
+
// 是否显示多选框或单选框
|
|
156
|
+
showSelectBox: {
|
|
157
|
+
type: Boolean,
|
|
158
|
+
default: true
|
|
159
|
+
},
|
|
160
|
+
// 是否在点击节点的时候展开或者收缩节点
|
|
161
|
+
expandOnClickNode: {
|
|
162
|
+
type: Boolean,
|
|
163
|
+
default: true
|
|
164
|
+
},
|
|
165
|
+
// 是否在点击节点的时候选中节点
|
|
166
|
+
checkOnClickNode: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
default: false
|
|
169
|
+
},
|
|
170
|
+
// 点击叶节点(最后一个子节点)时是否检查或取消节点
|
|
171
|
+
checkOnClickLeaf: {
|
|
172
|
+
type: Boolean,
|
|
173
|
+
default: true
|
|
174
|
+
},
|
|
175
|
+
// 双击父节点会触发选中功能
|
|
176
|
+
checkOnDblclickParentNode: {
|
|
177
|
+
type: Boolean,
|
|
178
|
+
default: true
|
|
179
|
+
},
|
|
180
|
+
// 初始化过滤数据
|
|
181
|
+
filterConfig: {
|
|
182
|
+
type: Array,
|
|
183
|
+
default: () => []
|
|
149
184
|
}
|
|
150
185
|
},
|
|
151
186
|
emits: [
|
|
@@ -310,7 +345,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
310
345
|
/* STABLE */
|
|
311
346
|
}, 8, ["content"])
|
|
312
347
|
])) : vue.createCommentVNode("v-if", true),
|
|
313
|
-
vue.renderSlot(_ctx.$slots, "input-bottom
|
|
348
|
+
vue.renderSlot(_ctx.$slots, "input-bottom"),
|
|
314
349
|
vue.withDirectives(vue.createElementVNode(
|
|
315
350
|
"div",
|
|
316
351
|
{
|
package/lib/components/index.js
CHANGED
|
@@ -6,26 +6,27 @@ var index = require('./hyDatePicker/index.js');
|
|
|
6
6
|
var index$c = require('./hyForm/index.js');
|
|
7
7
|
var index$d = require('./hyIcon/index.js');
|
|
8
8
|
var index$e = require('./hyIconBox/index.js');
|
|
9
|
-
var index$
|
|
10
|
-
var index$
|
|
9
|
+
var index$l = require('./hySearch/index.js');
|
|
10
|
+
var index$m = require('./hyTable/index.js');
|
|
11
11
|
var index$3 = require('./hyTooltip/index.js');
|
|
12
12
|
var index$8 = require('./hyConfigProvider/index.js');
|
|
13
13
|
var index$7 = require('./hyButton/index.js');
|
|
14
|
-
var index$
|
|
14
|
+
var index$p = require('./hyUserAvatar/index.js');
|
|
15
15
|
var index$h = require('./hyNoPermissions/index.js');
|
|
16
16
|
var index$i = require('./hyNoPermissionsMap/index.js');
|
|
17
17
|
var index$a = require('./hyCutter/index.js');
|
|
18
18
|
var index$b = require('./hyDialog/index.js');
|
|
19
19
|
var index$g = require('./hyMenu/index.js');
|
|
20
|
-
var index$
|
|
21
|
-
var index$
|
|
20
|
+
var index$o = require('./hyTree/index.js');
|
|
21
|
+
var index$q = require('./hyVideoPlayer/index.js');
|
|
22
22
|
var index$4 = require('./hyAudioPlayer/index.js');
|
|
23
23
|
var index$1 = require('./hyInput/index.js');
|
|
24
24
|
var index$2 = require('./hyTimePicker/index.js');
|
|
25
25
|
var index$5 = require('./hyTableForm/index.js');
|
|
26
|
-
var index$
|
|
26
|
+
var index$n = require('./hyTableActionButton/index.js');
|
|
27
27
|
var index$6 = require('./hyBatchUploadDialog/index.js');
|
|
28
28
|
var index$f = require('./hyMap/index.js');
|
|
29
|
+
var index$k = require('./hyRadioGroup/index.js');
|
|
29
30
|
var useAppForm = require('./hyForm/js/useAppForm.js');
|
|
30
31
|
var useAppSearch = require('./hySearch/js/useAppSearch.js');
|
|
31
32
|
var useAppTable = require('./hyTable/js/useAppTable.js');
|
|
@@ -40,20 +41,20 @@ exports.HyDatePicker = index.HyDatePicker;
|
|
|
40
41
|
exports.HyForm = index$c.HyForm;
|
|
41
42
|
exports.HyIcon = index$d.HyIcon;
|
|
42
43
|
exports.HyIconBox = index$e.HyIconBox;
|
|
43
|
-
exports.HySearch = index$
|
|
44
|
-
exports.HyTable = index$
|
|
44
|
+
exports.HySearch = index$l.HySearch;
|
|
45
|
+
exports.HyTable = index$m.HyTable;
|
|
45
46
|
exports.ElTooltip = index$3.ElTooltip;
|
|
46
47
|
exports.HyTooltip = index$3.HyTooltip;
|
|
47
48
|
exports.HyConfigProvider = index$8.HyConfigProvider;
|
|
48
49
|
exports.HyButton = index$7.HyButton;
|
|
49
|
-
exports.HyUserAvatar = index$
|
|
50
|
+
exports.HyUserAvatar = index$p.HyUserAvatar;
|
|
50
51
|
exports.HyNoPermissions = index$h.HyNoPermissions;
|
|
51
52
|
exports.HyNoPermissionsMap = index$i.HyNoPermissionsMap;
|
|
52
53
|
exports.HyCutter = index$a.HyCutter;
|
|
53
54
|
exports.HyDialog = index$b.HyDialog;
|
|
54
55
|
exports.HyMenu = index$g.HyMenu;
|
|
55
|
-
exports.HyTree = index$
|
|
56
|
-
exports.HyVideoPlayer = index$
|
|
56
|
+
exports.HyTree = index$o.HyTree;
|
|
57
|
+
exports.HyVideoPlayer = index$q.HyVideoPlayer;
|
|
57
58
|
exports.HyAudioPlayer = index$4.HyAudioPlayer;
|
|
58
59
|
exports.ElInput = index$1.ElInput;
|
|
59
60
|
exports.HyInput = index$1.HyInput;
|
|
@@ -62,9 +63,10 @@ exports.ElTimePicker = index$2.ElTimePicker;
|
|
|
62
63
|
exports.HyTimePicker = index$2.HyTimePicker;
|
|
63
64
|
exports.HyBatchTableForm = index$5.HyBatchTableForm;
|
|
64
65
|
exports.HyTableForm = index$5.HyTableForm;
|
|
65
|
-
exports.HyTableActionButton = index$
|
|
66
|
+
exports.HyTableActionButton = index$n.HyTableActionButton;
|
|
66
67
|
exports.HyBatchUploadDialog = index$6.HyBatchUploadDialog;
|
|
67
68
|
exports.HyMap = index$f.HyMap;
|
|
69
|
+
exports.HyRadioGroup = index$k.HyRadioGroup;
|
|
68
70
|
exports.resetAppFormValue = useAppForm.resetAppFormValue;
|
|
69
71
|
exports.useAppForm = useAppForm.useAppForm;
|
|
70
72
|
exports.resetAppSearchValue = useAppSearch.resetAppSearchValue;
|
package/lib/hooks/useApi.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var Axios = require('axios');
|
|
4
4
|
var vue = require('vue');
|
|
5
5
|
var useGlobalConfig = require('./useGlobalConfig.js');
|
|
6
6
|
|
|
7
7
|
const localApiKey = /* @__PURE__ */ Symbol("localApiKey");
|
|
8
8
|
const defaultAxios = vue.ref(
|
|
9
|
-
|
|
9
|
+
Axios.create({
|
|
10
10
|
baseURL: "/api/admin",
|
|
11
11
|
withCredentials: false,
|
|
12
12
|
timeout: 6e4
|
package/lib/index.js
CHANGED
|
@@ -7,29 +7,31 @@ var index = require('./components/hyDatePicker/index.js');
|
|
|
7
7
|
var index$1 = require('./components/hyInput/index.js');
|
|
8
8
|
var index$2 = require('./components/hyTimePicker/index.js');
|
|
9
9
|
var index$3 = require('./components/hyTooltip/index.js');
|
|
10
|
-
var index$4 = require('./
|
|
11
|
-
var index$5 = require('./components/
|
|
12
|
-
var index$6 = require('./components/
|
|
13
|
-
var index$7 = require('./components/
|
|
14
|
-
var index$8 = require('./components/
|
|
15
|
-
var index$9 = require('./components/
|
|
16
|
-
var index$a = require('./components/
|
|
17
|
-
var index$b = require('./components/
|
|
18
|
-
var index$c = require('./components/
|
|
19
|
-
var index$d = require('./components/
|
|
20
|
-
var index$e = require('./components/
|
|
21
|
-
var index$f = require('./components/
|
|
22
|
-
var index$g = require('./components/
|
|
23
|
-
var index$h = require('./components/
|
|
24
|
-
var index$i = require('./components/
|
|
25
|
-
var index$j = require('./components/
|
|
26
|
-
var index$k = require('./components/
|
|
27
|
-
var index$l = require('./components/
|
|
28
|
-
var index$m = require('./components/
|
|
29
|
-
var index$n = require('./components/
|
|
30
|
-
var index$o = require('./components/
|
|
31
|
-
var index$p = require('./components/
|
|
32
|
-
var index$q = require('./
|
|
10
|
+
var index$4 = require('./bussiness/hyAddDepartmentType/index.js');
|
|
11
|
+
var index$5 = require('./components/hyAudioPlayer/index.js');
|
|
12
|
+
var index$6 = require('./components/hyTableForm/index.js');
|
|
13
|
+
var index$7 = require('./components/hyBatchUploadDialog/index.js');
|
|
14
|
+
var index$8 = require('./components/hyButton/index.js');
|
|
15
|
+
var index$9 = require('./components/hyConfigProvider/index.js');
|
|
16
|
+
var index$a = require('./components/hyConfirmDialog/index.js');
|
|
17
|
+
var index$b = require('./components/hyCutter/index.js');
|
|
18
|
+
var index$c = require('./components/hyDialog/index.js');
|
|
19
|
+
var index$d = require('./components/hyForm/index.js');
|
|
20
|
+
var index$e = require('./components/hyIcon/index.js');
|
|
21
|
+
var index$f = require('./components/hyIconBox/index.js');
|
|
22
|
+
var index$g = require('./components/hyMap/index.js');
|
|
23
|
+
var index$h = require('./components/hyMenu/index.js');
|
|
24
|
+
var index$i = require('./components/hyNoPermissions/index.js');
|
|
25
|
+
var index$j = require('./components/hyNoPermissionsMap/index.js');
|
|
26
|
+
var index$k = require('./components/hyOrgCascader/index.js');
|
|
27
|
+
var index$l = require('./components/hyRadioGroup/index.js');
|
|
28
|
+
var index$m = require('./components/hySearch/index.js');
|
|
29
|
+
var index$n = require('./components/hyTable/index.js');
|
|
30
|
+
var index$o = require('./components/hyTableActionButton/index.js');
|
|
31
|
+
var index$p = require('./components/hyTree/index.js');
|
|
32
|
+
var index$q = require('./components/hyUserAvatar/index.js');
|
|
33
|
+
var index$r = require('./components/hyVideoPlayer/index.js');
|
|
34
|
+
var index$s = require('./utils/map/index.js');
|
|
33
35
|
var permission = require('./utils/permission.js');
|
|
34
36
|
var crypto = require('./utils/crypto.js');
|
|
35
37
|
var file = require('./utils/file.js');
|
|
@@ -51,6 +53,7 @@ var useVideoPlayerConfig = require('./hooks/useVideoPlayerConfig.js');
|
|
|
51
53
|
var adaptive = require('./utils/adaptive.js');
|
|
52
54
|
var useAppForm = require('./components/hyForm/js/useAppForm.js');
|
|
53
55
|
var useAppSearch = require('./components/hySearch/js/useAppSearch.js');
|
|
56
|
+
var hyVirtualTree = require('hy-virtual-tree');
|
|
54
57
|
var useAppTable = require('./components/hyTable/js/useAppTable.js');
|
|
55
58
|
var useAppTableForm = require('./components/hyTableForm/js/useAppTableForm.js');
|
|
56
59
|
var useMixins = require('./hooks/useMixins.js');
|
|
@@ -70,32 +73,34 @@ exports.ElTimePicker = index$2.ElTimePicker;
|
|
|
70
73
|
exports.HyTimePicker = index$2.HyTimePicker;
|
|
71
74
|
exports.ElTooltip = index$3.ElTooltip;
|
|
72
75
|
exports.HyTooltip = index$3.HyTooltip;
|
|
73
|
-
exports.
|
|
74
|
-
exports.
|
|
75
|
-
exports.
|
|
76
|
-
exports.
|
|
77
|
-
exports.
|
|
78
|
-
exports.
|
|
79
|
-
exports.
|
|
80
|
-
exports.
|
|
81
|
-
exports.
|
|
82
|
-
exports.
|
|
83
|
-
exports.
|
|
84
|
-
exports.
|
|
85
|
-
exports.
|
|
86
|
-
exports.
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
exports.
|
|
91
|
-
exports.
|
|
92
|
-
exports.
|
|
93
|
-
exports.
|
|
94
|
-
exports.
|
|
95
|
-
exports.
|
|
96
|
-
exports.
|
|
97
|
-
exports.
|
|
98
|
-
exports.
|
|
76
|
+
exports.HyAddDepartmentType = index$4.HyAddDepartmentType;
|
|
77
|
+
exports.HyAudioPlayer = index$5.HyAudioPlayer;
|
|
78
|
+
exports.HyBatchTableForm = index$6.HyBatchTableForm;
|
|
79
|
+
exports.HyTableForm = index$6.HyTableForm;
|
|
80
|
+
exports.HyBatchUploadDialog = index$7.HyBatchUploadDialog;
|
|
81
|
+
exports.HyButton = index$8.HyButton;
|
|
82
|
+
exports.HyConfigProvider = index$9.HyConfigProvider;
|
|
83
|
+
exports.HyConfirmDialog = index$a.HyConfirmDialog;
|
|
84
|
+
exports.HyCutter = index$b.HyCutter;
|
|
85
|
+
exports.HyDialog = index$c.HyDialog;
|
|
86
|
+
exports.HyForm = index$d.HyForm;
|
|
87
|
+
exports.HyIcon = index$e.HyIcon;
|
|
88
|
+
exports.HyIconBox = index$f.HyIconBox;
|
|
89
|
+
exports.HyMap = index$g.HyMap;
|
|
90
|
+
exports.HyMenu = index$h.HyMenu;
|
|
91
|
+
exports.HyNoPermissions = index$i.HyNoPermissions;
|
|
92
|
+
exports.HyNoPermissionsMap = index$j.HyNoPermissionsMap;
|
|
93
|
+
exports.HyOrgCascader = index$k.HyOrgCascader;
|
|
94
|
+
exports.HyRadioGroup = index$l.HyRadioGroup;
|
|
95
|
+
exports.HySearch = index$m.HySearch;
|
|
96
|
+
exports.HyTable = index$n.HyTable;
|
|
97
|
+
exports.HyTableActionButton = index$o.HyTableActionButton;
|
|
98
|
+
exports.HyTree = index$p.HyTree;
|
|
99
|
+
exports.HyUserAvatar = index$q.HyUserAvatar;
|
|
100
|
+
exports.HyVideoPlayer = index$r.HyVideoPlayer;
|
|
101
|
+
exports.InitMap = index$s.InitMap;
|
|
102
|
+
exports.setMapServer = index$s.setMapServer;
|
|
103
|
+
exports.setPoiServer = index$s.setPoiServer;
|
|
99
104
|
exports.PERMISSION = permission.PERMISSION;
|
|
100
105
|
exports.base64Decrypt = crypto.base64Decrypt;
|
|
101
106
|
exports.encryptToBase64 = crypto.encryptToBase64;
|
|
@@ -115,7 +120,10 @@ exports.useLocale = useLocale.useLocale;
|
|
|
115
120
|
exports.clearResizeObserver = useResizeObserver.clearResizeObserver;
|
|
116
121
|
exports.useResizeObserver = useResizeObserver.useResizeObserver;
|
|
117
122
|
exports.clearSpace = form.clearSpace;
|
|
123
|
+
exports.columnLabelHandler = form.columnLabelHandler;
|
|
124
|
+
exports.columnPlaceholderHandler = form.columnPlaceholderHandler;
|
|
118
125
|
exports.columnRuleHandler = form.columnRuleHandler;
|
|
126
|
+
exports.genColumnDefaultLabel = form.genColumnDefaultLabel;
|
|
119
127
|
exports.genRuleRequiredMsgHandler = form.genRuleRequiredMsgHandler;
|
|
120
128
|
exports.genValueByProp = form.genValueByProp;
|
|
121
129
|
exports.getValueByProp = form.getValueByProp;
|
|
@@ -178,6 +186,10 @@ exports.resetAppFormValue = useAppForm.resetAppFormValue;
|
|
|
178
186
|
exports.useAppForm = useAppForm.useAppForm;
|
|
179
187
|
exports.resetAppSearchValue = useAppSearch.resetAppSearchValue;
|
|
180
188
|
exports.useAppSearch = useAppSearch.useAppSearch;
|
|
189
|
+
Object.defineProperty(exports, "setGlobalTreeConfig", {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function () { return hyVirtualTree.setGlobalTreeConfig; }
|
|
192
|
+
});
|
|
181
193
|
exports.useAppTable = useAppTable.useAppTable;
|
|
182
194
|
exports.useAppTableForm = useAppTableForm.useAppTableForm;
|
|
183
195
|
exports.useMixins = useMixins.useMixins;
|
package/lib/locale/en.js
CHANGED
|
@@ -31,7 +31,8 @@ var en = {
|
|
|
31
31
|
wednesday: "Wednesday",
|
|
32
32
|
thursday: "Thursday",
|
|
33
33
|
friday: "Friday",
|
|
34
|
-
saturday: "Saturday"
|
|
34
|
+
saturday: "Saturday",
|
|
35
|
+
help: "Help"
|
|
35
36
|
},
|
|
36
37
|
form: {
|
|
37
38
|
department: "Department",
|
|
@@ -148,6 +149,21 @@ var en = {
|
|
|
148
149
|
endMonth: "End Month",
|
|
149
150
|
startYear: "Start Year",
|
|
150
151
|
endYear: "End Year"
|
|
152
|
+
},
|
|
153
|
+
departmentType: {
|
|
154
|
+
editDepartmentType: "Edit Department Type",
|
|
155
|
+
addDepartmentType: "Add Department Type",
|
|
156
|
+
departmentIcon: "Department Icon",
|
|
157
|
+
upload: "Upload",
|
|
158
|
+
pleaseUploadDepartmentTypeIcon: "Please Upload Department Type Icon",
|
|
159
|
+
iconSize44px: "Icon Size 44px",
|
|
160
|
+
ifNoIconUseTheDefaultIcon: "If No Icon, Use The Default Icon",
|
|
161
|
+
departmentTypeName: "Department Type Name",
|
|
162
|
+
pleaseEnterTheDepartmentTypeName: "Please Enter The Department Type Name",
|
|
163
|
+
imageUploadFailedLogoSizeWithin2M: "Image Upload Failed, Logo Size Within 2M",
|
|
164
|
+
editDeviceCover: "Edit Device Cover",
|
|
165
|
+
close: "Close",
|
|
166
|
+
save: "Save"
|
|
151
167
|
}
|
|
152
168
|
};
|
|
153
169
|
|
package/lib/locale/zh_CN.js
CHANGED
|
@@ -31,7 +31,8 @@ var zh_CN = {
|
|
|
31
31
|
wednesday: "\u661F\u671F\u4E09",
|
|
32
32
|
thursday: "\u661F\u671F\u56DB",
|
|
33
33
|
friday: "\u661F\u671F\u4E94",
|
|
34
|
-
saturday: "\u661F\u671F\u516D"
|
|
34
|
+
saturday: "\u661F\u671F\u516D",
|
|
35
|
+
help: "\u5E2E\u52A9"
|
|
35
36
|
},
|
|
36
37
|
form: {
|
|
37
38
|
department: "\u6240\u5C5E\u90E8\u95E8",
|
|
@@ -144,6 +145,21 @@ var zh_CN = {
|
|
|
144
145
|
endMonth: "\u7ED3\u675F\u6708\u4EFD",
|
|
145
146
|
startYear: "\u5F00\u59CB\u5E74\u4EFD",
|
|
146
147
|
endYear: "\u7ED3\u675F\u5E74\u4EFD"
|
|
148
|
+
},
|
|
149
|
+
departmentType: {
|
|
150
|
+
editDepartmentType: "\u7F16\u8F91\u90E8\u95E8\u7C7B\u578B",
|
|
151
|
+
addDepartmentType: "\u6DFB\u52A0\u90E8\u95E8\u7C7B\u578B",
|
|
152
|
+
departmentIcon: "\u90E8\u95E8\u56FE\u6807",
|
|
153
|
+
upload: "\u4E0A \u4F20",
|
|
154
|
+
pleaseUploadDepartmentTypeIcon: "\u8BF7\u4E0A\u4F20\u90E8\u95E8\u7C7B\u578B\u56FE\u6807",
|
|
155
|
+
iconSize44px: "\u56FE\u6807\u5C3A\u5BF844px",
|
|
156
|
+
ifNoIconUseTheDefaultIcon: "\u82E5\u65E0\u56FE\u6807\u5219\u4F7F\u7528\u9ED8\u8BA4\u56FE\u6807",
|
|
157
|
+
departmentTypeName: "\u90E8\u95E8\u7C7B\u578B\u540D\u79F0",
|
|
158
|
+
pleaseEnterTheDepartmentTypeName: "\u8BF7\u8F93\u5165\u90E8\u95E8\u7C7B\u578B\u540D\u79F0",
|
|
159
|
+
imageUploadFailedLogoSizeWithin2M: "\u56FE\u7247\u4E0A\u4F20\u5931\u8D25\uFF0Clogo\u5927\u5C0F2M\u4EE5\u5185\u3002",
|
|
160
|
+
editDeviceCover: "\u7F16\u8F91\u8BBE\u5907\u5C01\u9762",
|
|
161
|
+
close: "\u5173 \u95ED",
|
|
162
|
+
save: "\u4FDD \u5B58"
|
|
147
163
|
}
|
|
148
164
|
};
|
|
149
165
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
id: 'hy-icon-ops-linear-shouqi',
|
|
3
|
+
symbol: `<symbol id="hy-icon-ops-linear-shouqi" viewBox="0 0 16 16">
|
|
4
|
+
<g id="hy-icon-ops-linear-shouqi-导航/shouqi" stroke="none" stroke-width="1" fill-rule="evenodd">
|
|
5
|
+
<path d="M1,2 C1.55228475,2 2,2.44771525 2,3 L2,13 C2,13.5522847 1.55228475,14 1,14 C0.44771525,14 0,13.5522847 0,13 L0,3 C0,2.44771525 0.44771525,2 1,2 Z M14.9962476,6.99721351 L7.22134415,6.99721351 L7.22134415,6.99721351 L10.3410325,3.80591026 C10.6688751,3.47054177 10.6627742,2.93290294 10.3274057,2.60506033 C10.3232766,2.6010239 10.3191065,2.59702968 10.3148959,2.59307831 C9.96535062,2.26505074 9.41645109,2.28110608 9.08667668,2.62900381 L4.65060824,7.30886388 C4.28556459,7.69396911 4.2848692,8.29714332 4.64902391,8.68308924 L9.01892515,13.3144877 C9.35293318,13.668483 9.91067004,13.6846858 10.2646653,13.3506778 C10.2790116,13.3371414 10.2928995,13.3231273 10.3063053,13.308659 C10.6624129,12.9243285 10.6464065,12.3259543 10.2702613,11.9612115 L7.22134415,9.00471827 L7.22134415,9.00471827 L14.9962476,9.00471827 C15.5506048,9.00471827 16,8.55532302 16,8.00096589 C16,7.44660876 15.5506048,6.99721351 14.9962476,6.99721351 Z" id="hy-icon-ops-linear-shouqi-收起" fill-rule="nonzero"></path>
|
|
6
|
+
</g>
|
|
7
|
+
</symbol>`,
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
id: 'hy-icon-ops-linear-zhankai',
|
|
3
|
+
symbol: `<symbol id="hy-icon-ops-linear-zhankai" viewBox="0 0 16 16">
|
|
4
|
+
<g id="hy-icon-ops-linear-zhankai-导航/zhankai" stroke="none" stroke-width="1" fill-rule="evenodd">
|
|
5
|
+
<path d="M15,2 C15.5522847,2 16,2.44771525 16,3 L16,13 C16,13.5522847 15.5522847,14 15,14 C14.4477153,14 14,13.5522847 14,13 L14,3 C14,2.44771525 14.4477153,2 15,2 Z M1.00375238,6.99721351 L8.77865585,6.99721351 L8.77865585,6.99721351 L5.65896747,3.80591026 C5.33112486,3.47054177 5.33722579,2.93290294 5.67259429,2.60506033 C5.67672338,2.6010239 5.68089354,2.59702968 5.68510411,2.59307831 C6.03464938,2.26505074 6.58354891,2.28110608 6.91332332,2.62900381 L11.3493918,7.30886388 C11.7144354,7.69396911 11.7151308,8.29714332 11.3509761,8.68308924 L6.98107485,13.3144877 C6.64706682,13.668483 6.08932996,13.6846858 5.73533471,13.3506778 C5.72098837,13.3371414 5.70710053,13.3231273 5.69369467,13.308659 C5.33758707,12.9243285 5.35359349,12.3259543 5.72973868,11.9612115 L8.77865585,9.00471827 L8.77865585,9.00471827 L1.00375238,9.00471827 C0.449395248,9.00471827 0,8.55532302 0,8.00096589 C0,7.44660876 0.449395248,6.99721351 1.00375238,6.99721351 Z" id="hy-icon-ops-linear-zhankai-形状结合" fill-rule="nonzero"></path>
|
|
6
|
+
</g>
|
|
7
|
+
</symbol>`,
|
|
8
|
+
};
|
package/lib/style/index.scss
CHANGED
|
@@ -90,3 +90,56 @@ video {
|
|
|
90
90
|
-ms-user-select: none; /*IE10*/
|
|
91
91
|
user-select: none;
|
|
92
92
|
}
|
|
93
|
+
|
|
94
|
+
.search_lightColor {
|
|
95
|
+
min-width: 254px;
|
|
96
|
+
line-height: 32px;
|
|
97
|
+
background: rgba(var(--hy-background), 1);
|
|
98
|
+
border-radius: 8px;
|
|
99
|
+
padding: 4px;
|
|
100
|
+
display: flex;
|
|
101
|
+
border: 1px solid rgba(var(--hy-border), 1);
|
|
102
|
+
transition: 0.3s;
|
|
103
|
+
position: relative;
|
|
104
|
+
z-index: 1;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.search_lightColor:focus,
|
|
108
|
+
.search_lightColor:hover {
|
|
109
|
+
border-color: rgba(var(--hy-theme), 1);
|
|
110
|
+
}
|
|
111
|
+
.search_lightColor .hy-el-input .hy-el-input__wrapper {
|
|
112
|
+
background: rgba(var(--hy-background), 1);
|
|
113
|
+
border-color: rgba(var(--hy-background), 1);
|
|
114
|
+
box-shadow: none;
|
|
115
|
+
padding: 0 26px 0 10px;
|
|
116
|
+
font-size: 12px;
|
|
117
|
+
color: rgba(var(--hy-main), 1);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.search_lightColor .hy-el-input .hy-el-input__wrapper:focus,
|
|
121
|
+
.search_lightColor .hy-el-input .hy-el-input__wrapper:hover {
|
|
122
|
+
border-color: rgba(var(--hy-background), 1);
|
|
123
|
+
box-shadow: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.search_lightColor .searchBox:active {
|
|
127
|
+
opacity: 0.6;
|
|
128
|
+
}
|
|
129
|
+
.search_lightColor .searchBox {
|
|
130
|
+
width: 42px;
|
|
131
|
+
height: 32px;
|
|
132
|
+
background: rgba(var(--hy-background-3), 1);
|
|
133
|
+
border-radius: 8px;
|
|
134
|
+
line-height: 30px;
|
|
135
|
+
text-align: center;
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: center;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
}
|
|
141
|
+
.search_lightColor .searchBox .svgBox {
|
|
142
|
+
width: 18px;
|
|
143
|
+
height: 18px;
|
|
144
|
+
vertical-align: middle;
|
|
145
|
+
}
|
package/lib/style/theme.scss
CHANGED
|
@@ -20,59 +20,6 @@
|
|
|
20
20
|
--hy-border: 54, 93, 132;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.search_lightColor {
|
|
24
|
-
min-width: 254px;
|
|
25
|
-
line-height: 32px;
|
|
26
|
-
background: rgba(var(--hy-background), 1);
|
|
27
|
-
border-radius: 8px;
|
|
28
|
-
padding: 4px;
|
|
29
|
-
display: flex;
|
|
30
|
-
border: 1px solid rgba(var(--hy-border), 1);
|
|
31
|
-
transition: 0.3s;
|
|
32
|
-
position: relative;
|
|
33
|
-
z-index: 1;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.search_lightColor:focus,
|
|
37
|
-
.search_lightColor:hover {
|
|
38
|
-
border-color: rgba(var(--hy-theme), 1);
|
|
39
|
-
}
|
|
40
|
-
.search_lightColor .hy-el-input .hy-el-input__wrapper {
|
|
41
|
-
background: rgba(var(--hy-background), 1);
|
|
42
|
-
border-color: rgba(var(--hy-background), 1);
|
|
43
|
-
box-shadow: none;
|
|
44
|
-
padding: 0 26px 0 10px;
|
|
45
|
-
font-size: 12px;
|
|
46
|
-
color: rgba(var(--hy-main), 1);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.search_lightColor .hy-el-input .hy-el-input__wrapper:focus,
|
|
50
|
-
.search_lightColor .hy-el-input .hy-el-input__wrapper:hover {
|
|
51
|
-
border-color: rgba(var(--hy-background), 1);
|
|
52
|
-
box-shadow: none;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.search_lightColor .searchBox:active {
|
|
56
|
-
opacity: 0.6;
|
|
57
|
-
}
|
|
58
|
-
.search_lightColor .searchBox {
|
|
59
|
-
width: 42px;
|
|
60
|
-
height: 32px;
|
|
61
|
-
background: rgba(var(--hy-background-3), 1);
|
|
62
|
-
border-radius: 8px;
|
|
63
|
-
line-height: 30px;
|
|
64
|
-
text-align: center;
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
}
|
|
70
|
-
.search_lightColor .searchBox .svgBox {
|
|
71
|
-
width: 18px;
|
|
72
|
-
height: 18px;
|
|
73
|
-
vertical-align: middle;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
23
|
.deviceType-sos {
|
|
77
24
|
font-size: 14px;
|
|
78
25
|
font-weight: bold;
|
package/lib/utils/form.js
CHANGED
|
@@ -52,9 +52,10 @@ function clearSpace(value, type = "between") {
|
|
|
52
52
|
}
|
|
53
53
|
return value;
|
|
54
54
|
}
|
|
55
|
-
const genRuleRequiredMsgHandler = (
|
|
55
|
+
const genRuleRequiredMsgHandler = (column, model) => {
|
|
56
56
|
const { t } = useLocale.useLocale();
|
|
57
|
-
const { type, prop
|
|
57
|
+
const { type, prop } = column || {};
|
|
58
|
+
const label = columnLabelHandler(column, model);
|
|
58
59
|
if (!prop || !prop?.length) return "";
|
|
59
60
|
switch (type) {
|
|
60
61
|
case "input":
|
|
@@ -75,20 +76,71 @@ const requiredHandler = (column, model) => {
|
|
|
75
76
|
if (is.isFunction(required)) return required(column, model);
|
|
76
77
|
return false;
|
|
77
78
|
};
|
|
79
|
+
const ruleHandler = (column, model) => {
|
|
80
|
+
const rules = vue.unref(column.rules);
|
|
81
|
+
if (is.isArray(rules)) return [...rules];
|
|
82
|
+
if (is.isObject(rules)) return [rules];
|
|
83
|
+
if (is.isFunction(rules)) {
|
|
84
|
+
return ruleHandler({ rules: rules(column, model) }, model);
|
|
85
|
+
}
|
|
86
|
+
return [];
|
|
87
|
+
};
|
|
78
88
|
const columnRuleHandler = (column, model) => {
|
|
79
|
-
|
|
80
|
-
rules = is.isArray(rules) ? [...rules] : is.isObject(rules) ? [rules] : [];
|
|
89
|
+
const rules = ruleHandler(column, model);
|
|
81
90
|
if (column.required) {
|
|
82
91
|
rules.unshift({
|
|
83
92
|
required: requiredHandler(column, model),
|
|
84
|
-
message: genRuleRequiredMsgHandler(column)
|
|
93
|
+
message: genRuleRequiredMsgHandler(column, model)
|
|
85
94
|
});
|
|
86
95
|
}
|
|
87
96
|
return rules;
|
|
88
97
|
};
|
|
98
|
+
const genColumnDefaultLabel = (column) => {
|
|
99
|
+
if (column.label) return vue.unref(column.label);
|
|
100
|
+
const { t } = useLocale.useLocale();
|
|
101
|
+
switch (column.type) {
|
|
102
|
+
// 部门级联选择框
|
|
103
|
+
case "org-cascader":
|
|
104
|
+
return t("form.department");
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const columnLabelHandler = (column, model) => {
|
|
108
|
+
const label = vue.unref(column.label);
|
|
109
|
+
if (is.isEmpty(label)) return "";
|
|
110
|
+
if (is.isFunction(label)) {
|
|
111
|
+
return label(column, model);
|
|
112
|
+
}
|
|
113
|
+
return label;
|
|
114
|
+
};
|
|
115
|
+
function columnPlaceholderHandler(column, model) {
|
|
116
|
+
const { t } = useLocale.useLocale();
|
|
117
|
+
const { type, attrs = {} } = column || {};
|
|
118
|
+
const label = columnLabelHandler(column, model);
|
|
119
|
+
let placeholder = attrs.placeholder;
|
|
120
|
+
switch (type) {
|
|
121
|
+
case "input":
|
|
122
|
+
case "input-number":
|
|
123
|
+
case "lat":
|
|
124
|
+
case "lon":
|
|
125
|
+
placeholder = placeholder || t("hy.pleaseEnterPlaceholder", [label]);
|
|
126
|
+
break;
|
|
127
|
+
case "select":
|
|
128
|
+
case "date-picker":
|
|
129
|
+
case "time-picker":
|
|
130
|
+
case "org-cascader":
|
|
131
|
+
placeholder = placeholder || t("hy.pleaseSelectPlaceholder", [label]);
|
|
132
|
+
break;
|
|
133
|
+
default:
|
|
134
|
+
placeholder = placeholder || label;
|
|
135
|
+
}
|
|
136
|
+
return placeholder;
|
|
137
|
+
}
|
|
89
138
|
|
|
90
139
|
exports.clearSpace = clearSpace;
|
|
140
|
+
exports.columnLabelHandler = columnLabelHandler;
|
|
141
|
+
exports.columnPlaceholderHandler = columnPlaceholderHandler;
|
|
91
142
|
exports.columnRuleHandler = columnRuleHandler;
|
|
143
|
+
exports.genColumnDefaultLabel = genColumnDefaultLabel;
|
|
92
144
|
exports.genRuleRequiredMsgHandler = genRuleRequiredMsgHandler;
|
|
93
145
|
exports.genValueByProp = genValueByProp;
|
|
94
146
|
exports.getValueByProp = getValueByProp;
|
package/lib/utils/handler.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var elementPlus = require('element-plus');
|
|
3
4
|
var is = require('./is.js');
|
|
5
|
+
var useLocale = require('../hooks/useLocale.js');
|
|
4
6
|
|
|
5
7
|
function funRunHandler(target, ...args) {
|
|
6
8
|
if (is.isFunction(target)) {
|
|
@@ -81,9 +83,11 @@ const withInstall = (comp, name) => {
|
|
|
81
83
|
return comp;
|
|
82
84
|
};
|
|
83
85
|
async function copyText(text) {
|
|
86
|
+
const { t } = useLocale.useLocale();
|
|
84
87
|
if (navigator.clipboard) {
|
|
85
88
|
try {
|
|
86
89
|
await navigator.clipboard.writeText(text);
|
|
90
|
+
elementPlus.ElMessage.success(t("hy.copySuccessfully"));
|
|
87
91
|
return;
|
|
88
92
|
} catch {
|
|
89
93
|
}
|
|
@@ -95,6 +99,7 @@ async function copyText(text) {
|
|
|
95
99
|
input.select();
|
|
96
100
|
document.execCommand("copy");
|
|
97
101
|
document.body.removeChild(input);
|
|
102
|
+
elementPlus.ElMessage.success(t("hy.copySuccessfully"));
|
|
98
103
|
} catch (err) {
|
|
99
104
|
console.error(err);
|
|
100
105
|
return Promise.reject();
|
package/lib/utils/index.js
CHANGED
|
@@ -10,6 +10,7 @@ var form = require('./form.js');
|
|
|
10
10
|
var input = require('./input.js');
|
|
11
11
|
var permission = require('./permission.js');
|
|
12
12
|
var index = require('./map/index.js');
|
|
13
|
+
var hyVirtualTree = require('hy-virtual-tree');
|
|
13
14
|
|
|
14
15
|
|
|
15
16
|
|
|
@@ -50,7 +51,10 @@ exports.fileUpload = file.fileUpload;
|
|
|
50
51
|
exports.presignedUrl = file.presignedUrl;
|
|
51
52
|
exports.sizeToTextHandler = file.sizeToTextHandler;
|
|
52
53
|
exports.clearSpace = form.clearSpace;
|
|
54
|
+
exports.columnLabelHandler = form.columnLabelHandler;
|
|
55
|
+
exports.columnPlaceholderHandler = form.columnPlaceholderHandler;
|
|
53
56
|
exports.columnRuleHandler = form.columnRuleHandler;
|
|
57
|
+
exports.genColumnDefaultLabel = form.genColumnDefaultLabel;
|
|
54
58
|
exports.genRuleRequiredMsgHandler = form.genRuleRequiredMsgHandler;
|
|
55
59
|
exports.genValueByProp = form.genValueByProp;
|
|
56
60
|
exports.getValueByProp = form.getValueByProp;
|
|
@@ -68,3 +72,7 @@ exports.PERMISSION = permission.PERMISSION;
|
|
|
68
72
|
exports.InitMap = index.InitMap;
|
|
69
73
|
exports.setMapServer = index.setMapServer;
|
|
70
74
|
exports.setPoiServer = index.setPoiServer;
|
|
75
|
+
Object.defineProperty(exports, "setGlobalTreeConfig", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function () { return hyVirtualTree.setGlobalTreeConfig; }
|
|
78
|
+
});
|
|
@@ -268,6 +268,10 @@ class bigMap extends events.EventEmitter {
|
|
|
268
268
|
const center2 = target.getCenter();
|
|
269
269
|
return latAndLngCheckExport(center2);
|
|
270
270
|
},
|
|
271
|
+
// 自适应地图容器大小
|
|
272
|
+
invalidateSize: function(target) {
|
|
273
|
+
return target.invalidateSize();
|
|
274
|
+
},
|
|
271
275
|
// 四个角
|
|
272
276
|
getBounds: function(target) {
|
|
273
277
|
const bounds = target.getBounds();
|
|
@@ -170,6 +170,9 @@ class Google extends events.EventEmitter {
|
|
|
170
170
|
getCenter: function(target) {
|
|
171
171
|
return target.getCenter();
|
|
172
172
|
},
|
|
173
|
+
invalidateSize: function(target) {
|
|
174
|
+
return null;
|
|
175
|
+
},
|
|
173
176
|
fitBounds: function(target, params) {
|
|
174
177
|
if (!Array.isArray(params)) {
|
|
175
178
|
params = [params];
|