@aplus-frontend/ui 0.5.36 → 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/editable/form-item.vue.mjs +62 -56
- package/es/src/ap-grid/editable/index.vue.mjs +82 -76
- 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-list/index.vue.mjs +145 -138
- package/es/src/ap-list/interface.d.ts +4 -0
- 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/hooks/use-table-paging-ng.mjs +28 -30
- 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/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/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-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +4 -0
- 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/hooks/use-table-paging-ng.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 +66 -4
- package/theme/ap-list/index.less +41 -3
- 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 +378 -19
- 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,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
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Empty as
|
|
3
|
-
import { useTablePaging as
|
|
1
|
+
import { defineComponent as X, ref as Y, unref as e, computed as p, watch as Z, createElementBlock as s, openBlock as i, normalizeStyle as v, normalizeClass as l, renderSlot as u, createElementVNode as _, createCommentVNode as I, createVNode as g, Fragment as E, createBlock as O, withCtx as h, renderList as x, mergeProps as ee } from "vue";
|
|
2
|
+
import { Empty as V, Spin as te, Pagination as ae } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useTablePaging as ne } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
|
-
import { isUndefined as
|
|
6
|
-
import { useOfflineList as
|
|
5
|
+
import { isUndefined as F, isNumber as re, omit as oe } from "lodash-unified";
|
|
6
|
+
import { useOfflineList as ie } from "./hooks/use-offline-list.mjs";
|
|
7
7
|
import "vue-virtual-scroller/dist/vue-virtual-scroller.css";
|
|
8
|
-
import { RecycleScroller as
|
|
9
|
-
import { useNamespace as
|
|
10
|
-
const
|
|
8
|
+
import { RecycleScroller as le, DynamicScroller as se, DynamicScrollerItem as ue } from "vue-virtual-scroller";
|
|
9
|
+
import { useNamespace as ce } from "../config-provider/hooks/use-namespace.mjs";
|
|
10
|
+
const be = /* @__PURE__ */ X({
|
|
11
11
|
__name: "index",
|
|
12
12
|
props: {
|
|
13
13
|
dataSource: {},
|
|
@@ -24,22 +24,23 @@ const he = /* @__PURE__ */ H({
|
|
|
24
24
|
contentStyle: { type: [Boolean, null, String, Object, Array] },
|
|
25
25
|
footerWarpperStyle: { type: [Boolean, null, String, Object, Array] },
|
|
26
26
|
virtual: { default: void 0 },
|
|
27
|
-
rowKey: {}
|
|
27
|
+
rowKey: {},
|
|
28
|
+
adaptive: { type: Boolean, default: !1 }
|
|
28
29
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
30
|
+
setup(L, { expose: N }) {
|
|
31
|
+
const R = V.PRESENTED_IMAGE_SIMPLE, n = L, { b: m, e: y, bm: T, m: $ } = ce("ap-list"), b = Y(), {
|
|
31
32
|
formRef: k,
|
|
32
33
|
submit: w,
|
|
33
|
-
reset:
|
|
34
|
-
handleTableChange:
|
|
35
|
-
data:
|
|
36
|
-
refresh:
|
|
37
|
-
refreshByDelete:
|
|
38
|
-
tableProps:
|
|
39
|
-
} =
|
|
40
|
-
async request(
|
|
34
|
+
reset: B,
|
|
35
|
+
handleTableChange: j,
|
|
36
|
+
data: S,
|
|
37
|
+
refresh: q,
|
|
38
|
+
refreshByDelete: A,
|
|
39
|
+
tableProps: D
|
|
40
|
+
} = ne({
|
|
41
|
+
async request(t) {
|
|
41
42
|
var r;
|
|
42
|
-
const a = await ((r = n.request) == null ? void 0 : r.call(n,
|
|
43
|
+
const a = await ((r = n.request) == null ? void 0 : r.call(n, t));
|
|
43
44
|
return {
|
|
44
45
|
data: (a == null ? void 0 : a.data) || [],
|
|
45
46
|
total: (a == null ? void 0 : a.total) || 0
|
|
@@ -50,143 +51,149 @@ const he = /* @__PURE__ */ H({
|
|
|
50
51
|
manual: n.manual,
|
|
51
52
|
pagination: n.pagination,
|
|
52
53
|
formatParams: n.beforeSearchSubmit
|
|
53
|
-
}),
|
|
54
|
-
pagination:
|
|
55
|
-
dataSource:
|
|
56
|
-
onChange:
|
|
57
|
-
} =
|
|
58
|
-
function
|
|
59
|
-
if (
|
|
60
|
-
|
|
54
|
+
}), K = { form: k }, {
|
|
55
|
+
pagination: z,
|
|
56
|
+
dataSource: M,
|
|
57
|
+
onChange: W
|
|
58
|
+
} = ie(n);
|
|
59
|
+
function G(t, a) {
|
|
60
|
+
if (e(f)) {
|
|
61
|
+
W(t, a);
|
|
61
62
|
return;
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
-
{ current:
|
|
64
|
+
j(
|
|
65
|
+
{ current: t, pageSize: a },
|
|
65
66
|
{},
|
|
66
67
|
{},
|
|
67
68
|
{ currentDataSource: [], action: "paginate" }
|
|
68
69
|
);
|
|
69
70
|
}
|
|
70
|
-
const
|
|
71
|
-
var
|
|
72
|
-
return n.pagination === !1 || n.virtual ? !1 : ((
|
|
73
|
-
}),
|
|
74
|
-
|
|
75
|
-
() =>
|
|
76
|
-
(
|
|
71
|
+
const c = p(() => e(f) ? e(M) : e(S).records), d = p(() => F(n.loading) ? e(S).loading : n.loading), U = p(() => {
|
|
72
|
+
var t, a;
|
|
73
|
+
return n.pagination === !1 || n.virtual ? !1 : ((t = n.pagination) == null ? void 0 : t.hideOnSinglePage) !== !0 ? !0 : e(f) ? (((a = n.dataSource) == null ? void 0 : a.length) || 0) > e(z).pageSize : e(S).total > e(D).pagination.pageSize;
|
|
74
|
+
}), f = p(() => !F(n.dataSource));
|
|
75
|
+
Z(
|
|
76
|
+
() => e(d),
|
|
77
|
+
(t) => {
|
|
77
78
|
var a;
|
|
78
|
-
(a = n.onLoadingChange) == null || a.call(n,
|
|
79
|
+
(a = n.onLoadingChange) == null || a.call(n, t);
|
|
79
80
|
}
|
|
80
81
|
);
|
|
81
|
-
function
|
|
82
|
+
function H(t) {
|
|
82
83
|
var a, r;
|
|
83
|
-
(r = (a = b.value) == null ? void 0 : a.querySelector(
|
|
84
|
+
(r = (a = b.value) == null ? void 0 : a.querySelector(t || ":first-child")) == null || r.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
+
function J(t = !1) {
|
|
86
87
|
var o;
|
|
87
|
-
const a = (o = k.value) == null ? void 0 : o.apForm, r =
|
|
88
|
+
const a = (o = k.value) == null ? void 0 : o.apForm, r = t ? a == null ? void 0 : a.getFieldsValueTransformed : a == null ? void 0 : a.getFieldsValue;
|
|
88
89
|
return (r == null ? void 0 : r()) || {};
|
|
89
90
|
}
|
|
90
|
-
return
|
|
91
|
+
return N({
|
|
91
92
|
submit: () => w(),
|
|
92
|
-
reset: () =>
|
|
93
|
-
refresh: () =>
|
|
94
|
-
refreshByDelete: (
|
|
95
|
-
scrollToFirstRow:
|
|
96
|
-
getSearchFormValuesIfSetted:
|
|
97
|
-
}), (
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
93
|
+
reset: () => B(),
|
|
94
|
+
refresh: () => q(),
|
|
95
|
+
refreshByDelete: (t) => A(t),
|
|
96
|
+
scrollToFirstRow: H,
|
|
97
|
+
getSearchFormValuesIfSetted: J
|
|
98
|
+
}), (t, a) => (i(), s("div", {
|
|
99
|
+
class: l([e(m)(), { [e($)("adaptive")]: t.adaptive }]),
|
|
100
|
+
style: v(t.containerStyle)
|
|
101
|
+
}, [
|
|
102
|
+
u(t.$slots, "header", {
|
|
103
|
+
formIns: K,
|
|
104
|
+
submit: e(w),
|
|
105
|
+
reset: e(B)
|
|
106
|
+
}),
|
|
107
|
+
_("div", {
|
|
108
|
+
class: l([
|
|
109
|
+
e(m)("content-container"),
|
|
110
|
+
{ [e(T)("content-container", "spinning")]: d.value }
|
|
111
|
+
])
|
|
112
|
+
}, [
|
|
113
|
+
d.value ? (i(), s("div", {
|
|
114
|
+
key: 0,
|
|
115
|
+
class: l(e(y)("spin-wrapper"))
|
|
105
116
|
}, [
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
_: 3
|
|
137
|
-
}, 8, ["class", "items", "item-size", "key-field"])) : (i(), S(t(ie), {
|
|
138
|
-
key: 1,
|
|
139
|
-
items: s.value,
|
|
140
|
-
"min-item-size": e.virtual.minItemSize,
|
|
141
|
-
class: f(t(u)("scroll-wrapper"))
|
|
142
|
-
}, {
|
|
143
|
-
default: d(({ item: r, index: o, active: U }) => {
|
|
144
|
-
var C, P;
|
|
145
|
-
return [
|
|
146
|
-
v(t(le), {
|
|
147
|
-
item: r,
|
|
148
|
-
active: U,
|
|
149
|
-
"data-index": o,
|
|
150
|
-
"size-dependencies": (P = (C = e.virtual).sizeDependencies) == null ? void 0 : P.call(C, r)
|
|
151
|
-
}, {
|
|
152
|
-
default: d(() => [
|
|
153
|
-
l(e.$slots, "renderItem", {
|
|
154
|
-
item: r,
|
|
155
|
-
index: o
|
|
156
|
-
})
|
|
157
|
-
]),
|
|
158
|
-
_: 2
|
|
159
|
-
}, 1032, ["item", "active", "data-index", "size-dependencies"])
|
|
160
|
-
];
|
|
161
|
-
}),
|
|
162
|
-
_: 3
|
|
163
|
-
}, 8, ["items", "min-item-size", "class"]))
|
|
164
|
-
], 64)) : l(e.$slots, "renderContent", {
|
|
117
|
+
g(e(te), { spinning: d.value }, null, 8, ["spinning"])
|
|
118
|
+
], 2)) : I("", !0),
|
|
119
|
+
c.value.length === 0 ? u(t.$slots, "empty", {
|
|
120
|
+
key: 1,
|
|
121
|
+
loading: d.value
|
|
122
|
+
}, () => [
|
|
123
|
+
g(e(V), { image: e(R) }, null, 8, ["image"])
|
|
124
|
+
]) : (i(), s("div", {
|
|
125
|
+
key: 2,
|
|
126
|
+
ref_key: "contentRef",
|
|
127
|
+
ref: b,
|
|
128
|
+
style: v(t.contentStyle),
|
|
129
|
+
class: l(e(y)("content"))
|
|
130
|
+
}, [
|
|
131
|
+
t.virtual ? (i(), s(E, { key: 0 }, [
|
|
132
|
+
e(re)(t.virtual) ? (i(), O(e(le), {
|
|
133
|
+
key: 0,
|
|
134
|
+
class: l(e(m)("scroll-wrapper")),
|
|
135
|
+
items: c.value,
|
|
136
|
+
"item-size": t.virtual,
|
|
137
|
+
"key-field": n.rowKey || "id"
|
|
138
|
+
}, {
|
|
139
|
+
default: h(({ item: r, index: o }) => [
|
|
140
|
+
u(t.$slots, "renderItem", {
|
|
141
|
+
item: r,
|
|
142
|
+
index: o
|
|
143
|
+
})
|
|
144
|
+
]),
|
|
145
|
+
_: 3
|
|
146
|
+
}, 8, ["class", "items", "item-size", "key-field"])) : (i(), O(e(se), {
|
|
165
147
|
key: 1,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
148
|
+
items: c.value,
|
|
149
|
+
"min-item-size": t.virtual.minItemSize,
|
|
150
|
+
class: l(e(m)("scroll-wrapper"))
|
|
151
|
+
}, {
|
|
152
|
+
default: h(({ item: r, index: o, active: Q }) => {
|
|
153
|
+
var C, P;
|
|
154
|
+
return [
|
|
155
|
+
g(e(ue), {
|
|
156
|
+
item: r,
|
|
157
|
+
active: Q,
|
|
158
|
+
"data-index": o,
|
|
159
|
+
"size-dependencies": (P = (C = t.virtual).sizeDependencies) == null ? void 0 : P.call(C, r)
|
|
160
|
+
}, {
|
|
161
|
+
default: h(() => [
|
|
162
|
+
u(t.$slots, "renderItem", {
|
|
163
|
+
item: r,
|
|
164
|
+
index: o
|
|
165
|
+
})
|
|
166
|
+
]),
|
|
167
|
+
_: 2
|
|
168
|
+
}, 1032, ["item", "active", "data-index", "size-dependencies"])
|
|
169
|
+
];
|
|
170
|
+
}),
|
|
171
|
+
_: 3
|
|
172
|
+
}, 8, ["items", "min-item-size", "class"]))
|
|
173
|
+
], 64)) : u(t.$slots, "renderContent", {
|
|
174
|
+
key: 1,
|
|
175
|
+
dataSource: c.value
|
|
176
|
+
}, () => [
|
|
177
|
+
(i(!0), s(E, null, x(c.value, (r, o) => u(t.$slots, "renderItem", {
|
|
178
|
+
item: r,
|
|
179
|
+
index: o
|
|
180
|
+
})), 256))
|
|
181
|
+
])
|
|
182
|
+
], 6))
|
|
183
|
+
], 2),
|
|
184
|
+
U.value ? (i(), s("div", {
|
|
185
|
+
key: 0,
|
|
186
|
+
class: l(e(y)("footer")),
|
|
187
|
+
style: v(t.footerWarpperStyle)
|
|
188
|
+
}, [
|
|
189
|
+
g(e(ae), ee(
|
|
190
|
+
f.value ? e(z) : e(oe)(e(D).pagination, ["showTotal"]),
|
|
191
|
+
{ onChange: G }
|
|
192
|
+
), null, 16)
|
|
193
|
+
], 6)) : I("", !0)
|
|
194
|
+
], 6));
|
|
188
195
|
}
|
|
189
196
|
});
|
|
190
197
|
export {
|
|
191
|
-
|
|
198
|
+
be as default
|
|
192
199
|
};
|