hy-dispatch-ui-v3 0.2.60 → 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 +4 -8
- package/es/api/index.mjs +1 -1
- 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/hyVideoPlayer/js/index.mjs +0 -1
- package/es/hooks/useApi.mjs +2 -2
- package/es/hooks/useGlobalConfig.mjs +1 -1
- package/es/index.mjs +1 -0
- package/es/utils/handler.mjs +5 -0
- package/es/utils/index.mjs +1 -0
- package/es/utils/tree.mjs +1 -0
- package/es/version.mjs +1 -1
- package/lib/api/index.js +1 -1
- 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/hyVideoPlayer/js/index.js +0 -1
- package/lib/hooks/useApi.js +2 -2
- package/lib/index.js +5 -0
- package/lib/utils/handler.js +5 -0
- package/lib/utils/index.js +5 -0
- package/lib/utils/tree.js +10 -0
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/dist/tailwind.css
CHANGED
|
@@ -364,6 +364,10 @@
|
|
|
364
364
|
margin-left: 0.75rem;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
+
.ml-4 {
|
|
368
|
+
margin-left: 1rem;
|
|
369
|
+
}
|
|
370
|
+
|
|
367
371
|
.ml-\[4px\] {
|
|
368
372
|
margin-left: 4px;
|
|
369
373
|
}
|
|
@@ -484,10 +488,6 @@
|
|
|
484
488
|
height: 1rem !important;
|
|
485
489
|
}
|
|
486
490
|
|
|
487
|
-
.\!h-5 {
|
|
488
|
-
height: 1.25rem !important;
|
|
489
|
-
}
|
|
490
|
-
|
|
491
491
|
.\!h-\[12px\] {
|
|
492
492
|
height: 12px !important;
|
|
493
493
|
}
|
|
@@ -680,10 +680,6 @@
|
|
|
680
680
|
width: 1rem !important;
|
|
681
681
|
}
|
|
682
682
|
|
|
683
|
-
.\!w-5 {
|
|
684
|
-
width: 1.25rem !important;
|
|
685
|
-
}
|
|
686
|
-
|
|
687
683
|
.\!w-9 {
|
|
688
684
|
width: 2.25rem !important;
|
|
689
685
|
}
|
package/es/api/index.mjs
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useModel, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, createBlock, unref, withCtx, withModifiers, createVNode, toDisplayString,
|
|
2
|
-
import { ElIcon } from 'element-plus';
|
|
3
|
-
import { Download } from '@element-plus/icons-vue';
|
|
1
|
+
import { defineComponent, useModel, openBlock, createElementBlock, normalizeClass, createElementVNode, Fragment, renderList, createBlock, unref, withCtx, withModifiers, createVNode, toDisplayString, createCommentVNode, mergeModels } from 'vue';
|
|
4
2
|
import { HyTooltip } from '../hyTooltip/index.mjs';
|
|
5
3
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
6
4
|
|
|
@@ -21,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
21
19
|
},
|
|
22
20
|
showShrink: {
|
|
23
21
|
type: Boolean,
|
|
24
|
-
default:
|
|
22
|
+
default: true
|
|
25
23
|
}
|
|
26
24
|
}, {
|
|
27
25
|
"expand": { type: Boolean, default: true },
|
|
@@ -66,18 +64,27 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
66
64
|
}, [
|
|
67
65
|
createElementVNode("div", { class: "operator-label clickBox" }, [
|
|
68
66
|
createVNode(unref(HyIcon), {
|
|
69
|
-
"svg-name": `${item.iconName}`,
|
|
70
|
-
"class-name": "!w-
|
|
67
|
+
"svg-name": `${item.iconNameV3 || item.iconName}`,
|
|
68
|
+
"class-name": "!w-4 !h-4 flex-shrink-0"
|
|
71
69
|
}, null, 8, ["svg-name"]),
|
|
72
70
|
createElementVNode(
|
|
73
71
|
"div",
|
|
74
72
|
{
|
|
75
|
-
class: normalizeClass([{
|
|
73
|
+
class: normalizeClass([{
|
|
74
|
+
"ml-4 mr-3": expand.value,
|
|
75
|
+
"text-center mt-1": !expand.value
|
|
76
|
+
}, "over_one_line w-full"])
|
|
76
77
|
},
|
|
77
78
|
toDisplayString(expand.value ? item.label : item.tip || item.label),
|
|
78
79
|
3
|
|
79
80
|
/* TEXT, CLASS */
|
|
80
|
-
)
|
|
81
|
+
),
|
|
82
|
+
expand.value && __props.modelValue === item.path ? (openBlock(), createBlock(unref(HyIcon), {
|
|
83
|
+
key: 0,
|
|
84
|
+
"svg-name": "analytics-v3-card-bili",
|
|
85
|
+
class: "text-theme",
|
|
86
|
+
"class-name": "!w-3 !h-3 flex-shrink-0"
|
|
87
|
+
})) : createCommentVNode("v-if", true)
|
|
81
88
|
])
|
|
82
89
|
], 10, ["onClick"])
|
|
83
90
|
]),
|
|
@@ -91,23 +98,31 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
91
98
|
]),
|
|
92
99
|
__props.showShrink ? (openBlock(), createElementBlock("div", {
|
|
93
100
|
key: 0,
|
|
94
|
-
class: normalizeClass(["w-full h-[44px] border-t border-border box-border cursor-pointer relative", { "justify-end pr-3": expand.value, "justify-center": !expand.value }]),
|
|
101
|
+
class: normalizeClass(["w-full h-[44px] border-t border-border box-border cursor-pointer relative flex items-center", { "justify-end pr-3": expand.value, "justify-center": !expand.value }]),
|
|
95
102
|
onClick: ($event) => onExpandHandler()
|
|
96
103
|
}, [
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
expand.value ? (openBlock(), createBlock(unref(HyIcon), {
|
|
105
|
+
key: 0,
|
|
106
|
+
"svg-name": "ops-linear-shouqi",
|
|
107
|
+
"class-name": "!w-4 !h-4 flex-shrink-0"
|
|
108
|
+
})) : (openBlock(), createBlock(unref(HyIcon), {
|
|
109
|
+
key: 1,
|
|
110
|
+
"svg-name": "ops-linear-zhankai",
|
|
111
|
+
"class-name": "!w-4 !h-4 flex-shrink-0"
|
|
112
|
+
})),
|
|
113
|
+
createCommentVNode(" <el-icon"),
|
|
114
|
+
createCommentVNode(' size="20"'),
|
|
115
|
+
createCommentVNode(' :style="{'),
|
|
116
|
+
createCommentVNode(" transform: expand"),
|
|
117
|
+
createCommentVNode(" ? 'translate(0px, -50%) rotateY(0deg) rotateZ(90deg)'"),
|
|
118
|
+
createCommentVNode(" : 'translate(50%, -50%) rotateY(-180deg) rotateZ(90deg)',"),
|
|
119
|
+
createCommentVNode(" transition: 'all 0.3s linear',"),
|
|
120
|
+
createCommentVNode(' }"'),
|
|
121
|
+
createCommentVNode(' class="absolute top-1/2"'),
|
|
122
|
+
createCommentVNode(` :class="{ 'right-3': expand, 'right-1/2': !expand }"`),
|
|
123
|
+
createCommentVNode(" >"),
|
|
124
|
+
createCommentVNode(" <Download />"),
|
|
125
|
+
createCommentVNode(" </el-icon>")
|
|
111
126
|
], 10, ["onClick"])) : createCommentVNode("v-if", true)
|
|
112
127
|
],
|
|
113
128
|
2
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
left: 0;
|
|
54
54
|
top: 50%;
|
|
55
55
|
transform: translateY(-50%);
|
|
56
|
+
border-radius: 10px;
|
|
56
57
|
background-color: rgba(var(--hy-theme));
|
|
57
58
|
}
|
|
58
59
|
.operator-label {
|
|
@@ -115,6 +116,7 @@
|
|
|
115
116
|
left: 0;
|
|
116
117
|
top: 50%;
|
|
117
118
|
transform: translateY(-50%);
|
|
119
|
+
border-radius: 10px;
|
|
118
120
|
background-color: rgba(var(--hy-theme));
|
|
119
121
|
}
|
|
120
122
|
.operator-label {
|
|
@@ -138,7 +140,7 @@
|
|
|
138
140
|
rgba(var(--hy-theme), 0) 2%,
|
|
139
141
|
rgba(var(--hy-theme), 0.4) 100%
|
|
140
142
|
);
|
|
141
|
-
border-radius: 0px 4px 4px 0px;
|
|
143
|
+
//border-radius: 0px 4px 4px 0px;
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
146
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Axios from 'axios';
|
|
2
2
|
import { unref } from 'vue';
|
|
3
3
|
import { useApi } from '../../../hooks/useApi.mjs';
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ function getOrgTreeSimple() {
|
|
|
10
10
|
if (cancelSource) {
|
|
11
11
|
cancelSource.cancel("\u4E2D\u65AD\u8BF7\u6C42");
|
|
12
12
|
}
|
|
13
|
-
cancelSource =
|
|
13
|
+
cancelSource = Axios.CancelToken.source();
|
|
14
14
|
throttleFn = new Promise((resolve, reject) => {
|
|
15
15
|
unref(api).post(
|
|
16
16
|
"organization/orgTreeSimple",
|
package/es/hooks/useApi.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import Axios from 'axios';
|
|
2
2
|
import { ref, getCurrentInstance, inject, unref } from 'vue';
|
|
3
3
|
import { useGlobalConfig } from './useGlobalConfig.mjs';
|
|
4
4
|
|
|
5
5
|
const localApiKey = /* @__PURE__ */ Symbol("localApiKey");
|
|
6
6
|
const defaultAxios = ref(
|
|
7
|
-
|
|
7
|
+
Axios.create({
|
|
8
8
|
baseURL: "/api/admin",
|
|
9
9
|
withCredentials: false,
|
|
10
10
|
timeout: 6e4
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getCurrentInstance, inject, ref, computed, unref, provide } from 'vue';
|
|
2
2
|
import * as index from '../locale/index.mjs';
|
|
3
3
|
import { localeContextKey } from './useLocale.mjs';
|
|
4
4
|
import { localApiKey } from './useApi.mjs';
|
package/es/index.mjs
CHANGED
|
@@ -49,6 +49,7 @@ export { localVideoPlayerConfigKey, useVideoPlayerConfig } from './hooks/useVide
|
|
|
49
49
|
export { parseRem, pxTorem, remToPx, vwToPx } from './utils/adaptive.mjs';
|
|
50
50
|
export { resetAppFormValue, useAppForm } from './components/hyForm/js/useAppForm.mjs';
|
|
51
51
|
export { resetAppSearchValue, useAppSearch } from './components/hySearch/js/useAppSearch.mjs';
|
|
52
|
+
export { setGlobalTreeConfig } from 'hy-virtual-tree';
|
|
52
53
|
export { useAppTable } from './components/hyTable/js/useAppTable.mjs';
|
|
53
54
|
export { useAppTableForm } from './components/hyTableForm/js/useAppTableForm.mjs';
|
|
54
55
|
export { useMixins } from './hooks/useMixins.mjs';
|
package/es/utils/handler.mjs
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { ElMessage } from 'element-plus';
|
|
1
2
|
import { isFunction, isVueProxy, isArray, isObject, isEmpty } from './is.mjs';
|
|
3
|
+
import { useLocale } from '../hooks/useLocale.mjs';
|
|
2
4
|
|
|
3
5
|
function funRunHandler(target, ...args) {
|
|
4
6
|
if (isFunction(target)) {
|
|
@@ -79,9 +81,11 @@ const withInstall = (comp, name) => {
|
|
|
79
81
|
return comp;
|
|
80
82
|
};
|
|
81
83
|
async function copyText(text) {
|
|
84
|
+
const { t } = useLocale();
|
|
82
85
|
if (navigator.clipboard) {
|
|
83
86
|
try {
|
|
84
87
|
await navigator.clipboard.writeText(text);
|
|
88
|
+
ElMessage.success(t("hy.copySuccessfully"));
|
|
85
89
|
return;
|
|
86
90
|
} catch {
|
|
87
91
|
}
|
|
@@ -93,6 +97,7 @@ async function copyText(text) {
|
|
|
93
97
|
input.select();
|
|
94
98
|
document.execCommand("copy");
|
|
95
99
|
document.body.removeChild(input);
|
|
100
|
+
ElMessage.success(t("hy.copySuccessfully"));
|
|
96
101
|
} catch (err) {
|
|
97
102
|
console.error(err);
|
|
98
103
|
return Promise.reject();
|
package/es/utils/index.mjs
CHANGED
|
@@ -8,3 +8,4 @@ export { clearSpace, columnLabelHandler, columnPlaceholderHandler, columnRuleHan
|
|
|
8
8
|
export { enterNumbersRrLetters, enterTheMumber, filterSpaces, formatNumber, formatTimeFn, getPublicFileSize, inputForbidden, keepTwoDecimalPlaces, onlyNumber } from './input.mjs';
|
|
9
9
|
export { PERMISSION } from './permission.mjs';
|
|
10
10
|
export { InitMap, setMapServer, setPoiServer } from './map/index.mjs';
|
|
11
|
+
export { setGlobalTreeConfig } from 'hy-virtual-tree';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setGlobalTreeConfig } from 'hy-virtual-tree';
|
package/es/version.mjs
CHANGED
package/lib/api/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var useLocale = require('../hooks/useLocale.js');
|
|
5
4
|
var useApi = require('../hooks/useApi.js');
|
|
5
|
+
var useLocale = require('../hooks/useLocale.js');
|
|
6
6
|
|
|
7
7
|
const { t } = useLocale.useLocale();
|
|
8
8
|
function selectApi(controller, params) {
|
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
-
var elementPlus = require('element-plus');
|
|
7
|
-
var iconsVue = require('@element-plus/icons-vue');
|
|
8
6
|
var index = require('../hyTooltip/index.js');
|
|
9
7
|
var index$1 = require('../hyIcon/index.js');
|
|
10
8
|
|
|
@@ -25,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
25
23
|
},
|
|
26
24
|
showShrink: {
|
|
27
25
|
type: Boolean,
|
|
28
|
-
default:
|
|
26
|
+
default: true
|
|
29
27
|
}
|
|
30
28
|
}, {
|
|
31
29
|
"expand": { type: Boolean, default: true },
|
|
@@ -70,18 +68,27 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
70
68
|
}, [
|
|
71
69
|
vue.createElementVNode("div", { class: "operator-label clickBox" }, [
|
|
72
70
|
vue.createVNode(vue.unref(index$1.HyIcon), {
|
|
73
|
-
"svg-name": `${item.iconName}`,
|
|
74
|
-
"class-name": "!w-
|
|
71
|
+
"svg-name": `${item.iconNameV3 || item.iconName}`,
|
|
72
|
+
"class-name": "!w-4 !h-4 flex-shrink-0"
|
|
75
73
|
}, null, 8, ["svg-name"]),
|
|
76
74
|
vue.createElementVNode(
|
|
77
75
|
"div",
|
|
78
76
|
{
|
|
79
|
-
class: vue.normalizeClass([{
|
|
77
|
+
class: vue.normalizeClass([{
|
|
78
|
+
"ml-4 mr-3": expand.value,
|
|
79
|
+
"text-center mt-1": !expand.value
|
|
80
|
+
}, "over_one_line w-full"])
|
|
80
81
|
},
|
|
81
82
|
vue.toDisplayString(expand.value ? item.label : item.tip || item.label),
|
|
82
83
|
3
|
|
83
84
|
/* TEXT, CLASS */
|
|
84
|
-
)
|
|
85
|
+
),
|
|
86
|
+
expand.value && __props.modelValue === item.path ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
|
|
87
|
+
key: 0,
|
|
88
|
+
"svg-name": "analytics-v3-card-bili",
|
|
89
|
+
class: "text-theme",
|
|
90
|
+
"class-name": "!w-3 !h-3 flex-shrink-0"
|
|
91
|
+
})) : vue.createCommentVNode("v-if", true)
|
|
85
92
|
])
|
|
86
93
|
], 10, ["onClick"])
|
|
87
94
|
]),
|
|
@@ -95,23 +102,31 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
95
102
|
]),
|
|
96
103
|
__props.showShrink ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
97
104
|
key: 0,
|
|
98
|
-
class: vue.normalizeClass(["w-full h-[44px] border-t border-border box-border cursor-pointer relative", { "justify-end pr-3": expand.value, "justify-center": !expand.value }]),
|
|
105
|
+
class: vue.normalizeClass(["w-full h-[44px] border-t border-border box-border cursor-pointer relative flex items-center", { "justify-end pr-3": expand.value, "justify-center": !expand.value }]),
|
|
99
106
|
onClick: ($event) => onExpandHandler()
|
|
100
107
|
}, [
|
|
101
|
-
vue.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
108
|
+
expand.value ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
|
|
109
|
+
key: 0,
|
|
110
|
+
"svg-name": "ops-linear-shouqi",
|
|
111
|
+
"class-name": "!w-4 !h-4 flex-shrink-0"
|
|
112
|
+
})) : (vue.openBlock(), vue.createBlock(vue.unref(index$1.HyIcon), {
|
|
113
|
+
key: 1,
|
|
114
|
+
"svg-name": "ops-linear-zhankai",
|
|
115
|
+
"class-name": "!w-4 !h-4 flex-shrink-0"
|
|
116
|
+
})),
|
|
117
|
+
vue.createCommentVNode(" <el-icon"),
|
|
118
|
+
vue.createCommentVNode(' size="20"'),
|
|
119
|
+
vue.createCommentVNode(' :style="{'),
|
|
120
|
+
vue.createCommentVNode(" transform: expand"),
|
|
121
|
+
vue.createCommentVNode(" ? 'translate(0px, -50%) rotateY(0deg) rotateZ(90deg)'"),
|
|
122
|
+
vue.createCommentVNode(" : 'translate(50%, -50%) rotateY(-180deg) rotateZ(90deg)',"),
|
|
123
|
+
vue.createCommentVNode(" transition: 'all 0.3s linear',"),
|
|
124
|
+
vue.createCommentVNode(' }"'),
|
|
125
|
+
vue.createCommentVNode(' class="absolute top-1/2"'),
|
|
126
|
+
vue.createCommentVNode(` :class="{ 'right-3': expand, 'right-1/2': !expand }"`),
|
|
127
|
+
vue.createCommentVNode(" >"),
|
|
128
|
+
vue.createCommentVNode(" <Download />"),
|
|
129
|
+
vue.createCommentVNode(" </el-icon>")
|
|
115
130
|
], 10, ["onClick"])) : vue.createCommentVNode("v-if", true)
|
|
116
131
|
],
|
|
117
132
|
2
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
left: 0;
|
|
54
54
|
top: 50%;
|
|
55
55
|
transform: translateY(-50%);
|
|
56
|
+
border-radius: 10px;
|
|
56
57
|
background-color: rgba(var(--hy-theme));
|
|
57
58
|
}
|
|
58
59
|
.operator-label {
|
|
@@ -115,6 +116,7 @@
|
|
|
115
116
|
left: 0;
|
|
116
117
|
top: 50%;
|
|
117
118
|
transform: translateY(-50%);
|
|
119
|
+
border-radius: 10px;
|
|
118
120
|
background-color: rgba(var(--hy-theme));
|
|
119
121
|
}
|
|
120
122
|
.operator-label {
|
|
@@ -138,7 +140,7 @@
|
|
|
138
140
|
rgba(var(--hy-theme), 0) 2%,
|
|
139
141
|
rgba(var(--hy-theme), 0.4) 100%
|
|
140
142
|
);
|
|
141
|
-
border-radius: 0px 4px 4px 0px;
|
|
143
|
+
//border-radius: 0px 4px 4px 0px;
|
|
142
144
|
}
|
|
143
145
|
}
|
|
144
146
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var Axios = require('axios');
|
|
4
4
|
var vue = require('vue');
|
|
5
5
|
var useApi = require('../../../hooks/useApi.js');
|
|
6
6
|
|
|
@@ -12,7 +12,7 @@ function getOrgTreeSimple() {
|
|
|
12
12
|
if (cancelSource) {
|
|
13
13
|
cancelSource.cancel("\u4E2D\u65AD\u8BF7\u6C42");
|
|
14
14
|
}
|
|
15
|
-
cancelSource =
|
|
15
|
+
cancelSource = Axios.CancelToken.source();
|
|
16
16
|
throttleFn = new Promise((resolve, reject) => {
|
|
17
17
|
vue.unref(api).post(
|
|
18
18
|
"organization/orgTreeSimple",
|
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
|
@@ -53,6 +53,7 @@ var useVideoPlayerConfig = require('./hooks/useVideoPlayerConfig.js');
|
|
|
53
53
|
var adaptive = require('./utils/adaptive.js');
|
|
54
54
|
var useAppForm = require('./components/hyForm/js/useAppForm.js');
|
|
55
55
|
var useAppSearch = require('./components/hySearch/js/useAppSearch.js');
|
|
56
|
+
var hyVirtualTree = require('hy-virtual-tree');
|
|
56
57
|
var useAppTable = require('./components/hyTable/js/useAppTable.js');
|
|
57
58
|
var useAppTableForm = require('./components/hyTableForm/js/useAppTableForm.js');
|
|
58
59
|
var useMixins = require('./hooks/useMixins.js');
|
|
@@ -185,6 +186,10 @@ exports.resetAppFormValue = useAppForm.resetAppFormValue;
|
|
|
185
186
|
exports.useAppForm = useAppForm.useAppForm;
|
|
186
187
|
exports.resetAppSearchValue = useAppSearch.resetAppSearchValue;
|
|
187
188
|
exports.useAppSearch = useAppSearch.useAppSearch;
|
|
189
|
+
Object.defineProperty(exports, "setGlobalTreeConfig", {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: function () { return hyVirtualTree.setGlobalTreeConfig; }
|
|
192
|
+
});
|
|
188
193
|
exports.useAppTable = useAppTable.useAppTable;
|
|
189
194
|
exports.useAppTableForm = useAppTableForm.useAppTableForm;
|
|
190
195
|
exports.useMixins = useMixins.useMixins;
|
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
|
|
|
@@ -71,3 +72,7 @@ exports.PERMISSION = permission.PERMISSION;
|
|
|
71
72
|
exports.InitMap = index.InitMap;
|
|
72
73
|
exports.setMapServer = index.setMapServer;
|
|
73
74
|
exports.setPoiServer = index.setPoiServer;
|
|
75
|
+
Object.defineProperty(exports, "setGlobalTreeConfig", {
|
|
76
|
+
enumerable: true,
|
|
77
|
+
get: function () { return hyVirtualTree.setGlobalTreeConfig; }
|
|
78
|
+
});
|
package/lib/version.js
CHANGED