hy-dispatch-ui-v3 0.2.33 → 0.2.35
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 +20 -8
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +1 -1
- package/es/components/hyAudioPlayer/js/index.mjs +1 -1
- package/es/components/hyButton/button.vue.mjs +49 -34
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +1 -1
- package/es/components/hyConfirmDialog/confirmMethod.mjs +1 -1
- package/es/components/hyConfirmDialog/index.mjs +1 -1
- package/es/components/hyCutter/cutter.vue.mjs +1 -1
- package/es/components/hyDatePicker/datePicker.vue.mjs +1 -1
- package/es/components/hyDialog/dialog.vue.mjs +176 -137
- package/es/components/hyDialog/style/dialog.scss +13 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +3 -4
- package/es/components/hyForm/js/useAppForm.mjs +1 -1
- package/es/components/hyForm/style/form.scss +0 -4
- package/es/components/hyNoPermissions/noPermissions.vue.mjs +1 -1
- package/es/components/hyNoPermissionsMap/noPermissionsMap.vue.mjs +1 -1
- package/es/components/hyOrgCascader/orgCascader.vue.mjs +1 -1
- package/es/components/hySearch/cpns/searchItem.vue.mjs +3 -9
- package/es/components/hySearch/js/index.mjs +4 -4
- package/es/components/hySearch/style/search.scss +1 -0
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +67 -86
- package/es/components/hyTable/cpns/columnSelectItem.vue.mjs +5 -8
- package/es/components/hyTable/cpns/headerItem.vue.mjs +1 -1
- package/es/components/hyTable/cpns/virtualTable.vue.mjs +8 -12
- package/es/components/hyTable/js/index.mjs +70 -54
- package/es/components/hyTable/js/useAppTable.mjs +20 -6
- package/es/components/hyTable/style/table.scss +22 -4
- package/es/components/hyTable/table.vue.mjs +22 -18
- package/es/components/hyTableForm/js/useAppTableForm.mjs +1 -1
- package/es/components/hyTableForm/tableForm.vue.mjs +3 -3
- package/es/components/hyTooltip/tooltip.vue.mjs +4 -4
- package/es/components/hyTree/style/index.css +1 -0
- package/es/components/hyTree/tree.vue.mjs +2 -0
- package/es/components/hyUserAvatar/userAvatar.vue.mjs +2 -2
- package/es/components/hyVideoPlayer/js/index.mjs +1 -1
- package/es/locale/en.mjs +1 -1
- package/es/locale/zh_CN.mjs +1 -1
- package/es/style/element/hy-element.scss +3 -2
- package/es/version.mjs +1 -1
- package/lib/components/hyAudioPlayer/js/index.js +1 -1
- package/lib/components/hyButton/button.vue.js +49 -34
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +1 -1
- package/lib/components/hyConfirmDialog/confirmMethod.js +1 -1
- package/lib/components/hyConfirmDialog/index.js +1 -1
- package/lib/components/hyCutter/cutter.vue.js +1 -1
- package/lib/components/hyDatePicker/datePicker.vue.js +1 -1
- package/lib/components/hyDialog/dialog.vue.js +175 -136
- package/lib/components/hyDialog/style/dialog.scss +13 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -4
- package/lib/components/hyForm/js/useAppForm.js +1 -1
- package/lib/components/hyForm/style/form.scss +0 -4
- package/lib/components/hyNoPermissions/noPermissions.vue.js +1 -1
- package/lib/components/hyNoPermissionsMap/noPermissionsMap.vue.js +1 -1
- package/lib/components/hyOrgCascader/orgCascader.vue.js +1 -1
- package/lib/components/hySearch/cpns/searchItem.vue.js +3 -9
- package/lib/components/hySearch/js/index.js +4 -4
- package/lib/components/hySearch/style/search.scss +1 -0
- package/lib/components/hyTable/cpns/columnSelect.vue.js +70 -89
- package/lib/components/hyTable/cpns/columnSelectItem.vue.js +4 -7
- package/lib/components/hyTable/cpns/headerItem.vue.js +1 -1
- package/lib/components/hyTable/cpns/virtualTable.vue.js +8 -12
- package/lib/components/hyTable/js/index.js +69 -53
- package/lib/components/hyTable/js/useAppTable.js +20 -6
- package/lib/components/hyTable/style/table.scss +22 -4
- package/lib/components/hyTable/table.vue.js +21 -17
- package/lib/components/hyTableForm/js/useAppTableForm.js +1 -1
- package/lib/components/hyTableForm/tableForm.vue.js +3 -3
- package/lib/components/hyTooltip/tooltip.vue.js +4 -4
- package/lib/components/hyTree/style/index.css +1 -0
- package/lib/components/hyTree/tree.vue.js +2 -0
- package/lib/components/hyUserAvatar/userAvatar.vue.js +2 -2
- package/lib/components/hyVideoPlayer/js/index.js +1 -1
- package/lib/locale/en.js +1 -1
- package/lib/locale/zh_CN.js +1 -1
- package/lib/style/element/hy-element.scss +3 -2
- package/lib/version.js +1 -1
- package/package.json +1 -1
package/dist/tailwind.css
CHANGED
|
@@ -224,10 +224,6 @@
|
|
|
224
224
|
right: 0.75rem;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
-
.right-4 {
|
|
228
|
-
right: 1rem;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
227
|
.top-0 {
|
|
232
228
|
top: 0px;
|
|
233
229
|
}
|
|
@@ -484,6 +480,10 @@
|
|
|
484
480
|
height: 0.375rem;
|
|
485
481
|
}
|
|
486
482
|
|
|
483
|
+
.h-2\.5 {
|
|
484
|
+
height: 0.625rem;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
487
|
.h-3 {
|
|
488
488
|
height: 0.75rem;
|
|
489
489
|
}
|
|
@@ -959,10 +959,6 @@
|
|
|
959
959
|
background-color: rgb(61 98 134 / var(--tw-bg-opacity, 1));
|
|
960
960
|
}
|
|
961
961
|
|
|
962
|
-
.bg-\[rgba\(var\(--hy-background-2\)\2c 0\.5\)\] {
|
|
963
|
-
background-color: rgba(var(--hy-background-2),0.5);
|
|
964
|
-
}
|
|
965
|
-
|
|
966
962
|
.bg-\[rgba\(var\(--hy-background-4\)\2c 0\.9\)\] {
|
|
967
963
|
background-color: rgba(var(--hy-background-4),0.9);
|
|
968
964
|
}
|
|
@@ -1330,6 +1326,18 @@
|
|
|
1330
1326
|
outline-style: solid;
|
|
1331
1327
|
}
|
|
1332
1328
|
|
|
1329
|
+
.outline-1 {
|
|
1330
|
+
outline-width: 1px;
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
.outline-offset-0 {
|
|
1334
|
+
outline-offset: 0px;
|
|
1335
|
+
}
|
|
1336
|
+
|
|
1337
|
+
.outline-transparent {
|
|
1338
|
+
outline-color: transparent;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1333
1341
|
.blur {
|
|
1334
1342
|
--tw-blur: blur(8px);
|
|
1335
1343
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
@@ -1425,3 +1433,7 @@ menu {
|
|
|
1425
1433
|
--tw-shadow-colored: 0px 0px 5px 0px var(--tw-shadow-color);
|
|
1426
1434
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1427
1435
|
}
|
|
1436
|
+
|
|
1437
|
+
.hover\:outline-theme:hover {
|
|
1438
|
+
outline-color: rgb(var(--hy-theme), 1);
|
|
1439
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useTemplateRef, computed, onMounted, onUnmounted, openBlock, createElementBlock, normalizeClass, unref, createVNode, createElementVNode, toDisplayString, withDirectives, vShow, createCommentVNode, createTextVNode, normalizeStyle, isRef, vModelText, withCtx, Fragment, renderList, createBlock, defineComponent } from 'vue';
|
|
2
2
|
import { ElPopover, ElSlider } from 'element-plus';
|
|
3
3
|
import _sfc_main$1 from '../hyVideoPlayer/cpns/mediaLoading.vue.mjs';
|
|
4
4
|
import { useAudioPlayer } from './js/index.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ref, computed, nextTick } from 'vue';
|
|
2
2
|
import { ElMessage } from 'element-plus';
|
|
3
|
-
import { useAudioPlayerConfig } from '../../../hooks/useAudioPlayerConfig.mjs';
|
|
4
3
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
4
|
+
import { useAudioPlayerConfig } from '../../../hooks/useAudioPlayerConfig.mjs';
|
|
5
5
|
import { formatDuration } from '../../../utils/date.mjs';
|
|
6
6
|
|
|
7
7
|
const useAudioPlayer = (hy) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode,
|
|
1
|
+
import { openBlock, createElementBlock, mergeProps, renderSlot, normalizeClass, createCommentVNode, createElementVNode, createVNode, unref, withCtx, createBlock, Fragment, defineComponent } from 'vue';
|
|
2
2
|
import { ElIcon } from 'element-plus';
|
|
3
3
|
import { Loading, ArrowDown } from '@element-plus/icons-vue';
|
|
4
|
+
import { HyTooltip } from '../hyTooltip/index.mjs';
|
|
4
5
|
import { HyIcon } from '../hyIcon/index.mjs';
|
|
5
6
|
|
|
6
7
|
import "./style/button.scss";
|
|
@@ -23,6 +24,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
23
24
|
type: Boolean,
|
|
24
25
|
default: false
|
|
25
26
|
},
|
|
27
|
+
loadingTip: {
|
|
28
|
+
// 加载中气泡文本
|
|
29
|
+
type: String
|
|
30
|
+
},
|
|
26
31
|
size: {
|
|
27
32
|
type: String,
|
|
28
33
|
size: "default"
|
|
@@ -112,39 +117,49 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
112
117
|
},
|
|
113
118
|
[
|
|
114
119
|
createElementVNode("div", { class: "hy-button__text relative z-[1] w-full h-full flex items-center justify-center" }, [
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
120
|
+
createVNode(unref(HyTooltip), {
|
|
121
|
+
"is-always": "",
|
|
122
|
+
disabled: !__props.loading || !__props.loadingTip,
|
|
123
|
+
content: __props.loadingTip
|
|
124
|
+
}, {
|
|
125
|
+
default: withCtx(() => [
|
|
126
|
+
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
127
|
+
createElementVNode(
|
|
128
|
+
"div",
|
|
129
|
+
{
|
|
130
|
+
class: normalizeClass(["flex items-center text-main", {
|
|
131
|
+
"px-3": !__props.expand,
|
|
132
|
+
"pl-3 pr-1.5": __props.expand
|
|
133
|
+
}])
|
|
134
|
+
},
|
|
135
|
+
[
|
|
136
|
+
!__props.loading ? renderSlot(_ctx.$slots, "svg", {}, () => [
|
|
137
|
+
__props.svgName ? (openBlock(), createBlock(unref(HyIcon), {
|
|
138
|
+
key: 0,
|
|
139
|
+
"svg-name": __props.svgName,
|
|
140
|
+
"class-name": "!w-3 !h-3 text-main mr-2"
|
|
141
|
+
}, null, 8, ["svg-name"])) : createCommentVNode("v-if", true)
|
|
142
|
+
], void 0, 0) : (openBlock(), createBlock(unref(ElIcon), {
|
|
143
|
+
key: 1,
|
|
144
|
+
color: "rgb(var(--hy-main))",
|
|
145
|
+
class: "is-loading mr-2"
|
|
146
|
+
}, {
|
|
147
|
+
default: withCtx(() => [
|
|
148
|
+
createVNode(unref(Loading))
|
|
149
|
+
]),
|
|
150
|
+
_: 1
|
|
151
|
+
/* STABLE */
|
|
152
|
+
})),
|
|
153
|
+
renderSlot(_ctx.$slots, "default")
|
|
154
|
+
],
|
|
155
|
+
2
|
|
156
|
+
/* CLASS */
|
|
157
|
+
)
|
|
158
|
+
])
|
|
159
|
+
]),
|
|
160
|
+
_: 3
|
|
161
|
+
/* FORWARDED */
|
|
162
|
+
}, 8, ["disabled", "content"]),
|
|
148
163
|
__props.expand ? (openBlock(), createElementBlock(
|
|
149
164
|
Fragment,
|
|
150
165
|
{ key: 0 },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, useModel, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementVNode, createVNode, normalizeClass, toDisplayString, createElementBlock, createTextVNode, createCommentVNode, withModifiers, mergeModels } from 'vue';
|
|
2
2
|
import { ElDialog, ElIcon } from 'element-plus';
|
|
3
3
|
import { Warning, CircleClose } from '@element-plus/icons-vue';
|
|
4
|
-
import { HyButton } from '../hyButton/index.mjs';
|
|
5
4
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
5
|
+
import { HyButton } from '../hyButton/index.mjs';
|
|
6
6
|
|
|
7
7
|
const __default__ = defineComponent({
|
|
8
8
|
name: "HyConfirmDialog"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { unref, createVNode, render } from 'vue';
|
|
2
2
|
import { defaultAxios } from '../../hooks/useApi.mjs';
|
|
3
3
|
import _sfc_main from './confirmDialog.vue.mjs';
|
|
4
|
+
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
4
5
|
import { useGlobalConfig } from '../../hooks/useGlobalConfig.mjs';
|
|
5
6
|
import { HyConfigProvider } from '../hyConfigProvider/index.mjs';
|
|
6
|
-
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
7
7
|
|
|
8
8
|
function appConfirmMethod(config) {
|
|
9
9
|
let container = document.createDocumentFragment();
|
|
@@ -2,9 +2,9 @@ import { defineComponent, useModel, useTemplateRef, ref, computed, openBlock, cr
|
|
|
2
2
|
import { VueCropper } from 'vue-cropper';
|
|
3
3
|
import { ElUpload, ElImage, ElIcon, ElMessage } from 'element-plus';
|
|
4
4
|
import { User, Delete } from '@element-plus/icons-vue';
|
|
5
|
+
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
5
6
|
import { blobToDataURL, sizeToTextHandler, fileUpload } from '../../utils/file.mjs';
|
|
6
7
|
import { HyDialog } from '../hyDialog/index.mjs';
|
|
7
|
-
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
8
8
|
|
|
9
9
|
import "vue-cropper/dist/index.css";
|
|
10
10
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, useTemplateRef, useModel, computed, watch, unref, openBlock, createBlock, mergeProps, createSlots, renderList, withCtx, renderSlot, normalizeProps, guardReactiveProps, mergeModels } from 'vue';
|
|
2
2
|
import { ElDatePicker } from 'element-plus';
|
|
3
|
+
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
3
4
|
import { getDefaultValueFormatByType } from '../../utils/date.mjs';
|
|
4
5
|
import { isArray } from '../../utils/is.mjs';
|
|
5
|
-
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
6
6
|
|
|
7
7
|
import "./style/datePicker.scss";
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useModel, ref,
|
|
1
|
+
import { useModel, ref, openBlock, createElementBlock, Fragment, createCommentVNode, createVNode, unref, mergeProps, withCtx, createElementVNode, normalizeClass, renderSlot, createBlock, withModifiers, createTextVNode, toDisplayString, mergeModels, defineComponent } from 'vue';
|
|
2
2
|
import { ElDialog } from 'element-plus';
|
|
3
3
|
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
4
4
|
import { HyButton } from '../hyButton/index.mjs';
|
|
@@ -19,7 +19,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
19
19
|
default: "default"
|
|
20
20
|
// default-默认类型 right-右侧弹窗 fullscreen-全屏
|
|
21
21
|
},
|
|
22
|
+
dialogClass: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "default"
|
|
25
|
+
},
|
|
26
|
+
// zIndex: {
|
|
27
|
+
// type: Number,
|
|
28
|
+
// default: null, // default-默认类型 right-右侧弹窗 fullscreen-全屏
|
|
29
|
+
// },
|
|
22
30
|
top: String,
|
|
31
|
+
// 支持缩小化
|
|
32
|
+
showShrink: { type: Boolean, default: false },
|
|
23
33
|
showOperate: { type: Boolean, default: true },
|
|
24
34
|
showClose: { type: Boolean, default: true },
|
|
25
35
|
showCancel: {
|
|
@@ -41,6 +51,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
41
51
|
type: String,
|
|
42
52
|
default: "primary"
|
|
43
53
|
},
|
|
54
|
+
width: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: () => {
|
|
57
|
+
return "1000px";
|
|
58
|
+
}
|
|
59
|
+
},
|
|
44
60
|
submitText: {
|
|
45
61
|
type: String
|
|
46
62
|
},
|
|
@@ -51,37 +67,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
51
67
|
"modelValue": { type: Boolean, default: false },
|
|
52
68
|
"modelModifiers": {}
|
|
53
69
|
}),
|
|
54
|
-
emits: /* @__PURE__ */ mergeModels(["
|
|
70
|
+
emits: /* @__PURE__ */ mergeModels(["onMinimized", "onDialogMousedown"], ["update:modelValue"]),
|
|
55
71
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
56
72
|
const props = __props;
|
|
57
73
|
const emits = __emit;
|
|
58
74
|
const { t } = useLocale();
|
|
59
75
|
const visible = useModel(__props, "modelValue");
|
|
60
76
|
const loading = ref(false);
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
value += " !ml-auto";
|
|
66
|
-
} else {
|
|
67
|
-
value += " !ml-4";
|
|
68
|
-
}
|
|
69
|
-
return value;
|
|
70
|
-
}
|
|
71
|
-
return "flex flex-col";
|
|
72
|
-
});
|
|
73
|
-
const width = computed(() => {
|
|
74
|
-
if (props.dialogType === "fullscreen") {
|
|
75
|
-
return "calc(100vw-32px)";
|
|
76
|
-
}
|
|
77
|
-
return "37.5rem";
|
|
78
|
-
});
|
|
79
|
-
const top = computed(() => {
|
|
80
|
-
if (["right", "fullscreen"].includes(props.dialogType)) {
|
|
81
|
-
return "16px";
|
|
82
|
-
}
|
|
83
|
-
return props.top;
|
|
84
|
-
});
|
|
77
|
+
const dragLevelIndex = ref(null);
|
|
78
|
+
const minimized = ref(false);
|
|
79
|
+
const animating = ref(false);
|
|
80
|
+
let animTimer = null;
|
|
85
81
|
async function onSubmitHandler() {
|
|
86
82
|
if (loading.value) return;
|
|
87
83
|
loading.value = true;
|
|
@@ -96,7 +92,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
96
92
|
}
|
|
97
93
|
visible.value = false;
|
|
98
94
|
loading.value = false;
|
|
99
|
-
emits("hide");
|
|
100
95
|
}
|
|
101
96
|
async function onCancelHandler() {
|
|
102
97
|
if (loading.value) return;
|
|
@@ -112,7 +107,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
112
107
|
}
|
|
113
108
|
visible.value = false;
|
|
114
109
|
loading.value = false;
|
|
115
|
-
emits("hide");
|
|
116
110
|
}
|
|
117
111
|
async function onCloseHandler() {
|
|
118
112
|
if (loading.value) return;
|
|
@@ -128,127 +122,172 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
128
122
|
}
|
|
129
123
|
visible.value = false;
|
|
130
124
|
loading.value = false;
|
|
131
|
-
emits("hide");
|
|
132
125
|
}
|
|
133
|
-
|
|
126
|
+
function runAnim(onEnd) {
|
|
127
|
+
animating.value = true;
|
|
128
|
+
clearTimeout(animTimer);
|
|
129
|
+
animTimer = setTimeout(() => {
|
|
130
|
+
animating.value = false;
|
|
131
|
+
onEnd?.();
|
|
132
|
+
}, 750);
|
|
133
|
+
}
|
|
134
|
+
function showToWorkspace(initDragLevelIndex) {
|
|
135
|
+
dragLevelIndex.value = initDragLevelIndex;
|
|
136
|
+
if (minimized.value) runAnim();
|
|
137
|
+
minimized.value = false;
|
|
138
|
+
emits("onMinimized", minimized.value);
|
|
139
|
+
}
|
|
140
|
+
function hideToWorkspace() {
|
|
141
|
+
runAnim(() => {
|
|
142
|
+
dragLevelIndex.value = 1;
|
|
143
|
+
});
|
|
144
|
+
minimized.value = true;
|
|
145
|
+
emits("onMinimized", minimized.value);
|
|
146
|
+
}
|
|
147
|
+
const dialogTestRef = ref();
|
|
148
|
+
function dialogMousedown(e) {
|
|
149
|
+
emits("onDialogMousedown", e);
|
|
150
|
+
}
|
|
151
|
+
__expose({
|
|
152
|
+
showToWorkspace,
|
|
153
|
+
hideToWorkspace
|
|
154
|
+
});
|
|
134
155
|
return (_ctx, _cache) => {
|
|
135
|
-
return openBlock(),
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"
|
|
155
|
-
|
|
156
|
-
|
|
156
|
+
return openBlock(), createElementBlock(
|
|
157
|
+
Fragment,
|
|
158
|
+
null,
|
|
159
|
+
[
|
|
160
|
+
createCommentVNode(" @mousedown.stop"),
|
|
161
|
+
createCommentVNode(' :z-index="zIndex || dragLevelIndex"'),
|
|
162
|
+
createCommentVNode(" draggable"),
|
|
163
|
+
createCommentVNode(` :align-center="!['right', 'fullscreen'].includes(props.dialogType)"`),
|
|
164
|
+
createCommentVNode(' body-class="h-0 flex-1"'),
|
|
165
|
+
createCommentVNode(' :class="dialogClass"'),
|
|
166
|
+
createCommentVNode(' :overflow="false"'),
|
|
167
|
+
createCommentVNode(' :modal="false"'),
|
|
168
|
+
createVNode(unref(ElDialog), mergeProps({
|
|
169
|
+
ref_key: "dialogTestRef",
|
|
170
|
+
ref: dialogTestRef,
|
|
171
|
+
onMousedown: dialogMousedown,
|
|
172
|
+
"append-to-body": true,
|
|
173
|
+
"close-on-click-modal": false,
|
|
174
|
+
"close-on-press-escape": false,
|
|
175
|
+
"show-close": false,
|
|
176
|
+
"modal-penetrable": "",
|
|
177
|
+
"modal-class": {
|
|
178
|
+
"hy-dialog-app-shrink": animating.value || minimized.value,
|
|
179
|
+
"hy-dialog-is-minimized": minimized.value
|
|
157
180
|
},
|
|
158
|
-
|
|
181
|
+
modelValue: visible.value,
|
|
182
|
+
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
183
|
+
width: props.width,
|
|
184
|
+
top: __props.top
|
|
185
|
+
}, _ctx.$attrs), {
|
|
186
|
+
header: withCtx(() => [
|
|
159
187
|
createElementVNode(
|
|
160
|
-
"span",
|
|
161
|
-
null,
|
|
162
|
-
toDisplayString(__props.title),
|
|
163
|
-
1
|
|
164
|
-
/* TEXT */
|
|
165
|
-
),
|
|
166
|
-
__props.showClose ? (openBlock(), createElementBlock(
|
|
167
188
|
"div",
|
|
168
189
|
{
|
|
169
|
-
|
|
170
|
-
class: normalizeClass(["text-lg absolute right-4 cursor-pointer text-danger-2", { "cursor-not-allowed": loading.value }]),
|
|
171
|
-
onClick: onCloseHandler
|
|
190
|
+
class: normalizeClass(["box-border w-full border-0 border-b border-solid border-background-3 px-4 py-[10px] text-main text-sm font-bold flex justify-between items-center relative", { "!justify-center": __props.titleAlign === "center" }])
|
|
172
191
|
},
|
|
173
192
|
[
|
|
174
|
-
|
|
175
|
-
"
|
|
176
|
-
class: "
|
|
177
|
-
|
|
193
|
+
createElementVNode(
|
|
194
|
+
"div",
|
|
195
|
+
{ class: "flex-grow w-0 mr-2 over_one_line" },
|
|
196
|
+
toDisplayString(__props.title),
|
|
197
|
+
1
|
|
198
|
+
/* TEXT */
|
|
199
|
+
),
|
|
200
|
+
createElementVNode("div", { class: "text-lg cursor-pointer" }, [
|
|
201
|
+
renderSlot(_ctx.$slots, "title-operate-box"),
|
|
202
|
+
__props.showShrink ? (openBlock(), createBlock(unref(HyIcon), {
|
|
203
|
+
key: 0,
|
|
204
|
+
onClick: hideToWorkspace,
|
|
205
|
+
"svg-name": "layout-dialog-narrow",
|
|
206
|
+
class: "!w-[20px] !h-[20px] ml-2 clickBox"
|
|
207
|
+
})) : createCommentVNode("v-if", true),
|
|
208
|
+
__props.showClose ? (openBlock(), createBlock(unref(HyIcon), {
|
|
209
|
+
key: 1,
|
|
210
|
+
onClick: onCloseHandler,
|
|
211
|
+
"svg-name": "layout-dialog-close-v2",
|
|
212
|
+
class: normalizeClass([{ "cursor-not-allowed": loading.value }, "!w-[20px] !h-[20px] ml-2 text-danger-2"])
|
|
213
|
+
}, null, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
214
|
+
])
|
|
178
215
|
],
|
|
179
216
|
2
|
|
180
217
|
/* CLASS */
|
|
181
|
-
)
|
|
182
|
-
],
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
195
|
-
createElementVNode("div", { class: "scroll-body overflow-auto h-0 flex-1 px-6 py-4" }, [
|
|
196
|
-
renderSlot(_ctx.$slots, "default")
|
|
197
|
-
])
|
|
198
|
-
]),
|
|
199
|
-
__props.showOperate ? (openBlock(), createElementBlock("div", {
|
|
200
|
-
key: 0,
|
|
201
|
-
class: "flex items-center flex-row-reverse justify-between p-5 pr-[26px] bg-[rgba(var(--hy-background-2),0.5)] mt-auto"
|
|
202
|
-
}, [
|
|
203
|
-
renderSlot(_ctx.$slots, "operate-left-box"),
|
|
204
|
-
createElementVNode("div", { class: "flex items-center" }, [
|
|
205
|
-
renderSlot(_ctx.$slots, "operate", {}, () => [
|
|
206
|
-
__props.showCancel ? (openBlock(), createBlock(unref(HyButton), {
|
|
207
|
-
key: 0,
|
|
208
|
-
type: __props.cancelType,
|
|
209
|
-
disabled: loading.value,
|
|
210
|
-
class: "!min-w-[120px]",
|
|
211
|
-
onClick: onCancelHandler
|
|
212
|
-
}, {
|
|
213
|
-
default: withCtx(() => [
|
|
214
|
-
createTextVNode(
|
|
215
|
-
toDisplayString(unref(t)("dialog.cancel")),
|
|
216
|
-
1
|
|
217
|
-
/* TEXT */
|
|
218
|
-
)
|
|
219
|
-
]),
|
|
220
|
-
_: 1
|
|
221
|
-
/* STABLE */
|
|
222
|
-
}, 8, ["type", "disabled"])) : createCommentVNode("v-if", true),
|
|
223
|
-
__props.showSubmit ? (openBlock(), createBlock(unref(HyButton), {
|
|
224
|
-
key: 1,
|
|
225
|
-
type: __props.submitType,
|
|
226
|
-
disabled: loading.value,
|
|
227
|
-
class: "!min-w-[120px]",
|
|
228
|
-
onClick: onSubmitHandler
|
|
229
|
-
}, {
|
|
230
|
-
default: withCtx(() => [
|
|
231
|
-
createTextVNode(
|
|
232
|
-
toDisplayString(unref(t)("dialog.confirm")),
|
|
233
|
-
1
|
|
234
|
-
/* TEXT */
|
|
235
|
-
)
|
|
236
|
-
]),
|
|
237
|
-
_: 1
|
|
238
|
-
/* STABLE */
|
|
239
|
-
}, 8, ["type", "disabled"])) : createCommentVNode("v-if", true)
|
|
218
|
+
)
|
|
219
|
+
]),
|
|
220
|
+
default: withCtx(() => [
|
|
221
|
+
createElementVNode(
|
|
222
|
+
"div",
|
|
223
|
+
{
|
|
224
|
+
class: normalizeClass(["max-h-full flex flex-col text-main", { "h-full": ["right", "fullscreen"].includes(props.dialogType) }])
|
|
225
|
+
},
|
|
226
|
+
[
|
|
227
|
+
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
228
|
+
createElementVNode("div", { class: "scroll-body overflow-auto h-0 flex-1 px-6 py-4" }, [
|
|
229
|
+
renderSlot(_ctx.$slots, "default")
|
|
230
|
+
])
|
|
240
231
|
]),
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
232
|
+
__props.showOperate ? (openBlock(), createElementBlock("div", {
|
|
233
|
+
key: 0,
|
|
234
|
+
class: "flex items-center flex-row-reverse justify-between p-5 pr-[26px] mt-auto"
|
|
235
|
+
}, [
|
|
236
|
+
renderSlot(_ctx.$slots, "operate-left-box"),
|
|
237
|
+
createElementVNode("div", { class: "flex items-center" }, [
|
|
238
|
+
renderSlot(_ctx.$slots, "operate", {}, () => [
|
|
239
|
+
__props.showCancel ? (openBlock(), createBlock(unref(HyButton), {
|
|
240
|
+
key: 0,
|
|
241
|
+
type: __props.cancelType,
|
|
242
|
+
disabled: loading.value,
|
|
243
|
+
class: "!min-w-[120px]",
|
|
244
|
+
onMousedown: withModifiers(() => {
|
|
245
|
+
}, ["stop"]),
|
|
246
|
+
onClick: onCancelHandler
|
|
247
|
+
}, {
|
|
248
|
+
default: withCtx(() => [
|
|
249
|
+
createTextVNode(
|
|
250
|
+
toDisplayString(unref(t)("dialog.cancel")),
|
|
251
|
+
1
|
|
252
|
+
/* TEXT */
|
|
253
|
+
)
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
/* STABLE */
|
|
257
|
+
}, 8, ["type", "disabled", "onMousedown"])) : createCommentVNode("v-if", true),
|
|
258
|
+
__props.showSubmit ? (openBlock(), createBlock(unref(HyButton), {
|
|
259
|
+
key: 1,
|
|
260
|
+
type: __props.submitType,
|
|
261
|
+
disabled: loading.value,
|
|
262
|
+
class: "!min-w-[120px]",
|
|
263
|
+
onClick: onSubmitHandler
|
|
264
|
+
}, {
|
|
265
|
+
default: withCtx(() => [
|
|
266
|
+
createTextVNode(
|
|
267
|
+
toDisplayString(unref(t)("dialog.confirm")),
|
|
268
|
+
1
|
|
269
|
+
/* TEXT */
|
|
270
|
+
)
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
/* STABLE */
|
|
274
|
+
}, 8, ["type", "disabled"])) : createCommentVNode("v-if", true)
|
|
275
|
+
]),
|
|
276
|
+
renderSlot(_ctx.$slots, "operate-right-box")
|
|
277
|
+
])
|
|
278
|
+
])) : createCommentVNode("v-if", true)
|
|
279
|
+
],
|
|
280
|
+
2
|
|
281
|
+
/* CLASS */
|
|
282
|
+
)
|
|
283
|
+
]),
|
|
284
|
+
_: 3
|
|
285
|
+
/* FORWARDED */
|
|
286
|
+
}, 16, ["modal-class", "modelValue", "onUpdate:modelValue", "width", "top"])
|
|
287
|
+
],
|
|
288
|
+
2112
|
|
289
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
290
|
+
);
|
|
252
291
|
};
|
|
253
292
|
}
|
|
254
293
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.hy-dialog-app-shrink {
|
|
2
|
+
transform-origin: 100% 100%;
|
|
3
|
+
transition:
|
|
4
|
+
transform 0.7s cubic-bezier(0.65, 0, 0.35, 1),
|
|
5
|
+
opacity 0.7s ease;
|
|
6
|
+
will-change: transform, opacity;
|
|
7
|
+
&.hy-dialog-is-minimized {
|
|
8
|
+
transform: translate(calc(50vw - 100%), calc(100vh - 0px - 100%))
|
|
9
|
+
scale(0.01) !important;
|
|
10
|
+
opacity: 0.95;
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -2,14 +2,14 @@ import { computed, unref, openBlock, createBlock, normalizeStyle, withCtx, creat
|
|
|
2
2
|
import { ElFormItem, ElIcon, ElSelect, ElRadioGroup, ElCheckboxGroup, ElSwitch, ElInputNumber } from 'element-plus';
|
|
3
3
|
import { QuestionFilled } from '@element-plus/icons-vue';
|
|
4
4
|
import { columnShowHandler, columnItemStyle, isRequired, renderText, isDisabled, optionsHandler } from '../js/index.mjs';
|
|
5
|
+
import { isArray } from '../../../utils/is.mjs';
|
|
5
6
|
import { setValueByProp, getValueByProp } from '../../../utils/form.mjs';
|
|
7
|
+
import { funRunHandler } from '../../../utils/handler.mjs';
|
|
6
8
|
import { HyTooltip } from '../../hyTooltip/index.mjs';
|
|
7
9
|
import { HyInput } from '../../hyInput/index.mjs';
|
|
8
10
|
import { HyDatePicker } from '../../hyDatePicker/index.mjs';
|
|
9
11
|
import { HyTimePicker } from '../../hyTimePicker/index.mjs';
|
|
10
12
|
import { HyOrgCascader } from '../../hyOrgCascader/index.mjs';
|
|
11
|
-
import { isArray } from '../../../utils/is.mjs';
|
|
12
|
-
import { funRunHandler } from '../../../utils/handler.mjs';
|
|
13
13
|
|
|
14
14
|
const _sfc_main = {
|
|
15
15
|
__name: "formItem",
|
|
@@ -158,11 +158,10 @@ const _sfc_main = {
|
|
|
158
158
|
[
|
|
159
159
|
createCommentVNode(" \u81EA\u5B9A\u4E49\u5177\u540D\u63D2\u69FD "),
|
|
160
160
|
__props.column.slot && _ctx.$slots[__props.column.slot] ? renderSlot(_ctx.$slots, __props.column.slot, {
|
|
161
|
-
key: 0,
|
|
162
161
|
column: __props.column,
|
|
163
162
|
model: __props.model,
|
|
164
163
|
required: unref(isRequired)(props, __props.column)
|
|
165
|
-
}) : __props.column.type === "input" ? (openBlock(), createElementBlock(
|
|
164
|
+
}, void 0, void 0, 0) : __props.column.type === "input" ? (openBlock(), createElementBlock(
|
|
166
165
|
Fragment,
|
|
167
166
|
{ key: 1 },
|
|
168
167
|
[
|