@aplus-frontend/ui 6.17.0 → 6.17.2
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/es/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-drawer/components/ApDrawerClose.vue2.mjs +2 -2
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/index.mjs +36 -36
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.mjs +2 -2
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +2 -1
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/index.vue.mjs +2 -2
- package/es/src/ap-grid/index.vue.d.ts +4 -2
- package/es/src/ap-grid/index.vue.mjs +19 -19
- package/es/src/ap-grid/utils/table.mjs +59 -41
- package/es/src/ap-list/index.vue.d.ts +4 -2
- package/es/src/ap-list/index.vue.mjs +1 -1
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +4 -2
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.d.ts +5 -5
- package/es/src/ap-table/constants.mjs +45 -45
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +7 -2
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +6 -6
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +9 -9
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +9 -9
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +10 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +105 -104
- package/es/src/business/ap-draggable-grid/constans.d.ts +4 -0
- package/es/src/business/ap-draggable-grid/constans.mjs +4 -0
- package/es/src/business/ap-draggable-grid/index.d.ts +16 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +6 -4
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +7 -7
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-keep-alive/keep-alive.mjs +3 -3
- package/es/src/business/ap-ladder/components/RenderValue.mjs +2 -2
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +5 -17
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-view/ap-view.vue2.mjs +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +3 -2
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/es/src/editable-table/form-item.vue.d.ts +4 -2
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +4 -2
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/splitter/Panel.vue2.mjs +4 -4
- package/es/src/splitter/SplitBar.vue2.mjs +7 -7
- package/es/src/splitter/Splitter.vue2.mjs +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +5 -5
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +4 -2
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
- package/lib/src/ap-table/constants.d.ts +5 -5
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +7 -2
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +10 -1
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-draggable-grid/constans.d.ts +4 -0
- package/lib/src/business/ap-draggable-grid/constans.js +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +16 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/index.d.ts +5 -17
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +3 -2
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/lib/src/editable-table/form-item.vue.d.ts +4 -2
- package/lib/src/editable-table/index.vue.d.ts +4 -2
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- package/package.json +3 -3
- package/theme/antd-global-overwrite/admin/alert.css +37 -0
- package/theme/antd-global-overwrite/admin/alert.less +51 -0
- package/theme/antd-global-overwrite/admin/button.css +27 -0
- package/theme/antd-global-overwrite/admin/button.less +31 -0
- package/theme/antd-global-overwrite/admin/field.css +42 -0
- package/theme/antd-global-overwrite/admin/field.less +43 -0
- package/theme/antd-global-overwrite/admin/form.css +57 -0
- package/theme/antd-global-overwrite/admin/form.less +97 -0
- package/theme/antd-global-overwrite/admin/message.css +10 -0
- package/theme/antd-global-overwrite/admin/message.less +13 -0
- package/theme/antd-global-overwrite/admin/modal.css +94 -0
- package/theme/antd-global-overwrite/admin/modal.less +128 -0
- package/theme/antd-global-overwrite/admin/pagination.css +122 -0
- package/theme/antd-global-overwrite/admin/pagination.less +91 -0
- package/theme/antd-global-overwrite/admin/steps.css +127 -0
- package/theme/antd-global-overwrite/admin/steps.less +197 -0
- package/theme/antd-global-overwrite/admin/table.css +78 -0
- package/theme/antd-global-overwrite/admin/table.less +62 -0
- package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
- package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
- package/theme/antd-global-overwrite/aplus/alert.css +40 -0
- package/theme/antd-global-overwrite/aplus/alert.less +55 -0
- package/theme/antd-global-overwrite/aplus/button.css +27 -0
- package/theme/antd-global-overwrite/aplus/button.less +31 -0
- package/theme/antd-global-overwrite/aplus/field.css +42 -0
- package/theme/antd-global-overwrite/aplus/field.less +43 -0
- package/theme/antd-global-overwrite/aplus/form.css +87 -0
- package/theme/antd-global-overwrite/aplus/form.less +133 -0
- package/theme/antd-global-overwrite/aplus/message.css +10 -0
- package/theme/antd-global-overwrite/aplus/message.less +13 -0
- package/theme/antd-global-overwrite/aplus/modal.css +87 -0
- package/theme/antd-global-overwrite/aplus/modal.less +120 -0
- package/theme/antd-global-overwrite/aplus/pagination.css +147 -0
- package/theme/antd-global-overwrite/aplus/pagination.less +108 -0
- package/theme/antd-global-overwrite/aplus/steps.css +125 -0
- package/theme/antd-global-overwrite/aplus/steps.less +198 -0
- package/theme/antd-global-overwrite/aplus/table.css +78 -0
- package/theme/antd-global-overwrite/aplus/table.less +61 -0
- package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
- package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
- package/theme/ap-draggable-grid/ap-draggable-grid.css +4 -2
- package/theme/ap-draggable-grid/ap-draggable-grid.less +6 -2
- package/theme/ap-table/ap-table-pagination.css +12 -0
- package/theme/ap-table/ap-table-pagination.less +14 -0
- package/theme/index.css +4 -2
- package/theme/ui-mode.css +60 -0
- package/theme/ui-mode.less +109 -0
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ApDraggableGridProps as
|
|
3
|
-
import { Spin as
|
|
1
|
+
import { defineComponent as H, ref as $, computed as w, useTemplateRef as M, reactive as U, watch as V, onMounted as J, onUnmounted as X, openBlock as D, createBlock as Y, unref as d, withCtx as j, createElementVNode as K, normalizeClass as L, normalizeStyle as W, createElementBlock as k, Fragment as Q, renderList as Z, renderSlot as ee, createTextVNode as re, toDisplayString as T } from "vue";
|
|
2
|
+
import { ApDraggableGridProps as te } from "./constans.mjs";
|
|
3
|
+
import { Spin as ae } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
const
|
|
5
|
+
import { useNamespace as ne } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const oe = ["data-span", "draggable", "onDragstart"], ue = /* @__PURE__ */ H({
|
|
7
7
|
__name: "ApDraggableGrid",
|
|
8
|
-
props:
|
|
8
|
+
props: te(),
|
|
9
9
|
emits: ["onGridListChange"],
|
|
10
|
-
setup(
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
() =>
|
|
10
|
+
setup(N, { expose: R, emit: B }) {
|
|
11
|
+
const o = N, { b, e: p, m: E } = ne("ap-draggable-grid"), f = $(!1), m = w(() => p("item")), S = w(() => p("dragging")), I = w(() => o.customWrapper ? `.${o.customWrapper} .${m.value}` : `.${m.value}`), O = w(() => o.customWrapper ? `.${o.customWrapper} .${m.value}:not(.${S.value})` : `.${m.value}:not(.${S.value})`), F = B, u = M("gridContainer"), i = $(null), s = U([]);
|
|
12
|
+
V(
|
|
13
|
+
() => o.gridList,
|
|
14
14
|
(e) => {
|
|
15
|
-
Array.isArray(e) &&
|
|
15
|
+
Array.isArray(e) && v(e);
|
|
16
16
|
},
|
|
17
17
|
{ deep: !0, immediate: !0 }
|
|
18
18
|
);
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
function v(e) {
|
|
20
|
+
s.splice(0, s.length), e.forEach((r) => {
|
|
21
|
+
s.push({
|
|
22
22
|
...r,
|
|
23
23
|
isDragging: !1,
|
|
24
24
|
isOverlay: !1
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const q = (e) => ({
|
|
29
29
|
gridColumn: `${e.col} / span ${e.span}`,
|
|
30
30
|
gridRow: e.row,
|
|
31
|
-
minHeight: `${
|
|
32
|
-
boxShadow:
|
|
33
|
-
}),
|
|
31
|
+
minHeight: `${o.gridItemHeight}px`,
|
|
32
|
+
boxShadow: o.gridItemShadow ? o.gridItemShadow : "none"
|
|
33
|
+
}), x = (e) => {
|
|
34
34
|
if (e.isOverlay) {
|
|
35
35
|
const r = {};
|
|
36
|
-
return
|
|
36
|
+
return o.dragOverlayColor && (r.backgroundColor = o.dragOverlayColor), o.dragOverlayBorderColor && (r.border = `2px dashed ${o.dragOverlayBorderColor}`, r.boxSizing = "border-box"), r;
|
|
37
37
|
}
|
|
38
38
|
return {};
|
|
39
|
-
},
|
|
40
|
-
i.value = r,
|
|
41
|
-
},
|
|
42
|
-
i.value !== null && (
|
|
39
|
+
}, _ = (e, r) => {
|
|
40
|
+
i.value = r, s[r].isDragging = !0, e.dataTransfer && (e.dataTransfer.setData("text/plain", String(r)), e.dataTransfer.effectAllowed = "move");
|
|
41
|
+
}, P = () => {
|
|
42
|
+
i.value !== null && (s[i.value].isDragging = !1, h(), i.value = null), s.forEach((e) => e.isOverlay = !1);
|
|
43
43
|
};
|
|
44
|
-
function
|
|
45
|
-
const e =
|
|
44
|
+
function h() {
|
|
45
|
+
const e = s.map(
|
|
46
46
|
(r) => ({
|
|
47
47
|
span: r.span,
|
|
48
48
|
row: r.row,
|
|
@@ -50,139 +50,140 @@ const te = ["data-span", "draggable", "onDragstart"], ce = /* @__PURE__ */ W({
|
|
|
50
50
|
height: r.height ? r.height : ""
|
|
51
51
|
})
|
|
52
52
|
);
|
|
53
|
-
|
|
53
|
+
F("onGridListChange", e);
|
|
54
54
|
}
|
|
55
|
-
async function
|
|
56
|
-
if (
|
|
55
|
+
async function C() {
|
|
56
|
+
if (v([]), typeof o.request == "function")
|
|
57
57
|
try {
|
|
58
|
-
|
|
59
|
-
const e = await
|
|
60
|
-
Array.isArray(e) ?
|
|
58
|
+
f.value = !0;
|
|
59
|
+
const e = await o.request();
|
|
60
|
+
Array.isArray(e) ? v(e) : console.warn(
|
|
61
61
|
"ApDraggableGrid: 请求函数必须返回一个符合 ApDraggableGridItemBase 数组的格式"
|
|
62
62
|
);
|
|
63
63
|
} catch (e) {
|
|
64
64
|
console.error("ApDraggableGrid: 请求错误:", e);
|
|
65
65
|
} finally {
|
|
66
|
-
|
|
66
|
+
f.value = !1;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
if (await
|
|
71
|
-
const e = (
|
|
72
|
-
if (
|
|
73
|
-
const
|
|
74
|
-
if (!
|
|
75
|
-
const n =
|
|
76
|
-
|
|
69
|
+
J(async () => {
|
|
70
|
+
if (await C(), y(), o.disableDrag || !u.value) return;
|
|
71
|
+
const e = (t) => {
|
|
72
|
+
if (t.preventDefault(), i.value === null || !t.target) return;
|
|
73
|
+
const a = document.elementFromPoint(t.clientX, t.clientY);
|
|
74
|
+
if (!a) return;
|
|
75
|
+
const n = a.closest(
|
|
76
|
+
O.value
|
|
77
77
|
);
|
|
78
78
|
if (!n) return;
|
|
79
|
-
const
|
|
80
|
-
document.querySelectorAll(
|
|
79
|
+
const l = Array.from(
|
|
80
|
+
document.querySelectorAll(I.value)
|
|
81
81
|
).indexOf(n);
|
|
82
|
-
|
|
83
|
-
}, r = (
|
|
84
|
-
if (
|
|
85
|
-
const
|
|
86
|
-
if (!
|
|
87
|
-
const n =
|
|
88
|
-
|
|
82
|
+
l >= 0 && l !== i.value && (s.forEach((c) => c.isOverlay = !1), s[l].isOverlay = !0, A(i.value, l) ? t.dataTransfer.dropEffect = "move" : t.dataTransfer.dropEffect = "none");
|
|
83
|
+
}, r = (t) => {
|
|
84
|
+
if (t.preventDefault(), i.value === null) return;
|
|
85
|
+
const a = document.elementFromPoint(t.clientX, t.clientY);
|
|
86
|
+
if (!a) return;
|
|
87
|
+
const n = a.closest(
|
|
88
|
+
O.value
|
|
89
89
|
);
|
|
90
90
|
if (!n) return;
|
|
91
|
-
const
|
|
92
|
-
document.querySelectorAll(
|
|
91
|
+
const l = Array.from(
|
|
92
|
+
document.querySelectorAll(I.value)
|
|
93
93
|
).indexOf(n);
|
|
94
|
-
|
|
94
|
+
l >= 0 && A(i.value, l) && (z(i.value, l), y(), h()), s.forEach((c) => {
|
|
95
95
|
c.isDragging = !1, c.isOverlay = !1;
|
|
96
96
|
}), i.value = null;
|
|
97
97
|
};
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
u.value.addEventListener("dragover", e), u.value.addEventListener("drop", r), X(() => {
|
|
99
|
+
u.value && (u.value.removeEventListener("dragover", e), u.value.removeEventListener("drop", r));
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
|
-
function
|
|
103
|
-
const
|
|
104
|
-
JSON.stringify(
|
|
105
|
-
),
|
|
106
|
-
|
|
102
|
+
function A(e, r) {
|
|
103
|
+
const t = JSON.parse(
|
|
104
|
+
JSON.stringify(s)
|
|
105
|
+
), a = t[e], n = t[r], g = a.height === n.height, l = G(
|
|
106
|
+
a.span,
|
|
107
107
|
n.row,
|
|
108
108
|
e,
|
|
109
109
|
r
|
|
110
|
-
), c =
|
|
110
|
+
), c = G(
|
|
111
111
|
n.span,
|
|
112
|
-
|
|
112
|
+
a.row,
|
|
113
113
|
r,
|
|
114
114
|
e
|
|
115
115
|
);
|
|
116
|
-
return
|
|
116
|
+
return l && c && g;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function G(e, r, t, a) {
|
|
119
119
|
let n = 0, g = 1;
|
|
120
|
-
return
|
|
121
|
-
|
|
120
|
+
return s.forEach((l, c) => {
|
|
121
|
+
l.row === r && c !== a && c !== t && (n += l.span, l.col <= g && (g = l.col + l.span));
|
|
122
122
|
}), n + e <= 24;
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
const
|
|
126
|
-
|
|
124
|
+
function z(e, r) {
|
|
125
|
+
const t = s[e], a = s[r], n = t.row, g = t.col;
|
|
126
|
+
t.row = a.row, t.col = a.col, a.row = n, a.col = g;
|
|
127
127
|
}
|
|
128
128
|
function y() {
|
|
129
129
|
const e = {};
|
|
130
|
-
|
|
130
|
+
s.forEach((r) => {
|
|
131
131
|
e[r.row] || (e[r.row] = []), e[r.row].push(r);
|
|
132
132
|
}), Object.keys(e).forEach((r) => {
|
|
133
|
-
const
|
|
134
|
-
e[
|
|
135
|
-
let
|
|
136
|
-
e[
|
|
137
|
-
n.col =
|
|
133
|
+
const t = parseInt(r);
|
|
134
|
+
e[t].sort((n, g) => n.col - g.col);
|
|
135
|
+
let a = 1;
|
|
136
|
+
e[t].forEach((n) => {
|
|
137
|
+
n.col = a, a += n.span;
|
|
138
138
|
});
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
|
-
return
|
|
141
|
+
return R({
|
|
142
142
|
setGridItems: (e) => {
|
|
143
|
-
|
|
143
|
+
v(e), y(), h();
|
|
144
144
|
},
|
|
145
145
|
refreshGrid: () => {
|
|
146
146
|
(async () => {
|
|
147
|
-
await
|
|
147
|
+
await C(), y(), h();
|
|
148
148
|
})();
|
|
149
149
|
}
|
|
150
|
-
}), (e, r) => (
|
|
151
|
-
default:
|
|
152
|
-
|
|
150
|
+
}), (e, r) => (D(), Y(d(ae), { spinning: f.value }, {
|
|
151
|
+
default: j(() => [
|
|
152
|
+
K("div", {
|
|
153
153
|
ref_key: "gridContainer",
|
|
154
|
-
ref:
|
|
155
|
-
class:
|
|
156
|
-
style:
|
|
154
|
+
ref: u,
|
|
155
|
+
class: L([f.value ? d(b)("loading") : d(b)(), o.customWrapper]),
|
|
156
|
+
style: W({
|
|
157
157
|
width: typeof e.gridWidth == "number" ? `${e.gridWidth}px` : e.gridWidth,
|
|
158
158
|
gap: `${e.gapWidth}px`
|
|
159
159
|
})
|
|
160
160
|
}, [
|
|
161
|
-
(
|
|
162
|
-
key:
|
|
163
|
-
class:
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
161
|
+
(D(!0), k(Q, null, Z(s, (t, a) => (D(), k("div", {
|
|
162
|
+
key: a,
|
|
163
|
+
class: L([
|
|
164
|
+
d(p)("item"),
|
|
165
|
+
o.disableDrag ? "" : d(E)("dragging"),
|
|
166
|
+
t.isDragging ? d(p)("dragging") : "",
|
|
167
|
+
t.isOverlay ? d(p)("overlay") : "",
|
|
168
|
+
o.disableDrag ? "" : d(E)("canDrag")
|
|
168
169
|
]),
|
|
169
|
-
"data-span":
|
|
170
|
-
style:
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
{ height:
|
|
170
|
+
"data-span": t.span,
|
|
171
|
+
style: W([
|
|
172
|
+
q(t),
|
|
173
|
+
x(t),
|
|
174
|
+
{ height: t.height ? t.height + "px" : "" }
|
|
174
175
|
]),
|
|
175
|
-
draggable: !
|
|
176
|
-
onDragstart: (n) =>
|
|
177
|
-
onDragend:
|
|
176
|
+
draggable: !o.disableDrag,
|
|
177
|
+
onDragstart: (n) => _(n, a),
|
|
178
|
+
onDragend: P
|
|
178
179
|
}, [
|
|
179
|
-
|
|
180
|
-
item:
|
|
181
|
-
index:
|
|
180
|
+
ee(e.$slots, "item", {
|
|
181
|
+
item: t,
|
|
182
|
+
index: a
|
|
182
183
|
}, () => [
|
|
183
|
-
|
|
184
|
+
re(T(Math.round(t.span / 24 * 100)) + "% (" + T(t.span) + "/24) ", 1)
|
|
184
185
|
])
|
|
185
|
-
], 46,
|
|
186
|
+
], 46, oe))), 128))
|
|
186
187
|
], 6)
|
|
187
188
|
]),
|
|
188
189
|
_: 3
|
|
@@ -190,5 +191,5 @@ const te = ["data-span", "draggable", "onDragstart"], ce = /* @__PURE__ */ W({
|
|
|
190
191
|
}
|
|
191
192
|
});
|
|
192
193
|
export {
|
|
193
|
-
|
|
194
|
+
ue as default
|
|
194
195
|
};
|
|
@@ -39,6 +39,10 @@ declare const ApDraggableGrid: {
|
|
|
39
39
|
type: BooleanConstructor;
|
|
40
40
|
default: boolean;
|
|
41
41
|
};
|
|
42
|
+
customWrapper: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
42
46
|
}>> & Readonly<{
|
|
43
47
|
onOnGridListChange?: ((args_0: ApDraggableGridItemBase[]) => any) | undefined;
|
|
44
48
|
}>, {
|
|
@@ -56,6 +60,7 @@ declare const ApDraggableGrid: {
|
|
|
56
60
|
dragOverlayColor: string;
|
|
57
61
|
dragOverlayBorderColor: string;
|
|
58
62
|
disableDrag: boolean;
|
|
63
|
+
customWrapper: string;
|
|
59
64
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
60
65
|
gridContainer: HTMLDivElement;
|
|
61
66
|
}, any, ComponentProvideOptions, {
|
|
@@ -102,6 +107,10 @@ declare const ApDraggableGrid: {
|
|
|
102
107
|
type: BooleanConstructor;
|
|
103
108
|
default: boolean;
|
|
104
109
|
};
|
|
110
|
+
customWrapper: {
|
|
111
|
+
type: StringConstructor;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
105
114
|
}>> & Readonly<{
|
|
106
115
|
onOnGridListChange?: ((args_0: ApDraggableGridItemBase[]) => any) | undefined;
|
|
107
116
|
}>, {
|
|
@@ -117,6 +126,7 @@ declare const ApDraggableGrid: {
|
|
|
117
126
|
dragOverlayColor: string;
|
|
118
127
|
dragOverlayBorderColor: string;
|
|
119
128
|
disableDrag: boolean;
|
|
129
|
+
customWrapper: string;
|
|
120
130
|
}>;
|
|
121
131
|
__isFragment?: never;
|
|
122
132
|
__isTeleport?: never;
|
|
@@ -158,6 +168,10 @@ declare const ApDraggableGrid: {
|
|
|
158
168
|
type: BooleanConstructor;
|
|
159
169
|
default: boolean;
|
|
160
170
|
};
|
|
171
|
+
customWrapper: {
|
|
172
|
+
type: StringConstructor;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
161
175
|
}>> & Readonly<{
|
|
162
176
|
onOnGridListChange?: ((args_0: ApDraggableGridItemBase[]) => any) | undefined;
|
|
163
177
|
}>, {
|
|
@@ -175,6 +189,7 @@ declare const ApDraggableGrid: {
|
|
|
175
189
|
dragOverlayColor: string;
|
|
176
190
|
dragOverlayBorderColor: string;
|
|
177
191
|
disableDrag: boolean;
|
|
192
|
+
customWrapper: string;
|
|
178
193
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
179
194
|
$slots: {
|
|
180
195
|
item?(_: {
|
|
@@ -184,7 +199,7 @@ declare const ApDraggableGrid: {
|
|
|
184
199
|
span: number;
|
|
185
200
|
row: number;
|
|
186
201
|
col: number;
|
|
187
|
-
height?: number | string | undefined;
|
|
202
|
+
height?: (number | string) | undefined;
|
|
188
203
|
};
|
|
189
204
|
index: number;
|
|
190
205
|
}): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApExpandAlertProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
|
|
@@ -23,7 +23,9 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
23
23
|
}): any;
|
|
24
24
|
};
|
|
25
25
|
emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
26
|
-
}>) => VNode
|
|
26
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}> & {
|
|
27
29
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
30
|
};
|
|
29
31
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, computed as c, ref as g, watch as x, nextTick as f, onMounted as W,
|
|
1
|
+
import { defineComponent as K, computed as c, ref as g, watch as x, nextTick as f, onMounted as W, openBlock as a, createElementBlock as i, normalizeClass as n, unref as t, createVNode as b, withCtx as m, createBlock as S, createElementVNode as $, toDisplayString as u, createCommentVNode as H, normalizeStyle as y, renderSlot as I, resolveDynamicComponent as L, Fragment as C, renderList as j, createTextVNode as J } from "vue";
|
|
2
2
|
import { DownOutlined as P } from "@ant-design/icons-vue";
|
|
3
3
|
import { Alert as Q, Tooltip as U } from "@aplus-frontend/antdv";
|
|
4
4
|
import { ApActionItem as X } from "../../ap-action/index.mjs";
|
|
@@ -102,14 +102,14 @@ const te = ["onClick"], ce = /* @__PURE__ */ K({
|
|
|
102
102
|
class: n([t(o)("antAlert"), e.type == "card" ? "card-alert" : ""])
|
|
103
103
|
}, {
|
|
104
104
|
action: m(() => [
|
|
105
|
-
h.value ? (a(),
|
|
105
|
+
h.value ? (a(), S(t(X), {
|
|
106
106
|
key: 0,
|
|
107
107
|
size: "small",
|
|
108
108
|
style: { "font-size": "12px", "padding-left": "16px" },
|
|
109
109
|
onClick: r[0] || (r[0] = (s) => q())
|
|
110
110
|
}, {
|
|
111
111
|
default: m(() => [
|
|
112
|
-
|
|
112
|
+
$("span", {
|
|
113
113
|
class: n(t(o)("expandText"))
|
|
114
114
|
}, u(F.value), 3),
|
|
115
115
|
b(t(P), {
|
|
@@ -117,21 +117,21 @@ const te = ["onClick"], ce = /* @__PURE__ */ K({
|
|
|
117
117
|
}, null, 8, ["class"])
|
|
118
118
|
]),
|
|
119
119
|
_: 1
|
|
120
|
-
})) :
|
|
120
|
+
})) : H("", !0)
|
|
121
121
|
]),
|
|
122
122
|
message: m(() => [
|
|
123
|
-
|
|
123
|
+
$("div", {
|
|
124
124
|
ref_key: "ellipsisBoxRef",
|
|
125
125
|
ref: d,
|
|
126
126
|
style: y({ ...R.value, ...e.contentStyle }),
|
|
127
127
|
class: n(t(o)("alertContent"))
|
|
128
128
|
}, [
|
|
129
|
-
|
|
129
|
+
I(e.$slots, "default", {}, () => [
|
|
130
130
|
t(E)(e.prefix) ? (a(), i("span", {
|
|
131
131
|
key: 0,
|
|
132
132
|
class: n(t(o)("prefix")),
|
|
133
133
|
style: y(e.prefixStyle)
|
|
134
|
-
}, u(e.prefix), 7)) : (a(),
|
|
134
|
+
}, u(e.prefix), 7)) : (a(), S(L(e.prefix), {
|
|
135
135
|
key: 1,
|
|
136
136
|
style: y(e.prefixStyle)
|
|
137
137
|
}, null, 8, ["style"])),
|
|
@@ -143,11 +143,11 @@ const te = ["onClick"], ce = /* @__PURE__ */ K({
|
|
|
143
143
|
title: e.tipTitle ? e.tipTitle : null
|
|
144
144
|
}, {
|
|
145
145
|
default: m(() => [
|
|
146
|
-
|
|
146
|
+
I(e.$slots, "item", {
|
|
147
147
|
record: s,
|
|
148
148
|
index: w
|
|
149
149
|
}, () => [
|
|
150
|
-
|
|
150
|
+
$("span", {
|
|
151
151
|
class: n(t(o)("showItem")),
|
|
152
152
|
onClick: (ae) => e.$emit("choose", s)
|
|
153
153
|
}, u(e.mapLabel ? s[e.mapLabel] : s), 11, te)
|
|
@@ -162,8 +162,8 @@ const te = ["onClick"], ce = /* @__PURE__ */ K({
|
|
|
162
162
|
}, [
|
|
163
163
|
t(E)(e.separator) ? (a(), i(C, { key: 0 }, [
|
|
164
164
|
J(u(e.separator), 1)
|
|
165
|
-
], 64)) : (a(),
|
|
166
|
-
], 6)) :
|
|
165
|
+
], 64)) : (a(), S(L(e.separator), { key: 1 }))
|
|
166
|
+
], 6)) : H("", !0)
|
|
167
167
|
], 64))), 128))
|
|
168
168
|
])
|
|
169
169
|
], 6)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, Plugin } from 'vue';
|
|
1
|
+
import { Component, VNode, CSSProperties, PublicProps, ShallowUnwrapRef, RendererNode, RendererElement, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
4
4
|
attrs: any;
|
|
@@ -20,7 +20,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
20
20
|
props: {
|
|
21
21
|
readonly onExpand?: ((args_0: "collapse" | "expand") => any) | undefined;
|
|
22
22
|
readonly onChoose?: ((args_0: T) => any) | undefined;
|
|
23
|
-
type?: "warning" | "error" | "success" | "info" | "card" | undefined
|
|
23
|
+
type?: "warning" | "error" | "success" | "info" | "card" | undefined;
|
|
24
24
|
data?: string | T[] | undefined;
|
|
25
25
|
prefix?: string | undefined;
|
|
26
26
|
tipTitle?: string | undefined;
|
|
@@ -29,7 +29,7 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
29
29
|
separatorStyle?: CSSProperties | undefined;
|
|
30
30
|
contentStyle?: Omit< CSSProperties, "wordBreak" | "overflow" | "display" | "webkitLineClamp" | "webkitBoxOrient"> | undefined;
|
|
31
31
|
prefixStyle?: CSSProperties | undefined;
|
|
32
|
-
rows?: string | number | undefined;
|
|
32
|
+
rows?: (string | number) | undefined;
|
|
33
33
|
defaultExpand?: boolean | undefined;
|
|
34
34
|
showIcon?: boolean | undefined;
|
|
35
35
|
} & PublicProps;
|
|
@@ -51,7 +51,9 @@ declare const ApExpandAlert: (<T extends Record<string, any>>(__VLS_props: NonNu
|
|
|
51
51
|
}): any;
|
|
52
52
|
};
|
|
53
53
|
emit: ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
54
|
-
}>) => VNode
|
|
54
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}> & {
|
|
55
57
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
56
58
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
57
59
|
$props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z, ref as M, computed as v, watch as U,
|
|
1
|
+
import { defineComponent as z, ref as M, computed as v, watch as U, openBlock as c, createElementBlock as H, Fragment as J, createBlock as m, unref as o, mergeProps as S, withCtx as u, createTextVNode as h, toDisplayString as E, createCommentVNode as A, normalizeClass as Q, createVNode as F } from "vue";
|
|
2
2
|
import { DownOutlined as W } from "@ant-design/icons-vue";
|
|
3
3
|
import { message as X, Dropdown as Y, Menu as Z, MenuItem as T } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -114,7 +114,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
114
114
|
return (l, a) => {
|
|
115
115
|
var t, i;
|
|
116
116
|
return c(), H(J, null, [
|
|
117
|
-
L.value && e.type === "button" ? (c(), m(o(K),
|
|
117
|
+
L.value && e.type === "button" ? (c(), m(o(K), S({ key: 0 }, {
|
|
118
118
|
...l.$attrs
|
|
119
119
|
}, {
|
|
120
120
|
disabled: f.value,
|
|
@@ -126,7 +126,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
126
126
|
h(E((e == null ? void 0 : e.text) ?? o(n)("ap.apExportGroup.export")), 1)
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
129
|
-
}, 16, ["disabled", "loading"])) :
|
|
129
|
+
}, 16, ["disabled", "loading"])) : A("", !0),
|
|
130
130
|
L.value && e.type === "dropdown" ? (c(), m(o(Y), {
|
|
131
131
|
key: 1,
|
|
132
132
|
open: w.value,
|
|
@@ -163,7 +163,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
163
163
|
})
|
|
164
164
|
]),
|
|
165
165
|
default: u(() => [
|
|
166
|
-
F(o(K),
|
|
166
|
+
F(o(K), S({
|
|
167
167
|
...l.$attrs
|
|
168
168
|
}, { loading: d.value }), {
|
|
169
169
|
default: u(() => [
|
|
@@ -174,8 +174,8 @@ const Ee = /* @__PURE__ */ z({
|
|
|
174
174
|
}, 16, ["loading"])
|
|
175
175
|
]),
|
|
176
176
|
_: 1
|
|
177
|
-
}, 8, ["open", "class", "disabled"])) :
|
|
178
|
-
L.value && e.type === "group" ? (c(), m(o(le),
|
|
177
|
+
}, 8, ["open", "class", "disabled"])) : A("", !0),
|
|
178
|
+
L.value && e.type === "group" ? (c(), m(o(le), S({ key: 2 }, {
|
|
179
179
|
...l.$attrs
|
|
180
180
|
}, {
|
|
181
181
|
disabled: f.value,
|
|
@@ -186,7 +186,7 @@ const Ee = /* @__PURE__ */ z({
|
|
|
186
186
|
type: ((i = e == null ? void 0 : e.buttonProps) == null ? void 0 : i.type) ?? "default"
|
|
187
187
|
},
|
|
188
188
|
"menu-list": V.value
|
|
189
|
-
}), null, 16, ["disabled", "loading", "button-props", "menu-list"])) :
|
|
189
|
+
}), null, 16, ["disabled", "loading", "button-props", "menu-list"])) : A("", !0)
|
|
190
190
|
], 64);
|
|
191
191
|
};
|
|
192
192
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as S, computed as c, ref as U, watchEffect as j,
|
|
1
|
+
import { defineComponent as S, computed as c, ref as U, watchEffect as j, openBlock as i, createBlock as p, unref as n, mergeProps as g, withCtx as B, renderSlot as E, normalizeProps as I, guardReactiveProps as L, createElementVNode as b, normalizeClass as D, createElementBlock as M, Fragment as P, renderList as R, resolveDynamicComponent as T, createVNode as x } from "vue";
|
|
2
2
|
import { Image as z } from "@aplus-frontend/antdv";
|
|
3
3
|
import { DownloadOutlined as V } from "@ant-design/icons-vue";
|
|
4
4
|
import { injectLocaleToOss as W, getOssInstance as G, getSignatureUrl as $ } from "./hooks/useOss.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, onMounted as R,
|
|
1
|
+
import { defineComponent as g, onMounted as R, openBlock as V, createElementBlock as h, normalizeClass as b, unref as t, createVNode as i, mergeProps as I } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import { Form as B, InputNumber as k, RadioGroup as x } from "@aplus-frontend/antdv";
|
|
4
4
|
import { omit as _ } from "lodash-unified";
|
|
@@ -52,7 +52,7 @@ const S = /* @__PURE__ */ g({
|
|
|
52
52
|
}
|
|
53
53
|
}), (o, a) => {
|
|
54
54
|
var l, r;
|
|
55
|
-
return
|
|
55
|
+
return V(), h("div", {
|
|
56
56
|
class: b([t(m)()])
|
|
57
57
|
}, [
|
|
58
58
|
i(t(k), I({
|
|
@@ -3,17 +3,17 @@ import I from "./keeper/index.mjs";
|
|
|
3
3
|
import { matches as D, getAliveKey as T, isNoValue as W, getVNodeObjByVNodeChild as b, getVNodeObjByVNodeArrayChildren as K, getVNodeChirldren as w, getFirstVNodeChirldren as x } from "./utils.mjs";
|
|
4
4
|
import { catchWrapper as B, measureWrapper as A } from "@aplus-frontend/utils";
|
|
5
5
|
import { LruCacher as C } from "./cacher/lru-cacher.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { ApKeepAliveProps as R, forceStopTags as _ } from "./interface.mjs";
|
|
7
7
|
import { throttle as S } from "lodash-unified";
|
|
8
8
|
import { useApKeepAliveProvide as $ } from "./hook.mjs";
|
|
9
9
|
const c = console, a = "|", te = j({
|
|
10
10
|
name: "ApKeepAlive",
|
|
11
11
|
inheritAttrs: !1,
|
|
12
|
-
props:
|
|
12
|
+
props: R(),
|
|
13
13
|
setup(o, { slots: h }) {
|
|
14
14
|
const g = M(), v = (e) => !(o.include && (!e || !D(o.include, e)) || o.exclude && e && D(o.exclude, e)), d = o.store || new C(o.max), u = E("");
|
|
15
15
|
let m = "";
|
|
16
|
-
const k = /* @__PURE__ */ new Set([...
|
|
16
|
+
const k = /* @__PURE__ */ new Set([..._, ...o.stopTags]), p = (e, n = "") => {
|
|
17
17
|
var f;
|
|
18
18
|
const t = [];
|
|
19
19
|
if (!e) return t;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, createVNode as e, Fragment as t } from "vue";
|
|
2
|
-
import { convertValue as n,
|
|
2
|
+
import { convertValue as n, isVNodeOrFunction as p, renderValue as d } from "../utils.mjs";
|
|
3
3
|
import "../../../config-provider/index.mjs";
|
|
4
4
|
import { useNamespace as v } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
5
5
|
const f = /* @__PURE__ */ c({
|
|
@@ -38,7 +38,7 @@ const f = /* @__PURE__ */ c({
|
|
|
38
38
|
title: String(n(l.value, {
|
|
39
39
|
...l
|
|
40
40
|
}))
|
|
41
|
-
}, [
|
|
41
|
+
}, [p(l.value) ? d(l.value) : l.link ? e("a", {
|
|
42
42
|
href: l.link,
|
|
43
43
|
target: "_blank",
|
|
44
44
|
class: a("value-group-link"),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, ref as V, isVNode as _, h as r, watch as w,
|
|
1
|
+
import { defineComponent as b, ref as V, isVNode as _, h as r, watch as w, openBlock as a, createElementBlock as n, normalizeClass as h, unref as l, createVNode as B, withCtx as N, Fragment as z, renderList as F, normalizeStyle as L, createBlock as x, resolveDynamicComponent as A } from "vue";
|
|
2
2
|
import { Flex as D } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|