@aplus-frontend/ui 0.0.1-beta.2 → 0.0.1-beta.3
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 +124 -118
- package/es/src/ap-field/checkbox/helper.d.ts +6 -0
- package/es/src/ap-field/date/constant.d.ts +1 -0
- package/es/src/ap-field/index.d.ts +5 -0
- package/es/src/ap-field/interface.d.ts +29 -0
- package/es/src/ap-form/ap-form-item-group/helper.d.ts +8 -0
- package/es/src/ap-form/ap-form-item-group/helper.mjs +14 -0
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +45 -0
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +58 -0
- package/es/src/ap-form/ap-form-item-group/index.vue2.mjs +4 -0
- package/es/src/ap-form/ap-form-item.vue.d.ts +47 -0
- package/es/src/ap-form/ap-form-item.vue.mjs +76 -0
- package/es/src/ap-form/ap-form-item.vue2.mjs +4 -0
- package/es/src/ap-form/ap-form.d.ts +1681 -0
- package/es/src/ap-form/ap-form.mjs +5 -0
- package/es/src/ap-form/constant.d.ts +3 -0
- package/es/src/ap-form/constant.mjs +17 -0
- package/es/src/ap-form/index.d.ts +2593 -0
- package/es/src/ap-form/index.mjs +10 -0
- package/es/src/ap-form/interface.d.ts +7 -0
- package/es/src/ap-form/style/ap-form-item-group.css +9 -0
- package/es/src/base-button/index.d.ts +16 -16
- package/es/src/basic/help.vue.d.ts +1 -1
- package/es/src/basic/index.d.ts +3 -3
- package/es/src/config-provider/config-provider-props.d.ts +7 -1
- package/es/src/config-provider/config-provider-props.mjs +8 -4
- package/es/src/config-provider/config-provider.d.ts +16 -3
- package/es/src/config-provider/constants.d.ts +3 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +7 -1
- package/es/src/config-provider/index.d.ts +34 -7
- package/es/src/container/collapse/index.vue.d.ts +1 -1
- package/es/src/container/index.d.ts +3 -3
- package/es/src/cropper/cropper-image.vue.d.ts +1 -1
- package/es/src/cropper/index.d.ts +31 -31
- package/es/src/description/description.vue.d.ts +3 -3
- package/es/src/description/index.d.ts +7 -7
- package/es/src/hooks/index.d.ts +1 -0
- package/es/src/hooks/useControllableValue.d.ts +13 -0
- package/es/src/hooks/useControllableValue.mjs +24 -0
- package/es/src/icon/index.d.ts +32 -32
- package/es/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/es/src/icon-picker/index.d.ts +41 -41
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +79 -75
- package/es/src/modal/basic.vue.d.ts +2 -2
- package/es/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/es/src/modal/components/modal-wrapper.vue.d.ts +1 -1
- package/es/src/modal/components/modal.d.ts +2 -2
- package/es/src/modal/index.d.ts +6 -6
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +9 -9
- package/es/src/pro-form/pro-form.vue.d.ts +1 -1
- package/es/src/pro-table/const.d.ts +3 -0
- package/es/src/pro-table/const.mjs +10 -4
- package/es/src/pro-table/interface.d.ts +4 -0
- package/es/src/pro-table/pro-table.vue.d.ts +3 -0
- package/es/src/pro-table/pro-table.vue.mjs +221 -211
- package/es/src/pro-table/style/pro-table.css +10 -5
- package/es/src/scroll-bar/index.d.ts +0 -7
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +0 -3
- package/es/src/scroll-bar/scroll-bar.vue.mjs +44 -44
- package/es/src/theme/ap-form/ap-form-item-group.css +9 -0
- package/es/src/theme/pro-table/pro-table.css +10 -5
- package/lib/index.js +1 -1
- package/lib/src/ap-field/checkbox/helper.d.ts +6 -0
- package/lib/src/ap-field/date/constant.d.ts +1 -0
- package/lib/src/ap-field/index.d.ts +5 -0
- package/lib/src/ap-field/interface.d.ts +29 -0
- package/lib/src/ap-form/ap-form-item-group/helper.d.ts +8 -0
- package/lib/src/ap-form/ap-form-item-group/helper.js +1 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +45 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -0
- package/lib/src/ap-form/ap-form-item-group/index.vue2.js +1 -0
- package/lib/src/ap-form/ap-form-item.vue.d.ts +47 -0
- package/lib/src/ap-form/ap-form-item.vue.js +1 -0
- package/lib/src/ap-form/ap-form-item.vue2.js +1 -0
- package/lib/src/ap-form/ap-form.d.ts +1681 -0
- package/lib/src/ap-form/ap-form.js +1 -0
- package/lib/src/ap-form/constant.d.ts +3 -0
- package/lib/src/ap-form/constant.js +1 -0
- package/lib/src/ap-form/index.d.ts +2593 -0
- package/lib/src/ap-form/index.js +1 -0
- package/lib/src/ap-form/interface.d.ts +7 -0
- package/lib/src/ap-form/style/ap-form-item-group.css +9 -0
- package/lib/src/base-button/index.d.ts +16 -16
- package/lib/src/basic/help.vue.d.ts +1 -1
- package/lib/src/basic/index.d.ts +3 -3
- package/lib/src/config-provider/config-provider-props.d.ts +7 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +16 -3
- package/lib/src/config-provider/constants.d.ts +3 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +7 -1
- package/lib/src/config-provider/index.d.ts +34 -7
- package/lib/src/container/collapse/index.vue.d.ts +1 -1
- package/lib/src/container/index.d.ts +3 -3
- package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
- package/lib/src/cropper/index.d.ts +31 -31
- package/lib/src/description/description.vue.d.ts +3 -3
- package/lib/src/description/index.d.ts +7 -7
- package/lib/src/hooks/index.d.ts +1 -0
- package/lib/src/hooks/useControllableValue.d.ts +13 -0
- package/lib/src/hooks/useControllableValue.js +1 -0
- package/lib/src/icon/index.d.ts +32 -32
- package/lib/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/lib/src/icon-picker/index.d.ts +41 -41
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +2 -2
- package/lib/src/modal/components/modal-footer.vue.d.ts +2 -2
- package/lib/src/modal/components/modal-wrapper.vue.d.ts +1 -1
- package/lib/src/modal/components/modal.d.ts +2 -2
- package/lib/src/modal/index.d.ts +6 -6
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +9 -9
- package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
- package/lib/src/pro-table/const.d.ts +3 -0
- package/lib/src/pro-table/const.js +1 -1
- package/lib/src/pro-table/interface.d.ts +4 -0
- package/lib/src/pro-table/pro-table.vue.d.ts +3 -0
- package/lib/src/pro-table/pro-table.vue.js +1 -1
- package/lib/src/pro-table/style/pro-table.css +10 -5
- package/lib/src/scroll-bar/index.d.ts +0 -7
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +0 -3
- package/lib/src/scroll-bar/scroll-bar.vue.js +1 -1
- package/lib/src/theme/ap-form/ap-form-item-group.css +9 -0
- package/lib/src/theme/pro-table/pro-table.css +10 -5
- package/package.json +2 -2
- package/es/src/constants/component-setting.d.ts +0 -74
- package/es/src/constants/component-setting.mjs +0 -90
- package/lib/src/constants/component-setting.d.ts +0 -74
- package/lib/src/constants/component-setting.js +0 -1
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Table as
|
|
3
|
-
import { omit as
|
|
1
|
+
import { defineComponent as Je, useAttrs as Qe, useSlots as Ue, ref as d, computed as p, unref as e, inject as Xe, watchEffect as Ye, toRaw as O, openBlock as V, createElementBlock as L, normalizeClass as W, normalizeStyle as Ze, createVNode as D, mergeProps as j, createSlots as M, renderList as G, withCtx as S, renderSlot as C, normalizeProps as y, guardReactiveProps as b, createCommentVNode as et, withDirectives as tt, vShow as ot } from "vue";
|
|
2
|
+
import { Table as at } from "ant-design-vue";
|
|
3
|
+
import { isString as nt, omit as rt, isFunction as lt } from "lodash-unified";
|
|
4
4
|
import "@ant-design/icons-vue";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
6
|
import "@fruits-chain/utils";
|
|
7
7
|
import "@aplus-frontend/hooks";
|
|
8
|
-
import
|
|
9
|
-
import { useForm as
|
|
10
|
-
import
|
|
11
|
-
import { usePagination as
|
|
12
|
-
import { useColumns as
|
|
13
|
-
import { useDataSource as
|
|
14
|
-
import { useLoading as
|
|
8
|
+
import st from "../pro-form/pro-form.vue.mjs";
|
|
9
|
+
import { useForm as it } from "../pro-form/hooks/use-form.mjs";
|
|
10
|
+
import ct from "./components/header-cell.vue.mjs";
|
|
11
|
+
import { usePagination as mt } from "./hooks/use-pagination.mjs";
|
|
12
|
+
import { useColumns as ut } from "./hooks/use-columns.mjs";
|
|
13
|
+
import { useDataSource as dt } from "./hooks/use-data-source.mjs";
|
|
14
|
+
import { useLoading as pt } from "./hooks/use-loading.mjs";
|
|
15
15
|
import { useRowSelection as ft } from "./hooks/use-row-selection.mjs";
|
|
16
|
-
import { useTableScroll as
|
|
17
|
-
import { useTableScrollTo as
|
|
18
|
-
import { useCustomRow as
|
|
19
|
-
import { useTableStyle as
|
|
20
|
-
import { useTableHeader as
|
|
21
|
-
import { useTableExpand as
|
|
22
|
-
import { createTableContext as
|
|
23
|
-
import { useTableFooter as
|
|
24
|
-
import { useTableForm as
|
|
16
|
+
import { useTableScroll as gt } from "./hooks/use-table-scroll.mjs";
|
|
17
|
+
import { useTableScrollTo as ht } from "./hooks/use-scroll-to.mjs";
|
|
18
|
+
import { useCustomRow as St } from "./hooks/use-custom-row.mjs";
|
|
19
|
+
import { useTableStyle as Ct } from "./hooks/use-table-style.mjs";
|
|
20
|
+
import { useTableHeader as yt } from "./hooks/use-table-header.mjs";
|
|
21
|
+
import { useTableExpand as bt } from "./hooks/use-table-expand.mjs";
|
|
22
|
+
import { createTableContext as wt } from "./hooks/use-table-context.mjs";
|
|
23
|
+
import { useTableFooter as Rt } from "./hooks/use-table-footer.mjs";
|
|
24
|
+
import { useTableForm as Ft } from "./hooks/use-table-form.mjs";
|
|
25
25
|
import "./style/pro-table.css";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
|
|
26
|
+
import { formTableDivideSpaceMap as Tt } from "./const.mjs";
|
|
27
|
+
import { useGlobalConfig as Bt } from "../config-provider/hooks/use-global-config.mjs";
|
|
28
|
+
import { useNamespace as vt } from "../config-provider/hooks/use-namespace.mjs";
|
|
29
|
+
const Pt = "PageWrapperFixedHeight", ao = /* @__PURE__ */ Je({
|
|
29
30
|
name: "BasicTable",
|
|
30
31
|
__name: "pro-table",
|
|
31
32
|
props: {
|
|
@@ -76,7 +77,8 @@ const Tt = "PageWrapperFixedHeight", Zt = /* @__PURE__ */ Ge({
|
|
|
76
77
|
rowClassName: {},
|
|
77
78
|
scroll: {},
|
|
78
79
|
beforeEditSubmit: {},
|
|
79
|
-
size: {}
|
|
80
|
+
size: {},
|
|
81
|
+
divideSpace: { default: "default" }
|
|
80
82
|
},
|
|
81
83
|
emits: [
|
|
82
84
|
"fetch-success",
|
|
@@ -96,242 +98,250 @@ const Tt = "PageWrapperFixedHeight", Zt = /* @__PURE__ */ Ge({
|
|
|
96
98
|
"change",
|
|
97
99
|
"columns-change"
|
|
98
100
|
],
|
|
99
|
-
setup(
|
|
100
|
-
const f =
|
|
101
|
-
...
|
|
102
|
-
sortFn:
|
|
103
|
-
filterFn:
|
|
104
|
-
fetchSetting:
|
|
105
|
-
size:
|
|
106
|
-
...e(
|
|
107
|
-
})),
|
|
108
|
-
|
|
109
|
-
e(
|
|
101
|
+
setup(q, { expose: J, emit: Q }) {
|
|
102
|
+
const f = Bt().value.table, r = q, l = Q, z = Qe(), x = Ue(), s = d(null), w = d([]), R = d(null), K = d(null), F = d(), { b: i, m: U } = vt("pro-table"), [X, k] = it(), T = p(() => nt(r.divideSpace) ? Tt[r.divideSpace] : r.divideSpace), a = p(() => ({
|
|
103
|
+
...r,
|
|
104
|
+
sortFn: r.sortFn || f.defaultSortFn,
|
|
105
|
+
filterFn: r.filterFn || f.defaultFilterFn,
|
|
106
|
+
fetchSetting: r.fetchSetting || f.fetchSetting,
|
|
107
|
+
size: r.size || f.defaultSize,
|
|
108
|
+
...e(F)
|
|
109
|
+
})), Y = Xe(Pt, !1);
|
|
110
|
+
Ye(() => {
|
|
111
|
+
e(Y) && r.canResize && console.warn(
|
|
110
112
|
"'canResize' of BasicTable may not work in PageWrapper with 'fixedHeight' (especially in hot updates)"
|
|
111
113
|
);
|
|
112
114
|
});
|
|
113
|
-
const { getLoading:
|
|
114
|
-
getPaginationInfo:
|
|
115
|
-
getPagination:
|
|
116
|
-
setPagination:
|
|
117
|
-
setShowPagination:
|
|
118
|
-
getShowPagination:
|
|
119
|
-
} =
|
|
120
|
-
getRowSelection:
|
|
121
|
-
getRowSelectionRef:
|
|
122
|
-
getSelectRows:
|
|
123
|
-
setSelectedRows:
|
|
124
|
-
clearSelectedRowKeys:
|
|
125
|
-
getSelectRowKeys:
|
|
126
|
-
deleteSelectRowByKey:
|
|
127
|
-
setSelectedRowKeys:
|
|
128
|
-
} = ft(a,
|
|
129
|
-
handleTableChange:
|
|
130
|
-
getDataSourceRef:
|
|
131
|
-
getDataSource:
|
|
132
|
-
getRawDataSource:
|
|
133
|
-
setTableData:
|
|
134
|
-
updateTableDataRecord:
|
|
135
|
-
deleteTableDataRecord:
|
|
136
|
-
insertTableDataRecord:
|
|
137
|
-
findTableDataRecord:
|
|
138
|
-
fetch:
|
|
139
|
-
getRowKey:
|
|
140
|
-
reload:
|
|
141
|
-
getAutoCreateKey:
|
|
142
|
-
updateTableData:
|
|
143
|
-
} =
|
|
115
|
+
const { getLoading: E, setLoading: H } = pt(a), {
|
|
116
|
+
getPaginationInfo: B,
|
|
117
|
+
getPagination: Z,
|
|
118
|
+
setPagination: _,
|
|
119
|
+
setShowPagination: ee,
|
|
120
|
+
getShowPagination: te
|
|
121
|
+
} = mt(a), {
|
|
122
|
+
getRowSelection: oe,
|
|
123
|
+
getRowSelectionRef: A,
|
|
124
|
+
getSelectRows: ae,
|
|
125
|
+
setSelectedRows: ne,
|
|
126
|
+
clearSelectedRowKeys: g,
|
|
127
|
+
getSelectRowKeys: v,
|
|
128
|
+
deleteSelectRowByKey: re,
|
|
129
|
+
setSelectedRowKeys: I
|
|
130
|
+
} = ft(a, w, l), {
|
|
131
|
+
handleTableChange: le,
|
|
132
|
+
getDataSourceRef: c,
|
|
133
|
+
getDataSource: se,
|
|
134
|
+
getRawDataSource: ie,
|
|
135
|
+
setTableData: ce,
|
|
136
|
+
updateTableDataRecord: me,
|
|
137
|
+
deleteTableDataRecord: ue,
|
|
138
|
+
insertTableDataRecord: de,
|
|
139
|
+
findTableDataRecord: pe,
|
|
140
|
+
fetch: fe,
|
|
141
|
+
getRowKey: ge,
|
|
142
|
+
reload: he,
|
|
143
|
+
getAutoCreateKey: Se,
|
|
144
|
+
updateTableData: Ce
|
|
145
|
+
} = dt(
|
|
144
146
|
a,
|
|
145
147
|
{
|
|
146
|
-
tableData:
|
|
147
|
-
getPaginationInfo:
|
|
148
|
-
setLoading:
|
|
149
|
-
setPagination:
|
|
150
|
-
getFieldsValue:
|
|
151
|
-
clearSelectedRowKeys:
|
|
148
|
+
tableData: w,
|
|
149
|
+
getPaginationInfo: B,
|
|
150
|
+
setLoading: H,
|
|
151
|
+
setPagination: _,
|
|
152
|
+
getFieldsValue: k.getFieldsValue,
|
|
153
|
+
clearSelectedRowKeys: g
|
|
152
154
|
},
|
|
153
|
-
|
|
155
|
+
l
|
|
154
156
|
);
|
|
155
|
-
function
|
|
156
|
-
|
|
157
|
+
function ye(t, n, o, u) {
|
|
158
|
+
le(t, n, o), l("change", t, n, o);
|
|
157
159
|
const { onChange: P } = e(a);
|
|
158
|
-
P &&
|
|
160
|
+
P && lt(P) && P(t, n, o, u);
|
|
159
161
|
}
|
|
160
162
|
const {
|
|
161
|
-
getViewColumns:
|
|
162
|
-
getColumns:
|
|
163
|
-
setCacheColumnsByField:
|
|
164
|
-
setCacheColumns:
|
|
165
|
-
setColumnWidth:
|
|
166
|
-
setColumns:
|
|
167
|
-
getColumnsRef:
|
|
168
|
-
getCacheColumns:
|
|
169
|
-
} =
|
|
163
|
+
getViewColumns: be,
|
|
164
|
+
getColumns: we,
|
|
165
|
+
setCacheColumnsByField: Re,
|
|
166
|
+
setCacheColumns: Fe,
|
|
167
|
+
setColumnWidth: Te,
|
|
168
|
+
setColumns: Be,
|
|
169
|
+
getColumnsRef: ve,
|
|
170
|
+
getCacheColumns: Pe
|
|
171
|
+
} = ut(a, B), { getScrollRef: N, redoHeight: $ } = gt(
|
|
170
172
|
a,
|
|
171
173
|
s,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
), { scrollTo:
|
|
178
|
-
setSelectedRowKeys:
|
|
179
|
-
getSelectRowKeys:
|
|
180
|
-
clearSelectedRowKeys:
|
|
181
|
-
getAutoCreateKey:
|
|
182
|
-
emit:
|
|
183
|
-
}), { getRowClassName:
|
|
184
|
-
getExpandOption:
|
|
185
|
-
expandAll:
|
|
186
|
-
expandRows:
|
|
187
|
-
collapseRows:
|
|
188
|
-
collapseAll:
|
|
189
|
-
handleTableExpand:
|
|
190
|
-
} =
|
|
174
|
+
ve,
|
|
175
|
+
A,
|
|
176
|
+
c,
|
|
177
|
+
R,
|
|
178
|
+
K
|
|
179
|
+
), { scrollTo: De } = ht(s, c), { customRow: ze } = St(a, {
|
|
180
|
+
setSelectedRowKeys: I,
|
|
181
|
+
getSelectRowKeys: v,
|
|
182
|
+
clearSelectedRowKeys: g,
|
|
183
|
+
getAutoCreateKey: Se,
|
|
184
|
+
emit: l
|
|
185
|
+
}), { getRowClassName: xe } = Ct(a, i()), {
|
|
186
|
+
getExpandOption: Ke,
|
|
187
|
+
expandAll: ke,
|
|
188
|
+
expandRows: Ee,
|
|
189
|
+
collapseRows: He,
|
|
190
|
+
collapseAll: _e,
|
|
191
|
+
handleTableExpand: Ae
|
|
192
|
+
} = bt(a, w, l), Ie = {
|
|
191
193
|
onColumnsChange: (t) => {
|
|
192
194
|
var n, o;
|
|
193
|
-
|
|
195
|
+
l("columns-change", t), (o = (n = e(a)).onColumnsChange) == null || o.call(n, t);
|
|
194
196
|
}
|
|
195
|
-
},
|
|
196
|
-
clearSelectedRowKeys:
|
|
197
|
-
getSelectRowKeys:
|
|
198
|
-
}, { getHeaderProps:
|
|
197
|
+
}, Ne = {
|
|
198
|
+
clearSelectedRowKeys: g,
|
|
199
|
+
getSelectRowKeys: v
|
|
200
|
+
}, { getHeaderProps: $e } = yt(a, x, Ie, Ne), { getFooterProps: Oe } = Rt(
|
|
199
201
|
a,
|
|
200
|
-
|
|
202
|
+
N,
|
|
201
203
|
s,
|
|
202
|
-
|
|
204
|
+
c
|
|
203
205
|
), {
|
|
204
|
-
getFormProps:
|
|
205
|
-
replaceFormSlotKey:
|
|
206
|
-
getFormSlotKeys:
|
|
207
|
-
handleSearchInfoChange:
|
|
208
|
-
} =
|
|
209
|
-
const t = e(
|
|
206
|
+
getFormProps: Ve,
|
|
207
|
+
replaceFormSlotKey: Le,
|
|
208
|
+
getFormSlotKeys: We,
|
|
209
|
+
handleSearchInfoChange: je
|
|
210
|
+
} = Ft(a, x, fe, E), m = p(() => {
|
|
211
|
+
const t = e(c);
|
|
210
212
|
let n = {
|
|
211
|
-
...
|
|
212
|
-
customRow:
|
|
213
|
+
...z,
|
|
214
|
+
customRow: ze,
|
|
213
215
|
...e(a),
|
|
214
|
-
...e(
|
|
215
|
-
scroll: e(
|
|
216
|
-
loading: e(
|
|
216
|
+
...e($e),
|
|
217
|
+
scroll: e(N),
|
|
218
|
+
loading: e(E),
|
|
217
219
|
tableLayout: "fixed",
|
|
218
|
-
rowSelection: e(
|
|
219
|
-
rowKey: e(
|
|
220
|
-
columns:
|
|
221
|
-
pagination:
|
|
220
|
+
rowSelection: e(A),
|
|
221
|
+
rowKey: e(ge),
|
|
222
|
+
columns: O(e(be)),
|
|
223
|
+
pagination: O(e(B)),
|
|
222
224
|
dataSource: t,
|
|
223
|
-
footer: e(
|
|
224
|
-
...e(
|
|
225
|
+
footer: e(Oe),
|
|
226
|
+
...e(Ke)
|
|
225
227
|
};
|
|
226
|
-
return n =
|
|
227
|
-
}),
|
|
228
|
-
const t = e(
|
|
228
|
+
return n = rt(n, ["class", "style", "onChange"]), n;
|
|
229
|
+
}), Me = p(() => {
|
|
230
|
+
const t = e(m);
|
|
229
231
|
return [
|
|
230
|
-
|
|
231
|
-
|
|
232
|
+
i(),
|
|
233
|
+
z.class,
|
|
232
234
|
{
|
|
233
|
-
[
|
|
234
|
-
[
|
|
235
|
+
[U("inset")]: t.inset,
|
|
236
|
+
[i("no-divide")]: T.value === 0
|
|
235
237
|
}
|
|
236
238
|
];
|
|
237
|
-
}),
|
|
239
|
+
}), Ge = p(() => {
|
|
238
240
|
const { emptyDataIsShowTable: t, useSearchForm: n } = e(a);
|
|
239
|
-
return t || !n ? !0 : !!e(
|
|
241
|
+
return t || !n ? !0 : !!e(c).length;
|
|
240
242
|
});
|
|
241
|
-
function
|
|
242
|
-
|
|
243
|
+
function qe(t) {
|
|
244
|
+
F.value = { ...e(F), ...t };
|
|
243
245
|
}
|
|
244
|
-
const
|
|
245
|
-
reload:
|
|
246
|
-
getSelectRows:
|
|
247
|
-
setSelectedRows:
|
|
248
|
-
clearSelectedRowKeys:
|
|
249
|
-
getSelectRowKeys:
|
|
250
|
-
deleteSelectRowByKey:
|
|
251
|
-
setPagination:
|
|
252
|
-
setTableData:
|
|
253
|
-
updateTableDataRecord:
|
|
254
|
-
deleteTableDataRecord:
|
|
255
|
-
insertTableDataRecord:
|
|
256
|
-
findTableDataRecord:
|
|
257
|
-
redoHeight:
|
|
258
|
-
setSelectedRowKeys:
|
|
259
|
-
setColumns:
|
|
260
|
-
setLoading:
|
|
261
|
-
getDataSource:
|
|
262
|
-
getRawDataSource:
|
|
263
|
-
setProps:
|
|
264
|
-
getRowSelection:
|
|
265
|
-
getPaginationRef:
|
|
266
|
-
getColumns:
|
|
267
|
-
getCacheColumns:
|
|
268
|
-
emit:
|
|
269
|
-
updateTableData:
|
|
270
|
-
setShowPagination:
|
|
271
|
-
getShowPagination:
|
|
272
|
-
setCacheColumnsByField:
|
|
273
|
-
expandAll:
|
|
274
|
-
collapseAll:
|
|
275
|
-
expandRows:
|
|
276
|
-
collapseRows:
|
|
277
|
-
scrollTo:
|
|
278
|
-
getSize: () => e(
|
|
279
|
-
setCacheColumns:
|
|
246
|
+
const h = {
|
|
247
|
+
reload: he,
|
|
248
|
+
getSelectRows: ae,
|
|
249
|
+
setSelectedRows: ne,
|
|
250
|
+
clearSelectedRowKeys: g,
|
|
251
|
+
getSelectRowKeys: v,
|
|
252
|
+
deleteSelectRowByKey: re,
|
|
253
|
+
setPagination: _,
|
|
254
|
+
setTableData: ce,
|
|
255
|
+
updateTableDataRecord: me,
|
|
256
|
+
deleteTableDataRecord: ue,
|
|
257
|
+
insertTableDataRecord: de,
|
|
258
|
+
findTableDataRecord: pe,
|
|
259
|
+
redoHeight: $,
|
|
260
|
+
setSelectedRowKeys: I,
|
|
261
|
+
setColumns: Be,
|
|
262
|
+
setLoading: H,
|
|
263
|
+
getDataSource: se,
|
|
264
|
+
getRawDataSource: ie,
|
|
265
|
+
setProps: qe,
|
|
266
|
+
getRowSelection: oe,
|
|
267
|
+
getPaginationRef: Z,
|
|
268
|
+
getColumns: we,
|
|
269
|
+
getCacheColumns: Pe,
|
|
270
|
+
emit: l,
|
|
271
|
+
updateTableData: Ce,
|
|
272
|
+
setShowPagination: ee,
|
|
273
|
+
getShowPagination: te,
|
|
274
|
+
setCacheColumnsByField: Re,
|
|
275
|
+
expandAll: ke,
|
|
276
|
+
collapseAll: _e,
|
|
277
|
+
expandRows: Ee,
|
|
278
|
+
collapseRows: He,
|
|
279
|
+
scrollTo: De,
|
|
280
|
+
getSize: () => e(m).size,
|
|
281
|
+
setCacheColumns: Fe
|
|
280
282
|
};
|
|
281
|
-
return
|
|
283
|
+
return wt({ ...h, wrapRef: R, getBindValues: m }), l("register", h, k), J({ tableElRef: s, ...h }), (t, n) => (V(), L("div", {
|
|
282
284
|
ref_key: "wrapRef",
|
|
283
|
-
ref:
|
|
284
|
-
class:
|
|
285
|
+
ref: R,
|
|
286
|
+
class: W(Me.value)
|
|
285
287
|
}, [
|
|
286
|
-
|
|
288
|
+
m.value.useSearchForm ? (V(), L("div", {
|
|
287
289
|
key: 0,
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
290
|
+
class: W([
|
|
291
|
+
e(i)("form-container"),
|
|
292
|
+
T.value === 0 ? e(i)("form-container-no-divide") : ""
|
|
293
|
+
]),
|
|
294
|
+
style: Ze({ marginBottom: T.value + "px" })
|
|
295
|
+
}, [
|
|
296
|
+
D(e(st), j({
|
|
297
|
+
ref_key: "formRef",
|
|
298
|
+
ref: K,
|
|
299
|
+
submitOnReset: ""
|
|
300
|
+
}, e(Ve), {
|
|
301
|
+
tableAction: h,
|
|
302
|
+
onRegister: e(X),
|
|
303
|
+
onSubmit: e(je),
|
|
304
|
+
onAdvancedChange: e($)
|
|
305
|
+
}), M({ _: 2 }, [
|
|
306
|
+
G(e(We), (o) => ({
|
|
307
|
+
name: e(Le)(o),
|
|
308
|
+
fn: S((u) => [
|
|
309
|
+
C(t.$slots, o, y(b(u || {})))
|
|
310
|
+
])
|
|
311
|
+
}))
|
|
312
|
+
]), 1040, ["onRegister", "onSubmit", "onAdvancedChange"])
|
|
313
|
+
], 6)) : et("", !0),
|
|
314
|
+
tt(D(e(at), j({
|
|
305
315
|
ref_key: "tableElRef",
|
|
306
316
|
ref: s
|
|
307
|
-
},
|
|
308
|
-
rowClassName: e(
|
|
309
|
-
onChange:
|
|
310
|
-
onResizeColumn: e(
|
|
311
|
-
onExpand: e(
|
|
312
|
-
}),
|
|
313
|
-
headerCell:
|
|
314
|
-
|
|
315
|
-
|
|
317
|
+
}, m.value, {
|
|
318
|
+
rowClassName: e(xe),
|
|
319
|
+
onChange: ye,
|
|
320
|
+
onResizeColumn: e(Te),
|
|
321
|
+
onExpand: e(Ae)
|
|
322
|
+
}), M({
|
|
323
|
+
headerCell: S(({ column: o }) => [
|
|
324
|
+
C(t.$slots, "headerCell", y(b({ column: o })), () => [
|
|
325
|
+
D(ct, { column: o }, null, 8, ["column"])
|
|
316
326
|
])
|
|
317
327
|
]),
|
|
318
|
-
bodyCell:
|
|
319
|
-
|
|
328
|
+
bodyCell: S((o) => [
|
|
329
|
+
C(t.$slots, "bodyCell", y(b(o || {})))
|
|
320
330
|
]),
|
|
321
331
|
_: 2
|
|
322
332
|
}, [
|
|
323
|
-
|
|
333
|
+
G(Object.keys(t.$slots), (o) => ({
|
|
324
334
|
name: o,
|
|
325
|
-
fn:
|
|
326
|
-
|
|
335
|
+
fn: S((u) => [
|
|
336
|
+
C(t.$slots, o, y(b(u || {})))
|
|
327
337
|
])
|
|
328
338
|
}))
|
|
329
339
|
]), 1040, ["rowClassName", "onResizeColumn", "onExpand"]), [
|
|
330
|
-
[
|
|
340
|
+
[ot, Ge.value]
|
|
331
341
|
])
|
|
332
342
|
], 2));
|
|
333
343
|
}
|
|
334
344
|
});
|
|
335
345
|
export {
|
|
336
|
-
|
|
346
|
+
ao as default
|
|
337
347
|
};
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
.aplus-pro-table {
|
|
2
2
|
max-width: 100%;
|
|
3
3
|
height: 100%;
|
|
4
|
+
padding: 16px;
|
|
5
|
+
}
|
|
6
|
+
.aplus-pro-table-no-divide .ant-table-wrapper {
|
|
7
|
+
border-top-left-radius: 0 !important;
|
|
8
|
+
border-top-right-radius: 0 !important;
|
|
4
9
|
}
|
|
5
10
|
.aplus-pro-table-row__striped td {
|
|
6
11
|
background-color: #fafafa !important;
|
|
7
12
|
}
|
|
8
|
-
.aplus-pro-table-form-container {
|
|
9
|
-
padding: 16px;
|
|
10
|
-
}
|
|
11
13
|
.aplus-pro-table-form-container .ant-form {
|
|
12
14
|
width: 100%;
|
|
13
|
-
|
|
14
|
-
padding: 16px 16px 4px;
|
|
15
|
+
padding: 16px 16px 8px;
|
|
15
16
|
border-radius: 2px;
|
|
16
17
|
background-color: #fff;
|
|
17
18
|
}
|
|
19
|
+
.aplus-pro-table-form-container-no-divide .ant-form {
|
|
20
|
+
border-bottom-left-radius: 0 !important;
|
|
21
|
+
border-bottom-right-radius: 0 !important;
|
|
22
|
+
}
|
|
18
23
|
.aplus-pro-table .ant-table-cell .ant-tag {
|
|
19
24
|
margin-right: 0;
|
|
20
25
|
}
|
|
@@ -5,7 +5,6 @@ export declare const Scrollbar: {
|
|
|
5
5
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
6
6
|
native: {
|
|
7
7
|
type: PropType<boolean>;
|
|
8
|
-
default: boolean;
|
|
9
8
|
};
|
|
10
9
|
scrollHeight: {
|
|
11
10
|
type: PropType<number>;
|
|
@@ -39,7 +38,6 @@ export declare const Scrollbar: {
|
|
|
39
38
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
40
39
|
native: {
|
|
41
40
|
type: PropType<boolean>;
|
|
42
|
-
default: boolean;
|
|
43
41
|
};
|
|
44
42
|
scrollHeight: {
|
|
45
43
|
type: PropType<number>;
|
|
@@ -69,7 +67,6 @@ export declare const Scrollbar: {
|
|
|
69
67
|
default: string;
|
|
70
68
|
};
|
|
71
69
|
}>>, {
|
|
72
|
-
native: boolean;
|
|
73
70
|
scrollHeight: number;
|
|
74
71
|
wrapStyle: StyleValue;
|
|
75
72
|
wrapClass: string | string[];
|
|
@@ -86,7 +83,6 @@ export declare const Scrollbar: {
|
|
|
86
83
|
}, Readonly< ExtractPropTypes<{
|
|
87
84
|
native: {
|
|
88
85
|
type: PropType<boolean>;
|
|
89
|
-
default: boolean;
|
|
90
86
|
};
|
|
91
87
|
scrollHeight: {
|
|
92
88
|
type: PropType<number>;
|
|
@@ -118,7 +114,6 @@ export declare const Scrollbar: {
|
|
|
118
114
|
}>>, {
|
|
119
115
|
wrap: Ref<any>;
|
|
120
116
|
}, {}, {}, {}, {
|
|
121
|
-
native: boolean;
|
|
122
117
|
scrollHeight: number;
|
|
123
118
|
wrapStyle: StyleValue;
|
|
124
119
|
wrapClass: string | string[];
|
|
@@ -132,7 +127,6 @@ export declare const Scrollbar: {
|
|
|
132
127
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
133
128
|
native: {
|
|
134
129
|
type: PropType<boolean>;
|
|
135
|
-
default: boolean;
|
|
136
130
|
};
|
|
137
131
|
scrollHeight: {
|
|
138
132
|
type: PropType<number>;
|
|
@@ -164,7 +158,6 @@ export declare const Scrollbar: {
|
|
|
164
158
|
}>>, {
|
|
165
159
|
wrap: Ref<any>;
|
|
166
160
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
167
|
-
native: boolean;
|
|
168
161
|
scrollHeight: number;
|
|
169
162
|
wrapStyle: StyleValue;
|
|
170
163
|
wrapClass: string | string[];
|
|
@@ -3,7 +3,6 @@ import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTy
|
|
|
3
3
|
import { StyleValue } from '../type';
|
|
4
4
|
|
|
5
5
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ScrollbarProps>, {
|
|
6
|
-
native: boolean;
|
|
7
6
|
wrapStyle: string;
|
|
8
7
|
wrapClass: string;
|
|
9
8
|
viewStyle: string;
|
|
@@ -13,7 +12,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
13
12
|
}>, {
|
|
14
13
|
wrap: Ref<any>;
|
|
15
14
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ScrollbarProps>, {
|
|
16
|
-
native: boolean;
|
|
17
15
|
wrapStyle: string;
|
|
18
16
|
wrapClass: string;
|
|
19
17
|
viewStyle: string;
|
|
@@ -21,7 +19,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
21
19
|
tag: string;
|
|
22
20
|
scrollHeight: number;
|
|
23
21
|
}>>>, {
|
|
24
|
-
native: boolean;
|
|
25
22
|
scrollHeight: number;
|
|
26
23
|
wrapStyle: StyleValue;
|
|
27
24
|
wrapClass: string | string[];
|