@aplus-frontend/ui 0.5.23 → 0.5.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/index.mjs +36 -36
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.mjs +2 -2
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/index.vue.mjs +3 -3
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +4 -3
- package/es/src/ap-form/ap-form.vue2.mjs +124 -124
- package/es/src/ap-form/drawer-form/index.vue.d.ts +9 -8
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/interface.d.ts +3 -2
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +3 -3
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +9 -8
- 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 +9 -8
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/form-item.vue.mjs +65 -61
- package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/index.vue.mjs +86 -81
- package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +4 -2
- package/es/src/ap-grid/index.vue.mjs +25 -25
- package/es/src/ap-grid/interface.d.ts +4 -0
- package/es/src/ap-grid/utils/table.d.ts +1 -1
- package/es/src/ap-grid/utils/table.mjs +42 -41
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.d.ts +4 -2
- package/es/src/ap-list/index.vue.mjs +4 -4
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +4 -2
- package/es/src/ap-table/ap-table.vue2.mjs +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 +5 -5
- package/es/src/ap-table/constants.mjs +45 -45
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +108 -102
- package/es/src/ap-table/utils.d.ts +5 -5
- package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +7 -2
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +6 -4
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +1 -83
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +34 -59
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +3 -65
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +34 -99
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +3 -75
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +68 -195
- package/es/src/business/ap-ladder/index.d.ts +1 -235
- package/es/src/business/ap-ladder/interface.d.ts +4 -114
- package/es/src/business/ap-ladder/utils.d.ts +5 -0
- package/es/src/business/ap-ladder/utils.mjs +38 -3
- package/es/src/business/ap-product-info/ApProductInfo.d.ts +46 -0
- package/es/src/business/ap-product-info/constans.d.ts +23 -0
- package/es/src/business/ap-product-info/index.d.ts +1 -0
- package/es/src/business/ap-product-info/interface.d.ts +11 -0
- package/es/src/business/ap-select-layout/index.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/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 +1 -5
- package/es/src/editable-table/form-item.vue.d.ts +4 -2
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +4 -2
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +4 -4
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +6 -5
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +4 -3
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +9 -8
- package/lib/src/ap-form/interface.d.ts +3 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/lib/src/ap-form/modal-form/index.vue.d.ts +9 -8
- package/lib/src/ap-form/search-form/index.vue.d.ts +9 -8
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +4 -0
- package/lib/src/ap-grid/utils/table.d.ts +1 -1
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +4 -2
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
- package/lib/src/ap-table/constants.d.ts +5 -5
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/utils.d.ts +5 -5
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +7 -2
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +1 -83
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +3 -65
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +3 -75
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -235
- package/lib/src/business/ap-ladder/interface.d.ts +4 -114
- package/lib/src/business/ap-ladder/utils.d.ts +5 -0
- package/lib/src/business/ap-ladder/utils.js +1 -1
- package/lib/src/business/ap-product-info/ApProductInfo.d.ts +46 -0
- package/lib/src/business/ap-product-info/constans.d.ts +23 -0
- package/lib/src/business/ap-product-info/index.d.ts +1 -0
- package/lib/src/business/ap-product-info/interface.d.ts +11 -0
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/lib/src/editable-table/form-item.vue.d.ts +4 -2
- package/lib/src/editable-table/index.vue.d.ts +4 -2
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +6 -5
- package/package.json +3 -3
- package/theme/ap-grid/index.css +3 -0
- package/theme/ap-grid/index.less +3 -0
- package/theme/ap-ladder/ap-ladder.css +14 -5
- package/theme/ap-ladder/ap-ladder.less +16 -7
- package/theme/index.css +17 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, ref as L, unref as n, computed as O, watch as $,
|
|
1
|
+
import { defineComponent as A, ref as L, unref as n, computed as O, watch as $, openBlock as c, createElementBlock as y, normalizeClass as d, createVNode as m, withCtx as v, createElementVNode as g, toDisplayString as k, createTextVNode as q, createBlock as b, createCommentVNode as p } from "vue";
|
|
2
2
|
import { Flex as G, Button as H, Divider as J } from "@aplus-frontend/antdv";
|
|
3
3
|
import N from "vuedraggable";
|
|
4
4
|
import "../sortable/index.vue.mjs";
|
|
@@ -112,8 +112,8 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
112
112
|
align: "center",
|
|
113
113
|
justify: "space-between"
|
|
114
114
|
}, {
|
|
115
|
-
default:
|
|
116
|
-
|
|
115
|
+
default: v(() => [
|
|
116
|
+
g("span", {
|
|
117
117
|
class: d(n(r)("header-title"))
|
|
118
118
|
}, k(n(h)("ap.apTable.setting.selectCount", { count: z.value })), 3),
|
|
119
119
|
m(n(H), {
|
|
@@ -122,7 +122,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
122
122
|
style: { padding: "0" },
|
|
123
123
|
onClick: x.onReset
|
|
124
124
|
}, {
|
|
125
|
-
default:
|
|
125
|
+
default: v(() => [
|
|
126
126
|
q(k(n(h)("ap.apTable.setting.reset")), 1)
|
|
127
127
|
]),
|
|
128
128
|
_: 1
|
|
@@ -131,11 +131,11 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
131
131
|
_: 1
|
|
132
132
|
}, 8, ["class"]),
|
|
133
133
|
m(n(J), { style: { margin: "0px" } }),
|
|
134
|
-
|
|
134
|
+
g("div", {
|
|
135
135
|
class: d(n(r)("content"))
|
|
136
136
|
}, [
|
|
137
137
|
i.value.length ? (c(), y("div", W, [
|
|
138
|
-
|
|
138
|
+
g("span", {
|
|
139
139
|
class: d(n(r)("section-title"))
|
|
140
140
|
}, k(n(h)("ap.apTable.setting.fixToLeft")), 3),
|
|
141
141
|
m(n(N), {
|
|
@@ -143,7 +143,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
143
143
|
"item-key": "key",
|
|
144
144
|
"onUpdate:modelValue": D
|
|
145
145
|
}, {
|
|
146
|
-
item:
|
|
146
|
+
item: v(({ element: o }) => [
|
|
147
147
|
C(o) ? (c(), b(R, {
|
|
148
148
|
key: 0,
|
|
149
149
|
value: o
|
|
@@ -153,7 +153,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
153
153
|
}, 8, ["model-value"])
|
|
154
154
|
])) : p("", !0),
|
|
155
155
|
s.value.length ? (c(), y("div", X, [
|
|
156
|
-
|
|
156
|
+
g("span", {
|
|
157
157
|
class: d(n(r)("section-title"))
|
|
158
158
|
}, k(n(h)("ap.apTable.setting.unFixed")), 3),
|
|
159
159
|
m(n(N), {
|
|
@@ -161,7 +161,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
161
161
|
"item-key": "key",
|
|
162
162
|
"onUpdate:modelValue": E
|
|
163
163
|
}, {
|
|
164
|
-
item:
|
|
164
|
+
item: v(({ element: o }) => [
|
|
165
165
|
C(o) ? (c(), b(R, {
|
|
166
166
|
key: 0,
|
|
167
167
|
value: o
|
|
@@ -171,7 +171,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
171
171
|
}, 8, ["model-value"])
|
|
172
172
|
])) : p("", !0),
|
|
173
173
|
u.value.length ? (c(), y("div", Y, [
|
|
174
|
-
|
|
174
|
+
g("span", {
|
|
175
175
|
class: d(n(r)("section-title"))
|
|
176
176
|
}, k(n(h)("ap.apTable.setting.fixToRight")), 3),
|
|
177
177
|
m(n(N), {
|
|
@@ -179,7 +179,7 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
179
179
|
"item-key": "key",
|
|
180
180
|
"onUpdate:modelValue": j
|
|
181
181
|
}, {
|
|
182
|
-
item:
|
|
182
|
+
item: v(({ element: o }) => [
|
|
183
183
|
C(o) ? (c(), b(R, {
|
|
184
184
|
key: 0,
|
|
185
185
|
value: o
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as x, computed as w, unref as o,
|
|
1
|
+
import { defineComponent as x, computed as w, unref as o, openBlock as c, createElementBlock as i, createVNode as s, withCtx as d, Fragment as m, renderList as B, createBlock as u, mergeProps as I, resolveDynamicComponent as L } from "vue";
|
|
2
2
|
import { Row as N, Col as k, Checkbox as P } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../select-group/index.vue.mjs";
|
|
4
4
|
import { useInjectApTable as U } from "../../../context.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, computed as o,
|
|
1
|
+
import { defineComponent as n, computed as o, openBlock as u, createBlock as a, unref as m, normalizeProps as p, mergeProps as l, createCommentVNode as c } from "vue";
|
|
2
2
|
import { Badge as s } from "@aplus-frontend/antdv";
|
|
3
3
|
const _ = /* @__PURE__ */ n({
|
|
4
4
|
name: "ApTableStatus",
|
|
@@ -9,7 +9,7 @@ const _ = /* @__PURE__ */ n({
|
|
|
9
9
|
},
|
|
10
10
|
setup(t) {
|
|
11
11
|
const e = t, r = o(() => e.valueEnum[e.value]);
|
|
12
|
-
return (d, f) => r.value ? (
|
|
12
|
+
return (d, f) => r.value ? (u(), a(m(s), p(l({ key: 0 }, r.value)), null, 16)) : c("", !0);
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
export {
|
|
@@ -11,7 +11,7 @@ import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
|
11
11
|
import { OnCleanup } from '@vue/reactivity';
|
|
12
12
|
import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
|
|
13
13
|
import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
|
|
14
|
-
import { RadioChangeEvent, TreeSelectProps, CheckboxOptionType } from '@aplus-frontend/antdv';
|
|
14
|
+
import { RadioChangeEvent, SelectProps, TreeSelectProps, CheckboxOptionType } from '@aplus-frontend/antdv';
|
|
15
15
|
import { SelectValue, DefaultOptionType, LabeledValue, BaseOptionType } from '@aplus-frontend/antdv/es/select';
|
|
16
16
|
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
17
17
|
import { RenderDOMFunc, DropdownRender, CustomTagProps, DisplayValueType } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
@@ -950,14 +950,14 @@ export declare const apTableFormItemMap: {
|
|
|
950
950
|
readonly onClickOption?: ((e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>) | undefined;
|
|
951
951
|
readonly labelInValue?: boolean | undefined;
|
|
952
952
|
readonly emptyText?: string | undefined;
|
|
953
|
-
readonly request?: ((value?: string, extraParams?: Recordable) => Promise<
|
|
953
|
+
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
954
954
|
readonly multiple?: boolean | undefined;
|
|
955
|
-
readonly value?:
|
|
955
|
+
readonly value?: SelectProps["value"];
|
|
956
956
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
957
|
-
readonly searchMode?: "filter" | "request" | undefined;
|
|
957
|
+
readonly searchMode?: ("filter" | "request") | undefined;
|
|
958
958
|
readonly refetchOnFocus?: boolean | undefined;
|
|
959
959
|
readonly lazy?: boolean | undefined;
|
|
960
|
-
readonly addAll?: boolean | number | undefined;
|
|
960
|
+
readonly addAll?: (boolean | number) | undefined;
|
|
961
961
|
readonly params?: Recordable | undefined;
|
|
962
962
|
readonly searchDelay?: number | undefined;
|
|
963
963
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -3,57 +3,57 @@ 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
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import i from "../ap-form/items/switch/index.vue.mjs";
|
|
6
|
+
import o from "../ap-form/items/date/index.vue.mjs";
|
|
7
|
+
import r from "../ap-form/items/date-range/index.vue.mjs";
|
|
8
|
+
import t from "../ap-form/items/number/index.vue.mjs";
|
|
9
|
+
import i from "../ap-form/items/radio/index.vue.mjs";
|
|
11
10
|
import f from "../ap-form/items/select/index.vue.mjs";
|
|
12
|
-
import a from "../ap-form/items/
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import { ApFieldText as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
11
|
+
import a from "../ap-form/items/switch/index.vue.mjs";
|
|
12
|
+
import { ApFormItemText as m } from "../ap-form/items/text/index.mjs";
|
|
13
|
+
import e from "../ap-form/items/text-area/index.vue.mjs";
|
|
14
|
+
import _ from "../ap-form/items/checkbox/index.vue.mjs";
|
|
15
|
+
import s from "../ap-form/items/tree-select/index.vue.mjs";
|
|
16
|
+
import c from "../ap-field/date/index.vue.mjs";
|
|
17
|
+
import p from "../ap-field/date-range/index.vue.mjs";
|
|
18
|
+
import n from "../ap-field/number/index.vue.mjs";
|
|
19
|
+
import $ from "../ap-field/radio/index.vue.mjs";
|
|
20
|
+
import d from "../ap-field/select/index.vue.mjs";
|
|
21
|
+
import x from "../ap-field/switch/index.vue.mjs";
|
|
22
|
+
import { ApFieldText as l } from "../ap-field/text/index.mjs";
|
|
23
|
+
import b from "../ap-field/text-area/index.vue.mjs";
|
|
24
|
+
import h from "../ap-field/checkbox/index.vue.mjs";
|
|
25
|
+
import w from "../ap-action/group/index.vue.mjs";
|
|
26
|
+
import A from "./components/index/index.vue2.mjs";
|
|
27
|
+
import u from "./components/status/index.vue2.mjs";
|
|
28
|
+
import F from "../ap-field/text/password.vue.mjs";
|
|
29
|
+
import I from "../ap-field/tree-select/index.vue.mjs";
|
|
30
30
|
const Z = {
|
|
31
|
-
date:
|
|
32
|
-
dateRange:
|
|
33
|
-
number:
|
|
34
|
-
radio:
|
|
31
|
+
date: o,
|
|
32
|
+
dateRange: r,
|
|
33
|
+
number: t,
|
|
34
|
+
radio: i,
|
|
35
35
|
select: f,
|
|
36
|
-
switch:
|
|
36
|
+
switch: a,
|
|
37
37
|
text: m,
|
|
38
|
-
textArea:
|
|
39
|
-
checkbox:
|
|
38
|
+
textArea: e,
|
|
39
|
+
checkbox: _,
|
|
40
40
|
password: m.Password,
|
|
41
|
-
treeSelect:
|
|
41
|
+
treeSelect: s
|
|
42
42
|
}, mm = {
|
|
43
|
-
date:
|
|
44
|
-
dateRange:
|
|
45
|
-
number:
|
|
46
|
-
radio:
|
|
47
|
-
select:
|
|
48
|
-
switch:
|
|
49
|
-
text:
|
|
50
|
-
textArea:
|
|
51
|
-
checkbox:
|
|
52
|
-
action:
|
|
53
|
-
index:
|
|
54
|
-
status:
|
|
55
|
-
password:
|
|
56
|
-
treeSelect:
|
|
43
|
+
date: c,
|
|
44
|
+
dateRange: p,
|
|
45
|
+
number: n,
|
|
46
|
+
radio: $,
|
|
47
|
+
select: d,
|
|
48
|
+
switch: x,
|
|
49
|
+
text: l,
|
|
50
|
+
textArea: b,
|
|
51
|
+
checkbox: h,
|
|
52
|
+
action: w,
|
|
53
|
+
index: A,
|
|
54
|
+
status: u,
|
|
55
|
+
password: F,
|
|
56
|
+
treeSelect: I
|
|
57
57
|
}, om = [
|
|
58
58
|
"action",
|
|
59
59
|
"index"
|
|
@@ -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?: "left" | "right" | undefined;
|
|
7
|
+
fixed?: ("left" | "right") | undefined;
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
label?: any;
|
|
10
|
-
children?:
|
|
10
|
+
children?: any[] | undefined;
|
|
11
11
|
order?: number | undefined;
|
|
12
12
|
}[], ApColumnState[] | {
|
|
13
13
|
key: string | number;
|
|
14
14
|
show?: boolean | undefined;
|
|
15
|
-
fixed?: "left" | "right" | undefined;
|
|
15
|
+
fixed?: ("left" | "right") | undefined;
|
|
16
16
|
disabled?: boolean | undefined;
|
|
17
17
|
label?: any;
|
|
18
|
-
children?:
|
|
18
|
+
children?: 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, isString as Y, omit 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: Y(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
|
+
...Z(b, ["children", "fixed"])
|
|
64
64
|
};
|
|
65
65
|
return g.children = (A = f.children) != null && A.length ? d(
|
|
66
66
|
f.children,
|
|
@@ -1,46 +1,52 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useTableSortedAndFiltered as
|
|
1
|
+
import { ref as ae, reactive as j, unref as h, nextTick as se, onMounted as ie, watch as ce, computed as A, createVNode as x } from "vue";
|
|
2
|
+
import { useTableSortedAndFiltered as ue } from "./use-sorted-filtered.mjs";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import { parseFieldValue as le, dataIndexToStr as
|
|
5
|
-
import { isArray as q, isEqualWith as
|
|
4
|
+
import { parseFieldValue as le, dataIndexToStr as fe, isEqualCustom as ge } from "../utils.mjs";
|
|
5
|
+
import { isArray as q, isEqualWith as de, isUndefined as pe } from "lodash-unified";
|
|
6
6
|
import { isDef as N } from "../../utils/index.mjs";
|
|
7
|
-
import { useLocale as
|
|
8
|
-
import { useNamespace as
|
|
9
|
-
const S = 1, D = 10
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
import { useLocale as me } from "../../config-provider/hooks/use-locale.mjs";
|
|
8
|
+
import { useNamespace as he } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
+
const S = 1, D = 10, B = {
|
|
10
|
+
defaultCurrent: S,
|
|
11
|
+
defaultPageSize: D,
|
|
12
|
+
showLessItems: !1,
|
|
13
|
+
showTotal: !0
|
|
14
|
+
};
|
|
15
|
+
function Se(s) {
|
|
16
|
+
return s === !1 ? {} : s == null || s === !0 ? B : {
|
|
17
|
+
...B,
|
|
18
|
+
...s
|
|
19
|
+
};
|
|
13
20
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
21
|
+
function ze(s) {
|
|
22
|
+
const f = {};
|
|
23
|
+
return s === !1 || (s === !0 || s == null ? (f.current = S, f.pageSize = D) : (f.current = s.defaultCurrent || S, f.pageSize = s.defaultPageSize || D)), f;
|
|
24
|
+
}
|
|
25
|
+
const Ae = ({
|
|
26
|
+
manual: s = !1,
|
|
27
|
+
request: f,
|
|
17
28
|
defaultParams: L = {},
|
|
18
29
|
defaultData: v = [],
|
|
19
30
|
formatParams: y,
|
|
20
31
|
paramsValueTypeMap: O,
|
|
21
32
|
resetFieldsIgnores: R,
|
|
22
|
-
filterFields:
|
|
23
|
-
sortFields:
|
|
24
|
-
namespace:
|
|
25
|
-
pagination:
|
|
26
|
-
defaultCurrent: S,
|
|
27
|
-
defaultPageSize: D,
|
|
28
|
-
showLessItems: !1,
|
|
29
|
-
showTotal: !0
|
|
30
|
-
}
|
|
33
|
+
filterFields: J,
|
|
34
|
+
sortFields: K,
|
|
35
|
+
namespace: M = "ap-table",
|
|
36
|
+
pagination: d
|
|
31
37
|
}) => {
|
|
32
|
-
let b = 0,
|
|
33
|
-
const
|
|
34
|
-
getColumnSFConfig:
|
|
35
|
-
setSF:
|
|
36
|
-
clearAll:
|
|
37
|
-
sortedInfo:
|
|
38
|
-
filteredInfo:
|
|
39
|
-
} =
|
|
38
|
+
let b = 0, i = {};
|
|
39
|
+
const Q = Se(d), $ = (e) => y ? y(e) : e, z = ae(), c = j(ze(d)), {
|
|
40
|
+
getColumnSFConfig: G,
|
|
41
|
+
setSF: W,
|
|
42
|
+
clearAll: Z,
|
|
43
|
+
sortedInfo: H,
|
|
44
|
+
filteredInfo: X
|
|
45
|
+
} = ue(), {
|
|
40
46
|
t: T
|
|
41
|
-
} =
|
|
47
|
+
} = me(), {
|
|
42
48
|
b: P
|
|
43
|
-
} =
|
|
49
|
+
} = he(M), a = j({
|
|
44
50
|
total: v.length,
|
|
45
51
|
records: v,
|
|
46
52
|
loading: !1
|
|
@@ -48,15 +54,15 @@ const be = ({
|
|
|
48
54
|
var e, t;
|
|
49
55
|
return ((t = (e = z.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
|
|
50
56
|
}, I = async (e) => {
|
|
51
|
-
var
|
|
52
|
-
const t =
|
|
57
|
+
var n;
|
|
58
|
+
const t = $(e), r = Date.now();
|
|
53
59
|
b = r, a.loading = !0;
|
|
54
60
|
try {
|
|
55
|
-
const
|
|
61
|
+
const o = await f({
|
|
56
62
|
...h(L),
|
|
57
63
|
...t
|
|
58
64
|
});
|
|
59
|
-
b === r && (a.total =
|
|
65
|
+
b === r && (a.total = o.total || ((n = o.data) == null ? void 0 : n.length) || 0, a.records = [...o.data || []]);
|
|
60
66
|
} catch {
|
|
61
67
|
b === r && (a.records = [], a.total = 0);
|
|
62
68
|
} finally {
|
|
@@ -64,103 +70,103 @@ const be = ({
|
|
|
64
70
|
}
|
|
65
71
|
}, V = (e) => {
|
|
66
72
|
const t = {};
|
|
67
|
-
return Object.entries(e).forEach(([r,
|
|
68
|
-
if (t[r] =
|
|
69
|
-
const
|
|
70
|
-
|
|
73
|
+
return Object.entries(e).forEach(([r, n]) => {
|
|
74
|
+
if (t[r] = n, O && n) {
|
|
75
|
+
const o = O[r];
|
|
76
|
+
o && (t[r] = le(o, n));
|
|
71
77
|
}
|
|
72
78
|
}), t;
|
|
73
|
-
},
|
|
74
|
-
var
|
|
79
|
+
}, Y = async (e) => {
|
|
80
|
+
var n, o, l, g, p;
|
|
75
81
|
const t = w(), r = {};
|
|
76
|
-
Object.entries(t).forEach(([m,
|
|
77
|
-
R && R.indexOf(m) > -1 && (r[m] =
|
|
78
|
-
}), await ((
|
|
82
|
+
Object.entries(t).forEach(([m, F]) => {
|
|
83
|
+
R && R.indexOf(m) > -1 && (r[m] = F);
|
|
84
|
+
}), await ((o = (n = z.value) == null ? void 0 : n.apForm) == null ? void 0 : o.resetFields()), (p = (g = (l = z.value) == null ? void 0 : l.apForm) == null ? void 0 : g.setFieldsValue) == null || p.call(g, r), se(() => {
|
|
79
85
|
e == null || e();
|
|
80
86
|
});
|
|
81
|
-
},
|
|
82
|
-
|
|
87
|
+
}, C = (e) => {
|
|
88
|
+
i = e;
|
|
83
89
|
const t = V(e);
|
|
84
90
|
I(t);
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
...
|
|
91
|
+
}, k = (e) => {
|
|
92
|
+
C({
|
|
93
|
+
...i,
|
|
88
94
|
...e
|
|
89
95
|
});
|
|
90
96
|
}, E = () => {
|
|
91
97
|
const e = w();
|
|
92
|
-
|
|
98
|
+
d && (c.current = S), C({
|
|
93
99
|
...e,
|
|
94
|
-
filter:
|
|
95
|
-
sort:
|
|
96
|
-
current:
|
|
97
|
-
pageSize:
|
|
100
|
+
filter: i.filter,
|
|
101
|
+
sort: i.sort,
|
|
102
|
+
current: d ? S : void 0,
|
|
103
|
+
pageSize: d ? i.pageSize || c.pageSize : void 0
|
|
98
104
|
});
|
|
99
|
-
},
|
|
100
|
-
|
|
105
|
+
}, ee = () => {
|
|
106
|
+
Z(), i.sort = {}, i.filter = {}, Y(E);
|
|
101
107
|
}, U = () => {
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
if (!
|
|
108
|
+
C(i);
|
|
109
|
+
}, te = (e) => {
|
|
110
|
+
if (!d)
|
|
105
111
|
U();
|
|
106
112
|
else {
|
|
107
113
|
const {
|
|
108
114
|
current: t,
|
|
109
115
|
pageSize: r
|
|
110
|
-
} =
|
|
111
|
-
|
|
116
|
+
} = c, n = a.total - e, o = Math.ceil(n / r), l = t > o ? o : t;
|
|
117
|
+
k({
|
|
112
118
|
current: l > 0 ? l : 1
|
|
113
119
|
});
|
|
114
120
|
}
|
|
115
121
|
}, _ = (e, t, r) => {
|
|
116
|
-
var m,
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
const
|
|
120
|
-
for (const
|
|
121
|
-
(m = h(
|
|
122
|
-
const
|
|
123
|
-
for (const
|
|
124
|
-
(
|
|
125
|
-
const
|
|
126
|
-
...
|
|
127
|
-
filter:
|
|
122
|
+
var m, F;
|
|
123
|
+
const n = w();
|
|
124
|
+
c.current = e.current, c.pageSize = e.pageSize, W(t, r);
|
|
125
|
+
const o = q(r) ? [...r] : [r], l = {};
|
|
126
|
+
for (const u of o)
|
|
127
|
+
(m = h(K)) != null && m.includes(u.columnKey || u.field) && u.order && (l[fe(u.columnKey || u.field)] = u.order);
|
|
128
|
+
const g = {};
|
|
129
|
+
for (const u of Object.keys(t))
|
|
130
|
+
(F = h(J)) != null && F.includes(u) && t[u] && (g[u] = t[u]);
|
|
131
|
+
const p = {
|
|
132
|
+
...n,
|
|
133
|
+
filter: g,
|
|
128
134
|
sort: l,
|
|
129
135
|
current: e.current,
|
|
130
136
|
pageSize: e.pageSize
|
|
131
137
|
};
|
|
132
|
-
|
|
138
|
+
de(i, p, ge) || C(p);
|
|
133
139
|
};
|
|
134
|
-
|
|
140
|
+
ie(() => {
|
|
135
141
|
const e = w(), {
|
|
136
142
|
current: t,
|
|
137
143
|
pageSize: r
|
|
138
|
-
} =
|
|
139
|
-
if (
|
|
144
|
+
} = c;
|
|
145
|
+
if (i = {
|
|
140
146
|
current: t,
|
|
141
147
|
pageSize: r,
|
|
142
148
|
filter: {},
|
|
143
149
|
sort: {},
|
|
144
150
|
...e
|
|
145
|
-
}, !
|
|
146
|
-
const
|
|
147
|
-
I(
|
|
151
|
+
}, !s) {
|
|
152
|
+
const n = V(i);
|
|
153
|
+
I(n);
|
|
148
154
|
}
|
|
149
|
-
}),
|
|
155
|
+
}), ce(() => h(L), () => {
|
|
150
156
|
E();
|
|
151
157
|
}, {
|
|
152
158
|
deep: !0
|
|
153
159
|
});
|
|
154
|
-
const
|
|
160
|
+
const re = A(() => {
|
|
155
161
|
if (a.total === 0)
|
|
156
162
|
return "-";
|
|
157
163
|
const {
|
|
158
164
|
current: e,
|
|
159
165
|
pageSize: t
|
|
160
|
-
} =
|
|
166
|
+
} = c;
|
|
161
167
|
return `${e}/${Math.ceil(a.total / t)}`;
|
|
162
168
|
});
|
|
163
|
-
function
|
|
169
|
+
function ne(e) {
|
|
164
170
|
q(e) && (a.records = e, a.total = e.length);
|
|
165
171
|
}
|
|
166
172
|
const oe = A(() => {
|
|
@@ -168,20 +174,20 @@ const be = ({
|
|
|
168
174
|
showLessItems: e,
|
|
169
175
|
showTotal: t,
|
|
170
176
|
showQuickJumper: r,
|
|
171
|
-
showSizeChanger:
|
|
172
|
-
pageSizeOptions:
|
|
173
|
-
} =
|
|
177
|
+
showSizeChanger: n,
|
|
178
|
+
pageSizeOptions: o
|
|
179
|
+
} = Q;
|
|
174
180
|
return {
|
|
175
181
|
loading: a.loading,
|
|
176
182
|
pagination: {
|
|
177
|
-
current:
|
|
178
|
-
pageSize:
|
|
183
|
+
current: c.current,
|
|
184
|
+
pageSize: c.pageSize,
|
|
179
185
|
total: a.total,
|
|
180
|
-
showSizeChanger: N(
|
|
186
|
+
showSizeChanger: N(n) ? n : !e,
|
|
181
187
|
showQuickJumper: N(r) ? r : !e,
|
|
182
188
|
showLessItems: e,
|
|
183
189
|
size: "default",
|
|
184
|
-
pageSizeOptions: pe(
|
|
190
|
+
pageSizeOptions: pe(o) ? ["10", "20", "50", "100"] : o,
|
|
185
191
|
showTotal: t ? (l) => x("span", {
|
|
186
192
|
class: P("pagination-total-wrapper")
|
|
187
193
|
}, [T("ap.apTable.pagination.totalLeftPrefix"), " ", x("span", {
|
|
@@ -190,7 +196,7 @@ const be = ({
|
|
|
190
196
|
class: P("pagination--total-right")
|
|
191
197
|
}, [T("ap.apTable.pagination.totalRightPrefix"), " ", x("span", {
|
|
192
198
|
class: P("pagination-count-text")
|
|
193
|
-
}, [h(
|
|
199
|
+
}, [h(re)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
|
|
194
200
|
},
|
|
195
201
|
onChange: _,
|
|
196
202
|
dataSource: a.records
|
|
@@ -199,23 +205,23 @@ const be = ({
|
|
|
199
205
|
return {
|
|
200
206
|
formRef: z,
|
|
201
207
|
submit: E,
|
|
202
|
-
reset:
|
|
208
|
+
reset: ee,
|
|
203
209
|
refresh: U,
|
|
204
|
-
refreshByDelete:
|
|
210
|
+
refreshByDelete: te,
|
|
205
211
|
data: a,
|
|
206
|
-
current:
|
|
207
|
-
pageSize:
|
|
212
|
+
current: c.current,
|
|
213
|
+
pageSize: c.pageSize,
|
|
208
214
|
handleTableChange: _,
|
|
209
215
|
tableProps: oe,
|
|
210
216
|
dataSource: A(() => a.records),
|
|
211
|
-
setDataSource:
|
|
212
|
-
getColumnSFConfig:
|
|
213
|
-
sortedInfo:
|
|
214
|
-
filteredInfo:
|
|
217
|
+
setDataSource: ne,
|
|
218
|
+
getColumnSFConfig: G,
|
|
219
|
+
sortedInfo: H,
|
|
220
|
+
filteredInfo: X
|
|
215
221
|
};
|
|
216
222
|
};
|
|
217
223
|
export {
|
|
218
224
|
S as DEFAULT_CURRENT,
|
|
219
225
|
D as DEFAULT_PAGE_SIZE,
|
|
220
|
-
|
|
226
|
+
Ae as useTablePaging
|
|
221
227
|
};
|
|
@@ -19,7 +19,7 @@ import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
|
19
19
|
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
20
20
|
import { RadioGroupChildOption } from '@aplus-frontend/antdv/es/radio/Group';
|
|
21
21
|
import { RadioGroupButtonStyle, RadioGroupOptionType } from '@aplus-frontend/antdv/es/radio/interface';
|
|
22
|
-
import { RadioChangeEvent, TreeSelectProps } from '@aplus-frontend/antdv';
|
|
22
|
+
import { RadioChangeEvent, SelectProps, TreeSelectProps } from '@aplus-frontend/antdv';
|
|
23
23
|
import { SelectValue, DefaultOptionType, LabeledValue, BaseOptionType } from '@aplus-frontend/antdv/es/select';
|
|
24
24
|
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
25
25
|
import { RenderDOMFunc, DropdownRender, CustomTagProps, DisplayValueType } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
@@ -1783,14 +1783,14 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
1783
1783
|
readonly onClickOption?: ((e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>) | undefined;
|
|
1784
1784
|
readonly labelInValue?: boolean | undefined;
|
|
1785
1785
|
readonly emptyText?: string | undefined;
|
|
1786
|
-
readonly request?: ((value?: string, extraParams?: Recordable) => Promise<
|
|
1786
|
+
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
1787
1787
|
readonly multiple?: boolean | undefined;
|
|
1788
|
-
readonly value?:
|
|
1788
|
+
readonly value?: SelectProps["value"];
|
|
1789
1789
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
1790
|
-
readonly searchMode?: "filter" | "request" | undefined;
|
|
1790
|
+
readonly searchMode?: ("filter" | "request") | undefined;
|
|
1791
1791
|
readonly refetchOnFocus?: boolean | undefined;
|
|
1792
1792
|
readonly lazy?: boolean | undefined;
|
|
1793
|
-
readonly addAll?: boolean | number | undefined;
|
|
1793
|
+
readonly addAll?: (boolean | number) | undefined;
|
|
1794
1794
|
readonly params?: Recordable | undefined;
|
|
1795
1795
|
readonly searchDelay?: number | undefined;
|
|
1796
1796
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|