@aplus-frontend/ui 0.2.23 → 0.2.25

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 (103) hide show
  1. package/es/src/ap-field/checkbox/index.vue.d.ts +3 -0
  2. package/es/src/ap-field/checkbox/index.vue.mjs +6 -6
  3. package/es/src/ap-field/number/index.vue.d.ts +3 -0
  4. package/es/src/ap-field/number/index.vue.mjs +1 -1
  5. package/es/src/ap-field/radio/index.vue.d.ts +3 -0
  6. package/es/src/ap-field/radio/index.vue.mjs +8 -8
  7. package/es/src/ap-field/rate/index.vue.d.ts +2 -2
  8. package/es/src/ap-field/rate/index.vue.mjs +3 -3
  9. package/es/src/ap-field/slider/index.vue.d.ts +3 -0
  10. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  11. package/es/src/ap-field/switch/index.vue.d.ts +3 -0
  12. package/es/src/ap-field/switch/index.vue.mjs +2 -1
  13. package/es/src/ap-field/text/index.vue.d.ts +3 -0
  14. package/es/src/ap-field/text/index.vue2.mjs +9 -8
  15. package/es/src/ap-field/text/password.vue.d.ts +3 -0
  16. package/es/src/ap-field/text/password.vue.mjs +8 -7
  17. package/es/src/ap-field/text-area/index.vue.d.ts +3 -0
  18. package/es/src/ap-field/text-area/index.vue.mjs +5 -5
  19. package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
  20. package/es/src/ap-form/hooks/use-watch.mjs +28 -22
  21. package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  22. package/es/src/ap-form/items/checkbox/index.vue.mjs +12 -12
  23. package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
  24. package/es/src/ap-form/items/date/index.vue.mjs +10 -10
  25. package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  26. package/es/src/ap-form/items/date-range/index.vue.mjs +9 -9
  27. package/es/src/ap-form/items/number/index.vue.d.ts +8 -3
  28. package/es/src/ap-form/items/number/index.vue.mjs +10 -10
  29. package/es/src/ap-form/items/radio/index.vue.d.ts +7 -2
  30. package/es/src/ap-form/items/radio/index.vue.mjs +6 -6
  31. package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
  32. package/es/src/ap-form/items/select/index.vue.mjs +10 -10
  33. package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
  34. package/es/src/ap-form/items/switch/index.vue.mjs +10 -10
  35. package/es/src/ap-form/items/text/index.vue.d.ts +8 -3
  36. package/es/src/ap-form/items/text/index.vue2.mjs +15 -15
  37. package/es/src/ap-form/items/text/password.vue.d.ts +8 -3
  38. package/es/src/ap-form/items/text/password.vue.mjs +10 -10
  39. package/es/src/ap-form/items/text-area/index.vue.d.ts +7 -2
  40. package/es/src/ap-form/items/text-area/index.vue.mjs +11 -11
  41. package/es/src/ap-table/ap-table.vue2.mjs +30 -33
  42. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +21 -21
  43. package/es/src/ap-table/constants.d.ts +77 -40
  44. package/es/src/ap-table/utils.d.ts +40 -40
  45. package/es/src/ap-upload/apUpload.vue.d.ts +3 -0
  46. package/es/src/ap-upload/apUpload.vue.mjs +7 -6
  47. package/es/src/design-token/index.mjs +3 -1
  48. package/es/src/theme/antd-global-overwrite/admin/form.css +0 -3
  49. package/es/src/theme/antd-global-overwrite/admin/index.css +0 -3
  50. package/es/src/theme/antd-global-overwrite/aplus/form.css +0 -4
  51. package/es/src/theme/antd-global-overwrite/aplus/index.css +0 -4
  52. package/lib/src/ap-field/checkbox/index.vue.d.ts +3 -0
  53. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  54. package/lib/src/ap-field/number/index.vue.d.ts +3 -0
  55. package/lib/src/ap-field/number/index.vue.js +1 -1
  56. package/lib/src/ap-field/radio/index.vue.d.ts +3 -0
  57. package/lib/src/ap-field/radio/index.vue.js +1 -1
  58. package/lib/src/ap-field/rate/index.vue.d.ts +2 -2
  59. package/lib/src/ap-field/rate/index.vue.js +1 -1
  60. package/lib/src/ap-field/slider/index.vue.d.ts +3 -0
  61. package/lib/src/ap-field/slider/index.vue.js +1 -1
  62. package/lib/src/ap-field/switch/index.vue.d.ts +3 -0
  63. package/lib/src/ap-field/switch/index.vue.js +1 -1
  64. package/lib/src/ap-field/text/index.vue.d.ts +3 -0
  65. package/lib/src/ap-field/text/index.vue2.js +1 -1
  66. package/lib/src/ap-field/text/password.vue.d.ts +3 -0
  67. package/lib/src/ap-field/text/password.vue.js +1 -1
  68. package/lib/src/ap-field/text-area/index.vue.d.ts +3 -0
  69. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  70. package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
  71. package/lib/src/ap-form/hooks/use-watch.js +1 -1
  72. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  73. package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
  74. package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
  75. package/lib/src/ap-form/items/date/index.vue.js +1 -1
  76. package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  77. package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
  78. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -3
  79. package/lib/src/ap-form/items/number/index.vue.js +1 -1
  80. package/lib/src/ap-form/items/radio/index.vue.d.ts +7 -2
  81. package/lib/src/ap-form/items/radio/index.vue.js +1 -1
  82. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
  83. package/lib/src/ap-form/items/select/index.vue.js +1 -1
  84. package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
  85. package/lib/src/ap-form/items/switch/index.vue.js +1 -1
  86. package/lib/src/ap-form/items/text/index.vue.d.ts +8 -3
  87. package/lib/src/ap-form/items/text/index.vue2.js +1 -1
  88. package/lib/src/ap-form/items/text/password.vue.d.ts +8 -3
  89. package/lib/src/ap-form/items/text/password.vue.js +1 -1
  90. package/lib/src/ap-form/items/text-area/index.vue.d.ts +7 -2
  91. package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
  92. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  93. package/lib/src/ap-table/components/paragraph-ellipsis/index.vue2.js +1 -1
  94. package/lib/src/ap-table/constants.d.ts +77 -40
  95. package/lib/src/ap-table/utils.d.ts +40 -40
  96. package/lib/src/ap-upload/apUpload.vue.d.ts +3 -0
  97. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  98. package/lib/src/design-token/index.js +1 -1
  99. package/lib/src/theme/antd-global-overwrite/admin/form.css +0 -3
  100. package/lib/src/theme/antd-global-overwrite/admin/index.css +0 -3
  101. package/lib/src/theme/antd-global-overwrite/aplus/form.css +0 -4
  102. package/lib/src/theme/antd-global-overwrite/aplus/index.css +0 -4
  103. package/package.json +2 -2
@@ -1,10 +1,10 @@
1
- import { defineComponent as v, useSlots as _, ref as g, openBlock as x, createBlock as k, normalizeProps as t, guardReactiveProps as s, unref as o, createSlots as n, withCtx as p, createVNode as F, mergeProps as S, renderList as i, renderSlot as f } from "vue";
1
+ import { defineComponent as B, useSlots as _, ref as g, openBlock as x, createBlock as k, normalizeProps as t, guardReactiveProps as s, unref as o, createSlots as n, withCtx as d, createVNode as F, mergeProps as S, renderList as i, renderSlot as f } from "vue";
2
2
  import "../../item/index.vue2.mjs";
3
3
  import { ApField as C } from "../../../ap-field/index.mjs";
4
4
  import { omit as u, pick as P } from "lodash-unified";
5
5
  import { apFormItemSlotNames as m } from "../../constant.mjs";
6
6
  import w from "../../item/index.vue.mjs";
7
- const z = /* @__PURE__ */ v({
7
+ const z = /* @__PURE__ */ B({
8
8
  name: "ApFormItemText",
9
9
  __name: "password",
10
10
  props: {
@@ -49,10 +49,10 @@ const z = /* @__PURE__ */ v({
49
49
  transform: {},
50
50
  field: { default: () => ({}) },
51
51
  placeholder: {},
52
- disabled: { type: Boolean, default: !1 }
52
+ disabled: { type: Boolean, default: void 0 }
53
53
  },
54
54
  setup(c, { expose: b }) {
55
- const { Text: h } = C, d = _(), y = c, a = g();
55
+ const { Text: h } = C, p = _(), v = c, a = g();
56
56
  return b({
57
57
  focus: () => {
58
58
  var e;
@@ -62,17 +62,17 @@ const z = /* @__PURE__ */ v({
62
62
  var e;
63
63
  (e = a.value) == null || e.blur();
64
64
  }
65
- }), (e, R) => (x(), k(w, t(s(o(u)(y, ["field", "disabled", "placeholder"]))), n({
66
- default: p(() => [
65
+ }), (e, R) => (x(), k(w, t(s(o(u)(v, ["field", "disabled", "placeholder"]))), n({
66
+ default: d(() => [
67
67
  F(o(h).Password, S({
68
68
  ref_key: "inputRef",
69
69
  ref: a,
70
70
  disabled: e.disabled,
71
71
  placeholder: e.placeholder
72
72
  }, e.field), n({ _: 2 }, [
73
- i(o(u)(d, o(m)), (B, l) => ({
73
+ i(o(u)(p, o(m)), (y, l) => ({
74
74
  name: l,
75
- fn: p((r) => [
75
+ fn: d((r) => [
76
76
  f(e.$slots, l, t(s(r || {})))
77
77
  ])
78
78
  }))
@@ -80,9 +80,9 @@ const z = /* @__PURE__ */ v({
80
80
  ]),
81
81
  _: 2
82
82
  }, [
83
- i(o(P)(d, o(m)), (B, l) => ({
83
+ i(o(P)(p, o(m)), (y, l) => ({
84
84
  name: l,
85
- fn: p((r) => [
85
+ fn: d((r) => [
86
86
  f(e.$slots, l, t(s(r || {})))
87
87
  ])
88
88
  }))
@@ -66,6 +66,7 @@ declare function __VLS_template(): {
66
66
  };
67
67
  disabled: {
68
68
  type: PropType<boolean>;
69
+ default: undefined;
69
70
  };
70
71
  bordered: {
71
72
  type: PropType<boolean>;
@@ -216,6 +217,7 @@ declare function __VLS_template(): {
216
217
  };
217
218
  disabled: {
218
219
  type: PropType<boolean>;
220
+ default: undefined;
219
221
  };
220
222
  bordered: {
221
223
  type: PropType<boolean>;
@@ -307,6 +309,7 @@ declare function __VLS_template(): {
307
309
  }, {
308
310
  type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
309
311
  mode: FieldMode;
312
+ disabled: boolean;
310
313
  bordered: boolean;
311
314
  lazy: boolean;
312
315
  allowClear: boolean;
@@ -374,6 +377,7 @@ declare function __VLS_template(): {
374
377
  };
375
378
  disabled: {
376
379
  type: PropType<boolean>;
380
+ default: undefined;
377
381
  };
378
382
  bordered: {
379
383
  type: PropType<boolean>;
@@ -469,6 +473,7 @@ declare function __VLS_template(): {
469
473
  }, {}, {}, {}, {
470
474
  type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
471
475
  mode: FieldMode;
476
+ disabled: boolean;
472
477
  bordered: boolean;
473
478
  lazy: boolean;
474
479
  allowClear: boolean;
@@ -484,7 +489,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
484
489
  autoLink: boolean;
485
490
  required: undefined;
486
491
  validateFirst: undefined;
487
- disabled: boolean;
492
+ disabled: undefined;
488
493
  field: () => {};
489
494
  }>, {
490
495
  focus: (options?: InputFocusOptions) => void;
@@ -496,7 +501,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
496
501
  autoLink: boolean;
497
502
  required: undefined;
498
503
  validateFirst: undefined;
499
- disabled: boolean;
504
+ disabled: undefined;
500
505
  field: () => {};
501
506
  }>>>, {
502
507
  disabled: boolean;
@@ -47,14 +47,14 @@ const $ = /* @__PURE__ */ c({
47
47
  transform: {},
48
48
  field: { default: () => ({}) },
49
49
  placeholder: {},
50
- disabled: { type: Boolean, default: !1 }
50
+ disabled: { type: Boolean, default: void 0 }
51
51
  },
52
- setup(n, { expose: p }) {
53
- const { TextArea: i } = C, f = b(), u = n, l = x();
54
- return p({
52
+ setup(i, { expose: n }) {
53
+ const { TextArea: p } = C, u = b(), f = i, l = x();
54
+ return n({
55
55
  focus: (e) => {
56
- var a;
57
- (a = l.value) == null || a.focus(e);
56
+ var o;
57
+ (o = l.value) == null || o.focus(e);
58
58
  },
59
59
  blur: () => {
60
60
  var e;
@@ -64,9 +64,9 @@ const $ = /* @__PURE__ */ c({
64
64
  var e;
65
65
  return (e = l.value) == null ? void 0 : e.resizableTextArea;
66
66
  })
67
- }), (e, a) => (v(), y(S, r(t(s(F)(u, ["field", "disabled", "placeholder"]))), B({
67
+ }), (e, o) => (v(), y(S, r(t(s(F)(f, ["field", "disabled", "placeholder"]))), B({
68
68
  default: d(() => [
69
- A(s(i), g({
69
+ A(s(p), g({
70
70
  ref_key: "textAreaRef",
71
71
  ref: l,
72
72
  disabled: e.disabled,
@@ -75,10 +75,10 @@ const $ = /* @__PURE__ */ c({
75
75
  ]),
76
76
  _: 2
77
77
  }, [
78
- _(f, (z, o) => ({
79
- name: o,
78
+ _(u, (z, a) => ({
79
+ name: a,
80
80
  fn: d((m) => [
81
- k(e.$slots, o, r(t(m || {})))
81
+ k(e.$slots, a, r(t(m || {})))
82
82
  ])
83
83
  }))
84
84
  ]), 1040));
@@ -6,19 +6,18 @@ import { noRenderAsFormItemValueList as Y } from "./constants.mjs";
6
6
  import "../config-provider/index.mjs";
7
7
  import { useTablePaging as Ke } from "./hooks/use-table-paging.mjs";
8
8
  import { isUndefined as m, omit as Z, isBoolean as Le } from "lodash-unified";
9
- import { getColumnOrder as ee, updateFormProps as Oe, getFieldProps as Ve, getSearchFormItemRenderNode as De, recursionApColumns as ae, apColumnToColumn as Ae, getTableTitle as je, getTableRenderType as $e, getTableRenderProps as We, getTableCellRenderNode as He, objectToString as qe } from "./utils.mjs";
10
- import Ue from "./hooks/use-table-content-height.mjs";
11
- import { getRawDisplayValue as Ge } from "../editable-table/utils.mjs";
12
- import Me from "./hooks/use-table-row-selection.mjs";
13
- import { isDef as _e } from "../utils/index.mjs";
9
+ import { getColumnOrder as ee, updateFormProps as Oe, getFieldProps as Ae, getSearchFormItemRenderNode as De, recursionApColumns as ae, apColumnToColumn as Ve, getTableTitle as je, getTableRenderType as $e, getTableRenderProps as We, getTableCellRenderNode as He } from "./utils.mjs";
10
+ import qe from "./hooks/use-table-content-height.mjs";
11
+ import Ue from "./hooks/use-table-row-selection.mjs";
12
+ import { isDef as Ge } from "../utils/index.mjs";
14
13
  import "./components/setting/modal/index.vue.mjs";
15
14
  import "./components/paragraph-ellipsis/index.vue.mjs";
16
- import { useProvideApTable as Je } from "./context.mjs";
17
- import { useNamespace as Qe } from "../config-provider/hooks/use-namespace.mjs";
18
- import { useGlobalConfig as Xe } from "../config-provider/hooks/use-global-config.mjs";
19
- import Ye from "./components/paragraph-ellipsis/index.vue2.mjs";
20
- import Ze from "./components/setting/modal/index.vue2.mjs";
21
- const ba = /* @__PURE__ */ Te({
15
+ import { useProvideApTable as Me } from "./context.mjs";
16
+ import { useNamespace as _e } from "../config-provider/hooks/use-namespace.mjs";
17
+ import { useGlobalConfig as Je } from "../config-provider/hooks/use-global-config.mjs";
18
+ import Qe from "./components/paragraph-ellipsis/index.vue2.mjs";
19
+ import Xe from "./components/setting/modal/index.vue2.mjs";
20
+ const wa = /* @__PURE__ */ Te({
22
21
  name: "ApTable",
23
22
  __name: "ap-table",
24
23
  props: {
@@ -151,11 +150,11 @@ const ba = /* @__PURE__ */ Te({
151
150
  e: x,
152
151
  b: i,
153
152
  be: E
154
- } = Qe("ap-table"), K = Xe("valueTypeMap"), {
153
+ } = _e("ap-table"), K = Je("valueTypeMap"), {
155
154
  height: le,
156
155
  contentRef: ne
157
- } = Ue(), B = P(a.size), d = P([]), L = P([]);
158
- Je({
156
+ } = qe(), B = P(a.size), d = P([]), L = P([]);
157
+ Me({
159
158
  columns: s(() => d.value),
160
159
  columnsBackup: s(() => L.value),
161
160
  size: s(() => B.value),
@@ -172,7 +171,7 @@ const ba = /* @__PURE__ */ Te({
172
171
  let n = ee(l.order);
173
172
  return ee(u.order) - n;
174
173
  })) == null ? void 0 : t.map((l) => {
175
- const u = Oe(l, Ve(l.fieldProps, {})), n = {
174
+ const u = Oe(l, Ae(l.fieldProps, {})), n = {
176
175
  ...l,
177
176
  fieldProps: {
178
177
  label: l.title,
@@ -194,16 +193,16 @@ const ba = /* @__PURE__ */ Te({
194
193
  rowSelection: b,
195
194
  selectedRows: C,
196
195
  ...R
197
- } = Me({
196
+ } = Ue({
198
197
  fixed: !0,
199
198
  ...a.rowSelection === !0 ? {} : a.rowSelection,
200
199
  rowKey: a.rowKey,
201
200
  dataSource: ue
202
201
  }), {
203
202
  formRef: k,
204
- submit: V,
203
+ submit: A,
205
204
  reset: D,
206
- tableProps: A,
205
+ tableProps: V,
207
206
  refresh: ie,
208
207
  data: v,
209
208
  setDataSource: ce,
@@ -237,8 +236,8 @@ const ba = /* @__PURE__ */ Te({
237
236
  let e = ((t = a.columns) == null ? void 0 : t.filter((l) => !l.hideInTable)) || [];
238
237
  function o(l, u) {
239
238
  return l.map((n) => ({
240
- resizable: _e(n.resizable) ? n.resizable : a.columnResizable,
241
- ...Z(Ae(n), ["ellipsis"]),
239
+ resizable: Ge(n.resizable) ? n.resizable : a.columnResizable,
240
+ ...Z(Ve(n), ["ellipsis"]),
242
241
  ...pe(n),
243
242
  fixed: u ? u.fixed : n.fixed,
244
243
  title: je(n, E("table-header", "title"), S.headerCell, r(re).colorPrimary),
@@ -295,7 +294,7 @@ const ba = /* @__PURE__ */ Te({
295
294
  return "fixed";
296
295
  }), j = s(() => {
297
296
  var t;
298
- const e = r(A), o = r(b);
297
+ const e = r(V), o = r(b);
299
298
  return {
300
299
  ...a,
301
300
  ...e,
@@ -310,18 +309,16 @@ const ba = /* @__PURE__ */ Te({
310
309
  };
311
310
  }), ye = s(() => [i(), a.card ? null : i("wrapper"), a.adaptive ? i("adaptive") : null].filter(Boolean));
312
311
  function we(e, o, t) {
313
- if (Y.includes(e.valueType))
314
- return t;
315
- const l = qe(o);
316
- return e.copyable || e.ellipsis ? y(Ye, {
312
+ return Y.includes(e.valueType) ? t : e.copyable || e.ellipsis ? y(Qe, {
317
313
  copyable: e.copyable,
318
314
  ellipsis: e.ellipsis ? Le(e.ellipsis) ? {
319
- tooltip: l
315
+ tooltip: t,
316
+ rows: 1
320
317
  } : {
321
318
  ...e.ellipsis,
322
- tooltip: l
319
+ tooltip: t
323
320
  } : !1,
324
- content: e.ellipsis ? Ge(e, o) : t
321
+ content: t
325
322
  }, null) : t;
326
323
  }
327
324
  G(() => r(v).loading, (e) => {
@@ -344,7 +341,7 @@ const ba = /* @__PURE__ */ Te({
344
341
  return r(d);
345
342
  }
346
343
  return te({
347
- submit: () => V(),
344
+ submit: () => A(),
348
345
  reset: () => D(),
349
346
  refresh: () => ie(),
350
347
  setSearchFormValues: he,
@@ -365,9 +362,9 @@ const ba = /* @__PURE__ */ Te({
365
362
  ref_key: "formRef",
366
363
  ref: k,
367
364
  "custom-reset": "",
368
- onSubmit: r(V),
365
+ onSubmit: r(A),
369
366
  onReset: r(D),
370
- "submit-loading": r(A).loading
367
+ "submit-loading": r(V).loading
371
368
  }), _({
372
369
  default: F(() => [(p(!0), T(U, null, J(O.value, (t) => (p(), Q(Be(t.renderNode), w({
373
370
  key: t.dataIndex,
@@ -399,7 +396,7 @@ const ba = /* @__PURE__ */ Te({
399
396
  }, R))], 2), S.title ? (p(), Q(r(Pe), {
400
397
  key: 0,
401
398
  type: "vertical"
402
- })) : X("", !0), y(Ze, {
399
+ })) : X("", !0), y(Xe, {
403
400
  config: e.settings === !0 ? {} : e.settings
404
401
  }, null, 8, ["config"])], 2)) : h(e.$slots, "title", w({
405
402
  key: 1,
@@ -427,5 +424,5 @@ const ba = /* @__PURE__ */ Te({
427
424
  }
428
425
  });
429
426
  export {
430
- ba as default
427
+ wa as default
431
428
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as T, ref as _, computed as w, openBlock as o, createElementBlock as f, mergeProps as B, unref as t, createElementVNode as O, normalizeClass as y, createVNode as d, createSlots as x, withCtx as u, createBlock as s, resolveDynamicComponent as v, h as b, Fragment as h, createCommentVNode as E } from "vue";
1
+ import { defineComponent as g, ref as T, computed as _, openBlock as o, createElementBlock as f, mergeProps as w, unref as t, createElementVNode as B, normalizeClass as d, createVNode as y, createSlots as O, withCtx as u, createBlock as r, resolveDynamicComponent as v, h as b, createCommentVNode as x } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
- import { Tooltip as C } from "@aplus-frontend/antdv";
4
- import { CopyOutlined as N, CheckOutlined as j } from "@ant-design/icons-vue";
5
- import { useNamespace as S } from "../../../config-provider/hooks/use-namespace.mjs";
6
- import { useLocale as V } from "../../../config-provider/hooks/use-locale.mjs";
7
- const $ = /* @__PURE__ */ T({
3
+ import { Tooltip as h } from "@aplus-frontend/antdv";
4
+ import { CopyOutlined as E, CheckOutlined as N } from "@ant-design/icons-vue";
5
+ import { useNamespace as j } from "../../../config-provider/hooks/use-namespace.mjs";
6
+ import { useLocale as S } from "../../../config-provider/hooks/use-locale.mjs";
7
+ const $ = /* @__PURE__ */ g({
8
8
  name: "ApTableParagraphEllipsis",
9
9
  __name: "index",
10
10
  props: {
@@ -12,8 +12,8 @@ const $ = /* @__PURE__ */ T({
12
12
  content: { type: [Object, String, Number, Boolean, null, Array] },
13
13
  ellipsis: { type: [Boolean, Object] }
14
14
  },
15
- setup(g) {
16
- const { b: i } = S("ap-table-paragraph-ellipsis"), { t: m } = V(), e = g, l = _(!1), r = w(() => e.ellipsis === !0 ? {
15
+ setup(C) {
16
+ const { b: i } = j("ap-table-paragraph-ellipsis"), { t: m } = S(), e = C, l = T(!1), s = _(() => e.ellipsis === !0 ? {
17
17
  rows: 1,
18
18
  tooltip: e.content
19
19
  } : typeof e.ellipsis == "object" ? Object.assign(
@@ -25,35 +25,35 @@ const $ = /* @__PURE__ */ T({
25
25
  ) : {});
26
26
  function k() {
27
27
  var c, a, p;
28
- const n = ((c = r.value) == null ? void 0 : c.tooltip) ?? ((p = (a = e.content) == null ? void 0 : a.props) == null ? void 0 : p.value) ?? e.content;
28
+ const n = ((c = s.value) == null ? void 0 : c.tooltip) ?? ((p = (a = e.content) == null ? void 0 : a.props) == null ? void 0 : p.value) ?? e.content;
29
29
  navigator.clipboard.writeText(n), l.value || (l.value = !0, setTimeout(() => {
30
30
  l.value = !1;
31
31
  }, 2200));
32
32
  }
33
33
  return (n, c) => {
34
34
  var a, p;
35
- return o(), f("div", B({
35
+ return o(), f("div", w({
36
36
  class: [t(i)()]
37
37
  }, {
38
38
  ...n.$attrs
39
39
  }, {
40
40
  style: {
41
- "--ap-table-paragraph-ellipsis-rows": (a = r.value) == null ? void 0 : a.rows
41
+ "--ap-table-paragraph-ellipsis-rows": (a = s.value) == null ? void 0 : a.rows
42
42
  }
43
43
  }), [
44
- O("div", {
45
- class: y([t(i)("content")])
44
+ B("div", {
45
+ class: d([t(i)("content")])
46
46
  }, [
47
- d(t(C), null, x({
47
+ y(t(h), null, O({
48
48
  default: u(() => [
49
- (o(), s(v(b(h, [e.content]))))
49
+ (o(), r(v(b("span", [e.content]))))
50
50
  ]),
51
51
  _: 2
52
52
  }, [
53
- (p = r.value) != null && p.tooltip ? {
53
+ (p = s.value) != null && p.tooltip ? {
54
54
  name: "title",
55
55
  fn: u(() => [
56
- (o(), s(v(b(h, [r.value.tooltip]))))
56
+ (o(), r(v(b("div", [s.value.tooltip]))))
57
57
  ]),
58
58
  key: "0"
59
59
  } : void 0
@@ -61,18 +61,18 @@ const $ = /* @__PURE__ */ T({
61
61
  ], 2),
62
62
  e.copyable ? (o(), f("div", {
63
63
  key: 0,
64
- class: y([t(i)("copyable")]),
64
+ class: d([t(i)("copyable")]),
65
65
  onClick: k
66
66
  }, [
67
- d(t(C), {
67
+ y(t(h), {
68
68
  title: l.value ? t(m)("ap.apTable.paragraphEllipsis.copySuccess") : t(m)("ap.apTable.paragraphEllipsis.copy")
69
69
  }, {
70
70
  default: u(() => [
71
- l.value ? (o(), s(t(j), { key: 1 })) : (o(), s(t(N), { key: 0 }))
71
+ l.value ? (o(), r(t(N), { key: 1 })) : (o(), r(t(E), { key: 0 }))
72
72
  ]),
73
73
  _: 1
74
74
  }, 8, ["title"])
75
- ], 2)) : E("", !0)
75
+ ], 2)) : x("", !0)
76
76
  ], 16);
77
77
  };
78
78
  }