@aplus-frontend/ui 0.5.3 → 0.5.5
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 +37 -33
- 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 +3 -3
- 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 +30 -30
- 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/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 +13 -13
- 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-form/ap-form.vue2.mjs +2 -2
- 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/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.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/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.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 +16 -0
- package/es/src/ap-grid/editable/form-item.vue.mjs +257 -0
- package/es/src/ap-grid/editable/form-item.vue2.mjs +4 -0
- package/es/src/ap-grid/editable/index.vue.d.ts +18 -0
- package/es/src/ap-grid/editable/index.vue.mjs +288 -0
- package/es/src/ap-grid/editable/index.vue2.mjs +4 -0
- package/es/src/ap-grid/editable/interface.d.ts +95 -0
- package/es/src/ap-grid/editable/interface.mjs +1 -0
- package/es/src/ap-grid/editable/style/css.d.ts +0 -0
- package/es/src/ap-grid/editable/style/css.js +1 -0
- package/es/src/ap-grid/editable/style/index.d.ts +0 -0
- package/es/src/ap-grid/editable/style/index.js +1 -0
- package/es/src/ap-grid/hooks/use-editable-columns.d.ts +6 -0
- package/es/src/ap-grid/hooks/use-editable-columns.mjs +68 -0
- package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
- package/es/src/ap-grid/index.d.ts +4 -1
- package/es/src/ap-grid/index.mjs +3 -0
- package/es/src/ap-grid/index.vue.mjs +113 -103
- package/es/src/ap-grid/interface.d.ts +15 -0
- package/es/src/ap-grid/utils/col.mjs +39 -39
- package/es/src/ap-grid/utils/editable.d.ts +3 -0
- package/es/src/ap-grid/utils/editable.mjs +27 -0
- package/es/src/ap-grid/utils/table.mjs +24 -17
- 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.mjs +4 -4
- package/es/src/ap-table/ap-table.vue2.mjs +172 -159
- 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.mjs +40 -40
- package/es/src/ap-table/context.d.ts +4 -4
- package/es/src/ap-table/hooks/use-sorted-filtered.d.ts +4 -1
- package/es/src/ap-table/hooks/use-sorted-filtered.mjs +11 -9
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +3 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +53 -49
- package/es/src/ap-table/hooks/use-table-paging.d.ts +1 -1
- 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.vue2.mjs +3 -3
- 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.vue.d.ts +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 +4 -4
- 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.vue2.mjs +11 -11
- 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.vue2.mjs +1 -1
- package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +1 -1
- 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 +7 -6
- 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/config-provider-props.mjs +1 -1
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/editable-table/utils.d.ts +3 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/index.mjs +24 -20
- package/es/src/path-map.mjs +3 -1
- 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.mjs +9 -9
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- 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.js +1 -1
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +16 -0
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -0
- package/lib/src/ap-grid/editable/form-item.vue2.js +1 -0
- package/lib/src/ap-grid/editable/index.vue.d.ts +18 -0
- package/lib/src/ap-grid/editable/index.vue.js +1 -0
- package/lib/src/ap-grid/editable/index.vue2.js +1 -0
- package/lib/src/ap-grid/editable/interface.d.ts +95 -0
- package/lib/src/ap-grid/editable/interface.js +1 -0
- package/lib/src/ap-grid/editable/style/css.cjs +1 -0
- package/lib/src/ap-grid/editable/style/css.d.ts +0 -0
- package/lib/src/ap-grid/editable/style/index.cjs +1 -0
- package/lib/src/ap-grid/editable/style/index.d.ts +0 -0
- package/lib/src/ap-grid/hooks/use-editable-columns.d.ts +6 -0
- package/lib/src/ap-grid/hooks/use-editable-columns.js +1 -0
- package/lib/src/ap-grid/index.d.ts +4 -1
- package/lib/src/ap-grid/index.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +15 -0
- package/lib/src/ap-grid/utils/col.js +1 -1
- package/lib/src/ap-grid/utils/editable.d.ts +3 -0
- package/lib/src/ap-grid/utils/editable.js +1 -0
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/context.d.ts +4 -4
- package/lib/src/ap-table/hooks/use-sorted-filtered.d.ts +4 -1
- package/lib/src/ap-table/hooks/use-sorted-filtered.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +3 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +1 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue.d.ts +2 -2
- package/lib/src/business/ap-batch-action-group/index.d.ts +4 -4
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/editable-table/utils.d.ts +3 -2
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/package.json +1 -1
- package/theme/ap-grid/editable.css +22 -0
- package/theme/ap-grid/editable.less +28 -0
- package/theme/index.css +22 -0
- package/theme/index.less +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as A, ref as L,
|
|
1
|
+
import { defineComponent as A, ref as L, computed as O, watch as $, createElementBlock as y, openBlock as c, normalizeClass as d, unref as n, createVNode as m, createElementVNode as v, withCtx as g, toDisplayString as k, createTextVNode as q, createCommentVNode as p, createBlock as b } 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: g(() => [
|
|
116
|
+
v("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: g(() => [
|
|
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
|
+
v("div", {
|
|
135
135
|
class: d(n(r)("content"))
|
|
136
136
|
}, [
|
|
137
137
|
i.value.length ? (c(), y("div", W, [
|
|
138
|
-
|
|
138
|
+
v("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: g(({ 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
|
+
v("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: g(({ 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
|
+
v("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: g(({ 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, createElementBlock as i, openBlock as c, 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, createBlock as u, createCommentVNode as a, openBlock as m, unref as p, normalizeProps as l, mergeProps 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 ? (m(), u(p(s), l(c({ key: 0 }, r.value)), null, 16)) : a("", !0);
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
export {
|
|
@@ -3,53 +3,53 @@ 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/date/index.vue.mjs";
|
|
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";
|
|
12
6
|
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
|
|
7
|
+
import o from "../ap-form/items/checkbox/index.vue.mjs";
|
|
8
|
+
import r from "../ap-form/items/text-area/index.vue.mjs";
|
|
9
|
+
import i from "../ap-form/items/switch/index.vue.mjs";
|
|
10
|
+
import t from "../ap-form/items/select/index.vue.mjs";
|
|
11
|
+
import a from "../ap-form/items/radio/index.vue.mjs";
|
|
12
|
+
import f from "../ap-form/items/number/index.vue.mjs";
|
|
13
|
+
import _ from "../ap-form/items/date-range/index.vue.mjs";
|
|
14
|
+
import e from "../ap-form/items/date/index.vue.mjs";
|
|
15
|
+
import s from "../ap-field/text/password.vue.mjs";
|
|
16
|
+
import p from "./components/status/index.vue2.mjs";
|
|
17
|
+
import c from "./components/index/index.vue2.mjs";
|
|
18
|
+
import n from "../ap-action/group/index.vue.mjs";
|
|
19
|
+
import $ from "../ap-field/checkbox/index.vue.mjs";
|
|
20
|
+
import d from "../ap-field/text-area/index.vue.mjs";
|
|
21
21
|
import { ApFieldText as x } from "../ap-field/text/index.mjs";
|
|
22
|
-
import b from "../ap-field/
|
|
23
|
-
import l from "../ap-field/
|
|
24
|
-
import h from "../ap-
|
|
25
|
-
import w from "
|
|
26
|
-
import A from "
|
|
27
|
-
import u from "../ap-field/
|
|
22
|
+
import b from "../ap-field/switch/index.vue.mjs";
|
|
23
|
+
import l from "../ap-field/select/index.vue.mjs";
|
|
24
|
+
import h from "../ap-field/radio/index.vue.mjs";
|
|
25
|
+
import w from "../ap-field/number/index.vue.mjs";
|
|
26
|
+
import A from "../ap-field/date-range/index.vue.mjs";
|
|
27
|
+
import u from "../ap-field/date/index.vue.mjs";
|
|
28
28
|
const U = {
|
|
29
|
-
date:
|
|
30
|
-
dateRange:
|
|
31
|
-
number:
|
|
32
|
-
radio:
|
|
33
|
-
select:
|
|
34
|
-
switch:
|
|
29
|
+
date: e,
|
|
30
|
+
dateRange: _,
|
|
31
|
+
number: f,
|
|
32
|
+
radio: a,
|
|
33
|
+
select: t,
|
|
34
|
+
switch: i,
|
|
35
35
|
text: m,
|
|
36
|
-
textArea:
|
|
37
|
-
checkbox:
|
|
36
|
+
textArea: r,
|
|
37
|
+
checkbox: o,
|
|
38
38
|
password: m.Password
|
|
39
39
|
}, W = {
|
|
40
|
-
date:
|
|
41
|
-
dateRange:
|
|
42
|
-
number:
|
|
43
|
-
radio:
|
|
44
|
-
select:
|
|
45
|
-
switch:
|
|
40
|
+
date: u,
|
|
41
|
+
dateRange: A,
|
|
42
|
+
number: w,
|
|
43
|
+
radio: h,
|
|
44
|
+
select: l,
|
|
45
|
+
switch: b,
|
|
46
46
|
text: x,
|
|
47
|
-
textArea:
|
|
48
|
-
checkbox:
|
|
49
|
-
action:
|
|
50
|
-
index:
|
|
51
|
-
status:
|
|
52
|
-
password:
|
|
47
|
+
textArea: d,
|
|
48
|
+
checkbox: $,
|
|
49
|
+
action: n,
|
|
50
|
+
index: c,
|
|
51
|
+
status: p,
|
|
52
|
+
password: s
|
|
53
53
|
}, X = [
|
|
54
54
|
"action",
|
|
55
55
|
"index"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ColumnsType } from '@aplus-frontend/antdv/es/table';
|
|
2
2
|
import { ComputedRef, InjectionKey } from 'vue';
|
|
3
3
|
import { ApTableContextRenderConfig, ApTableProps } from './interface';
|
|
4
4
|
type TableSize = ApTableProps['size'];
|
|
@@ -6,11 +6,11 @@ type ApTableContextProps<RecordType> = {
|
|
|
6
6
|
/**
|
|
7
7
|
* 表格列配置
|
|
8
8
|
*/
|
|
9
|
-
columns?: ComputedRef<
|
|
9
|
+
columns?: ComputedRef<ColumnsType<RecordType>>;
|
|
10
10
|
/**
|
|
11
11
|
* 表格列配置备份(只有在props变更后才会变更)
|
|
12
12
|
*/
|
|
13
|
-
columnsBackup?: ComputedRef<
|
|
13
|
+
columnsBackup?: ComputedRef<ColumnsType<RecordType>>;
|
|
14
14
|
/**
|
|
15
15
|
* 更新数据源的方法
|
|
16
16
|
* @param name
|
|
@@ -18,7 +18,7 @@ type ApTableContextProps<RecordType> = {
|
|
|
18
18
|
* @param triggerChange 是否触发外部的`onValuesChange`函数
|
|
19
19
|
* @returns
|
|
20
20
|
*/
|
|
21
|
-
updateColumns?: (nextColumns:
|
|
21
|
+
updateColumns?: (nextColumns: ColumnsType<RecordType>) => void;
|
|
22
22
|
/**
|
|
23
23
|
* ApForm内部实例
|
|
24
24
|
*/
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { ApColumnType } from '../interface';
|
|
2
2
|
import { Recordable } from '../../type';
|
|
3
|
+
import { Ref } from 'vue';
|
|
3
4
|
export declare const useTableSortedAndFiltered: () => {
|
|
4
|
-
getColumnSFConfig: (column: ApColumnType) => Recordable;
|
|
5
|
+
getColumnSFConfig: (column: ApColumnType, append?: boolean) => Recordable;
|
|
5
6
|
setSF: (filters: any, sorter: any) => void;
|
|
6
7
|
clearSorter: () => void;
|
|
7
8
|
clearFilters: () => void;
|
|
8
9
|
clearAll: () => void;
|
|
10
|
+
sortedInfo: Ref<any, any>;
|
|
11
|
+
filteredInfo: Ref<any, any>;
|
|
9
12
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ref as i, unref as s } from "vue";
|
|
2
|
-
const
|
|
2
|
+
const S = () => {
|
|
3
3
|
const r = i(), t = i();
|
|
4
|
-
function c(e) {
|
|
5
|
-
const
|
|
6
|
-
return e.filters && (l.filteredValue =
|
|
4
|
+
function c(e, n = !1) {
|
|
5
|
+
const v = s(t) || {}, u = s(r) || {}, l = n ? e : {};
|
|
6
|
+
return e.filters && (l.filteredValue = v[e.key] || null), e.sorter && (l.sortOrder = u.columnKey === e.key ? u.order : null), l;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function a(e, n) {
|
|
9
9
|
t.value = e, r.value = n;
|
|
10
10
|
}
|
|
11
11
|
function o() {
|
|
@@ -14,17 +14,19 @@ const F = () => {
|
|
|
14
14
|
function f() {
|
|
15
15
|
t.value = null;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function d() {
|
|
18
18
|
o(), f();
|
|
19
19
|
}
|
|
20
20
|
return {
|
|
21
21
|
getColumnSFConfig: c,
|
|
22
|
-
setSF:
|
|
22
|
+
setSF: a,
|
|
23
23
|
clearSorter: o,
|
|
24
24
|
clearFilters: f,
|
|
25
|
-
clearAll:
|
|
25
|
+
clearAll: d,
|
|
26
|
+
sortedInfo: r,
|
|
27
|
+
filteredInfo: t
|
|
26
28
|
};
|
|
27
29
|
};
|
|
28
30
|
export {
|
|
29
|
-
|
|
31
|
+
S as useTableSortedAndFiltered
|
|
30
32
|
};
|
|
@@ -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,
|
|
@@ -88,6 +88,8 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
|
|
|
88
88
|
}>;
|
|
89
89
|
dataSource: ComputedRef<DataType[]>;
|
|
90
90
|
setDataSource: (dataSource?: DataType[]) => void;
|
|
91
|
-
getColumnSFConfig: (column: ApColumnType) => Recordable;
|
|
91
|
+
getColumnSFConfig: (column: ApColumnType, append?: boolean) => Recordable;
|
|
92
|
+
sortedInfo: Ref<any, any>;
|
|
93
|
+
filteredInfo: Ref<any, any>;
|
|
92
94
|
};
|
|
93
95
|
export {};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useTableSortedAndFiltered as
|
|
1
|
+
import { ref as oe, reactive as q, unref as h, nextTick as ne, onMounted as ae, watch as se, computed as A, createVNode as C } from "vue";
|
|
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 { useLocale as
|
|
7
|
-
import { useNamespace as
|
|
4
|
+
import { parseFieldValue as ie, dataIndexToStr as le, isEqualCustom as ue } from "../utils.mjs";
|
|
5
|
+
import { isArray as N, isEqualWith as fe } from "lodash-unified";
|
|
6
|
+
import { useLocale as ge } from "../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
import { useNamespace as pe } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
8
|
const S = 1, L = 10;
|
|
9
|
-
function
|
|
9
|
+
function de(g) {
|
|
10
10
|
const l = {};
|
|
11
11
|
return g && (g === !0 ? (l.current = S, l.pageSize = L) : (l.current = g.defaultCurrent || S, l.pageSize = g.defaultPageSize || L)), l;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
13
|
+
const we = ({
|
|
14
14
|
manual: g = !1,
|
|
15
15
|
request: l,
|
|
16
16
|
defaultParams: v = {},
|
|
17
17
|
defaultData: y = [],
|
|
18
18
|
formatParams: D,
|
|
19
19
|
paramsValueTypeMap: R,
|
|
20
|
-
resetFieldsIgnores:
|
|
20
|
+
resetFieldsIgnores: I,
|
|
21
21
|
filterFields: U,
|
|
22
22
|
sortFields: B,
|
|
23
23
|
namespace: K = "ap-table",
|
|
@@ -29,22 +29,24 @@ const Pe = ({
|
|
|
29
29
|
}
|
|
30
30
|
}) => {
|
|
31
31
|
let b = 0, s = {};
|
|
32
|
-
const M = p ?? {}, $ = (e) => D ? D(e) : e, z =
|
|
32
|
+
const M = p ?? {}, $ = (e) => D ? D(e) : e, z = oe(), c = q(de(p)), {
|
|
33
33
|
getColumnSFConfig: G,
|
|
34
34
|
setSF: J,
|
|
35
|
-
clearAll: Q
|
|
36
|
-
|
|
35
|
+
clearAll: Q,
|
|
36
|
+
sortedInfo: W,
|
|
37
|
+
filteredInfo: Z
|
|
38
|
+
} = ce(), {
|
|
37
39
|
t: T
|
|
38
|
-
} =
|
|
40
|
+
} = ge(), {
|
|
39
41
|
b: P
|
|
40
|
-
} =
|
|
42
|
+
} = pe(K), o = q({
|
|
41
43
|
total: y.length,
|
|
42
44
|
records: y,
|
|
43
45
|
loading: !1
|
|
44
46
|
}), F = () => {
|
|
45
47
|
var e, t;
|
|
46
48
|
return ((t = (e = z.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValueTransformed(!0)) || {};
|
|
47
|
-
},
|
|
49
|
+
}, V = async (e) => {
|
|
48
50
|
var n;
|
|
49
51
|
const t = $(e), r = Date.now();
|
|
50
52
|
b = r, o.loading = !0;
|
|
@@ -59,27 +61,27 @@ const Pe = ({
|
|
|
59
61
|
} finally {
|
|
60
62
|
o.loading = !1;
|
|
61
63
|
}
|
|
62
|
-
},
|
|
64
|
+
}, O = (e) => {
|
|
63
65
|
const t = {};
|
|
64
66
|
return Object.entries(e).forEach(([r, n]) => {
|
|
65
67
|
if (t[r] = n, R && n) {
|
|
66
68
|
const a = R[r];
|
|
67
|
-
a && (t[r] =
|
|
69
|
+
a && (t[r] = ie(a, n));
|
|
68
70
|
}
|
|
69
71
|
}), t;
|
|
70
|
-
},
|
|
72
|
+
}, H = async (e) => {
|
|
71
73
|
var n, a, u, f, d;
|
|
72
74
|
const t = F(), r = {};
|
|
73
75
|
Object.entries(t).forEach(([m, x]) => {
|
|
74
|
-
|
|
75
|
-
}), await ((a = (n = z.value) == null ? void 0 : n.apForm) == null ? void 0 : a.resetFields()), (d = (f = (u = z.value) == null ? void 0 : u.apForm) == null ? void 0 : f.setFieldsValue) == null || d.call(f, r),
|
|
76
|
+
I && I.indexOf(m) > -1 && (r[m] = x);
|
|
77
|
+
}), await ((a = (n = z.value) == null ? void 0 : n.apForm) == null ? void 0 : a.resetFields()), (d = (f = (u = z.value) == null ? void 0 : u.apForm) == null ? void 0 : f.setFieldsValue) == null || d.call(f, r), ne(() => {
|
|
76
78
|
e == null || e();
|
|
77
79
|
});
|
|
78
80
|
}, w = (e) => {
|
|
79
81
|
s = e;
|
|
80
|
-
const t =
|
|
81
|
-
|
|
82
|
-
},
|
|
82
|
+
const t = O(e);
|
|
83
|
+
V(t);
|
|
84
|
+
}, X = (e) => {
|
|
83
85
|
w({
|
|
84
86
|
...s,
|
|
85
87
|
...e
|
|
@@ -93,29 +95,29 @@ const Pe = ({
|
|
|
93
95
|
current: p ? S : void 0,
|
|
94
96
|
pageSize: p ? s.pageSize || c.pageSize : void 0
|
|
95
97
|
});
|
|
96
|
-
},
|
|
97
|
-
Q(), s.sort = {}, s.filter = {},
|
|
98
|
-
},
|
|
98
|
+
}, Y = () => {
|
|
99
|
+
Q(), s.sort = {}, s.filter = {}, H(E);
|
|
100
|
+
}, _ = () => {
|
|
99
101
|
w(s);
|
|
100
|
-
},
|
|
102
|
+
}, k = (e) => {
|
|
101
103
|
if (!p)
|
|
102
|
-
|
|
104
|
+
_();
|
|
103
105
|
else {
|
|
104
106
|
const {
|
|
105
107
|
current: t,
|
|
106
108
|
pageSize: r
|
|
107
109
|
} = c, n = o.total - e, a = Math.ceil(n / r), u = t > a ? a : t;
|
|
108
|
-
|
|
110
|
+
X({
|
|
109
111
|
current: u > 0 ? u : 1
|
|
110
112
|
});
|
|
111
113
|
}
|
|
112
|
-
},
|
|
114
|
+
}, j = (e, t, r) => {
|
|
113
115
|
var m, x;
|
|
114
116
|
const n = F();
|
|
115
117
|
c.current = e.current, c.pageSize = e.pageSize, J(t, r);
|
|
116
118
|
const a = N(r) ? [...r] : [r], u = {};
|
|
117
119
|
for (const i of a)
|
|
118
|
-
(m = h(B)) != null && m.includes(i.columnKey || i.field) && i.order && (u[
|
|
120
|
+
(m = h(B)) != null && m.includes(i.columnKey || i.field) && i.order && (u[le(i.columnKey || i.field)] = i.order);
|
|
119
121
|
const f = {};
|
|
120
122
|
for (const i of Object.keys(t))
|
|
121
123
|
(x = h(U)) != null && x.includes(i) && t[i] && (f[i] = t[i]);
|
|
@@ -126,9 +128,9 @@ const Pe = ({
|
|
|
126
128
|
current: e.current,
|
|
127
129
|
pageSize: e.pageSize
|
|
128
130
|
};
|
|
129
|
-
|
|
131
|
+
fe(s, d, ue) || w(d);
|
|
130
132
|
};
|
|
131
|
-
|
|
133
|
+
ae(() => {
|
|
132
134
|
const e = F(), {
|
|
133
135
|
current: t,
|
|
134
136
|
pageSize: r
|
|
@@ -140,15 +142,15 @@ const Pe = ({
|
|
|
140
142
|
sort: {},
|
|
141
143
|
...e
|
|
142
144
|
}, !g) {
|
|
143
|
-
const n =
|
|
144
|
-
|
|
145
|
+
const n = O(s);
|
|
146
|
+
V(n);
|
|
145
147
|
}
|
|
146
|
-
}),
|
|
148
|
+
}), se(() => h(v), () => {
|
|
147
149
|
E();
|
|
148
150
|
}, {
|
|
149
151
|
deep: !0
|
|
150
152
|
});
|
|
151
|
-
const
|
|
153
|
+
const ee = A(() => {
|
|
152
154
|
if (o.total === 0)
|
|
153
155
|
return "-";
|
|
154
156
|
const {
|
|
@@ -157,10 +159,10 @@ const Pe = ({
|
|
|
157
159
|
} = c;
|
|
158
160
|
return `${e}/${Math.ceil(o.total / t)}`;
|
|
159
161
|
});
|
|
160
|
-
function
|
|
162
|
+
function te(e) {
|
|
161
163
|
N(e) && (o.records = e, o.total = e.length);
|
|
162
164
|
}
|
|
163
|
-
const
|
|
165
|
+
const re = A(() => {
|
|
164
166
|
const {
|
|
165
167
|
showLessItems: e,
|
|
166
168
|
showTotal: t
|
|
@@ -183,30 +185,32 @@ const Pe = ({
|
|
|
183
185
|
class: P("pagination--total-right")
|
|
184
186
|
}, [T("ap.apTable.pagination.totalRightPrefix"), " ", C("span", {
|
|
185
187
|
class: P("pagination-count-text")
|
|
186
|
-
}, [h(
|
|
188
|
+
}, [h(ee)]), " ", T("ap.apTable.pagination.totalRightSuffix")])]) : void 0
|
|
187
189
|
},
|
|
188
|
-
onChange:
|
|
190
|
+
onChange: j,
|
|
189
191
|
dataSource: o.records
|
|
190
192
|
};
|
|
191
193
|
});
|
|
192
194
|
return {
|
|
193
195
|
formRef: z,
|
|
194
196
|
submit: E,
|
|
195
|
-
reset:
|
|
196
|
-
refresh:
|
|
197
|
-
refreshByDelete:
|
|
197
|
+
reset: Y,
|
|
198
|
+
refresh: _,
|
|
199
|
+
refreshByDelete: k,
|
|
198
200
|
data: o,
|
|
199
201
|
current: c.current,
|
|
200
202
|
pageSize: c.pageSize,
|
|
201
|
-
handleTableChange:
|
|
202
|
-
tableProps:
|
|
203
|
+
handleTableChange: j,
|
|
204
|
+
tableProps: re,
|
|
203
205
|
dataSource: A(() => o.records),
|
|
204
|
-
setDataSource:
|
|
205
|
-
getColumnSFConfig: G
|
|
206
|
+
setDataSource: te,
|
|
207
|
+
getColumnSFConfig: G,
|
|
208
|
+
sortedInfo: W,
|
|
209
|
+
filteredInfo: Z
|
|
206
210
|
};
|
|
207
211
|
};
|
|
208
212
|
export {
|
|
209
213
|
S as DEFAULT_CURRENT,
|
|
210
214
|
L as DEFAULT_PAGE_SIZE,
|
|
211
|
-
|
|
215
|
+
we as useTablePaging
|
|
212
216
|
};
|
|
@@ -108,5 +108,5 @@ export declare const useTablePaging: <DataType = any, ParamsType = Record<string
|
|
|
108
108
|
}>;
|
|
109
109
|
dataSource: ComputedRef<DataType[]>;
|
|
110
110
|
setDataSource: (dataSource?: DataType[]) => void;
|
|
111
|
-
getColumnSFConfig: (column: ApColumnType) => Recordable;
|
|
111
|
+
getColumnSFConfig: (column: ApColumnType, append?: boolean) => Recordable;
|
|
112
112
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as D, ref as C, computed as n, unref as f, watch as N, nextTick as S, onMounted as j, onUnmounted as G,
|
|
1
|
+
import { defineComponent as D, ref as C, computed as n, unref as f, watch as N, nextTick as S, onMounted as j, onUnmounted as G, createBlock as d, openBlock as c, mergeProps as b, withCtx as g, createElementVNode as o, normalizeStyle as k, normalizeClass as W, createElementBlock as _, createCommentVNode as R, Fragment as A, renderList as F, toDisplayString as T, renderSlot as I, createTextVNode as U } from "vue";
|
|
2
2
|
import { Tooltip as q } from "@aplus-frontend/antdv";
|
|
3
3
|
import H from "@ant-design/icons-vue";
|
|
4
4
|
import "./ap-tag.vue2.mjs";
|
|
@@ -79,8 +79,8 @@ const ue = /* @__PURE__ */ D({
|
|
|
79
79
|
window.removeEventListener("resize", y);
|
|
80
80
|
}), (e, t) => (c(), d(f(q), b({ trigger: "hover" }, $.value), {
|
|
81
81
|
title: g(() => [
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
I(e.$slots, "tooltip", { tags: e.list }, () => [
|
|
83
|
+
U(T(L.value), 1)
|
|
84
84
|
])
|
|
85
85
|
]),
|
|
86
86
|
default: g(() => [
|
|
@@ -88,12 +88,12 @@ const ue = /* @__PURE__ */ D({
|
|
|
88
88
|
ref_key: "container",
|
|
89
89
|
ref: u,
|
|
90
90
|
class: W(M.value),
|
|
91
|
-
style:
|
|
91
|
+
style: k({
|
|
92
92
|
pointerEvents: p.value ? "auto" : "none"
|
|
93
93
|
// opacity: isUpdating ? '0' : '1'
|
|
94
94
|
})
|
|
95
95
|
}, [
|
|
96
|
-
(c(!0),
|
|
96
|
+
(c(!0), _(A, null, F(e.list, (s, l) => (c(), d(X, b({ ref_for: !0 }, s, {
|
|
97
97
|
key: l,
|
|
98
98
|
style: {
|
|
99
99
|
display: l >= m.value ? "none" : "inline-block",
|
|
@@ -102,7 +102,7 @@ const ue = /* @__PURE__ */ D({
|
|
|
102
102
|
}), null, 16, ["style"]))), 128)),
|
|
103
103
|
p.value && r.value.symbol === "icon" ? (c(), d(f(H), {
|
|
104
104
|
key: 0,
|
|
105
|
-
style:
|
|
105
|
+
style: k({ color: e.ellipsisColor || r.value.iconColor })
|
|
106
106
|
}, {
|
|
107
107
|
component: g(() => t[0] || (t[0] = [
|
|
108
108
|
o("svg", {
|
|
@@ -160,10 +160,10 @@ const ue = /* @__PURE__ */ D({
|
|
|
160
160
|
], -1)
|
|
161
161
|
])),
|
|
162
162
|
_: 1
|
|
163
|
-
}, 8, ["style"])) : p.value && r.value.symbol === "text" ? (c(),
|
|
163
|
+
}, 8, ["style"])) : p.value && r.value.symbol === "text" ? (c(), _("span", {
|
|
164
164
|
key: 1,
|
|
165
165
|
class: W(P.value)
|
|
166
|
-
},
|
|
166
|
+
}, T(r.value.text), 3)) : R("", !0)
|
|
167
167
|
], 6)
|
|
168
168
|
]),
|
|
169
169
|
_: 3
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, computed as n,
|
|
1
|
+
import { defineComponent as $, computed as n, createElementBlock as b, openBlock as y, normalizeClass as p, normalizeStyle as w, createVNode as z, unref as B } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
3
|
import { TypographyText as v } from "@aplus-frontend/antdv";
|
|
4
4
|
import { useGlobalConfig as I } from "../config-provider/hooks/use-global-config.mjs";
|
|
@@ -26,7 +26,7 @@ const A = /* @__PURE__ */ $({
|
|
|
26
26
|
const t = [r("inner-wrapper"), a("inner-wrapper", e.size)];
|
|
27
27
|
return e.disabled && (o.value === "aplus" ? t.push(a("inner-wrapper", "disabled")) : t.push(a("inner-wrapper", "disabled-admin"))), t;
|
|
28
28
|
});
|
|
29
|
-
return (t, s) => (
|
|
29
|
+
return (t, s) => (y(), b("span", {
|
|
30
30
|
style: w(c.value),
|
|
31
31
|
class: p(u.value)
|
|
32
32
|
}, [
|