@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,12 +1,12 @@
|
|
|
1
|
-
import { createVNode as F, Fragment as
|
|
2
|
-
import { isUndefined as
|
|
1
|
+
import { createVNode as F, Fragment as w } from "vue";
|
|
2
|
+
import { isUndefined as M, isArray as S, isString as v, isBoolean as A, isNumber as B, pick as R } from "lodash-unified";
|
|
3
3
|
import { valueEnumToArray as N, getTableTitle as E, getTableRenderType as W, getTableRenderProps as _, getTableCellRenderNode as j } from "../../ap-table/utils.mjs";
|
|
4
4
|
import { noRenderAsFormItemValueList as k } from "../../ap-table/constants.mjs";
|
|
5
5
|
import "../../ap-table/components/paragraph-ellipsis/index.vue.mjs";
|
|
6
6
|
import z from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
|
|
7
7
|
function O(e) {
|
|
8
|
-
if (!
|
|
9
|
-
return
|
|
8
|
+
if (!M(e))
|
|
9
|
+
return S(e) ? e.reduce((r, t) => v(t) ? `${r}.${t}` : `${r}[${t}]`, "") : String(e);
|
|
10
10
|
}
|
|
11
11
|
function b(e) {
|
|
12
12
|
if (e)
|
|
@@ -51,59 +51,59 @@ function V(e, r, t) {
|
|
|
51
51
|
if (k.includes(e.valueType))
|
|
52
52
|
return t;
|
|
53
53
|
if (e.copyable || e.ellipsis) {
|
|
54
|
-
const
|
|
54
|
+
const n = U(e.ellipsis, r, t);
|
|
55
55
|
return F(z, {
|
|
56
56
|
copyable: e.copyable,
|
|
57
|
-
ellipsis:
|
|
57
|
+
ellipsis: n,
|
|
58
58
|
content: t
|
|
59
59
|
}, null);
|
|
60
60
|
}
|
|
61
61
|
return t;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
const
|
|
65
|
-
return
|
|
63
|
+
function y(e, r, t) {
|
|
64
|
+
const n = R(e, ["width", "minWidth", "align"]);
|
|
65
|
+
return n.field = O(e.dataIndex), n.fixed = b(e.fixed), n.slots = {
|
|
66
66
|
header: () => E(e, t, void 0, r)
|
|
67
|
-
},
|
|
67
|
+
}, n.headerAlign = e.align, n.showOverflow = !1, n.showFooterOverflow = !1, n;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function x(e, r, t, n) {
|
|
70
70
|
const i = R(e, ["width", "minWidth", "align", "resizable"]);
|
|
71
|
-
i.field = O(e.dataIndex), i.fixed = b(e.fixed), i.headerAlign = e.align, i.footerAlign = e.align, i.showOverflow = !1, i.showFooterOverflow = !1, Object.assign(i, G(e.sorter)), i.filters = I(e), i.filterMultiple = e.filterMultiple, i.filterMethod = L(e.onFilter)
|
|
71
|
+
i.field = O(e.dataIndex), i.fixed = b(e.fixed), i.headerAlign = e.align, i.footerAlign = e.align, i.showOverflow = !1, i.showFooterOverflow = !1, Object.assign(i, G(e.sorter)), i.filters = I(e), i.filterMultiple = e.filterMultiple, i.filterMethod = L(e.onFilter);
|
|
72
72
|
const a = ({
|
|
73
73
|
value: d,
|
|
74
|
-
...
|
|
74
|
+
...l
|
|
75
75
|
}) => {
|
|
76
|
-
var T,
|
|
77
|
-
const f = W(e),
|
|
76
|
+
var T, o;
|
|
77
|
+
const f = W(e), u = _({
|
|
78
78
|
...e,
|
|
79
79
|
valueType: f
|
|
80
80
|
}, {
|
|
81
81
|
value: d,
|
|
82
|
-
...
|
|
83
|
-
}),
|
|
82
|
+
...l
|
|
83
|
+
}), c = j(f, u, l.record, n), h = ((T = e.renderText) == null ? void 0 : T.call(e, {
|
|
84
84
|
value: d,
|
|
85
|
-
...
|
|
86
|
-
})) || d,
|
|
85
|
+
...l
|
|
86
|
+
})) || d, $ = e.renderText ? F(w, null, [(o = e.renderText) == null ? void 0 : o.call(e, {
|
|
87
87
|
value: d,
|
|
88
|
-
...
|
|
89
|
-
})]) :
|
|
90
|
-
let
|
|
91
|
-
return e.customRender && (
|
|
88
|
+
...l
|
|
89
|
+
})]) : c;
|
|
90
|
+
let p = V(e, h, $);
|
|
91
|
+
return e.customRender && (p = e.customRender({
|
|
92
92
|
value: d,
|
|
93
|
-
...
|
|
93
|
+
...l,
|
|
94
94
|
column: e,
|
|
95
|
-
originalNode:
|
|
95
|
+
originalNode: p,
|
|
96
96
|
originalText: h
|
|
97
|
-
})),
|
|
97
|
+
})), p;
|
|
98
98
|
}, s = ({
|
|
99
99
|
row: d,
|
|
100
|
-
rowIndex:
|
|
100
|
+
rowIndex: l
|
|
101
101
|
}) => a({
|
|
102
102
|
value: d[i.field],
|
|
103
103
|
text: d[i.field],
|
|
104
104
|
record: d,
|
|
105
|
-
index:
|
|
106
|
-
renderIndex:
|
|
105
|
+
index: l,
|
|
106
|
+
renderIndex: l,
|
|
107
107
|
column: e
|
|
108
108
|
});
|
|
109
109
|
return i.slots = {
|
|
@@ -112,25 +112,25 @@ function o(e, r, t, l) {
|
|
|
112
112
|
footer: s
|
|
113
113
|
}, i;
|
|
114
114
|
}
|
|
115
|
-
function X(e, r, t,
|
|
115
|
+
function X(e, r, t, n) {
|
|
116
116
|
var s;
|
|
117
117
|
if (!((s = e.children) != null && s.length))
|
|
118
|
-
return
|
|
118
|
+
return x(e, r, t, n);
|
|
119
119
|
function i(d) {
|
|
120
|
-
return d.map((
|
|
120
|
+
return d.map((l) => {
|
|
121
121
|
var f;
|
|
122
|
-
if ((f =
|
|
123
|
-
const
|
|
124
|
-
return
|
|
122
|
+
if ((f = l.children) != null && f.length) {
|
|
123
|
+
const u = y(l, r, t);
|
|
124
|
+
return u.children = i(l.children), u;
|
|
125
125
|
}
|
|
126
|
-
return
|
|
126
|
+
return x(l, r, t, n);
|
|
127
127
|
});
|
|
128
128
|
}
|
|
129
|
-
const a =
|
|
129
|
+
const a = y(e, r, t);
|
|
130
130
|
return a.children = i(e.children), a;
|
|
131
131
|
}
|
|
132
132
|
export {
|
|
133
133
|
X as transformCol,
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
y as transformToColGroup,
|
|
135
|
+
x as transformToColumn
|
|
136
136
|
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ValueTypeRenderConfig } from '../../config-provider';
|
|
2
|
+
import { EditableGridColumnType } from '../editable/interface';
|
|
3
|
+
export declare function getFinalEditableNode(column: EditableGridColumnType, innerProps: Record<string, any>, record: any, extraRenderMap?: Record<string, ValueTypeRenderConfig>): import("vue/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { isVNode as p, createVNode as l } from "vue";
|
|
2
|
+
import "../../ap-form/index.mjs";
|
|
3
|
+
import { omit as F } from "lodash-unified";
|
|
4
|
+
import { getEditableComponent as N } from "../../editable-table/utils.mjs";
|
|
5
|
+
import d from "../../ap-form/item/index.vue.mjs";
|
|
6
|
+
function r(t) {
|
|
7
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !p(t);
|
|
8
|
+
}
|
|
9
|
+
function _(t, o, b, i) {
|
|
10
|
+
var c;
|
|
11
|
+
if (t.customRenderFormItem) {
|
|
12
|
+
const f = t.customRenderFormItem(t, o.field, !0, b);
|
|
13
|
+
return l(d, F(o, ["field"]), r(f) ? f : {
|
|
14
|
+
default: () => [f]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
const u = N(t.valueType);
|
|
18
|
+
if (u)
|
|
19
|
+
return l(u, o, null);
|
|
20
|
+
const e = i == null ? void 0 : i[t.valueType], m = (c = e == null ? void 0 : e.renderFormItem) == null ? void 0 : c.call(e, o.field);
|
|
21
|
+
return m ? l(d, o, r(m) ? m : {
|
|
22
|
+
default: () => [m]
|
|
23
|
+
}) : null;
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
_ as getFinalEditableNode
|
|
27
|
+
};
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { omit as u, isUndefined as d, isFunction as c, isNumber as f } from "lodash-unified";
|
|
2
2
|
const h = 30, b = 50;
|
|
3
|
-
function
|
|
4
|
-
var
|
|
3
|
+
function v(e) {
|
|
4
|
+
var r, l, n;
|
|
5
5
|
const t = {
|
|
6
|
-
...u(e, [
|
|
6
|
+
...u(e, [
|
|
7
|
+
"columns",
|
|
8
|
+
"request",
|
|
9
|
+
"searchForm",
|
|
10
|
+
"dataSource",
|
|
11
|
+
"rowKey",
|
|
12
|
+
"value"
|
|
13
|
+
])
|
|
7
14
|
};
|
|
8
15
|
if (e.adaptive && (t.autoResize = !0, t.height = "100%"), e.columnResizable && (t.columnConfig ? t.columnConfig.resizable = !0 : t.columnConfig = {
|
|
9
16
|
resizable: !0
|
|
@@ -11,15 +18,15 @@ function R(e) {
|
|
|
11
18
|
const o = e.rowSelection === !0 ? {} : e.rowSelection;
|
|
12
19
|
o.type === "radio" ? t.radioConfig = {
|
|
13
20
|
highlight: !0,
|
|
14
|
-
checkMethod({ row:
|
|
15
|
-
return o.disabled ? !o.disabled(
|
|
21
|
+
checkMethod({ row: i }) {
|
|
22
|
+
return o.disabled ? !o.disabled(i) : !0;
|
|
16
23
|
},
|
|
17
|
-
checkRowKey: (
|
|
24
|
+
checkRowKey: (r = o.defaultSelectedRowKeys) == null ? void 0 : r[0],
|
|
18
25
|
reserve: d(o.preserveSelectedRowKeys) ? !0 : o.preserveSelectedRowKeys
|
|
19
26
|
} : t.checkboxConfig = {
|
|
20
27
|
highlight: !0,
|
|
21
|
-
checkMethod({ row:
|
|
22
|
-
return o.disabled ? !o.disabled(
|
|
28
|
+
checkMethod({ row: i }) {
|
|
29
|
+
return o.disabled ? !o.disabled(i) : !0;
|
|
23
30
|
},
|
|
24
31
|
checkRowKeys: o.defaultSelectedRowKeys,
|
|
25
32
|
reserve: d(o.preserveSelectedRowKeys) ? !0 : o.preserveSelectedRowKeys
|
|
@@ -35,21 +42,21 @@ function R(e) {
|
|
|
35
42
|
enabled: !1
|
|
36
43
|
}) : (a(t, "X", (l = e.virtual) == null ? void 0 : l.x), a(t, "Y", (n = e.virtual) == null ? void 0 : n.y)), t;
|
|
37
44
|
}
|
|
38
|
-
function a(e, t,
|
|
39
|
-
const l = t === "X", n = l ? "virtualXConfig" : "virtualYConfig", o =
|
|
45
|
+
function a(e, t, r) {
|
|
46
|
+
const l = t === "X", n = l ? "virtualXConfig" : "virtualYConfig", o = r !== !1, i = l ? h : b, s = f(r) && r >= 0 ? r : i;
|
|
40
47
|
e[n] = {
|
|
41
48
|
enabled: o,
|
|
42
49
|
gt: s
|
|
43
50
|
};
|
|
44
51
|
}
|
|
45
|
-
function
|
|
46
|
-
const t = e === !0 || !e.type ? "checkbox" : e.type,
|
|
52
|
+
function y(e) {
|
|
53
|
+
const t = e === !0 || !e.type ? "checkbox" : e.type, r = e === !0 ? 60 : e.columnWidth || 60;
|
|
47
54
|
return {
|
|
48
55
|
type: t,
|
|
49
|
-
width:
|
|
56
|
+
width: r
|
|
50
57
|
};
|
|
51
58
|
}
|
|
52
|
-
function
|
|
59
|
+
function R(e) {
|
|
53
60
|
const t = (e == null ? void 0 : e.width) || "auto";
|
|
54
61
|
return {
|
|
55
62
|
type: "expand",
|
|
@@ -58,7 +65,7 @@ function y(e) {
|
|
|
58
65
|
};
|
|
59
66
|
}
|
|
60
67
|
export {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
68
|
+
R as getRowExpandProps,
|
|
69
|
+
y as getRowSelectionProps,
|
|
70
|
+
v as toVxeProps
|
|
64
71
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as a, computed as n,
|
|
1
|
+
import { defineComponent as a, computed as n, createBlock as p, openBlock as s, resolveDynamicComponent as i, normalizeProps as l, guardReactiveProps as m, createSlots as c, renderList as u, withCtx as d, renderSlot as f } from "vue";
|
|
2
2
|
import "./ap-info-layout-aplus/ap-info-layout.vue.mjs";
|
|
3
3
|
import "./ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
@@ -26,7 +26,7 @@ const D = /* @__PURE__ */ a({
|
|
|
26
26
|
}
|
|
27
27
|
return e;
|
|
28
28
|
});
|
|
29
|
-
return (e, h) => (
|
|
29
|
+
return (e, h) => (s(), p(i(t.value), l(m(e.$props)), c({ _: 2 }, [
|
|
30
30
|
u(e.$slots, (k, o) => ({
|
|
31
31
|
name: o,
|
|
32
32
|
fn: d(() => [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, ref as t,
|
|
1
|
+
import { defineComponent as u, ref as t, createElementBlock as p, openBlock as y, normalizeClass as s, unref as e, createElementVNode as n, normalizeStyle as h, renderSlot as d } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import { useNamespace as v } from "../../config-provider/hooks/use-namespace.mjs";
|
|
4
4
|
import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
|
|
@@ -12,7 +12,7 @@ const L = /* @__PURE__ */ u({
|
|
|
12
12
|
const l = t(), a = t(), f = () => {
|
|
13
13
|
l.value && a.value && (l.value.scrollTop > 0 ? a.value.classList.add(o("header-shadow")) : a.value.classList.remove(o("header-shadow")));
|
|
14
14
|
}, { b: i, e: o, m: c } = v("ap-info-layout-admin"), m = _("uiMode", "admin");
|
|
15
|
-
return (r, k) => (
|
|
15
|
+
return (r, k) => (y(), p("div", {
|
|
16
16
|
ref_key: "containerRef",
|
|
17
17
|
ref: l,
|
|
18
18
|
class: s([e(i)(), `${e(c)(e(m))}`]),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as $, computed as t, onActivated as y, onDeactivated as B,
|
|
1
|
+
import { defineComponent as $, computed as t, onActivated as y, onDeactivated as B, createElementBlock as E, openBlock as d, normalizeClass as a, createBlock as H, createElementVNode as o, Teleport as k, renderSlot as s, createVNode as A, unref as N } from "vue";
|
|
2
2
|
import { Divider as T } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import { useNamespace as V } from "../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, ref as J, unref as t, computed as d, watch as Q,
|
|
1
|
+
import { defineComponent as H, ref as J, unref as t, computed as d, watch as Q, createBlock as S, openBlock as i, normalizeClass as u, withCtx as f, createElementVNode as X, normalizeStyle as h, renderSlot as l, createElementBlock as p, createCommentVNode as Y, createVNode as v, Fragment as I, renderList as Z, mergeProps as _ } from "vue";
|
|
2
2
|
import { Empty as E, Spin as x, Pagination as ee } from "@aplus-frontend/antdv";
|
|
3
3
|
import { useTablePaging as te } from "../ap-table/hooks/use-table-paging-ng.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
@@ -165,7 +165,7 @@ const he = /* @__PURE__ */ H({
|
|
|
165
165
|
key: 1,
|
|
166
166
|
dataSource: s.value
|
|
167
167
|
}, () => [
|
|
168
|
-
(i(!0), p(I, null,
|
|
168
|
+
(i(!0), p(I, null, Z(s.value, (r, o) => l(e.$slots, "renderItem", {
|
|
169
169
|
item: r,
|
|
170
170
|
index: o
|
|
171
171
|
})), 256))
|
|
@@ -176,11 +176,11 @@ const he = /* @__PURE__ */ H({
|
|
|
176
176
|
class: u(t(N)("footer")),
|
|
177
177
|
style: h(e.footerWarpperStyle)
|
|
178
178
|
}, [
|
|
179
|
-
v(t(ee),
|
|
179
|
+
v(t(ee), _(
|
|
180
180
|
c.value ? t(B) : t(ne)(t(z).pagination, ["showTotal"]),
|
|
181
181
|
{ onChange: K }
|
|
182
182
|
), null, 16)
|
|
183
|
-
], 6)) :
|
|
183
|
+
], 6)) : Y("", !0)
|
|
184
184
|
], 6)
|
|
185
185
|
]),
|
|
186
186
|
_: 3
|