@aplus-frontend/ui 0.0.11 → 0.0.13

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 +166 -158
  2. package/es/src/ap-action/item/index.vue2.mjs +21 -20
  3. package/es/src/ap-action/style/item.css +20 -5
  4. package/es/src/ap-form/ap-form.vue2.mjs +42 -42
  5. package/es/src/ap-form/modal-form/index.vue.mjs +104 -104
  6. package/es/src/ap-form/style/modal-form.css +5 -1
  7. package/es/src/ap-table/ap-table.vue.d.ts +5 -1
  8. package/es/src/business/index.d.ts +126 -0
  9. package/es/src/business/index.mjs +8 -0
  10. package/es/src/business/title/ApTitle.vue.d.ts +45 -0
  11. package/es/src/business/title/ApTitle.vue.mjs +50 -0
  12. package/es/src/business/title/ApTitle.vue2.mjs +4 -0
  13. package/es/src/business/title/interface.d.ts +21 -0
  14. package/es/src/business/title/style.css +39 -0
  15. package/es/src/components.d.ts +1 -0
  16. package/es/src/editable-table/form-item.vue.d.ts +304 -0
  17. package/es/src/editable-table/form-item.vue.mjs +189 -0
  18. package/es/src/editable-table/form-item.vue2.mjs +4 -0
  19. package/es/src/editable-table/hooks/use-get-columns.d.ts +5 -0
  20. package/es/src/editable-table/hooks/use-get-columns.mjs +76 -0
  21. package/es/src/editable-table/index.d.ts +5 -0
  22. package/es/src/editable-table/index.mjs +3 -0
  23. package/es/src/editable-table/index.vue.d.ts +196 -0
  24. package/es/src/editable-table/index.vue.mjs +209 -0
  25. package/es/src/editable-table/index.vue2.mjs +4 -0
  26. package/es/src/editable-table/interface.d.ts +72 -5
  27. package/es/src/editable-table/interface.mjs +1 -0
  28. package/es/src/editable-table/style/index.css +40 -1
  29. package/es/src/editable-table/utils.mjs +10 -0
  30. package/es/src/index.d.ts +2 -0
  31. package/es/src/index.mjs +229 -220
  32. package/es/src/pro-form/components/form-action.vue2.mjs +8 -8
  33. package/es/src/theme/antd-global-overwrite/admin/index.css +8 -0
  34. package/es/src/theme/antd-global-overwrite/admin/table.css +8 -0
  35. package/es/src/theme/ap-action/item.css +20 -5
  36. package/es/src/theme/ap-form/modal-form.css +5 -1
  37. package/es/src/theme/ap-title/ap-title.css +39 -0
  38. package/es/src/theme/editable-table/index.css +40 -1
  39. package/lib/index.js +1 -1
  40. package/lib/src/ap-action/item/index.vue2.js +1 -1
  41. package/lib/src/ap-action/style/item.css +20 -5
  42. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  43. package/lib/src/ap-form/modal-form/index.vue.js +1 -1
  44. package/lib/src/ap-form/style/modal-form.css +5 -1
  45. package/lib/src/ap-table/ap-table.vue.d.ts +5 -1
  46. package/lib/src/business/index.d.ts +126 -0
  47. package/lib/src/business/index.js +1 -0
  48. package/lib/src/business/title/ApTitle.vue.d.ts +45 -0
  49. package/lib/src/business/title/ApTitle.vue.js +1 -0
  50. package/lib/src/business/title/ApTitle.vue2.js +1 -0
  51. package/lib/src/business/title/interface.d.ts +21 -0
  52. package/lib/src/business/title/style.css +39 -0
  53. package/lib/src/components.d.ts +1 -0
  54. package/lib/src/editable-table/form-item.vue.d.ts +304 -0
  55. package/lib/src/editable-table/form-item.vue.js +1 -0
  56. package/lib/src/editable-table/form-item.vue2.js +1 -0
  57. package/lib/src/editable-table/hooks/use-get-columns.d.ts +5 -0
  58. package/lib/src/editable-table/hooks/use-get-columns.js +1 -0
  59. package/lib/src/editable-table/index.d.ts +5 -0
  60. package/lib/src/editable-table/index.js +1 -0
  61. package/lib/src/editable-table/index.vue.d.ts +196 -0
  62. package/lib/src/editable-table/index.vue.js +1 -0
  63. package/lib/src/editable-table/index.vue2.js +1 -0
  64. package/lib/src/editable-table/interface.d.ts +72 -5
  65. package/lib/src/editable-table/interface.js +1 -0
  66. package/lib/src/editable-table/style/index.css +40 -1
  67. package/lib/src/editable-table/utils.js +1 -0
  68. package/lib/src/index.d.ts +2 -0
  69. package/lib/src/index.js +1 -1
  70. package/lib/src/pro-form/components/form-action.vue2.js +1 -1
  71. package/lib/src/theme/antd-global-overwrite/admin/index.css +8 -0
  72. package/lib/src/theme/antd-global-overwrite/admin/table.css +8 -0
  73. package/lib/src/theme/ap-action/item.css +20 -5
  74. package/lib/src/theme/ap-form/modal-form.css +5 -1
  75. package/lib/src/theme/ap-title/ap-title.css +39 -0
  76. package/lib/src/theme/editable-table/index.css +40 -1
  77. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { defineComponent as b, ref as k, reactive as x, computed as M, openBlock as R, createBlock as T, unref as W, mergeProps as q, withCtx as w, renderSlot as z } from "vue";
2
- import { Form as A } from "ant-design-vue";
3
- import { useProvideForm as E } from "./context.mjs";
4
- import { isArray as y } from "lodash-unified";
5
- const I = /* @__PURE__ */ b({
1
+ import { defineComponent as R, ref as k, reactive as x, toRaw as M, computed as T, openBlock as w, createBlock as W, unref as y, mergeProps as q, withCtx as z, renderSlot as A } from "vue";
2
+ import { Form as E } from "ant-design-vue";
3
+ import { useProvideForm as O } from "./context.mjs";
4
+ import { isArray as C, omit as P } from "lodash-unified";
5
+ const N = /* @__PURE__ */ R({
6
6
  __name: "ap-form",
7
7
  props: {
8
8
  layout: { default: "horizontal" },
@@ -30,32 +30,32 @@ const I = /* @__PURE__ */ b({
30
30
  onValidate: {},
31
31
  initialValues: {}
32
32
  },
33
- setup(C, { expose: B }) {
34
- const r = C;
35
- function _(e, t) {
33
+ setup(B, { expose: _ }) {
34
+ const r = B;
35
+ function b(e, t) {
36
36
  var V;
37
- if (y(e)) {
38
- let u = o;
39
- for (let d = 0; d < e.length - 1; d++)
40
- u = u[e[d]];
41
- u[e[e.length - 1]] = t;
37
+ if (C(e)) {
38
+ let n = o;
39
+ for (let u = 0; u < e.length - 1; u++)
40
+ n = n[e[u]];
41
+ n[e[e.length - 1]] = t;
42
42
  } else
43
43
  o[e] = t;
44
- let l = y(e) ? e[0] : e;
44
+ let l = C(e) ? e[0] : e;
45
45
  (V = r.onValuesChange) == null || V.call(r, { [l]: o[l] }, o), s();
46
46
  }
47
47
  const a = k(), o = x(r.initialValues || {});
48
48
  let i = [];
49
- const f = (e) => {
49
+ const d = (e) => {
50
50
  var t;
51
51
  (t = a.value) == null || t.resetFields(e), s();
52
- }, c = (e) => {
52
+ }, f = (e) => {
53
53
  var t;
54
54
  (t = a.value) == null || t.clearValidate(e);
55
- }, p = (e, t) => {
55
+ }, c = (e, t) => {
56
56
  var l;
57
57
  return (l = a.value) == null ? void 0 : l.validateFields(e, t);
58
- }, n = (e) => {
58
+ }, p = (e) => {
59
59
  var t;
60
60
  return (t = a.value) == null ? void 0 : t.getFieldsValue(e);
61
61
  }, h = (e, t) => {
@@ -64,9 +64,9 @@ const I = /* @__PURE__ */ b({
64
64
  }, g = (e, t = {}) => {
65
65
  var l;
66
66
  (l = a.value) == null || l.scrollToField(e, t);
67
- }, F = (e) => {
67
+ }, m = (e) => {
68
68
  Object.assign(o, e), s();
69
- }, m = (e, t) => {
69
+ }, F = (e, t) => {
70
70
  o[e] = t, s();
71
71
  };
72
72
  function v(e) {
@@ -76,47 +76,47 @@ const I = /* @__PURE__ */ b({
76
76
  }
77
77
  function s() {
78
78
  if (i.length) {
79
- const e = n(!0);
79
+ const e = M(o);
80
80
  i.forEach((t) => {
81
81
  t(e);
82
82
  });
83
83
  }
84
84
  }
85
- return E({
86
- model: M(() => o),
87
- updateModel: _,
85
+ return O({
86
+ model: T(() => o),
87
+ updateModel: b,
88
88
  formInstance: {
89
- resetFields: f,
90
- clearValidate: c,
91
- validateFields: p,
92
- getFieldsValue: n,
89
+ resetFields: d,
90
+ clearValidate: f,
91
+ validateFields: c,
92
+ getFieldsValue: p,
93
93
  validate: h,
94
94
  scrollToField: g,
95
- setFieldsValue: F,
96
- setFieldValue: m,
95
+ setFieldsValue: m,
96
+ setFieldValue: F,
97
97
  registerWatch: v
98
98
  }
99
- }), B({
100
- resetFields: f,
101
- clearValidate: c,
102
- validateFields: p,
103
- getFieldsValue: n,
99
+ }), _({
100
+ resetFields: d,
101
+ clearValidate: f,
102
+ validateFields: c,
103
+ getFieldsValue: p,
104
104
  validate: h,
105
105
  scrollToField: g,
106
- setFieldsValue: F,
107
- setFieldValue: m,
106
+ setFieldsValue: m,
107
+ setFieldValue: F,
108
108
  registerWatch: v
109
- }), (e, t) => (R(), T(W(A), q({
109
+ }), (e, t) => (w(), W(y(E), q({
110
110
  ref_key: "formRef",
111
111
  ref: a
112
- }, r, { model: o }), {
113
- default: w(() => [
114
- z(e.$slots, "default")
112
+ }, y(P)(r, ["initialValues"]), { model: o }), {
113
+ default: z(() => [
114
+ A(e.$slots, "default")
115
115
  ]),
116
116
  _: 3
117
117
  }, 16, ["model"]));
118
118
  }
119
119
  });
120
120
  export {
121
- I as default
121
+ N as default
122
122
  };
@@ -1,20 +1,21 @@
1
- import { isVNode as E, defineComponent as L, useSlots as A, ref as F, watch as W, cloneVNode as G, computed as H, createVNode as n, mergeProps as p, unref as r, openBlock as g, createElementBlock as J, Fragment as K, withCtx as V, renderSlot as x, createTextVNode as Q, toDisplayString as X, createBlock as N, resolveDynamicComponent as P } from "vue";
2
- import { Button as y, Flex as S, Space as Y, Modal as Z } from "ant-design-vue";
1
+ import { isVNode as U, defineComponent as $, useSlots as q, ref as F, watch as D, cloneVNode as L, computed as A, createVNode as u, mergeProps as p, unref as i, openBlock as g, createElementBlock as G, Fragment as W, withCtx as y, renderSlot as w, createTextVNode as H, toDisplayString as J, createElementVNode as K, normalizeClass as Q, createBlock as x, resolveDynamicComponent as T } from "vue";
2
+ import { Button as V, Flex as X, Modal as Y } from "ant-design-vue";
3
3
  import "../ap-form.vue.mjs";
4
4
  import "../../hooks/index.mjs";
5
- import { getSingleVNode as I } from "../../utils/slot.mjs";
5
+ import { getSingleVNode as Z } from "../../utils/slot.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import { omit as ee } from "lodash-unified";
7
+ import { omit as I } from "lodash-unified";
8
8
  import "../style/modal-form.css";
9
- import { convertReactiveToRaw as te } from "../../utils/index.mjs";
10
- import { useControllableValue as le } from "../../hooks/useControllableValue.mjs";
11
- import { useLocale as ae } from "../../config-provider/hooks/use-locale.mjs";
12
- import { useNamespace as oe } from "../../config-provider/hooks/use-namespace.mjs";
13
- import se from "../ap-form.vue2.mjs";
14
- function C(d) {
15
- return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !E(d);
9
+ import { convertReactiveToRaw as ee } from "../../utils/index.mjs";
10
+ import { useControllableValue as te } from "../../hooks/useControllableValue.mjs";
11
+ import { useLocale as le } from "../../config-provider/hooks/use-locale.mjs";
12
+ import { useGlobalConfig as oe } from "../../config-provider/hooks/use-global-config.mjs";
13
+ import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
14
+ import ie from "../ap-form.vue2.mjs";
15
+ function se(d) {
16
+ return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !U(d);
16
17
  }
17
- const xe = /* @__PURE__ */ L({
18
+ const Pe = /* @__PURE__ */ $({
18
19
  __name: "index",
19
20
  props: {
20
21
  layout: {
@@ -85,155 +86,154 @@ const xe = /* @__PURE__ */ L({
85
86
  },
86
87
  emits: ["update:open"],
87
88
  setup(d, {
88
- expose: _,
89
- emit: R
89
+ expose: N,
90
+ emit: P
90
91
  }) {
91
- const a = d, b = A(), j = R, o = F(), c = F(), u = F(!1), {
92
- value: M,
93
- updateValue: f
94
- } = le(a, j, {
92
+ const o = d, b = q(), S = P, a = F(), c = F(), r = F(!1), {
93
+ value: _,
94
+ updateValue: m
95
+ } = te(o, S, {
95
96
  valuePropName: "open",
96
97
  defaultValue: !1
97
98
  }), {
98
99
  t: v
99
- } = ae(), {
100
- b: O,
101
- e: B
102
- } = oe("ap-form-modal-form");
103
- W(() => o.value, (t) => {
104
- var e;
105
- t && c.value && ((e = t.setFieldsValue) == null || e.call(t, c.value), c.value = void 0);
100
+ } = le(), h = oe("uiMode"), {
101
+ b: R,
102
+ e: C
103
+ } = ae("ap-form-modal-form");
104
+ D(() => a.value, (e) => {
105
+ var t;
106
+ e && c.value && ((t = e.setFieldsValue) == null || t.call(e, c.value), c.value = void 0);
106
107
  });
107
- const k = I(b.trigger), U = k ? G(k, {
108
+ const B = Z(b.trigger), M = B ? L(B, {
108
109
  onClick: () => {
109
- f(!0);
110
+ m(!0);
110
111
  }
111
- }) : null, $ = H(() => {
112
- var i, m, h, T;
113
- let t;
112
+ }) : null, j = A(() => {
113
+ var t, l, n, f;
114
114
  const e = [];
115
- if (a.submitter === !1)
115
+ if (o.submitter === !1)
116
116
  return null;
117
- if (a.showCancel) {
117
+ if (o.showCancel) {
118
118
  let s;
119
- e.push(n(y, {
120
- onClick: w,
121
- disabled: u.value
122
- }, C(s = v("ap.common.cancelText")) ? s : {
119
+ e.push(u(V, {
120
+ onClick: k,
121
+ disabled: r.value
122
+ }, se(s = v("ap.common.cancelText")) ? s : {
123
123
  default: () => [s]
124
124
  }));
125
125
  }
126
- return ((i = a.submitter) == null ? void 0 : i.resetButtonProps) !== !1 && e.push(n(y, p(((m = a.submitter) == null ? void 0 : m.resetButtonProps) || {}, {
126
+ return ((t = o.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(u(V, p(((l = o.submitter) == null ? void 0 : l.resetButtonProps) || {}, {
127
127
  key: "submit",
128
- disabled: u.value,
129
- onClick: q
128
+ disabled: r.value,
129
+ onClick: O
130
130
  }), {
131
131
  default: () => {
132
132
  var s;
133
- return [((s = a.submitter) == null ? void 0 : s.resetText) || v("ap.common.resetText")];
133
+ return [((s = o.submitter) == null ? void 0 : s.resetText) || v("ap.common.resetText")];
134
134
  }
135
- })), ((h = a.submitter) == null ? void 0 : h.submitButtonProps) !== !1 && e.push(n(y, p({
135
+ })), ((n = o.submitter) == null ? void 0 : n.submitButtonProps) !== !1 && e.push(u(V, p({
136
136
  type: "primary",
137
137
  key: "submit"
138
- }, ((T = a.submitter) == null ? void 0 : T.submitButtonProps) || {}, {
139
- loading: u.value,
138
+ }, ((f = o.submitter) == null ? void 0 : f.submitButtonProps) || {}, {
139
+ loading: r.value,
140
140
  onClick: z
141
141
  }), {
142
142
  default: () => {
143
143
  var s;
144
- return [((s = a.submitter) == null ? void 0 : s.submitText) || v("ap.common.okText")];
144
+ return [((s = o.submitter) == null ? void 0 : s.submitText) || v("ap.common.okText")];
145
145
  }
146
- })), b.submitter ? n(S, {
146
+ })), u(X, {
147
147
  justify: "flex-end",
148
- class: B("footer")
149
- }, C(t = b.submitter(e)) ? t : {
150
- default: () => [t]
151
- }) : n(S, {
152
- justify: "flex-end",
153
- class: B("footer")
148
+ class: C(i(h) === "admin" ? "footer-admin" : "footer")
154
149
  }, {
155
- default: () => [n(Y, null, C(e) ? e : {
156
- default: () => [e]
157
- })]
150
+ default: () => [b.submitter ? b.submitter(e) : e]
158
151
  });
159
152
  });
160
- function q() {
161
- var t, e, l;
162
- a.submitter !== !1 && ((t = o.value) == null || t.resetFields(), (l = (e = a.submitter) == null ? void 0 : e.onReset) == null || l.call(e));
153
+ function O() {
154
+ var e, t, l;
155
+ o.submitter !== !1 && ((e = a.value) == null || e.resetFields(), (l = (t = o.submitter) == null ? void 0 : t.onReset) == null || l.call(t));
163
156
  }
164
157
  async function z() {
165
- var t, e, l, i;
166
- if (a.submitter !== !1)
158
+ var e, t, l, n;
159
+ if (o.submitter !== !1)
167
160
  try {
168
- const m = await ((t = o.value) == null ? void 0 : t.validateFields());
169
- (l = (e = a.submitter) == null ? void 0 : e.onSubmit) == null || l.call(e), u.value = !0, await ((i = a.onFinish) == null ? void 0 : i.call(a, te(m))) && f(!1);
161
+ const f = await ((e = a.value) == null ? void 0 : e.validateFields());
162
+ (l = (t = o.submitter) == null ? void 0 : t.onSubmit) == null || l.call(t), r.value = !0, await ((n = o.onFinish) == null ? void 0 : n.call(o, ee(f))) && m(!1);
170
163
  } finally {
171
- u.value = !1;
164
+ r.value = !1;
172
165
  }
173
166
  }
174
- function w() {
175
- r(u) || f(!1);
167
+ function k() {
168
+ i(r) || m(!1);
176
169
  }
177
- function D(t) {
178
- !t && r(u) || f(t);
170
+ function E(e) {
171
+ !e && i(r) || m(e);
179
172
  }
180
- return _({
181
- resetFields: (t) => {
182
- var e;
183
- (e = o.value) == null || e.resetFields(t);
173
+ return N({
174
+ resetFields: (e) => {
175
+ var t;
176
+ (t = a.value) == null || t.resetFields(e);
184
177
  },
185
- clearValidate: (t) => {
186
- var e;
187
- (e = o.value) == null || e.clearValidate(t);
178
+ clearValidate: (e) => {
179
+ var t;
180
+ (t = a.value) == null || t.clearValidate(e);
188
181
  },
189
- validateFields: (t, e) => {
182
+ validateFields: (e, t) => {
190
183
  var l;
191
- return (l = o.value) == null ? void 0 : l.validateFields(t, e);
184
+ return (l = a.value) == null ? void 0 : l.validateFields(e, t);
192
185
  },
193
- getFieldsValue: (t) => {
194
- var e;
195
- return (e = o.value) == null ? void 0 : e.getFieldsValue(t);
186
+ getFieldsValue: (e) => {
187
+ var t;
188
+ return (t = a.value) == null ? void 0 : t.getFieldsValue(e);
196
189
  },
197
- validate: (t, e) => {
190
+ validate: (e, t) => {
198
191
  var l;
199
- return (l = o.value) == null ? void 0 : l.validate(t, e);
192
+ return (l = a.value) == null ? void 0 : l.validate(e, t);
200
193
  },
201
- scrollToField: (t, e = {}) => {
194
+ scrollToField: (e, t = {}) => {
202
195
  var l;
203
- (l = o.value) == null || l.scrollToField(t, e);
196
+ (l = a.value) == null || l.scrollToField(e, t);
204
197
  },
205
- setFieldValue: (t, e) => {
206
- var l, i;
207
- (i = (l = o.value) == null ? void 0 : l.setFieldValue) == null || i.call(l, t, e);
198
+ setFieldValue: (e, t) => {
199
+ var l, n;
200
+ (n = (l = a.value) == null ? void 0 : l.setFieldValue) == null || n.call(l, e, t);
208
201
  },
209
- setFieldsValue: (t) => {
210
- var e, l;
211
- if (!o.value) {
212
- c.value = t;
202
+ setFieldsValue: (e) => {
203
+ var t, l;
204
+ if (!a.value) {
205
+ c.value = e;
213
206
  return;
214
207
  }
215
- (l = (e = o.value) == null ? void 0 : e.setFieldsValue) == null || l.call(e, t);
208
+ (l = (t = a.value) == null ? void 0 : t.setFieldsValue) == null || l.call(t, e);
216
209
  }
217
- }), (t, e) => (g(), J(K, null, [n(r(Z), p(t.modalProps, {
218
- open: r(M),
219
- "onUpdate:open": D,
220
- onCancel: w,
210
+ }), (e, t) => (g(), G(W, null, [u(i(Y), p(e.modalProps, {
211
+ open: i(_),
212
+ "onUpdate:open": E,
213
+ onCancel: k,
221
214
  footer: null,
222
- width: t.width,
223
- class: r(O)()
215
+ width: e.width,
216
+ class: i(R)(),
217
+ "body-style": {
218
+ padding: i(h) === "admin" ? "0px !important" : "20px !important"
219
+ // 这里使用内联样式目的是为了使用最高优先级覆盖设置的全局样式
220
+ // 使用ModalForm你可能无法再自定义body的样式
221
+ }
224
222
  }), {
225
- title: V(() => [x(t.$slots, "title", {}, () => [Q(X(a.title), 1)])]),
226
- default: V(() => [n(se, p({
223
+ title: y(() => [w(e.$slots, "title", {}, () => [H(J(o.title), 1)])]),
224
+ default: y(() => [K("div", {
225
+ class: Q(i(C)(i(h) === "admin" ? "content-admin" : "content"))
226
+ }, [u(ie, p({
227
227
  ref_key: "formRef",
228
- ref: o
229
- }, r(ee)(a, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
230
- default: V(() => [x(t.$slots, "default")]),
228
+ ref: a
229
+ }, i(I)(o, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
230
+ default: y(() => [w(e.$slots, "default")]),
231
231
  _: 3
232
- }, 16), (g(), N(P($.value)))]),
232
+ }, 16)], 2), (g(), x(T(j.value)))]),
233
233
  _: 3
234
- }, 16, ["open", "width", "class"]), (g(), N(P(r(U))))], 64));
234
+ }, 16, ["open", "width", "class", "body-style"]), (g(), x(T(i(M))))], 64));
235
235
  }
236
236
  });
237
237
  export {
238
- xe as default
238
+ Pe as default
239
239
  };
@@ -6,12 +6,16 @@
6
6
  border-bottom: 1px solid #E9EDF3;
7
7
  margin-bottom: 0;
8
8
  }
9
- .aplus-ap-form-modal-form .ant-modal-body {
9
+ .aplus-ap-form-modal-form__content-admin {
10
10
  padding: 20px;
11
11
  }
12
12
  .aplus-ap-form-modal-form__footer {
13
13
  padding-top: 20px;
14
14
  }
15
+ .aplus-ap-form-modal-form__footer-admin {
16
+ border-top: 1px solid #E9EDF3;
17
+ padding: 12px 20px;
18
+ }
15
19
  .aplus-ap-form-modal-form .ant-modal-close {
16
20
  top: 16px;
17
21
  }
@@ -1,4 +1,4 @@
1
- import { ApTableProps } from './interface';
1
+ import { ApColumnType, ApTableProps } from './interface';
2
2
  import { ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
3
3
  import { SpinSize } from 'ant-design-vue/es/spin/Spin';
4
4
  import { VueTypeValidableDef } from '../../node_modules/vue-types';
@@ -23,6 +23,10 @@ type ApTableSlots = {
23
23
  customFilterIcon?: any;
24
24
  customFilterDropdown?: any;
25
25
  searchFormExtra?: any;
26
+ headerCell?: (props: {
27
+ title: any;
28
+ column: ApColumnType;
29
+ }) => void;
26
30
  };
27
31
  /**
28
32
  * 设置查询表单值
@@ -0,0 +1,126 @@
1
+ import { default as ApTitle } from './title/ApTitle.vue';
2
+ import { ApTitleProps } from './title/interface';
3
+ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
4
+
5
+ export declare const _ApTitle: {
6
+ new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
7
+ trigger: {
8
+ type: PropType<"click" | "hover" | "contextmenu" | "focus">;
9
+ required: true;
10
+ default: string;
11
+ };
12
+ placement: {
13
+ type: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
14
+ required: true;
15
+ default: string;
16
+ };
17
+ title: {
18
+ type: PropType<string>;
19
+ required: true;
20
+ default: string;
21
+ };
22
+ helpMessage: {
23
+ type: PropType<string>;
24
+ required: true;
25
+ default: string;
26
+ };
27
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
28
+ trigger: {
29
+ type: PropType<"click" | "hover" | "contextmenu" | "focus">;
30
+ required: true;
31
+ default: string;
32
+ };
33
+ placement: {
34
+ type: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
35
+ required: true;
36
+ default: string;
37
+ };
38
+ title: {
39
+ type: PropType<string>;
40
+ required: true;
41
+ default: string;
42
+ };
43
+ helpMessage: {
44
+ type: PropType<string>;
45
+ required: true;
46
+ default: string;
47
+ };
48
+ }>>, {
49
+ trigger: "click" | "hover" | "contextmenu" | "focus";
50
+ placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
51
+ title: string;
52
+ helpMessage: string;
53
+ }, true, {}, {}, {
54
+ P: {};
55
+ B: {};
56
+ D: {};
57
+ C: {};
58
+ M: {};
59
+ Defaults: {};
60
+ }, Readonly< ExtractPropTypes<{
61
+ trigger: {
62
+ type: PropType<"click" | "hover" | "contextmenu" | "focus">;
63
+ required: true;
64
+ default: string;
65
+ };
66
+ placement: {
67
+ type: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
68
+ required: true;
69
+ default: string;
70
+ };
71
+ title: {
72
+ type: PropType<string>;
73
+ required: true;
74
+ default: string;
75
+ };
76
+ helpMessage: {
77
+ type: PropType<string>;
78
+ required: true;
79
+ default: string;
80
+ };
81
+ }>>, {}, {}, {}, {}, {
82
+ trigger: "click" | "hover" | "contextmenu" | "focus";
83
+ placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
84
+ title: string;
85
+ helpMessage: string;
86
+ }>;
87
+ __isFragment?: undefined;
88
+ __isTeleport?: undefined;
89
+ __isSuspense?: undefined;
90
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
91
+ trigger: {
92
+ type: PropType<"click" | "hover" | "contextmenu" | "focus">;
93
+ required: true;
94
+ default: string;
95
+ };
96
+ placement: {
97
+ type: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
98
+ required: true;
99
+ default: string;
100
+ };
101
+ title: {
102
+ type: PropType<string>;
103
+ required: true;
104
+ default: string;
105
+ };
106
+ helpMessage: {
107
+ type: PropType<string>;
108
+ required: true;
109
+ default: string;
110
+ };
111
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
112
+ trigger: "click" | "hover" | "contextmenu" | "focus";
113
+ placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
114
+ title: string;
115
+ helpMessage: string;
116
+ }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
117
+ $slots: {
118
+ prefix?(_: {}): any;
119
+ suffix?(_: {}): any;
120
+ };
121
+ }) & Plugin<any[]> & (new (...args: any[]) => {
122
+ $props: {
123
+ onClick?: (() => void) | undefined;
124
+ };
125
+ });
126
+ export { ApTitle, ApTitleProps };
@@ -0,0 +1,8 @@
1
+ import { withInstall as t } from "@aplus-frontend/utils";
2
+ import "./title/ApTitle.vue2.mjs";
3
+ import i from "./title/ApTitle.vue.mjs";
4
+ const r = t(i);
5
+ export {
6
+ i as ApTitle,
7
+ r as _ApTitle
8
+ };
@@ -0,0 +1,45 @@
1
+ import { ApTitleProps } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+
4
+ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTitleProps>, {
5
+ title: string;
6
+ helpMessage: string;
7
+ placement: string;
8
+ trigger: string;
9
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTitleProps>, {
10
+ title: string;
11
+ helpMessage: string;
12
+ placement: string;
13
+ trigger: string;
14
+ }>>>, {
15
+ trigger: "click" | "hover" | "contextmenu" | "focus";
16
+ placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
17
+ title: string;
18
+ helpMessage: string;
19
+ }, {}>, {
20
+ prefix?(_: {}): any;
21
+ suffix?(_: {}): any;
22
+ }>;
23
+ export default _default;
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ type __VLS_WithDefaults<P, D> = {
34
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
+ default: D[K];
36
+ }> : P[K];
37
+ };
38
+ type __VLS_Prettify<T> = {
39
+ [K in keyof T]: T[K];
40
+ } & {};
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };