@aplus-frontend/ui 6.17.1 → 6.17.2
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-drawer/components/ApDrawerClose.vue2.mjs +2 -2
- 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 +2 -1
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +1 -1
- 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 +4 -3
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +23 -23
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/index.vue.mjs +2 -2
- package/es/src/ap-grid/index.vue.d.ts +4 -2
- package/es/src/ap-grid/index.vue.mjs +19 -19
- package/es/src/ap-list/index.vue.d.ts +4 -2
- package/es/src/ap-list/index.vue.mjs +1 -1
- 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/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-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 +6 -6
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +9 -9
- 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 +9 -9
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +10 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +105 -104
- package/es/src/business/ap-draggable-grid/constans.d.ts +4 -0
- package/es/src/business/ap-draggable-grid/constans.mjs +4 -0
- package/es/src/business/ap-draggable-grid/index.d.ts +16 -1
- 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 +7 -7
- 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-keep-alive/keep-alive.mjs +3 -3
- package/es/src/business/ap-ladder/components/RenderValue.mjs +2 -2
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +1 -1
- 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/index.d.ts +5 -17
- 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/ap-view/ap-view.vue2.mjs +2 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +3 -2
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +5 -5
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +6 -6
- package/es/src/business/ap-view/icons/line-delete.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-down.vue.mjs +2 -2
- package/es/src/business/ap-view/icons/line-eye.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/splitter/Panel.vue2.mjs +4 -4
- package/es/src/splitter/SplitBar.vue2.mjs +7 -7
- package/es/src/splitter/Splitter.vue2.mjs +5 -5
- 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 +5 -5
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.d.ts +4 -2
- package/lib/src/ap-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-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-draggable-grid/ApDraggableGrid.vue.d.ts +10 -1
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue2.js +1 -1
- package/lib/src/business/ap-draggable-grid/constans.d.ts +4 -0
- package/lib/src/business/ap-draggable-grid/constans.js +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +16 -1
- 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-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/index.d.ts +5 -17
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +3 -2
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -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/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- package/package.json +3 -3
- package/theme/antd-global-overwrite/admin/alert.css +37 -0
- package/theme/antd-global-overwrite/admin/alert.less +51 -0
- package/theme/antd-global-overwrite/admin/button.css +27 -0
- package/theme/antd-global-overwrite/admin/button.less +31 -0
- package/theme/antd-global-overwrite/admin/field.css +42 -0
- package/theme/antd-global-overwrite/admin/field.less +43 -0
- package/theme/antd-global-overwrite/admin/form.css +57 -0
- package/theme/antd-global-overwrite/admin/form.less +97 -0
- package/theme/antd-global-overwrite/admin/message.css +10 -0
- package/theme/antd-global-overwrite/admin/message.less +13 -0
- package/theme/antd-global-overwrite/admin/modal.css +94 -0
- package/theme/antd-global-overwrite/admin/modal.less +128 -0
- package/theme/antd-global-overwrite/admin/pagination.css +122 -0
- package/theme/antd-global-overwrite/admin/pagination.less +91 -0
- package/theme/antd-global-overwrite/admin/steps.css +127 -0
- package/theme/antd-global-overwrite/admin/steps.less +197 -0
- package/theme/antd-global-overwrite/admin/table.css +78 -0
- package/theme/antd-global-overwrite/admin/table.less +62 -0
- package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
- package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
- package/theme/antd-global-overwrite/aplus/alert.css +40 -0
- package/theme/antd-global-overwrite/aplus/alert.less +55 -0
- package/theme/antd-global-overwrite/aplus/button.css +27 -0
- package/theme/antd-global-overwrite/aplus/button.less +31 -0
- package/theme/antd-global-overwrite/aplus/field.css +42 -0
- package/theme/antd-global-overwrite/aplus/field.less +43 -0
- package/theme/antd-global-overwrite/aplus/form.css +87 -0
- package/theme/antd-global-overwrite/aplus/form.less +133 -0
- package/theme/antd-global-overwrite/aplus/message.css +10 -0
- package/theme/antd-global-overwrite/aplus/message.less +13 -0
- package/theme/antd-global-overwrite/aplus/modal.css +87 -0
- package/theme/antd-global-overwrite/aplus/modal.less +120 -0
- package/theme/antd-global-overwrite/aplus/pagination.css +147 -0
- package/theme/antd-global-overwrite/aplus/pagination.less +108 -0
- package/theme/antd-global-overwrite/aplus/steps.css +125 -0
- package/theme/antd-global-overwrite/aplus/steps.less +198 -0
- package/theme/antd-global-overwrite/aplus/table.css +78 -0
- package/theme/antd-global-overwrite/aplus/table.less +61 -0
- package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
- package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
- package/theme/ap-draggable-grid/ap-draggable-grid.css +4 -2
- package/theme/ap-draggable-grid/ap-draggable-grid.less +6 -2
- package/theme/ap-table/ap-table-pagination.css +12 -0
- package/theme/ap-table/ap-table-pagination.less +14 -0
- package/theme/index.css +4 -2
- package/theme/ui-mode.css +60 -0
- package/theme/ui-mode.less +109 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as h, ref as y, toRef as w,
|
|
2
|
-
import { Popover as P,
|
|
1
|
+
import { defineComponent as h, ref as y, toRef as w, openBlock as s, createBlock as u, unref as e, withCtx as o, createElementVNode as f, normalizeClass as a, createVNode as t, createElementBlock as x, Fragment as R, renderList as S, resolveDynamicComponent as D, createTextVNode as b, toDisplayString as g, withDirectives as L, vShow as N } from "vue";
|
|
2
|
+
import { Popover as P, Row as T, Col as V, Divider as z, Flex as A, Button as d, Tooltip as E } from "@aplus-frontend/antdv";
|
|
3
3
|
import { IconApFilterOutlined as I } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
5
5
|
import { useCollapseInputCount as j } from "../hooks/use-collapse-input-count.mjs";
|
|
@@ -34,14 +34,14 @@ const Q = /* @__PURE__ */ h({
|
|
|
34
34
|
class: a([e(i)("popover-content")]),
|
|
35
35
|
style: { paddingBottom: "4px", width: "825px" }
|
|
36
36
|
}, [
|
|
37
|
-
t(e(
|
|
37
|
+
t(e(T), { gutter: 8 }, {
|
|
38
38
|
default: o(() => [
|
|
39
|
-
(s(!0),
|
|
39
|
+
(s(!0), x(R, null, S(r.config, (n) => (s(), u(e(V), {
|
|
40
40
|
key: n.key,
|
|
41
41
|
span: 8
|
|
42
42
|
}, {
|
|
43
43
|
default: o(() => [
|
|
44
|
-
(s(), u(
|
|
44
|
+
(s(), u(D(n.node)))
|
|
45
45
|
]),
|
|
46
46
|
_: 2
|
|
47
47
|
}, 1024))), 128))
|
|
@@ -49,11 +49,11 @@ const Q = /* @__PURE__ */ h({
|
|
|
49
49
|
_: 1
|
|
50
50
|
})
|
|
51
51
|
], 2),
|
|
52
|
-
t(e(
|
|
52
|
+
t(e(z), { style: { margin: "0" } }),
|
|
53
53
|
f("div", {
|
|
54
54
|
class: a(e(i)("popover-footer"))
|
|
55
55
|
}, [
|
|
56
|
-
t(e(
|
|
56
|
+
t(e(A), { justify: "end" }, {
|
|
57
57
|
default: o(() => [
|
|
58
58
|
t(e(d), {
|
|
59
59
|
onClick: l[0] || (l[0] = (n) => p.value = !1)
|
|
@@ -80,7 +80,7 @@ const Q = /* @__PURE__ */ h({
|
|
|
80
80
|
], 2)
|
|
81
81
|
]),
|
|
82
82
|
default: o(() => [
|
|
83
|
-
t(e(
|
|
83
|
+
t(e(E), {
|
|
84
84
|
title: e(m)("ap.apForm.search.moreFilter"),
|
|
85
85
|
placement: "top"
|
|
86
86
|
}, {
|
|
@@ -91,10 +91,10 @@ const Q = /* @__PURE__ */ h({
|
|
|
91
91
|
class: a([e(c)("trigger-btn"), { [e(c)("trigger-btn-active")]: p.value }])
|
|
92
92
|
}, {
|
|
93
93
|
icon: o(() => [
|
|
94
|
-
|
|
94
|
+
L(f("sup", {
|
|
95
95
|
class: a(e(c)("trigger-btn-badge"))
|
|
96
96
|
}, g(e(v)), 3), [
|
|
97
|
-
[
|
|
97
|
+
[N, e(v) !== 0]
|
|
98
98
|
]),
|
|
99
99
|
t(e(I), { size: 14 })
|
|
100
100
|
]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as D, ref as y, watch as k, unref as e,
|
|
2
|
-
import { Popover as S,
|
|
1
|
+
import { defineComponent as D, ref as y, watch as k, unref as e, openBlock as L, createBlock as P, withCtx as r, createElementVNode as n, normalizeClass as t, toDisplayString as m, createVNode as o, createTextVNode as b } from "vue";
|
|
2
|
+
import { Popover as S, Flex as _, Divider as V, Button as g, Tooltip as j } from "@aplus-frontend/antdv";
|
|
3
3
|
import { IconApLayoutOutlined as z } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../../../config-provider/index.mjs";
|
|
5
5
|
import A from "vuedraggable";
|
|
@@ -41,7 +41,7 @@ const M = /* @__PURE__ */ D({
|
|
|
41
41
|
}
|
|
42
42
|
), w({
|
|
43
43
|
getCachedList: () => h
|
|
44
|
-
}), (a, u) => (
|
|
44
|
+
}), (a, u) => (L(), P(e(S), {
|
|
45
45
|
open: p.value,
|
|
46
46
|
"onUpdate:open": u[1] || (u[1] = (d) => p.value = d),
|
|
47
47
|
"overlay-class-name": e(f)("popover"),
|
|
@@ -53,25 +53,25 @@ const M = /* @__PURE__ */ D({
|
|
|
53
53
|
}, {
|
|
54
54
|
content: r(() => [
|
|
55
55
|
n("div", {
|
|
56
|
-
class:
|
|
56
|
+
class: t(e(s)("header"))
|
|
57
57
|
}, [
|
|
58
58
|
n("span", {
|
|
59
|
-
class:
|
|
59
|
+
class: t(e(s)("header-title"))
|
|
60
60
|
}, m(e(c)("ap.apForm.search.sorterTitle")), 3),
|
|
61
|
-
|
|
61
|
+
o(e(_), {
|
|
62
62
|
justify: "space-between",
|
|
63
63
|
align: "center"
|
|
64
64
|
}, {
|
|
65
65
|
default: r(() => [
|
|
66
66
|
n("span", {
|
|
67
|
-
class:
|
|
67
|
+
class: t(e(s)("header-desc"))
|
|
68
68
|
}, m(e(c)("ap.apForm.search.sorterDesc")), 3),
|
|
69
69
|
n("div", {
|
|
70
|
-
class:
|
|
70
|
+
class: t(e(s)("header-action-wrapper")),
|
|
71
71
|
onClick: N
|
|
72
72
|
}, [
|
|
73
73
|
n("span", {
|
|
74
|
-
class:
|
|
74
|
+
class: t(e(s)("header-reset-btn"))
|
|
75
75
|
}, m(e(c)("ap.apForm.search.sorterReset")), 3)
|
|
76
76
|
], 2)
|
|
77
77
|
]),
|
|
@@ -79,26 +79,26 @@ const M = /* @__PURE__ */ D({
|
|
|
79
79
|
})
|
|
80
80
|
], 2),
|
|
81
81
|
n("div", {
|
|
82
|
-
class:
|
|
82
|
+
class: t([e(f)("popover-content"), e(s)("content")])
|
|
83
83
|
}, [
|
|
84
|
-
|
|
84
|
+
o(e(A), {
|
|
85
85
|
list: i.value,
|
|
86
|
-
class:
|
|
86
|
+
class: t(e(s)("sorter-wrapper")),
|
|
87
87
|
"item-key": "name"
|
|
88
88
|
}, {
|
|
89
89
|
item: r(({ element: d }) => [
|
|
90
|
-
|
|
90
|
+
o($, { item: d }, null, 8, ["item"])
|
|
91
91
|
]),
|
|
92
92
|
_: 1
|
|
93
93
|
}, 8, ["list", "class"])
|
|
94
94
|
], 2),
|
|
95
|
-
|
|
95
|
+
o(e(V), { style: { margin: "0" } }),
|
|
96
96
|
n("div", {
|
|
97
|
-
class:
|
|
97
|
+
class: t(e(f)("popover-footer"))
|
|
98
98
|
}, [
|
|
99
|
-
|
|
99
|
+
o(e(_), { justify: "end" }, {
|
|
100
100
|
default: r(() => [
|
|
101
|
-
|
|
101
|
+
o(e(g), {
|
|
102
102
|
onClick: u[0] || (u[0] = (d) => p.value = !1)
|
|
103
103
|
}, {
|
|
104
104
|
default: r(() => [
|
|
@@ -106,8 +106,8 @@ const M = /* @__PURE__ */ D({
|
|
|
106
106
|
]),
|
|
107
107
|
_: 1
|
|
108
108
|
}),
|
|
109
|
-
|
|
110
|
-
class:
|
|
109
|
+
o(e(g), {
|
|
110
|
+
class: t(e(f)("popover-footer-confirm-btn")),
|
|
111
111
|
type: "primary",
|
|
112
112
|
onClick: T
|
|
113
113
|
}, {
|
|
@@ -122,16 +122,16 @@ const M = /* @__PURE__ */ D({
|
|
|
122
122
|
], 2)
|
|
123
123
|
]),
|
|
124
124
|
default: r(() => [
|
|
125
|
-
|
|
125
|
+
o(e(j), {
|
|
126
126
|
title: e(c)("ap.apForm.search.sorterTitle"),
|
|
127
127
|
placement: "top"
|
|
128
128
|
}, {
|
|
129
129
|
default: r(() => [
|
|
130
|
-
|
|
131
|
-
class:
|
|
130
|
+
o(e(g), {
|
|
131
|
+
class: t([e(C)("trigger-btn"), { [e(C)("trigger-btn-active")]: p.value }])
|
|
132
132
|
}, {
|
|
133
133
|
icon: r(() => [
|
|
134
|
-
|
|
134
|
+
o(e(z), { size: 14 })
|
|
135
135
|
]),
|
|
136
136
|
_: 1
|
|
137
137
|
}, 8, ["class"])
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as i,
|
|
1
|
+
import { defineComponent as i, openBlock as l, createElementBlock as m, normalizeClass as o, unref as e, createElementVNode as s, createVNode as a, toDisplayString as n } from "vue";
|
|
2
2
|
import { HolderOutlined as c } from "@ant-design/icons-vue";
|
|
3
3
|
import "../../../../config-provider/index.mjs";
|
|
4
4
|
import { useNamespace as p } from "../../../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -10,7 +10,7 @@ const d = ["title"], N = /* @__PURE__ */ i({
|
|
|
10
10
|
},
|
|
11
11
|
setup(f) {
|
|
12
12
|
const { b: t } = p("search-form-sorter");
|
|
13
|
-
return (r, u) => (
|
|
13
|
+
return (r, u) => (l(), m("div", {
|
|
14
14
|
class: o([e(t)("sorter-item"), { [e(t)("sorter-item--hidden")]: r.item.isHidden }])
|
|
15
15
|
}, [
|
|
16
16
|
s("div", null, [
|
|
@@ -2,12 +2,13 @@ import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
|
|
3
3
|
import { ButtonSize, SizeType } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
5
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
6
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { Recordable } from '../../type';
|
|
10
10
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
11
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSearchFormPopoverSorterItem } from '..';
|
|
13
14
|
import { OnCleanup } from '@vue/reactivity';
|
|
@@ -115,7 +116,7 @@ declare function __VLS_template(): {
|
|
|
115
116
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
116
117
|
readonly initialValues?: Recordable | undefined;
|
|
117
118
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
118
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
119
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
119
120
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
120
121
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
121
122
|
$attrs: {
|
|
@@ -954,7 +955,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
954
955
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
955
956
|
readonly initialValues?: Recordable | undefined;
|
|
956
957
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
957
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
958
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
958
959
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
959
960
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
960
961
|
$attrs: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isVNode as ne, defineComponent as le, useSlots as re, ref as D, shallowRef as U, computed as S, unref as n, watch as W, createVNode as o, Fragment as _,
|
|
1
|
+
import { isVNode as ne, defineComponent as le, useSlots as re, ref as D, shallowRef as U, computed as S, unref as n, watch as W, createVNode as o, Fragment as _, openBlock as d, createBlock as x, mergeProps as se, withCtx as A, resolveDynamicComponent as B, createElementBlock as ie, renderList as ue } from "vue";
|
|
2
2
|
import { Col as w, Flex as I, Button as M, Row as ce } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../item/index.vue2.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, useSlots as f, cloneVNode as d, onMounted as V,
|
|
1
|
+
import { defineComponent as p, useSlots as f, cloneVNode as d, onMounted as V, openBlock as l, createElementBlock as _, Fragment as y, renderList as C, createBlock as F, resolveDynamicComponent as k } from "vue";
|
|
2
2
|
import { useInjectForm as g } from "../context.mjs";
|
|
3
3
|
import { isFunction as h, cloneDeep as w } from "lodash-unified";
|
|
4
4
|
import { isPromise as x } from "@fruits-chain/utils";
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<EditableGridFormItemExpose>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
10
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}> & {
|
|
11
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
12
14
|
};
|
|
13
15
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as K, useSlots as H, toRef as P, ref as h, unref as u, watch as A, nextTick as W,
|
|
1
|
+
import { defineComponent as K, useSlots as H, toRef as P, ref as h, unref as u, watch as A, nextTick as W, openBlock as G, createBlock as U, mergeProps as y, withCtx as g, createVNode as $, createSlots as q, renderList as J, renderSlot as Q, normalizeProps as X, guardReactiveProps as Y } from "vue";
|
|
2
2
|
import { ApForm as C } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isUndefined as Z, isNumber as m, cloneDeep as I, isArray as M, omit as ee } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -265,7 +265,7 @@ const we = /* @__PURE__ */ K({
|
|
|
265
265
|
setTableData: E,
|
|
266
266
|
clear: z,
|
|
267
267
|
removeByKey: T
|
|
268
|
-
}), (e, a) => (
|
|
268
|
+
}), (e, a) => (G(), U(u(C).FormItem, y(e.formItem, {
|
|
269
269
|
name: e.name,
|
|
270
270
|
label: e.label
|
|
271
271
|
}), {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EditableGridExpose, EditableGridProps } from './interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9,7 +9,9 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
11
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
12
|
-
}>) => VNode
|
|
12
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}> & {
|
|
13
15
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
16
|
};
|
|
15
17
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, useSlots as q, ref as v, watch as x, unref as u,
|
|
1
|
+
import { defineComponent as $, useSlots as q, ref as v, watch as x, unref as u, openBlock as J, createBlock as Q, withCtx as h, createVNode as b, mergeProps as X, createSlots as Y, renderList as Z, renderSlot as M, normalizeProps as ee, guardReactiveProps as te } from "vue";
|
|
2
2
|
import { ApForm as y } from "../../ap-form/index.mjs";
|
|
3
3
|
import { isEqual as ae, isArray as g, isUndefined as oe, isNumber as C, cloneDeep as le, omit as ne } from "lodash-unified";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -288,7 +288,7 @@ const Re = /* @__PURE__ */ $({
|
|
|
288
288
|
clear: U,
|
|
289
289
|
setTableData: I,
|
|
290
290
|
removeByKey: K
|
|
291
|
-
}), (e, t) => (
|
|
291
|
+
}), (e, t) => (J(), Q(u(y), {
|
|
292
292
|
ref_key: "formRef",
|
|
293
293
|
ref: i,
|
|
294
294
|
"initial-values": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeTableSlots } from 'vxe-table';
|
|
2
2
|
import { ApGridColumnType, ApGridExpose, ApGridProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApGridProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<ApGridExpose>): void;
|
|
@@ -35,7 +35,9 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
35
35
|
}) => any;
|
|
36
36
|
};
|
|
37
37
|
emit: {};
|
|
38
|
-
}>) => VNode
|
|
38
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}> & {
|
|
39
41
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
42
|
};
|
|
41
43
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $e, useSlots as We, getCurrentInstance as Me, ref as E, computed as n, unref as a, toRef as je, nextTick as He, watch as B,
|
|
1
|
+
import { defineComponent as $e, useSlots as We, getCurrentInstance as Me, ref as E, computed as n, unref as a, toRef as je, nextTick as He, watch as B, openBlock as d, createElementBlock as P, normalizeClass as g, normalizeStyle as V, createVNode as _, mergeProps as w, createSlots as te, withCtx as h, Fragment as oe, renderList as K, createBlock as f, resolveDynamicComponent as L, renderSlot as D, createCommentVNode as b, createElementVNode as R, normalizeProps as qe, guardReactiveProps as Ue } from "vue";
|
|
2
2
|
import { VxeUI as ae, VxeTable as Ge, VxeColumn as re } from "vxe-table";
|
|
3
3
|
import "vxe-table/es/style.css";
|
|
4
4
|
import { isUndefined as x, isFunction as le, omit as Xe } from "lodash-unified";
|
|
@@ -7,12 +7,12 @@ import "../config-provider/index.mjs";
|
|
|
7
7
|
import { noRenderAsFormItemValueList as Qe } from "../ap-table/constants.mjs";
|
|
8
8
|
import { getColumnOrder as ne, updateFormProps as Ye, getFieldProps as Ze, getSearchFormItemRenderNode as et, recursionApColumns as se } from "../ap-table/utils.mjs";
|
|
9
9
|
import { useTablePaging as tt } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
10
|
-
import {
|
|
10
|
+
import { Empty as ie, Spin as ot, Pagination as at } from "@aplus-frontend/antdv";
|
|
11
11
|
import { useInnerParams as rt } from "./hooks/use-inner-params.mjs";
|
|
12
12
|
import { toVxeProps as lt, getRowExpandProps as nt, getRowSelectionProps as st } from "./utils/table.mjs";
|
|
13
13
|
import it from "./hooks/use-row-selection.mjs";
|
|
14
14
|
import { useProvideApTable as dt } from "../ap-table/context.mjs";
|
|
15
|
-
import {
|
|
15
|
+
import { sizeMap as ut, sizeReverseMap as ct, ROW_SELECTION_FIELD as ft } from "./constants.mjs";
|
|
16
16
|
import { useRenderColumns as pt } from "./hooks/use-render-columns.mjs";
|
|
17
17
|
import { useToken as mt } from "@aplus-frontend/antdv/es/theme/internal";
|
|
18
18
|
import "../scroll-bar/index.mjs";
|
|
@@ -216,13 +216,13 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
216
216
|
dt({
|
|
217
217
|
columns: n(() => i.value),
|
|
218
218
|
columnsBackup: n(() => O.value),
|
|
219
|
-
size: n(() =>
|
|
219
|
+
size: n(() => ut[I.value]),
|
|
220
220
|
updateColumns(e) {
|
|
221
221
|
var t;
|
|
222
222
|
i.value = e, (t = o.onShownColumnsChange) == null || t.call(o, e);
|
|
223
223
|
},
|
|
224
224
|
updateSize(e) {
|
|
225
|
-
I.value =
|
|
225
|
+
I.value = ct[e];
|
|
226
226
|
},
|
|
227
227
|
renderConfig: n(() => ({
|
|
228
228
|
className: ce("table-header", "title"),
|
|
@@ -400,7 +400,7 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
400
400
|
class: g(e.card ? a(F)("search-wrapper") : null),
|
|
401
401
|
style: V(e.searchFormWrapperStyle)
|
|
402
402
|
}, [
|
|
403
|
-
_(a(Je).SearchForm,
|
|
403
|
+
_(a(Je).SearchForm, w(e.searchForm || {}, {
|
|
404
404
|
ref_key: "formRef",
|
|
405
405
|
ref: C,
|
|
406
406
|
"custom-reset": "",
|
|
@@ -423,12 +423,12 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
423
423
|
key: "0"
|
|
424
424
|
} : void 0
|
|
425
425
|
]), 1040, ["submit-loading", "onSubmit", "onReset"])
|
|
426
|
-
], 6)) :
|
|
427
|
-
|
|
426
|
+
], 6)) : b("", !0),
|
|
427
|
+
R("div", {
|
|
428
428
|
class: g([a(F)("table-wrapper"), e.card ? a(F)("table-wrapper-card") : null]),
|
|
429
429
|
style: V(e.tableWrapperStyle)
|
|
430
430
|
}, [
|
|
431
|
-
|
|
431
|
+
R("div", {
|
|
432
432
|
class: g(a(u)("header-wrapper"))
|
|
433
433
|
}, [
|
|
434
434
|
D(e.$slots, "title", {
|
|
@@ -438,10 +438,10 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
438
438
|
clearAll: A
|
|
439
439
|
})
|
|
440
440
|
], 2),
|
|
441
|
-
|
|
441
|
+
R("div", {
|
|
442
442
|
class: g(a(u)("vxe-wrapper"))
|
|
443
443
|
}, [
|
|
444
|
-
(d(), f(a(Ge),
|
|
444
|
+
(d(), f(a(Ge), w(a(lt)(o), {
|
|
445
445
|
ref_key: "tableRef",
|
|
446
446
|
ref: s,
|
|
447
447
|
key: a(Ce),
|
|
@@ -470,20 +470,20 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
470
470
|
}, null, 8, ["image"])
|
|
471
471
|
]),
|
|
472
472
|
loading: h(() => [
|
|
473
|
-
|
|
473
|
+
R("div", {
|
|
474
474
|
class: g(a(F)("table-loading-wrapper"))
|
|
475
475
|
}, [
|
|
476
476
|
_(a(ot))
|
|
477
477
|
], 2)
|
|
478
478
|
]),
|
|
479
479
|
default: h(() => [
|
|
480
|
-
o.expandable && i.value.length ? (d(), f(a(re),
|
|
480
|
+
o.expandable && i.value.length ? (d(), f(a(re), w({ key: 0 }, a(nt)(e.expandable), { fixed: Ee.value }), {
|
|
481
481
|
content: h((l) => [
|
|
482
482
|
(d(), f(L(o.expandable.renderContent(l))))
|
|
483
483
|
]),
|
|
484
484
|
_: 1
|
|
485
|
-
}, 16, ["fixed"])) :
|
|
486
|
-
o.rowSelection && i.value.length ? (d(), f(a(re),
|
|
485
|
+
}, 16, ["fixed"])) : b("", !0),
|
|
486
|
+
o.rowSelection && i.value.length ? (d(), f(a(re), w({ key: 1 }, a(st)(a(m), i.value), { field: a(ft) }), null, 16, ["field"])) : b("", !0),
|
|
487
487
|
(d(!0), P(oe, null, K(a(he), (l) => (d(), f(L(l), {
|
|
488
488
|
key: l.props.colId
|
|
489
489
|
}))), 128))
|
|
@@ -498,7 +498,7 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
498
498
|
}))
|
|
499
499
|
]), 1040, ["data", "sort-config", "filter-config", "loading", "style", "size", "onSortChange", "onFilterChange"]))
|
|
500
500
|
], 2),
|
|
501
|
-
|
|
501
|
+
R("div", {
|
|
502
502
|
class: g(a(u)("pagination-wrapper"))
|
|
503
503
|
}, [
|
|
504
504
|
e.sticky ? (d(), f(a(wt), {
|
|
@@ -508,11 +508,11 @@ const Gt = /* @__PURE__ */ $e({
|
|
|
508
508
|
"extra-size": -4.2,
|
|
509
509
|
"bar-color": "var(--ap-scrollbar-thumb-color-base)",
|
|
510
510
|
"track-color": "var(--ap-table-header-bg, #f2f6f9)"
|
|
511
|
-
}, null, 8, ["scroll-container"])) :
|
|
512
|
-
e.pagination !== !1 ? (d(), f(a(at),
|
|
511
|
+
}, null, 8, ["scroll-container"])) : b("", !0),
|
|
512
|
+
e.pagination !== !1 ? (d(), f(a(at), w({
|
|
513
513
|
key: 1,
|
|
514
514
|
class: a(u)("pagination")
|
|
515
|
-
}, a(q).pagination, { onChange: a(Ie) }), null, 16, ["class", "onChange"])) :
|
|
515
|
+
}, a(q).pagination, { onChange: a(Ie) }), null, 16, ["class", "onChange"])) : b("", !0)
|
|
516
516
|
], 2)
|
|
517
517
|
], 6)
|
|
518
518
|
], 6));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApListExpose, ApListProps } from './interface';
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
import { ApFormSearchFormExpose } from '..';
|
|
5
5
|
declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
|
|
@@ -34,7 +34,9 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
34
34
|
}): any;
|
|
35
35
|
};
|
|
36
36
|
emit: {};
|
|
37
|
-
}>) => VNode
|
|
37
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}> & {
|
|
38
40
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
39
41
|
};
|
|
40
42
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as _, ref as x, toRef as ee, unref as t, computed as p, watch as te,
|
|
1
|
+
import { defineComponent as _, ref as x, toRef as ee, unref as t, computed as p, watch as te, openBlock as i, createElementBlock as s, normalizeClass as l, normalizeStyle as h, renderSlot as u, createElementVNode as ae, createVNode as g, createCommentVNode as I, Fragment as F, createBlock as V, withCtx as b, renderList as ne, mergeProps as re } from "vue";
|
|
2
2
|
import { Empty as E, Spin as oe, Pagination as ie } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useTablePaging as le } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
@@ -6,7 +6,7 @@ export type ModalFunc = (props: ModalFuncProps) => {
|
|
|
6
6
|
update: (configUpdate: ConfigUpdate) => void;
|
|
7
7
|
};
|
|
8
8
|
declare const confirm: (config: ModalFuncProps) => {
|
|
9
|
-
destroy: (this:
|
|
9
|
+
destroy: (this: any, ...args: any[]) => void;
|
|
10
10
|
update: (configUpdate: ConfigUpdate) => void;
|
|
11
11
|
};
|
|
12
12
|
export default confirm;
|
|
@@ -2,7 +2,7 @@ import { ApColumnType, ApTableProps } from './interface';
|
|
|
2
2
|
import { ApFormSearchFormPopoverSorterItem } from '../ap-form';
|
|
3
3
|
import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
|
|
4
4
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
5
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } from 'vue';
|
|
5
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
6
6
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
|
|
8
8
|
expose(exposed: ShallowUnwrapRef<{
|
|
@@ -98,7 +98,9 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
98
98
|
}) => void;
|
|
99
99
|
};
|
|
100
100
|
emit: {};
|
|
101
|
-
}>) => VNode
|
|
101
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
}> & {
|
|
102
104
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
103
105
|
};
|
|
104
106
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as je, useSlots as He, ref as v, computed as s, unref as l, toRef as _e, createVNode as y, Fragment as ne, watch as k,
|
|
1
|
+
import { defineComponent as je, useSlots as He, ref as v, computed as s, unref as l, toRef as _e, createVNode as y, Fragment as ne, watch as k, openBlock as g, createElementBlock as B, normalizeClass as b, normalizeStyle as K, mergeProps as I, createSlots as se, withCtx as R, renderList as de, createBlock as ue, resolveDynamicComponent as Ue, renderSlot as C, createCommentVNode as ie, createElementVNode as L, normalizeProps as qe, guardReactiveProps as Me } from "vue";
|
|
2
2
|
import { Divider as Ge, Table as Je } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useToken as Qe } from "@aplus-frontend/antdv/es/theme/internal";
|
|
4
4
|
import { ApForm as Xe } from "../ap-form/index.mjs";
|
|
@@ -6,7 +6,7 @@ import { noRenderAsFormItemValueList as ce } from "./constants.mjs";
|
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
7
|
import { useTablePaging as Ye } from "./hooks/use-table-paging-ng.mjs";
|
|
8
8
|
import { isUndefined as S, omit as fe, isBoolean as Ze } from "lodash-unified";
|
|
9
|
-
import { getColumnOrder as pe, updateFormProps as er, getFieldProps as rr, getSearchFormItemRenderNode as tr, recursionApColumns as me,
|
|
9
|
+
import { getColumnOrder as pe, updateFormProps as er, getFieldProps as rr, getSearchFormItemRenderNode as tr, recursionApColumns as me, apColumnToColumn as or, getTableTitle as ar, getTableRenderType as lr, getTableRenderProps as nr, getTableCellRenderNode as sr, falseToUndefined as dr, objectToString as ur } from "./utils.mjs";
|
|
10
10
|
import ir from "./hooks/use-table-content-height.mjs";
|
|
11
11
|
import cr from "./hooks/use-table-row-selection.mjs";
|
|
12
12
|
import { getScrollbarSize as fr, isDef as ye } from "../utils/index.mjs";
|
|
@@ -266,23 +266,23 @@ const _r = /* @__PURE__ */ je({
|
|
|
266
266
|
function t(a, d) {
|
|
267
267
|
return a.map((n) => ({
|
|
268
268
|
resizable: ye(n.resizable) ? n.resizable : r.columnResizable,
|
|
269
|
-
...fe(
|
|
269
|
+
...fe(or(n), ["ellipsis"]),
|
|
270
270
|
// tips: 此函数内部依赖查询&筛选的相应式值
|
|
271
271
|
...G(n),
|
|
272
272
|
fixed: d ? d.fixed : n.fixed,
|
|
273
|
-
title:
|
|
273
|
+
title: ar(n, A("table-header", "title"), c.headerCell, l(Se).colorTextTertiary),
|
|
274
274
|
customRender({
|
|
275
275
|
value: m,
|
|
276
276
|
...w
|
|
277
277
|
}) {
|
|
278
278
|
var ae, le;
|
|
279
|
-
const te =
|
|
279
|
+
const te = lr(n), We = nr({
|
|
280
280
|
...n,
|
|
281
281
|
valueType: te
|
|
282
282
|
}, {
|
|
283
283
|
value: m,
|
|
284
284
|
...w
|
|
285
|
-
}), $e =
|
|
285
|
+
}), $e = sr(te, We, w.record, l(W)), oe = ((ae = n.renderText) == null ? void 0 : ae.call(n, {
|
|
286
286
|
value: m,
|
|
287
287
|
...w
|
|
288
288
|
})) || m, De = n.renderText ? y(ne, null, [(le = n.renderText) == null ? void 0 : le.call(n, {
|
|
@@ -453,8 +453,8 @@ const _r = /* @__PURE__ */ je({
|
|
|
453
453
|
"submit-loading": l(q).loading,
|
|
454
454
|
onSubmit: l(P),
|
|
455
455
|
onReset: l(V)
|
|
456
|
-
}),
|
|
457
|
-
default: R(() => [(g(!0), B(ne, null,
|
|
456
|
+
}), se({
|
|
457
|
+
default: R(() => [(g(!0), B(ne, null, de(U.value, (o) => (g(), ue(Ue(o.renderNode), {
|
|
458
458
|
key: o.dataIndex
|
|
459
459
|
}))), 128))]),
|
|
460
460
|
_: 2
|
|
@@ -462,7 +462,7 @@ const _r = /* @__PURE__ */ je({
|
|
|
462
462
|
name: "extra",
|
|
463
463
|
fn: R(() => [C(e.$slots, "searchFormExtra")]),
|
|
464
464
|
key: "0"
|
|
465
|
-
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) :
|
|
465
|
+
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : ie("", !0), L("div", {
|
|
466
466
|
ref_key: "contentRef",
|
|
467
467
|
ref: Re,
|
|
468
468
|
class: b([l(z)("table-wrapper"), e.card ? l(z)("table-wrapper-card") : null]),
|
|
@@ -478,10 +478,10 @@ const _r = /* @__PURE__ */ je({
|
|
|
478
478
|
selectedRows: l(F),
|
|
479
479
|
selectedRowKeys: l(T).selectedRowKeys,
|
|
480
480
|
shownColumns: u.value
|
|
481
|
-
}, x))], 2), c.title ? (g(),
|
|
481
|
+
}, x))], 2), c.title ? (g(), ue(l(Ge), {
|
|
482
482
|
key: 0,
|
|
483
483
|
type: "vertical"
|
|
484
|
-
})) :
|
|
484
|
+
})) : ie("", !0), y(hr, {
|
|
485
485
|
config: e.settings === !0 ? {} : e.settings
|
|
486
486
|
}, null, 8, ["config"])], 2)) : C(e.$slots, "title", I({
|
|
487
487
|
key: 1,
|
|
@@ -497,7 +497,7 @@ const _r = /* @__PURE__ */ je({
|
|
|
497
497
|
"table-layout": Ke.value,
|
|
498
498
|
columns: u.value,
|
|
499
499
|
onResizeColumn: t[0] || (t[0] = (o, a) => a.width = o)
|
|
500
|
-
}),
|
|
500
|
+
}), se({
|
|
501
501
|
summary: R(() => [C(e.$slots, "summary", {
|
|
502
502
|
columns: u.value,
|
|
503
503
|
records: Q.value.dataSource,
|
|
@@ -518,7 +518,7 @@ const _r = /* @__PURE__ */ je({
|
|
|
518
518
|
}, null, 8, ["scroll-container"])];
|
|
519
519
|
}),
|
|
520
520
|
key: "0"
|
|
521
|
-
} : void 0,
|
|
521
|
+
} : void 0, de(l(fe)(c, ["title", "searchFormExtra", "headerCell", "summary"]), (o, a) => ({
|
|
522
522
|
name: a,
|
|
523
523
|
fn: R((d) => [C(e.$slots, a, qe(Me(d || {})))])
|
|
524
524
|
}))]), 1040, ["class", "size", "table-layout", "columns"])], 6)], 6));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as n, computed as l,
|
|
1
|
+
import { defineComponent as n, computed as l, openBlock as s, createElementBlock as p, normalizeClass as d, toDisplayString as m } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
3
|
import { useNamespace as c } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
4
4
|
const _ = /* @__PURE__ */ n({
|
|
@@ -10,7 +10,7 @@ const _ = /* @__PURE__ */ n({
|
|
|
10
10
|
},
|
|
11
11
|
setup(e) {
|
|
12
12
|
const o = e, { m: a } = c("ap-table-index"), r = l(() => [o.bordered ? a("bordered") : null].filter(Boolean));
|
|
13
|
-
return (t, i) => (
|
|
13
|
+
return (t, i) => (s(), p("div", {
|
|
14
14
|
class: d(r.value)
|
|
15
15
|
}, m(t.value), 3));
|
|
16
16
|
}
|