@aplus-frontend/ui 0.0.18 → 0.0.19

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.
Files changed (67) hide show
  1. package/es/index.mjs +26 -23
  2. package/es/src/ap-field/date/index.vue.d.ts +3 -1
  3. package/es/src/ap-field/date-range/index.vue.d.ts +3 -3
  4. package/es/src/ap-field/date-range/index.vue.mjs +1 -1
  5. package/es/src/ap-field/interface.d.ts +1 -1
  6. package/es/src/ap-form/ap-form-item.vue.mjs +61 -57
  7. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  8. package/es/src/ap-form/style/ap-form-item.css +11 -0
  9. package/es/src/ap-modal/index.d.ts +9 -0
  10. package/es/src/ap-modal/index.mjs +10 -0
  11. package/es/src/ap-modal/type.d.ts +13 -0
  12. package/es/src/ap-modal/type.mjs +1 -0
  13. package/es/src/ap-modal/utils/createModal.d.ts +3 -0
  14. package/es/src/ap-modal/utils/createModal.mjs +74 -0
  15. package/es/src/ap-modal/utils/index.d.ts +1 -0
  16. package/es/src/ap-modal/utils/index.mjs +4 -0
  17. package/es/src/ap-table/ap-table.vue.mjs +133 -120
  18. package/es/src/ap-table/constants.d.ts +25 -23
  19. package/es/src/ap-table/interface.d.ts +4 -0
  20. package/es/src/ap-table/style/ap-table.css +1 -0
  21. package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +81 -0
  22. package/es/src/business/expandAlert/ApExpandAlert.vue.mjs +4 -0
  23. package/es/src/business/expandAlert/ApExpandAlert.vue2.mjs +113 -0
  24. package/es/src/business/expandAlert/interface.d.ts +26 -0
  25. package/es/src/business/expandAlert/style.css +42 -0
  26. package/es/src/business/index.d.ts +161 -1
  27. package/es/src/business/index.mjs +7 -4
  28. package/es/src/index.d.ts +1 -0
  29. package/es/src/index.mjs +194 -191
  30. package/es/src/theme/ap-expand-alert/ap-expand-alert.css +42 -0
  31. package/es/src/theme/ap-form/ap-form-item.css +11 -0
  32. package/es/src/theme/ap-table/ap-table.css +1 -0
  33. package/es/src/type.d.ts +3 -1
  34. package/lib/index.js +1 -1
  35. package/lib/src/ap-field/date/index.vue.d.ts +3 -1
  36. package/lib/src/ap-field/date-range/index.vue.d.ts +3 -3
  37. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  38. package/lib/src/ap-field/interface.d.ts +1 -1
  39. package/lib/src/ap-form/ap-form-item.vue.js +1 -1
  40. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  41. package/lib/src/ap-form/style/ap-form-item.css +11 -0
  42. package/lib/src/ap-modal/index.d.ts +9 -0
  43. package/lib/src/ap-modal/index.js +1 -0
  44. package/lib/src/ap-modal/type.d.ts +13 -0
  45. package/lib/src/ap-modal/type.js +1 -0
  46. package/lib/src/ap-modal/utils/createModal.d.ts +3 -0
  47. package/lib/src/ap-modal/utils/createModal.js +1 -0
  48. package/lib/src/ap-modal/utils/index.d.ts +1 -0
  49. package/lib/src/ap-modal/utils/index.js +1 -0
  50. package/lib/src/ap-table/ap-table.vue.js +1 -1
  51. package/lib/src/ap-table/constants.d.ts +25 -23
  52. package/lib/src/ap-table/interface.d.ts +4 -0
  53. package/lib/src/ap-table/style/ap-table.css +1 -0
  54. package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +81 -0
  55. package/lib/src/business/expandAlert/ApExpandAlert.vue.js +1 -0
  56. package/lib/src/business/expandAlert/ApExpandAlert.vue2.js +1 -0
  57. package/lib/src/business/expandAlert/interface.d.ts +26 -0
  58. package/lib/src/business/expandAlert/style.css +42 -0
  59. package/lib/src/business/index.d.ts +161 -1
  60. package/lib/src/business/index.js +1 -1
  61. package/lib/src/index.d.ts +1 -0
  62. package/lib/src/index.js +1 -1
  63. package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +42 -0
  64. package/lib/src/theme/ap-form/ap-form-item.css +11 -0
  65. package/lib/src/theme/ap-table/ap-table.css +1 -0
  66. package/lib/src/type.d.ts +3 -1
  67. package/package.json +3 -3
@@ -1,21 +1,21 @@
1
- import { defineComponent as Y, useSlots as Z, computed as d, createVNode as s, mergeProps as m, unref as l, watch as ee, openBlock as i, createElementBlock as f, normalizeClass as S, normalizeStyle as x, createSlots as I, withCtx as p, Fragment as ae, renderList as k, createBlock as te, resolveDynamicComponent as oe, renderSlot as R, createCommentVNode as E, createElementVNode as O, toDisplayString as re, normalizeProps as le, guardReactiveProps as ne } from "vue";
2
- import { Typography as de, Table as se, Tooltip as ue } from "ant-design-vue";
3
- import { useToken as ie } from "ant-design-vue/es/theme/internal";
4
- import { ApForm as pe } from "../ap-form/index.mjs";
5
- import { apTableRenderItemMap as ce, noRenderAsFormItemValueList as L, apTableFormItemMap as me } from "./constants.mjs";
1
+ import { defineComponent as Z, useSlots as ee, computed as d, createVNode as s, mergeProps as m, unref as r, watch as ae, openBlock as i, createElementBlock as f, normalizeClass as F, normalizeStyle as x, createSlots as E, withCtx as p, Fragment as te, renderList as O, createBlock as oe, resolveDynamicComponent as re, renderSlot as R, createCommentVNode as L, createElementVNode as z, toDisplayString as ne, normalizeProps as le, guardReactiveProps as de } from "vue";
2
+ import { Typography as se, Table as ue, Tooltip as ie } from "ant-design-vue";
3
+ import { useToken as pe } from "ant-design-vue/es/theme/internal";
4
+ import { ApForm as ce } from "../ap-form/index.mjs";
5
+ import { apTableRenderItemMap as me, noRenderAsFormItemValueList as N, apTableFormItemMap as fe } from "./constants.mjs";
6
6
  import "../config-provider/index.mjs";
7
- import { useTablePaging as fe } from "./hooks/use-table-paging.mjs";
8
- import { isUndefined as ge, omit as ye } from "lodash-unified";
7
+ import { useTablePaging as ge } from "./hooks/use-table-paging.mjs";
8
+ import { isUndefined as T, omit as ye } from "lodash-unified";
9
9
  import "./style/ap-table.css";
10
10
  import { QuestionCircleOutlined as he } from "@ant-design/icons-vue";
11
- import { apColumnToColumn as be, getTableRenderType as Ce, getTableRenderProps as Fe, getColumnOrder as z, updateFormProps as Se, getFieldProps as xe, getPlaceholder as Re } from "./utils.mjs";
12
- import we from "./hooks/use-table-content-height.mjs";
13
- import { useLocale as Te } from "../config-provider/hooks/use-locale.mjs";
11
+ import { apColumnToColumn as be, getTableRenderType as Ce, getTableRenderProps as Se, getColumnOrder as V, updateFormProps as Fe, getFieldProps as xe, getPlaceholder as Re } from "./utils.mjs";
12
+ import Te from "./hooks/use-table-content-height.mjs";
13
+ import { useLocale as we } from "../config-provider/hooks/use-locale.mjs";
14
14
  import { useNamespace as Be } from "../config-provider/hooks/use-namespace.mjs";
15
- import { useGlobalConfig as ve } from "../config-provider/hooks/use-global-config.mjs";
16
- const Pe = {
15
+ import { useGlobalConfig as Pe } from "../config-provider/hooks/use-global-config.mjs";
16
+ const ve = {
17
17
  key: 0
18
- }, He = /* @__PURE__ */ Y({
18
+ }, He = /* @__PURE__ */ Z({
19
19
  name: "ApTable",
20
20
  __name: "ap-table",
21
21
  props: {
@@ -104,6 +104,7 @@ const Pe = {
104
104
  request: {},
105
105
  onLoad: {},
106
106
  defaultData: {},
107
+ dataSource: {},
107
108
  onLoadingChange: {},
108
109
  searchForm: {
109
110
  type: [Boolean, Object],
@@ -128,140 +129,152 @@ const Pe = {
128
129
  default: !1
129
130
  }
130
131
  },
131
- setup(N, {
132
- expose: V
132
+ setup(D, {
133
+ expose: W
133
134
  }) {
134
- const r = N, w = Z(), [, D] = ie(), {
135
- t: W
136
- } = Te(), {
135
+ const t = D, w = ee(), [, j] = pe(), {
136
+ t: _
137
+ } = we(), {
137
138
  e: g,
138
139
  b: u
139
- } = Be("ap-table"), _ = ve("uiMode", "aplus"), {
140
- height: j,
141
- contentRef: A
142
- } = we(), y = d(() => {
143
- var t;
144
- let e = ((t = r.columns) == null ? void 0 : t.filter((a) => !a.hideInTable)) || [];
140
+ } = Be("ap-table"), A = Pe("uiMode", "aplus"), {
141
+ height: M,
142
+ contentRef: q
143
+ } = Te(), y = d(() => {
144
+ var o;
145
+ let e = ((o = t.columns) == null ? void 0 : o.filter((a) => !a.hideInTable)) || [];
145
146
  return e = e.map((a) => ({
146
147
  ...be(a),
147
148
  customRender({
148
- value: o,
149
- ...n
149
+ value: n,
150
+ ...l
150
151
  }) {
151
- const C = Ce(a), P = ce[C], X = Fe(a, {
152
- value: o,
153
- ...n
152
+ const C = Ce(a), k = me[C], Y = Se(a, {
153
+ value: n,
154
+ ...l
154
155
  });
155
- let F = Q(a, o, s(P, m(X, {
156
+ let S = U(a, n, s(k, m(Y, {
156
157
  mode: "read"
157
158
  }), null));
158
- return a.customRender && (F = a.customRender({
159
- value: o,
160
- ...n,
159
+ return a.customRender && (S = a.customRender({
160
+ value: n,
161
+ ...l,
161
162
  column: a,
162
- originalNode: F
163
- })), F;
163
+ originalNode: S
164
+ })), S;
164
165
  }
165
166
  })), e;
166
- }), T = d(() => {
167
- var e, t, a;
168
- return ((a = (t = (e = r.columns) == null ? void 0 : e.filter((o) => !o.hideInSearch && o.dataIndex && (o.valueType || o.customRenderFormItem) && !L.includes(o.valueType))) == null ? void 0 : t.sort((o, n) => {
169
- let C = z(o.order);
170
- return z(n.order) - C;
171
- })) == null ? void 0 : a.map((o) => {
172
- const n = Se(o, xe(o.fieldProps, {}));
167
+ }), B = d(() => {
168
+ var e, o, a;
169
+ return ((a = (o = (e = t.columns) == null ? void 0 : e.filter((n) => !n.hideInSearch && n.dataIndex && (n.valueType || n.customRenderFormItem) && !N.includes(n.valueType))) == null ? void 0 : o.sort((n, l) => {
170
+ let C = V(n.order);
171
+ return V(l.order) - C;
172
+ })) == null ? void 0 : a.map((n) => {
173
+ const l = Fe(n, xe(n.fieldProps, {}));
173
174
  return {
174
- ...o,
175
+ ...n,
175
176
  fieldProps: {
176
- label: o.title,
177
- name: o.dataIndex,
178
- ...n || {},
177
+ label: n.title,
178
+ name: n.dataIndex,
179
+ ...l || {},
179
180
  // 格式化placeholder
180
- placeholder: Re(W, o.valueType, n == null ? void 0 : n.placeholder)
181
+ placeholder: Re(_, n.valueType, l == null ? void 0 : l.placeholder)
181
182
  }
182
183
  };
183
184
  })) || [];
184
- }), M = d(() => l(y).filter((e) => e.sorter === !0).map((e) => e.dataIndex)), q = d(() => l(y).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex)), {
185
+ }), H = d(() => r(y).filter((e) => e.sorter === !0).map((e) => e.dataIndex)), K = d(() => r(y).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex)), {
185
186
  formRef: h,
186
- submit: B,
187
+ submit: P,
187
188
  reset: v,
188
189
  tableProps: c,
189
- handleTableChange: H,
190
+ handleTableChange: $,
190
191
  data: b
191
- } = fe({
192
+ } = ge({
192
193
  async request(e) {
193
- var a, o;
194
- const t = await ((a = r.request) == null ? void 0 : a.call(r, e));
195
- return (o = r.onLoad) == null || o.call(r, (t == null ? void 0 : t.data) || []), {
196
- data: (t == null ? void 0 : t.data) || [],
197
- total: (t == null ? void 0 : t.total) || 0
194
+ var a, n;
195
+ const o = await ((a = t.request) == null ? void 0 : a.call(t, e));
196
+ return (n = t.onLoad) == null || n.call(t, (o == null ? void 0 : o.data) || []), {
197
+ data: (o == null ? void 0 : o.data) || [],
198
+ total: (o == null ? void 0 : o.total) || 0
198
199
  };
199
200
  },
200
- filterFields: l(q),
201
- sortFields: l(M),
202
- defaultParams: r.params,
203
- defaultData: r.defaultData,
204
- manual: r.manual,
205
- defaultCurrent: r.pagination ? r.pagination.defaultCurrent : void 0,
206
- defaultPageSize: r.pagination ? r.pagination.defaultPageSize : void 0,
207
- formatParams: r.beforeSearchSubmit
208
- }), K = d(() => r.scroll ? r.scroll : r.adaptive && b.value.total > 0 ? {
209
- y: l(j),
210
- x: "100%"
211
- } : {
212
- x: !0
213
- }), $ = d(() => ({
214
- ...r,
215
- ...l(c),
216
- loading: ge(r.loading) ? l(c).loading : r.loading,
217
- pagination: r.pagination === !1 ? !1 : l(c).pagination,
218
- scroll: l(K)
219
- })), G = d(() => [u(), r.card ? null : u("wrapper"), r.adaptive ? u("adaptive") : null].filter(Boolean));
220
- function Q(e, t, a) {
221
- return L.includes(e.valueType) ? a : e.copyable || e.ellipsis ? s(de.Text, {
201
+ filterFields: r(K),
202
+ sortFields: r(H),
203
+ defaultParams: t.params,
204
+ defaultData: t.defaultData,
205
+ manual: t.manual,
206
+ defaultCurrent: t.pagination ? t.pagination.defaultCurrent : void 0,
207
+ defaultPageSize: t.pagination ? t.pagination.defaultPageSize : void 0,
208
+ formatParams: t.beforeSearchSubmit
209
+ }), I = d(() => {
210
+ var e;
211
+ return t.scroll ? t.scroll : t.adaptive && (b.value.total > 0 || (e = t.dataSource) != null && e.length) ? {
212
+ y: r(M),
213
+ x: "100%"
214
+ } : {
215
+ x: !0
216
+ };
217
+ }), G = d(() => {
218
+ const e = r(c);
219
+ console.log("xxx", r(I));
220
+ const o = T(t.dataSource) ? e : {
221
+ ...e,
222
+ dataSource: t.dataSource,
223
+ onChange: t.onChange
224
+ };
225
+ return {
226
+ ...t,
227
+ ...o,
228
+ loading: T(t.loading) ? r(c).loading : t.loading,
229
+ pagination: t.pagination === !1 ? !1 : r(c).pagination,
230
+ scroll: r(I)
231
+ };
232
+ }), Q = d(() => [u(), t.card ? null : u("wrapper"), t.adaptive ? u("adaptive") : null].filter(Boolean));
233
+ function U(e, o, a) {
234
+ return N.includes(e.valueType) ? a : e.copyable || e.ellipsis ? s(se.Text, {
222
235
  copyable: e.copyable ? {
223
- text: t,
236
+ text: o,
224
237
  tooltip: !1
225
238
  } : !1,
226
239
  ellipsis: e.ellipsis ? {
227
- tooltip: t
240
+ tooltip: o
228
241
  } : !1,
229
242
  content: a
230
243
  }, null) : a;
231
244
  }
232
- ee(() => l(b).loading, (e) => {
233
- var t;
234
- (t = r.onLoadingChange) == null || t.call(r, e);
245
+ ae(() => r(b).loading, (e) => {
246
+ var o;
247
+ (o = t.onLoadingChange) == null || o.call(t, e);
235
248
  });
236
- function U(e) {
237
- var t, a, o;
238
- (o = (a = (t = h.value) == null ? void 0 : t.apForm) == null ? void 0 : a.setFieldsValue) == null || o.call(a, e);
249
+ function J(e) {
250
+ var o, a, n;
251
+ (n = (a = (o = h.value) == null ? void 0 : o.apForm) == null ? void 0 : a.setFieldsValue) == null || n.call(a, e);
239
252
  }
240
- function J() {
241
- var e, t, a;
242
- return (a = (t = (e = h.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValue) == null ? void 0 : a.call(t, !0);
253
+ function X() {
254
+ var e, o, a;
255
+ return (a = (o = (e = h.value) == null ? void 0 : e.apForm) == null ? void 0 : o.getFieldsValue) == null ? void 0 : a.call(o, !0);
243
256
  }
244
- return V({
245
- submit: () => B(),
257
+ return W({
258
+ submit: () => P(),
246
259
  reset: () => v(),
247
- setSearchFormValues: U,
248
- getSearchFormValues: J,
249
- dataSource: d(() => l(b).records)
250
- }), (e, t) => (i(), f("div", {
251
- class: S(G.value)
252
- }, [e.searchForm !== !1 && T.value.length > 0 ? (i(), f("div", {
260
+ setSearchFormValues: J,
261
+ getSearchFormValues: X,
262
+ dataSource: d(() => r(b).records)
263
+ }), (e, o) => (i(), f("div", {
264
+ class: F(Q.value)
265
+ }, [r(T)(e.dataSource) && e.searchForm !== !1 && B.value.length > 0 ? (i(), f("div", {
253
266
  key: 0,
254
- class: S(e.card ? l(g)("search-wrapper") : null),
267
+ class: F(e.card ? r(g)("search-wrapper") : null),
255
268
  style: x(e.searchFormWrapperStyle)
256
- }, [s(l(pe).SearchForm, m(e.searchForm || {}, {
269
+ }, [s(r(ce).SearchForm, m(e.searchForm || {}, {
257
270
  ref_key: "formRef",
258
271
  ref: h,
259
272
  "custom-reset": "",
260
- onSubmit: l(B),
261
- onReset: l(v),
262
- "submit-loading": l(c).loading
263
- }), I({
264
- default: p(() => [(i(!0), f(ae, null, k(T.value, (a) => (i(), te(oe(a.customRenderFormItem ? a.customRenderFormItem(a) : l(me)[a.valueType || "text"]), m({
273
+ onSubmit: r(P),
274
+ onReset: r(v),
275
+ "submit-loading": r(c).loading
276
+ }), E({
277
+ default: p(() => [(i(!0), f(te, null, O(B.value, (a) => (i(), oe(re(a.customRenderFormItem ? a.customRenderFormItem(a) : r(fe)[a.valueType || "text"]), m({
265
278
  key: a.dataIndex,
266
279
  ref_for: !0
267
280
  }, a.fieldProps || {}, {
@@ -272,36 +285,36 @@ const Pe = {
272
285
  name: "extra",
273
286
  fn: p(() => [R(e.$slots, "searchFormExtra")]),
274
287
  key: "0"
275
- } : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) : E("", !0), O("div", {
288
+ } : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) : L("", !0), z("div", {
276
289
  ref_key: "contentRef",
277
- ref: A,
278
- class: S([l(g)("table-wrapper"), e.card ? l(g)("table-wrapper-card") : null]),
290
+ ref: q,
291
+ class: F([r(g)("table-wrapper"), e.card ? r(g)("table-wrapper-card") : null]),
279
292
  style: x(e.tableWrapperStyle)
280
- }, [R(e.$slots, "title"), s(l(se), m({
281
- class: l(_) === "admin" ? l(u)("table-admin") : l(u)("table")
282
- }, $.value, {
283
- onChange: l(H),
293
+ }, [R(e.$slots, "title"), s(r(ue), m({
294
+ class: r(A) === "admin" ? r(u)("table-admin") : r(u)("table")
295
+ }, G.value, {
296
+ onChange: r($),
284
297
  columns: y.value
285
- }), I({
298
+ }), E({
286
299
  headerCell: p(({
287
300
  column: a,
288
- title: o
289
- }) => [a.tooltip ? (i(), f("span", Pe, [O("span", null, re(o), 1), s(l(ue), {
301
+ title: n
302
+ }) => [a.tooltip ? (i(), f("span", ve, [z("span", null, ne(n), 1), s(r(ie), {
290
303
  title: a.tooltip,
291
304
  placement: "bottom"
292
305
  }, {
293
- default: p(() => [s(l(he), {
306
+ default: p(() => [s(r(he), {
294
307
  style: x({
295
308
  paddingLeft: "4px",
296
- color: l(D).colorPrimary
309
+ color: r(j).colorPrimary
297
310
  })
298
311
  }, null, 8, ["style"])]),
299
312
  _: 2
300
- }, 1032, ["title"])])) : E("", !0)]),
313
+ }, 1032, ["title"])])) : L("", !0)]),
301
314
  _: 2
302
- }, [k(l(ye)(w, ["title", "searchFormExtra"]), (a, o) => ({
303
- name: o,
304
- fn: p((n) => [R(e.$slots, o, le(ne(n || {})))])
315
+ }, [O(r(ye)(w, ["title", "searchFormExtra"]), (a, n) => ({
316
+ name: n,
317
+ fn: p((l) => [R(e.$slots, n, le(de(l || {})))])
305
318
  }))]), 1040, ["class", "onChange", "columns"])], 6)], 2));
306
319
  }
307
320
  });
@@ -9,7 +9,9 @@ import { MouseEventHandler, FocusEventHandler, KeyboardEventHandler, Composition
9
9
  import { Dayjs } from 'dayjs';
10
10
  import { PickerLocale } from 'ant-design-vue/es/date-picker/generatePicker';
11
11
  import { AlignType } from 'ant-design-vue/es/vc-align/interface';
12
- import { PresetDate, PanelMode, RangeValue, OnPanelChange, CustomFormat, EventValue, DisabledTimes } from 'ant-design-vue/es/vc-picker/interface';
12
+ import { LiteralUnion } from '../type';
13
+ import { ApFormatPresetType } from '../ap-field/date/interface';
14
+ import { PresetDate, PanelMode, RangeValue, OnPanelChange, EventValue, DisabledTimes } from 'ant-design-vue/es/vc-picker/interface';
13
15
  import { VueNode, LiteralUnion } from 'ant-design-vue/es/_util/type';
14
16
  import { MonthCellRender } from 'ant-design-vue/es/vc-picker/panels/MonthPanel/MonthBody';
15
17
  import { SharedTimeProps } from 'ant-design-vue/es/vc-picker/panels/TimePanel';
@@ -7861,7 +7863,7 @@ export declare const apTableRenderItemMap: {
7861
7863
  type: PropType<string>;
7862
7864
  };
7863
7865
  format: {
7864
- type: PropType<string>;
7866
+ type: PropType<LiteralUnion<ApFormatPresetType, string>>;
7865
7867
  default: string;
7866
7868
  };
7867
7869
  popupStyle: {
@@ -7914,7 +7916,7 @@ export declare const apTableRenderItemMap: {
7914
7916
  default: string;
7915
7917
  };
7916
7918
  timezone: {
7917
- type: PropType<"LA" | "NY" | "SH">;
7919
+ type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
7918
7920
  };
7919
7921
  }>> & {
7920
7922
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -8066,7 +8068,7 @@ export declare const apTableRenderItemMap: {
8066
8068
  type: PropType<string>;
8067
8069
  };
8068
8070
  format: {
8069
- type: PropType<string>;
8071
+ type: PropType<LiteralUnion<ApFormatPresetType, string>>;
8070
8072
  default: string;
8071
8073
  };
8072
8074
  popupStyle: {
@@ -8119,7 +8121,7 @@ export declare const apTableRenderItemMap: {
8119
8121
  default: string;
8120
8122
  };
8121
8123
  timezone: {
8122
- type: PropType<"LA" | "NY" | "SH">;
8124
+ type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
8123
8125
  };
8124
8126
  }>> & {
8125
8127
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -8145,7 +8147,7 @@ export declare const apTableRenderItemMap: {
8145
8147
  }> | null;
8146
8148
  allowClear: boolean;
8147
8149
  defaultOpen: boolean;
8148
- format: string;
8150
+ format: LiteralUnion<ApFormatPresetType, string>;
8149
8151
  inputReadOnly: boolean;
8150
8152
  showToday: boolean;
8151
8153
  showTime: boolean | SharedTimeProps<Dayjs>;
@@ -8303,7 +8305,7 @@ export declare const apTableRenderItemMap: {
8303
8305
  type: PropType<string>;
8304
8306
  };
8305
8307
  format: {
8306
- type: PropType<string>;
8308
+ type: PropType<LiteralUnion<ApFormatPresetType, string>>;
8307
8309
  default: string;
8308
8310
  };
8309
8311
  popupStyle: {
@@ -8356,7 +8358,7 @@ export declare const apTableRenderItemMap: {
8356
8358
  default: string;
8357
8359
  };
8358
8360
  timezone: {
8359
- type: PropType<"LA" | "NY" | "SH">;
8361
+ type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
8360
8362
  };
8361
8363
  }>> & {
8362
8364
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -8382,7 +8384,7 @@ export declare const apTableRenderItemMap: {
8382
8384
  }> | null;
8383
8385
  allowClear: boolean;
8384
8386
  defaultOpen: boolean;
8385
- format: string;
8387
+ format: LiteralUnion<ApFormatPresetType, string>;
8386
8388
  inputReadOnly: boolean;
8387
8389
  showToday: boolean;
8388
8390
  showTime: boolean | SharedTimeProps<Dayjs>;
@@ -8537,7 +8539,7 @@ export declare const apTableRenderItemMap: {
8537
8539
  type: PropType<string>;
8538
8540
  };
8539
8541
  format: {
8540
- type: PropType<string>;
8542
+ type: PropType<LiteralUnion<ApFormatPresetType, string>>;
8541
8543
  default: string;
8542
8544
  };
8543
8545
  popupStyle: {
@@ -8590,7 +8592,7 @@ export declare const apTableRenderItemMap: {
8590
8592
  default: string;
8591
8593
  };
8592
8594
  timezone: {
8593
- type: PropType<"LA" | "NY" | "SH">;
8595
+ type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
8594
8596
  };
8595
8597
  }>> & {
8596
8598
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -8618,7 +8620,7 @@ export declare const apTableRenderItemMap: {
8618
8620
  }> | null;
8619
8621
  allowClear: boolean;
8620
8622
  defaultOpen: boolean;
8621
- format: string;
8623
+ format: LiteralUnion<ApFormatPresetType, string>;
8622
8624
  inputReadOnly: boolean;
8623
8625
  showToday: boolean;
8624
8626
  showTime: boolean | SharedTimeProps<Dayjs>;
@@ -8804,7 +8806,7 @@ export declare const apTableRenderItemMap: {
8804
8806
  type: PropType<string>;
8805
8807
  };
8806
8808
  format: {
8807
- type: PropType<(string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[]) & string>;
8809
+ type: PropType<LiteralUnion<ApFormatPresetType, string>>;
8808
8810
  default: string;
8809
8811
  };
8810
8812
  popupStyle: {
@@ -8858,7 +8860,7 @@ export declare const apTableRenderItemMap: {
8858
8860
  default: string;
8859
8861
  };
8860
8862
  timezone: {
8861
- type: PropType<"LA" | "NY" | "SH">;
8863
+ type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
8862
8864
  };
8863
8865
  }>> & {
8864
8866
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -9017,7 +9019,7 @@ export declare const apTableRenderItemMap: {
9017
9019
  type: PropType<string>;
9018
9020
  };
9019
9021
  format: {
9020
- type: PropType<(string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[]) & string>;
9022
+ type: PropType<LiteralUnion<ApFormatPresetType, string>>;
9021
9023
  default: string;
9022
9024
  };
9023
9025
  popupStyle: {
@@ -9071,7 +9073,7 @@ export declare const apTableRenderItemMap: {
9071
9073
  default: string;
9072
9074
  };
9073
9075
  timezone: {
9074
- type: PropType<"LA" | "NY" | "SH">;
9076
+ type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
9075
9077
  };
9076
9078
  }>> & {
9077
9079
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -9104,7 +9106,7 @@ export declare const apTableRenderItemMap: {
9104
9106
  }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
9105
9107
  [key: string]: any;
9106
9108
  }> | null;
9107
- format: (string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[]) & string;
9109
+ format: LiteralUnion<ApFormatPresetType, string>;
9108
9110
  inputReadOnly: boolean;
9109
9111
  emptyText: string;
9110
9112
  }, true, {}, {}, {
@@ -9267,7 +9269,7 @@ export declare const apTableRenderItemMap: {
9267
9269
  type: PropType<string>;
9268
9270
  };
9269
9271
  format: {
9270
- type: PropType<(string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[]) & string>;
9272
+ type: PropType<LiteralUnion<ApFormatPresetType, string>>;
9271
9273
  default: string;
9272
9274
  };
9273
9275
  popupStyle: {
@@ -9321,7 +9323,7 @@ export declare const apTableRenderItemMap: {
9321
9323
  default: string;
9322
9324
  };
9323
9325
  timezone: {
9324
- type: PropType<"LA" | "NY" | "SH">;
9326
+ type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
9325
9327
  };
9326
9328
  }>> & {
9327
9329
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -9354,7 +9356,7 @@ export declare const apTableRenderItemMap: {
9354
9356
  }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
9355
9357
  [key: string]: any;
9356
9358
  }> | null;
9357
- format: (string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[]) & string;
9359
+ format: LiteralUnion<ApFormatPresetType, string>;
9358
9360
  inputReadOnly: boolean;
9359
9361
  emptyText: string;
9360
9362
  }>;
@@ -9514,7 +9516,7 @@ export declare const apTableRenderItemMap: {
9514
9516
  type: PropType<string>;
9515
9517
  };
9516
9518
  format: {
9517
- type: PropType<(string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[]) & string>;
9519
+ type: PropType<LiteralUnion<ApFormatPresetType, string>>;
9518
9520
  default: string;
9519
9521
  };
9520
9522
  popupStyle: {
@@ -9568,7 +9570,7 @@ export declare const apTableRenderItemMap: {
9568
9570
  default: string;
9569
9571
  };
9570
9572
  timezone: {
9571
- type: PropType<"LA" | "NY" | "SH">;
9573
+ type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
9572
9574
  };
9573
9575
  }>> & {
9574
9576
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
@@ -9603,7 +9605,7 @@ export declare const apTableRenderItemMap: {
9603
9605
  }> | null | undefined)[] | VNode<RendererNode, RendererElement, {
9604
9606
  [key: string]: any;
9605
9607
  }> | null;
9606
- format: (string | CustomFormat<Dayjs> | (string | CustomFormat<Dayjs>)[]) & string;
9608
+ format: LiteralUnion<ApFormatPresetType, string>;
9607
9609
  inputReadOnly: boolean;
9608
9610
  emptyText: string;
9609
9611
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -175,6 +175,10 @@ export type ApTableProps<RecordType = any, ParamsType = any> = Omit<TableProps<R
175
175
  * 表格的默认数据源,这些数据源将会在第一次请求后被替换
176
176
  */
177
177
  defaultData?: RecordType[];
178
+ /**
179
+ * 表格的最终数据源(设置后request和defaultData都不会生效),离线表格的效果
180
+ */
181
+ dataSource?: RecordType[];
178
182
  /**
179
183
  * 表格loading状态变更后触发
180
184
  * @param loading
@@ -34,6 +34,7 @@
34
34
  }
35
35
  .aplus-ap-table__table-wrapper {
36
36
  flex: 1;
37
+ max-height: 100%;
37
38
  }
38
39
  .aplus-ap-table__table-wrapper-card {
39
40
  padding: 16px;
@@ -0,0 +1,81 @@
1
+ import { ApExpandAlertProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+
4
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApExpandAlertProps>, {
5
+ /**
6
+ * Alert类型
7
+ */
8
+ type: string;
9
+ /**
10
+ * 数据
11
+ */
12
+ data: () => never[];
13
+ /**
14
+ * 前缀
15
+ */
16
+ prefix: string;
17
+ /**
18
+ * Tooltip 提示标题
19
+ */
20
+ tipTitle: string;
21
+ /**
22
+ * 分隔符
23
+ */
24
+ separator: string;
25
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
26
+ choose: (...args: any[]) => void;
27
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApExpandAlertProps>, {
28
+ /**
29
+ * Alert类型
30
+ */
31
+ type: string;
32
+ /**
33
+ * 数据
34
+ */
35
+ data: () => never[];
36
+ /**
37
+ * 前缀
38
+ */
39
+ prefix: string;
40
+ /**
41
+ * Tooltip 提示标题
42
+ */
43
+ tipTitle: string;
44
+ /**
45
+ * 分隔符
46
+ */
47
+ separator: string;
48
+ }>>> & {
49
+ onChoose?: ((...args: any[]) => any) | undefined;
50
+ }, {
51
+ type: "success" | "error" | "info" | "warning" | undefined;
52
+ data: string | any[];
53
+ prefix: string;
54
+ separator: string;
55
+ tipTitle: string;
56
+ }, {}>, {
57
+ default?(_: {}): any;
58
+ }>;
59
+ export default _default;
60
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
61
+ type __VLS_TypePropsToRuntimeProps<T> = {
62
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
63
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
64
+ } : {
65
+ type: PropType<T[K]>;
66
+ required: true;
67
+ };
68
+ };
69
+ type __VLS_WithDefaults<P, D> = {
70
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
71
+ default: D[K];
72
+ }> : P[K];
73
+ };
74
+ type __VLS_Prettify<T> = {
75
+ [K in keyof T]: T[K];
76
+ } & {};
77
+ type __VLS_WithTemplateSlots<T, S> = T & {
78
+ new (): {
79
+ $slots: S;
80
+ };
81
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApExpandAlert.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };