@aplus-frontend/ui 0.0.40 → 0.1.0
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/item/index.vue2.mjs +19 -20
- package/es/src/ap-action/item-modal/index.vue.mjs +7 -6
- package/es/src/ap-action/style/item.css +10 -25
- package/es/src/ap-field/checkbox/index.vue.mjs +32 -27
- package/es/src/ap-field/checkbox/style.css +7 -0
- package/es/src/ap-field/interface.d.ts +2 -0
- package/es/src/ap-field/radio/index.vue.d.ts +3 -0
- package/es/src/ap-field/radio/index.vue.mjs +44 -29
- package/es/src/ap-field/radio/style.css +4 -0
- package/es/src/ap-table/ap-table.vue.mjs +125 -126
- package/es/src/ap-table/constants.d.ts +15 -0
- package/es/src/ap-table/style/ap-table.css +1 -21
- package/es/src/business/ap-status/ApStatusGroup.vue2.mjs +10 -9
- package/es/src/check-card/index.vue2.mjs +44 -48
- package/es/src/check-card/style/index.css +10 -42
- package/es/src/design-token/index.mjs +4 -2
- package/es/src/editable-table/form-item.vue.mjs +57 -58
- package/es/src/editable-table/index.vue.mjs +54 -55
- package/es/src/editable-table/style/index.css +1 -21
- package/es/src/locale/lang/en.mjs +1 -1
- package/es/src/locale/lang/zh-cn.mjs +22 -22
- package/es/src/theme/ap-action/item.css +10 -25
- package/es/src/theme/ap-field/checkbox.css +7 -0
- package/es/src/theme/ap-field/radio.css +4 -0
- package/es/src/theme/ap-table/ap-table.css +1 -21
- package/es/src/theme/check-card/index.css +10 -42
- package/es/src/theme/css-var/index.mjs +83 -19
- package/es/src/theme/editable-table/index.css +1 -21
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-modal/index.vue.js +1 -1
- package/lib/src/ap-action/style/item.css +10 -25
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/style.css +7 -0
- package/lib/src/ap-field/interface.d.ts +2 -0
- package/lib/src/ap-field/radio/index.vue.d.ts +3 -0
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/radio/style.css +4 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +15 -0
- package/lib/src/ap-table/style/ap-table.css +1 -21
- package/lib/src/business/ap-status/ApStatusGroup.vue2.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/check-card/style/index.css +10 -42
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/style/index.css +1 -21
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/theme/ap-action/item.css +10 -25
- package/lib/src/theme/ap-field/checkbox.css +7 -0
- package/lib/src/theme/ap-field/radio.css +4 -0
- package/lib/src/theme/ap-table/ap-table.css +1 -21
- package/lib/src/theme/check-card/index.css +10 -42
- package/lib/src/theme/css-var/index.js +1 -1
- package/lib/src/theme/editable-table/index.css +1 -21
- package/package.json +2 -2
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Typography as
|
|
1
|
+
import { defineComponent as le, useSlots as ne, computed as s, createVNode as d, mergeProps as i, unref as l, watch as se, openBlock as p, createElementBlock as g, normalizeClass as T, normalizeStyle as x, createSlots as K, withCtx as c, Fragment as de, renderList as V, createBlock as ue, resolveDynamicComponent as ie, renderSlot as v, createCommentVNode as z, createElementVNode as D, toDisplayString as pe, normalizeProps as ce, guardReactiveProps as fe } from "vue";
|
|
2
|
+
import { Typography as me, Table as ye, Tooltip as ge } from "ant-design-vue";
|
|
3
3
|
import { useToken as Se } from "ant-design-vue/es/theme/internal";
|
|
4
|
-
import { ApForm as
|
|
5
|
-
import { apTableRenderItemMap as
|
|
4
|
+
import { ApForm as be } from "../ap-form/index.mjs";
|
|
5
|
+
import { apTableRenderItemMap as he, noRenderAsFormItemValueList as N, apTableFormItemMap as we } from "./constants.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
|
-
import { useTablePaging as
|
|
8
|
-
import { omit as j, isUndefined as u, isBoolean as
|
|
7
|
+
import { useTablePaging as Re } from "./hooks/use-table-paging.mjs";
|
|
8
|
+
import { omit as j, isUndefined as u, isBoolean as Ce } from "lodash-unified";
|
|
9
9
|
import "./style/ap-table.css";
|
|
10
|
-
import { QuestionCircleOutlined as
|
|
11
|
-
import { apColumnToColumn as
|
|
12
|
-
import
|
|
13
|
-
import { getRawDisplayValue as
|
|
14
|
-
import
|
|
15
|
-
import { useLocale as
|
|
16
|
-
import { useNamespace as
|
|
17
|
-
|
|
18
|
-
const De = {
|
|
10
|
+
import { QuestionCircleOutlined as Fe } from "@ant-design/icons-vue";
|
|
11
|
+
import { apColumnToColumn as Te, getTableRenderType as xe, getTableRenderProps as ve, getColumnOrder as W, updateFormProps as Be, getFieldProps as Pe, getPlaceholder as Ie } from "./utils.mjs";
|
|
12
|
+
import ke from "./hooks/use-table-content-height.mjs";
|
|
13
|
+
import { getRawDisplayValue as Le } from "../editable-table/utils.mjs";
|
|
14
|
+
import Ee from "./hooks/use-table-row-selection.mjs";
|
|
15
|
+
import { useLocale as Oe } from "../config-provider/hooks/use-locale.mjs";
|
|
16
|
+
import { useNamespace as Ke } from "../config-provider/hooks/use-namespace.mjs";
|
|
17
|
+
const Ve = {
|
|
19
18
|
key: 0
|
|
20
|
-
},
|
|
19
|
+
}, Ye = /* @__PURE__ */ le({
|
|
21
20
|
name: "ApTable",
|
|
22
21
|
__name: "ap-table",
|
|
23
22
|
props: {
|
|
@@ -138,223 +137,223 @@ const De = {
|
|
|
138
137
|
}) {
|
|
139
138
|
const a = _;
|
|
140
139
|
let B = 0;
|
|
141
|
-
const P =
|
|
142
|
-
t:
|
|
143
|
-
} =
|
|
144
|
-
e:
|
|
145
|
-
b:
|
|
146
|
-
} =
|
|
140
|
+
const P = ne(), [, q] = Se(), {
|
|
141
|
+
t: H
|
|
142
|
+
} = Oe(), {
|
|
143
|
+
e: S,
|
|
144
|
+
b: f
|
|
145
|
+
} = Ke("ap-table"), {
|
|
147
146
|
height: $,
|
|
148
|
-
contentRef:
|
|
149
|
-
} =
|
|
150
|
-
var
|
|
151
|
-
let e = ((
|
|
152
|
-
return e = e.map((
|
|
153
|
-
...j(
|
|
147
|
+
contentRef: M
|
|
148
|
+
} = ke(), b = s(() => {
|
|
149
|
+
var o;
|
|
150
|
+
let e = ((o = a.columns) == null ? void 0 : o.filter((t) => !t.hideInTable)) || [];
|
|
151
|
+
return e = e.map((t) => ({
|
|
152
|
+
...j(Te(t), ["ellipsis"]),
|
|
154
153
|
customRender({
|
|
155
|
-
value:
|
|
154
|
+
value: r,
|
|
156
155
|
...n
|
|
157
156
|
}) {
|
|
158
|
-
const C =
|
|
159
|
-
value:
|
|
157
|
+
const C = xe(t), O = he[C], re = ve(t, {
|
|
158
|
+
value: r,
|
|
160
159
|
...n
|
|
161
160
|
});
|
|
162
|
-
let F =
|
|
161
|
+
let F = ae(t, r, d(O, i(re, {
|
|
163
162
|
mode: "read"
|
|
164
163
|
}), null));
|
|
165
|
-
return
|
|
166
|
-
value:
|
|
164
|
+
return t.customRender && (F = t.customRender({
|
|
165
|
+
value: r,
|
|
167
166
|
...n,
|
|
168
|
-
column:
|
|
167
|
+
column: t,
|
|
169
168
|
originalNode: F
|
|
170
169
|
})), F;
|
|
171
170
|
}
|
|
172
171
|
})), e;
|
|
173
172
|
}), I = s(() => {
|
|
174
|
-
var e,
|
|
175
|
-
return B++, ((
|
|
176
|
-
let C = W(
|
|
173
|
+
var e, o, t;
|
|
174
|
+
return B++, ((t = (o = (e = a.columns) == null ? void 0 : e.filter((r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !N.includes(r.valueType))) == null ? void 0 : o.sort((r, n) => {
|
|
175
|
+
let C = W(r.order);
|
|
177
176
|
return W(n.order) - C;
|
|
178
|
-
})) == null ? void 0 :
|
|
179
|
-
const n =
|
|
177
|
+
})) == null ? void 0 : t.map((r) => {
|
|
178
|
+
const n = Be(r, Pe(r.fieldProps, {}));
|
|
180
179
|
return {
|
|
181
|
-
...
|
|
180
|
+
...r,
|
|
182
181
|
fieldProps: {
|
|
183
|
-
label:
|
|
184
|
-
name:
|
|
182
|
+
label: r.title,
|
|
183
|
+
name: r.dataIndex,
|
|
185
184
|
...n || {},
|
|
186
185
|
// 格式化placeholder
|
|
187
|
-
placeholder:
|
|
186
|
+
placeholder: Ie(H, r.valueType, n == null ? void 0 : n.placeholder),
|
|
188
187
|
_signal: B
|
|
189
188
|
}
|
|
190
189
|
};
|
|
191
190
|
})) || [];
|
|
192
|
-
}), Q = s(() =>
|
|
191
|
+
}), Q = s(() => l(b).filter((e) => e.sorter === !0).map((e) => e.dataIndex)), U = s(() => l(b).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex)), G = s(() => u(a.dataSource) ? y.value.records : a.dataSource), {
|
|
193
192
|
rowSelection: h,
|
|
194
193
|
selectedRows: k,
|
|
195
194
|
...w
|
|
196
|
-
} =
|
|
195
|
+
} = Ee({
|
|
197
196
|
...a.rowSelection === !0 ? {} : a.rowSelection,
|
|
198
197
|
rowKey: a.rowKey,
|
|
199
|
-
dataSource:
|
|
198
|
+
dataSource: G
|
|
200
199
|
}), {
|
|
201
200
|
formRef: R,
|
|
202
201
|
submit: L,
|
|
203
202
|
reset: E,
|
|
204
203
|
tableProps: m,
|
|
205
|
-
handleTableChange:
|
|
204
|
+
handleTableChange: J,
|
|
206
205
|
data: y
|
|
207
|
-
} =
|
|
206
|
+
} = Re({
|
|
208
207
|
async request(e) {
|
|
209
|
-
var
|
|
208
|
+
var t, r;
|
|
210
209
|
!h.value.preserveSelectedRowKeys && u(a.dataSource) && w.clearAll();
|
|
211
|
-
const
|
|
212
|
-
return (
|
|
213
|
-
data: (
|
|
214
|
-
total: (
|
|
210
|
+
const o = await ((t = a.request) == null ? void 0 : t.call(a, e));
|
|
211
|
+
return (r = a.onLoad) == null || r.call(a, (o == null ? void 0 : o.data) || []), {
|
|
212
|
+
data: (o == null ? void 0 : o.data) || [],
|
|
213
|
+
total: (o == null ? void 0 : o.total) || 0
|
|
215
214
|
};
|
|
216
215
|
},
|
|
217
|
-
filterFields:
|
|
218
|
-
sortFields:
|
|
216
|
+
filterFields: l(U),
|
|
217
|
+
sortFields: l(Q),
|
|
219
218
|
defaultParams: a.params,
|
|
220
219
|
defaultData: a.defaultData,
|
|
221
220
|
manual: a.manual,
|
|
222
221
|
defaultCurrent: a.pagination ? a.pagination.defaultCurrent : void 0,
|
|
223
222
|
defaultPageSize: a.pagination ? a.pagination.defaultPageSize : void 0,
|
|
224
223
|
formatParams: a.beforeSearchSubmit
|
|
225
|
-
}),
|
|
224
|
+
}), X = s(() => {
|
|
226
225
|
var e;
|
|
227
226
|
return a.scroll ? a.scroll : a.adaptive && (y.value.total > 0 || (e = a.dataSource) != null && e.length) ? {
|
|
228
|
-
y:
|
|
227
|
+
y: l($),
|
|
229
228
|
x: "100%"
|
|
230
229
|
} : {
|
|
231
230
|
x: !0
|
|
232
231
|
};
|
|
233
|
-
}),
|
|
232
|
+
}), Y = s(() => {
|
|
234
233
|
var e;
|
|
235
234
|
if (a.tableLayout)
|
|
236
235
|
return a.tableLayout;
|
|
237
|
-
if ((e = a.columns) != null && e.some((
|
|
236
|
+
if ((e = a.columns) != null && e.some((o) => o.ellipsis))
|
|
238
237
|
return "fixed";
|
|
239
|
-
}),
|
|
240
|
-
var
|
|
241
|
-
const e =
|
|
238
|
+
}), Z = s(() => {
|
|
239
|
+
var r;
|
|
240
|
+
const e = l(m), o = u(a.dataSource) ? e : {
|
|
242
241
|
...e,
|
|
243
242
|
dataSource: a.dataSource,
|
|
244
243
|
onChange: a.onChange
|
|
245
|
-
},
|
|
244
|
+
}, t = l(h);
|
|
246
245
|
return {
|
|
247
246
|
...a,
|
|
248
|
-
...
|
|
249
|
-
rowSelection: a.rowSelection === !0 || ((
|
|
250
|
-
...
|
|
247
|
+
...o,
|
|
248
|
+
rowSelection: a.rowSelection === !0 || ((r = a.rowSelection) == null ? void 0 : r.mode) === "internal" ? {
|
|
249
|
+
...t,
|
|
251
250
|
// tips 如果是前端分页,则默认会走缓存
|
|
252
|
-
preserveSelectedRowKeys: u(a.dataSource) ?
|
|
251
|
+
preserveSelectedRowKeys: u(a.dataSource) ? t.preserveSelectedRowKeys : !0
|
|
253
252
|
} : a.rowSelection,
|
|
254
|
-
loading: u(a.loading) ?
|
|
255
|
-
pagination: a.pagination === !1 ? !1 :
|
|
256
|
-
scroll:
|
|
253
|
+
loading: u(a.loading) ? l(m).loading : a.loading,
|
|
254
|
+
pagination: a.pagination === !1 ? !1 : l(m).pagination,
|
|
255
|
+
scroll: l(X)
|
|
257
256
|
};
|
|
258
|
-
}),
|
|
259
|
-
function
|
|
260
|
-
return N.includes(e.valueType) ?
|
|
257
|
+
}), ee = s(() => [f(), a.card ? null : f("wrapper"), a.adaptive ? f("adaptive") : null].filter(Boolean));
|
|
258
|
+
function ae(e, o, t) {
|
|
259
|
+
return N.includes(e.valueType) ? t : e.copyable || e.ellipsis ? d(me.Paragraph, {
|
|
261
260
|
copyable: e.copyable ? {
|
|
262
|
-
text:
|
|
261
|
+
text: o,
|
|
263
262
|
tooltip: !1
|
|
264
263
|
} : !1,
|
|
265
|
-
ellipsis: e.ellipsis ?
|
|
266
|
-
tooltip:
|
|
264
|
+
ellipsis: e.ellipsis ? Ce(e.ellipsis) ? {
|
|
265
|
+
tooltip: o
|
|
267
266
|
} : {
|
|
268
267
|
...e.ellipsis,
|
|
269
|
-
tooltip:
|
|
268
|
+
tooltip: o
|
|
270
269
|
} : !1,
|
|
271
|
-
content: e.ellipsis ?
|
|
272
|
-
}, null) :
|
|
270
|
+
content: e.ellipsis ? Le(e, o) : t
|
|
271
|
+
}, null) : t;
|
|
273
272
|
}
|
|
274
|
-
|
|
275
|
-
var
|
|
276
|
-
(
|
|
273
|
+
se(() => l(y).loading, (e) => {
|
|
274
|
+
var o;
|
|
275
|
+
(o = a.onLoadingChange) == null || o.call(a, e);
|
|
277
276
|
});
|
|
278
277
|
function te(e) {
|
|
279
|
-
var
|
|
280
|
-
(
|
|
278
|
+
var o, t, r;
|
|
279
|
+
(r = (t = (o = R.value) == null ? void 0 : o.apForm) == null ? void 0 : t.setFieldsValue) == null || r.call(t, e);
|
|
281
280
|
}
|
|
282
|
-
function
|
|
283
|
-
var e,
|
|
284
|
-
return (
|
|
281
|
+
function oe() {
|
|
282
|
+
var e, o, t;
|
|
283
|
+
return (t = (o = (e = R.value) == null ? void 0 : e.apForm) == null ? void 0 : o.getFieldsValue) == null ? void 0 : t.call(o, !0);
|
|
285
284
|
}
|
|
286
285
|
return A({
|
|
287
286
|
submit: () => L(),
|
|
288
287
|
reset: () => E(),
|
|
289
288
|
setSearchFormValues: te,
|
|
290
|
-
getSearchFormValues:
|
|
291
|
-
dataSource: s(() =>
|
|
289
|
+
getSearchFormValues: oe,
|
|
290
|
+
dataSource: s(() => l(y).records),
|
|
292
291
|
rowSelection: {
|
|
293
|
-
selectedRows: s(() =>
|
|
292
|
+
selectedRows: s(() => l(k)),
|
|
294
293
|
...w
|
|
295
294
|
}
|
|
296
|
-
}), (e,
|
|
297
|
-
class: T(
|
|
298
|
-
}, [
|
|
295
|
+
}), (e, o) => (p(), g("div", {
|
|
296
|
+
class: T(ee.value)
|
|
297
|
+
}, [l(u)(e.dataSource) && e.searchForm !== !1 && I.value.length > 0 ? (p(), g("div", {
|
|
299
298
|
key: 0,
|
|
300
|
-
class: T(e.card ?
|
|
299
|
+
class: T(e.card ? l(S)("search-wrapper") : null),
|
|
301
300
|
style: x(e.searchFormWrapperStyle)
|
|
302
|
-
}, [d(
|
|
301
|
+
}, [d(l(be).SearchForm, i(e.searchForm || {}, {
|
|
303
302
|
ref_key: "formRef",
|
|
304
303
|
ref: R,
|
|
305
304
|
"custom-reset": "",
|
|
306
|
-
onSubmit:
|
|
307
|
-
onReset:
|
|
308
|
-
"submit-loading":
|
|
305
|
+
onSubmit: l(L),
|
|
306
|
+
onReset: l(E),
|
|
307
|
+
"submit-loading": l(m).loading
|
|
309
308
|
}), K({
|
|
310
|
-
default:
|
|
311
|
-
key:
|
|
309
|
+
default: c(() => [(p(!0), g(de, null, V(I.value, (t) => (p(), ue(ie(t.customRenderFormItem ? t.customRenderFormItem(t) : l(we)[t.valueType || "text"]), i({
|
|
310
|
+
key: t.dataIndex,
|
|
312
311
|
ref_for: !0
|
|
313
|
-
},
|
|
314
|
-
span:
|
|
312
|
+
}, t.fieldProps || {}, {
|
|
313
|
+
span: t.span
|
|
315
314
|
}), null, 16, ["span"]))), 128))]),
|
|
316
315
|
_: 2
|
|
317
316
|
}, [P.searchFormExtra ? {
|
|
318
317
|
name: "extra",
|
|
319
|
-
fn:
|
|
318
|
+
fn: c(() => [v(e.$slots, "searchFormExtra")]),
|
|
320
319
|
key: "0"
|
|
321
320
|
} : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) : z("", !0), D("div", {
|
|
322
321
|
ref_key: "contentRef",
|
|
323
|
-
ref:
|
|
324
|
-
class: T([
|
|
322
|
+
ref: M,
|
|
323
|
+
class: T([l(S)("table-wrapper"), e.card ? l(S)("table-wrapper-card") : null]),
|
|
325
324
|
style: x(e.tableWrapperStyle)
|
|
326
|
-
}, [v(e.$slots, "title",
|
|
327
|
-
selectedRows:
|
|
328
|
-
selectedRowKeys:
|
|
329
|
-
}, w)), d(
|
|
330
|
-
class:
|
|
331
|
-
},
|
|
332
|
-
"table-layout":
|
|
333
|
-
onChange:
|
|
334
|
-
columns:
|
|
325
|
+
}, [v(e.$slots, "title", i({
|
|
326
|
+
selectedRows: l(k),
|
|
327
|
+
selectedRowKeys: l(h).selectedRowKeys
|
|
328
|
+
}, w)), d(l(ye), i({
|
|
329
|
+
class: l(f)("table")
|
|
330
|
+
}, Z.value, {
|
|
331
|
+
"table-layout": Y.value,
|
|
332
|
+
onChange: l(J),
|
|
333
|
+
columns: b.value
|
|
335
334
|
}), K({
|
|
336
|
-
headerCell:
|
|
337
|
-
column:
|
|
338
|
-
title:
|
|
339
|
-
}) => [
|
|
340
|
-
title:
|
|
335
|
+
headerCell: c(({
|
|
336
|
+
column: t,
|
|
337
|
+
title: r
|
|
338
|
+
}) => [t.tooltip ? (p(), g("span", Ve, [D("span", null, pe(r), 1), d(l(ge), {
|
|
339
|
+
title: t.tooltip,
|
|
341
340
|
placement: "bottom"
|
|
342
341
|
}, {
|
|
343
|
-
default:
|
|
342
|
+
default: c(() => [d(l(Fe), {
|
|
344
343
|
style: x({
|
|
345
344
|
paddingLeft: "4px",
|
|
346
|
-
color:
|
|
345
|
+
color: l(q).colorPrimary
|
|
347
346
|
})
|
|
348
347
|
}, null, 8, ["style"])]),
|
|
349
348
|
_: 2
|
|
350
349
|
}, 1032, ["title"])])) : z("", !0)]),
|
|
351
350
|
_: 2
|
|
352
|
-
}, [V(
|
|
353
|
-
name:
|
|
354
|
-
fn:
|
|
351
|
+
}, [V(l(j)(P, ["title", "searchFormExtra"]), (t, r) => ({
|
|
352
|
+
name: r,
|
|
353
|
+
fn: c((n) => [v(e.$slots, r, ce(fe(n || {})))])
|
|
355
354
|
}))]), 1040, ["class", "table-layout", "onChange", "columns"])], 6)], 2));
|
|
356
355
|
}
|
|
357
356
|
});
|
|
358
357
|
export {
|
|
359
|
-
|
|
358
|
+
Ye as default
|
|
360
359
|
};
|
|
@@ -11802,6 +11802,10 @@ export declare const apTableRenderItemMap: {
|
|
|
11802
11802
|
options: {
|
|
11803
11803
|
type: PropType<(string | number | RadioGroupChildOption)[]>;
|
|
11804
11804
|
};
|
|
11805
|
+
vertical: {
|
|
11806
|
+
type: PropType<boolean>;
|
|
11807
|
+
default: boolean;
|
|
11808
|
+
};
|
|
11805
11809
|
'onUpdate:value': {
|
|
11806
11810
|
type: PropType<(val: any) => void>;
|
|
11807
11811
|
};
|
|
@@ -11858,6 +11862,10 @@ export declare const apTableRenderItemMap: {
|
|
|
11858
11862
|
options: {
|
|
11859
11863
|
type: PropType<(string | number | RadioGroupChildOption)[]>;
|
|
11860
11864
|
};
|
|
11865
|
+
vertical: {
|
|
11866
|
+
type: PropType<boolean>;
|
|
11867
|
+
default: boolean;
|
|
11868
|
+
};
|
|
11861
11869
|
'onUpdate:value': {
|
|
11862
11870
|
type: PropType<(val: any) => void>;
|
|
11863
11871
|
};
|
|
@@ -11878,6 +11886,7 @@ export declare const apTableRenderItemMap: {
|
|
|
11878
11886
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
11879
11887
|
}, {
|
|
11880
11888
|
mode: FieldMode;
|
|
11889
|
+
vertical: boolean;
|
|
11881
11890
|
emptyText: string;
|
|
11882
11891
|
}, {}>;
|
|
11883
11892
|
select: {
|
|
@@ -16284,6 +16293,9 @@ export declare const apTableRenderItemMap: {
|
|
|
16284
16293
|
type: PropType<(string | number | CheckboxOptionType)[]>;
|
|
16285
16294
|
default: () => never[];
|
|
16286
16295
|
};
|
|
16296
|
+
vertical: {
|
|
16297
|
+
type: PropType<boolean>;
|
|
16298
|
+
};
|
|
16287
16299
|
defaultValue: {
|
|
16288
16300
|
type: PropType< CheckboxValueType[]>;
|
|
16289
16301
|
};
|
|
@@ -16332,6 +16344,9 @@ export declare const apTableRenderItemMap: {
|
|
|
16332
16344
|
type: PropType<(string | number | CheckboxOptionType)[]>;
|
|
16333
16345
|
default: () => never[];
|
|
16334
16346
|
};
|
|
16347
|
+
vertical: {
|
|
16348
|
+
type: PropType<boolean>;
|
|
16349
|
+
};
|
|
16335
16350
|
defaultValue: {
|
|
16336
16351
|
type: PropType< CheckboxValueType[]>;
|
|
16337
16352
|
};
|
|
@@ -48,31 +48,11 @@
|
|
|
48
48
|
flex: 1;
|
|
49
49
|
}
|
|
50
50
|
.aplus-ap-table-table tr > th.ant-table-cell {
|
|
51
|
-
background-color:
|
|
52
|
-
border-bottom-color: #E9EDF3;
|
|
51
|
+
background-color: var(--ap-table-header-bg);
|
|
53
52
|
}
|
|
54
53
|
.aplus-ap-table-table tr > th.ant-table-cell::before {
|
|
55
54
|
display: none;
|
|
56
55
|
}
|
|
57
|
-
.aplus-ap-table-table tr > td.ant-table-cell {
|
|
58
|
-
border-top-color: #E9EDF3;
|
|
59
|
-
}
|
|
60
|
-
.aplus-ap-table-table-admin .ant-pagination {
|
|
61
|
-
margin-bottom: 0 !important;
|
|
62
|
-
}
|
|
63
|
-
.aplus-ap-table-table-admin .ant-pagination .ant-pagination-total-text {
|
|
64
|
-
flex: 1;
|
|
65
|
-
}
|
|
66
|
-
.aplus-ap-table-table-admin tr > th.ant-table-cell {
|
|
67
|
-
background-color: #FAFAFA;
|
|
68
|
-
border-bottom-color: #E9E9E9;
|
|
69
|
-
}
|
|
70
|
-
.aplus-ap-table-table-admin tr > th.ant-table-cell::before {
|
|
71
|
-
display: none;
|
|
72
|
-
}
|
|
73
|
-
.aplus-ap-table-table-admin tr > td.ant-table-cell {
|
|
74
|
-
border-top-color: #E9E9E9;
|
|
75
|
-
}
|
|
76
56
|
.aplus-ap-table .ant-table.ant-table-middle .ant-table-row .ant-table-cell {
|
|
77
57
|
padding: 12px 16px;
|
|
78
58
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as p, computed as d, openBlock as a, createElementBlock as r, normalizeClass as c, unref as i, normalizeStyle as o, Fragment as m, renderList as f, createBlock as g, createCommentVNode as y } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import "./ApStatus.vue.mjs";
|
|
4
4
|
import { useNamespace as _ } from "../../config-provider/hooks/use-namespace.mjs";
|
|
5
5
|
import x from "./ApStatus.vue2.mjs";
|
|
6
|
-
const w = /* @__PURE__ */
|
|
6
|
+
const w = /* @__PURE__ */ p({
|
|
7
7
|
name: "ApStatusGroup",
|
|
8
8
|
__name: "ApStatusGroup",
|
|
9
9
|
props: {
|
|
@@ -13,24 +13,25 @@ const w = /* @__PURE__ */ l({
|
|
|
13
13
|
style: {},
|
|
14
14
|
show: { type: Boolean, default: !0 }
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const t =
|
|
16
|
+
setup(s) {
|
|
17
|
+
const t = s, l = d(() => ({
|
|
18
18
|
"padding-left": t.padding + "px",
|
|
19
19
|
"padding-right": t.padding + "px",
|
|
20
20
|
...t.style
|
|
21
|
-
})), { b:
|
|
21
|
+
})), { b: n } = _("ap-status-group");
|
|
22
22
|
return (u, h) => t.statusList ? (a(), r("div", {
|
|
23
23
|
key: 0,
|
|
24
|
-
class:
|
|
25
|
-
style:
|
|
24
|
+
class: c([i(n)()]),
|
|
25
|
+
style: o(l.value)
|
|
26
26
|
}, [
|
|
27
27
|
(a(!0), r(m, null, f(t.statusList, (e) => (a(), g(x, {
|
|
28
28
|
key: e.value,
|
|
29
29
|
show: e.value === u.currentValue,
|
|
30
30
|
color: e.color,
|
|
31
31
|
text: e.text,
|
|
32
|
-
padding: t.padding
|
|
33
|
-
|
|
32
|
+
padding: t.padding,
|
|
33
|
+
style: o(t.style)
|
|
34
|
+
}, null, 8, ["show", "color", "text", "padding", "style"]))), 128))
|
|
34
35
|
], 6)) : y("", !0);
|
|
35
36
|
}
|
|
36
37
|
});
|