@aplus-frontend/ui 0.5.37 → 0.6.0-beta.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/es/index.mjs +74 -72
- package/es/src/ap-field/select/index.vue.d.ts +2 -2
- package/es/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/interface.d.ts +31 -1
- package/es/src/ap-form/item/index.vue.d.ts +22 -22
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/es/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/es/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/es/src/ap-form/render/item.vue.d.ts +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +102 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +128 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.mjs +4 -0
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +39 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +17 -0
- package/es/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/es/src/ap-form/search-form/index.vue.mjs +127 -127
- package/es/src/ap-grid/index.vue.mjs +97 -93
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +21 -16
- package/es/src/ap-table/ap-table.vue2.mjs +108 -104
- package/es/src/ap-table/constants.d.ts +161 -161
- package/es/src/ap-table/context.d.ts +5 -0
- package/es/src/ap-table/context.mjs +13 -5
- package/es/src/ap-table/utils.d.ts +147 -147
- package/es/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +65 -51
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/es/src/business/ap-size-input/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/index.d.ts +15 -15
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/es/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/es/src/business/ap-view/ap-view.vue.mjs +4 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +171 -0
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/es/src/business/ap-view/components/main-button-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +175 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.mjs +4 -0
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +156 -0
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +8 -0
- package/es/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-down.vue.mjs +29 -0
- package/es/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/es/src/business/ap-view/icons/line-eye.vue.mjs +29 -0
- package/es/src/business/ap-view/index.d.ts +27 -0
- package/es/src/business/ap-view/index.mjs +8 -0
- package/es/src/business/ap-view/interface.d.ts +54 -0
- package/es/src/business/ap-view/interface.mjs +1 -0
- package/es/src/business/ap-view/style/css.d.ts +0 -0
- package/es/src/business/ap-view/style/css.js +1 -0
- package/es/src/business/ap-view/style/index.d.ts +0 -0
- package/es/src/business/ap-view/style/index.js +1 -0
- package/es/src/business/ap-view/utils/enum.d.ts +1 -0
- package/es/src/business/ap-view/utils/enum.mjs +4 -0
- package/es/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/es/src/business/ap-view/utils/uuid.mjs +22 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/es/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +25 -23
- package/es/src/config-provider/config-provider-props.d.ts +5 -0
- package/es/src/config-provider/config-provider-props.mjs +4 -0
- package/es/src/config-provider/config-provider.d.ts +25 -1
- package/es/src/config-provider/config-provider.mjs +21 -20
- package/es/src/config-provider/css-var.d.ts +14 -0
- package/es/src/config-provider/css-var.mjs +40 -12
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/es/src/config-provider/index.d.ts +89 -3
- package/es/src/full-screen/interface.d.ts +1 -1
- package/es/src/index.mjs +61 -59
- package/es/src/locale/lang/en.mjs +22 -1
- package/es/src/locale/lang/zh-cn.mjs +22 -1
- package/es/src/path-map.mjs +2 -1
- package/es/src/utils/config-provider-preset.d.ts +4 -4
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/lib/index.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/interface.d.ts +31 -1
- package/lib/src/ap-form/item/index.vue.d.ts +22 -22
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.d.ts +13 -13
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +31 -31
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text/password.vue.d.ts +15 -15
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +35 -35
- package/lib/src/ap-form/modal-form/index.vue.d.ts +10 -10
- package/lib/src/ap-form/render/item.vue.d.ts +2 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.d.ts +6 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue.js +1 -0
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +3 -0
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.d.ts +14 -16
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +161 -161
- package/lib/src/ap-table/context.d.ts +5 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +147 -147
- package/lib/src/ap-upload/apUpload.vue.d.ts +8 -8
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +14 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -1
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/lib/src/business/ap-size-input/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/index.d.ts +15 -15
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +5 -5
- package/lib/src/business/ap-view/ap-view.vue.d.ts +6 -0
- package/lib/src/business/ap-view/ap-view.vue.js +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +831 -0
- package/lib/src/business/ap-view/components/main-button-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +832 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.js +1 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +14 -0
- package/lib/src/business/ap-view/hooks/use-view-provide.js +1 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-delete.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-down.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-down.vue.js +1 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.d.ts +3 -0
- package/lib/src/business/ap-view/icons/line-eye.vue.js +1 -0
- package/lib/src/business/ap-view/index.d.ts +27 -0
- package/lib/src/business/ap-view/index.js +1 -0
- package/lib/src/business/ap-view/interface.d.ts +54 -0
- package/lib/src/business/ap-view/interface.js +1 -0
- package/lib/src/business/ap-view/style/css.cjs +1 -0
- package/lib/src/business/ap-view/style/css.d.ts +0 -0
- package/lib/src/business/ap-view/style/index.cjs +1 -0
- package/lib/src/business/ap-view/style/index.d.ts +0 -0
- package/lib/src/business/ap-view/utils/enum.d.ts +1 -0
- package/lib/src/business/ap-view/utils/enum.js +1 -0
- package/lib/src/business/ap-view/utils/uuid.d.ts +5 -0
- package/lib/src/business/ap-view/utils/uuid.js +1 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +3 -3
- package/lib/src/business/batch-input-group/index.vue.d.ts +6 -6
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +5 -0
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +25 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/css-var.d.ts +14 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
- package/lib/src/config-provider/index.d.ts +89 -3
- package/lib/src/full-screen/interface.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/utils/config-provider-preset.d.ts +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -6
- package/package.json +7 -7
- package/theme/ap-action/item-dropdown.css +28 -0
- package/theme/ap-action/item-dropdown.less +1 -1
- package/theme/ap-action/item.css +35 -1
- package/theme/ap-action/item.less +1 -2
- package/theme/ap-appendix/ap-appendix.css +28 -0
- package/theme/ap-attachment/ap-attachment.css +28 -0
- package/theme/ap-batch-action/ap-batch-action.css +28 -0
- package/theme/ap-button/ap-button.css +28 -0
- package/theme/ap-card/ap-card.css +28 -0
- package/theme/ap-descriptions/ap-descriptions.css +28 -0
- package/theme/ap-download/ap-download.css +28 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +28 -0
- package/theme/ap-field/checkbox.css +28 -0
- package/theme/ap-field/index.css +28 -0
- package/theme/ap-field/number.css +28 -0
- package/theme/ap-field/radio.css +28 -0
- package/theme/ap-field/text-area.css +28 -0
- package/theme/ap-form/ap-form-item-group.css +28 -0
- package/theme/ap-form/ap-form-item.css +28 -0
- package/theme/ap-form/drawer-form.css +28 -0
- package/theme/ap-form/index.css +169 -0
- package/theme/ap-form/item-text-group.css +28 -0
- package/theme/ap-form/item-text.css +28 -0
- package/theme/ap-form/modal-form.css +28 -0
- package/theme/ap-form/search-form-sorter.css +120 -0
- package/theme/ap-form/search-form-sorter.less +71 -0
- package/theme/ap-form/search-form.css +169 -0
- package/theme/ap-form/search-form.less +56 -0
- package/theme/ap-grid/editable.css +28 -0
- package/theme/ap-grid/index.css +176 -1
- package/theme/ap-group-search/ap-extension-select.css +28 -0
- package/theme/ap-group-search/ap-group-search.css +28 -0
- package/theme/ap-group-search/ap-popover-select.css +28 -0
- package/theme/ap-image/ap-image.css +28 -0
- package/theme/ap-input-radio/ap-input-radio.css +28 -0
- package/theme/ap-label/ap-label.css +28 -0
- package/theme/ap-ladder/ap-ladder.css +28 -0
- package/theme/ap-layout/ap-info-layout.css +28 -0
- package/theme/ap-list/index.css +28 -0
- package/theme/ap-product-info/ap-product-info.css +28 -0
- package/theme/ap-select-layout/ap-select-layout.css +28 -0
- package/theme/ap-size-input/ap-size-input.css +28 -0
- package/theme/ap-status/ap-status.css +28 -0
- package/theme/ap-summary/index.css +28 -0
- package/theme/ap-table/ap-table-index.css +28 -0
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +28 -0
- package/theme/ap-table/ap-table.css +190 -13
- package/theme/ap-table/ap-table.less +0 -1
- package/theme/ap-table/setting/index.css +42 -0
- package/theme/ap-table/setting/modal.css +36 -0
- package/theme/ap-table/setting/modal.less +1 -0
- package/theme/ap-table/setting/select-group.css +28 -0
- package/theme/ap-table/setting/sortable-item-meta.css +28 -0
- package/theme/ap-table/setting/sortable-item.css +28 -0
- package/theme/ap-table/setting/sorter.css +34 -0
- package/theme/ap-table/setting/sorter.less +1 -2
- package/theme/ap-table-modal/index.css +190 -13
- package/theme/ap-tag/ap-tag-group.css +28 -0
- package/theme/ap-tag/ap-tag.css +28 -0
- package/theme/ap-title/ap-title.css +28 -0
- package/theme/ap-upload/index.css +28 -0
- package/theme/ap-upload/multiple-file.css +28 -0
- package/theme/ap-upload/picture.css +28 -0
- package/theme/ap-upload/single-file.css +28 -0
- package/theme/ap-upload/upload.css +28 -0
- package/theme/ap-upload-single/index.css +28 -0
- package/theme/ap-view/ap-view.css +149 -0
- package/theme/ap-view/ap-view.less +128 -0
- package/theme/batch-input-group/index.css +28 -0
- package/theme/batch-input-group/popover-input.css +28 -0
- package/theme/check-card/index.css +49 -1
- package/theme/check-card/index.less +3 -4
- package/theme/editable-table/index.css +176 -1
- package/theme/full-screen/index.css +28 -0
- package/theme/index.css +340 -15
- package/theme/index.less +1 -0
- package/theme/mask/index.css +28 -0
- package/theme/mixins/config.less +1 -0
- package/theme/mixins/mixins.css +28 -0
- package/theme/mixins/mixins.less +35 -0
- package/theme/scroll-bar/index.css +28 -0
- package/theme/scroll-view/index.css +28 -0
- package/theme/splitter/index.css +28 -0
- package/theme/text/group.css +28 -0
- package/theme/text/index.css +36 -1
- package/theme/text/index.less +1 -1
- package/theme/work-order-modal/index.css +28 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as ke, useSlots as Be, getCurrentInstance as Fe, ref as k, computed as n, unref as o, watch as B, createElementBlock as F, openBlock as s, normalizeStyle as
|
|
2
|
-
import { VxeTable as Pe, VxeColumn as
|
|
1
|
+
import { defineComponent as ke, useSlots as Be, getCurrentInstance as Fe, ref as k, computed as n, unref as o, watch as B, createElementBlock as F, openBlock as s, normalizeStyle as A, normalizeClass as g, createCommentVNode as S, createElementVNode as I, createVNode as X, mergeProps as h, createSlots as J, withCtx as v, Fragment as Q, renderList as V, createBlock as p, resolveDynamicComponent as L, renderSlot as D, normalizeProps as Ie, guardReactiveProps as Ee } from "vue";
|
|
2
|
+
import { VxeTable as Pe, VxeColumn as Y } 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 Z } from "vxe-pc-ui";
|
|
6
6
|
import { isUndefined as b, omit as Ne } from "lodash-unified";
|
|
7
7
|
import { ApForm as Te } 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 ee, updateFormProps as _e, getFieldProps as Ae, getSearchFormItemRenderNode as Ve, recursionApColumns as oe } from "../ap-table/utils.mjs";
|
|
11
11
|
import { useTablePaging as Le } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
12
|
-
import { Empty as
|
|
12
|
+
import { Empty as ae, Pagination as De } from "@aplus-frontend/antdv";
|
|
13
13
|
import { useInnerParams as Oe } from "./hooks/use-inner-params.mjs";
|
|
14
14
|
import { toVxeProps as $e, getRowExpandProps as Ke, getRowSelectionProps as We } from "./utils/table.mjs";
|
|
15
15
|
import je from "../ap-table/hooks/use-table-row-selection.mjs";
|
|
@@ -110,28 +110,28 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
110
110
|
expandable: {},
|
|
111
111
|
value: {}
|
|
112
112
|
},
|
|
113
|
-
setup(
|
|
114
|
-
var
|
|
115
|
-
const
|
|
116
|
-
w && !w.__VXE_PC_UI_INSTALLED__ && (w.use(
|
|
117
|
-
const { e: E, b: c, be:
|
|
118
|
-
|
|
119
|
-
i18n: (e, r) =>
|
|
113
|
+
setup(re, { expose: te }) {
|
|
114
|
+
var G;
|
|
115
|
+
const O = Be(), a = re, w = (G = Fe()) == null ? void 0 : G.appContext.app;
|
|
116
|
+
w && !w.__VXE_PC_UI_INSTALLED__ && (w.use(Z), w.__VXE_PC_UI_INSTALLED__ = !0);
|
|
117
|
+
const { e: E, b: c, be: le } = Je("ap-grid"), ne = Qe("valueTypeMap"), d = k([]), $ = k([]), m = k(), C = k(a.size), [, i] = Xe(), { t: se } = Ye();
|
|
118
|
+
Z.setConfig({
|
|
119
|
+
i18n: (e, r) => se(`ap.${e}`, r)
|
|
120
120
|
});
|
|
121
|
-
const { renderConfig:
|
|
122
|
-
let
|
|
123
|
-
const
|
|
121
|
+
const { renderConfig: de, updateSignal: ie } = Ge(d);
|
|
122
|
+
let K = 0;
|
|
123
|
+
const ce = n(() => {
|
|
124
124
|
if (m.value)
|
|
125
125
|
return m.value.$el.querySelector(
|
|
126
126
|
".vxe-table--header-inner-wrapper"
|
|
127
127
|
);
|
|
128
|
-
}),
|
|
128
|
+
}), W = n(() => {
|
|
129
129
|
var e, r, l;
|
|
130
|
-
return
|
|
130
|
+
return K++, ((l = (r = (e = a.columns) == null ? void 0 : e.filter(
|
|
131
131
|
(t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !ze.includes(t.valueType)
|
|
132
132
|
)) == null ? void 0 : r.sort((t, u) => {
|
|
133
|
-
let y =
|
|
134
|
-
return
|
|
133
|
+
let y = ee(t.order);
|
|
134
|
+
return ee(u.order) - y;
|
|
135
135
|
})) == null ? void 0 : l.map((t) => {
|
|
136
136
|
const u = _e(
|
|
137
137
|
t,
|
|
@@ -142,39 +142,39 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
142
142
|
label: t.title,
|
|
143
143
|
name: t.dataIndex,
|
|
144
144
|
...u || {},
|
|
145
|
-
_signal:
|
|
145
|
+
_signal: K
|
|
146
146
|
},
|
|
147
147
|
renderNode: void 0
|
|
148
148
|
};
|
|
149
149
|
return y.renderNode = Ve(
|
|
150
150
|
y,
|
|
151
|
-
o(
|
|
151
|
+
o(ne)
|
|
152
152
|
), y;
|
|
153
153
|
})) || [];
|
|
154
|
-
}),
|
|
154
|
+
}), ue = n(() => [
|
|
155
155
|
c(),
|
|
156
156
|
a.card ? null : c("wrapper"),
|
|
157
157
|
a.adaptive ? c("adaptive") : null,
|
|
158
158
|
a.sticky ? c("sticky") : null
|
|
159
|
-
].filter(Boolean)),
|
|
159
|
+
].filter(Boolean)), j = n(() => oe(o(d), (e) => {
|
|
160
160
|
if (e.sorter === !0)
|
|
161
161
|
return e.key || e.dataIndex;
|
|
162
|
-
}).filter(Boolean)),
|
|
162
|
+
}).filter(Boolean)), H = n(() => oe(o(d), (e) => {
|
|
163
163
|
if (e.filters && !e.onFilter)
|
|
164
164
|
return e.key || e.dataIndex;
|
|
165
165
|
}).filter(Boolean)), {
|
|
166
166
|
formRef: P,
|
|
167
|
-
submit:
|
|
168
|
-
reset:
|
|
169
|
-
refresh:
|
|
167
|
+
submit: N,
|
|
168
|
+
reset: T,
|
|
169
|
+
refresh: pe,
|
|
170
170
|
data: f,
|
|
171
171
|
tableProps: M,
|
|
172
|
-
setDataSource:
|
|
173
|
-
handleTableChange:
|
|
172
|
+
setDataSource: me,
|
|
173
|
+
handleTableChange: fe
|
|
174
174
|
} = Le({
|
|
175
175
|
async request(e) {
|
|
176
176
|
var l;
|
|
177
|
-
if (!R.value.preserveSelectedRowKeys && b(a.dataSource) &&
|
|
177
|
+
if (!R.value.preserveSelectedRowKeys && b(a.dataSource) && _(), !b(a.dataSource)) {
|
|
178
178
|
const t = e.pageSize * (e.current - 1);
|
|
179
179
|
return {
|
|
180
180
|
data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(t, t + e.pageSize)) || [],
|
|
@@ -188,17 +188,17 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
188
188
|
};
|
|
189
189
|
},
|
|
190
190
|
namespace: "ap-grid",
|
|
191
|
-
filterFields:
|
|
192
|
-
sortFields:
|
|
191
|
+
filterFields: H,
|
|
192
|
+
sortFields: j,
|
|
193
193
|
defaultParams: a.params,
|
|
194
194
|
defaultData: a.defaultData,
|
|
195
195
|
manual: a.manual,
|
|
196
196
|
formatParams: a.beforeSearchSubmit,
|
|
197
197
|
pagination: a.pagination
|
|
198
|
-
}), { sortChangeEvent:
|
|
198
|
+
}), { sortChangeEvent: ge, filterChangeEvent: he, paginationChangeEvent: ve } = Oe(fe);
|
|
199
199
|
He({
|
|
200
200
|
columns: n(() => d.value),
|
|
201
|
-
columnsBackup: n(() =>
|
|
201
|
+
columnsBackup: n(() => $.value),
|
|
202
202
|
size: n(() => C.value ? qe[C.value] : "middle"),
|
|
203
203
|
updateColumns(e) {
|
|
204
204
|
var r;
|
|
@@ -208,48 +208,52 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
208
208
|
C.value = Me[e];
|
|
209
209
|
},
|
|
210
210
|
renderConfig: n(() => ({
|
|
211
|
-
className:
|
|
211
|
+
className: le("table-header", "title"),
|
|
212
212
|
color: i.value.colorPrimary
|
|
213
213
|
})),
|
|
214
|
-
dataSource: n(() => o(f).records)
|
|
214
|
+
dataSource: n(() => o(f).records),
|
|
215
|
+
getSearchFormValues: U,
|
|
216
|
+
setSearchFormValues: q,
|
|
217
|
+
submit: N,
|
|
218
|
+
reset: T
|
|
215
219
|
});
|
|
216
|
-
const
|
|
220
|
+
const Ce = n(
|
|
217
221
|
() => d.value.some(
|
|
218
222
|
(e) => e.fixed === "left" || e.fixed === !0
|
|
219
223
|
) ? "left" : void 0
|
|
220
|
-
),
|
|
224
|
+
), ye = n(
|
|
221
225
|
() => b(a.loading) ? f.loading : a.loading
|
|
222
|
-
),
|
|
226
|
+
), Se = n(
|
|
223
227
|
() => b(a.dataSource) ? f.records : a.dataSource
|
|
224
|
-
), { selectedRows: x, rowSelection: R, ...
|
|
228
|
+
), { selectedRows: x, rowSelection: R, ...be } = je({
|
|
225
229
|
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
226
|
-
dataSource:
|
|
230
|
+
dataSource: Se,
|
|
227
231
|
rowKey: a.rowKey
|
|
228
|
-
}),
|
|
232
|
+
}), z = () => {
|
|
229
233
|
const e = m.value;
|
|
230
234
|
e && (x.value = [
|
|
231
235
|
...e.getCheckboxReserveRecords(),
|
|
232
236
|
...e.getCheckboxRecords()
|
|
233
237
|
]);
|
|
234
|
-
},
|
|
238
|
+
}, we = () => {
|
|
235
239
|
const e = m.value;
|
|
236
240
|
e && (x.value = [e.getRadioRecord()]);
|
|
237
241
|
};
|
|
238
|
-
function
|
|
242
|
+
function xe() {
|
|
239
243
|
var e;
|
|
240
244
|
return ((e = a.columns) == null ? void 0 : e.filter((r) => !r.hideInTable)) || [];
|
|
241
245
|
}
|
|
242
|
-
function
|
|
246
|
+
function q(e) {
|
|
243
247
|
var r, l, t;
|
|
244
248
|
(t = (l = (r = P.value) == null ? void 0 : r.apForm) == null ? void 0 : l.setFieldsValue) == null || t.call(l, e);
|
|
245
249
|
}
|
|
246
|
-
function
|
|
250
|
+
function U(e = !1) {
|
|
247
251
|
var l, t, u;
|
|
248
252
|
const r = e ? "getFieldsValueTransformed" : "getFieldsValue";
|
|
249
253
|
return (u = (t = (l = P.value) == null ? void 0 : l.apForm) == null ? void 0 : t[r]) == null ? void 0 : u.call(t, !0);
|
|
250
254
|
}
|
|
251
|
-
function
|
|
252
|
-
|
|
255
|
+
function _() {
|
|
256
|
+
be.clearAll();
|
|
253
257
|
const e = m.value;
|
|
254
258
|
e && (R.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
|
|
255
259
|
}
|
|
@@ -263,8 +267,8 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
263
267
|
() => [a.columnResizable, a.columns],
|
|
264
268
|
() => {
|
|
265
269
|
var r;
|
|
266
|
-
const e =
|
|
267
|
-
d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e),
|
|
270
|
+
const e = xe();
|
|
271
|
+
d.value = e, (r = a.onShownColumnsChange) == null || r.call(a, e), $.value = e;
|
|
268
272
|
},
|
|
269
273
|
{
|
|
270
274
|
deep: !0,
|
|
@@ -273,7 +277,7 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
273
277
|
), B(
|
|
274
278
|
() => a.dataSource,
|
|
275
279
|
(e) => {
|
|
276
|
-
|
|
280
|
+
me(e);
|
|
277
281
|
},
|
|
278
282
|
{ immediate: !0, deep: !0 }
|
|
279
283
|
), B(
|
|
@@ -287,38 +291,38 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
287
291
|
(e) => {
|
|
288
292
|
C.value = e;
|
|
289
293
|
}
|
|
290
|
-
),
|
|
291
|
-
submit:
|
|
292
|
-
reset:
|
|
293
|
-
refresh:
|
|
294
|
-
setSearchFormValues:
|
|
295
|
-
getSearchFormValues:
|
|
294
|
+
), te({
|
|
295
|
+
submit: N,
|
|
296
|
+
reset: T,
|
|
297
|
+
refresh: pe,
|
|
298
|
+
setSearchFormValues: q,
|
|
299
|
+
getSearchFormValues: U,
|
|
296
300
|
getShowColumns: () => o(d),
|
|
297
301
|
rowSelection: {
|
|
298
302
|
selectedRows: n(() => x.value),
|
|
299
|
-
clearAll:
|
|
303
|
+
clearAll: _
|
|
300
304
|
},
|
|
301
305
|
scrollToRow: Re,
|
|
302
306
|
getDataSource: () => o(f.records)
|
|
303
307
|
}), (e, r) => (s(), F("div", {
|
|
304
|
-
class: g(
|
|
305
|
-
style:
|
|
308
|
+
class: g(ue.value),
|
|
309
|
+
style: A(e.wrapperStyle)
|
|
306
310
|
}, [
|
|
307
|
-
o(b)(e.dataSource) && e.searchForm !== !1 &&
|
|
311
|
+
o(b)(e.dataSource) && e.searchForm !== !1 && W.value.length > 0 ? (s(), F("div", {
|
|
308
312
|
key: 0,
|
|
309
313
|
class: g(e.card ? o(E)("search-wrapper") : null),
|
|
310
|
-
style:
|
|
314
|
+
style: A(e.searchFormWrapperStyle)
|
|
311
315
|
}, [
|
|
312
|
-
|
|
316
|
+
X(o(Te).SearchForm, h(e.searchForm || {}, {
|
|
313
317
|
ref_key: "formRef",
|
|
314
318
|
ref: P,
|
|
315
319
|
"custom-reset": "",
|
|
316
320
|
"submit-loading": o(M).loading,
|
|
317
|
-
onSubmit: o(
|
|
318
|
-
onReset: o(
|
|
319
|
-
}),
|
|
321
|
+
onSubmit: o(N),
|
|
322
|
+
onReset: o(T)
|
|
323
|
+
}), J({
|
|
320
324
|
default: v(() => [
|
|
321
|
-
(s(!0), F(
|
|
325
|
+
(s(!0), F(Q, null, V(W.value, (l) => (s(), p(L(l.renderNode.Comp), h({
|
|
322
326
|
key: l.dataIndex,
|
|
323
327
|
item: l,
|
|
324
328
|
ref_for: !0
|
|
@@ -329,10 +333,10 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
329
333
|
]),
|
|
330
334
|
_: 2
|
|
331
335
|
}, [
|
|
332
|
-
|
|
336
|
+
O.searchFormExtra ? {
|
|
333
337
|
name: "extra",
|
|
334
338
|
fn: v(() => [
|
|
335
|
-
|
|
339
|
+
D(e.$slots, "searchFormExtra")
|
|
336
340
|
]),
|
|
337
341
|
key: "0"
|
|
338
342
|
} : void 0
|
|
@@ -340,16 +344,16 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
340
344
|
], 6)) : S("", !0),
|
|
341
345
|
I("div", {
|
|
342
346
|
class: g([o(E)("table-wrapper"), e.card ? o(E)("table-wrapper-card") : null]),
|
|
343
|
-
style:
|
|
347
|
+
style: A(e.tableWrapperStyle)
|
|
344
348
|
}, [
|
|
345
349
|
I("div", {
|
|
346
350
|
class: g(o(c)("header-wrapper"))
|
|
347
351
|
}, [
|
|
348
|
-
|
|
352
|
+
D(e.$slots, "title", {
|
|
349
353
|
selectedRows: o(x),
|
|
350
354
|
selectedRowKeys: o(R).selectedRowKeys,
|
|
351
355
|
shownColumns: d.value,
|
|
352
|
-
clearAll:
|
|
356
|
+
clearAll: _
|
|
353
357
|
})
|
|
354
358
|
], 2),
|
|
355
359
|
I("div", {
|
|
@@ -358,11 +362,11 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
358
362
|
(s(), p(o(Pe), h(o($e)(a), {
|
|
359
363
|
ref_key: "tableRef",
|
|
360
364
|
ref: m,
|
|
361
|
-
key: o(
|
|
365
|
+
key: o(ie),
|
|
362
366
|
data: o(f).records,
|
|
363
|
-
"sort-config": { remote:
|
|
364
|
-
"filter-config": { remote:
|
|
365
|
-
loading:
|
|
367
|
+
"sort-config": { remote: j.value.length > 0 },
|
|
368
|
+
"filter-config": { remote: H.value.length > 0 },
|
|
369
|
+
loading: ye.value,
|
|
366
370
|
style: {
|
|
367
371
|
"--vxe-ui-table-row-checkbox-checked-background-color": o(i).controlItemBgActive,
|
|
368
372
|
"--vxe-ui-table-row-hover-checkbox-checked-background-color": o(i).controlItemBgActiveHover,
|
|
@@ -377,36 +381,36 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
377
381
|
"--vxe-ui-table-header-font-color": o(i).colorTextBase
|
|
378
382
|
},
|
|
379
383
|
size: C.value,
|
|
380
|
-
onSortChange: o(
|
|
381
|
-
onFilterChange: o(
|
|
382
|
-
onCheckboxChange:
|
|
383
|
-
onCheckboxRangeChange:
|
|
384
|
-
onCheckboxAll:
|
|
385
|
-
onRadioChange:
|
|
386
|
-
}),
|
|
384
|
+
onSortChange: o(ge),
|
|
385
|
+
onFilterChange: o(he),
|
|
386
|
+
onCheckboxChange: z,
|
|
387
|
+
onCheckboxRangeChange: z,
|
|
388
|
+
onCheckboxAll: z,
|
|
389
|
+
onRadioChange: we
|
|
390
|
+
}), J({
|
|
387
391
|
empty: v(() => [
|
|
388
|
-
|
|
389
|
-
image: o(
|
|
392
|
+
X(o(ae), {
|
|
393
|
+
image: o(ae).PRESENTED_IMAGE_SIMPLE
|
|
390
394
|
}, null, 8, ["image"])
|
|
391
395
|
]),
|
|
392
396
|
default: v(() => [
|
|
393
|
-
a.expandable ? (s(), p(o(
|
|
397
|
+
a.expandable ? (s(), p(o(Y), h({ key: 0 }, o(Ke)(e.expandable), { fixed: Ce.value }), {
|
|
394
398
|
content: v((l) => [
|
|
395
|
-
(s(), p(
|
|
399
|
+
(s(), p(L(a.expandable.renderContent(l))))
|
|
396
400
|
]),
|
|
397
401
|
_: 1
|
|
398
402
|
}, 16, ["fixed"])) : S("", !0),
|
|
399
|
-
a.rowSelection ? (s(), p(o(
|
|
400
|
-
(s(!0), F(
|
|
403
|
+
a.rowSelection ? (s(), p(o(Y), h({ key: 1 }, o(We)(o(R), d.value), { field: o(Ue) }), null, 16, ["field"])) : S("", !0),
|
|
404
|
+
(s(!0), F(Q, null, V(o(de), (l) => (s(), p(L(l), {
|
|
401
405
|
key: l.props.colId
|
|
402
406
|
}))), 128))
|
|
403
407
|
]),
|
|
404
408
|
_: 2
|
|
405
409
|
}, [
|
|
406
|
-
|
|
410
|
+
V(o(Ne)(O, ["searchFormExtra"]), (l, t) => ({
|
|
407
411
|
name: t,
|
|
408
412
|
fn: v((u) => [
|
|
409
|
-
|
|
413
|
+
D(e.$slots, t, Ie(Ee(u || {})))
|
|
410
414
|
])
|
|
411
415
|
}))
|
|
412
416
|
]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
|
|
@@ -417,13 +421,13 @@ const Bo = /* @__PURE__ */ ke({
|
|
|
417
421
|
e.sticky ? (s(), p(o(Ze), {
|
|
418
422
|
key: 0,
|
|
419
423
|
direction: "horizontal",
|
|
420
|
-
"scroll-container":
|
|
424
|
+
"scroll-container": ce.value,
|
|
421
425
|
"extra-size": -4.2
|
|
422
426
|
}, null, 8, ["scroll-container"])) : S("", !0),
|
|
423
427
|
e.pagination !== !1 ? (s(), p(o(De), h({
|
|
424
428
|
key: 1,
|
|
425
429
|
class: o(c)("pagination")
|
|
426
|
-
}, o(M).pagination, { onChange: o(
|
|
430
|
+
}, o(M).pagination, { onChange: o(ve) }), null, 16, ["class", "onChange"])) : S("", !0)
|
|
427
431
|
], 2)
|
|
428
432
|
], 6)
|
|
429
433
|
], 6));
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as n, computed as s, onMounted as a, createBlock as i, openBlock as p, resolveDynamicComponent as m, normalizeProps as l, guardReactiveProps as c, createSlots as d, renderList as u, withCtx as f, renderSlot as _ } 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";
|
|
5
|
-
import {
|
|
5
|
+
import { isProdMode as b } from "@aplus-frontend/utils";
|
|
6
|
+
import { useGlobalConfig as v } from "../config-provider/hooks/use-global-config.mjs";
|
|
6
7
|
import y from "./ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs";
|
|
7
|
-
import
|
|
8
|
-
const
|
|
8
|
+
import h from "./ap-info-layout-aplus/ap-info-layout.vue2.mjs";
|
|
9
|
+
const g = /* @__PURE__ */ n({
|
|
9
10
|
__name: "ApInfoLayout",
|
|
10
11
|
props: {
|
|
11
12
|
headerStyle: {},
|
|
@@ -13,29 +14,33 @@ const D = /* @__PURE__ */ a({
|
|
|
13
14
|
toEl: {},
|
|
14
15
|
telDisabled: { type: Boolean }
|
|
15
16
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const r =
|
|
18
|
-
let
|
|
17
|
+
setup(C) {
|
|
18
|
+
const r = v("uiMode", "aplus"), t = s(() => {
|
|
19
|
+
let o;
|
|
19
20
|
switch (r.value) {
|
|
20
21
|
case "aplus":
|
|
21
|
-
|
|
22
|
+
o = h;
|
|
22
23
|
break;
|
|
23
24
|
case "admin":
|
|
24
|
-
|
|
25
|
+
o = y;
|
|
25
26
|
break;
|
|
26
27
|
}
|
|
27
|
-
return
|
|
28
|
+
return o;
|
|
28
29
|
});
|
|
29
|
-
return (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
return a(() => {
|
|
31
|
+
b() || console.warn(
|
|
32
|
+
"[DEPRECATED] This component is deprecated and will be removed in next minor version. "
|
|
33
|
+
);
|
|
34
|
+
}), (o, $) => (p(), i(m(t.value), l(c(o.$props)), d({ _: 2 }, [
|
|
35
|
+
u(o.$slots, (k, e) => ({
|
|
36
|
+
name: e,
|
|
37
|
+
fn: f(() => [
|
|
38
|
+
_(o.$slots, e)
|
|
34
39
|
])
|
|
35
40
|
}))
|
|
36
41
|
]), 1040));
|
|
37
42
|
}
|
|
38
43
|
});
|
|
39
44
|
export {
|
|
40
|
-
|
|
45
|
+
g as default
|
|
41
46
|
};
|