@aplus-frontend/ui 0.0.1-beta.32 → 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 (127) 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-custom-column/custom-column.vue.mjs +17 -14
  4. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  5. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  6. package/es/src/ap-table/components/interface.d.ts +10 -0
  7. package/es/src/ap-table/components/style/pagination.css +12 -0
  8. package/es/src/ap-table/constants.d.ts +5666 -0
  9. package/es/src/ap-table/hooks/use-table-paging.d.ts +57 -0
  10. package/es/src/ap-table/interface.d.ts +155 -0
  11. package/es/src/ap-table/style/ap-table.css +14 -0
  12. package/es/src/ap-table/utils.d.ts +8 -0
  13. package/es/src/base-button/index.d.ts +137 -0
  14. package/es/src/basic/help.vue.d.ts +4 -4
  15. package/es/src/basic/index.d.ts +278 -0
  16. package/es/src/button/index.d.ts +51 -0
  17. package/es/src/config-provider/config-provider-props.d.ts +1 -1
  18. package/es/src/config-provider/config-provider.d.ts +11 -11
  19. package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
  20. package/es/src/config-provider/index.d.ts +691 -0
  21. package/es/src/container/index.d.ts +178 -0
  22. package/es/src/count-down/index.d.ts +150 -0
  23. package/es/src/cropper/index.d.ts +369 -0
  24. package/es/src/description/description.vue.d.ts +1 -1
  25. package/es/src/description/index.d.ts +214 -0
  26. package/es/src/dropdown/index.d.ts +113 -0
  27. package/es/src/icon/index.d.ts +208 -0
  28. package/es/src/icon-picker/icon-picker.vue.d.ts +2 -2
  29. package/es/src/icon-picker/index.d.ts +190 -0
  30. package/es/src/locale/lang/en.mjs +6 -0
  31. package/es/src/locale/lang/zh-cn.mjs +6 -0
  32. package/es/src/modal/basic.vue.d.ts +1 -1
  33. package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
  34. package/es/src/modal/index.d.ts +963 -0
  35. package/es/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  36. package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  37. package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
  38. package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  39. package/es/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  40. package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
  41. package/es/src/pro-form/hooks/use-label-width.d.ts +6 -6
  42. package/es/src/pro-form/pro-form.vue.d.ts +1 -1
  43. package/es/src/pro-form/style/table-form.css +3 -0
  44. package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  45. package/es/src/pro-table/pro-table.vue.d.ts +1 -1
  46. package/es/src/scroll-bar/index.d.ts +176 -0
  47. package/es/src/strength-meter/index.d.ts +89 -0
  48. package/es/src/theme/antd-global-overwrite/admin/alert.css +16 -6
  49. package/es/src/theme/antd-global-overwrite/admin/form.css +25 -0
  50. package/es/src/theme/antd-global-overwrite/admin/index.css +82 -20
  51. package/es/src/theme/antd-global-overwrite/admin/modal.css +2 -5
  52. package/es/src/theme/antd-global-overwrite/admin/steps.css +20 -9
  53. package/es/src/theme/antd-global-overwrite/admin/table.css +19 -0
  54. package/es/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
  55. package/es/src/theme/antd-global-overwrite/aplus/form.css +40 -0
  56. package/es/src/theme/antd-global-overwrite/aplus/index.css +76 -16
  57. package/es/src/theme/antd-global-overwrite/aplus/modal.css +3 -6
  58. package/es/src/theme/antd-global-overwrite/aplus/steps.css +21 -4
  59. package/es/src/theme/ap-table/ap-table-pagination.css +12 -0
  60. package/es/src/theme/ap-table/ap-table.css +14 -0
  61. package/es/src/theme/pro-form/table-form-inner.css +3 -0
  62. package/es/src/transition/index.d.ts +369 -0
  63. package/es/src/utils/config-provider-preset.d.ts +12 -12
  64. package/lib/src/ap-action/interface.d.ts +2 -1
  65. package/lib/src/ap-action/item/index.vue2.js +1 -1
  66. package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
  67. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  68. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  69. package/lib/src/ap-table/components/interface.d.ts +10 -0
  70. package/lib/src/ap-table/components/style/pagination.css +12 -0
  71. package/lib/src/ap-table/constants.d.ts +5666 -0
  72. package/lib/src/ap-table/hooks/use-table-paging.d.ts +57 -0
  73. package/lib/src/ap-table/interface.d.ts +155 -0
  74. package/lib/src/ap-table/style/ap-table.css +14 -0
  75. package/lib/src/ap-table/utils.d.ts +8 -0
  76. package/lib/src/base-button/index.d.ts +137 -0
  77. package/lib/src/basic/help.vue.d.ts +4 -4
  78. package/lib/src/basic/index.d.ts +278 -0
  79. package/lib/src/button/index.d.ts +51 -0
  80. package/lib/src/config-provider/config-provider-props.d.ts +1 -1
  81. package/lib/src/config-provider/config-provider.d.ts +11 -11
  82. package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
  83. package/lib/src/config-provider/index.d.ts +691 -0
  84. package/lib/src/container/index.d.ts +178 -0
  85. package/lib/src/count-down/index.d.ts +150 -0
  86. package/lib/src/cropper/index.d.ts +369 -0
  87. package/lib/src/description/description.vue.d.ts +1 -1
  88. package/lib/src/description/index.d.ts +214 -0
  89. package/lib/src/dropdown/index.d.ts +113 -0
  90. package/lib/src/icon/index.d.ts +208 -0
  91. package/lib/src/icon-picker/icon-picker.vue.d.ts +2 -2
  92. package/lib/src/icon-picker/index.d.ts +190 -0
  93. package/lib/src/locale/lang/en.js +1 -1
  94. package/lib/src/locale/lang/zh-cn.js +1 -1
  95. package/lib/src/modal/basic.vue.d.ts +1 -1
  96. package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
  97. package/lib/src/modal/index.d.ts +963 -0
  98. package/lib/src/pro-form/components/api-cascader.vue.d.ts +1 -1
  99. package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
  100. package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
  101. package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
  102. package/lib/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
  103. package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
  104. package/lib/src/pro-form/hooks/use-label-width.d.ts +6 -6
  105. package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
  106. package/lib/src/pro-form/style/table-form.css +3 -0
  107. package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
  108. package/lib/src/pro-table/pro-table.vue.d.ts +1 -1
  109. package/lib/src/scroll-bar/index.d.ts +176 -0
  110. package/lib/src/strength-meter/index.d.ts +89 -0
  111. package/lib/src/theme/antd-global-overwrite/admin/alert.css +16 -6
  112. package/lib/src/theme/antd-global-overwrite/admin/form.css +25 -0
  113. package/lib/src/theme/antd-global-overwrite/admin/index.css +82 -20
  114. package/lib/src/theme/antd-global-overwrite/admin/modal.css +2 -5
  115. package/lib/src/theme/antd-global-overwrite/admin/steps.css +20 -9
  116. package/lib/src/theme/antd-global-overwrite/admin/table.css +19 -0
  117. package/lib/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
  118. package/lib/src/theme/antd-global-overwrite/aplus/form.css +40 -0
  119. package/lib/src/theme/antd-global-overwrite/aplus/index.css +76 -16
  120. package/lib/src/theme/antd-global-overwrite/aplus/modal.css +3 -6
  121. package/lib/src/theme/antd-global-overwrite/aplus/steps.css +21 -4
  122. package/lib/src/theme/ap-table/ap-table-pagination.css +12 -0
  123. package/lib/src/theme/ap-table/ap-table.css +14 -0
  124. package/lib/src/theme/pro-form/table-form-inner.css +3 -0
  125. package/lib/src/transition/index.d.ts +369 -0
  126. package/lib/src/utils/config-provider-preset.d.ts +12 -12
  127. 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
  };
@@ -16,24 +16,24 @@ const F = /* @__PURE__ */ D({
16
16
  },
17
17
  emits: ["update:columns"],
18
18
  setup(p, { emit: d }) {
19
- const f = I("uiMode"), { b: C, e: _ } = O(
19
+ const f = I("uiMode"), { b: C, e: h } = O(
20
20
  f.value === "aplus" ? "custom-column" : "custom-column-admin"
21
- ), { baseContainerSelector: u, columns: M, fullContentSelector: h } = p, g = d, v = (e) => {
21
+ ), { baseContainerSelector: r, columns: M, fullContentSelector: _ } = p, g = d, v = (e) => {
22
22
  g("update:columns", e);
23
- }, a = m(!1), l = m(0), S = () => {
23
+ }, c = m(!1), l = m(0), S = () => {
24
24
  var e, s;
25
- if (u) {
26
- const c = document.querySelector(u), r = document.querySelector(
27
- h
25
+ if (r) {
26
+ const a = document.querySelector(r), u = document.querySelector(
27
+ _
28
28
  );
29
- c ? l.value = Math.max(
30
- (e = c == null ? void 0 : c.getBoundingClientRect()) == null ? void 0 : e.top,
31
- ((s = r == null ? void 0 : r.getBoundingClientRect()) == null ? void 0 : s.top) || 0
29
+ a ? l.value = Math.max(
30
+ (e = a == null ? void 0 : a.getBoundingClientRect()) == null ? void 0 : e.top,
31
+ ((s = u == null ? void 0 : u.getBoundingClientRect()) == null ? void 0 : s.top) || 0
32
32
  ) : l.value = 0;
33
33
  }
34
- a.value = !0;
34
+ c.value = !0;
35
35
  }, i = () => {
36
- a.value = !1;
36
+ c.value = !1;
37
37
  }, y = x(() => window.innerHeight - l.value - 57 - 40);
38
38
  return (e, s) => (H(), w("div", {
39
39
  class: B(t(C)())
@@ -43,7 +43,10 @@ const F = /* @__PURE__ */ D({
43
43
  E("自定义表格")
44
44
  ]),
45
45
  default: n(() => [
46
- o(t(T), { onClick: S }, {
46
+ o(t(T), {
47
+ style: { minWidth: "auto" },
48
+ onClick: S
49
+ }, {
47
50
  icon: n(() => [
48
51
  o(t(k))
49
52
  ]),
@@ -53,14 +56,14 @@ const F = /* @__PURE__ */ D({
53
56
  _: 1
54
57
  }),
55
58
  o(t(A), {
56
- open: a.value,
59
+ open: c.value,
57
60
  width: 280,
58
61
  title: "自定义表格",
59
62
  closable: !1,
60
63
  contentWrapperStyle: { top: `${l.value}px` },
61
64
  bodyStyle: { overflow: "hidden", padding: "20px" },
62
65
  mask: !0,
63
- "root-class-name": t(_)("drawer"),
66
+ "root-class-name": t(h)("drawer"),
64
67
  onClose: i
65
68
  }, {
66
69
  extra: n(() => [
@@ -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" | "reset" | "submit" | "button" | "time" | "month" | "date" | "week" | "hidden" | "search" | "image" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "datetime-local" | "file" | "password";
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";
38
38
  mode: FieldMode;
39
39
  bordered: boolean;
40
40
  allowClear: boolean;
@@ -23,7 +23,7 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
23
23
  }>>> & {
24
24
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
25
25
  }, {
26
- type: "number" | "text" | "color" | "reset" | "submit" | "button" | "time" | "month" | "date" | "week" | "hidden" | "search" | "image" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "datetime-local" | "file" | "password";
26
+ type: "number" | "text" | "color" | "button" | "time" | "image" | "search" | "submit" | "reset" | "hidden" | "tel" | "url" | "email" | "checkbox" | "radio" | "range" | "date" | "week" | "month" | "datetime-local" | "file" | "password";
27
27
  mode: FieldMode;
28
28
  bordered: boolean;
29
29
  lazy: boolean;
@@ -0,0 +1,10 @@
1
+ export type ApTablePaginationProps = {
2
+ /** dataSource的总数量 */
3
+ total?: number;
4
+ /** 当前页码 */
5
+ current?: number;
6
+ 'onUpdate:current'?: (current: number) => void;
7
+ /** 当前pagesize */
8
+ pageSize?: number;
9
+ 'onUpdate:pageSize'?: (pageSize: number) => void;
10
+ };
@@ -0,0 +1,12 @@
1
+ .aplus-ap-table-pagination {
2
+ margin-top: 16px;
3
+ }
4
+ .aplus-ap-table-pagination__total {
5
+ font-size: 14px;
6
+ line-height: 22px;
7
+ color: #333333;
8
+ padding-block: 6px;
9
+ }
10
+ .aplus-ap-table-pagination__total-right {
11
+ padding-inline-start: 10px;
12
+ }