@aplus-frontend/ui 6.21.1 → 6.22.0-beta.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.
Files changed (77) hide show
  1. package/es/index.mjs +27 -25
  2. package/es/src/{ap-pro-card/components/divider → ag-grid/components/body-cell}/index.vue.d.ts +2 -9
  3. package/es/src/ag-grid/components/body-cell/index.vue2.mjs +27 -0
  4. package/{lib/src/ap-pro-card/components/divider → es/src/ag-grid/components/header-cell}/index.vue.d.ts +2 -9
  5. package/es/src/ag-grid/components/header-cell/index.vue2.mjs +59 -0
  6. package/es/src/ag-grid/hooks/use-row-selection.d.ts +78 -0
  7. package/es/src/ag-grid/hooks/use-row-selection.mjs +98 -0
  8. package/es/src/ag-grid/index.d.ts +3 -0
  9. package/es/src/ag-grid/index.mjs +2 -0
  10. package/es/src/ag-grid/index.vue.d.ts +41 -0
  11. package/es/src/ag-grid/index.vue.mjs +377 -0
  12. package/es/src/ag-grid/index.vue2.mjs +4 -0
  13. package/es/src/ag-grid/interface.d.ts +194 -0
  14. package/es/src/ag-grid/interface.mjs +1 -0
  15. package/es/src/ag-grid/style/css.d.ts +0 -0
  16. package/es/src/ag-grid/style/css.js +1 -0
  17. package/es/src/ag-grid/style/index.d.ts +0 -0
  18. package/es/src/ag-grid/style/index.js +1 -0
  19. package/es/src/ap-grid/index.vue.mjs +1 -1
  20. package/es/src/ap-grid/utils/col.d.ts +11 -0
  21. package/es/src/ap-grid/utils/col.mjs +99 -95
  22. package/es/src/ap-pro-card/components/card/index.vue2.mjs +37 -37
  23. package/es/src/ap-pro-card/index.d.ts +41 -9
  24. package/es/src/ap-pro-card/index.mjs +4 -10
  25. package/es/src/ap-pro-card/interface.d.ts +2 -2
  26. package/es/src/ap-table/utils.d.ts +1 -1
  27. package/es/src/index.d.ts +1 -0
  28. package/es/src/index.mjs +293 -290
  29. package/es/src/version.d.ts +1 -1
  30. package/es/src/version.mjs +1 -1
  31. package/lib/index.js +1 -1
  32. package/lib/src/ag-grid/components/body-cell/index.vue.d.ts +6 -0
  33. package/lib/src/ag-grid/components/body-cell/index.vue2.js +1 -0
  34. package/lib/src/ag-grid/components/header-cell/index.vue.d.ts +6 -0
  35. package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -0
  36. package/lib/src/ag-grid/hooks/use-row-selection.d.ts +78 -0
  37. package/lib/src/ag-grid/hooks/use-row-selection.js +1 -0
  38. package/lib/src/ag-grid/index.d.ts +3 -0
  39. package/lib/src/ag-grid/index.js +1 -0
  40. package/lib/src/ag-grid/index.vue.d.ts +41 -0
  41. package/lib/src/ag-grid/index.vue.js +1 -0
  42. package/lib/src/ag-grid/index.vue2.js +1 -0
  43. package/lib/src/ag-grid/interface.d.ts +194 -0
  44. package/lib/src/ag-grid/interface.js +1 -0
  45. package/lib/src/ag-grid/style/css.cjs +1 -0
  46. package/lib/src/ag-grid/style/css.d.ts +0 -0
  47. package/lib/src/ag-grid/style/index.cjs +1 -0
  48. package/lib/src/ag-grid/style/index.d.ts +0 -0
  49. package/lib/src/ap-grid/index.vue.js +1 -1
  50. package/lib/src/ap-grid/utils/col.d.ts +11 -0
  51. package/lib/src/ap-grid/utils/col.js +1 -1
  52. package/lib/src/ap-pro-card/components/card/index.vue2.js +1 -1
  53. package/lib/src/ap-pro-card/index.d.ts +41 -9
  54. package/lib/src/ap-pro-card/index.js +1 -1
  55. package/lib/src/ap-pro-card/interface.d.ts +2 -2
  56. package/lib/src/ap-table/utils.d.ts +1 -1
  57. package/lib/src/index.d.ts +1 -0
  58. package/lib/src/index.js +1 -1
  59. package/lib/src/version.d.ts +1 -1
  60. package/lib/src/version.js +1 -1
  61. package/package.json +3 -1
  62. package/theme/ap-grid/index.css +3 -0
  63. package/theme/ap-grid/index.less +3 -0
  64. package/theme/ap-pro-card/index.css +0 -52
  65. package/theme/ap-pro-card/index.less +0 -56
  66. package/theme/index.css +164 -55
  67. package/theme/index.less +1 -0
  68. package/es/src/ap-pro-card/components/divider/index.vue2.mjs +0 -29
  69. package/es/src/ap-pro-card/components/title/index.vue.d.ts +0 -23
  70. package/es/src/ap-pro-card/components/title/index.vue2.mjs +0 -28
  71. package/lib/src/ap-pro-card/components/divider/index.vue2.js +0 -1
  72. package/lib/src/ap-pro-card/components/title/index.vue.d.ts +0 -23
  73. package/lib/src/ap-pro-card/components/title/index.vue2.js +0 -1
  74. /package/es/src/{ap-pro-card/components/divider → ag-grid/components/body-cell}/index.vue.mjs +0 -0
  75. /package/es/src/{ap-pro-card/components/title → ag-grid/components/header-cell}/index.vue.mjs +0 -0
  76. /package/lib/src/{ap-pro-card/components/divider → ag-grid/components/body-cell}/index.vue.js +0 -0
  77. /package/lib/src/{ap-pro-card/components/title → ag-grid/components/header-cell}/index.vue.js +0 -0
@@ -1,19 +1,19 @@
1
- import { createVNode as v, Fragment as O } from "vue";
2
- import { isUndefined as S, isArray as $, isString as x, isBoolean as A, isNumber as M, pick as R } from "lodash-unified";
3
- import { valueEnumToArray as V, objectToString as j, getTableTitle as c, getTableRenderType as q, getTableRenderProps as B, getTableCellRenderNode as W } from "../../ap-table/utils.mjs";
4
- import { noRenderAsFormItemValueList as _ } from "../../ap-table/constants.mjs";
1
+ import { createVNode as T, Fragment as c } from "vue";
2
+ import { isUndefined as N, isArray as b, isString as y, isBoolean as F, isNumber as w, pick as v } from "lodash-unified";
3
+ import { valueEnumToArray as E, objectToString as O, getTableTitle as x, getTableRenderType as S, getTableRenderProps as $, getTableCellRenderNode as M } from "../../ap-table/utils.mjs";
4
+ import { noRenderAsFormItemValueList as V } from "../../ap-table/constants.mjs";
5
5
  import "../../ap-table/components/paragraph-ellipsis/index.vue.mjs";
6
- import k from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
7
- function N(e) {
8
- if (!S(e))
9
- return $(e) ? e.reduce((r, i) => x(i) ? `${r}.${i}` : `${r}[${i}]`, "") : String(e);
6
+ import j from "../../ap-table/components/paragraph-ellipsis/index.vue2.mjs";
7
+ function A(e) {
8
+ if (!N(e))
9
+ return b(e) ? e.reduce((t, r) => y(r) ? `${t}.${r}` : `${t}[${r}]`, "") : String(e);
10
10
  }
11
- function b(e) {
11
+ function R(e) {
12
12
  if (e)
13
13
  return e === !0 ? "left" : e;
14
14
  }
15
- function z(e) {
16
- return A(e) ? {
15
+ function q(e) {
16
+ return F(e) ? {
17
17
  sortable: e
18
18
  } : e ? {
19
19
  sortable: !0,
@@ -23,115 +23,119 @@ function z(e) {
23
23
  sortable: !1
24
24
  };
25
25
  }
26
- function G(e) {
27
- let r;
28
- return A(e.filters) && e.valueEnum ? r = V(e.valueEnum) : r = e.filters, r == null ? void 0 : r.map((i) => ({
29
- label: x(i.text) ? i.text : "",
30
- value: i.value
26
+ function B(e) {
27
+ let t;
28
+ return F(e.filters) && e.valueEnum ? t = E(e.valueEnum) : t = e.filters, t == null ? void 0 : t.map((r) => ({
29
+ label: y(r.text) ? r.text : "",
30
+ value: r.value
31
31
  }));
32
32
  }
33
- function I(e) {
33
+ function W(e) {
34
34
  if (e)
35
- return (r) => e(r.value, r.row);
35
+ return (t) => e(t.value, t.row);
36
36
  }
37
- function L(e, r) {
38
- return e ? M(e) ? {
39
- tooltip: r,
37
+ function _(e, t) {
38
+ return e ? w(e) ? {
39
+ tooltip: t,
40
40
  rows: e
41
41
  } : e === !0 || e === "tooltip" ? {
42
- tooltip: r,
42
+ tooltip: t,
43
43
  rows: 1
44
44
  } : {
45
45
  tooltip: null,
46
46
  rows: 1,
47
- htmlTitle: e === "title" ? r : ""
47
+ htmlTitle: e === "title" ? t : ""
48
48
  } : !1;
49
49
  }
50
- function U(e, r, i) {
51
- if (_.includes(e.valueType))
52
- return i;
50
+ function k(e, t, r) {
51
+ if (V.includes(e.valueType))
52
+ return r;
53
53
  if (e.copyable || e.ellipsis) {
54
- const l = L(e.ellipsis, r), t = j(r);
55
- return v(k, {
56
- rawValue: t,
54
+ const l = _(e.ellipsis, t), i = O(t);
55
+ return T(j, {
56
+ rawValue: i,
57
57
  copyable: e.copyable,
58
58
  ellipsis: l,
59
- content: i
59
+ content: r
60
60
  }, null);
61
61
  }
62
- return i;
62
+ return r;
63
63
  }
64
- function y(e, r, i) {
65
- const l = R(e, ["width", "minWidth", "align"]);
66
- return l.field = N(e.dataIndex), l.fixed = b(e.fixed), l.slots = {
67
- header: () => c(e, i, void 0, r)
64
+ function h(e, t, r) {
65
+ const l = v(e, ["width", "minWidth", "align"]);
66
+ return l.field = A(e.dataIndex), l.fixed = R(e.fixed), l.slots = {
67
+ header: () => x(e, r, void 0, t)
68
68
  }, l.headerAlign = e.align, l.showOverflow = !1, l.showFooterOverflow = !1, l;
69
69
  }
70
- function F(e, r, i, l) {
71
- const t = R(e, ["width", "minWidth", "align", "resizable", "className", "headerClassName", "footerClassName", "treeNode"]);
72
- t.field = N(e.dataIndex), t.fixed = b(e.fixed), t.headerAlign = e.align, t.footerAlign = e.align, t.showOverflow = !1, t.showFooterOverflow = !1, Object.assign(t, z(e.sorter)), t.filters = G(e), t.filterMultiple = e.filterMultiple, t.filterMethod = I(e.onFilter);
73
- const f = ({
74
- value: d,
75
- ...s
76
- }) => {
77
- var o, T;
78
- const a = q(e), u = B({
79
- ...e,
80
- valueType: a
81
- }, {
82
- value: d,
83
- ...s
84
- }), w = W(a, u, s.record, l), h = ((o = e.renderText) == null ? void 0 : o.call(e, {
85
- value: d,
86
- ...s
87
- })) || d, E = e.renderText ? v(O, null, [(T = e.renderText) == null ? void 0 : T.call(e, {
88
- value: d,
89
- ...s
90
- })]) : w;
91
- let p = U(e, h, E);
92
- return e.customRender && (p = e.customRender({
93
- value: d,
94
- ...s,
95
- column: e,
96
- originalNode: p,
97
- originalText: h
98
- })), p;
99
- }, n = ({
100
- row: d,
101
- rowIndex: s
102
- }) => f({
103
- value: d[t.field],
104
- text: d[t.field],
105
- record: d,
106
- index: s,
107
- renderIndex: s,
70
+ const z = ({
71
+ value: e,
72
+ ...t
73
+ }, r, l) => {
74
+ var u, p;
75
+ const i = S(r), d = $({
76
+ ...r,
77
+ valueType: i
78
+ }, {
79
+ value: e,
80
+ ...t
81
+ }), s = M(i, d, t.record, l), n = ((u = r.renderText) == null ? void 0 : u.call(r, {
82
+ value: e,
83
+ ...t
84
+ })) || e, a = r.renderText ? T(c, null, [(p = r.renderText) == null ? void 0 : p.call(r, {
85
+ value: e,
86
+ ...t
87
+ })]) : s;
88
+ let f = k(r, n, a);
89
+ return r.customRender && (f = r.customRender({
90
+ value: e,
91
+ ...t,
92
+ column: r,
93
+ originalNode: f,
94
+ originalText: n
95
+ })), f;
96
+ };
97
+ function o(e, t, r, l) {
98
+ const i = v(e, ["width", "minWidth", "align", "resizable", "className", "headerClassName", "footerClassName", "treeNode"]);
99
+ i.field = A(e.dataIndex), i.fixed = R(e.fixed), i.headerAlign = e.align, i.footerAlign = e.align, i.showOverflow = !1, i.showFooterOverflow = !1, Object.assign(i, q(e.sorter)), i.filters = B(e), i.filterMultiple = e.filterMultiple, i.filterMethod = W(e.onFilter);
100
+ const d = ({
101
+ row: s,
102
+ rowIndex: n
103
+ }) => z({
104
+ value: s[i.field],
105
+ text: s[i.field],
106
+ record: s,
107
+ index: n,
108
+ renderIndex: n,
108
109
  column: e
109
- });
110
- return t.slots = {
111
- header: () => c(e, i, void 0, r),
112
- default: n,
113
- footer: n
114
- }, e.html && (delete t.slots.default, delete t.slots.footer, t.type = "html"), e.seq && (t.type = "seq", t.slots = {}), t;
110
+ }, e, l);
111
+ return i.slots = {
112
+ header: () => x(e, r, void 0, t),
113
+ default: d,
114
+ footer: d
115
+ }, e.html && (delete i.slots.default, delete i.slots.footer, i.type = "html"), e.seq && (i.type = "seq", i.slots = {}), i;
115
116
  }
116
- function Y(e, r, i, l) {
117
- var n;
118
- if (!((n = e.children) != null && n.length))
119
- return F(e, r, i, l);
120
- function t(d) {
121
- return d.map((s) => {
122
- var a;
123
- if ((a = s.children) != null && a.length) {
124
- const u = y(s, r, i);
125
- return u.children = t(s.children), u;
117
+ function J(e, t, r, l) {
118
+ var s;
119
+ if (!((s = e.children) != null && s.length))
120
+ return o(e, t, r, l);
121
+ function i(n) {
122
+ return n.map((a) => {
123
+ var f;
124
+ if ((f = a.children) != null && f.length) {
125
+ const u = h(a, t, r);
126
+ return u.children = i(a.children), u;
126
127
  }
127
- return F(s, r, i, l);
128
+ return o(a, t, r, l);
128
129
  });
129
130
  }
130
- const f = y(e, r, i);
131
- return f.children = t(e.children), f;
131
+ const d = h(e, t, r);
132
+ return d.children = i(e.children), d;
132
133
  }
133
134
  export {
134
- Y as transformCol,
135
- y as transformToColGroup,
136
- F as transformToColumn
135
+ z as contentCustom,
136
+ A as dataIndexToField,
137
+ J as transformCol,
138
+ R as transformFixed,
139
+ h as transformToColGroup,
140
+ o as transformToColumn
137
141
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as Y, useSlots as Z, computed as s, ref as ee, createVNode as u, Fragment as x, createElementBlock as b, openBlock as n, mergeProps as te, createCommentVNode as v, createElementVNode as oe, normalizeStyle as A, normalizeClass as m, unref as g, renderSlot as G, createBlock as p, resolveDynamicComponent as h, withCtx as P } from "vue";
2
- import { Spin as re, Tooltip as le } from "@aplus-frontend/antdv";
1
+ import { defineComponent as Y, useSlots as Z, computed as s, ref as ee, createVNode as u, Fragment as x, createElementBlock as b, openBlock as n, mergeProps as te, createCommentVNode as v, createElementVNode as re, normalizeStyle as w, normalizeClass as m, unref as g, renderSlot as G, createBlock as p, resolveDynamicComponent as h, withCtx as P } from "vue";
2
+ import { Spin as oe, Tooltip as le } from "@aplus-frontend/antdv";
3
3
  import { QuestionCircleOutlined as ne } from "@ant-design/icons-vue";
4
4
  import { getProCardCssVar as ae } from "../../utils/css-var.mjs";
5
5
  import "../../../config-provider/index.mjs";
@@ -64,10 +64,10 @@ const be = /* @__PURE__ */ Y({
64
64
  }
65
65
  },
66
66
  setup(E) {
67
- const t = E, o = Z(), {
67
+ const t = E, r = Z(), {
68
68
  b: c
69
- } = se("pro-card"), V = de("uiMode"), M = s(() => ae(V.value)), $ = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], f = ie(), k = (e, r) => e ? r : {}, _ = (e) => {
70
- const r = [0, 0];
69
+ } = se("pro-card"), V = de("uiMode"), M = s(() => ae(V.value)), $ = ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"], f = ie(), k = (e, o) => e ? o : {}, _ = (e) => {
70
+ const o = [0, 0];
71
71
  return (Array.isArray(e) ? e : [e, 0]).forEach((a, d) => {
72
72
  if (typeof a == "object")
73
73
  for (let i = 0; i < $.length; i += 1) {
@@ -82,15 +82,15 @@ const be = /* @__PURE__ */ Y({
82
82
  xxxl: !1,
83
83
  ...f == null ? void 0 : f.value
84
84
  }[y] && a[y] !== void 0) {
85
- r[d] = a[y];
85
+ o[d] = a[y];
86
86
  break;
87
87
  }
88
88
  }
89
89
  else
90
- r[d] = a || 0;
91
- }), r;
90
+ o[d] = a || 0;
91
+ }), o;
92
92
  }, I = (e) => {
93
- let r = e;
93
+ let o = e;
94
94
  if (typeof e == "object")
95
95
  for (let a = 0; a < $.length; a += 1) {
96
96
  const d = $[a], i = {
@@ -104,30 +104,30 @@ const be = /* @__PURE__ */ Y({
104
104
  ...f == null ? void 0 : f.value
105
105
  };
106
106
  if (i != null && i[d] && (e == null ? void 0 : e[d]) !== void 0) {
107
- r = e[d];
107
+ o = e[d];
108
108
  break;
109
109
  }
110
110
  }
111
- const l = k(typeof r == "string" && /\d%|\dpx/i.test(r), {
112
- width: r,
111
+ const l = k(typeof o == "string" && /\d%|\dpx/i.test(o), {
112
+ width: o,
113
113
  flexShrink: 0
114
114
  });
115
115
  return {
116
- span: r,
116
+ span: o,
117
117
  colSpanStyle: l
118
118
  };
119
119
  }, D = s(() => _(t.gutter)), N = ee(!1), O = (e) => {
120
120
  N.value = e;
121
121
  }, F = s(() => {
122
122
  var e;
123
- return u(x, null, [t.title || ((e = o.title) == null ? void 0 : e.call(o))]);
123
+ return u(x, null, [t.title || ((e = r.title) == null ? void 0 : e.call(r))]);
124
124
  }), H = s(() => u(x, null, [t.tooltip])), Q = s(() => {
125
125
  var e;
126
- return u(x, null, [t.extra || ((e = o.extra) == null ? void 0 : e.call(o))]);
126
+ return u(x, null, [t.extra || ((e = r.extra) == null ? void 0 : e.call(r))]);
127
127
  }), T = s(() => {
128
128
  var e;
129
- return u(x, null, [t.actions || ((e = o.actions) == null ? void 0 : e.call(o))]);
130
- }), q = s(() => t.loading === !0 ? u(re, {
129
+ return u(x, null, [t.actions || ((e = r.actions) == null ? void 0 : e.call(r))]);
130
+ }), q = s(() => t.loading === !0 ? u(oe, {
131
131
  style: {
132
132
  width: "100%",
133
133
  height: "100%",
@@ -137,34 +137,34 @@ const be = /* @__PURE__ */ Y({
137
137
  }
138
138
  }, null) : u(x, null, [t.loading]));
139
139
  function J() {
140
- var r;
141
- const e = (r = o.default) == null ? void 0 : r.call(o);
142
- return O(!1), u(x, null, [e == null ? void 0 : e.map((l, a, d) => {
140
+ var o;
141
+ const e = (o = r.default) == null ? void 0 : o.call(r);
142
+ return O(!1), u(x, null, [Array.isArray(e) ? e == null ? void 0 : e.map((l, a, d) => {
143
143
  var i, y, z;
144
144
  if (l && typeof l == "object" && "type" in l && ((i = l.type) == null ? void 0 : i.isProCard) === !0) {
145
145
  O(!0);
146
146
  const U = ((y = l == null ? void 0 : l.props) == null ? void 0 : y.colSpan) || ((z = l == null ? void 0 : l.props) == null ? void 0 : z["col-span"]) || {}, {
147
147
  span: C,
148
148
  colSpanStyle: W
149
- } = I(U), B = c("col"), X = S(`${B}`, [typeof C == "number" && C >= 0 && C <= 24 ? `${B}-span-${C}` : void 0, t.split === "horizontal" && a !== d.length - 1 ? `${B}-split-horizontal` : void 0, t.split === "vertical" && a !== d.length - 1 ? `${B}-split-vertical` : void 0].filter(Boolean)), [j, w] = D.value;
149
+ } = I(U), B = c("col"), X = S(`${B}`, [typeof C == "number" && C >= 0 && C <= 24 ? `${B}-span-${C}` : void 0, t.split === "horizontal" && a !== d.length - 1 ? `${B}-split-horizontal` : void 0, t.split === "vertical" && a !== d.length - 1 ? `${B}-split-vertical` : void 0].filter(Boolean)), [A, j] = D.value;
150
150
  return u("div", {
151
151
  class: X,
152
152
  style: {
153
153
  ...W,
154
- ...k(j > 0, {
155
- paddingInlineStart: `${j / 2}px`,
156
- paddingInlineEnd: `${j / 2}px`
154
+ ...k(A > 0, {
155
+ paddingInlineStart: `${A / 2}px`,
156
+ paddingInlineEnd: `${A / 2}px`
157
157
  }),
158
- ...k(w > 0, {
159
- paddingBlockStart: `${w / 2}px`,
160
- paddingBlockEnd: `${w / 2}px`
158
+ ...k(j > 0, {
159
+ paddingBlockStart: `${j / 2}px`,
160
+ paddingBlockEnd: `${j / 2}px`
161
161
  }),
162
162
  ...t.colStyle
163
163
  }
164
164
  }, [l]);
165
165
  }
166
166
  return l;
167
- })]);
167
+ }) : e]);
168
168
  }
169
169
  const K = s(() => {
170
170
  const e = c();
@@ -176,20 +176,20 @@ const be = /* @__PURE__ */ Y({
176
176
  const e = c("body");
177
177
  return S(`${e}`, [t.layout === "center" ? `${e}-center` : void 0, t.split === "horizontal" || t.direction === "column" ? `${e}-direction-column` : void 0, t.wrap && N.value ? `${e}-wrap` : void 0].filter(Boolean));
178
178
  });
179
- return (e, r) => (n(), b("div", te({
179
+ return (e, o) => (n(), b("div", te({
180
180
  class: K.value,
181
181
  style: {
182
182
  ...M.value
183
183
  }
184
184
  }, {
185
185
  ...e.$attrs
186
- }), [t.title || o.title || t.extra || o.extra ? (n(), b("div", {
186
+ }), [t.title || r.title || t.extra || r.extra ? (n(), b("div", {
187
187
  key: 0,
188
188
  class: m(L.value),
189
- style: A({
189
+ style: w({
190
190
  ...t.headStyle
191
191
  })
192
- }, [t.title || o.title ? (n(), b("div", {
192
+ }, [t.title || r.title ? (n(), b("div", {
193
193
  key: 0,
194
194
  class: m(g(c)("header-title"))
195
195
  }, [G(e.$slots, "title", {}, () => [(n(), p(h(F.value)))]), t.tooltip ? (n(), p(g(le), {
@@ -200,22 +200,22 @@ const be = /* @__PURE__ */ Y({
200
200
  class: m(g(c)("header-title-tooltip"))
201
201
  }, null, 8, ["class"])]),
202
202
  _: 1
203
- })) : v("", !0)], 2)) : v("", !0), t.extra || o.extra ? (n(), b("div", {
203
+ })) : v("", !0)], 2)) : v("", !0), t.extra || r.extra ? (n(), b("div", {
204
204
  key: 1,
205
205
  class: m(g(c)("header-extra"))
206
- }, [G(e.$slots, "extra", {}, () => [(n(), p(h(Q.value)))])], 2)) : v("", !0)], 6)) : v("", !0), oe("div", {
206
+ }, [G(e.$slots, "extra", {}, () => [(n(), p(h(Q.value)))])], 2)) : v("", !0)], 6)) : v("", !0), re("div", {
207
207
  class: m(R.value),
208
- style: A({
208
+ style: w({
209
209
  ...t.bodyStyle
210
210
  })
211
211
  }, [t.loading ? (n(), p(h(q.value), {
212
212
  key: 0
213
213
  })) : (n(), p(h(J()), {
214
214
  key: 1
215
- }))], 6), t.actions || o.actions ? (n(), b("div", {
215
+ }))], 6), t.actions || r.actions ? (n(), b("div", {
216
216
  key: 1,
217
217
  class: m(g(c)("actions")),
218
- style: A({
218
+ style: w({
219
219
  ...t.actionsStyle
220
220
  })
221
221
  }, [(n(), p(h(T.value)))], 6)) : v("", !0)], 16));
@@ -1,10 +1,42 @@
1
- import { default as Card } from './components/card/index.vue';
2
- import { default as Divider } from './components/divider/index.vue';
3
- import { default as Title } from './components/title/index.vue';
4
- export type ProCardType = typeof Card & {
5
- isProCard: boolean;
6
- Divider: typeof Divider;
7
- Title: typeof Title;
8
- };
9
- declare const ApProCard: ProCardType;
1
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
2
+ import { ApProCardProps, ApProCardGutter, ApProCardSolts } from './interface';
3
+ declare const ApProCard: {
4
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApProCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
5
+ wrap: boolean;
6
+ boxShadow: boolean;
7
+ gutter: ApProCardGutter | ApProCardGutter[];
8
+ ghost: boolean;
9
+ bordered: boolean;
10
+ headerBordered: boolean;
11
+ hoverable: boolean;
12
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
13
+ P: {};
14
+ B: {};
15
+ D: {};
16
+ C: {};
17
+ M: {};
18
+ Defaults: {};
19
+ }, Readonly< ApProCardProps> & Readonly<{}>, {}, {}, {}, {}, {
20
+ wrap: boolean;
21
+ boxShadow: boolean;
22
+ gutter: ApProCardGutter | ApProCardGutter[];
23
+ ghost: boolean;
24
+ bordered: boolean;
25
+ headerBordered: boolean;
26
+ hoverable: boolean;
27
+ }>;
28
+ __isFragment?: never;
29
+ __isTeleport?: never;
30
+ __isSuspense?: never;
31
+ } & ComponentOptionsBase<Readonly< ApProCardProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
32
+ wrap: boolean;
33
+ boxShadow: boolean;
34
+ gutter: ApProCardGutter | ApProCardGutter[];
35
+ ghost: boolean;
36
+ bordered: boolean;
37
+ headerBordered: boolean;
38
+ hoverable: boolean;
39
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
40
+ $slots: Readonly< ApProCardSolts> & ApProCardSolts;
41
+ });
10
42
  export { ApProCard };
@@ -1,13 +1,7 @@
1
1
  import "./components/card/index.vue.mjs";
2
- import "./components/divider/index.vue.mjs";
3
- import "./components/title/index.vue.mjs";
4
- import i from "./components/card/index.vue2.mjs";
5
- import o from "./components/divider/index.vue2.mjs";
6
- import m from "./components/title/index.vue2.mjs";
7
- const r = i;
8
- r.isProCard = !0;
9
- r.Divider = o;
10
- r.Title = m;
2
+ import r from "./components/card/index.vue2.mjs";
3
+ const o = r;
4
+ o.isProCard = !0;
11
5
  export {
12
- r as ApProCard
6
+ o as ApProCard
13
7
  };
@@ -1,4 +1,4 @@
1
- import { CSSProperties, VNode, VNodeChild } from 'vue';
1
+ import { CSSProperties, VNodeChild } from 'vue';
2
2
  export type ApProCardBreakpoint = 'xxxl' | 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
3
3
  export type ApProCardGutter = number | Partial<Record<ApProCardBreakpoint, number>>;
4
4
  export type ApProCardColSpanType = number | string;
@@ -51,7 +51,7 @@ export interface ApProCardProps {
51
51
  }
52
52
  export type ApProCardSolts = {
53
53
  /** 内容区 */
54
- default?: () => VNode[];
54
+ default?: () => VNodeChild;
55
55
  /** 标题 */
56
56
  title?: () => VNodeChild;
57
57
  /** 右上角自定义区域 */
@@ -97,7 +97,7 @@ export declare function updateFormProps(item: ApColumnType<any, any>, fieldProps
97
97
  * @returns
98
98
  */
99
99
  export declare function objectToString(value: any): any;
100
- export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassName: string, slot?: (props: {
100
+ export declare function getTableTitle(column: ApColumnType<any>, titleNodeClassName: string | string[], slot?: (props: {
101
101
  title: any;
102
102
  column: ApColumnType<any>;
103
103
  }) => any, tooltipColor?: string): number | boolean | void | VNodeArrayChildren | VNode< RendererNode, RendererElement, {
package/es/src/index.d.ts CHANGED
@@ -26,3 +26,4 @@ export * from './ap-grid';
26
26
  export * from './text';
27
27
  export * from './mask';
28
28
  export * from './splitter';
29
+ export * from './ag-grid';