@aplus-frontend/ui 0.5.18 → 0.5.20
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 +231 -227
- 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.d.ts +3 -1
- package/es/src/ap-field/index.mjs +39 -35
- package/es/src/ap-field/interface.d.ts +33 -1
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.mjs +2 -2
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/index.vue.d.ts +1155 -0
- package/es/src/ap-field/tree-select/index.vue.mjs +251 -0
- package/es/src/ap-field/tree-select/index.vue2.mjs +4 -0
- package/es/src/ap-field/tree-select/style/css.d.ts +1 -0
- package/es/src/ap-field/tree-select/style/css.js +1 -0
- package/es/src/ap-field/tree-select/style/index.d.ts +1 -0
- package/es/src/ap-field/tree-select/style/index.js +1 -0
- package/es/src/ap-field/tree-select/use-request.d.ts +41 -0
- package/es/src/ap-field/tree-select/use-request.mjs +66 -0
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- 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/item-tree-select/style/css.d.ts +1 -0
- package/es/src/ap-form/item-tree-select/style/css.js +1 -0
- package/es/src/ap-form/item-tree-select/style/index.d.ts +1 -0
- package/es/src/ap-form/item-tree-select/style/index.js +1 -0
- 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/index.d.ts +2 -1
- package/es/src/ap-form/items/index.mjs +3 -2
- package/es/src/ap-form/items/interface.d.ts +6 -1
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +1244 -4
- package/es/src/ap-form/items/select/index.vue.mjs +25 -22
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +1585 -0
- package/es/src/ap-form/items/tree-select/index.vue.mjs +107 -0
- package/es/src/ap-form/items/tree-select/index.vue2.mjs +4 -0
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- 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 +3 -4
- 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 +2 -4
- package/es/src/ap-grid/editable/form-item.vue.mjs +32 -31
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +11 -10
- package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +102 -99
- package/es/src/ap-grid/interface.d.ts +1 -1
- 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 +2 -4
- 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 +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- 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.d.ts +4055 -1945
- package/es/src/ap-table/constants.mjs +53 -49
- 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/hooks/use-table-paging-ng.mjs +108 -107
- package/es/src/ap-table/interface.d.ts +13 -1
- package/es/src/ap-table/utils.d.ts +1462 -6
- 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 +2 -7
- 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 +2 -4
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- 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 -6
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +50 -50
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +40 -37
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +118 -122
- package/es/src/business/ap-ladder/index.d.ts +1 -3
- package/es/src/business/ap-ladder/interface.d.ts +16 -16
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- 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/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/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 +5 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +2 -4
- 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/index.mjs +230 -226
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/path-map.mjs +2 -0
- 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 +46 -41
- package/es/src/text/interface.d.ts +6 -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 +2 -3
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/index.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +3 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +33 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/index.vue.d.ts +1155 -0
- package/lib/src/ap-field/tree-select/index.vue.js +1 -0
- package/lib/src/ap-field/tree-select/index.vue2.js +1 -0
- package/lib/src/ap-field/tree-select/style/css.cjs +1 -0
- package/lib/src/ap-field/tree-select/style/css.d.ts +1 -0
- package/lib/src/ap-field/tree-select/style/index.cjs +1 -0
- package/lib/src/ap-field/tree-select/style/index.d.ts +1 -0
- package/lib/src/ap-field/tree-select/use-request.d.ts +41 -0
- package/lib/src/ap-field/tree-select/use-request.js +1 -0
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/item-tree-select/style/css.cjs +1 -0
- package/lib/src/ap-form/item-tree-select/style/css.d.ts +1 -0
- package/lib/src/ap-form/item-tree-select/style/index.cjs +1 -0
- package/lib/src/ap-form/item-tree-select/style/index.d.ts +1 -0
- package/lib/src/ap-form/items/index.d.ts +2 -1
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +6 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +1244 -4
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +1585 -0
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -0
- package/lib/src/ap-form/items/tree-select/index.vue2.js +1 -0
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.d.ts +4055 -1945
- 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/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +13 -1
- package/lib/src/ap-table/utils.d.ts +1462 -6
- 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 +2 -7
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -3
- package/lib/src/business/ap-ladder/interface.d.ts +16 -16
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/index.js +1 -1
- 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/index.vue.js +1 -1
- package/lib/src/text/interface.d.ts +6 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/package.json +1 -1
- package/theme/ap-ladder/ap-ladder.css +41 -1
- package/theme/ap-ladder/ap-ladder.less +41 -2
- package/theme/index.css +41 -1
|
@@ -3,59 +3,63 @@ import "../ap-field/index.mjs";
|
|
|
3
3
|
import "../ap-form/index.mjs";
|
|
4
4
|
import "./components/index/index.vue.mjs";
|
|
5
5
|
import "./components/status/index.vue.mjs";
|
|
6
|
-
import o from "../ap-form/items/
|
|
7
|
-
import r from "../ap-form/items/date-range/index.vue.mjs";
|
|
8
|
-
import i from "../ap-form/items/number/index.vue.mjs";
|
|
9
|
-
import t from "../ap-form/items/radio/index.vue.mjs";
|
|
10
|
-
import a from "../ap-form/items/select/index.vue.mjs";
|
|
11
|
-
import f from "../ap-form/items/switch/index.vue.mjs";
|
|
6
|
+
import o from "../ap-form/items/tree-select/index.vue.mjs";
|
|
12
7
|
import { ApFormItemText as m } from "../ap-form/items/text/index.mjs";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
textArea: _,
|
|
37
|
-
checkbox: e,
|
|
38
|
-
password: m.Password
|
|
39
|
-
}, W = {
|
|
8
|
+
import r from "../ap-form/items/checkbox/index.vue.mjs";
|
|
9
|
+
import t from "../ap-form/items/text-area/index.vue.mjs";
|
|
10
|
+
import i from "../ap-form/items/switch/index.vue.mjs";
|
|
11
|
+
import f from "../ap-form/items/select/index.vue.mjs";
|
|
12
|
+
import a from "../ap-form/items/radio/index.vue.mjs";
|
|
13
|
+
import e from "../ap-form/items/number/index.vue.mjs";
|
|
14
|
+
import _ from "../ap-form/items/date-range/index.vue.mjs";
|
|
15
|
+
import s from "../ap-form/items/date/index.vue.mjs";
|
|
16
|
+
import c from "../ap-field/tree-select/index.vue.mjs";
|
|
17
|
+
import p from "../ap-field/text/password.vue.mjs";
|
|
18
|
+
import n from "./components/status/index.vue2.mjs";
|
|
19
|
+
import $ from "./components/index/index.vue2.mjs";
|
|
20
|
+
import d from "../ap-action/group/index.vue.mjs";
|
|
21
|
+
import x from "../ap-field/checkbox/index.vue.mjs";
|
|
22
|
+
import l from "../ap-field/text-area/index.vue.mjs";
|
|
23
|
+
import { ApFieldText as b } from "../ap-field/text/index.mjs";
|
|
24
|
+
import h from "../ap-field/switch/index.vue.mjs";
|
|
25
|
+
import w from "../ap-field/select/index.vue.mjs";
|
|
26
|
+
import A from "../ap-field/radio/index.vue.mjs";
|
|
27
|
+
import u from "../ap-field/number/index.vue.mjs";
|
|
28
|
+
import F from "../ap-field/date-range/index.vue.mjs";
|
|
29
|
+
import I from "../ap-field/date/index.vue.mjs";
|
|
30
|
+
const Z = {
|
|
40
31
|
date: s,
|
|
41
|
-
dateRange:
|
|
42
|
-
number:
|
|
43
|
-
radio:
|
|
44
|
-
select:
|
|
45
|
-
switch:
|
|
46
|
-
text:
|
|
47
|
-
textArea:
|
|
48
|
-
checkbox:
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
32
|
+
dateRange: _,
|
|
33
|
+
number: e,
|
|
34
|
+
radio: a,
|
|
35
|
+
select: f,
|
|
36
|
+
switch: i,
|
|
37
|
+
text: m,
|
|
38
|
+
textArea: t,
|
|
39
|
+
checkbox: r,
|
|
40
|
+
password: m.Password,
|
|
41
|
+
treeSelect: o
|
|
42
|
+
}, mm = {
|
|
43
|
+
date: I,
|
|
44
|
+
dateRange: F,
|
|
45
|
+
number: u,
|
|
46
|
+
radio: A,
|
|
47
|
+
select: w,
|
|
48
|
+
switch: h,
|
|
49
|
+
text: b,
|
|
50
|
+
textArea: l,
|
|
51
|
+
checkbox: x,
|
|
52
|
+
action: d,
|
|
53
|
+
index: $,
|
|
54
|
+
status: n,
|
|
55
|
+
password: p,
|
|
56
|
+
treeSelect: c
|
|
57
|
+
}, om = [
|
|
54
58
|
"action",
|
|
55
59
|
"index"
|
|
56
60
|
];
|
|
57
61
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
Z as apTableFormItemMap,
|
|
63
|
+
mm as apTableRenderItemMap,
|
|
64
|
+
om as noRenderAsFormItemValueList
|
|
61
65
|
};
|
|
@@ -4,18 +4,18 @@ export declare const useTableColumnState: (columnSetting: ApTableSettingType, pe
|
|
|
4
4
|
columnState: Ref<{
|
|
5
5
|
key: string | number;
|
|
6
6
|
show?: boolean | undefined;
|
|
7
|
-
fixed?:
|
|
7
|
+
fixed?: "left" | "right" | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
label?: any;
|
|
10
|
-
children?: any[] | undefined;
|
|
10
|
+
children?: /*elided*/ any[] | undefined;
|
|
11
11
|
order?: number | undefined;
|
|
12
12
|
}[], ApColumnState[] | {
|
|
13
13
|
key: string | number;
|
|
14
14
|
show?: boolean | undefined;
|
|
15
|
-
fixed?:
|
|
15
|
+
fixed?: "left" | "right" | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
label?: any;
|
|
18
|
-
children?: any[] | undefined;
|
|
18
|
+
children?: /*elided*/ any[] | undefined;
|
|
19
19
|
order?: number | undefined;
|
|
20
20
|
}[]>;
|
|
21
21
|
selectAll: () => void;
|
|
@@ -2,7 +2,7 @@ import { ref as P, shallowRef as W, unref as i, computed as X, watchEffect as q
|
|
|
2
2
|
import { isDef as H } from "../../utils/index.mjs";
|
|
3
3
|
import L, { customCloneColumnStates as T, getColumnStateString as Q } from "../components/setting/utils.mjs";
|
|
4
4
|
import { useInjectApTable as U } from "../context.mjs";
|
|
5
|
-
import { isObject as N, mergeWith as F, isBoolean as V,
|
|
5
|
+
import { isObject as N, mergeWith as F, isBoolean as V, omit as Y, isString as Z, isNumber as B } from "lodash-unified";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
7
|
import { useToken as $ } from "@aplus-frontend/antdv/es/theme/internal";
|
|
8
8
|
import { getTableTitle as K } from "../utils.mjs";
|
|
@@ -46,7 +46,7 @@ const he = (r, o, n) => {
|
|
|
46
46
|
var y, A;
|
|
47
47
|
const b = (m == null ? void 0 : m[f.key]) || {}, g = {
|
|
48
48
|
key: f.key,
|
|
49
|
-
label:
|
|
49
|
+
label: Z(f.title) ? K(
|
|
50
50
|
f,
|
|
51
51
|
a("table-header", "title"),
|
|
52
52
|
void 0,
|
|
@@ -60,7 +60,7 @@ const he = (r, o, n) => {
|
|
|
60
60
|
G
|
|
61
61
|
),
|
|
62
62
|
disabled: !1,
|
|
63
|
-
...
|
|
63
|
+
...Y(b, ["children", "fixed"])
|
|
64
64
|
};
|
|
65
65
|
return g.children = (A = f.children) != null && A.length ? d(
|
|
66
66
|
f.children,
|
|
@@ -1,140 +1,141 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as ne, reactive as J, unref as S, nextTick as ae, onMounted as se, watch as ie, computed as D, createVNode as b } from "vue";
|
|
2
2
|
import { useTableSortedAndFiltered as ce } from "./use-sorted-filtered.mjs";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { parseFieldValue as
|
|
5
|
-
import { isArray as N, isEqualWith as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
4
|
+
import { parseFieldValue as le, dataIndexToStr as ue, isEqualCustom as fe } from "../utils.mjs";
|
|
5
|
+
import { isArray as N, isEqualWith as ge } from "lodash-unified";
|
|
6
|
+
import { isDef as Q } from "../../utils/index.mjs";
|
|
7
|
+
import { useLocale as pe } from "../../config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { useNamespace as de } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
const z = 1, L = 10;
|
|
10
|
+
function me(g) {
|
|
10
11
|
const l = {};
|
|
11
|
-
return g && (g === !0 ? (l.current =
|
|
12
|
+
return g && (g === !0 ? (l.current = z, l.pageSize = L) : (l.current = g.defaultCurrent || z, l.pageSize = g.defaultPageSize || L)), l;
|
|
12
13
|
}
|
|
13
|
-
const
|
|
14
|
+
const xe = ({
|
|
14
15
|
manual: g = !1,
|
|
15
16
|
request: l,
|
|
16
17
|
defaultParams: v = {},
|
|
17
18
|
defaultData: y = [],
|
|
18
|
-
formatParams:
|
|
19
|
-
paramsValueTypeMap:
|
|
20
|
-
resetFieldsIgnores:
|
|
19
|
+
formatParams: R,
|
|
20
|
+
paramsValueTypeMap: I,
|
|
21
|
+
resetFieldsIgnores: V,
|
|
21
22
|
filterFields: U,
|
|
22
23
|
sortFields: B,
|
|
23
24
|
namespace: K = "ap-table",
|
|
24
25
|
pagination: p = {
|
|
25
|
-
defaultCurrent:
|
|
26
|
+
defaultCurrent: z,
|
|
26
27
|
defaultPageSize: L,
|
|
27
28
|
showLessItems: !1,
|
|
28
29
|
showTotal: !0
|
|
29
30
|
}
|
|
30
31
|
}) => {
|
|
31
|
-
let
|
|
32
|
-
const
|
|
33
|
-
getColumnSFConfig:
|
|
34
|
-
setSF:
|
|
35
|
-
clearAll:
|
|
36
|
-
sortedInfo:
|
|
37
|
-
filteredInfo:
|
|
32
|
+
let E = 0, s = {};
|
|
33
|
+
const d = p ?? {}, M = (e) => R ? R(e) : e, T = ne(), i = J(me(p)), {
|
|
34
|
+
getColumnSFConfig: $,
|
|
35
|
+
setSF: G,
|
|
36
|
+
clearAll: W,
|
|
37
|
+
sortedInfo: Z,
|
|
38
|
+
filteredInfo: H
|
|
38
39
|
} = ce(), {
|
|
39
|
-
t:
|
|
40
|
-
} =
|
|
40
|
+
t: w
|
|
41
|
+
} = pe(), {
|
|
41
42
|
b: P
|
|
42
|
-
} =
|
|
43
|
+
} = de(K), o = J({
|
|
43
44
|
total: y.length,
|
|
44
45
|
records: y,
|
|
45
46
|
loading: !1
|
|
46
|
-
}),
|
|
47
|
+
}), C = () => {
|
|
47
48
|
var e, t;
|
|
48
|
-
return ((t = (e =
|
|
49
|
-
},
|
|
49
|
+
return ((t = (e = T.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
|
|
50
|
+
}, O = async (e) => {
|
|
50
51
|
var n;
|
|
51
|
-
const t =
|
|
52
|
-
|
|
52
|
+
const t = M(e), r = Date.now();
|
|
53
|
+
E = r, o.loading = !0;
|
|
53
54
|
try {
|
|
54
55
|
const a = await l({
|
|
55
|
-
...
|
|
56
|
+
...S(v),
|
|
56
57
|
...t
|
|
57
58
|
});
|
|
58
|
-
|
|
59
|
+
E === r && (o.total = a.total || ((n = a.data) == null ? void 0 : n.length) || 0, o.records = [...a.data || []]);
|
|
59
60
|
} catch {
|
|
60
|
-
|
|
61
|
+
E === r && (o.records = [], o.total = 0);
|
|
61
62
|
} finally {
|
|
62
63
|
o.loading = !1;
|
|
63
64
|
}
|
|
64
|
-
},
|
|
65
|
+
}, _ = (e) => {
|
|
65
66
|
const t = {};
|
|
66
67
|
return Object.entries(e).forEach(([r, n]) => {
|
|
67
|
-
if (t[r] = n,
|
|
68
|
-
const a =
|
|
69
|
-
a && (t[r] =
|
|
68
|
+
if (t[r] = n, I && n) {
|
|
69
|
+
const a = I[r];
|
|
70
|
+
a && (t[r] = le(a, n));
|
|
70
71
|
}
|
|
71
72
|
}), t;
|
|
72
|
-
},
|
|
73
|
-
var n, a, u, f,
|
|
74
|
-
const t =
|
|
75
|
-
Object.entries(t).forEach(([
|
|
76
|
-
|
|
77
|
-
}), await ((a = (n =
|
|
73
|
+
}, X = async (e) => {
|
|
74
|
+
var n, a, u, f, m;
|
|
75
|
+
const t = C(), r = {};
|
|
76
|
+
Object.entries(t).forEach(([h, x]) => {
|
|
77
|
+
V && V.indexOf(h) > -1 && (r[h] = x);
|
|
78
|
+
}), await ((a = (n = T.value) == null ? void 0 : n.apForm) == null ? void 0 : a.resetFields()), (m = (f = (u = T.value) == null ? void 0 : u.apForm) == null ? void 0 : f.setFieldsValue) == null || m.call(f, r), ae(() => {
|
|
78
79
|
e == null || e();
|
|
79
80
|
});
|
|
80
|
-
},
|
|
81
|
+
}, F = (e) => {
|
|
81
82
|
s = e;
|
|
82
|
-
const t =
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
|
|
83
|
+
const t = _(e);
|
|
84
|
+
O(t);
|
|
85
|
+
}, Y = (e) => {
|
|
86
|
+
F({
|
|
86
87
|
...s,
|
|
87
88
|
...e
|
|
88
89
|
});
|
|
89
|
-
},
|
|
90
|
-
const e =
|
|
91
|
-
p && (
|
|
90
|
+
}, A = () => {
|
|
91
|
+
const e = C();
|
|
92
|
+
p && (i.current = z), F({
|
|
92
93
|
...e,
|
|
93
94
|
filter: s.filter,
|
|
94
95
|
sort: s.sort,
|
|
95
|
-
current: p ?
|
|
96
|
-
pageSize: p ? s.pageSize ||
|
|
96
|
+
current: p ? z : void 0,
|
|
97
|
+
pageSize: p ? s.pageSize || i.pageSize : void 0
|
|
97
98
|
});
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
},
|
|
99
|
+
}, k = () => {
|
|
100
|
+
W(), s.sort = {}, s.filter = {}, X(A);
|
|
101
|
+
}, j = () => {
|
|
102
|
+
F(s);
|
|
103
|
+
}, ee = (e) => {
|
|
103
104
|
if (!p)
|
|
104
|
-
|
|
105
|
+
j();
|
|
105
106
|
else {
|
|
106
107
|
const {
|
|
107
108
|
current: t,
|
|
108
109
|
pageSize: r
|
|
109
|
-
} =
|
|
110
|
-
|
|
110
|
+
} = i, n = o.total - e, a = Math.ceil(n / r), u = t > a ? a : t;
|
|
111
|
+
Y({
|
|
111
112
|
current: u > 0 ? u : 1
|
|
112
113
|
});
|
|
113
114
|
}
|
|
114
|
-
},
|
|
115
|
-
var
|
|
116
|
-
const n =
|
|
117
|
-
|
|
115
|
+
}, q = (e, t, r) => {
|
|
116
|
+
var h, x;
|
|
117
|
+
const n = C();
|
|
118
|
+
i.current = e.current, i.pageSize = e.pageSize, G(t, r);
|
|
118
119
|
const a = N(r) ? [...r] : [r], u = {};
|
|
119
|
-
for (const
|
|
120
|
-
(
|
|
120
|
+
for (const c of a)
|
|
121
|
+
(h = S(B)) != null && h.includes(c.columnKey || c.field) && c.order && (u[ue(c.columnKey || c.field)] = c.order);
|
|
121
122
|
const f = {};
|
|
122
|
-
for (const
|
|
123
|
-
(x =
|
|
124
|
-
const
|
|
123
|
+
for (const c of Object.keys(t))
|
|
124
|
+
(x = S(U)) != null && x.includes(c) && t[c] && (f[c] = t[c]);
|
|
125
|
+
const m = {
|
|
125
126
|
...n,
|
|
126
127
|
filter: f,
|
|
127
128
|
sort: u,
|
|
128
129
|
current: e.current,
|
|
129
130
|
pageSize: e.pageSize
|
|
130
131
|
};
|
|
131
|
-
|
|
132
|
+
ge(s, m, fe) || F(m);
|
|
132
133
|
};
|
|
133
|
-
|
|
134
|
-
const e =
|
|
134
|
+
se(() => {
|
|
135
|
+
const e = C(), {
|
|
135
136
|
current: t,
|
|
136
137
|
pageSize: r
|
|
137
|
-
} =
|
|
138
|
+
} = i;
|
|
138
139
|
if (s = {
|
|
139
140
|
current: t,
|
|
140
141
|
pageSize: r,
|
|
@@ -142,75 +143,75 @@ const we = ({
|
|
|
142
143
|
sort: {},
|
|
143
144
|
...e
|
|
144
145
|
}, !g) {
|
|
145
|
-
const n =
|
|
146
|
-
|
|
146
|
+
const n = _(s);
|
|
147
|
+
O(n);
|
|
147
148
|
}
|
|
148
|
-
}),
|
|
149
|
-
|
|
149
|
+
}), ie(() => S(v), () => {
|
|
150
|
+
A();
|
|
150
151
|
}, {
|
|
151
152
|
deep: !0
|
|
152
153
|
});
|
|
153
|
-
const
|
|
154
|
+
const te = D(() => {
|
|
154
155
|
if (o.total === 0)
|
|
155
156
|
return "-";
|
|
156
157
|
const {
|
|
157
158
|
current: e,
|
|
158
159
|
pageSize: t
|
|
159
|
-
} =
|
|
160
|
+
} = i;
|
|
160
161
|
return `${e}/${Math.ceil(o.total / t)}`;
|
|
161
162
|
});
|
|
162
|
-
function
|
|
163
|
+
function re(e) {
|
|
163
164
|
N(e) && (o.records = e, o.total = e.length);
|
|
164
165
|
}
|
|
165
|
-
const
|
|
166
|
+
const oe = D(() => {
|
|
166
167
|
const {
|
|
167
168
|
showLessItems: e,
|
|
168
169
|
showTotal: t
|
|
169
|
-
} =
|
|
170
|
+
} = d;
|
|
170
171
|
return {
|
|
171
172
|
loading: o.loading,
|
|
172
173
|
pagination: {
|
|
173
|
-
current:
|
|
174
|
-
pageSize:
|
|
174
|
+
current: i.current,
|
|
175
|
+
pageSize: i.pageSize,
|
|
175
176
|
total: o.total,
|
|
176
|
-
showSizeChanger: !e,
|
|
177
|
-
showQuickJumper: !e,
|
|
177
|
+
showSizeChanger: Q(d.showSizeChanger) ? d.showSizeChanger : !e,
|
|
178
|
+
showQuickJumper: Q(d.showQuickJumper) ? d.showQuickJumper : !e,
|
|
178
179
|
showLessItems: e,
|
|
179
180
|
size: "default",
|
|
180
|
-
showTotal: t ? (r) =>
|
|
181
|
+
showTotal: t ? (r) => b("span", {
|
|
181
182
|
class: P("pagination-total-wrapper")
|
|
182
|
-
}, [
|
|
183
|
+
}, [w("ap.apTable.pagination.totalLeftPrefix"), " ", b("span", {
|
|
183
184
|
class: P("pagination-count-text")
|
|
184
|
-
}, [r]), " ",
|
|
185
|
+
}, [r]), " ", w("ap.apTable.pagination.totalLeftSuffix"), b("span", {
|
|
185
186
|
class: P("pagination--total-right")
|
|
186
|
-
}, [
|
|
187
|
+
}, [w("ap.apTable.pagination.totalRightPrefix"), " ", b("span", {
|
|
187
188
|
class: P("pagination-count-text")
|
|
188
|
-
}, [
|
|
189
|
+
}, [S(te)]), " ", w("ap.apTable.pagination.totalRightSuffix")])]) : void 0
|
|
189
190
|
},
|
|
190
|
-
onChange:
|
|
191
|
+
onChange: q,
|
|
191
192
|
dataSource: o.records
|
|
192
193
|
};
|
|
193
194
|
});
|
|
194
195
|
return {
|
|
195
|
-
formRef:
|
|
196
|
-
submit:
|
|
197
|
-
reset:
|
|
198
|
-
refresh:
|
|
199
|
-
refreshByDelete:
|
|
196
|
+
formRef: T,
|
|
197
|
+
submit: A,
|
|
198
|
+
reset: k,
|
|
199
|
+
refresh: j,
|
|
200
|
+
refreshByDelete: ee,
|
|
200
201
|
data: o,
|
|
201
|
-
current:
|
|
202
|
-
pageSize:
|
|
203
|
-
handleTableChange:
|
|
204
|
-
tableProps:
|
|
205
|
-
dataSource:
|
|
206
|
-
setDataSource:
|
|
207
|
-
getColumnSFConfig:
|
|
208
|
-
sortedInfo:
|
|
209
|
-
filteredInfo:
|
|
202
|
+
current: i.current,
|
|
203
|
+
pageSize: i.pageSize,
|
|
204
|
+
handleTableChange: q,
|
|
205
|
+
tableProps: oe,
|
|
206
|
+
dataSource: D(() => o.records),
|
|
207
|
+
setDataSource: re,
|
|
208
|
+
getColumnSFConfig: $,
|
|
209
|
+
sortedInfo: Z,
|
|
210
|
+
filteredInfo: H
|
|
210
211
|
};
|
|
211
212
|
};
|
|
212
213
|
export {
|
|
213
|
-
|
|
214
|
+
z as DEFAULT_CURRENT,
|
|
214
215
|
L as DEFAULT_PAGE_SIZE,
|
|
215
|
-
|
|
216
|
+
xe as useTablePaging
|
|
216
217
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ColumnType, TableProps, ColumnsType } from '@aplus-frontend/antdv/es/table';
|
|
2
2
|
import { CompareFn, SortOrder, TableRowSelection } from '@aplus-frontend/antdv/es/table/interface';
|
|
3
3
|
import { ApFormItemProps, ApFormSearchFormProps } from '../ap-form';
|
|
4
|
-
import { ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextPasswordProps, ApFormItemTextProps } from '../ap-form/items/interface';
|
|
4
|
+
import { ApFormItemCheckboxProps, ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextPasswordProps, ApFormItemTextProps, ApFormItemTreeSelectProps } from '../ap-form/items/interface';
|
|
5
5
|
import { Recordable } from '../type';
|
|
6
6
|
import { ComputedRef, CSSProperties, Ref, VNode } from 'vue';
|
|
7
7
|
import { ApActionGroupProps } from '../ap-action';
|
|
@@ -54,6 +54,10 @@ export type ApTableValueFields = {
|
|
|
54
54
|
* 密码输入框
|
|
55
55
|
*/
|
|
56
56
|
password: ApFormItemTextPasswordProps;
|
|
57
|
+
/**
|
|
58
|
+
* 树选择
|
|
59
|
+
*/
|
|
60
|
+
treeSelect: ApFormItemTreeSelectProps;
|
|
57
61
|
};
|
|
58
62
|
export type ApTableValueTypes = keyof ApTableValueFields;
|
|
59
63
|
export type ValueEnum = Record<string, ValueEnumType>;
|
|
@@ -226,6 +230,14 @@ export type ApTablePaginationConfig = {
|
|
|
226
230
|
* 用于显示数据总量和当前数据顺序
|
|
227
231
|
*/
|
|
228
232
|
showTotal?: boolean;
|
|
233
|
+
/**
|
|
234
|
+
* 是否显示尺寸切换器
|
|
235
|
+
*/
|
|
236
|
+
showSizeChanger?: boolean;
|
|
237
|
+
/**
|
|
238
|
+
* 是否显示快速跳转
|
|
239
|
+
*/
|
|
240
|
+
showQuickJumper?: boolean;
|
|
229
241
|
};
|
|
230
242
|
export type ApTableProps<RecordType = any, ParamsType = any> = Omit<TableProps<RecordType>, 'columns' | 'pagination' | 'dataSource' | 'size' | 'rowSelection'> & {
|
|
231
243
|
/**
|