@aplus-frontend/ui 0.5.16 → 0.5.18
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-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 +30 -30
- 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-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 +3 -3
- 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.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/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/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/hooks/use-inner-params.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +4 -2
- package/es/src/ap-grid/index.vue.mjs +110 -109
- package/es/src/ap-grid/interface.d.ts +10 -0
- package/es/src/ap-grid/utils/table.mjs +39 -32
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.d.ts +4 -2
- package/es/src/ap-list/index.vue.mjs +4 -4
- 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 +26 -26
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
- 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.mjs +40 -40
- 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-table/utils.mjs +27 -26
- 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 +2 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- 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 +7 -7
- 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 +9 -9
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
- 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-ladder/ApLadder.vue.d.ts +2 -14
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +64 -266
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
- package/es/src/business/ap-ladder/components/SimpleMode.vue.mjs +4 -0
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +119 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.mjs +4 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +213 -0
- package/es/src/business/ap-ladder/index.d.ts +4 -35
- package/es/src/business/ap-ladder/interface.d.ts +26 -0
- package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
- package/es/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
- package/es/src/business/ap-ladder/utils.d.ts +2 -0
- package/es/src/business/ap-ladder/utils.mjs +5 -0
- 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/hooks/use-create-table-modal.mjs +1 -1
- package/es/src/business/ap-table-modal/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +3 -3
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +20 -21
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +17 -17
- 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/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/mask/style/css.d.ts +0 -0
- package/es/src/mask/style/css.js +1 -0
- package/es/src/mask/style/index.d.ts +0 -0
- package/es/src/mask/style/index.js +1 -0
- package/es/src/path-map.mjs +3 -1
- 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/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +4 -4
- package/es/src/text/style/css.d.ts +0 -0
- package/es/src/text/style/css.js +2 -0
- package/es/src/text/style/index.d.ts +0 -0
- package/es/src/text/style/index.js +2 -0
- 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-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/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/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +10 -0
- 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/ap-table.vue2.js +1 -1
- 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-table/utils.js +1 -1
- 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-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-ladder/ApLadder.vue.d.ts +2 -14
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.js +1 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.js +1 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -0
- package/lib/src/business/ap-ladder/index.d.ts +4 -35
- package/lib/src/business/ap-ladder/interface.d.ts +26 -0
- package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
- package/lib/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
- package/lib/src/business/ap-ladder/utils.d.ts +2 -0
- package/lib/src/business/ap-ladder/utils.js +1 -0
- 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/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- 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/mask/style/css.cjs +1 -0
- package/lib/src/mask/style/css.d.ts +0 -0
- package/lib/src/mask/style/index.cjs +1 -0
- package/lib/src/mask/style/index.d.ts +0 -0
- package/lib/src/path-map.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/text/style/css.cjs +2 -0
- package/lib/src/text/style/css.d.ts +0 -0
- package/lib/src/text/style/index.cjs +2 -0
- package/lib/src/text/style/index.d.ts +0 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- package/package.json +3 -3
- package/theme/ap-ladder/ap-ladder.css +28 -1
- package/theme/ap-ladder/ap-ladder.less +32 -1
- package/theme/index.css +28 -1
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +0 -4
- package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +0 -35
- package/es/src/business/ap-ladder/useWatchEllipsis.mjs +0 -35
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +0 -1
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +0 -1
- package/lib/src/business/ap-ladder/useWatchEllipsis.js +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as ke, useSlots as Fe, getCurrentInstance as Be, ref as R, computed as n, unref as o, watch as
|
|
2
|
-
import { VxeTable as Pe, VxeColumn as
|
|
1
|
+
import { defineComponent as ke, useSlots as Fe, getCurrentInstance as Be, ref as R, computed as n, unref as o, watch as z, openBlock as s, createElementBlock as k, normalizeClass as f, normalizeStyle as T, createVNode as U, mergeProps as g, createSlots as G, withCtx as h, Fragment as X, renderList as A, createBlock as u, resolveDynamicComponent as _, renderSlot as V, createCommentVNode as C, createElementVNode as F, normalizeProps as J, guardReactiveProps as Ie } from "vue";
|
|
2
|
+
import { VxeTable as Pe, VxeColumn as Q } from "vxe-table";
|
|
3
3
|
import "vxe-table/es/style.css";
|
|
4
4
|
import "vxe-pc-ui/es/style.css";
|
|
5
|
-
import { VxeUI as
|
|
5
|
+
import { VxeUI as Y } from "vxe-pc-ui";
|
|
6
6
|
import { isUndefined as B, omit as Ee } from "lodash-unified";
|
|
7
7
|
import { ApForm as Ne } from "../ap-form/index.mjs";
|
|
8
8
|
import "../config-provider/index.mjs";
|
|
9
9
|
import { noRenderAsFormItemValueList as ze } from "../ap-table/constants.mjs";
|
|
10
|
-
import { getColumnOrder as
|
|
10
|
+
import { getColumnOrder as Z, updateFormProps as Te, getFieldProps as Ae, getSearchFormItemRenderNode as _e, recursionApColumns as ee } from "../ap-table/utils.mjs";
|
|
11
11
|
import { useTablePaging as Ve } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
12
|
-
import { Empty as
|
|
12
|
+
import { Empty as oe, Pagination as Le } from "@aplus-frontend/antdv";
|
|
13
13
|
import { useInnerParams as Oe } from "./hooks/use-inner-params.mjs";
|
|
14
14
|
import { toVxeProps as De, getRowExpandProps as Ke, getRowSelectionProps as $e } from "./utils/table.mjs";
|
|
15
15
|
import je from "../ap-table/hooks/use-table-row-selection.mjs";
|
|
16
16
|
import { useProvideApTable as He } from "../ap-table/context.mjs";
|
|
17
|
-
import {
|
|
17
|
+
import { sizeMap as We, sizeReverseMap as Me } from "./constants.mjs";
|
|
18
18
|
import { useRenderColumns as qe } from "./hooks/use-render-columns.mjs";
|
|
19
19
|
import { useToken as Ue } from "@aplus-frontend/antdv/es/theme/internal";
|
|
20
20
|
import "../scroll-bar/index.mjs";
|
|
@@ -106,28 +106,28 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
106
106
|
expandable: {},
|
|
107
107
|
value: {}
|
|
108
108
|
},
|
|
109
|
-
setup(
|
|
110
|
-
var
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
const { e: I, b:
|
|
114
|
-
|
|
115
|
-
i18n: (e, l) =>
|
|
109
|
+
setup(ae, { expose: re }) {
|
|
110
|
+
var q;
|
|
111
|
+
const L = Fe(), a = ae, b = (q = Be()) == null ? void 0 : q.appContext.app;
|
|
112
|
+
b && !b.__VXE_PC_UI_INSTALLED__ && (b.use(Y), b.__VXE_PC_UI_INSTALLED__ = !0);
|
|
113
|
+
const { e: I, b: d, be: te } = Ge("ap-grid"), le = Xe("valueTypeMap"), i = R([]), O = R([]), p = R(), w = R(a.size), [, m] = Ue(), { t: ne } = Je();
|
|
114
|
+
Y.setConfig({
|
|
115
|
+
i18n: (e, l) => ne(`ap.${e}`, l)
|
|
116
116
|
});
|
|
117
|
-
const { renderConfig:
|
|
118
|
-
let
|
|
117
|
+
const { renderConfig: se, updateSignal: ie } = qe(i);
|
|
118
|
+
let D = 0;
|
|
119
119
|
const de = n(() => {
|
|
120
120
|
if (p.value)
|
|
121
121
|
return p.value.$el.querySelector(
|
|
122
122
|
".vxe-table--header-inner-wrapper"
|
|
123
123
|
);
|
|
124
|
-
}),
|
|
124
|
+
}), K = n(() => {
|
|
125
125
|
var e, l, t;
|
|
126
|
-
return
|
|
126
|
+
return D++, ((t = (l = (e = a.columns) == null ? void 0 : e.filter(
|
|
127
127
|
(r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !ze.includes(r.valueType)
|
|
128
128
|
)) == null ? void 0 : l.sort((r, c) => {
|
|
129
|
-
let y =
|
|
130
|
-
return
|
|
129
|
+
let y = Z(r.order);
|
|
130
|
+
return Z(c.order) - y;
|
|
131
131
|
})) == null ? void 0 : t.map((r) => {
|
|
132
132
|
const c = Te(
|
|
133
133
|
r,
|
|
@@ -138,39 +138,39 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
138
138
|
label: r.title,
|
|
139
139
|
name: r.dataIndex,
|
|
140
140
|
...c || {},
|
|
141
|
-
_signal:
|
|
141
|
+
_signal: D
|
|
142
142
|
},
|
|
143
143
|
renderNode: void 0
|
|
144
144
|
};
|
|
145
145
|
return y.renderNode = _e(
|
|
146
146
|
y,
|
|
147
|
-
o(
|
|
147
|
+
o(le)
|
|
148
148
|
), y;
|
|
149
149
|
})) || [];
|
|
150
|
-
}),
|
|
151
|
-
|
|
152
|
-
a.card ? null :
|
|
153
|
-
a.adaptive ?
|
|
154
|
-
a.sticky ?
|
|
155
|
-
].filter(Boolean)),
|
|
150
|
+
}), ce = n(() => [
|
|
151
|
+
d(),
|
|
152
|
+
a.card ? null : d("wrapper"),
|
|
153
|
+
a.adaptive ? d("adaptive") : null,
|
|
154
|
+
a.sticky ? d("sticky") : null
|
|
155
|
+
].filter(Boolean)), $ = n(() => ee(o(i), (e) => {
|
|
156
156
|
if (e.sorter === !0)
|
|
157
157
|
return e.key || e.dataIndex;
|
|
158
|
-
}).filter(Boolean)),
|
|
158
|
+
}).filter(Boolean)), j = n(() => ee(o(i), (e) => {
|
|
159
159
|
if (e.filters && !e.onFilter)
|
|
160
160
|
return e.key || e.dataIndex;
|
|
161
161
|
}).filter(Boolean)), {
|
|
162
162
|
formRef: P,
|
|
163
|
-
submit:
|
|
164
|
-
reset:
|
|
165
|
-
refresh:
|
|
166
|
-
data:
|
|
167
|
-
tableProps:
|
|
163
|
+
submit: H,
|
|
164
|
+
reset: W,
|
|
165
|
+
refresh: ue,
|
|
166
|
+
data: v,
|
|
167
|
+
tableProps: M,
|
|
168
168
|
setDataSource: pe,
|
|
169
169
|
handleTableChange: me
|
|
170
170
|
} = Ve({
|
|
171
171
|
async request(e) {
|
|
172
172
|
var t;
|
|
173
|
-
if (!x.value.preserveSelectedRowKeys && B(a.dataSource) &&
|
|
173
|
+
if (!x.value.preserveSelectedRowKeys && B(a.dataSource) && N(), !B(a.dataSource)) {
|
|
174
174
|
const r = e.pageSize * (e.current - 1);
|
|
175
175
|
return {
|
|
176
176
|
data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(r, r + e.pageSize)) || [],
|
|
@@ -184,50 +184,50 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
184
184
|
};
|
|
185
185
|
},
|
|
186
186
|
namespace: "ap-grid",
|
|
187
|
-
filterFields:
|
|
188
|
-
sortFields:
|
|
187
|
+
filterFields: j,
|
|
188
|
+
sortFields: $,
|
|
189
189
|
defaultParams: a.params,
|
|
190
190
|
defaultData: a.defaultData,
|
|
191
191
|
manual: a.manual,
|
|
192
192
|
formatParams: a.beforeSearchSubmit,
|
|
193
193
|
pagination: a.pagination
|
|
194
|
-
}), { sortChangeEvent: fe, filterChangeEvent: ge, paginationChangeEvent:
|
|
194
|
+
}), { sortChangeEvent: fe, filterChangeEvent: ge, paginationChangeEvent: he } = Oe(me);
|
|
195
195
|
He({
|
|
196
|
-
columns: n(() =>
|
|
197
|
-
columnsBackup: n(() =>
|
|
198
|
-
size: n(() =>
|
|
196
|
+
columns: n(() => i.value),
|
|
197
|
+
columnsBackup: n(() => O.value),
|
|
198
|
+
size: n(() => w.value ? We[w.value] : "middle"),
|
|
199
199
|
updateColumns(e) {
|
|
200
|
-
|
|
200
|
+
i.value = e;
|
|
201
201
|
},
|
|
202
202
|
updateSize(e) {
|
|
203
|
-
|
|
203
|
+
w.value = Me[e];
|
|
204
204
|
},
|
|
205
205
|
renderConfig: n(() => ({
|
|
206
|
-
className:
|
|
206
|
+
className: te("table-header", "title"),
|
|
207
207
|
color: m.value.colorPrimary
|
|
208
208
|
}))
|
|
209
209
|
});
|
|
210
|
-
const
|
|
211
|
-
() =>
|
|
210
|
+
const ve = n(
|
|
211
|
+
() => i.value.some(
|
|
212
212
|
(e) => e.fixed === "left" || e.fixed === !0
|
|
213
213
|
) ? "left" : void 0
|
|
214
214
|
), ye = n(
|
|
215
|
-
() => B(a.dataSource) ?
|
|
215
|
+
() => B(a.dataSource) ? v.records : a.dataSource
|
|
216
216
|
), { selectedRows: S, rowSelection: x, ...Ce } = je({
|
|
217
217
|
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
218
218
|
dataSource: ye,
|
|
219
219
|
rowKey: a.rowKey
|
|
220
|
-
}),
|
|
220
|
+
}), E = () => {
|
|
221
221
|
const e = p.value;
|
|
222
222
|
e && (S.value = [
|
|
223
223
|
...e.getCheckboxReserveRecords(),
|
|
224
224
|
...e.getCheckboxRecords()
|
|
225
225
|
]);
|
|
226
|
-
},
|
|
226
|
+
}, be = () => {
|
|
227
227
|
const e = p.value;
|
|
228
228
|
e && (S.value = [e.getRadioRecord()]);
|
|
229
229
|
};
|
|
230
|
-
function
|
|
230
|
+
function we() {
|
|
231
231
|
var e;
|
|
232
232
|
return ((e = a.columns) == null ? void 0 : e.filter((l) => !l.hideInTable)) || [];
|
|
233
233
|
}
|
|
@@ -240,70 +240,70 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
240
240
|
const l = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
241
241
|
return (c = (r = (t = P.value) == null ? void 0 : t.apForm) == null ? void 0 : r[l]) == null ? void 0 : c.call(r, !0);
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function N() {
|
|
244
244
|
Ce.clearAll();
|
|
245
245
|
const e = p.value;
|
|
246
246
|
e && (x.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
|
|
247
247
|
}
|
|
248
248
|
async function Re(e, l) {
|
|
249
249
|
var r;
|
|
250
|
-
const t =
|
|
250
|
+
const t = v.records[e];
|
|
251
251
|
if (t)
|
|
252
252
|
return (r = p.value) == null ? void 0 : r.scrollToRow(t, l);
|
|
253
253
|
}
|
|
254
|
-
return
|
|
254
|
+
return z(
|
|
255
255
|
() => [a.columnResizable, a.columns],
|
|
256
256
|
() => {
|
|
257
|
-
const e =
|
|
258
|
-
|
|
257
|
+
const e = we();
|
|
258
|
+
i.value = e, O.value = e;
|
|
259
259
|
},
|
|
260
260
|
{
|
|
261
261
|
deep: !0,
|
|
262
262
|
immediate: !0
|
|
263
263
|
}
|
|
264
|
-
),
|
|
264
|
+
), z(
|
|
265
265
|
() => a.dataSource,
|
|
266
266
|
(e) => {
|
|
267
267
|
pe(e);
|
|
268
268
|
},
|
|
269
269
|
{ immediate: !0 }
|
|
270
|
-
),
|
|
271
|
-
() => o(
|
|
270
|
+
), z(
|
|
271
|
+
() => o(v).loading,
|
|
272
272
|
(e) => {
|
|
273
273
|
var l;
|
|
274
274
|
(l = a.onLoadingChange) == null || l.call(a, e);
|
|
275
275
|
}
|
|
276
|
-
),
|
|
277
|
-
submit:
|
|
278
|
-
reset:
|
|
279
|
-
refresh:
|
|
276
|
+
), re({
|
|
277
|
+
submit: H,
|
|
278
|
+
reset: W,
|
|
279
|
+
refresh: ue,
|
|
280
280
|
setSearchFormValues: Se,
|
|
281
281
|
getSearchFormValues: xe,
|
|
282
|
-
getShowColumns: () => o(
|
|
282
|
+
getShowColumns: () => o(i),
|
|
283
283
|
rowSelection: {
|
|
284
284
|
selectedRows: n(() => S.value),
|
|
285
|
-
clearAll:
|
|
285
|
+
clearAll: N
|
|
286
286
|
},
|
|
287
287
|
scrollToRow: Re
|
|
288
288
|
}), (e, l) => (s(), k("div", {
|
|
289
|
-
class: f(
|
|
290
|
-
style:
|
|
289
|
+
class: f(ce.value),
|
|
290
|
+
style: T(e.wrapperStyle)
|
|
291
291
|
}, [
|
|
292
|
-
o(B)(e.dataSource) && e.searchForm !== !1 &&
|
|
292
|
+
o(B)(e.dataSource) && e.searchForm !== !1 && K.value.length > 0 ? (s(), k("div", {
|
|
293
293
|
key: 0,
|
|
294
294
|
class: f(e.card ? o(I)("search-wrapper") : null),
|
|
295
|
-
style:
|
|
295
|
+
style: T(e.searchFormWrapperStyle)
|
|
296
296
|
}, [
|
|
297
|
-
|
|
297
|
+
U(o(Ne).SearchForm, g(e.searchForm || {}, {
|
|
298
298
|
ref_key: "formRef",
|
|
299
299
|
ref: P,
|
|
300
300
|
"custom-reset": "",
|
|
301
|
-
"submit-loading":
|
|
302
|
-
onSubmit: o(
|
|
303
|
-
onReset: o(
|
|
304
|
-
}),
|
|
305
|
-
default:
|
|
306
|
-
(s(!0), k(
|
|
301
|
+
"submit-loading": o(M).loading,
|
|
302
|
+
onSubmit: o(H),
|
|
303
|
+
onReset: o(W)
|
|
304
|
+
}), G({
|
|
305
|
+
default: h(() => [
|
|
306
|
+
(s(!0), k(X, null, A(K.value, (t) => (s(), u(_(t.renderNode.Comp), g({
|
|
307
307
|
key: t.dataIndex,
|
|
308
308
|
item: t,
|
|
309
309
|
ref_for: !0
|
|
@@ -314,40 +314,40 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
314
314
|
]),
|
|
315
315
|
_: 2
|
|
316
316
|
}, [
|
|
317
|
-
|
|
317
|
+
L.searchFormExtra ? {
|
|
318
318
|
name: "extra",
|
|
319
|
-
fn:
|
|
320
|
-
|
|
319
|
+
fn: h(() => [
|
|
320
|
+
V(e.$slots, "searchFormExtra")
|
|
321
321
|
]),
|
|
322
322
|
key: "0"
|
|
323
323
|
} : void 0
|
|
324
|
-
]), 1040, ["onSubmit", "onReset"])
|
|
324
|
+
]), 1040, ["submit-loading", "onSubmit", "onReset"])
|
|
325
325
|
], 6)) : C("", !0),
|
|
326
326
|
F("div", {
|
|
327
327
|
class: f([o(I)("table-wrapper"), e.card ? o(I)("table-wrapper-card") : null]),
|
|
328
|
-
style:
|
|
328
|
+
style: T(e.tableWrapperStyle)
|
|
329
329
|
}, [
|
|
330
330
|
F("div", {
|
|
331
|
-
class: f(o(
|
|
331
|
+
class: f(o(d)("header-wrapper"))
|
|
332
332
|
}, [
|
|
333
|
-
|
|
333
|
+
V(e.$slots, "title", {
|
|
334
334
|
selectedRows: o(S),
|
|
335
335
|
selectedRowKeys: o(x).selectedRowKeys,
|
|
336
|
-
shownColumns:
|
|
337
|
-
clearAll:
|
|
336
|
+
shownColumns: i.value,
|
|
337
|
+
clearAll: N
|
|
338
338
|
})
|
|
339
339
|
], 2),
|
|
340
340
|
F("div", {
|
|
341
|
-
class: f(o(
|
|
341
|
+
class: f(o(d)("vxe-wrapper"))
|
|
342
342
|
}, [
|
|
343
343
|
(s(), u(o(Pe), g(o(De)(a), {
|
|
344
344
|
ref_key: "tableRef",
|
|
345
345
|
ref: p,
|
|
346
|
-
key: o(
|
|
347
|
-
data: o(
|
|
348
|
-
"sort-config": { remote:
|
|
349
|
-
"filter-config": { remote:
|
|
350
|
-
loading: o(
|
|
346
|
+
key: o(ie),
|
|
347
|
+
data: o(v).records,
|
|
348
|
+
"sort-config": { remote: $.value.length > 0 },
|
|
349
|
+
"filter-config": { remote: j.value.length > 0 },
|
|
350
|
+
loading: o(v).loading,
|
|
351
351
|
"row-config": {
|
|
352
352
|
isHover: !0,
|
|
353
353
|
keyField: a.rowKey
|
|
@@ -362,42 +362,43 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
362
362
|
"--vxe-ui-table-row-radio-checked-background-color": o(m).controlItemBgActive,
|
|
363
363
|
"--vxe-ui-table-row-hover-radio-checked-background-color": o(m).controlItemBgActiveHover
|
|
364
364
|
},
|
|
365
|
-
size:
|
|
365
|
+
size: w.value,
|
|
366
366
|
onSortChange: o(fe),
|
|
367
367
|
onFilterChange: o(ge),
|
|
368
|
-
onCheckboxChange:
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
368
|
+
onCheckboxChange: E,
|
|
369
|
+
onCheckboxRangeChange: E,
|
|
370
|
+
onCheckboxAll: E,
|
|
371
|
+
onRadioChange: be
|
|
372
|
+
}), G({
|
|
373
|
+
empty: h(() => [
|
|
374
|
+
U(o(oe), {
|
|
375
|
+
image: o(oe).PRESENTED_IMAGE_SIMPLE
|
|
375
376
|
}, null, 8, ["image"])
|
|
376
377
|
]),
|
|
377
|
-
default:
|
|
378
|
-
a.expandable ? (s(), u(o(
|
|
379
|
-
content:
|
|
380
|
-
(s(), u(
|
|
378
|
+
default: h(() => [
|
|
379
|
+
a.expandable ? (s(), u(o(Q), g({ key: 0 }, o(Ke)(e.expandable), { fixed: ve.value }), {
|
|
380
|
+
content: h((t) => [
|
|
381
|
+
(s(), u(_(a.expandable.renderContent(t))))
|
|
381
382
|
]),
|
|
382
383
|
_: 1
|
|
383
384
|
}, 16, ["fixed"])) : C("", !0),
|
|
384
|
-
a.rowSelection ? (s(), u(o(
|
|
385
|
-
(s(!0), k(
|
|
385
|
+
a.rowSelection ? (s(), u(o(Q), J(g({ key: 1 }, o($e)(o(x), i.value))), null, 16)) : C("", !0),
|
|
386
|
+
(s(!0), k(X, null, A(o(se), (t) => (s(), u(_(t), {
|
|
386
387
|
key: t.props.colId
|
|
387
388
|
}))), 128))
|
|
388
389
|
]),
|
|
389
390
|
_: 2
|
|
390
391
|
}, [
|
|
391
|
-
|
|
392
|
+
A(o(Ee)(L, ["searchFormExtra"]), (t, r) => ({
|
|
392
393
|
name: r,
|
|
393
|
-
fn:
|
|
394
|
-
|
|
394
|
+
fn: h((c) => [
|
|
395
|
+
V(e.$slots, r, J(Ie(c || {})))
|
|
395
396
|
])
|
|
396
397
|
}))
|
|
397
398
|
]), 1040, ["data", "sort-config", "filter-config", "loading", "row-config", "style", "size", "onSortChange", "onFilterChange"]))
|
|
398
399
|
], 2),
|
|
399
400
|
F("div", {
|
|
400
|
-
class: f(o(
|
|
401
|
+
class: f(o(d)("pagination-wrapper"))
|
|
401
402
|
}, [
|
|
402
403
|
e.sticky ? (s(), u(o(Qe), {
|
|
403
404
|
key: 0,
|
|
@@ -406,8 +407,8 @@ const Ro = /* @__PURE__ */ ke({
|
|
|
406
407
|
}, null, 8, ["scroll-container"])) : C("", !0),
|
|
407
408
|
e.pagination !== !1 ? (s(), u(o(Le), g({
|
|
408
409
|
key: 1,
|
|
409
|
-
class: o(
|
|
410
|
-
}, o(
|
|
410
|
+
class: o(d)("pagination")
|
|
411
|
+
}, o(M).pagination, { onChange: o(he) }), null, 16, ["class", "onChange"])) : C("", !0)
|
|
411
412
|
], 2)
|
|
412
413
|
], 6)
|
|
413
414
|
], 6));
|
|
@@ -104,6 +104,16 @@ export type ApGridRowSelection<RecordType> = Pick<TableRowSelection<RecordType>,
|
|
|
104
104
|
* @returns
|
|
105
105
|
*/
|
|
106
106
|
disabled?: (row: RecordType) => boolean;
|
|
107
|
+
/**
|
|
108
|
+
* 是否显示选择框的方法,返回false将显示
|
|
109
|
+
* @param row
|
|
110
|
+
* @returns
|
|
111
|
+
*/
|
|
112
|
+
shown?: (row: RecordType) => boolean;
|
|
113
|
+
/**
|
|
114
|
+
* 是否开启鼠标滑动的范围选择(仅复选有效)
|
|
115
|
+
*/
|
|
116
|
+
range?: boolean;
|
|
107
117
|
};
|
|
108
118
|
export type ApGridProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection' | 'rowKey' | 'rowClassName' | 'footer'> & Pick<VxeTableProps<RecordType>, 'rowClassName' | 'stripe' | 'headerRowClassName' | 'footerRowClassName' | 'cellClassName' | 'headerCellClassName' | 'footerCellClassName' | 'rowStyle' | 'headerRowStyle' | 'footerRowStyle' | 'cellStyle' | 'headerCellStyle' | 'footerCellStyle' | 'height' | 'minHeight' | 'maxHeight' | 'mergeCells' | 'mergeFooterItems' | 'cellConfig'> & {
|
|
109
119
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { omit as
|
|
2
|
-
const h =
|
|
3
|
-
function
|
|
4
|
-
var
|
|
1
|
+
import { omit as u, isUndefined as d, isFunction as f, isNumber as c } from "lodash-unified";
|
|
2
|
+
const h = 20, v = 50;
|
|
3
|
+
function y(e) {
|
|
4
|
+
var l, n, i;
|
|
5
5
|
const t = {
|
|
6
|
-
...
|
|
6
|
+
...u(e, [
|
|
7
7
|
"columns",
|
|
8
8
|
"request",
|
|
9
9
|
"searchForm",
|
|
@@ -15,24 +15,31 @@ function R(e) {
|
|
|
15
15
|
if (e.adaptive && (t.autoResize = !0, t.height = "100%"), e.columnResizable && (t.columnConfig ? t.columnConfig.resizable = !0 : t.columnConfig = {
|
|
16
16
|
resizable: !0
|
|
17
17
|
}), e.rowSelection) {
|
|
18
|
-
const
|
|
19
|
-
|
|
18
|
+
const r = e.rowSelection === !0 ? {} : e.rowSelection;
|
|
19
|
+
r.type === "radio" ? t.radioConfig = {
|
|
20
20
|
highlight: !0,
|
|
21
|
-
checkMethod({ row:
|
|
22
|
-
return
|
|
21
|
+
checkMethod({ row: o }) {
|
|
22
|
+
return r.disabled ? !r.disabled(o) : !0;
|
|
23
23
|
},
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
visibleMethod({ row: o }) {
|
|
25
|
+
return r.shown ? r.shown(o) : !0;
|
|
26
|
+
},
|
|
27
|
+
checkRowKey: (l = r.defaultSelectedRowKeys) == null ? void 0 : l[0],
|
|
28
|
+
reserve: d(r.preserveSelectedRowKeys) ? !0 : r.preserveSelectedRowKeys
|
|
26
29
|
} : t.checkboxConfig = {
|
|
27
30
|
highlight: !0,
|
|
28
|
-
checkMethod({ row:
|
|
29
|
-
return
|
|
31
|
+
checkMethod({ row: o }) {
|
|
32
|
+
return r.disabled ? !r.disabled(o) : !0;
|
|
33
|
+
},
|
|
34
|
+
visibleMethod({ row: o }) {
|
|
35
|
+
return r.shown ? r.shown(o) : !0;
|
|
30
36
|
},
|
|
31
|
-
checkRowKeys:
|
|
32
|
-
reserve:
|
|
37
|
+
checkRowKeys: r.defaultSelectedRowKeys,
|
|
38
|
+
reserve: d(r.preserveSelectedRowKeys) ? !0 : r.preserveSelectedRowKeys,
|
|
39
|
+
range: r.range || !1
|
|
33
40
|
};
|
|
34
41
|
}
|
|
35
|
-
return t.border = e.bordered, e.expandable && (t.expandConfig =
|
|
42
|
+
return t.border = e.bordered, e.expandable && (t.expandConfig = u(e.expandable, [
|
|
36
43
|
"renderContent",
|
|
37
44
|
"width",
|
|
38
45
|
"title"
|
|
@@ -40,27 +47,27 @@ function R(e) {
|
|
|
40
47
|
enabled: !1
|
|
41
48
|
}, t.virtualYConfig = {
|
|
42
49
|
enabled: !1
|
|
43
|
-
}) : (
|
|
50
|
+
}) : (s(t, "X", (n = e.virtual) == null ? void 0 : n.x), s(t, "Y", (i = e.virtual) == null ? void 0 : i.y)), t;
|
|
44
51
|
}
|
|
45
|
-
function
|
|
46
|
-
const
|
|
47
|
-
e[
|
|
48
|
-
enabled:
|
|
49
|
-
gt:
|
|
52
|
+
function s(e, t, l) {
|
|
53
|
+
const n = t === "X", i = n ? "virtualXConfig" : "virtualYConfig", r = l !== !1, o = n ? h : v, a = c(l) && l >= 0 ? l : o;
|
|
54
|
+
e[i] = {
|
|
55
|
+
enabled: r,
|
|
56
|
+
gt: a
|
|
50
57
|
};
|
|
51
58
|
}
|
|
52
59
|
function b(e) {
|
|
53
60
|
return e === !0 ? "left" : e;
|
|
54
61
|
}
|
|
55
|
-
function
|
|
56
|
-
const
|
|
57
|
-
let
|
|
58
|
-
return
|
|
59
|
-
(
|
|
62
|
+
function R(e, t) {
|
|
63
|
+
const l = e === !0 || !e.type ? "checkbox" : e.type, n = e === !0 ? 60 : e.columnWidth || 60;
|
|
64
|
+
let i = e === !0 ? void 0 : b(e.fixed);
|
|
65
|
+
return i || (i === !1 ? i = void 0 : i = t.some(
|
|
66
|
+
(r) => r.fixed === "left" || r.fixed === !0
|
|
60
67
|
) ? "left" : void 0), {
|
|
61
|
-
type:
|
|
62
|
-
width:
|
|
63
|
-
fixed:
|
|
68
|
+
type: l,
|
|
69
|
+
width: n,
|
|
70
|
+
fixed: i
|
|
64
71
|
};
|
|
65
72
|
}
|
|
66
73
|
function x(e) {
|
|
@@ -73,6 +80,6 @@ function x(e) {
|
|
|
73
80
|
}
|
|
74
81
|
export {
|
|
75
82
|
x as getRowExpandProps,
|
|
76
|
-
|
|
77
|
-
|
|
83
|
+
R as getRowSelectionProps,
|
|
84
|
+
y as toVxeProps
|
|
78
85
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, computed as n,
|
|
1
|
+
import { defineComponent as a, computed as n, openBlock as p, createBlock as s, resolveDynamicComponent as i, normalizeProps as l, guardReactiveProps as m, createSlots as c, renderList as u, withCtx as d, renderSlot as f } from "vue";
|
|
2
2
|
import "./ap-info-layout-aplus/ap-info-layout.vue.mjs";
|
|
3
3
|
import "./ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
@@ -26,7 +26,7 @@ const D = /* @__PURE__ */ a({
|
|
|
26
26
|
}
|
|
27
27
|
return e;
|
|
28
28
|
});
|
|
29
|
-
return (e, h) => (
|
|
29
|
+
return (e, h) => (p(), s(i(t.value), l(m(e.$props)), c({ _: 2 }, [
|
|
30
30
|
u(e.$slots, (k, o) => ({
|
|
31
31
|
name: o,
|
|
32
32
|
fn: d(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, ref as t,
|
|
1
|
+
import { defineComponent as u, ref as t, openBlock as p, createElementBlock as y, normalizeClass as s, unref as e, createElementVNode as n, normalizeStyle as h, renderSlot as d } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import { useNamespace as v } from "../../config-provider/hooks/use-namespace.mjs";
|
|
4
4
|
import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
|
|
@@ -12,7 +12,7 @@ const L = /* @__PURE__ */ u({
|
|
|
12
12
|
const l = t(), a = t(), f = () => {
|
|
13
13
|
l.value && a.value && (l.value.scrollTop > 0 ? a.value.classList.add(o("header-shadow")) : a.value.classList.remove(o("header-shadow")));
|
|
14
14
|
}, { b: i, e: o, m: c } = v("ap-info-layout-admin"), m = _("uiMode", "admin");
|
|
15
|
-
return (r, k) => (
|
|
15
|
+
return (r, k) => (p(), y("div", {
|
|
16
16
|
ref_key: "containerRef",
|
|
17
17
|
ref: l,
|
|
18
18
|
class: s([e(i)(), `${e(c)(e(m))}`]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, computed as t, onActivated as y, onDeactivated as B,
|
|
1
|
+
import { defineComponent as $, computed as t, onActivated as y, onDeactivated as B, openBlock as d, createElementBlock as E, normalizeClass as a, createBlock as H, Teleport as k, renderSlot as s, createElementVNode as o, createVNode as A, unref as N } from "vue";
|
|
2
2
|
import { Divider as T } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import { useNamespace as V } from "../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApListProps } from './interface';
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
import { ApFormSearchFormExpose } from '..';
|
|
5
5
|
declare const _default: <RecordType extends Recordable>(__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<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
|
|
@@ -41,7 +41,9 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
41
41
|
}): any;
|
|
42
42
|
};
|
|
43
43
|
emit: {};
|
|
44
|
-
}>) => VNode
|
|
44
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}> & {
|
|
45
47
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
46
48
|
};
|
|
47
49
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, ref as J, unref as t, computed as d, watch as Q,
|
|
1
|
+
import { defineComponent as H, ref as J, unref as t, computed as d, watch as Q, openBlock as i, createBlock as S, normalizeClass as u, withCtx as f, createElementVNode as X, normalizeStyle as h, renderSlot as l, createVNode as v, createElementBlock as p, Fragment as I, renderList as Y, mergeProps as Z, createCommentVNode as _ } from "vue";
|
|
2
2
|
import { Empty as E, Spin as x, Pagination as ee } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useTablePaging as te } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
@@ -165,7 +165,7 @@ const he = /* @__PURE__ */ H({
|
|
|
165
165
|
key: 1,
|
|
166
166
|
dataSource: s.value
|
|
167
167
|
}, () => [
|
|
168
|
-
(i(!0), p(I, null,
|
|
168
|
+
(i(!0), p(I, null, Y(s.value, (r, o) => l(e.$slots, "renderItem", {
|
|
169
169
|
item: r,
|
|
170
170
|
index: o
|
|
171
171
|
})), 256))
|
|
@@ -176,11 +176,11 @@ const he = /* @__PURE__ */ H({
|
|
|
176
176
|
class: u(t(N)("footer")),
|
|
177
177
|
style: h(e.footerWarpperStyle)
|
|
178
178
|
}, [
|
|
179
|
-
v(t(ee),
|
|
179
|
+
v(t(ee), Z(
|
|
180
180
|
c.value ? t(B) : t(ne)(t(z).pagination, ["showTotal"]),
|
|
181
181
|
{ onChange: K }
|
|
182
182
|
), null, 16)
|
|
183
|
-
], 6)) :
|
|
183
|
+
], 6)) : _("", !0)
|
|
184
184
|
], 6)
|
|
185
185
|
]),
|
|
186
186
|
_: 3
|
|
@@ -6,7 +6,7 @@ export type ModalFunc = (props: ModalFuncProps) => {
|
|
|
6
6
|
update: (configUpdate: ConfigUpdate) => void;
|
|
7
7
|
};
|
|
8
8
|
declare const confirm: (config: ModalFuncProps) => {
|
|
9
|
-
destroy: (this:
|
|
9
|
+
destroy: (this: any, ...args: any[]) => void;
|
|
10
10
|
update: (configUpdate: ConfigUpdate) => void;
|
|
11
11
|
};
|
|
12
12
|
export default confirm;
|