hy-dispatch-ui-v3 0.1.6 → 0.2.0
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/README.md +47 -0
- package/dist/tailwind.css +349 -4
- package/es/components/appAudioPlayer/appAudioPlayer.vue.mjs +462 -0
- package/es/components/appAudioPlayer/index.mjs +6 -0
- package/es/components/appAudioPlayer/js/index.mjs +327 -0
- package/es/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
- package/es/components/appButton/style/appButton.scss +0 -1
- package/es/components/appConfigProvider/appConfigProvider.vue.mjs +22 -1
- package/es/components/appCutter/appCutter.vue.mjs +202 -129
- package/es/components/appDatePicker/appDatePicker.vue.mjs +1 -1
- package/es/components/appForm/appForm.vue.mjs +132 -209
- package/es/components/appForm/cpns/appFormItem.vue.mjs +312 -0
- package/es/components/appForm/cpns/arrayItem.vue.mjs +305 -0
- package/es/components/appForm/cpns/extraItem.vue.mjs +140 -0
- package/es/components/appForm/js/index.mjs +46 -24
- package/es/components/appForm/js/useAppForm.mjs +30 -6
- package/es/components/appForm/style/appForm.scss +53 -0
- package/es/components/appIcon/appIcon.vue.mjs +2 -1
- package/es/components/appIconBox/style/appIconBox.scss +0 -1
- package/es/components/appInput/appInput.vue.mjs +99 -0
- package/es/components/appInput/index.mjs +6 -0
- package/es/components/appMenu/appMenu.vue.mjs +129 -0
- package/es/components/appMenu/index.mjs +6 -0
- package/es/components/appMenu/style/appMenu.scss +145 -0
- package/es/components/appOrgCascader/appOrgCascader.vue.mjs +14 -10
- package/es/components/appSearch/appSearch.vue.mjs +55 -211
- package/es/components/appSearch/cpns/appSearchItem.vue.mjs +238 -0
- package/es/components/appSearch/js/index.mjs +20 -8
- package/es/components/appSearch/js/useAppSearch.mjs +10 -5
- package/es/components/appSearch/style/appSearch.scss +10 -0
- package/es/components/appTable/appTable.vue.mjs +312 -158
- package/es/components/appTable/cpns/columnSelect.vue.mjs +151 -156
- package/es/components/appTable/cpns/columnSelectItem.vue2.mjs +104 -110
- package/es/components/appTable/cpns/headerItem.vue.mjs +98 -0
- package/es/components/appTable/cpns/virtualTable.vue.mjs +560 -0
- package/es/components/appTable/js/index.mjs +46 -20
- package/es/components/appTable/js/search.mjs +1 -2
- package/es/components/appTable/js/useAppTable.mjs +58 -14
- package/es/components/appTable/style/appTable.scss +16 -0
- package/es/components/appTooltip/appTooltip.vue.mjs +24 -13
- package/es/components/appTree/appTree.vue.mjs +304 -0
- package/es/components/appTree/index.mjs +6 -0
- package/es/components/appTree/js/index.mjs +531 -0
- package/es/components/appUserAvatar/appUserAvatar.vue.mjs +9 -8
- package/es/components/appUserAvatar/style/appUserAvatar.scss +0 -1
- package/es/components/appVideoPlayer/appVideoPlayer.vue.mjs +647 -0
- package/es/components/appVideoPlayer/cpns/mediaLoading.vue.mjs +35 -0
- package/es/components/appVideoPlayer/index.mjs +6 -0
- package/es/components/appVideoPlayer/js/index.mjs +426 -0
- package/es/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
- package/es/components/appVideoPlayer/style/mediaLoading.scss +62 -0
- package/es/components/index.mjs +5 -0
- package/es/hooks/index.mjs +3 -0
- package/es/hooks/useApi.mjs +4 -4
- package/es/hooks/useAudioPlayerConfig.mjs +12 -0
- package/es/hooks/useGlobalConfig.mjs +18 -7
- package/es/hooks/useLocale.mjs +3 -11
- package/es/hooks/useMixins.mjs +1 -1
- package/es/hooks/usePermissionMap.mjs +12 -0
- package/es/hooks/useUserAvatarMap.mjs +2 -3
- package/es/hooks/useVideoPlayerConfig.mjs +12 -0
- package/es/index.mjs +14 -4
- package/es/locale/en.mjs +52 -3
- package/es/locale/zh_CN.mjs +48 -3
- package/es/make-installer.mjs +2 -0
- package/es/static/hy-svg-icons.js +462 -0
- package/es/static/protocolcheck.js +247 -0
- package/es/style/element/element.scss +9 -0
- package/es/style/element/index.scss +6 -3
- package/es/style/index.scss +11 -0
- package/es/style/theme.scss +73 -0
- package/es/utils/date.mjs +25 -1
- package/es/utils/file.mjs +5 -4
- package/es/utils/form.mjs +52 -0
- package/es/utils/handler.mjs +22 -2
- package/es/utils/index.mjs +6 -4
- package/es/utils/is.mjs +23 -2
- package/es/utils/loadScript.mjs +33 -0
- package/es/version.mjs +1 -1
- package/lib/components/appAudioPlayer/appAudioPlayer.vue.js +466 -0
- package/lib/components/appAudioPlayer/index.js +11 -0
- package/lib/components/appAudioPlayer/js/index.js +329 -0
- package/lib/components/appAudioPlayer/style/appAudioPlayer.scss +319 -0
- package/lib/components/appButton/style/appButton.scss +0 -1
- package/lib/components/appConfigProvider/appConfigProvider.vue.js +22 -1
- package/lib/components/appCutter/appCutter.vue.js +201 -128
- package/lib/components/appDatePicker/appDatePicker.vue.js +1 -1
- package/lib/components/appForm/appForm.vue.js +129 -206
- package/lib/components/appForm/cpns/appFormItem.vue.js +316 -0
- package/lib/components/appForm/cpns/arrayItem.vue.js +309 -0
- package/lib/components/appForm/cpns/extraItem.vue.js +144 -0
- package/lib/components/appForm/js/index.js +48 -23
- package/lib/components/appForm/js/useAppForm.js +30 -6
- package/lib/components/appForm/style/appForm.scss +53 -0
- package/lib/components/appIcon/appIcon.vue.js +2 -1
- package/lib/components/appIconBox/style/appIconBox.scss +0 -1
- package/lib/components/appInput/appInput.vue.js +103 -0
- package/lib/components/appInput/index.js +11 -0
- package/lib/components/appMenu/appMenu.vue.js +133 -0
- package/lib/components/appMenu/index.js +11 -0
- package/lib/components/appMenu/style/appMenu.scss +145 -0
- package/lib/components/appOrgCascader/appOrgCascader.vue.js +14 -10
- package/lib/components/appSearch/appSearch.vue.js +51 -207
- package/lib/components/appSearch/cpns/appSearchItem.vue.js +242 -0
- package/lib/components/appSearch/js/index.js +20 -7
- package/lib/components/appSearch/js/useAppSearch.js +10 -5
- package/lib/components/appSearch/style/appSearch.scss +10 -0
- package/lib/components/appTable/appTable.vue.js +319 -165
- package/lib/components/appTable/cpns/columnSelect.vue.js +151 -156
- package/lib/components/appTable/cpns/columnSelectItem.vue2.js +105 -111
- package/lib/components/appTable/cpns/headerItem.vue.js +102 -0
- package/lib/components/appTable/cpns/virtualTable.vue.js +564 -0
- package/lib/components/appTable/js/index.js +47 -19
- package/lib/components/appTable/js/search.js +1 -2
- package/lib/components/appTable/js/useAppTable.js +57 -13
- package/lib/components/appTable/style/appTable.scss +16 -0
- package/lib/components/appTooltip/appTooltip.vue.js +23 -12
- package/lib/components/appTree/appTree.vue.js +308 -0
- package/lib/components/appTree/index.js +11 -0
- package/lib/components/appTree/js/index.js +533 -0
- package/lib/components/appUserAvatar/appUserAvatar.vue.js +9 -8
- package/lib/components/appUserAvatar/style/appUserAvatar.scss +0 -1
- package/lib/components/appVideoPlayer/appVideoPlayer.vue.js +651 -0
- package/lib/components/appVideoPlayer/cpns/mediaLoading.vue.js +39 -0
- package/lib/components/appVideoPlayer/index.js +11 -0
- package/lib/components/appVideoPlayer/js/index.js +429 -0
- package/lib/components/appVideoPlayer/style/appVideoPlayer.scss +275 -0
- package/lib/components/appVideoPlayer/style/mediaLoading.scss +62 -0
- package/lib/components/index.js +42 -32
- package/lib/hooks/index.js +9 -0
- package/lib/hooks/useApi.js +4 -4
- package/lib/hooks/useAudioPlayerConfig.js +15 -0
- package/lib/hooks/useGlobalConfig.js +18 -7
- package/lib/hooks/useLocale.js +3 -11
- package/lib/hooks/useMixins.js +1 -1
- package/lib/hooks/usePermissionMap.js +15 -0
- package/lib/hooks/useUserAvatarMap.js +1 -2
- package/lib/hooks/useVideoPlayerConfig.js +15 -0
- package/lib/index.js +62 -33
- package/lib/locale/en.js +52 -3
- package/lib/locale/zh_CN.js +48 -3
- package/lib/make-installer.js +2 -0
- package/lib/static/hy-svg-icons.js +459 -8
- package/lib/static/protocolcheck.js +249 -0
- package/lib/style/element/element.scss +9 -0
- package/lib/style/element/index.scss +6 -3
- package/lib/style/index.scss +11 -0
- package/lib/style/theme.scss +73 -0
- package/lib/utils/date.js +25 -0
- package/lib/utils/file.js +4 -4
- package/lib/utils/form.js +57 -0
- package/lib/utils/handler.js +22 -1
- package/lib/utils/index.js +11 -1
- package/lib/utils/is.js +23 -1
- package/lib/utils/loadScript.js +37 -0
- package/lib/version.js +1 -1
- package/package.json +12 -10
- package/es/config/index.mjs +0 -1
- package/es/static/hy-svg-icons.mjs +0 -11
- package/lib/config/index.js +0 -2
|
@@ -47,10 +47,9 @@ const _sfc_main = {
|
|
|
47
47
|
showClear.value = true;
|
|
48
48
|
}
|
|
49
49
|
function closePopover() {
|
|
50
|
-
|
|
51
|
-
(_a = sortableInstance == null ? void 0 : sortableInstance.destroy) == null ? void 0 : _a.call(sortableInstance);
|
|
50
|
+
sortableInstance?.destroy?.();
|
|
52
51
|
sortableInstance = null;
|
|
53
|
-
|
|
52
|
+
popoverRef.value?.hide?.();
|
|
54
53
|
}
|
|
55
54
|
function initColumnsInfo(columns, columnsEditable) {
|
|
56
55
|
const checkedArr = [];
|
|
@@ -95,12 +94,11 @@ const _sfc_main = {
|
|
|
95
94
|
showClear.value = true;
|
|
96
95
|
}
|
|
97
96
|
function onConfirmHandler() {
|
|
98
|
-
|
|
99
|
-
if (!checkedList.value.length && showColumnsLength.value === ((_a = tableEditableColumns.value) == null ? void 0 : _a.length)) {
|
|
97
|
+
if (!checkedList.value.length && showColumnsLength.value === tableEditableColumns.value?.length) {
|
|
100
98
|
ElMessage.warning(t("table.theColumnsDisplayedInTheTableCannotBeLeftBlank"));
|
|
101
99
|
return;
|
|
102
100
|
}
|
|
103
|
-
if (checkedList.value.length
|
|
101
|
+
if (checkedList.value.length > 15) {
|
|
104
102
|
ElMessage.warning(t("table.maxColumnLimitTip"));
|
|
105
103
|
return;
|
|
106
104
|
}
|
|
@@ -207,164 +205,161 @@ const _sfc_main = {
|
|
|
207
205
|
)
|
|
208
206
|
])
|
|
209
207
|
]),
|
|
210
|
-
default: withCtx(() =>
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
208
|
+
default: withCtx(() => [
|
|
209
|
+
createElementVNode("div", { class: "column-select-draggable text-sm text-main" }, [
|
|
210
|
+
createElementVNode("div", { class: "h-[38px] flex items-center justify-between pl-[15px] pr-2 border-b border-border" }, [
|
|
211
|
+
createElementVNode(
|
|
212
|
+
"span",
|
|
213
|
+
{ class: "text-main font-bold" },
|
|
214
|
+
toDisplayString(unref(t)("table.editColumn")),
|
|
215
|
+
1
|
|
216
|
+
/* TEXT */
|
|
217
|
+
),
|
|
218
|
+
createVNode(unref(ElIcon), {
|
|
219
|
+
class: "clickBox",
|
|
220
|
+
color: "rgb(var(--hy-danger-2))",
|
|
221
|
+
size: "18",
|
|
222
|
+
onClick: closePopover
|
|
223
|
+
}, {
|
|
224
|
+
default: withCtx(() => [
|
|
225
|
+
createVNode(unref(CircleClose))
|
|
226
|
+
]),
|
|
227
|
+
_: 1
|
|
228
|
+
/* STABLE */
|
|
229
|
+
})
|
|
230
|
+
]),
|
|
231
|
+
createElementVNode("div", { class: "h-[364px] px-4 pt-[11px] pb-1 overflow-y-auto" }, [
|
|
232
|
+
createVNode(unref(ElCheckboxGroup), {
|
|
233
|
+
modelValue: checkedList.value,
|
|
234
|
+
"onUpdate:modelValue": ($event) => checkedList.value = $event
|
|
235
|
+
}, {
|
|
236
|
+
default: withCtx(() => [
|
|
237
|
+
createElementVNode(
|
|
238
|
+
"div",
|
|
239
|
+
{
|
|
240
|
+
class: normalizeClass(["flex flex-col gap-1.5 leading-3 text-info", { "mb-1.5": tableEditableColumns.value.length > 0 }])
|
|
241
|
+
},
|
|
242
|
+
[
|
|
243
|
+
createCommentVNode(" \u4E0D\u53EF\u62D6\u62FD "),
|
|
244
|
+
(openBlock(true), createElementBlock(
|
|
245
|
+
Fragment,
|
|
246
|
+
null,
|
|
247
|
+
renderList(__props.columns, (item, index) => {
|
|
248
|
+
return openBlock(), createElementBlock(
|
|
249
|
+
Fragment,
|
|
250
|
+
{ key: index },
|
|
251
|
+
[
|
|
252
|
+
!isFilterColumn(item) && item.editable.lock ? (openBlock(), createBlock(_sfc_main$1, {
|
|
253
|
+
key: 0,
|
|
254
|
+
column: item,
|
|
255
|
+
checkMap: checkMap.value
|
|
256
|
+
}, null, 8, ["column", "checkMap"])) : createCommentVNode("v-if", true)
|
|
257
|
+
],
|
|
258
|
+
64
|
|
259
|
+
/* STABLE_FRAGMENT */
|
|
260
|
+
);
|
|
261
|
+
}),
|
|
262
|
+
128
|
|
263
|
+
/* KEYED_FRAGMENT */
|
|
264
|
+
))
|
|
265
|
+
],
|
|
266
|
+
2
|
|
267
|
+
/* CLASS */
|
|
268
|
+
),
|
|
269
|
+
createCommentVNode(" \u53EF\u62D6\u62FD "),
|
|
270
|
+
createElementVNode(
|
|
271
|
+
"div",
|
|
272
|
+
{
|
|
273
|
+
ref_key: "listRef",
|
|
274
|
+
ref: listRef,
|
|
275
|
+
class: "flex flex-col gap-1.5 leading-3"
|
|
276
|
+
},
|
|
277
|
+
[
|
|
278
|
+
(openBlock(true), createElementBlock(
|
|
279
|
+
Fragment,
|
|
280
|
+
null,
|
|
281
|
+
renderList(tableEditableColumns.value, (item) => {
|
|
282
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
283
|
+
key: item.prop,
|
|
284
|
+
column: item,
|
|
285
|
+
checkMap: checkMap.value,
|
|
286
|
+
columnsLength: tableEditableColumns.value.length,
|
|
287
|
+
onChecked: onCheckedHandler
|
|
288
|
+
}, null, 8, ["column", "checkMap", "columnsLength"]);
|
|
289
|
+
}),
|
|
290
|
+
128
|
|
291
|
+
/* KEYED_FRAGMENT */
|
|
292
|
+
))
|
|
293
|
+
],
|
|
294
|
+
512
|
|
295
|
+
/* NEED_PATCH */
|
|
296
|
+
)
|
|
297
|
+
]),
|
|
298
|
+
_: 1
|
|
299
|
+
/* STABLE */
|
|
300
|
+
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
301
|
+
]),
|
|
302
|
+
createElementVNode("div", { class: "flex items-center pt-[5px] pb-4 pl-[14px] pr-3" }, [
|
|
303
|
+
createElementVNode(
|
|
304
|
+
"span",
|
|
305
|
+
null,
|
|
306
|
+
toDisplayString(unref(t)("table.haveBeenSelected", [checkedList.value?.length || 0])),
|
|
307
|
+
1
|
|
308
|
+
/* TEXT */
|
|
309
|
+
),
|
|
310
|
+
showClear.value ? (openBlock(), createElementBlock(
|
|
311
|
+
"span",
|
|
312
|
+
{
|
|
313
|
+
key: 0,
|
|
314
|
+
class: "clickBox text-danger-2 ml-3",
|
|
315
|
+
onClick: onClearHandler
|
|
316
|
+
},
|
|
317
|
+
toDisplayString(unref(t)("table.clear")),
|
|
318
|
+
1
|
|
319
|
+
/* TEXT */
|
|
320
|
+
)) : createCommentVNode("v-if", true),
|
|
321
|
+
createElementVNode("div", { class: "flex items-center ml-auto" }, [
|
|
322
|
+
checkedList.value?.length >= 8 ? (openBlock(), createElementBlock("span", {
|
|
323
|
+
key: 0,
|
|
324
|
+
class: "flex items-center mr-2 text-auxiliary"
|
|
325
|
+
}, [
|
|
326
|
+
createVNode(unref(ElIcon), {
|
|
327
|
+
class: "mr-1.5",
|
|
328
|
+
color: "rgb(var(--hy-auxiliary))"
|
|
329
|
+
}, {
|
|
330
|
+
default: withCtx(() => [
|
|
331
|
+
createVNode(unref(Warning))
|
|
332
|
+
]),
|
|
333
|
+
_: 1
|
|
334
|
+
/* STABLE */
|
|
335
|
+
}),
|
|
336
|
+
createElementVNode(
|
|
337
|
+
"span",
|
|
338
|
+
null,
|
|
339
|
+
toDisplayString(unref(t)("table.tooManyFieldsWillAffectReadability")),
|
|
340
|
+
1
|
|
341
|
+
/* TEXT */
|
|
342
|
+
)
|
|
343
|
+
])) : createCommentVNode("v-if", true),
|
|
344
|
+
createVNode(unref(AppButton), {
|
|
345
|
+
type: "primary",
|
|
346
|
+
size: "small",
|
|
347
|
+
onClick: onConfirmHandler
|
|
239
348
|
}, {
|
|
240
349
|
default: withCtx(() => [
|
|
241
|
-
|
|
242
|
-
"
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
},
|
|
246
|
-
[
|
|
247
|
-
createCommentVNode(" \u4E0D\u53EF\u62D6\u62FD "),
|
|
248
|
-
(openBlock(true), createElementBlock(
|
|
249
|
-
Fragment,
|
|
250
|
-
null,
|
|
251
|
-
renderList(__props.columns, (item, index) => {
|
|
252
|
-
return openBlock(), createElementBlock(
|
|
253
|
-
Fragment,
|
|
254
|
-
{ key: index },
|
|
255
|
-
[
|
|
256
|
-
!isFilterColumn(item) && item.editable.lock ? (openBlock(), createBlock(_sfc_main$1, {
|
|
257
|
-
key: 0,
|
|
258
|
-
column: item,
|
|
259
|
-
checkMap: checkMap.value
|
|
260
|
-
}, null, 8, ["column", "checkMap"])) : createCommentVNode("v-if", true)
|
|
261
|
-
],
|
|
262
|
-
64
|
|
263
|
-
/* STABLE_FRAGMENT */
|
|
264
|
-
);
|
|
265
|
-
}),
|
|
266
|
-
128
|
|
267
|
-
/* KEYED_FRAGMENT */
|
|
268
|
-
))
|
|
269
|
-
],
|
|
270
|
-
2
|
|
271
|
-
/* CLASS */
|
|
272
|
-
),
|
|
273
|
-
createCommentVNode(" \u53EF\u62D6\u62FD "),
|
|
274
|
-
createElementVNode(
|
|
275
|
-
"div",
|
|
276
|
-
{
|
|
277
|
-
ref_key: "listRef",
|
|
278
|
-
ref: listRef,
|
|
279
|
-
class: "flex flex-col gap-1.5 leading-3"
|
|
280
|
-
},
|
|
281
|
-
[
|
|
282
|
-
(openBlock(true), createElementBlock(
|
|
283
|
-
Fragment,
|
|
284
|
-
null,
|
|
285
|
-
renderList(tableEditableColumns.value, (item) => {
|
|
286
|
-
return openBlock(), createBlock(_sfc_main$1, {
|
|
287
|
-
key: item.prop,
|
|
288
|
-
column: item,
|
|
289
|
-
checkMap: checkMap.value,
|
|
290
|
-
columnsLength: tableEditableColumns.value.length,
|
|
291
|
-
onChecked: onCheckedHandler
|
|
292
|
-
}, null, 8, ["column", "checkMap", "columnsLength"]);
|
|
293
|
-
}),
|
|
294
|
-
128
|
|
295
|
-
/* KEYED_FRAGMENT */
|
|
296
|
-
))
|
|
297
|
-
],
|
|
298
|
-
512
|
|
299
|
-
/* NEED_PATCH */
|
|
350
|
+
createTextVNode(
|
|
351
|
+
toDisplayString(unref(t)("hy.confirm")),
|
|
352
|
+
1
|
|
353
|
+
/* TEXT */
|
|
300
354
|
)
|
|
301
355
|
]),
|
|
302
356
|
_: 1
|
|
303
357
|
/* STABLE */
|
|
304
|
-
}
|
|
305
|
-
]),
|
|
306
|
-
createElementVNode("div", { class: "flex items-center pt-[5px] pb-4 pl-[14px] pr-3" }, [
|
|
307
|
-
createElementVNode(
|
|
308
|
-
"span",
|
|
309
|
-
null,
|
|
310
|
-
toDisplayString(unref(t)("table.haveBeenSelected", [((_a = checkedList.value) == null ? void 0 : _a.length) || 0])),
|
|
311
|
-
1
|
|
312
|
-
/* TEXT */
|
|
313
|
-
),
|
|
314
|
-
showClear.value ? (openBlock(), createElementBlock(
|
|
315
|
-
"span",
|
|
316
|
-
{
|
|
317
|
-
key: 0,
|
|
318
|
-
class: "clickBox text-danger-2 ml-3",
|
|
319
|
-
onClick: onClearHandler
|
|
320
|
-
},
|
|
321
|
-
toDisplayString(unref(t)("table.clear")),
|
|
322
|
-
1
|
|
323
|
-
/* TEXT */
|
|
324
|
-
)) : createCommentVNode("v-if", true),
|
|
325
|
-
createElementVNode("div", { class: "flex items-center ml-auto" }, [
|
|
326
|
-
((_b = checkedList.value) == null ? void 0 : _b.length) >= 8 ? (openBlock(), createElementBlock("span", {
|
|
327
|
-
key: 0,
|
|
328
|
-
class: "flex items-center mr-2 text-auxiliary"
|
|
329
|
-
}, [
|
|
330
|
-
createVNode(unref(ElIcon), {
|
|
331
|
-
class: "mr-1.5",
|
|
332
|
-
color: "rgb(var(--hy-auxiliary))"
|
|
333
|
-
}, {
|
|
334
|
-
default: withCtx(() => [
|
|
335
|
-
createVNode(unref(Warning))
|
|
336
|
-
]),
|
|
337
|
-
_: 1
|
|
338
|
-
/* STABLE */
|
|
339
|
-
}),
|
|
340
|
-
createElementVNode(
|
|
341
|
-
"span",
|
|
342
|
-
null,
|
|
343
|
-
toDisplayString(unref(t)("table.tooManyFieldsWillAffectReadability")),
|
|
344
|
-
1
|
|
345
|
-
/* TEXT */
|
|
346
|
-
)
|
|
347
|
-
])) : createCommentVNode("v-if", true),
|
|
348
|
-
createVNode(unref(AppButton), {
|
|
349
|
-
type: "primary",
|
|
350
|
-
size: "small",
|
|
351
|
-
onClick: onConfirmHandler
|
|
352
|
-
}, {
|
|
353
|
-
default: withCtx(() => [
|
|
354
|
-
createTextVNode(
|
|
355
|
-
toDisplayString(unref(t)("hy.confirm")),
|
|
356
|
-
1
|
|
357
|
-
/* TEXT */
|
|
358
|
-
)
|
|
359
|
-
]),
|
|
360
|
-
_: 1
|
|
361
|
-
/* STABLE */
|
|
362
|
-
})
|
|
363
|
-
])
|
|
358
|
+
})
|
|
364
359
|
])
|
|
365
360
|
])
|
|
366
|
-
]
|
|
367
|
-
|
|
361
|
+
])
|
|
362
|
+
]),
|
|
368
363
|
_: 1
|
|
369
364
|
/* STABLE */
|
|
370
365
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, unref, withCtx, createElementVNode, toDisplayString, createElementBlock, createCommentVNode, Fragment, renderList, normalizeClass, createVNode, withModifiers } from 'vue';
|
|
2
2
|
import { ElPopover, ElIcon, ElCheckbox } from 'element-plus';
|
|
3
3
|
import { Lock, DCaret } from '@element-plus/icons-vue';
|
|
4
|
+
import { renderHeaderHandler } from '../js/index.mjs';
|
|
4
5
|
import { AppTooltip } from '../../appTooltip/index.mjs';
|
|
5
6
|
import { useLocale } from '../../../hooks/useLocale.mjs';
|
|
6
7
|
|
|
@@ -29,7 +30,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
30
|
emits("checked", column);
|
|
30
31
|
}
|
|
31
32
|
return (_ctx, _cache) => {
|
|
32
|
-
var _a;
|
|
33
33
|
return openBlock(), createBlock(unref(ElPopover), {
|
|
34
34
|
trigger: "hover",
|
|
35
35
|
placement: "right-end",
|
|
@@ -37,126 +37,120 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
effect: "dark",
|
|
38
38
|
width: "268",
|
|
39
39
|
"show-arrow": false,
|
|
40
|
-
disabled: !__props.column.editable.desc && !
|
|
40
|
+
disabled: !__props.column.editable.desc && !__props.column.editable.examples?.length
|
|
41
41
|
}, {
|
|
42
|
-
reference: withCtx(() =>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
reference: withCtx(() => [
|
|
43
|
+
createElementVNode("div", {
|
|
44
|
+
class: normalizeClass(["h-[36px] text-sm flex items-center pl-3 pr-2.5 bg-background-2 hover:bg-background-3", [__props.column.editable?.lock ? "cursor-default" : "cursor-pointer"]]),
|
|
45
|
+
onClick: ($event) => onClickHandler(__props.column)
|
|
46
|
+
}, [
|
|
47
|
+
__props.column.editable.lock ? (openBlock(), createBlock(unref(ElIcon), {
|
|
48
|
+
key: 0,
|
|
49
|
+
size: "14",
|
|
50
|
+
color: "rgb(var(--hy-info))",
|
|
51
|
+
class: "mr-2"
|
|
52
|
+
}, {
|
|
53
|
+
default: withCtx(() => [
|
|
54
|
+
createVNode(unref(Lock))
|
|
55
|
+
]),
|
|
56
|
+
_: 1
|
|
57
|
+
/* STABLE */
|
|
58
|
+
})) : (openBlock(), createBlock(unref(ElCheckbox), {
|
|
59
|
+
key: 1,
|
|
60
|
+
value: __props.column.prop,
|
|
61
|
+
onClick: withModifiers(() => {
|
|
62
|
+
}, ["stop"])
|
|
63
|
+
}, null, 8, ["value", "onClick"])),
|
|
64
|
+
createElementVNode("div", { class: "w-0 flex-1" }, [
|
|
65
|
+
createVNode(unref(AppTooltip), {
|
|
66
|
+
"over-line": 1,
|
|
67
|
+
content: unref(renderHeaderHandler)(__props.column)
|
|
68
|
+
}, null, 8, ["content"])
|
|
69
|
+
]),
|
|
70
|
+
!__props.column.editable.lock ? (openBlock(), createElementBlock("div", {
|
|
71
|
+
key: 2,
|
|
72
|
+
class: "h-full flex items-center text-auxiliary select-none ml-1"
|
|
48
73
|
}, [
|
|
49
|
-
__props.column.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
74
|
+
__props.checkMap.has(__props.column.prop) ? (openBlock(), createElementBlock(
|
|
75
|
+
"span",
|
|
76
|
+
{ key: 0 },
|
|
77
|
+
toDisplayString(unref(t)("table.show")),
|
|
78
|
+
1
|
|
79
|
+
/* TEXT */
|
|
80
|
+
)) : (openBlock(), createElementBlock(
|
|
81
|
+
"span",
|
|
82
|
+
{
|
|
83
|
+
key: 1,
|
|
84
|
+
class: "text-info"
|
|
85
|
+
},
|
|
86
|
+
toDisplayString(unref(t)("table.notShown")),
|
|
87
|
+
1
|
|
88
|
+
/* TEXT */
|
|
89
|
+
)),
|
|
90
|
+
__props.columnsLength > 1 ? (openBlock(), createElementBlock("div", {
|
|
91
|
+
key: 2,
|
|
92
|
+
class: "w-5 h-full flex items-center justify-center handle cursor-grab ml-3",
|
|
63
93
|
onClick: withModifiers(() => {
|
|
64
94
|
}, ["stop"])
|
|
65
|
-
}, null, 8, ["value", "onClick"])),
|
|
66
|
-
createElementVNode("div", { class: "w-0 flex-1" }, [
|
|
67
|
-
createVNode(unref(AppTooltip), {
|
|
68
|
-
"over-line": 1,
|
|
69
|
-
content: __props.column.label
|
|
70
|
-
}, null, 8, ["content"])
|
|
71
|
-
]),
|
|
72
|
-
!__props.column.editable.lock ? (openBlock(), createElementBlock("div", {
|
|
73
|
-
key: 2,
|
|
74
|
-
class: "h-full flex items-center text-auxiliary select-none ml-1"
|
|
75
95
|
}, [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
1
|
|
81
|
-
/*
|
|
82
|
-
)
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}, [
|
|
98
|
-
createVNode(unref(ElIcon), null, {
|
|
99
|
-
default: withCtx(() => [
|
|
100
|
-
createVNode(unref(DCaret))
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
/* STABLE */
|
|
104
|
-
})
|
|
105
|
-
], 8, ["onClick"])) : createCommentVNode("v-if", true)
|
|
106
|
-
])) : createCommentVNode("v-if", true)
|
|
107
|
-
], 10, ["onClick"])
|
|
108
|
-
];
|
|
109
|
-
}),
|
|
110
|
-
default: withCtx(() => {
|
|
111
|
-
var _a2;
|
|
112
|
-
return [
|
|
113
|
-
createElementVNode(
|
|
96
|
+
createVNode(unref(ElIcon), null, {
|
|
97
|
+
default: withCtx(() => [
|
|
98
|
+
createVNode(unref(DCaret))
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
/* STABLE */
|
|
102
|
+
})
|
|
103
|
+
], 8, ["onClick"])) : createCommentVNode("v-if", true)
|
|
104
|
+
])) : createCommentVNode("v-if", true)
|
|
105
|
+
], 10, ["onClick"])
|
|
106
|
+
]),
|
|
107
|
+
default: withCtx(() => [
|
|
108
|
+
createElementVNode(
|
|
109
|
+
"div",
|
|
110
|
+
{ class: "h-[45px] px-[14px] flex items-center text-main text-sm font-bold border-b border-border" },
|
|
111
|
+
toDisplayString(unref(renderHeaderHandler)(__props.column)),
|
|
112
|
+
1
|
|
113
|
+
/* TEXT */
|
|
114
|
+
),
|
|
115
|
+
createElementVNode("div", { class: "flex flex-col gap-3 px-4 pt-2.5 pb-4 text-main text-xs" }, [
|
|
116
|
+
__props.column.editable.desc ? (openBlock(), createElementBlock(
|
|
114
117
|
"div",
|
|
115
|
-
{
|
|
116
|
-
toDisplayString(__props.column.
|
|
118
|
+
{ key: 0 },
|
|
119
|
+
toDisplayString(__props.column.editable.desc),
|
|
117
120
|
1
|
|
118
121
|
/* TEXT */
|
|
119
|
-
),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
+
)) : createCommentVNode("v-if", true),
|
|
123
|
+
__props.column.editable.examples?.length ? (openBlock(), createElementBlock("div", { key: 1 }, [
|
|
124
|
+
createElementVNode(
|
|
122
125
|
"div",
|
|
123
|
-
{
|
|
124
|
-
toDisplayString(
|
|
126
|
+
{ class: "text-auxiliary mb-1.5" },
|
|
127
|
+
toDisplayString(unref(t)("table.example")),
|
|
125
128
|
1
|
|
126
129
|
/* TEXT */
|
|
127
|
-
)
|
|
128
|
-
(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}),
|
|
152
|
-
128
|
|
153
|
-
/* KEYED_FRAGMENT */
|
|
154
|
-
))
|
|
155
|
-
])
|
|
156
|
-
])) : createCommentVNode("v-if", true)
|
|
157
|
-
])
|
|
158
|
-
];
|
|
159
|
-
}),
|
|
130
|
+
),
|
|
131
|
+
createElementVNode("div", { class: "flex flex-wrap gap-2" }, [
|
|
132
|
+
(openBlock(true), createElementBlock(
|
|
133
|
+
Fragment,
|
|
134
|
+
null,
|
|
135
|
+
renderList(__props.column.editable.examples, (item, index) => {
|
|
136
|
+
return openBlock(), createElementBlock(
|
|
137
|
+
"div",
|
|
138
|
+
{
|
|
139
|
+
key: index,
|
|
140
|
+
class: "leading-5 bg-background-2 px-1.5 rounded-[2px]"
|
|
141
|
+
},
|
|
142
|
+
toDisplayString(item),
|
|
143
|
+
1
|
|
144
|
+
/* TEXT */
|
|
145
|
+
);
|
|
146
|
+
}),
|
|
147
|
+
128
|
|
148
|
+
/* KEYED_FRAGMENT */
|
|
149
|
+
))
|
|
150
|
+
])
|
|
151
|
+
])) : createCommentVNode("v-if", true)
|
|
152
|
+
])
|
|
153
|
+
]),
|
|
160
154
|
_: 1
|
|
161
155
|
/* STABLE */
|
|
162
156
|
}, 8, ["disabled"]);
|