@aplus-frontend/ui 0.5.0 → 0.5.2

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.
@@ -0,0 +1 @@
1
+ export declare const useLoadVxe: () => void;
@@ -0,0 +1,32 @@
1
+ import t from "vxe-pc-ui";
2
+ import "vxe-table/lib/style.css";
3
+ import "vxe-pc-ui/lib/style.css";
4
+ import m from "vxe-table/lib/locale/lang/zh-CN";
5
+ import _ from "vxe-table/lib/locale/lang/en-US";
6
+ import { getCurrentInstance as s, watch as i, unref as c } from "vue";
7
+ import "../../config-provider/index.mjs";
8
+ import { useLocale as g } from "../../config-provider/hooks/use-locale.mjs";
9
+ t.setI18n("zh-CN", m);
10
+ t.setI18n("en-US", _);
11
+ const u = {
12
+ "zh-cn": "zh-CN",
13
+ en: "en-US"
14
+ }, x = () => {
15
+ var n;
16
+ const e = (n = s()) == null ? void 0 : n.appContext.app;
17
+ e && !e.__VXE_PC_UI_INSTALLED__ && (e.use(t), e.__VXE_PC_UI_INSTALLED__ = !0);
18
+ const { lang: r } = g();
19
+ i(
20
+ () => c(r),
21
+ (a) => {
22
+ const p = t.getLanguage(), o = u[a];
23
+ p !== o && t.setLanguage(o);
24
+ },
25
+ {
26
+ immediate: !0
27
+ }
28
+ );
29
+ };
30
+ export {
31
+ x as useLoadVxe
32
+ };
@@ -1,27 +1,25 @@
1
- import { defineComponent as Se, getCurrentInstance as we, useSlots as xe, ref as R, computed as n, unref as o, watchEffect as Re, watch as M, createElementBlock as k, openBlock as s, normalizeClass as f, createCommentVNode as y, createElementVNode as F, normalizeStyle as q, createVNode as U, mergeProps as g, createSlots as G, withCtx as h, Fragment as X, renderList as N, createBlock as u, resolveDynamicComponent as _, renderSlot as z, normalizeProps as ke, guardReactiveProps as Fe } from "vue";
2
- import { VxeTable as Be, VxeColumn as J } from "vxe-table";
3
- import Ie from "vxe-pc-ui";
4
- import "vxe-table/lib/style.css";
5
- import "vxe-pc-ui/lib/style.css";
6
- import { isUndefined as B, omit as Ee } from "lodash-unified";
7
- import { ApForm as Pe } from "../ap-form/index.mjs";
1
+ import { defineComponent as Ce, useSlots as be, ref as x, computed as n, unref as o, watch as E, createElementBlock as R, openBlock as s, normalizeClass as f, createCommentVNode as y, createElementVNode as k, normalizeStyle as M, createVNode as _, mergeProps as g, createSlots as q, withCtx as h, Fragment as G, renderList as N, createBlock as u, resolveDynamicComponent as z, renderSlot as A, normalizeProps as we, guardReactiveProps as Se } from "vue";
2
+ import { VxeTable as xe, VxeColumn as U } from "vxe-table";
3
+ import { isUndefined as F, omit as Re } from "lodash-unified";
4
+ import { ApForm as ke } from "../ap-form/index.mjs";
8
5
  import "../config-provider/index.mjs";
9
- import { noRenderAsFormItemValueList as Ne } from "../ap-table/constants.mjs";
10
- import { getColumnOrder as Q, updateFormProps as _e, getFieldProps as ze, getSearchFormItemRenderNode as Ae, recursionApColumns as Y } from "../ap-table/utils.mjs";
11
- import { useTablePaging as Te } from "../ap-table/hooks/use-table-paging-ng.mjs";
12
- import { Empty as Z, Pagination as Ve } from "@aplus-frontend/antdv";
13
- import { useInnerParams as Le } from "./hooks/use-inner-params.mjs";
14
- import { toVxeProps as Oe, getRowExpandProps as De, getRowSelectionProps as Ke } from "./utils/table.mjs";
15
- import $e from "../ap-table/hooks/use-table-row-selection.mjs";
16
- import { useProvideApTable as je } from "../ap-table/context.mjs";
17
- import { sizeReverseMap as He, sizeMap as We } from "./constants.mjs";
18
- import { useRenderColumns as Me } from "./hooks/use-render-columns.mjs";
19
- import { useToken as qe } from "@aplus-frontend/antdv/es/theme/internal";
6
+ import { noRenderAsFormItemValueList as Fe } from "../ap-table/constants.mjs";
7
+ import { getColumnOrder as J, updateFormProps as Be, getFieldProps as Pe, getSearchFormItemRenderNode as Ie, recursionApColumns as Q } from "../ap-table/utils.mjs";
8
+ import { useTablePaging as Ee } from "../ap-table/hooks/use-table-paging-ng.mjs";
9
+ import { Empty as X, Pagination as Ne } from "@aplus-frontend/antdv";
10
+ import { useInnerParams as ze } from "./hooks/use-inner-params.mjs";
11
+ import { toVxeProps as Ae, getRowExpandProps as Te, getRowSelectionProps as Ve } from "./utils/table.mjs";
12
+ import Oe from "../ap-table/hooks/use-table-row-selection.mjs";
13
+ import { useProvideApTable as Ke } from "../ap-table/context.mjs";
14
+ import { sizeReverseMap as De, sizeMap as Le } from "./constants.mjs";
15
+ import { useRenderColumns as $e } from "./hooks/use-render-columns.mjs";
16
+ import { useToken as je } from "@aplus-frontend/antdv/es/theme/internal";
20
17
  import "../scroll-bar/index.mjs";
21
- import { useNamespace as Ue } from "../config-provider/hooks/use-namespace.mjs";
22
- import { useGlobalConfig as Ge } from "../config-provider/hooks/use-global-config.mjs";
23
- import Xe from "../scroll-bar/index.vue.mjs";
24
- const So = /* @__PURE__ */ Se({
18
+ import { useLoadVxe as He } from "./hooks/use-load-vxe.mjs";
19
+ import { useNamespace as We } from "../config-provider/hooks/use-namespace.mjs";
20
+ import { useGlobalConfig as Me } from "../config-provider/hooks/use-global-config.mjs";
21
+ import _e from "../scroll-bar/index.vue.mjs";
22
+ const go = /* @__PURE__ */ Ce({
25
23
  name: "ApGrid",
26
24
  __name: "index",
27
25
  props: {
@@ -103,67 +101,66 @@ const So = /* @__PURE__ */ Se({
103
101
  virtual: { type: [Boolean, Object], default: void 0 },
104
102
  expandable: {}
105
103
  },
106
- setup(ee, { expose: oe }) {
107
- var W;
108
- const C = (W = we()) == null ? void 0 : W.appContext.app;
109
- C && !C.__VXE_PC_UI_INSTALLED__ && (C.use(Ie), C.__VXE_PC_UI_INSTALLED__ = !0);
110
- const A = xe(), a = ee, { e: I, b: i, be: ae } = Ue("ap-grid"), re = Ge("valueTypeMap"), d = R([]), T = R([]), p = R(), b = R(a.size), [, m] = qe(), { renderConfig: te, updateSignal: le } = Me(d);
111
- let V = 0;
112
- const ne = n(() => {
104
+ setup(Y, { expose: Z }) {
105
+ const T = be(), a = Y, { e: B, b: i, be: ee } = We("ap-grid"), oe = Me("valueTypeMap");
106
+ He();
107
+ const d = x([]), V = x([]), p = x(), C = x(a.size), [, m] = je(), { renderConfig: ae, updateSignal: re } = $e(d);
108
+ let O = 0;
109
+ const te = n(() => {
113
110
  if (p.value)
114
111
  return p.value.$el.querySelector(
115
112
  ".vxe-table--header-inner-wrapper"
116
113
  );
117
- }), L = n(() => {
114
+ }), K = n(() => {
118
115
  var e, l, t;
119
- return V++, ((t = (l = (e = a.columns) == null ? void 0 : e.filter(
120
- (r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !Ne.includes(r.valueType)
116
+ return O++, ((t = (l = (e = a.columns) == null ? void 0 : e.filter(
117
+ (r) => !r.hideInSearch && r.dataIndex && (r.valueType || r.customRenderFormItem) && !Fe.includes(r.valueType)
121
118
  )) == null ? void 0 : l.sort((r, c) => {
122
- let v = Q(r.order);
123
- return Q(c.order) - v;
119
+ let v = J(r.order);
120
+ return J(c.order) - v;
124
121
  })) == null ? void 0 : t.map((r) => {
125
- const c = _e(
122
+ const c = Be(
126
123
  r,
127
- ze(r.fieldProps, {})
124
+ Pe(r.fieldProps, {})
128
125
  ), v = {
129
126
  ...r,
130
127
  fieldProps: {
131
128
  label: r.title,
132
129
  name: r.dataIndex,
133
130
  ...c || {},
134
- _signal: V
131
+ _signal: O
135
132
  },
136
133
  renderNode: void 0
137
134
  };
138
- return v.renderNode = Ae(
135
+ return v.renderNode = Ie(
139
136
  v,
140
- o(re)
137
+ o(oe)
141
138
  ), v;
142
139
  })) || [];
143
- }), se = n(() => [
140
+ }), le = n(() => [
144
141
  i(),
145
142
  a.card ? null : i("wrapper"),
146
143
  a.adaptive ? i("adaptive") : null,
147
144
  a.sticky ? i("sticky") : null
148
- ].filter(Boolean)), O = n(() => Y(o(d), (e) => {
145
+ ].filter(Boolean)), D = n(() => Q(o(d), (e) => {
149
146
  if (e.sorter === !0)
150
147
  return e.key || e.dataIndex;
151
- }).filter(Boolean)), D = n(() => Y(o(d), (e) => {
148
+ }).filter(Boolean)), L = n(() => Q(o(d), (e) => {
152
149
  if (e.filters && !e.onFilter)
153
150
  return e.key || e.dataIndex;
154
151
  }).filter(Boolean)), {
155
- formRef: E,
156
- submit: K,
157
- reset: $,
158
- refresh: de,
159
- data: S,
160
- tableProps: ie,
161
- setDataSource: ce,
162
- handleTableChange: ue
163
- } = Te({
152
+ formRef: P,
153
+ submit: $,
154
+ reset: j,
155
+ refresh: ne,
156
+ data: b,
157
+ tableProps: se,
158
+ setDataSource: de,
159
+ handleTableChange: ie
160
+ } = Ee({
164
161
  async request(e) {
165
162
  var t;
166
- if (!x.value.preserveSelectedRowKeys && B(a.dataSource) && P(), !B(a.dataSource)) {
163
+ if (!S.value.preserveSelectedRowKeys && F(a.dataSource) && I(), !F(a.dataSource)) {
167
164
  const r = e.pageSize * (e.current - 1);
168
165
  return {
169
166
  data: (a.pagination === !1 ? a.dataSource : a.dataSource.slice(r, r + e.pageSize)) || [],
@@ -177,111 +174,118 @@ const So = /* @__PURE__ */ Se({
177
174
  };
178
175
  },
179
176
  namespace: "ap-grid",
180
- filterFields: D,
181
- sortFields: O,
177
+ filterFields: L,
178
+ sortFields: D,
182
179
  defaultParams: a.params,
183
180
  defaultData: a.defaultData,
184
181
  manual: a.manual,
185
182
  formatParams: a.beforeSearchSubmit,
186
183
  pagination: a.pagination
187
- }), { sortChangeEvent: pe, filterChangeEvent: me, paginationChangeEvent: fe } = Le(ue);
188
- je({
184
+ }), { sortChangeEvent: ce, filterChangeEvent: ue, paginationChangeEvent: pe } = ze(ie);
185
+ Ke({
189
186
  columns: n(() => d.value),
190
- columnsBackup: n(() => T.value),
191
- size: n(() => b.value ? We[b.value] : "middle"),
187
+ columnsBackup: n(() => V.value),
188
+ size: n(() => C.value ? Le[C.value] : "middle"),
192
189
  updateColumns(e) {
193
190
  d.value = e;
194
191
  },
195
192
  updateSize(e) {
196
- b.value = He[e];
193
+ C.value = De[e];
197
194
  },
198
195
  renderConfig: n(() => ({
199
- className: ae("table-header", "title"),
196
+ className: ee("table-header", "title"),
200
197
  color: m.value.colorPrimary
201
198
  }))
202
199
  });
203
- const j = n(
200
+ const H = n(
204
201
  () => d.value.some(
205
202
  (e) => e.fixed === "left" || e.fixed === !0
206
203
  ) ? "left" : void 0
207
- ), ge = n(
208
- () => B(a.dataSource) ? S.records : a.dataSource
209
- ), { selectedRows: w, rowSelection: x, ...he } = $e({
204
+ ), me = n(
205
+ () => F(a.dataSource) ? b.records : a.dataSource
206
+ ), { selectedRows: w, rowSelection: S, ...fe } = Oe({
210
207
  ...a.rowSelection === !0 ? {} : a.rowSelection,
211
- dataSource: ge,
208
+ dataSource: me,
212
209
  rowKey: a.rowKey
213
- }), H = () => {
210
+ }), W = () => {
214
211
  const e = p.value;
215
212
  e && (w.value = [
216
213
  ...e.getCheckboxReserveRecords(),
217
214
  ...e.getCheckboxRecords()
218
215
  ]);
219
- }, ve = () => {
216
+ }, ge = () => {
220
217
  const e = p.value;
221
218
  e && (w.value = [e.getRadioRecord()]);
222
219
  };
223
- function ye() {
220
+ function he() {
224
221
  var e;
225
222
  return ((e = a.columns) == null ? void 0 : e.filter((l) => !l.hideInTable)) || [];
226
223
  }
227
- function Ce(e) {
224
+ function ve(e) {
228
225
  var l, t, r;
229
- (r = (t = (l = E.value) == null ? void 0 : l.apForm) == null ? void 0 : t.setFieldsValue) == null || r.call(t, e);
226
+ (r = (t = (l = P.value) == null ? void 0 : l.apForm) == null ? void 0 : t.setFieldsValue) == null || r.call(t, e);
230
227
  }
231
- function be(e = !1) {
228
+ function ye(e = !1) {
232
229
  var t, r, c;
233
230
  const l = e ? "getFieldsValueTransformed" : "getFieldsValue";
234
- return (c = (r = (t = E.value) == null ? void 0 : t.apForm) == null ? void 0 : r[l]) == null ? void 0 : c.call(r, !0);
231
+ return (c = (r = (t = P.value) == null ? void 0 : t.apForm) == null ? void 0 : r[l]) == null ? void 0 : c.call(r, !0);
235
232
  }
236
- function P() {
237
- he.clearAll();
233
+ function I() {
234
+ fe.clearAll();
238
235
  const e = p.value;
239
- e && (x.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
236
+ e && (S.value.type === "radio" ? (e.clearRadioRow(), e.clearRadioReserve()) : (e.clearCheckboxRow(), e.clearCheckboxReserve()));
240
237
  }
241
- return Re(() => {
242
- const e = ye();
243
- d.value = e, T.value = e;
244
- }), M(
238
+ return E(
239
+ () => [a.columnResizable, a.columns],
240
+ () => {
241
+ const e = he();
242
+ d.value = e, V.value = e;
243
+ },
244
+ {
245
+ deep: !0,
246
+ immediate: !0
247
+ }
248
+ ), E(
245
249
  () => a.dataSource,
246
250
  (e) => {
247
- ce(e);
251
+ de(e);
248
252
  },
249
253
  { immediate: !0 }
250
- ), M(
251
- () => o(S).loading,
254
+ ), E(
255
+ () => o(b).loading,
252
256
  (e) => {
253
257
  var l;
254
258
  (l = a.onLoadingChange) == null || l.call(a, e);
255
259
  }
256
- ), oe({
257
- submit: K,
258
- reset: $,
259
- refresh: de,
260
- setSearchFormValues: Ce,
261
- getSearchFormValues: be,
260
+ ), Z({
261
+ submit: $,
262
+ reset: j,
263
+ refresh: ne,
264
+ setSearchFormValues: ve,
265
+ getSearchFormValues: ye,
262
266
  getShowColumns: () => o(d),
263
267
  rowSelection: {
264
268
  selectedRows: n(() => w.value),
265
- clearAll: P
269
+ clearAll: I
266
270
  }
267
- }), (e, l) => (s(), k("div", {
268
- class: f(se.value)
271
+ }), (e, l) => (s(), R("div", {
272
+ class: f(le.value)
269
273
  }, [
270
- o(B)(e.dataSource) && e.searchForm !== !1 && L.value.length > 0 ? (s(), k("div", {
274
+ o(F)(e.dataSource) && e.searchForm !== !1 && K.value.length > 0 ? (s(), R("div", {
271
275
  key: 0,
272
- class: f(e.card ? o(I)("search-wrapper") : null),
273
- style: q(e.searchFormWrapperStyle)
276
+ class: f(e.card ? o(B)("search-wrapper") : null),
277
+ style: M(e.searchFormWrapperStyle)
274
278
  }, [
275
- U(o(Pe).SearchForm, g(e.searchForm || {}, {
279
+ _(o(ke).SearchForm, g(e.searchForm || {}, {
276
280
  ref_key: "formRef",
277
- ref: E,
281
+ ref: P,
278
282
  "custom-reset": "",
279
283
  "submit-loading": !1,
280
- onSubmit: o(K),
281
- onReset: o($)
282
- }), G({
284
+ onSubmit: o($),
285
+ onReset: o(j)
286
+ }), q({
283
287
  default: h(() => [
284
- (s(!0), k(X, null, N(L.value, (t) => (s(), u(_(t.renderNode.Comp), g({
288
+ (s(!0), R(G, null, N(K.value, (t) => (s(), u(z(t.renderNode.Comp), g({
285
289
  key: t.dataIndex,
286
290
  item: t,
287
291
  ref_for: !0
@@ -292,40 +296,40 @@ const So = /* @__PURE__ */ Se({
292
296
  ]),
293
297
  _: 2
294
298
  }, [
295
- A.searchFormExtra ? {
299
+ T.searchFormExtra ? {
296
300
  name: "extra",
297
301
  fn: h(() => [
298
- z(e.$slots, "searchFormExtra")
302
+ A(e.$slots, "searchFormExtra")
299
303
  ]),
300
304
  key: "0"
301
305
  } : void 0
302
306
  ]), 1040, ["onSubmit", "onReset"])
303
307
  ], 6)) : y("", !0),
304
- F("div", {
305
- class: f([o(I)("table-wrapper"), e.card ? o(I)("table-wrapper-card") : null]),
306
- style: q(e.tableWrapperStyle)
308
+ k("div", {
309
+ class: f([o(B)("table-wrapper"), e.card ? o(B)("table-wrapper-card") : null]),
310
+ style: M(e.tableWrapperStyle)
307
311
  }, [
308
- F("div", {
312
+ k("div", {
309
313
  class: f(o(i)("header-wrapper"))
310
314
  }, [
311
- z(e.$slots, "title", {
315
+ A(e.$slots, "title", {
312
316
  selectedRows: o(w),
313
- selectedRowKeys: o(x).selectedRowKeys,
317
+ selectedRowKeys: o(S).selectedRowKeys,
314
318
  shownColumns: d.value,
315
- clearAll: P
319
+ clearAll: I
316
320
  })
317
321
  ], 2),
318
- F("div", {
322
+ k("div", {
319
323
  class: f(o(i)("vxe-wrapper"))
320
324
  }, [
321
- (s(), u(o(Be), g(o(Oe)(a), {
325
+ (s(), u(o(xe), g(o(Ae)(a), {
322
326
  ref_key: "tableRef",
323
327
  ref: p,
324
- key: o(le),
325
- data: o(S).records,
326
- "sort-config": { remote: O.value.length > 0 },
327
- "filter-config": { remote: D.value.length > 0 },
328
- loading: o(S).loading,
328
+ key: o(re),
329
+ data: o(b).records,
330
+ "sort-config": { remote: D.value.length > 0 },
331
+ "filter-config": { remote: L.value.length > 0 },
332
+ loading: o(b).loading,
329
333
  "row-config": {
330
334
  isHover: !0,
331
335
  keyField: a.rowKey
@@ -340,57 +344,57 @@ const So = /* @__PURE__ */ Se({
340
344
  "--vxe-ui-table-row-radio-checked-background-color": o(m).controlItemBgActive,
341
345
  "--vxe-ui-table-row-hover-radio-checked-background-color": o(m).controlItemBgActiveHover
342
346
  },
343
- size: b.value,
344
- onSortChange: o(pe),
345
- onFilterChange: o(me),
346
- onCheckboxChange: H,
347
- onCheckboxAll: H,
348
- onRadioChange: ve
349
- }), G({
347
+ size: C.value,
348
+ onSortChange: o(ce),
349
+ onFilterChange: o(ue),
350
+ onCheckboxChange: W,
351
+ onCheckboxAll: W,
352
+ onRadioChange: ge
353
+ }), q({
350
354
  empty: h(() => [
351
- U(o(Z), {
352
- image: o(Z).PRESENTED_IMAGE_SIMPLE
355
+ _(o(X), {
356
+ image: o(X).PRESENTED_IMAGE_SIMPLE
353
357
  }, null, 8, ["image"])
354
358
  ]),
355
359
  default: h(() => [
356
- a.expandable ? (s(), u(o(J), g({ key: 0 }, o(De)(e.expandable), { fixed: j.value }), {
360
+ a.expandable ? (s(), u(o(U), g({ key: 0 }, o(Te)(e.expandable), { fixed: H.value }), {
357
361
  content: h((t) => [
358
- (s(), u(_(a.expandable.renderContent(t))))
362
+ (s(), u(z(a.expandable.renderContent(t))))
359
363
  ]),
360
364
  _: 1
361
365
  }, 16, ["fixed"])) : y("", !0),
362
- a.rowSelection ? (s(), u(o(J), g({ key: 1 }, o(Ke)(o(x)), { fixed: j.value }), null, 16, ["fixed"])) : y("", !0),
363
- (s(!0), k(X, null, N(o(te), (t) => (s(), u(_(t), {
366
+ a.rowSelection ? (s(), u(o(U), g({ key: 1 }, o(Ve)(o(S)), { fixed: H.value }), null, 16, ["fixed"])) : y("", !0),
367
+ (s(!0), R(G, null, N(o(ae), (t) => (s(), u(z(t), {
364
368
  key: t.props.colId
365
369
  }))), 128))
366
370
  ]),
367
371
  _: 2
368
372
  }, [
369
- N(o(Ee)(A, ["searchFormExtra"]), (t, r) => ({
373
+ N(o(Re)(T, ["searchFormExtra"]), (t, r) => ({
370
374
  name: r,
371
375
  fn: h((c) => [
372
- z(e.$slots, r, ke(Fe(c || {})))
376
+ A(e.$slots, r, we(Se(c || {})))
373
377
  ])
374
378
  }))
375
379
  ]), 1040, ["data", "sort-config", "filter-config", "loading", "row-config", "style", "size", "onSortChange", "onFilterChange"]))
376
380
  ], 2),
377
- F("div", {
381
+ k("div", {
378
382
  class: f(o(i)("pagination-wrapper"))
379
383
  }, [
380
- e.sticky ? (s(), u(o(Xe), {
384
+ e.sticky ? (s(), u(o(_e), {
381
385
  key: 0,
382
386
  direction: "horizontal",
383
- "scroll-container": ne.value
387
+ "scroll-container": te.value
384
388
  }, null, 8, ["scroll-container"])) : y("", !0),
385
- e.pagination !== !1 ? (s(), u(o(Ve), g({
389
+ e.pagination !== !1 ? (s(), u(o(Ne), g({
386
390
  key: 1,
387
391
  class: o(i)("pagination")
388
- }, o(ie).pagination, { onChange: o(fe) }), null, 16, ["class", "onChange"])) : y("", !0)
392
+ }, o(se).pagination, { onChange: o(pe) }), null, 16, ["class", "onChange"])) : y("", !0)
389
393
  ], 2)
390
394
  ], 6)
391
395
  ], 2));
392
396
  }
393
397
  });
394
398
  export {
395
- So as default
399
+ go as default
396
400
  };
@@ -22,13 +22,13 @@ export type ApGridColumnType<RecordType = any, ExtraValueType = 'text', ValueTyp
22
22
  tooltip?: string;
23
23
  /**
24
24
  * 是否可以复制
25
- * @deprecated 暂未实现
26
25
  */
27
26
  copyable?: boolean;
28
27
  /**
29
28
  * 配置溢出隐藏的方式
29
+ * @description 如果传递数字,则表示需要满足溢出隐藏的行数,此时默认会显示tooltip
30
30
  */
31
- ellipsis?: VxeTablePropTypes.ShowOverflow;
31
+ ellipsis?: VxeTablePropTypes.ShowOverflow | number;
32
32
  /**
33
33
  * 是否搜索表单中隐藏
34
34
  */