@aplus-frontend/ui 0.0.1-beta.33 → 0.0.1-beta.34

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 (37) hide show
  1. package/es/src/ap-action/interface.d.ts +2 -1
  2. package/es/src/ap-action/item/index.vue2.mjs +20 -20
  3. package/es/src/ap-table/constants.d.ts +5666 -0
  4. package/es/src/ap-table/hooks/use-table-paging.d.ts +57 -0
  5. package/es/src/ap-table/interface.d.ts +11 -8
  6. package/es/src/ap-table/style/ap-table.css +14 -0
  7. package/es/src/ap-table/utils.d.ts +8 -0
  8. package/es/src/basic/help.vue.d.ts +4 -4
  9. package/es/src/basic/index.d.ts +8 -8
  10. package/es/src/pro-form/style/table-form.css +3 -0
  11. package/es/src/theme/antd-global-overwrite/admin/alert.css +16 -6
  12. package/es/src/theme/antd-global-overwrite/admin/form.css +9 -1
  13. package/es/src/theme/antd-global-overwrite/admin/index.css +25 -7
  14. package/es/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
  15. package/es/src/theme/antd-global-overwrite/aplus/form.css +36 -13
  16. package/es/src/theme/antd-global-overwrite/aplus/index.css +47 -18
  17. package/es/src/theme/ap-table/ap-table.css +14 -0
  18. package/es/src/theme/pro-form/table-form-inner.css +3 -0
  19. package/lib/src/ap-action/interface.d.ts +2 -1
  20. package/lib/src/ap-action/item/index.vue2.js +1 -1
  21. package/lib/src/ap-table/constants.d.ts +5666 -0
  22. package/lib/src/ap-table/hooks/use-table-paging.d.ts +57 -0
  23. package/lib/src/ap-table/interface.d.ts +11 -8
  24. package/lib/src/ap-table/style/ap-table.css +14 -0
  25. package/lib/src/ap-table/utils.d.ts +8 -0
  26. package/lib/src/basic/help.vue.d.ts +4 -4
  27. package/lib/src/basic/index.d.ts +8 -8
  28. package/lib/src/pro-form/style/table-form.css +3 -0
  29. package/lib/src/theme/antd-global-overwrite/admin/alert.css +16 -6
  30. package/lib/src/theme/antd-global-overwrite/admin/form.css +9 -1
  31. package/lib/src/theme/antd-global-overwrite/admin/index.css +25 -7
  32. package/lib/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
  33. package/lib/src/theme/antd-global-overwrite/aplus/form.css +36 -13
  34. package/lib/src/theme/antd-global-overwrite/aplus/index.css +47 -18
  35. package/lib/src/theme/ap-table/ap-table.css +14 -0
  36. package/lib/src/theme/pro-form/table-form-inner.css +3 -0
  37. package/package.json +1 -1
@@ -1,11 +1,12 @@
1
1
  import { DropdownProps, ModalFuncProps, PopconfirmProps } from 'ant-design-vue';
2
+ import { VNode } from 'vue';
2
3
 
3
4
  export type ActionColor = 'primary' | 'success' | 'error' | 'warn';
4
5
  export type ApActionItemProps = {
5
6
  /**
6
7
  * 文本
7
8
  */
8
- text?: string;
9
+ text?: string | VNode;
9
10
  /**
10
11
  * 预定义文本颜色
11
12
  */
@@ -1,9 +1,9 @@
1
- import { defineComponent as p, ref as g, unref as i, computed as r, openBlock as s, createElementBlock as k, normalizeClass as C, createBlock as b, createCommentVNode as c, renderSlot as y, createTextVNode as v, toDisplayString as B } from "vue";
1
+ import { defineComponent as y, ref as g, unref as r, computed as s, openBlock as n, createElementBlock as c, normalizeClass as C, createBlock as d, createCommentVNode as u, renderSlot as b, isVNode as v, resolveDynamicComponent as B, toDisplayString as A } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
3
  import x from "ant-design-vue/es/button/LoadingIcon";
4
4
  import "../style/item.css";
5
- import { useNamespace as A } from "../../config-provider/hooks/use-namespace.mjs";
6
- const S = /* @__PURE__ */ p({
5
+ import { useNamespace as h } from "../../config-provider/hooks/use-namespace.mjs";
6
+ const I = { key: 1 }, V = /* @__PURE__ */ y({
7
7
  name: "ApActionItem",
8
8
  __name: "index",
9
9
  props: {
@@ -15,35 +15,35 @@ const S = /* @__PURE__ */ p({
15
15
  onClick: {},
16
16
  loading: { type: Boolean, default: !1 }
17
17
  },
18
- setup(d) {
19
- const e = d, { b: u, m: t } = A("action-item"), n = g(!1);
20
- function f(o) {
21
- var a;
22
- i(l) || e.disabled || ((a = e.onClick) == null || a.call(e, o), e.onAction && (n.value = !0, e.onAction(o).finally(() => n.value = !1)));
18
+ setup(f) {
19
+ const e = f, { b: m, m: t } = h("action-item"), l = g(!1);
20
+ function p(o) {
21
+ var i;
22
+ r(a) || e.disabled || ((i = e.onClick) == null || i.call(e, o), e.onAction && (l.value = !0, e.onAction(o).finally(() => l.value = !1)));
23
23
  }
24
- const l = r(() => e.loading || i(n)), m = r(() => [
25
- u(),
24
+ const a = s(() => e.loading || r(l)), k = s(() => [
25
+ m(),
26
26
  t(e.color),
27
27
  e.disabled ? t("disabled") : null,
28
- l.value ? t("loading") : null
28
+ a.value ? t("loading") : null
29
29
  ].filter(Boolean));
30
- return (o, a) => o.visible ? (s(), k("span", {
30
+ return (o, i) => o.visible ? (n(), c("span", {
31
31
  key: 0,
32
- onClick: f,
33
- class: C(m.value)
32
+ onClick: p,
33
+ class: C(k.value)
34
34
  }, [
35
- l.value ? (s(), b(i(x), {
35
+ a.value ? (n(), d(r(x), {
36
36
  key: 0,
37
37
  prefixCls: "btn",
38
38
  existIcon: !1,
39
39
  loading: ""
40
- })) : c("", !0),
41
- y(o.$slots, "default", {}, () => [
42
- v(B(o.text || ""), 1)
40
+ })) : u("", !0),
41
+ b(o.$slots, "default", {}, () => [
42
+ v(o.text) ? (n(), d(B(o.text), { key: 0 })) : (n(), c("span", I, A(o.text || ""), 1))
43
43
  ])
44
- ], 2)) : c("", !0);
44
+ ], 2)) : u("", !0);
45
45
  }
46
46
  });
47
47
  export {
48
- S as default
48
+ V as default
49
49
  };