hy-dispatch-ui-v3 0.2.32 → 0.2.34
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 +186 -454
- package/es/components/hyAudioPlayer/audioPlayer.vue.mjs +5 -5
- package/es/components/hyAudioPlayer/js/index.mjs +1 -1
- package/es/components/hyAudioPlayer/style/audioPlayer.scss +11 -12
- package/es/components/hyButton/button.vue.mjs +50 -35
- package/es/components/hyButton/style/button.scss +16 -3
- package/es/components/hyConfirmDialog/confirmDialog.vue.mjs +2 -2
- 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 +178 -137
- package/es/components/hyDialog/style/dialog.scss +13 -0
- package/es/components/hyForm/cpns/formItem.vue.mjs +3 -4
- package/es/components/hyForm/form.vue.mjs +2 -1
- package/es/components/hyForm/js/useAppForm.mjs +1 -1
- package/es/components/hyForm/style/form.scss +56 -54
- package/es/components/hyIcon/style/icon.scss +1 -1
- package/es/components/hyIconBox/style/iconBox.scss +19 -18
- package/es/components/hyInput/input.vue.mjs +4 -1
- 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 +51 -50
- package/es/components/hyTable/cpns/columnSelect.vue.mjs +39 -42
- 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 +18 -11
- package/es/components/hyTable/js/index.mjs +12 -0
- package/es/components/hyTable/js/useAppTable.mjs +1 -1
- package/es/components/hyTable/style/table.scss +13 -0
- package/es/components/hyTable/table.vue.mjs +43 -23
- package/es/components/hyTableForm/batchTableForm.vue.mjs +478 -0
- package/es/components/hyTableForm/index.mjs +4 -1
- package/es/components/hyTableForm/js/index.mjs +123 -0
- package/es/components/hyTableForm/js/useAppTableForm.mjs +47 -0
- package/es/components/hyTableForm/style/batchTableForm.scss +127 -0
- package/es/components/hyTableForm/style/tableForm.scss +42 -0
- package/es/components/hyTableForm/tableForm.vue.mjs +452 -7
- package/es/components/hyTooltip/tooltip.vue.mjs +6 -6
- 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/cpns/mediaLoading.vue.mjs +1 -1
- package/es/components/hyVideoPlayer/js/index.mjs +1 -1
- package/es/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
- package/es/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
- package/es/components/hyVideoPlayer/videoPlayer.vue.mjs +6 -6
- package/es/components/index.mjs +2 -1
- package/es/index.mjs +2 -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/style/tailwind.scss +133 -1
- package/es/version.mjs +1 -1
- package/lib/components/hyAudioPlayer/audioPlayer.vue.js +4 -4
- package/lib/components/hyAudioPlayer/js/index.js +1 -1
- package/lib/components/hyAudioPlayer/style/audioPlayer.scss +11 -12
- package/lib/components/hyButton/button.vue.js +50 -35
- package/lib/components/hyButton/style/button.scss +16 -3
- package/lib/components/hyConfirmDialog/confirmDialog.vue.js +2 -2
- 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 +177 -136
- package/lib/components/hyDialog/style/dialog.scss +13 -0
- package/lib/components/hyForm/cpns/formItem.vue.js +3 -4
- package/lib/components/hyForm/form.vue.js +2 -1
- package/lib/components/hyForm/js/useAppForm.js +1 -1
- package/lib/components/hyForm/style/form.scss +56 -54
- package/lib/components/hyIcon/style/icon.scss +1 -1
- package/lib/components/hyIconBox/style/iconBox.scss +19 -18
- package/lib/components/hyInput/input.vue.js +4 -1
- 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 +51 -50
- package/lib/components/hyTable/cpns/columnSelect.vue.js +43 -46
- 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 +18 -11
- package/lib/components/hyTable/js/index.js +12 -0
- package/lib/components/hyTable/js/useAppTable.js +1 -1
- package/lib/components/hyTable/style/table.scss +13 -0
- package/lib/components/hyTable/table.vue.js +42 -22
- package/lib/components/hyTableForm/batchTableForm.vue.js +482 -0
- package/lib/components/hyTableForm/index.js +5 -0
- package/lib/components/hyTableForm/js/index.js +127 -0
- package/lib/components/hyTableForm/js/useAppTableForm.js +49 -0
- package/lib/components/hyTableForm/style/batchTableForm.scss +127 -0
- package/lib/components/hyTableForm/style/tableForm.scss +42 -0
- package/lib/components/hyTableForm/tableForm.vue.js +451 -6
- package/lib/components/hyTooltip/tooltip.vue.js +6 -6
- 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/cpns/mediaLoading.vue.js +1 -1
- package/lib/components/hyVideoPlayer/js/index.js +1 -1
- package/lib/components/hyVideoPlayer/style/mediaLoading.scss +5 -5
- package/lib/components/hyVideoPlayer/style/videoPlayer.scss +7 -6
- package/lib/components/hyVideoPlayer/videoPlayer.vue.js +6 -6
- package/lib/components/index.js +33 -30
- package/lib/index.js +33 -30
- 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/style/tailwind.scss +133 -1
- package/lib/version.js +1 -1
- package/package.json +5 -3
|
@@ -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,18 @@ 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
|
|
29
|
+
// default-默认类型 right-右侧弹窗 fullscreen-全屏
|
|
30
|
+
},
|
|
22
31
|
top: String,
|
|
32
|
+
// 支持缩小化
|
|
33
|
+
showShrink: { type: Boolean, default: false },
|
|
23
34
|
showOperate: { type: Boolean, default: true },
|
|
24
35
|
showClose: { type: Boolean, default: true },
|
|
25
36
|
showCancel: {
|
|
@@ -41,6 +52,12 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
41
52
|
type: String,
|
|
42
53
|
default: "primary"
|
|
43
54
|
},
|
|
55
|
+
width: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: () => {
|
|
58
|
+
return "1000px";
|
|
59
|
+
}
|
|
60
|
+
},
|
|
44
61
|
submitText: {
|
|
45
62
|
type: String
|
|
46
63
|
},
|
|
@@ -51,37 +68,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
51
68
|
"modelValue": { type: Boolean, default: false },
|
|
52
69
|
"modelModifiers": {}
|
|
53
70
|
}),
|
|
54
|
-
emits: /* @__PURE__ */ mergeModels(["
|
|
71
|
+
emits: /* @__PURE__ */ mergeModels(["onMinimized", "onDialogMousedown"], ["update:modelValue"]),
|
|
55
72
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
56
73
|
const props = __props;
|
|
57
74
|
const emits = __emit;
|
|
58
75
|
const { t } = useLocale();
|
|
59
76
|
const visible = useModel(__props, "modelValue");
|
|
60
77
|
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
|
-
});
|
|
78
|
+
const dragLevelIndex = ref(null);
|
|
79
|
+
const minimized = ref(false);
|
|
80
|
+
const animating = ref(false);
|
|
81
|
+
let animTimer = null;
|
|
85
82
|
async function onSubmitHandler() {
|
|
86
83
|
if (loading.value) return;
|
|
87
84
|
loading.value = true;
|
|
@@ -96,7 +93,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
96
93
|
}
|
|
97
94
|
visible.value = false;
|
|
98
95
|
loading.value = false;
|
|
99
|
-
emits("hide");
|
|
100
96
|
}
|
|
101
97
|
async function onCancelHandler() {
|
|
102
98
|
if (loading.value) return;
|
|
@@ -112,7 +108,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
112
108
|
}
|
|
113
109
|
visible.value = false;
|
|
114
110
|
loading.value = false;
|
|
115
|
-
emits("hide");
|
|
116
111
|
}
|
|
117
112
|
async function onCloseHandler() {
|
|
118
113
|
if (loading.value) return;
|
|
@@ -128,127 +123,173 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
128
123
|
}
|
|
129
124
|
visible.value = false;
|
|
130
125
|
loading.value = false;
|
|
131
|
-
emits("hide");
|
|
132
126
|
}
|
|
133
|
-
|
|
127
|
+
function runAnim(onEnd) {
|
|
128
|
+
animating.value = true;
|
|
129
|
+
clearTimeout(animTimer);
|
|
130
|
+
animTimer = setTimeout(() => {
|
|
131
|
+
animating.value = false;
|
|
132
|
+
onEnd?.();
|
|
133
|
+
}, 750);
|
|
134
|
+
}
|
|
135
|
+
function showToWorkspace(initDragLevelIndex) {
|
|
136
|
+
dragLevelIndex.value = initDragLevelIndex;
|
|
137
|
+
if (minimized.value) runAnim();
|
|
138
|
+
minimized.value = false;
|
|
139
|
+
emits("onMinimized", minimized.value);
|
|
140
|
+
}
|
|
141
|
+
function hideToWorkspace() {
|
|
142
|
+
runAnim(() => {
|
|
143
|
+
dragLevelIndex.value = 1;
|
|
144
|
+
});
|
|
145
|
+
minimized.value = true;
|
|
146
|
+
emits("onMinimized", minimized.value);
|
|
147
|
+
}
|
|
148
|
+
const dialogTestRef = ref();
|
|
149
|
+
function dialogMousedown(e) {
|
|
150
|
+
if (props.zIndex != null) return;
|
|
151
|
+
emits("onDialogMousedown", e);
|
|
152
|
+
}
|
|
153
|
+
__expose({
|
|
154
|
+
showToWorkspace,
|
|
155
|
+
hideToWorkspace
|
|
156
|
+
});
|
|
134
157
|
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
|
-
|
|
158
|
+
return openBlock(), createElementBlock(
|
|
159
|
+
Fragment,
|
|
160
|
+
null,
|
|
161
|
+
[
|
|
162
|
+
createCommentVNode(" @mousedown.stop"),
|
|
163
|
+
createCommentVNode(' :z-index="zIndex || dragLevelIndex"'),
|
|
164
|
+
createCommentVNode(" draggable"),
|
|
165
|
+
createCommentVNode(` :align-center="!['right', 'fullscreen'].includes(props.dialogType)"`),
|
|
166
|
+
createCommentVNode(' body-class="h-0 flex-1"'),
|
|
167
|
+
createCommentVNode(' :class="dialogClass"'),
|
|
168
|
+
createCommentVNode(' :overflow="false"'),
|
|
169
|
+
createCommentVNode(' :modal="false"'),
|
|
170
|
+
createVNode(unref(ElDialog), mergeProps({
|
|
171
|
+
ref_key: "dialogTestRef",
|
|
172
|
+
ref: dialogTestRef,
|
|
173
|
+
onMousedown: dialogMousedown,
|
|
174
|
+
"append-to-body": true,
|
|
175
|
+
"close-on-click-modal": false,
|
|
176
|
+
"close-on-press-escape": false,
|
|
177
|
+
"show-close": false,
|
|
178
|
+
"modal-penetrable": "",
|
|
179
|
+
"modal-class": {
|
|
180
|
+
"hy-dialog-app-shrink": animating.value || minimized.value,
|
|
181
|
+
"hy-dialog-is-minimized": minimized.value
|
|
157
182
|
},
|
|
158
|
-
|
|
183
|
+
modelValue: visible.value,
|
|
184
|
+
"onUpdate:modelValue": ($event) => visible.value = $event,
|
|
185
|
+
width: props.width,
|
|
186
|
+
top: __props.top
|
|
187
|
+
}, _ctx.$attrs), {
|
|
188
|
+
header: withCtx(() => [
|
|
159
189
|
createElementVNode(
|
|
160
|
-
"span",
|
|
161
|
-
null,
|
|
162
|
-
toDisplayString(__props.title),
|
|
163
|
-
1
|
|
164
|
-
/* TEXT */
|
|
165
|
-
),
|
|
166
|
-
__props.showClose ? (openBlock(), createElementBlock(
|
|
167
190
|
"div",
|
|
168
191
|
{
|
|
169
|
-
|
|
170
|
-
class: normalizeClass(["text-lg absolute right-4 cursor-pointer text-danger-2", { "cursor-not-allowed": loading.value }]),
|
|
171
|
-
onClick: onCloseHandler
|
|
192
|
+
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
193
|
},
|
|
173
194
|
[
|
|
174
|
-
|
|
175
|
-
"
|
|
176
|
-
class: "
|
|
177
|
-
|
|
195
|
+
createElementVNode(
|
|
196
|
+
"div",
|
|
197
|
+
{ class: "flex-grow w-0 mr-2 over_one_line" },
|
|
198
|
+
toDisplayString(__props.title),
|
|
199
|
+
1
|
|
200
|
+
/* TEXT */
|
|
201
|
+
),
|
|
202
|
+
createElementVNode("div", { class: "text-lg cursor-pointer" }, [
|
|
203
|
+
renderSlot(_ctx.$slots, "title-operate-box"),
|
|
204
|
+
__props.showShrink ? (openBlock(), createBlock(unref(HyIcon), {
|
|
205
|
+
key: 0,
|
|
206
|
+
onClick: hideToWorkspace,
|
|
207
|
+
"svg-name": "layout-dialog-narrow",
|
|
208
|
+
class: "!w-[20px] !h-[20px] ml-2 clickBox"
|
|
209
|
+
})) : createCommentVNode("v-if", true),
|
|
210
|
+
__props.showClose ? (openBlock(), createBlock(unref(HyIcon), {
|
|
211
|
+
key: 1,
|
|
212
|
+
onClick: onCloseHandler,
|
|
213
|
+
"svg-name": "layout-dialog-close-v2",
|
|
214
|
+
class: normalizeClass([{ "cursor-not-allowed": loading.value }, "!w-[20px] !h-[20px] ml-2 text-danger-2"])
|
|
215
|
+
}, null, 8, ["class"])) : createCommentVNode("v-if", true)
|
|
216
|
+
])
|
|
178
217
|
],
|
|
179
218
|
2
|
|
180
219
|
/* 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)
|
|
220
|
+
)
|
|
221
|
+
]),
|
|
222
|
+
default: withCtx(() => [
|
|
223
|
+
createElementVNode(
|
|
224
|
+
"div",
|
|
225
|
+
{
|
|
226
|
+
class: normalizeClass(["max-h-full flex flex-col text-main", { "h-full": ["right", "fullscreen"].includes(props.dialogType) }])
|
|
227
|
+
},
|
|
228
|
+
[
|
|
229
|
+
renderSlot(_ctx.$slots, "content", {}, () => [
|
|
230
|
+
createElementVNode("div", { class: "scroll-body overflow-auto h-0 flex-1 px-6 py-4" }, [
|
|
231
|
+
renderSlot(_ctx.$slots, "default")
|
|
232
|
+
])
|
|
240
233
|
]),
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
234
|
+
__props.showOperate ? (openBlock(), createElementBlock("div", {
|
|
235
|
+
key: 0,
|
|
236
|
+
class: "flex items-center flex-row-reverse justify-between p-5 pr-[26px] mt-auto"
|
|
237
|
+
}, [
|
|
238
|
+
renderSlot(_ctx.$slots, "operate-left-box"),
|
|
239
|
+
createElementVNode("div", { class: "flex items-center" }, [
|
|
240
|
+
renderSlot(_ctx.$slots, "operate", {}, () => [
|
|
241
|
+
__props.showCancel ? (openBlock(), createBlock(unref(HyButton), {
|
|
242
|
+
key: 0,
|
|
243
|
+
type: __props.cancelType,
|
|
244
|
+
disabled: loading.value,
|
|
245
|
+
class: "!min-w-[120px]",
|
|
246
|
+
onMousedown: withModifiers(() => {
|
|
247
|
+
}, ["stop"]),
|
|
248
|
+
onClick: onCancelHandler
|
|
249
|
+
}, {
|
|
250
|
+
default: withCtx(() => [
|
|
251
|
+
createTextVNode(
|
|
252
|
+
toDisplayString(unref(t)("dialog.cancel")),
|
|
253
|
+
1
|
|
254
|
+
/* TEXT */
|
|
255
|
+
)
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
/* STABLE */
|
|
259
|
+
}, 8, ["type", "disabled", "onMousedown"])) : createCommentVNode("v-if", true),
|
|
260
|
+
__props.showSubmit ? (openBlock(), createBlock(unref(HyButton), {
|
|
261
|
+
key: 1,
|
|
262
|
+
type: __props.submitType,
|
|
263
|
+
disabled: loading.value,
|
|
264
|
+
class: "!min-w-[120px]",
|
|
265
|
+
onClick: onSubmitHandler
|
|
266
|
+
}, {
|
|
267
|
+
default: withCtx(() => [
|
|
268
|
+
createTextVNode(
|
|
269
|
+
toDisplayString(unref(t)("dialog.confirm")),
|
|
270
|
+
1
|
|
271
|
+
/* TEXT */
|
|
272
|
+
)
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
/* STABLE */
|
|
276
|
+
}, 8, ["type", "disabled"])) : createCommentVNode("v-if", true)
|
|
277
|
+
]),
|
|
278
|
+
renderSlot(_ctx.$slots, "operate-right-box")
|
|
279
|
+
])
|
|
280
|
+
])) : createCommentVNode("v-if", true)
|
|
281
|
+
],
|
|
282
|
+
2
|
|
283
|
+
/* CLASS */
|
|
284
|
+
)
|
|
285
|
+
]),
|
|
286
|
+
_: 3
|
|
287
|
+
/* FORWARDED */
|
|
288
|
+
}, 16, ["modal-class", "modelValue", "onUpdate:modelValue", "width", "top"])
|
|
289
|
+
],
|
|
290
|
+
2112
|
|
291
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
292
|
+
);
|
|
252
293
|
};
|
|
253
294
|
}
|
|
254
295
|
});
|
|
@@ -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
|
[
|
|
@@ -110,7 +110,8 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
110
110
|
rules: __props.rules,
|
|
111
111
|
"label-position": "top",
|
|
112
112
|
size: __props.size,
|
|
113
|
-
class: "px-2"
|
|
113
|
+
class: "px-2",
|
|
114
|
+
"hide-required-asterisk": ""
|
|
114
115
|
}, _ctx.$attrs), {
|
|
115
116
|
default: withCtx(() => [
|
|
116
117
|
createElementVNode(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { unref, toRef } from 'vue';
|
|
2
|
-
import { genValueByProp } from '../../../utils/form.mjs';
|
|
3
2
|
import { funRunHandler, mergeDeep } from '../../../utils/handler.mjs';
|
|
4
3
|
import { isArray, isObject } from '../../../utils/is.mjs';
|
|
4
|
+
import { genValueByProp } from '../../../utils/form.mjs';
|
|
5
5
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
6
6
|
|
|
7
7
|
const genDefaultLabel = (config) => {
|
|
@@ -5,65 +5,67 @@
|
|
|
5
5
|
content: '' !important;
|
|
6
6
|
display: none;
|
|
7
7
|
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.label-required {
|
|
11
|
-
&::after {
|
|
12
|
-
content: '*';
|
|
13
|
-
display: inline-block;
|
|
14
|
-
color: rgba(var(--hy-danger-2));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
8
|
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
justify-content: center;
|
|
26
|
-
border-radius: 1000px;
|
|
27
|
-
border: 1px solid rgba(var(--hy-auxiliary));
|
|
28
|
-
background-color: rgba(var(--hy-background-2));
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
transition: all 0.1s linear;
|
|
31
|
-
user-select: none;
|
|
32
|
-
z-index: 2;
|
|
33
|
-
.hy-form-extra-arrow {
|
|
34
|
-
transform: rotateZ(90deg) rotateY(0deg);
|
|
35
|
-
transition: all 0.3s linear;
|
|
36
|
-
}
|
|
37
|
-
&:hover {
|
|
38
|
-
color: rgba(var(--hy-theme));
|
|
39
|
-
border-color: rgba(var(--hy-theme));
|
|
40
|
-
box-shadow: 0px 0px 12px 1px rgba(var(--hy-theme), 0.5);
|
|
41
|
-
& + .hy-form-extra-line {
|
|
42
|
-
background: radial-gradient(
|
|
43
|
-
circle,
|
|
44
|
-
rgba(var(--hy-theme), 1),
|
|
45
|
-
rgba(var(--hy-theme), 0)
|
|
46
|
-
);
|
|
9
|
+
.label-required {
|
|
10
|
+
&::after {
|
|
11
|
+
content: '*';
|
|
12
|
+
display: inline-block;
|
|
13
|
+
color: rgba(var(--hy-danger-2));
|
|
47
14
|
}
|
|
48
15
|
}
|
|
49
|
-
|
|
16
|
+
|
|
17
|
+
.hy-form-extra {
|
|
18
|
+
height: 32px;
|
|
19
|
+
color: rgba(var(--hy-auxiliary));
|
|
20
|
+
position: relative;
|
|
21
|
+
padding: 0 40px;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: center;
|
|
25
|
+
border-radius: 1000px;
|
|
26
|
+
border: 1px solid rgba(var(--hy-auxiliary));
|
|
27
|
+
background-color: rgba(var(--hy-background-2));
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
transition: all 0.1s linear;
|
|
30
|
+
user-select: none;
|
|
31
|
+
z-index: 2;
|
|
50
32
|
.hy-form-extra-arrow {
|
|
51
|
-
transform: rotateZ(90deg) rotateY(
|
|
33
|
+
transform: rotateZ(90deg) rotateY(0deg);
|
|
34
|
+
transition: all 0.3s linear;
|
|
52
35
|
}
|
|
36
|
+
&:hover {
|
|
37
|
+
color: rgba(var(--hy-theme));
|
|
38
|
+
border-color: rgba(var(--hy-theme));
|
|
39
|
+
box-shadow: 0px 0px 12px 1px rgba(var(--hy-theme), 0.5);
|
|
40
|
+
& + .hy-form-extra-line {
|
|
41
|
+
background: radial-gradient(
|
|
42
|
+
circle,
|
|
43
|
+
rgba(var(--hy-theme), 1),
|
|
44
|
+
rgba(var(--hy-theme), 0)
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
&.expand {
|
|
49
|
+
.hy-form-extra-arrow {
|
|
50
|
+
transform: rotateZ(90deg) rotateY(-180deg);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.hy-form-extra-line {
|
|
56
|
+
width: 100%;
|
|
57
|
+
height: 2px;
|
|
58
|
+
position: absolute;
|
|
59
|
+
left: 0;
|
|
60
|
+
top: 50%;
|
|
61
|
+
transform: translateY(-50%);
|
|
62
|
+
pointer-events: none;
|
|
63
|
+
background: radial-gradient(
|
|
64
|
+
circle,
|
|
65
|
+
rgba(var(--hy-auxiliary), 1),
|
|
66
|
+
rgba(var(--hy-auxiliary), 0)
|
|
67
|
+
);
|
|
53
68
|
}
|
|
54
69
|
}
|
|
55
70
|
|
|
56
|
-
|
|
57
|
-
width: 100%;
|
|
58
|
-
height: 2px;
|
|
59
|
-
position: absolute;
|
|
60
|
-
left: 0;
|
|
61
|
-
top: 50%;
|
|
62
|
-
transform: translateY(-50%);
|
|
63
|
-
pointer-events: none;
|
|
64
|
-
background: radial-gradient(
|
|
65
|
-
circle,
|
|
66
|
-
rgba(var(--hy-auxiliary), 1),
|
|
67
|
-
rgba(var(--hy-auxiliary), 0)
|
|
68
|
-
);
|
|
69
|
-
}
|
|
71
|
+
|
|
@@ -4,23 +4,24 @@
|
|
|
4
4
|
& + & {
|
|
5
5
|
margin-left: 12px;
|
|
6
6
|
}
|
|
7
|
-
}
|
|
8
7
|
|
|
9
|
-
.hy-icon-box-content {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
8
|
+
.hy-icon-box-content {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
padding: 5px;
|
|
13
|
+
user-select: none;
|
|
14
|
+
color: rgb(var(--hy-main));
|
|
15
|
+
border-radius: 100%;
|
|
16
|
+
background:
|
|
17
|
+
radial-gradient(
|
|
18
|
+
142% 47% at 50% 119%,
|
|
19
|
+
rgb(var(--hy-theme), 0.5) 0%,
|
|
20
|
+
rgb(var(--hy-theme), 0) 100%
|
|
21
|
+
),
|
|
22
|
+
rgb(var(--hy-background-3));
|
|
23
|
+
border: 1px solid rgb(var(--hy-auxiliary), 0.5);
|
|
24
|
+
box-shadow: 0px 2px 5px 0px rgba(29, 33, 41, 0.5);
|
|
25
|
+
}
|
|
26
26
|
}
|
|
27
|
+
|
|
@@ -16,7 +16,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
16
16
|
// between-清除两端空格 all-清除所有空格 before-清除前面的空格 after-清除后面的空格 none-不清除空格
|
|
17
17
|
}
|
|
18
18
|
}, {
|
|
19
|
-
"modelValue": {
|
|
19
|
+
"modelValue": {
|
|
20
|
+
type: [String, Number],
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
20
23
|
"modelModifiers": {}
|
|
21
24
|
}),
|
|
22
25
|
emits: /* @__PURE__ */ mergeModels([], ["update:modelValue"]),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useModel, useTemplateRef, ref, computed, watch, openBlock, createElementBlock, createElementVNode, normalizeStyle, createVNode, unref, renderSlot, toDisplayString, createCommentVNode, createBlock, normalizeClass, mergeModels } from 'vue';
|
|
2
2
|
import { ElCascader } from 'element-plus';
|
|
3
|
-
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
4
3
|
import { useApi } from '../../hooks/useApi.mjs';
|
|
4
|
+
import { useLocale } from '../../hooks/useLocale.mjs';
|
|
5
5
|
|
|
6
6
|
import "./style/orgCascader.scss";
|
|
7
7
|
|