@aplus-frontend/ui 0.0.12 → 0.0.14

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 (151) hide show
  1. package/es/index.mjs +146 -140
  2. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  3. package/es/src/ap-field/checkbox/index.vue.mjs +2 -0
  4. package/es/src/ap-field/date/index.vue.mjs +2 -0
  5. package/es/src/ap-field/date-range/index.vue.mjs +2 -0
  6. package/es/src/ap-field/interface.d.ts +2 -0
  7. package/es/src/ap-field/number/index.vue.mjs +2 -0
  8. package/es/src/ap-field/radio/index.vue.mjs +9 -7
  9. package/es/src/ap-field/rate/index.vue.mjs +4 -2
  10. package/es/src/ap-field/segmented/index.vue.mjs +15 -13
  11. package/es/src/ap-field/select/index.vue.mjs +18 -16
  12. package/es/src/ap-field/slider/index.vue.mjs +11 -9
  13. package/es/src/ap-field/switch/index.vue.mjs +10 -8
  14. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  15. package/es/src/ap-field/text/index.vue2.mjs +12 -10
  16. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  17. package/es/src/ap-field/text/password.vue.mjs +16 -14
  18. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  19. package/es/src/ap-field/text-area/index.vue.mjs +2 -0
  20. package/es/src/ap-form/ap-form.vue2.mjs +22 -22
  21. package/es/src/ap-table/ap-table.vue.d.ts +5 -1
  22. package/es/src/ap-table/constants.d.ts +715 -487
  23. package/es/src/ap-table/utils.d.ts +3 -3
  24. package/es/src/business/index.d.ts +123 -0
  25. package/es/src/business/index.mjs +7 -0
  26. package/es/src/business/title/ApTitle.vue.d.ts +45 -0
  27. package/es/src/business/title/ApTitle.vue.mjs +4 -0
  28. package/es/src/business/title/ApTitle.vue2.mjs +50 -0
  29. package/es/src/business/title/interface.d.ts +21 -0
  30. package/es/src/business/title/style.css +39 -0
  31. package/es/src/components.d.ts +1 -0
  32. package/es/src/config-provider/config-provider-props.d.ts +1 -1
  33. package/es/src/config-provider/config-provider-props.mjs +5 -6
  34. package/es/src/config-provider/config-provider.d.ts +11 -11
  35. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
  36. package/es/src/config-provider/index.d.ts +31 -31
  37. package/es/src/description/description.vue.d.ts +1 -1
  38. package/es/src/description/index.d.ts +3 -3
  39. package/es/src/editable-table/form-item.vue.d.ts +304 -0
  40. package/es/src/editable-table/form-item.vue.mjs +189 -0
  41. package/es/src/editable-table/form-item.vue2.mjs +4 -0
  42. package/es/src/editable-table/hooks/use-get-columns.d.ts +5 -0
  43. package/es/src/editable-table/hooks/use-get-columns.mjs +76 -0
  44. package/es/src/editable-table/index.d.ts +5 -0
  45. package/es/src/editable-table/index.mjs +3 -0
  46. package/es/src/editable-table/index.vue.d.ts +196 -0
  47. package/es/src/editable-table/index.vue.mjs +209 -0
  48. package/es/src/editable-table/index.vue2.mjs +4 -0
  49. package/es/src/editable-table/interface.d.ts +71 -6
  50. package/es/src/editable-table/interface.mjs +1 -0
  51. package/es/src/editable-table/style/index.css +35 -0
  52. package/es/src/editable-table/utils.mjs +10 -0
  53. package/es/src/icon-picker/icon-picker.vue.d.ts +2 -2
  54. package/es/src/icon-picker/index.d.ts +26 -26
  55. package/es/src/index.d.ts +2 -0
  56. package/es/src/index.mjs +232 -225
  57. package/es/src/modal/basic.vue.d.ts +1 -1
  58. package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
  59. package/es/src/modal/index.d.ts +2 -2
  60. package/es/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  61. package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  62. package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
  63. package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  64. package/es/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  65. package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
  66. package/es/src/pro-form/hooks/use-label-width.d.ts +6 -6
  67. package/es/src/pro-form/pro-form.vue.d.ts +1 -1
  68. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  69. package/es/src/pro-table/pro-table.vue.d.ts +1 -1
  70. package/es/src/scroll-bar/index.d.ts +12 -12
  71. package/es/src/theme/antd-global-overwrite/admin/index.css +8 -0
  72. package/es/src/theme/antd-global-overwrite/admin/table.css +8 -0
  73. package/es/src/theme/ap-title/ap-title.css +39 -0
  74. package/es/src/theme/editable-table/index.css +35 -0
  75. package/es/src/utils/config-provider-preset.d.ts +12 -12
  76. package/lib/index.js +1 -1
  77. package/lib/src/ap-action/item/index.vue2.js +1 -1
  78. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  79. package/lib/src/ap-field/date/index.vue.js +1 -1
  80. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  81. package/lib/src/ap-field/interface.d.ts +2 -0
  82. package/lib/src/ap-field/number/index.vue.js +1 -1
  83. package/lib/src/ap-field/radio/index.vue.js +1 -1
  84. package/lib/src/ap-field/rate/index.vue.js +1 -1
  85. package/lib/src/ap-field/segmented/index.vue.js +1 -1
  86. package/lib/src/ap-field/select/index.vue.js +1 -1
  87. package/lib/src/ap-field/slider/index.vue.js +1 -1
  88. package/lib/src/ap-field/switch/index.vue.js +1 -1
  89. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  90. package/lib/src/ap-field/text/index.vue2.js +1 -1
  91. package/lib/src/ap-field/text/password.vue.d.ts +1 -1
  92. package/lib/src/ap-field/text/password.vue.js +1 -1
  93. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  94. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  95. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  96. package/lib/src/ap-table/ap-table.vue.d.ts +5 -1
  97. package/lib/src/ap-table/constants.d.ts +715 -487
  98. package/lib/src/ap-table/utils.d.ts +3 -3
  99. package/lib/src/business/index.d.ts +123 -0
  100. package/lib/src/business/index.js +1 -0
  101. package/lib/src/business/title/ApTitle.vue.d.ts +45 -0
  102. package/lib/src/business/title/ApTitle.vue.js +1 -0
  103. package/lib/src/business/title/ApTitle.vue2.js +1 -0
  104. package/lib/src/business/title/interface.d.ts +21 -0
  105. package/lib/src/business/title/style.css +39 -0
  106. package/lib/src/components.d.ts +1 -0
  107. package/lib/src/config-provider/config-provider-props.d.ts +1 -1
  108. package/lib/src/config-provider/config-provider-props.js +1 -1
  109. package/lib/src/config-provider/config-provider.d.ts +11 -11
  110. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
  111. package/lib/src/config-provider/index.d.ts +31 -31
  112. package/lib/src/description/description.vue.d.ts +1 -1
  113. package/lib/src/description/index.d.ts +3 -3
  114. package/lib/src/editable-table/form-item.vue.d.ts +304 -0
  115. package/lib/src/editable-table/form-item.vue.js +1 -0
  116. package/lib/src/editable-table/form-item.vue2.js +1 -0
  117. package/lib/src/editable-table/hooks/use-get-columns.d.ts +5 -0
  118. package/lib/src/editable-table/hooks/use-get-columns.js +1 -0
  119. package/lib/src/editable-table/index.d.ts +5 -0
  120. package/lib/src/editable-table/index.js +1 -0
  121. package/lib/src/editable-table/index.vue.d.ts +196 -0
  122. package/lib/src/editable-table/index.vue.js +1 -0
  123. package/lib/src/editable-table/index.vue2.js +1 -0
  124. package/lib/src/editable-table/interface.d.ts +71 -6
  125. package/lib/src/editable-table/interface.js +1 -0
  126. package/lib/src/editable-table/style/index.css +35 -0
  127. package/lib/src/editable-table/utils.js +1 -0
  128. package/lib/src/icon-picker/icon-picker.vue.d.ts +2 -2
  129. package/lib/src/icon-picker/index.d.ts +26 -26
  130. package/lib/src/index.d.ts +2 -0
  131. package/lib/src/index.js +1 -1
  132. package/lib/src/modal/basic.vue.d.ts +1 -1
  133. package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
  134. package/lib/src/modal/index.d.ts +2 -2
  135. package/lib/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  136. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  137. package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
  138. package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  139. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  140. package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
  141. package/lib/src/pro-form/hooks/use-label-width.d.ts +6 -6
  142. package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
  143. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  144. package/lib/src/pro-table/pro-table.vue.d.ts +1 -1
  145. package/lib/src/scroll-bar/index.d.ts +12 -12
  146. package/lib/src/theme/antd-global-overwrite/admin/index.css +8 -0
  147. package/lib/src/theme/antd-global-overwrite/admin/table.css +8 -0
  148. package/lib/src/theme/ap-title/ap-title.css +39 -0
  149. package/lib/src/theme/editable-table/index.css +35 -0
  150. package/lib/src/utils/config-provider-preset.d.ts +12 -12
  151. package/package.json +1 -1
@@ -9,6 +9,8 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
9
9
  __name: "index",
10
10
  props: {
11
11
  mode: { default: "edit" },
12
+ class: {},
13
+ style: {},
12
14
  defaultValue: {},
13
15
  notFoundContent: {},
14
16
  suffixIcon: {},
@@ -95,20 +97,20 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
95
97
  return;
96
98
  r += 1;
97
99
  const t = r;
98
- i.value = [], l.value = !0, e.request(o).then((n) => {
99
- r === t && (i.value = n);
100
+ i.value = [], n.value = !0, e.request(o).then((l) => {
101
+ r === t && (i.value = l);
100
102
  }).finally(() => {
101
- l.value = !1;
103
+ n.value = !1;
102
104
  });
103
- }, 300), e = y, i = c((e == null ? void 0 : e.options) || []), d = c(), l = c((e == null ? void 0 : e.loading) || !1), C = g;
105
+ }, 300), e = y, i = c((e == null ? void 0 : e.options) || []), d = c(), n = c((e == null ? void 0 : e.loading) || !1), C = g;
104
106
  k(() => {
105
107
  if (h(e.request)) {
106
- l.value = !0, r += 1;
108
+ n.value = !0, r += 1;
107
109
  const o = r;
108
110
  e.request().then((t) => {
109
111
  o === r && (i.value = t);
110
112
  }).finally(() => {
111
- l.value = !1;
113
+ n.value = !1;
112
114
  });
113
115
  }
114
116
  });
@@ -118,21 +120,21 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
118
120
  return e.emptyText;
119
121
  if (z(o))
120
122
  return o.map(
121
- (n) => {
123
+ (l) => {
122
124
  var u;
123
- return (u = a(i).find((s) => s.value === n)) == null ? void 0 : u.label;
125
+ return (u = a(i).find((s) => s.value === l)) == null ? void 0 : u.label;
124
126
  }
125
127
  ).filter(Boolean).join("、") || e.emptyText;
126
- const t = a(i).find((n) => n.value === o);
128
+ const t = a(i).find((l) => l.value === o);
127
129
  return (t == null ? void 0 : t.label) || e.emptyText;
128
130
  }), F = p(() => {
129
131
  const o = !!(e != null && e.showSearch), t = e.searchMode;
130
- let n = {};
131
- return o && (n = t === "request" ? {
132
+ let l = {};
133
+ return o && (l = t === "request" ? {
132
134
  showArrow: !1,
133
135
  defaultActiveFirstOption: !1,
134
136
  onSearch: B,
135
- notFoundContent: l.value ? void 0 : null
137
+ notFoundContent: n.value ? void 0 : null
136
138
  } : {
137
139
  showArrow: !0,
138
140
  filterOption: K(e == null ? void 0 : e.filterOption) ? S : e == null ? void 0 : e.filterOption
@@ -147,7 +149,7 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
147
149
  "searchMode"
148
150
  ])
149
151
  ),
150
- ...n
152
+ ...l
151
153
  };
152
154
  });
153
155
  function I() {
@@ -171,15 +173,15 @@ const G = { key: 0 }, oe = /* @__PURE__ */ P({
171
173
  value: a(f),
172
174
  "onUpdate:value": a(b),
173
175
  options: i.value,
174
- loading: l.value
176
+ loading: n.value
175
177
  }), q({ _: 2 }, [
176
- N(o.$slots, (n, u) => ({
178
+ N(o.$slots, (l, u) => ({
177
179
  name: u,
178
180
  fn: v((s) => [
179
181
  _(o.$slots, u, R(U(s || {})))
180
182
  ])
181
183
  })),
182
- l.value ? {
184
+ n.value ? {
183
185
  name: "notFoundContent",
184
186
  fn: v(() => [
185
187
  D(a(j), { size: "small" })
@@ -8,6 +8,8 @@ const I = /* @__PURE__ */ x({
8
8
  __name: "index",
9
9
  props: {
10
10
  mode: {},
11
+ class: {},
12
+ style: {},
11
13
  id: {},
12
14
  prefixCls: {},
13
15
  tooltipPrefixCls: {},
@@ -39,30 +41,30 @@ const I = /* @__PURE__ */ x({
39
41
  emptyText: { default: "--" }
40
42
  },
41
43
  emits: ["update:value"],
42
- setup(p, { expose: i, emit: s }) {
43
- const d = g(), a = k(), l = p, f = s, { value: r, updateValue: m } = E(
44
- l,
44
+ setup(p, { expose: s, emit: i }) {
45
+ const d = g(), l = k(), a = p, f = i, { value: r, updateValue: m } = E(
46
+ a,
45
47
  f
46
48
  ), c = C(() => {
47
49
  const e = o(r);
48
- return w(e) ? l.emptyText : z(e) ? `${e[0]}-${e[1]}` : e;
50
+ return w(e) ? a.emptyText : z(e) ? `${e[0]}-${e[1]}` : e;
49
51
  });
50
52
  function v() {
51
53
  var e, t;
52
- (t = (e = a.value) == null ? void 0 : e.focus) == null || t.call(e);
54
+ (t = (e = l.value) == null ? void 0 : e.focus) == null || t.call(e);
53
55
  }
54
56
  function y() {
55
57
  var e, t;
56
- (t = (e = a.value) == null ? void 0 : e.blur) == null || t.call(e);
58
+ (t = (e = l.value) == null ? void 0 : e.blur) == null || t.call(e);
57
59
  }
58
- return i({
60
+ return s({
59
61
  focus: v,
60
62
  blur: y
61
63
  }), (e, t) => e.mode === "read" ? (u(), S(_, { key: 0 }, [
62
64
  P(T(c.value), 1)
63
65
  ], 64)) : (u(), V(o(N), b(
64
66
  { key: 1 },
65
- o(D)(l, [
67
+ o(D)(a, [
66
68
  "value",
67
69
  "onUpdate:value",
68
70
  "mode",
@@ -73,7 +75,7 @@ const I = /* @__PURE__ */ x({
73
75
  value: o(r),
74
76
  "onUpdate:value": o(m),
75
77
  ref_key: "sliderRef",
76
- ref: a
78
+ ref: l
77
79
  }
78
80
  ), h({ _: 2 }, [
79
81
  F(d, (L, n) => ({
@@ -9,6 +9,8 @@ const J = /* @__PURE__ */ F({
9
9
  __name: "index",
10
10
  props: {
11
11
  mode: {},
12
+ class: {},
13
+ style: {},
12
14
  id: {},
13
15
  prefixCls: {},
14
16
  size: {
@@ -79,9 +81,9 @@ const J = /* @__PURE__ */ F({
79
81
  await n.onAction(e) && a(e);
80
82
  }
81
83
  const $ = D(() => {
82
- var t, d;
84
+ var d, t;
83
85
  const e = o(l);
84
- return L(e) ? u(s, null, [n.emptyText]) : e === n.checkedValue ? u(s, null, [n.checkedChildren || ((t = c.checkedChildren) == null ? void 0 : t.call(c)) || `${n.checkedValue}`]) : u(s, null, [n.unCheckedChildren || ((d = c.unCheckedChildren) == null ? void 0 : d.call(c)) || `${n.unCheckedValue}`]);
86
+ return L(e) ? u(s, null, [n.emptyText]) : e === n.checkedValue ? u(s, null, [n.checkedChildren || ((d = c.checkedChildren) == null ? void 0 : d.call(c)) || `${n.checkedValue}`]) : u(s, null, [n.unCheckedChildren || ((t = c.unCheckedChildren) == null ? void 0 : t.call(c)) || `${n.unCheckedValue}`]);
85
87
  });
86
88
  return (e, r) => e.mode === "read" ? (h(), k(T($.value), {
87
89
  key: 0
@@ -95,9 +97,9 @@ const J = /* @__PURE__ */ F({
95
97
  loading: e.loading ?? i.value
96
98
  }), g({
97
99
  _: 2
98
- }, [V(c, (t, d) => ({
99
- name: d,
100
- fn: C((m) => [v(e.$slots, d, B(w(m || {})))])
100
+ }, [V(c, (d, t) => ({
101
+ name: t,
102
+ fn: C((m) => [v(e.$slots, t, B(w(m || {})))])
101
103
  }))]), 1040, ["checked", "loading"])) : (h(), k(o(K), p({
102
104
  key: 1
103
105
  }, e.confirm || {}, {
@@ -109,9 +111,9 @@ const J = /* @__PURE__ */ F({
109
111
  loading: e.loading ?? i.value
110
112
  }), g({
111
113
  _: 2
112
- }, [V(c, (t, d) => ({
113
- name: d,
114
- fn: C((m) => [v(e.$slots, d, B(w(m || {})))])
114
+ }, [V(c, (d, t) => ({
115
+ name: t,
116
+ fn: C((m) => [v(e.$slots, t, B(w(m || {})))])
115
117
  }))]), 1040, ["checked", "loading"])]),
116
118
  _: 3
117
119
  }, 16))], 64));
@@ -34,7 +34,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
34
34
  }>>> & {
35
35
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
36
36
  }, {
37
- type: "number" | "text" | "color" | "button" | "time" | "image" | "search" | "submit" | "reset" | "hidden" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "date" | "week" | "month" | "datetime-local" | "file" | "password";
37
+ type: "number" | "text" | "color" | "reset" | "submit" | "button" | "time" | "month" | "date" | "week" | "hidden" | "search" | "image" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "datetime-local" | "file" | "password";
38
38
  mode: FieldMode;
39
39
  bordered: boolean;
40
40
  allowClear: boolean;
@@ -3,8 +3,8 @@ import { Input as V } from "ant-design-vue";
3
3
  import "../../hooks/index.mjs";
4
4
  import { omit as j } from "lodash-unified";
5
5
  import { useControllableValue as F } from "../../hooks/useControllableValue.mjs";
6
- function T(u) {
7
- return typeof u == "function" || Object.prototype.toString.call(u) === "[object Object]" && !x(u);
6
+ function T(l) {
7
+ return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !x(l);
8
8
  }
9
9
  const K = /* @__PURE__ */ v({
10
10
  name: "ApFieldText",
@@ -13,6 +13,8 @@ const K = /* @__PURE__ */ v({
13
13
  mode: {
14
14
  default: "edit"
15
15
  },
16
+ class: {},
17
+ style: {},
16
18
  id: {},
17
19
  placeholder: {},
18
20
  autocomplete: {},
@@ -84,12 +86,12 @@ const K = /* @__PURE__ */ v({
84
86
  }
85
87
  },
86
88
  emits: ["update:value"],
87
- setup(u, {
88
- expose: d,
89
- emit: c
89
+ setup(l, {
90
+ expose: c,
91
+ emit: d
90
92
  }) {
91
93
  const n = B(), t = g();
92
- d({
94
+ c({
93
95
  focus: (e) => {
94
96
  var o;
95
97
  (o = n.value) == null || o.focus(e);
@@ -111,19 +113,19 @@ const K = /* @__PURE__ */ v({
111
113
  return (e = n.value) == null ? void 0 : e.input;
112
114
  })
113
115
  });
114
- const f = c, a = u, {
115
- value: l,
116
+ const f = d, a = l, {
117
+ value: u,
116
118
  updateValue: s
117
119
  } = F(a, f);
118
120
  function m() {
119
121
  var e, o;
120
122
  return a.mode === "edit" ? p(V, C(j(a, ["mode", "emptyText", "value", "onUpdate:value"]), {
121
- value: i(l),
123
+ value: i(u),
122
124
  "onUpdate:value": s,
123
125
  ref: n
124
126
  }), T(t) ? t : {
125
127
  default: () => [t]
126
- }) : p(h, null, [a.prefix || ((e = t == null ? void 0 : t.prefix) == null ? void 0 : e.call(t)), i(l) || a.emptyText, a.suffix || ((o = t == null ? void 0 : t.suffix) == null ? void 0 : o.call(t))]);
128
+ }) : p(h, null, [a.prefix || ((e = t == null ? void 0 : t.prefix) == null ? void 0 : e.call(t)), i(u) || a.emptyText, a.suffix || ((o = t == null ? void 0 : t.suffix) == null ? void 0 : o.call(t))]);
127
129
  }
128
130
  return (e, o) => (S(), _(R(m())));
129
131
  }
@@ -40,7 +40,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
40
40
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
41
41
  }, {
42
42
  visible: boolean;
43
- type: "number" | "text" | "color" | "button" | "time" | "image" | "search" | "submit" | "reset" | "hidden" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "date" | "week" | "month" | "datetime-local" | "file" | "password";
43
+ type: "number" | "text" | "color" | "reset" | "submit" | "button" | "time" | "month" | "date" | "week" | "hidden" | "search" | "image" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "datetime-local" | "file" | "password";
44
44
  mode: FieldMode;
45
45
  bordered: boolean;
46
46
  allowClear: boolean;
@@ -1,11 +1,11 @@
1
- import { isVNode as B, defineComponent as x, ref as C, useSlots as g, unref as p, createVNode as o, mergeProps as h, Fragment as V, openBlock as _, createBlock as w, resolveDynamicComponent as P } from "vue";
1
+ import { isVNode as B, defineComponent as x, ref as C, useSlots as g, unref as p, createVNode as t, mergeProps as h, Fragment as V, openBlock as _, createBlock as w, resolveDynamicComponent as P } from "vue";
2
2
  import { Input as S, Space as U } from "ant-design-vue";
3
3
  import "../../hooks/index.mjs";
4
4
  import { omit as O } from "lodash-unified";
5
5
  import { EyeOutlined as T, EyeInvisibleOutlined as j } from "@ant-design/icons-vue";
6
6
  import { useControllableValue as d } from "../../hooks/useControllableValue.mjs";
7
- function k(t) {
8
- return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !B(t);
7
+ function k(o) {
8
+ return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !B(o);
9
9
  }
10
10
  const D = /* @__PURE__ */ x({
11
11
  name: "ApFieldTextPassword",
@@ -14,6 +14,8 @@ const D = /* @__PURE__ */ x({
14
14
  mode: {
15
15
  default: "edit"
16
16
  },
17
+ class: {},
18
+ style: {},
17
19
  id: {},
18
20
  placeholder: {},
19
21
  autocomplete: {},
@@ -98,7 +100,7 @@ const D = /* @__PURE__ */ x({
98
100
  }
99
101
  },
100
102
  emits: ["update:value", "update:visible"],
101
- setup(t, {
103
+ setup(o, {
102
104
  expose: c,
103
105
  emit: f
104
106
  }) {
@@ -113,35 +115,35 @@ const D = /* @__PURE__ */ x({
113
115
  (e = a.value) == null || e.blur();
114
116
  }
115
117
  });
116
- const i = f, l = t, {
118
+ const i = f, l = o, {
117
119
  value: m,
118
- updateValue: v
120
+ updateValue: y
119
121
  } = d(l, i), {
120
- value: y,
122
+ value: v,
121
123
  updateValue: s
122
124
  } = d(l, i, {
123
125
  valuePropName: "visible"
124
126
  });
125
127
  function b() {
126
- const e = p(m), n = p(y);
128
+ const e = p(m), n = p(v);
127
129
  if (l.mode === "edit")
128
- return o(S.Password, h(O(l, ["mode", "emptyText", "value", "onUpdate:value", "visible", "onUpdate:visible"]), {
130
+ return t(S.Password, h(O(l, ["mode", "emptyText", "value", "onUpdate:value", "visible", "onUpdate:visible"]), {
129
131
  value: e,
130
- "onUpdate:value": v,
132
+ "onUpdate:value": y,
131
133
  visible: n,
132
134
  "onUpdate:visible": s,
133
135
  ref: a
134
136
  }), k(u) ? u : {
135
137
  default: () => [u]
136
138
  });
137
- let r = o(V, null, [l.emptyText]);
138
- return e && (r = o(U, null, {
139
- default: () => [o("span", null, [n ? e : "********"]), o("span", {
139
+ let r = t(V, null, [l.emptyText]);
140
+ return e && (r = t(U, null, {
141
+ default: () => [t("span", null, [n ? e : "********"]), t("span", {
140
142
  style: {
141
143
  cursor: "pointer"
142
144
  },
143
145
  onClick: () => s(!n)
144
- }, [n ? o(T, null, null) : o(j, null, null)])]
146
+ }, [n ? t(T, null, null) : t(j, null, null)])]
145
147
  })), r;
146
148
  }
147
149
  return (e, n) => (_(), w(P(b())));
@@ -25,7 +25,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
25
25
  }>>> & {
26
26
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
27
27
  }, {
28
- type: "number" | "text" | "color" | "button" | "time" | "image" | "search" | "submit" | "reset" | "hidden" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "date" | "week" | "month" | "datetime-local" | "file" | "password";
28
+ type: "number" | "text" | "color" | "reset" | "submit" | "button" | "time" | "month" | "date" | "week" | "hidden" | "search" | "image" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "datetime-local" | "file" | "password";
29
29
  mode: FieldMode;
30
30
  bordered: boolean;
31
31
  allowClear: boolean;
@@ -11,6 +11,8 @@ const I = /* @__PURE__ */ c({
11
11
  __name: "index",
12
12
  props: {
13
13
  mode: { default: "edit" },
14
+ class: {},
15
+ style: {},
14
16
  rows: {},
15
17
  autosize: { type: [Boolean, Object] },
16
18
  autoSize: { type: [Boolean, Object] },
@@ -1,8 +1,8 @@
1
- import { defineComponent as b, ref as R, reactive as k, toRaw as x, computed as M, openBlock as T, createBlock as w, unref as W, mergeProps as q, withCtx as z, renderSlot as A } from "vue";
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
2
  import { Form as E } from "ant-design-vue";
3
3
  import { useProvideForm as O } from "./context.mjs";
4
- import { isArray as y } from "lodash-unified";
5
- const L = /* @__PURE__ */ b({
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,21 +30,21 @@ const L = /* @__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)) {
37
+ if (C(e)) {
38
38
  let n = o;
39
39
  for (let u = 0; u < e.length - 1; u++)
40
40
  n = n[e[u]];
41
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
- const a = R(), o = k(r.initialValues || {});
47
+ const a = k(), o = x(r.initialValues || {});
48
48
  let i = [];
49
49
  const d = (e) => {
50
50
  var t;
@@ -64,9 +64,9 @@ const L = /* @__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,15 +76,15 @@ const L = /* @__PURE__ */ b({
76
76
  }
77
77
  function s() {
78
78
  if (i.length) {
79
- const e = x(o);
79
+ const e = M(o);
80
80
  i.forEach((t) => {
81
81
  t(e);
82
82
  });
83
83
  }
84
84
  }
85
85
  return O({
86
- model: M(() => o),
87
- updateModel: _,
86
+ model: T(() => o),
87
+ updateModel: b,
88
88
  formInstance: {
89
89
  resetFields: d,
90
90
  clearValidate: f,
@@ -92,24 +92,24 @@ const L = /* @__PURE__ */ b({
92
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({
99
+ }), _({
100
100
  resetFields: d,
101
101
  clearValidate: f,
102
102
  validateFields: c,
103
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) => (T(), w(W(E), q({
109
+ }), (e, t) => (w(), W(y(E), q({
110
110
  ref_key: "formRef",
111
111
  ref: a
112
- }, r, { model: o }), {
112
+ }, y(P)(r, ["initialValues"]), { model: o }), {
113
113
  default: z(() => [
114
114
  A(e.$slots, "default")
115
115
  ]),
@@ -118,5 +118,5 @@ const L = /* @__PURE__ */ b({
118
118
  }
119
119
  });
120
120
  export {
121
- L as default
121
+ N as default
122
122
  };
@@ -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
  * 设置查询表单值