hys-ui 0.2.0 → 0.3.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/CHANGELOG.md +38 -0
- package/README.md +15 -1
- package/dist/components/HysAlert/HysAlert.vue.js +5 -54
- package/dist/components/HysAlert/HysAlert2.vue.js +159 -2
- package/dist/components/HysAutocomplete/HysAutocomplete.vue.js +2 -2
- package/dist/components/HysAutocomplete/HysAutocomplete2.vue.js +285 -273
- package/dist/components/HysAvatarGroup/HysAvatarGroup.vue.js +1 -1
- package/dist/components/HysAvatarGroup/HysAvatarGroup2.vue.js +102 -98
- package/dist/components/HysBreadcrumb/HysBreadcrumb.vue.js +1 -1
- package/dist/components/HysBreadcrumb/HysBreadcrumb2.vue.js +273 -59
- package/dist/components/HysCalendar/HysCalendar.vue.js +3 -3
- package/dist/components/HysCalendar/HysCalendar2.vue.js +237 -225
- package/dist/components/HysCascader/HysCascader.vue.js +2 -2
- package/dist/components/HysCascader/HysCascader2.vue.js +337 -324
- package/dist/components/HysColorPicker/HysColorPanel.vue.js +7 -0
- package/dist/components/HysColorPicker/HysColorPanel2.vue.js +238 -0
- package/dist/components/HysColorPicker/HysColorPicker.vue.js +2 -2
- package/dist/components/HysColorPicker/HysColorPicker2.vue.js +239 -217
- package/dist/components/HysCommandPalette/HysCommandPalette.vue.js +90 -76
- package/dist/components/HysContextMenu/HysContextMenu.vue.js +5 -89
- package/dist/components/HysContextMenu/HysContextMenu2.vue.js +247 -2
- package/dist/components/HysContextMenu/HysMenuPanel.vue.js +7 -0
- package/dist/components/HysContextMenu/HysMenuPanel2.vue.js +208 -0
- package/dist/components/HysContextMenu/HysMenuSlot.js +10 -0
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +1008 -559
- package/dist/components/HysDatePicker/HysDatePicker.vue.js +2 -0
- package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +2 -2
- package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +539 -526
- package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +5 -3
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +434 -84
- package/dist/components/HysEmpty/HysEmpty.vue.js +5 -41
- package/dist/components/HysEmpty/HysEmpty2.vue.js +181 -2
- package/dist/components/HysFormItem/HysFormItem.vue.js +2 -2
- package/dist/components/HysFormItem/HysFormItem2.vue.js +171 -164
- package/dist/components/HysGantt/HysGantt.vue.js +1 -1
- package/dist/components/HysGantt/HysGantt2.vue.js +810 -795
- package/dist/components/HysMention/HysMention.vue.js +1 -1
- package/dist/components/HysMention/HysMention2.vue.js +112 -100
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +490 -85
- package/dist/components/HysPopover/HysPopover.vue.js +5 -91
- package/dist/components/HysPopover/HysPopover2.vue.js +120 -2
- package/dist/components/HysProgress/HysProgress.vue.js +2 -2
- package/dist/components/HysProgress/HysProgress2.vue.js +319 -52
- package/dist/components/HysSelect/HysSelect.vue.js +2 -2
- package/dist/components/HysSelect/HysSelect2.vue.js +730 -594
- package/dist/components/HysSlider/HysSlider.vue.js +2 -2
- package/dist/components/HysSlider/HysSlider2.vue.js +192 -188
- package/dist/components/HysSlider/SliderTooltip.vue.js +2 -2
- package/dist/components/HysSlider/SliderTooltip2.vue.js +103 -89
- package/dist/components/HysTable/HysTable.vue.js +2 -2
- package/dist/components/HysTable/HysTable2.vue.js +389 -368
- package/dist/components/HysTagInput/HysTagInput.vue.js +5 -82
- package/dist/components/HysTagInput/HysTagInput2.vue.js +396 -2
- package/dist/components/HysTimeline/HysTimeline.vue.js +2 -2
- package/dist/components/HysTimeline/HysTimeline2.vue.js +243 -24
- package/dist/components/HysTooltip/HysTooltip.vue.js +5 -64
- package/dist/components/HysTooltip/HysTooltip2.vue.js +110 -2
- package/dist/components/HysTour/HysTour.vue.js +46 -42
- package/dist/components/HysTransfer/HysTransfer.vue.js +2 -2
- package/dist/components/HysTransfer/HysTransfer2.vue.js +237 -207
- package/dist/components/HysTransfer/HysTransferPanel.vue.js +1 -1
- package/dist/components/HysTransfer/HysTransferPanel2.vue.js +320 -271
- package/dist/components/HysTree/HysTree.vue.js +2 -2
- package/dist/components/HysTree/HysTree2.vue.js +195 -184
- package/dist/components/HysTreeSelect/HysTreeSelect.vue.js +4 -4
- package/dist/components/HysTreeSelect/HysTreeSelect2.vue.js +389 -377
- package/dist/components/HysUpload/HysUpload.vue.js +2 -2
- package/dist/components/HysUpload/HysUpload2.vue.js +459 -125
- package/dist/components/HysVirtualTable/HysVirtualTable.vue.js +5 -94
- package/dist/components/HysVirtualTable/HysVirtualTable2.vue.js +656 -2
- package/dist/composables/color.js +97 -0
- package/dist/composables/dataGrid.js +68 -0
- package/dist/composables/drawer.js +17 -0
- package/dist/composables/feedback.js +14 -0
- package/dist/composables/menu.js +96 -0
- package/dist/composables/modal.js +14 -0
- package/dist/composables/overlayManager.js +48 -18
- package/dist/composables/progress.js +94 -0
- package/dist/composables/tagInput.js +16 -0
- package/dist/composables/timeline.js +19 -0
- package/dist/composables/transfer.js +19 -17
- package/dist/composables/upload.js +55 -0
- package/dist/composables/uploadRequest.js +58 -0
- package/dist/composables/useAlert.js +124 -0
- package/dist/composables/useColorPicker.js +402 -0
- package/dist/composables/useContextMenu.js +514 -0
- package/dist/composables/useDataGridRemote.js +67 -0
- package/dist/composables/useDialog.js +86 -43
- package/dist/composables/useDrawerPush.js +33 -0
- package/dist/composables/useDrawerResize.js +221 -0
- package/dist/composables/useFloating.js +110 -76
- package/dist/composables/useHysModal.js +185 -0
- package/dist/composables/useModal.js +295 -0
- package/dist/composables/useModalInteraction.js +394 -0
- package/dist/composables/usePopupSurface.js +458 -0
- package/dist/composables/useTagInput.js +313 -0
- package/dist/composables/useTransferMotion.js +185 -0
- package/dist/composables/useUpload.js +472 -0
- package/dist/composables/useUploadModel.js +65 -0
- package/dist/composables/useUploadRequests.js +266 -0
- package/dist/composables/useVirtualTableLayout.js +277 -0
- package/dist/composables/virtualTable.js +43 -0
- package/dist/index.js +27 -24
- package/dist/internal/PopupReference.js +39 -0
- package/dist/internal/PopupSurfacePanel.vue.js +7 -0
- package/dist/internal/PopupSurfacePanel2.vue.js +92 -0
- package/dist/motion/PopupMotion.js +105 -0
- package/dist/motion/popup.js +10 -0
- package/dist/style.css +1 -1
- package/dist/types/components/HysAlert/HysAlert.vue.d.ts +32 -22
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +7 -7
- package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +6 -1
- package/dist/types/components/HysBadge/HysBadge.vue.d.ts +3 -3
- package/dist/types/components/HysBreadcrumb/HysBreadcrumb.vue.d.ts +54 -31
- package/dist/types/components/HysCalendar/HysCalendar.vue.d.ts +3 -2
- package/dist/types/components/HysCascader/HysCascader.vue.d.ts +7 -7
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +2 -2
- package/dist/types/components/HysColorPicker/HysColorPanel.vue.d.ts +58 -0
- package/dist/types/components/HysColorPicker/HysColorPicker.vue.d.ts +63 -10
- package/dist/types/components/HysCommandPalette/HysCommandPalette.vue.d.ts +2 -1
- package/dist/types/components/HysContextMenu/HysContextMenu.vue.d.ts +50 -34
- package/dist/types/components/HysContextMenu/HysMenuPanel.vue.d.ts +79 -0
- package/dist/types/components/HysContextMenu/HysMenuSlot.d.ts +8 -0
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +65 -118
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +1 -1
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +92 -35
- package/dist/types/components/HysEmpty/HysEmpty.vue.d.ts +24 -20
- package/dist/types/components/HysFileManager/HysFileManager.vue.d.ts +2 -2
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +2 -1
- package/dist/types/components/HysMention/HysMention.vue.d.ts +2 -1
- package/dist/types/components/HysModal/HysModal.vue.d.ts +111 -34
- package/dist/types/components/HysPopover/HysPopover.vue.d.ts +41 -29
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +18 -24
- package/dist/types/components/HysResizablePanel/HysResizablePanel.vue.d.ts +2 -2
- package/dist/types/components/HysSelect/HysSelect.vue.d.ts +13 -4
- package/dist/types/components/HysSlider/HysSlider.vue.d.ts +5 -4
- package/dist/types/components/HysSlider/SliderTooltip.vue.d.ts +3 -1
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +2 -2
- package/dist/types/components/HysTable/HysTable.vue.d.ts +4 -4
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +2 -2
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +47 -25
- package/dist/types/components/HysTimeline/HysTimeline.vue.d.ts +19 -32
- package/dist/types/components/HysTooltip/HysTooltip.vue.d.ts +39 -19
- package/dist/types/components/HysTour/HysTour.vue.d.ts +2 -1
- package/dist/types/components/HysTransfer/HysTransfer.vue.d.ts +2 -2
- package/dist/types/components/HysTransfer/HysTransferPanel.vue.d.ts +5 -3
- package/dist/types/components/HysTree/HysTree.vue.d.ts +2 -2
- package/dist/types/components/HysUpload/HysUpload.vue.d.ts +55 -67
- package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +71 -40
- package/dist/types/composables/autocomplete.d.ts +3 -0
- package/dist/types/composables/avatar.d.ts +3 -0
- package/dist/types/composables/cascader.d.ts +3 -0
- package/dist/types/composables/color.d.ts +97 -0
- package/dist/types/composables/dataGrid.d.ts +100 -0
- package/dist/types/composables/datePicker.d.ts +3 -0
- package/dist/types/composables/drawer.d.ts +102 -0
- package/dist/types/composables/feedback.d.ts +98 -0
- package/dist/types/composables/formContext.d.ts +2 -0
- package/dist/types/composables/menu.d.ts +183 -0
- package/dist/types/composables/modal.d.ts +183 -0
- package/dist/types/composables/overlayManager.d.ts +7 -3
- package/dist/types/composables/popupSurface.d.ts +83 -0
- package/dist/types/composables/progress.d.ts +92 -0
- package/dist/types/composables/selectOptions.d.ts +2 -0
- package/dist/types/composables/table.d.ts +3 -0
- package/dist/types/composables/tagInput.d.ts +96 -0
- package/dist/types/composables/timeline.d.ts +82 -0
- package/dist/types/composables/transfer.d.ts +7 -0
- package/dist/types/composables/tree.d.ts +3 -0
- package/dist/types/composables/treeSelect.d.ts +3 -0
- package/dist/types/composables/upload.d.ts +202 -0
- package/dist/types/composables/uploadRequest.d.ts +3 -0
- package/dist/types/composables/useAlert.d.ts +21 -0
- package/dist/types/composables/useCascader.d.ts +1 -1
- package/dist/types/composables/useColorPicker.d.ts +101 -0
- package/dist/types/composables/useContextMenu.d.ts +81 -0
- package/dist/types/composables/useDataGridRemote.d.ts +15 -0
- package/dist/types/composables/useDialog.d.ts +16 -3
- package/dist/types/composables/useDrawerPush.d.ts +6 -0
- package/dist/types/composables/useDrawerResize.d.ts +27 -0
- package/dist/types/composables/useFloating.d.ts +21 -2
- package/dist/types/composables/useHysModal.d.ts +44 -0
- package/dist/types/composables/useModal.d.ts +62 -0
- package/dist/types/composables/useModalInteraction.d.ts +27 -0
- package/dist/types/composables/usePopupSurface.d.ts +3341 -0
- package/dist/types/composables/useTagInput.d.ts +66 -0
- package/dist/types/composables/useTransferMotion.d.ts +36 -0
- package/dist/types/composables/useUpload.d.ts +94 -0
- package/dist/types/composables/useUploadModel.d.ts +14 -0
- package/dist/types/composables/useUploadRequests.d.ts +38 -0
- package/dist/types/composables/useVirtualTableLayout.d.ts +51 -0
- package/dist/types/composables/virtualTable.d.ts +126 -0
- package/dist/types/index.d.ts +17 -2
- package/dist/types/internal/PopupReference.d.ts +18 -0
- package/dist/types/internal/PopupSurfacePanel.vue.d.ts +37 -0
- package/dist/types/motion/PopupMotion.d.ts +59 -0
- package/dist/types/motion/popup.d.ts +12 -0
- package/package.json +1 -1
|
@@ -5,6 +5,8 @@ const T = /* @__PURE__ */ v({
|
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "HysDateRangePicker",
|
|
7
7
|
props: /* @__PURE__ */ P({
|
|
8
|
+
popupTransition: {},
|
|
9
|
+
popupTransitionDuration: {},
|
|
8
10
|
modelValue: {},
|
|
9
11
|
defaultValue: {},
|
|
10
12
|
clearValue: {},
|
|
@@ -78,8 +80,8 @@ const T = /* @__PURE__ */ v({
|
|
|
78
80
|
cellClassName: { type: Function }
|
|
79
81
|
}, C),
|
|
80
82
|
emits: ["update:modelValue", "change", "value-change", "update:open", "visible-change", "update:panelValue", "update:mode", "panelChange", "calendarChange", "clear", "ok", "invalid", "focus", "blur"],
|
|
81
|
-
setup(
|
|
82
|
-
const m =
|
|
83
|
+
setup(i, { expose: u, emit: d }) {
|
|
84
|
+
const m = i, f = d;
|
|
83
85
|
h();
|
|
84
86
|
const o = c(), y = Object.fromEntries(
|
|
85
87
|
[
|
|
@@ -102,7 +104,7 @@ const T = /* @__PURE__ */ v({
|
|
|
102
104
|
(...a) => f(e, ...a)
|
|
103
105
|
])
|
|
104
106
|
);
|
|
105
|
-
return
|
|
107
|
+
return u({
|
|
106
108
|
element: p(() => {
|
|
107
109
|
var e;
|
|
108
110
|
return (e = o.value) == null ? void 0 : e.element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./HysDrawer2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-81102b84"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,102 +1,452 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { defineComponent as ue, useSlots as ce, useAttrs as ye, ref as L, useId as fe, computed as s, reactive as he, toRefs as me, provide as ve, openBlock as d, createBlock as x, Teleport as be, createVNode as z, Transition as ge, normalizeProps as y, guardReactiveProps as f, withCtx as T, unref as t, withDirectives as G, createElementBlock as u, mergeProps as F, normalizeStyle as k, createCommentVNode as c, createElementVNode as g, normalizeClass as P, renderSlot as m, resolveDynamicComponent as J, createTextVNode as V, toDisplayString as w, vShow as Q } from "vue";
|
|
2
|
+
import { Minimize2 as we, Maximize2 as ze, X as Y, LoaderCircle as ke } from "lucide-vue-next";
|
|
3
|
+
import Z from "../HysButton/HysButton.vue.js";
|
|
4
|
+
import { useHysRootAttrs as Ce } from "../../config.js";
|
|
5
|
+
import { useModal as Be } from "../../composables/useModal.js";
|
|
6
|
+
import { useDrawerResize as Se } from "../../composables/useDrawerResize.js";
|
|
7
|
+
import { useDrawerPush as xe } from "../../composables/useDrawerPush.js";
|
|
8
|
+
import { overlayOwnerKey as Te } from "../../composables/overlayManager.js";
|
|
9
|
+
import { modalLength as C } from "../../composables/modal.js";
|
|
10
|
+
import { drawerVertical as Fe, drawerSize as D } from "../../composables/drawer.js";
|
|
11
|
+
const Pe = ["inert", "aria-hidden"], De = ["role", "aria-label", "aria-labelledby", "aria-describedby", "aria-modal", "aria-busy"], Oe = { class: "hys-ui-drawer-title-wrap" }, He = { class: "hys-ui-drawer-head-actions" }, Ae = ["aria-label", "aria-pressed", "disabled"], Le = ["aria-label", "disabled"], Ve = ["aria-label", "disabled"], Me = ["tabindex"], Ee = {
|
|
6
12
|
key: 0,
|
|
7
|
-
class: "hys-ui-
|
|
8
|
-
|
|
13
|
+
class: "hys-ui-drawer-loading",
|
|
14
|
+
role: "status"
|
|
15
|
+
}, $e = ["inert"], Re = {
|
|
16
|
+
key: 2,
|
|
17
|
+
class: "hys-ui-drawer-error",
|
|
18
|
+
role: "alert"
|
|
19
|
+
}, Ie = ["aria-label", "aria-orientation", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-disabled"], Qe = /* @__PURE__ */ ue({
|
|
20
|
+
inheritAttrs: !1,
|
|
9
21
|
__name: "HysDrawer",
|
|
10
22
|
props: {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
23
|
+
beforeClose: { type: [Function, Boolean, Promise] },
|
|
24
|
+
beforeConfirm: {},
|
|
25
|
+
placement: { default: "right" },
|
|
26
|
+
size: { default: "md" },
|
|
27
|
+
drawerClass: {},
|
|
28
|
+
drawerStyle: {},
|
|
29
|
+
overlayStyle: {},
|
|
30
|
+
bodyTabindex: {},
|
|
31
|
+
contained: { type: Boolean },
|
|
32
|
+
withHeader: { type: Boolean, default: !0 },
|
|
33
|
+
autofocus: { type: Boolean, default: !0 },
|
|
34
|
+
transition: { type: [String, Boolean], default: "slide" },
|
|
35
|
+
push: { type: [Boolean, Object] },
|
|
36
|
+
resizable: { type: [Boolean, Object] },
|
|
37
|
+
resizeValue: {},
|
|
38
|
+
defaultResizeValue: {},
|
|
39
|
+
resetSizeOnClose: { type: Boolean, default: !0 },
|
|
40
|
+
resizeText: {},
|
|
41
|
+
open: { type: Boolean, default: void 0 },
|
|
42
|
+
modelValue: { type: Boolean, default: void 0 },
|
|
43
|
+
defaultOpen: { type: Boolean },
|
|
44
|
+
title: { default: "" },
|
|
45
|
+
description: {},
|
|
46
|
+
opacity: {},
|
|
47
|
+
maskOpacity: {},
|
|
48
|
+
width: {},
|
|
14
49
|
height: {},
|
|
50
|
+
fullscreen: { type: Boolean, default: void 0 },
|
|
51
|
+
defaultFullscreen: { type: Boolean },
|
|
52
|
+
showFullscreen: { type: Boolean },
|
|
15
53
|
closeOnMask: { type: Boolean, default: !0 },
|
|
16
54
|
closeOnEscape: { type: Boolean, default: !0 },
|
|
17
55
|
showClose: { type: Boolean, default: !0 },
|
|
18
56
|
destroyOnClose: { type: Boolean, default: !0 },
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
57
|
+
forceRender: { type: Boolean },
|
|
58
|
+
modal: { type: Boolean, default: !0 },
|
|
59
|
+
modalPenetrable: { type: Boolean },
|
|
60
|
+
appendTo: { type: [String, Object, Boolean], default: "body" },
|
|
61
|
+
lockScroll: { type: Boolean, default: void 0 },
|
|
62
|
+
trapFocus: { type: Boolean, default: void 0 },
|
|
63
|
+
restoreFocus: { type: Boolean, default: !0 },
|
|
64
|
+
initialFocus: { type: [String, Boolean, Object] },
|
|
65
|
+
openDelay: {},
|
|
66
|
+
closeDelay: {},
|
|
67
|
+
transitionDuration: { default: 240 },
|
|
68
|
+
zIndex: {},
|
|
69
|
+
headerClass: {},
|
|
70
|
+
headerSize: { default: "md" },
|
|
71
|
+
footerSize: { default: "md" },
|
|
72
|
+
headerHeight: {},
|
|
73
|
+
footerHeight: {},
|
|
74
|
+
titleFontSize: {},
|
|
75
|
+
bodyClass: {},
|
|
76
|
+
footerClass: {},
|
|
77
|
+
overlayClass: {},
|
|
78
|
+
headerStyle: {},
|
|
79
|
+
bodyStyle: {},
|
|
80
|
+
footerStyle: {},
|
|
81
|
+
maskStyle: {},
|
|
82
|
+
ariaLabel: {},
|
|
83
|
+
ariaLabelledby: {},
|
|
84
|
+
ariaDescribedby: {},
|
|
85
|
+
role: {},
|
|
86
|
+
headerAriaLevel: { default: 2 },
|
|
87
|
+
closeText: { default: "关闭" },
|
|
88
|
+
fullscreenText: { default: "全屏" },
|
|
89
|
+
restoreText: { default: "还原" },
|
|
90
|
+
footer: { type: Boolean, default: void 0 },
|
|
91
|
+
footerAlign: {},
|
|
92
|
+
showCancel: { type: Boolean, default: !0 },
|
|
93
|
+
okText: { default: "确定" },
|
|
94
|
+
cancelText: { default: "取消" },
|
|
95
|
+
okVariant: {},
|
|
96
|
+
okButtonProps: {},
|
|
97
|
+
cancelButtonProps: {},
|
|
98
|
+
confirmLoading: { type: Boolean },
|
|
99
|
+
confirmDisabled: { type: Boolean },
|
|
100
|
+
cancelDisabled: { type: Boolean },
|
|
101
|
+
closeWhileConfirming: { type: Boolean },
|
|
102
|
+
loading: { type: Boolean },
|
|
103
|
+
loadingText: { default: "正在加载…" },
|
|
104
|
+
showError: { type: Boolean, default: !0 },
|
|
105
|
+
errorText: {},
|
|
106
|
+
confirmOnCtrlEnter: { type: Boolean },
|
|
107
|
+
closeOnConfirm: { type: Boolean, default: !0 }
|
|
22
108
|
},
|
|
23
|
-
emits: ["close", "closeError"],
|
|
24
|
-
setup(
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
109
|
+
emits: ["update:open", "update:modelValue", "update:fullscreen", "update:resizeValue", "open", "opened", "close", "closed", "afterClose", "visibleChange", "afterOpenChange", "fullscreenChange", "ok", "cancel", "closeError", "confirmError", "openAutoFocus", "closeAutoFocus", "resizeStart", "resize", "resizeEnd"],
|
|
110
|
+
setup(e, { expose: _, emit: ee }) {
|
|
111
|
+
const l = e, ae = ce(), B = ee, te = ye(), M = Ce(), E = L(), S = L(), $ = L(), R = fe(), O = R + "-title", H = R + "-description", b = s(() => Fe(l.placement)), le = he({
|
|
112
|
+
...me(l),
|
|
113
|
+
size: "md",
|
|
114
|
+
draggable: !1,
|
|
115
|
+
resizable: !1,
|
|
116
|
+
resetSizeOnClose: !1,
|
|
117
|
+
width: s(() => b.value ? "100%" : D(l)),
|
|
118
|
+
height: s(() => b.value ? D(l) : void 0),
|
|
119
|
+
initialFocus: s(
|
|
120
|
+
() => l.autofocus === !1 ? !1 : l.initialFocus ?? "auto"
|
|
121
|
+
),
|
|
122
|
+
lockScroll: s(
|
|
123
|
+
() => l.lockScroll ?? (!l.contained && !(l.modal === !1 && l.modalPenetrable))
|
|
124
|
+
),
|
|
125
|
+
trapFocus: s(
|
|
126
|
+
() => l.trapFocus ?? (!l.contained && !(l.modal === !1 && l.modalPenetrable))
|
|
127
|
+
)
|
|
128
|
+
}), a = Be(
|
|
129
|
+
le,
|
|
130
|
+
S,
|
|
131
|
+
(n, ...i) => {
|
|
132
|
+
n === "opened" && B("afterOpenChange", !0), n === "closed" && B("afterOpenChange", !1), B(n, ...i);
|
|
133
|
+
},
|
|
134
|
+
{ interaction: !1 }
|
|
135
|
+
), o = Se(
|
|
136
|
+
l,
|
|
137
|
+
E,
|
|
138
|
+
S,
|
|
139
|
+
a.shown,
|
|
140
|
+
a.fullscreen,
|
|
141
|
+
a.busy,
|
|
142
|
+
(n, ...i) => B(n, ...i)
|
|
143
|
+
), A = xe(l, a.shown, a.fullscreen);
|
|
144
|
+
ve(
|
|
145
|
+
Te,
|
|
146
|
+
s(
|
|
147
|
+
() => a.state.active.value && a.shown.value && !l.loading
|
|
148
|
+
)
|
|
149
|
+
);
|
|
150
|
+
const h = s(() => ({
|
|
151
|
+
close: a.requestClose,
|
|
152
|
+
cancel: a.cancel,
|
|
153
|
+
confirm: a.confirm,
|
|
154
|
+
closing: a.closing.value,
|
|
155
|
+
confirming: a.confirming.value,
|
|
156
|
+
busy: a.busy.value,
|
|
157
|
+
error: a.error.value,
|
|
158
|
+
titleId: O,
|
|
159
|
+
descriptionId: H,
|
|
160
|
+
fullscreen: a.fullscreen.value,
|
|
161
|
+
toggleFullscreen: a.toggleFullscreen,
|
|
162
|
+
resizing: o.resizing.value,
|
|
163
|
+
size: o.size.value,
|
|
164
|
+
resetSize: o.reset,
|
|
165
|
+
pushed: A.pushed.value
|
|
166
|
+
})), v = a.fullscreen, oe = s(
|
|
167
|
+
() => l.footer !== !1 && (l.footer === !0 || !!ae.footer)
|
|
168
|
+
), ie = s(
|
|
169
|
+
() => Number.isFinite(l.headerAriaLevel) ? Math.max(1, Math.min(6, Math.trunc(l.headerAriaLevel))) : 2
|
|
170
|
+
), I = s(
|
|
171
|
+
() => Number.isFinite(l.transitionDuration) ? Math.max(0, Math.min(5e3, l.transitionDuration)) : 240
|
|
172
|
+
), re = s(() => ({
|
|
173
|
+
...l.drawerStyle,
|
|
174
|
+
...A.style.value,
|
|
175
|
+
width: v.value || b.value ? "100%" : C(o.resolvedSize.value ?? D(l)),
|
|
176
|
+
height: v.value ? l.contained ? "100%" : "100dvh" : b.value ? C(o.resolvedSize.value ?? D(l)) : "100%",
|
|
177
|
+
maxWidth: "100%",
|
|
178
|
+
maxHeight: "100%",
|
|
179
|
+
"--hys-ui-drawer-enter-x": l.placement === "left" ? "-100%" : l.placement === "right" ? "100%" : "0px",
|
|
180
|
+
"--hys-ui-drawer-enter-y": l.placement === "top" ? "-100%" : l.placement === "bottom" ? "100%" : "0px",
|
|
181
|
+
...l.opacity !== void 0 ? {
|
|
182
|
+
background: "color-mix(in srgb,var(--hys-ui-surface,var(--hys-ui-theme-surface)) " + a.alpha(l.opacity) * 100 + "%,transparent)"
|
|
183
|
+
} : {}
|
|
184
|
+
})), ne = s(() => ({
|
|
185
|
+
...l.overlayStyle,
|
|
186
|
+
zIndex: a.state.zIndex.value,
|
|
187
|
+
"--hys-ui-drawer-duration": (a.motion.value ? I.value : 0) + "ms"
|
|
188
|
+
})), se = s(() => ({
|
|
189
|
+
...l.maskStyle,
|
|
190
|
+
...l.maskOpacity !== void 0 ? {
|
|
191
|
+
background: "color-mix(in srgb,#0b183d " + a.alpha(l.maskOpacity) * 100 + "%,transparent)"
|
|
192
|
+
} : {}
|
|
193
|
+
})), de = s(() => ({
|
|
194
|
+
name: "hys-ui-drawer-" + (l.transition || "slide"),
|
|
195
|
+
appear: !0,
|
|
196
|
+
css: a.motion.value,
|
|
197
|
+
duration: a.motion.value ? I.value : 0,
|
|
198
|
+
onAfterEnter: () => {
|
|
199
|
+
a.afterEnter(), o.measure();
|
|
200
|
+
},
|
|
201
|
+
onAfterLeave: async () => {
|
|
202
|
+
await a.afterLeave(), a.shown.value || o.resetAfterClose();
|
|
46
203
|
}
|
|
47
|
-
}
|
|
48
|
-
return
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
204
|
+
}));
|
|
205
|
+
return _({
|
|
206
|
+
element: S,
|
|
207
|
+
body: $,
|
|
208
|
+
open: a.shown,
|
|
209
|
+
closing: a.closing,
|
|
210
|
+
confirming: a.confirming,
|
|
211
|
+
fullscreen: v,
|
|
212
|
+
resizing: o.resizing,
|
|
213
|
+
size: o.size,
|
|
214
|
+
pushed: A.pushed,
|
|
215
|
+
focus: a.state.focus,
|
|
216
|
+
show: a.show,
|
|
217
|
+
close: a.requestClose,
|
|
218
|
+
hide: () => a.requestClose("api"),
|
|
219
|
+
cancel: a.cancel,
|
|
220
|
+
confirm: a.confirm,
|
|
221
|
+
setFullscreen: a.setFullscreen,
|
|
222
|
+
toggleFullscreen: a.toggleFullscreen,
|
|
223
|
+
resizeTo: o.resizeTo,
|
|
224
|
+
resetSize: o.reset
|
|
225
|
+
}), (n, i) => (d(), x(be, {
|
|
226
|
+
to: e.appendTo || "body",
|
|
227
|
+
disabled: e.appendTo === !1
|
|
228
|
+
}, [
|
|
229
|
+
z(ge, y(f(de.value)), {
|
|
230
|
+
default: T(() => {
|
|
231
|
+
var N, j;
|
|
232
|
+
return [
|
|
233
|
+
t(a).state.active.value && (e.forceRender || t(a).rendered.value) ? G((d(), u("div", F({
|
|
234
|
+
key: 0,
|
|
235
|
+
ref_key: "root",
|
|
236
|
+
ref: E
|
|
237
|
+
}, t(M), {
|
|
238
|
+
class: ["hys-ui-overlay hys-ui-drawer-overlay hys-ui-drawer-root", [
|
|
239
|
+
e.overlayClass,
|
|
240
|
+
"hys-ui-drawer-" + e.placement,
|
|
241
|
+
{
|
|
242
|
+
"hys-ui-drawer-contained": e.contained,
|
|
243
|
+
"hys-ui-drawer-penetrable": e.modal === !1 && e.modalPenetrable
|
|
244
|
+
}
|
|
245
|
+
]],
|
|
246
|
+
style: ne.value,
|
|
247
|
+
inert: !t(a).shown.value || void 0,
|
|
248
|
+
"aria-hidden": !t(a).shown.value || void 0,
|
|
249
|
+
onPointerdown: i[7] || (i[7] = //@ts-ignore
|
|
250
|
+
(...r) => t(a).maskDown && t(a).maskDown(...r)),
|
|
251
|
+
onPointerup: i[8] || (i[8] = //@ts-ignore
|
|
252
|
+
(...r) => t(a).maskUp && t(a).maskUp(...r))
|
|
253
|
+
}), [
|
|
254
|
+
e.modal !== !1 ? (d(), u("div", {
|
|
255
|
+
key: 0,
|
|
256
|
+
class: "hys-ui-drawer-mask",
|
|
257
|
+
style: k(se.value),
|
|
258
|
+
"aria-hidden": "true"
|
|
259
|
+
}, null, 4)) : c("", !0),
|
|
260
|
+
g("aside", F({
|
|
261
|
+
ref_key: "dialog",
|
|
262
|
+
ref: S
|
|
263
|
+
}, { ...t(M), ...t(te) }, {
|
|
264
|
+
tabindex: "-1",
|
|
265
|
+
role: e.role ?? "dialog",
|
|
266
|
+
class: ["hys-ui-drawer hys-ui-drawer-panel", [
|
|
267
|
+
e.drawerClass,
|
|
268
|
+
{
|
|
269
|
+
"hys-ui-drawer-resizing": t(o).resizing.value,
|
|
270
|
+
"hys-ui-drawer-headerless": !e.withHeader,
|
|
271
|
+
"hys-ui-drawer-fullscreen": t(v)
|
|
272
|
+
}
|
|
273
|
+
]],
|
|
274
|
+
style: re.value,
|
|
275
|
+
"aria-label": e.ariaLabel || e.title || "抽屉",
|
|
276
|
+
"aria-labelledby": e.ariaLabelledby || (e.withHeader && (e.title || n.$slots.header || n.$slots.title) ? O : void 0),
|
|
277
|
+
"aria-describedby": e.ariaDescribedby || (e.description ? H : void 0),
|
|
278
|
+
"aria-modal": e.contained || e.modal === !1 && e.modalPenetrable ? void 0 : !0,
|
|
279
|
+
"aria-busy": t(a).busy.value || void 0,
|
|
280
|
+
onKeydown: i[6] || (i[6] = //@ts-ignore
|
|
281
|
+
(...r) => t(a).key && t(a).key(...r))
|
|
282
|
+
}), [
|
|
283
|
+
e.withHeader ? (d(), u("header", {
|
|
71
284
|
key: 0,
|
|
285
|
+
class: P(["hys-ui-dialog-head hys-ui-drawer-head", [e.headerClass, "hys-ui-drawer-section-" + e.headerSize]]),
|
|
286
|
+
style: k({
|
|
287
|
+
...e.headerStyle,
|
|
288
|
+
minHeight: t(C)(e.headerHeight) ?? ((N = e.headerStyle) == null ? void 0 : N.minHeight)
|
|
289
|
+
})
|
|
290
|
+
}, [
|
|
291
|
+
g("div", Oe, [
|
|
292
|
+
m(n.$slots, "header", y(f(h.value)), () => [
|
|
293
|
+
(d(), x(J("h" + ie.value), {
|
|
294
|
+
id: O,
|
|
295
|
+
class: "hys-ui-drawer-title",
|
|
296
|
+
style: k({ fontSize: t(C)(e.titleFontSize) })
|
|
297
|
+
}, {
|
|
298
|
+
default: T(() => [
|
|
299
|
+
m(n.$slots, "title", y(f(h.value)), () => [
|
|
300
|
+
V(w(e.title), 1)
|
|
301
|
+
], !0)
|
|
302
|
+
]),
|
|
303
|
+
_: 3
|
|
304
|
+
}, 8, ["style"]))
|
|
305
|
+
], !0)
|
|
306
|
+
]),
|
|
307
|
+
g("div", He, [
|
|
308
|
+
m(n.$slots, "extra", y(f(h.value)), void 0, !0),
|
|
309
|
+
e.showFullscreen ? (d(), u("button", {
|
|
310
|
+
key: 0,
|
|
311
|
+
type: "button",
|
|
312
|
+
class: "hys-ui-icon-action",
|
|
313
|
+
"aria-label": t(v) ? e.restoreText : e.fullscreenText,
|
|
314
|
+
"aria-pressed": t(v),
|
|
315
|
+
disabled: t(o).resizing.value,
|
|
316
|
+
onClick: i[0] || (i[0] = //@ts-ignore
|
|
317
|
+
(...r) => t(a).toggleFullscreen && t(a).toggleFullscreen(...r))
|
|
318
|
+
}, [
|
|
319
|
+
m(n.$slots, "fullscreen-icon", y(f(h.value)), () => [
|
|
320
|
+
(d(), x(J(t(v) ? t(we) : t(ze)), { size: 16 }))
|
|
321
|
+
], !0)
|
|
322
|
+
], 8, Ae)) : c("", !0),
|
|
323
|
+
e.showClose ? (d(), u("button", {
|
|
324
|
+
key: 1,
|
|
325
|
+
type: "button",
|
|
326
|
+
class: "hys-ui-icon-action",
|
|
327
|
+
"aria-label": e.closeText,
|
|
328
|
+
disabled: t(a).closing.value || t(a).confirming.value && !e.closeWhileConfirming,
|
|
329
|
+
onClick: i[1] || (i[1] = (r) => t(a).requestClose("button", r))
|
|
330
|
+
}, [
|
|
331
|
+
m(n.$slots, "close-icon", y(f(h.value)), () => [
|
|
332
|
+
z(t(Y), { size: 18 })
|
|
333
|
+
], !0)
|
|
334
|
+
], 8, Le)) : c("", !0)
|
|
335
|
+
])
|
|
336
|
+
], 6)) : e.showClose ? (d(), u("button", {
|
|
337
|
+
key: 1,
|
|
72
338
|
type: "button",
|
|
73
|
-
class: "hys-ui-icon-action",
|
|
74
|
-
"aria-label":
|
|
75
|
-
disabled: a.value,
|
|
76
|
-
onClick:
|
|
339
|
+
class: "hys-ui-icon-action hys-ui-drawer-floating-close",
|
|
340
|
+
"aria-label": e.closeText,
|
|
341
|
+
disabled: t(a).closing.value || t(a).confirming.value && !e.closeWhileConfirming,
|
|
342
|
+
onClick: i[2] || (i[2] = (r) => t(a).requestClose("button", r))
|
|
343
|
+
}, [
|
|
344
|
+
m(n.$slots, "close-icon", y(f(h.value)), () => [
|
|
345
|
+
z(t(Y), { size: 18 })
|
|
346
|
+
], !0)
|
|
347
|
+
], 8, Ve)) : c("", !0),
|
|
348
|
+
g("div", {
|
|
349
|
+
ref_key: "body",
|
|
350
|
+
ref: $,
|
|
351
|
+
class: P(["hys-ui-dialog-body hys-ui-drawer-body", e.bodyClass]),
|
|
352
|
+
style: k(e.bodyStyle),
|
|
353
|
+
tabindex: e.bodyTabindex ?? 0
|
|
354
|
+
}, [
|
|
355
|
+
e.loading ? (d(), u("div", Ee, [
|
|
356
|
+
m(n.$slots, "loading", y(f(h.value)), () => [
|
|
357
|
+
z(t(ke), {
|
|
358
|
+
size: 22,
|
|
359
|
+
class: "hys-ui-drawer-spinner"
|
|
360
|
+
}),
|
|
361
|
+
g("span", null, w(e.loadingText), 1)
|
|
362
|
+
], !0)
|
|
363
|
+
])) : c("", !0),
|
|
364
|
+
G(g("div", {
|
|
365
|
+
class: "hys-ui-drawer-content",
|
|
366
|
+
inert: e.loading || void 0
|
|
367
|
+
}, [
|
|
368
|
+
e.description ? (d(), u("p", {
|
|
369
|
+
key: 0,
|
|
370
|
+
id: H,
|
|
371
|
+
class: "hys-ui-drawer-description"
|
|
372
|
+
}, w(e.description), 1)) : c("", !0),
|
|
373
|
+
m(n.$slots, "default", y(f(h.value)), void 0, !0)
|
|
374
|
+
], 8, $e), [
|
|
375
|
+
[Q, !e.loading]
|
|
376
|
+
])
|
|
377
|
+
], 14, Me),
|
|
378
|
+
e.showError && t(a).error.value ? (d(), u("p", Re, w(t(a).error.value), 1)) : c("", !0),
|
|
379
|
+
oe.value ? (d(), u("footer", {
|
|
380
|
+
key: 3,
|
|
381
|
+
class: P(["hys-ui-dialog-foot hys-ui-drawer-foot", [e.footerClass, "hys-ui-drawer-section-" + e.footerSize]]),
|
|
382
|
+
style: k({
|
|
383
|
+
...e.footerStyle,
|
|
384
|
+
minHeight: t(C)(e.footerHeight) ?? ((j = e.footerStyle) == null ? void 0 : j.minHeight),
|
|
385
|
+
justifyContent: e.footerAlign === "start" ? "flex-start" : e.footerAlign === "center" ? "center" : "flex-end"
|
|
386
|
+
})
|
|
77
387
|
}, [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
388
|
+
m(n.$slots, "footer", y(f(h.value)), () => {
|
|
389
|
+
var r, q, W, K, U, X, p;
|
|
390
|
+
return [
|
|
391
|
+
e.showCancel ? (d(), x(Z, F({ key: 0 }, e.cancelButtonProps, {
|
|
392
|
+
"data-hys-modal-cancel": "",
|
|
393
|
+
variant: ((r = e.cancelButtonProps) == null ? void 0 : r.variant) ?? "secondary",
|
|
394
|
+
size: ((q = e.cancelButtonProps) == null ? void 0 : q.size) ?? e.footerSize,
|
|
395
|
+
disabled: e.cancelDisabled || ((W = e.cancelButtonProps) == null ? void 0 : W.disabled) || t(a).closing.value || t(a).confirming.value && !e.closeWhileConfirming,
|
|
396
|
+
onClick: t(a).cancel
|
|
397
|
+
}), {
|
|
398
|
+
default: T(() => [
|
|
399
|
+
V(w(e.cancelText), 1)
|
|
400
|
+
]),
|
|
401
|
+
_: 1
|
|
402
|
+
}, 16, ["variant", "size", "disabled", "onClick"])) : c("", !0),
|
|
403
|
+
z(Z, F(e.okButtonProps, {
|
|
404
|
+
"data-hys-modal-confirm": "",
|
|
405
|
+
variant: ((K = e.okButtonProps) == null ? void 0 : K.variant) ?? e.okVariant ?? "primary",
|
|
406
|
+
size: ((U = e.okButtonProps) == null ? void 0 : U.size) ?? e.footerSize,
|
|
407
|
+
loading: t(a).confirming.value || ((X = e.okButtonProps) == null ? void 0 : X.loading),
|
|
408
|
+
disabled: e.confirmDisabled || ((p = e.okButtonProps) == null ? void 0 : p.disabled) || t(a).closing.value || e.loading,
|
|
409
|
+
onClick: t(a).confirm
|
|
410
|
+
}), {
|
|
411
|
+
default: T(() => [
|
|
412
|
+
V(w(e.okText), 1)
|
|
413
|
+
]),
|
|
414
|
+
_: 1
|
|
415
|
+
}, 16, ["variant", "size", "loading", "disabled", "onClick"])
|
|
416
|
+
];
|
|
417
|
+
}, !0)
|
|
418
|
+
], 6)) : c("", !0),
|
|
419
|
+
e.resizable && !t(v) ? (d(), u("div", {
|
|
420
|
+
key: 4,
|
|
421
|
+
ref: (r) => t(o).handle.value = r,
|
|
422
|
+
role: "separator",
|
|
423
|
+
tabindex: "0",
|
|
424
|
+
class: P(["hys-ui-drawer-resize", "hys-ui-drawer-resize-" + e.placement]),
|
|
425
|
+
"aria-label": e.resizeText || (b.value ? "调整抽屉高度" : "调整抽屉宽度"),
|
|
426
|
+
"aria-orientation": b.value ? "horizontal" : "vertical",
|
|
427
|
+
"aria-valuenow": Math.round(t(o).size.value),
|
|
428
|
+
"aria-valuemin": Math.round(t(o).limits().min),
|
|
429
|
+
"aria-valuemax": Math.round(t(o).limits().max),
|
|
430
|
+
"aria-disabled": t(a).busy.value || void 0,
|
|
431
|
+
title: "拖动调整尺寸;方向键微调,双击还原",
|
|
432
|
+
onPointerdown: i[3] || (i[3] = //@ts-ignore
|
|
433
|
+
(...r) => t(o).start && t(o).start(...r)),
|
|
434
|
+
onKeydown: i[4] || (i[4] = //@ts-ignore
|
|
435
|
+
(...r) => t(o).keyboard && t(o).keyboard(...r)),
|
|
436
|
+
onDblclick: i[5] || (i[5] = //@ts-ignore
|
|
437
|
+
(...r) => t(o).reset && t(o).reset(...r))
|
|
438
|
+
}, null, 42, Ie)) : c("", !0)
|
|
439
|
+
], 16, De)
|
|
440
|
+
], 16, Pe)), [
|
|
441
|
+
[Q, t(a).shown.value]
|
|
442
|
+
]) : c("", !0)
|
|
443
|
+
];
|
|
444
|
+
}),
|
|
95
445
|
_: 3
|
|
96
|
-
})
|
|
97
|
-
]));
|
|
446
|
+
}, 16)
|
|
447
|
+
], 8, ["to", "disabled"]));
|
|
98
448
|
}
|
|
99
449
|
});
|
|
100
450
|
export {
|
|
101
|
-
|
|
451
|
+
Qe as default
|
|
102
452
|
};
|
|
@@ -1,43 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
class: "hys-ui-ex-empty-icon",
|
|
6
|
-
"aria-hidden": "true"
|
|
7
|
-
}, p = ["src"], B = /* @__PURE__ */ m({
|
|
8
|
-
__name: "HysEmpty",
|
|
9
|
-
props: {
|
|
10
|
-
title: { default: "暂无数据" },
|
|
11
|
-
description: { default: "当前没有符合条件的内容" },
|
|
12
|
-
image: {},
|
|
13
|
-
imageSize: { default: 48 }
|
|
14
|
-
},
|
|
15
|
-
setup(e) {
|
|
16
|
-
const r = y();
|
|
17
|
-
return (t, z) => (i(), l("div", c(n(r), { class: "hys-ui-ex-empty" }), [
|
|
18
|
-
o("div", h, [
|
|
19
|
-
s(t.$slots, "image", {}, () => [
|
|
20
|
-
e.image ? (i(), l("img", {
|
|
21
|
-
key: 0,
|
|
22
|
-
src: e.image,
|
|
23
|
-
alt: "",
|
|
24
|
-
style: d({ width: e.imageSize + "px", height: e.imageSize + "px", objectFit: "contain" })
|
|
25
|
-
}, null, 12, p)) : (i(), u(n(f), {
|
|
26
|
-
key: 1,
|
|
27
|
-
size: e.imageSize
|
|
28
|
-
}, null, 8, ["size"]))
|
|
29
|
-
])
|
|
30
|
-
]),
|
|
31
|
-
o("strong", null, a(e.title), 1),
|
|
32
|
-
o("p", null, [
|
|
33
|
-
s(t.$slots, "description", {}, () => [
|
|
34
|
-
g(a(e.description), 1)
|
|
35
|
-
])
|
|
36
|
-
]),
|
|
37
|
-
s(t.$slots, "default")
|
|
38
|
-
], 16));
|
|
39
|
-
}
|
|
40
|
-
});
|
|
1
|
+
import o from "./HysEmpty2.vue.js";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ea8781c3"]]);
|
|
41
5
|
export {
|
|
42
|
-
|
|
6
|
+
a as default
|
|
43
7
|
};
|