@aplus-frontend/ui 0.0.39 → 0.1.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 (97) hide show
  1. package/es/index.mjs +149 -148
  2. package/es/src/ap-action/item/index.vue2.mjs +19 -20
  3. package/es/src/ap-action/item-modal/index.vue.mjs +7 -6
  4. package/es/src/ap-action/style/item.css +10 -25
  5. package/es/src/ap-field/checkbox/index.vue.mjs +32 -27
  6. package/es/src/ap-field/checkbox/style.css +7 -0
  7. package/es/src/ap-field/interface.d.ts +3 -1
  8. package/es/src/ap-field/radio/index.vue.d.ts +3 -0
  9. package/es/src/ap-field/radio/index.vue.mjs +44 -29
  10. package/es/src/ap-field/radio/style.css +4 -0
  11. package/es/src/ap-field/text-area/index.vue.mjs +9 -10
  12. package/es/src/ap-form/style/ap-form-item.css +6 -6
  13. package/es/src/ap-table/ap-table.vue.d.ts +6 -0
  14. package/es/src/ap-table/ap-table.vue.mjs +124 -124
  15. package/es/src/ap-table/constants.d.ts +15 -6
  16. package/es/src/ap-table/style/ap-table.css +1 -21
  17. package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +14 -0
  18. package/es/src/business/ap-export-group/ApExportGroup.vue.mjs +4 -0
  19. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +117 -0
  20. package/es/src/business/ap-export-group/interface.d.ts +37 -0
  21. package/es/src/business/ap-export-group/interface.mjs +4 -0
  22. package/es/src/business/ap-status/ApStatusGroup.vue2.mjs +10 -9
  23. package/es/src/business/index.d.ts +105 -0
  24. package/es/src/business/index.mjs +12 -9
  25. package/es/src/check-card/index.vue2.mjs +44 -48
  26. package/es/src/check-card/style/index.css +10 -42
  27. package/es/src/config-provider/config-provider.mjs +22 -17
  28. package/es/src/design-token/index.mjs +4 -2
  29. package/es/src/editable-table/form-item.vue.d.ts +4 -0
  30. package/es/src/editable-table/form-item.vue.mjs +75 -68
  31. package/es/src/editable-table/index.vue.d.ts +4 -0
  32. package/es/src/editable-table/index.vue.mjs +79 -72
  33. package/es/src/editable-table/interface.d.ts +8 -0
  34. package/es/src/editable-table/style/index.css +1 -21
  35. package/es/src/editable-table/utils.d.ts +8 -0
  36. package/es/src/editable-table/utils.mjs +29 -18
  37. package/es/src/index.mjs +175 -174
  38. package/es/src/locale/lang/en.mjs +7 -1
  39. package/es/src/locale/lang/zh-cn.mjs +28 -22
  40. package/es/src/theme/ap-action/item.css +10 -25
  41. package/es/src/theme/ap-field/checkbox.css +7 -0
  42. package/es/src/theme/ap-field/radio.css +4 -0
  43. package/es/src/theme/ap-form/ap-form-item.css +6 -6
  44. package/es/src/theme/ap-table/ap-table.css +1 -21
  45. package/es/src/theme/check-card/index.css +10 -42
  46. package/es/src/theme/css-var/index.d.ts +7 -0
  47. package/es/src/theme/css-var/index.mjs +109 -0
  48. package/es/src/theme/editable-table/index.css +1 -21
  49. package/lib/index.js +1 -1
  50. package/lib/src/ap-action/item/index.vue2.js +1 -1
  51. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  52. package/lib/src/ap-action/style/item.css +10 -25
  53. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  54. package/lib/src/ap-field/checkbox/style.css +7 -0
  55. package/lib/src/ap-field/interface.d.ts +3 -1
  56. package/lib/src/ap-field/radio/index.vue.d.ts +3 -0
  57. package/lib/src/ap-field/radio/index.vue.js +1 -1
  58. package/lib/src/ap-field/radio/style.css +4 -0
  59. package/lib/src/ap-field/text-area/index.vue.js +1 -1
  60. package/lib/src/ap-form/style/ap-form-item.css +6 -6
  61. package/lib/src/ap-table/ap-table.vue.d.ts +6 -0
  62. package/lib/src/ap-table/ap-table.vue.js +1 -1
  63. package/lib/src/ap-table/constants.d.ts +15 -6
  64. package/lib/src/ap-table/style/ap-table.css +1 -21
  65. package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +14 -0
  66. package/lib/src/business/ap-export-group/ApExportGroup.vue.js +1 -0
  67. package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -0
  68. package/lib/src/business/ap-export-group/interface.d.ts +37 -0
  69. package/lib/src/business/ap-export-group/interface.js +1 -0
  70. package/lib/src/business/ap-status/ApStatusGroup.vue2.js +1 -1
  71. package/lib/src/business/index.d.ts +105 -0
  72. package/lib/src/business/index.js +1 -1
  73. package/lib/src/check-card/index.vue2.js +1 -1
  74. package/lib/src/check-card/style/index.css +10 -42
  75. package/lib/src/config-provider/config-provider.js +1 -1
  76. package/lib/src/design-token/index.js +1 -1
  77. package/lib/src/editable-table/form-item.vue.d.ts +4 -0
  78. package/lib/src/editable-table/form-item.vue.js +1 -1
  79. package/lib/src/editable-table/index.vue.d.ts +4 -0
  80. package/lib/src/editable-table/index.vue.js +1 -1
  81. package/lib/src/editable-table/interface.d.ts +8 -0
  82. package/lib/src/editable-table/style/index.css +1 -21
  83. package/lib/src/editable-table/utils.d.ts +8 -0
  84. package/lib/src/editable-table/utils.js +1 -1
  85. package/lib/src/index.js +1 -1
  86. package/lib/src/locale/lang/en.js +1 -1
  87. package/lib/src/locale/lang/zh-cn.js +1 -1
  88. package/lib/src/theme/ap-action/item.css +10 -25
  89. package/lib/src/theme/ap-field/checkbox.css +7 -0
  90. package/lib/src/theme/ap-field/radio.css +4 -0
  91. package/lib/src/theme/ap-form/ap-form-item.css +6 -6
  92. package/lib/src/theme/ap-table/ap-table.css +1 -21
  93. package/lib/src/theme/check-card/index.css +10 -42
  94. package/lib/src/theme/css-var/index.d.ts +7 -0
  95. package/lib/src/theme/css-var/index.js +1 -0
  96. package/lib/src/theme/editable-table/index.css +1 -21
  97. package/package.json +6 -5
@@ -1,9 +1,9 @@
1
- import { defineComponent as l, computed as p, openBlock as a, createElementBlock as r, normalizeClass as d, unref as c, normalizeStyle as i, Fragment as m, renderList as f, createBlock as g, createCommentVNode as y } from "vue";
1
+ import { defineComponent as p, computed as d, openBlock as a, createElementBlock as r, normalizeClass as c, unref as i, normalizeStyle as o, Fragment as m, renderList as f, createBlock as g, createCommentVNode as y } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
3
  import "./ApStatus.vue.mjs";
4
4
  import { useNamespace as _ } from "../../config-provider/hooks/use-namespace.mjs";
5
5
  import x from "./ApStatus.vue2.mjs";
6
- const w = /* @__PURE__ */ l({
6
+ const w = /* @__PURE__ */ p({
7
7
  name: "ApStatusGroup",
8
8
  __name: "ApStatusGroup",
9
9
  props: {
@@ -13,24 +13,25 @@ const w = /* @__PURE__ */ l({
13
13
  style: {},
14
14
  show: { type: Boolean, default: !0 }
15
15
  },
16
- setup(o) {
17
- const t = o, n = p(() => ({
16
+ setup(s) {
17
+ const t = s, l = d(() => ({
18
18
  "padding-left": t.padding + "px",
19
19
  "padding-right": t.padding + "px",
20
20
  ...t.style
21
- })), { b: s } = _("ap-status-group");
21
+ })), { b: n } = _("ap-status-group");
22
22
  return (u, h) => t.statusList ? (a(), r("div", {
23
23
  key: 0,
24
- class: d([c(s)()]),
25
- style: i(n.value)
24
+ class: c([i(n)()]),
25
+ style: o(l.value)
26
26
  }, [
27
27
  (a(!0), r(m, null, f(t.statusList, (e) => (a(), g(x, {
28
28
  key: e.value,
29
29
  show: e.value === u.currentValue,
30
30
  color: e.color,
31
31
  text: e.text,
32
- padding: t.padding
33
- }, null, 8, ["show", "color", "text", "padding"]))), 128))
32
+ padding: t.padding,
33
+ style: o(t.style)
34
+ }, null, 8, ["show", "color", "text", "padding", "style"]))), 128))
34
35
  ], 6)) : y("", !0);
35
36
  }
36
37
  });
@@ -958,3 +958,108 @@ export declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: {
958
958
  onClick?: (() => void) | undefined;
959
959
  };
960
960
  });
961
+ export declare const ApExportGroup: {
962
+ new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
963
+ selectedRowKeys: {
964
+ type: PropType<any[]>;
965
+ };
966
+ disabled: {
967
+ type: PropType<boolean>;
968
+ };
969
+ auth: {
970
+ type: PropType<string>;
971
+ };
972
+ ifShow: {
973
+ type: PropType<() => boolean>;
974
+ };
975
+ text: {
976
+ type: PropType<string>;
977
+ };
978
+ request: {
979
+ type: PropType<(key: any) => Promise<any>>;
980
+ };
981
+ getRequestParams: {
982
+ type: PropType<() => Record<string, any>>;
983
+ };
984
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
985
+ selectedRowKeys: {
986
+ type: PropType<any[]>;
987
+ };
988
+ disabled: {
989
+ type: PropType<boolean>;
990
+ };
991
+ auth: {
992
+ type: PropType<string>;
993
+ };
994
+ ifShow: {
995
+ type: PropType<() => boolean>;
996
+ };
997
+ text: {
998
+ type: PropType<string>;
999
+ };
1000
+ request: {
1001
+ type: PropType<(key: any) => Promise<any>>;
1002
+ };
1003
+ getRequestParams: {
1004
+ type: PropType<() => Record<string, any>>;
1005
+ };
1006
+ }>>, {}, true, {}, {}, {
1007
+ P: {};
1008
+ B: {};
1009
+ D: {};
1010
+ C: {};
1011
+ M: {};
1012
+ Defaults: {};
1013
+ }, Readonly< ExtractPropTypes<{
1014
+ selectedRowKeys: {
1015
+ type: PropType<any[]>;
1016
+ };
1017
+ disabled: {
1018
+ type: PropType<boolean>;
1019
+ };
1020
+ auth: {
1021
+ type: PropType<string>;
1022
+ };
1023
+ ifShow: {
1024
+ type: PropType<() => boolean>;
1025
+ };
1026
+ text: {
1027
+ type: PropType<string>;
1028
+ };
1029
+ request: {
1030
+ type: PropType<(key: any) => Promise<any>>;
1031
+ };
1032
+ getRequestParams: {
1033
+ type: PropType<() => Record<string, any>>;
1034
+ };
1035
+ }>>, {}, {}, {}, {}, {}>;
1036
+ __isFragment?: undefined;
1037
+ __isTeleport?: undefined;
1038
+ __isSuspense?: undefined;
1039
+ } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
1040
+ selectedRowKeys: {
1041
+ type: PropType<any[]>;
1042
+ };
1043
+ disabled: {
1044
+ type: PropType<boolean>;
1045
+ };
1046
+ auth: {
1047
+ type: PropType<string>;
1048
+ };
1049
+ ifShow: {
1050
+ type: PropType<() => boolean>;
1051
+ };
1052
+ text: {
1053
+ type: PropType<string>;
1054
+ };
1055
+ request: {
1056
+ type: PropType<(key: any) => Promise<any>>;
1057
+ };
1058
+ getRequestParams: {
1059
+ type: PropType<() => Record<string, any>>;
1060
+ };
1061
+ }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
1062
+ $props: {
1063
+ onClick?: (() => void) | undefined;
1064
+ };
1065
+ });
@@ -1,22 +1,25 @@
1
- import { withInstall as t } from "@aplus-frontend/utils";
1
+ import { withInstall as o } from "@aplus-frontend/utils";
2
2
  import "./title/ApTitle.vue.mjs";
3
3
  import "./expandAlert/ApExpandAlert.vue.mjs";
4
4
  import "./ap-label/ApLabel.vue.mjs";
5
5
  import "./ap-status/ApStatus.vue.mjs";
6
6
  import "./ap-status/ApStatusGroup.vue.mjs";
7
7
  import "./ap-select-layout/select-layout.vue.mjs";
8
- import o from "./title/ApTitle.vue2.mjs";
8
+ import "./ap-export-group/ApExportGroup.vue.mjs";
9
+ import t from "./title/ApTitle.vue2.mjs";
9
10
  import m from "./expandAlert/ApExpandAlert.vue2.mjs";
10
11
  import r from "./ap-label/ApLabel.vue2.mjs";
11
12
  import p from "./ap-status/ApStatus.vue2.mjs";
12
13
  import i from "./ap-status/ApStatusGroup.vue2.mjs";
13
14
  import s from "./ap-select-layout/select-layout.vue2.mjs";
14
- const b = t(o), d = m, h = t(r), w = t(p), y = t(i), E = t(s);
15
+ import n from "./ap-export-group/ApExportGroup.vue2.mjs";
16
+ const d = o(t), h = m, w = o(r), y = o(p), I = o(i), T = o(s), g = o(n);
15
17
  export {
16
- d as ApExpandAlert,
17
- h as ApLabel,
18
- E as ApSelectLayout,
19
- w as ApStatus,
20
- y as ApStatusGroup,
21
- b as ApTitle
18
+ h as ApExpandAlert,
19
+ g as ApExportGroup,
20
+ w as ApLabel,
21
+ T as ApSelectLayout,
22
+ y as ApStatus,
23
+ I as ApStatusGroup,
24
+ d as ApTitle
22
25
  };
@@ -1,15 +1,14 @@
1
- import { defineComponent as I, computed as i, unref as l, createVNode as m, watch as U, watchEffect as W, openBlock as c, createElementBlock as N, normalizeStyle as j, normalizeClass as P, withModifiers as G, createBlock as f, renderSlot as O, resolveDynamicComponent as V, createCommentVNode as v, createElementVNode as $ } from "vue";
2
- import { Skeleton as q } from "ant-design-vue";
1
+ import { defineComponent as F, computed as s, unref as l, createVNode as m, watch as I, watchEffect as j, openBlock as i, createElementBlock as B, normalizeStyle as D, normalizeClass as N, withModifiers as M, createBlock as f, renderSlot as O, resolveDynamicComponent as P, createCommentVNode as v, createElementVNode as U } from "vue";
2
+ import { Skeleton as W } from "ant-design-vue";
3
3
  import "../config-provider/index.mjs";
4
4
  import "../hooks/index.mjs";
5
- import { isFunction as z } from "lodash-unified";
6
- import { useInjectCheckCard as A } from "./context.mjs";
5
+ import { isFunction as V } from "lodash-unified";
6
+ import { useInjectCheckCard as $ } from "./context.mjs";
7
7
  import "./style/index.css";
8
- import H from "./checked.svg.mjs";
9
- import { useNamespace as J } from "../config-provider/hooks/use-namespace.mjs";
10
- import { useGlobalConfig as K } from "../config-provider/hooks/use-global-config.mjs";
11
- import { useControllableValue as L } from "../hooks/useControllableValue.mjs";
12
- const Q = ["src"], re = /* @__PURE__ */ I({
8
+ import q from "./checked.svg.mjs";
9
+ import { useNamespace as A } from "../config-provider/hooks/use-namespace.mjs";
10
+ import { useControllableValue as G } from "../hooks/useControllableValue.mjs";
11
+ const H = ["src"], oe = /* @__PURE__ */ F({
13
12
  name: "CheckCard",
14
13
  __name: "index",
15
14
  props: {
@@ -48,43 +47,40 @@ const Q = ["src"], re = /* @__PURE__ */ I({
48
47
  content: {}
49
48
  },
50
49
  emits: ["update:checked"],
51
- setup(S, {
52
- emit: _
50
+ setup(z, {
51
+ emit: S
53
52
  }) {
54
- const o = S, {
53
+ const o = z, {
55
54
  b: g,
56
- m: s,
55
+ m: c,
57
56
  e: p,
58
- bm: w,
57
+ bm: J,
59
58
  em: k
60
- } = J("check-card"), h = K("uiMode", "aplus"), D = _, n = A(), {
59
+ } = A("check-card"), _ = S, n = $(), {
61
60
  value: r,
62
- updateValue: b
63
- } = L(o, D, {
61
+ updateValue: h
62
+ } = G(o, _, {
64
63
  valuePropName: "checked",
65
64
  defaultValuePropName: "defaultChecked"
66
- }), a = i(() => {
65
+ }), a = s(() => {
67
66
  const e = {
68
67
  ...o
69
68
  }, t = l(n);
70
69
  return t && (e.disabled = e.disabled || t.disabled, e.bordered = e.bordered || t.bordered, e.loading = e.loading || t.loading, e.size = e.size || t.size, e.stopPropagation = e.stopPropagation || t.stopPropagation), e;
71
- }), E = i(() => {
72
- const e = l(h), t = l(a);
73
- return [g(), ...t.disabled ? [] : [g(e), l(r) ? w(e, "checked") : null], s(t.size), t.bordered ? s("bordered") : null, t.disabled ? s("disabled") : null];
74
- }), M = i(() => ({
75
- ...o.style,
76
- "--check-card-border-color": h.value === "admin" ? "#D9D9D9" : "#E9EDF3"
77
- })), y = i(() => {
70
+ }), w = s(() => {
71
+ const e = l(a);
72
+ return [g(), ...e.disabled ? [] : [g(), l(r) ? c("checked") : null], c(e.size), e.bordered ? c("bordered") : null, e.disabled ? c("disabled") : null];
73
+ }), b = s(() => {
78
74
  if (!o.title)
79
75
  return;
80
- const e = z(o.title) ? o.title(l(r)) : m("span", null, [o.title]);
76
+ const e = V(o.title) ? o.title(l(r)) : m("span", null, [o.title]);
81
77
  return m("div", {
82
78
  class: [p("title"), a.value.disabled ? k("title", "disabled") : null]
83
79
  }, [e]);
84
- }), C = i(() => {
80
+ }), y = s(() => {
85
81
  if (!o.content)
86
82
  return;
87
- const e = z(o.content) ? o.content(l(r)) : o.content;
83
+ const e = V(o.content) ? o.content(l(r)) : o.content;
88
84
  return m("div", {
89
85
  class: [p("content"), a.value.disabled ? k("content", "disabled") : null]
90
86
  }, [e]);
@@ -93,45 +89,45 @@ const Q = ["src"], re = /* @__PURE__ */ I({
93
89
  const t = l(a).stopPropagation;
94
90
  return t ? t === !0 ? e.target !== e.currentTarget : t(e) : !1;
95
91
  }
96
- function F(e) {
92
+ function E(e) {
97
93
  var t, d;
98
- T(e) || a.value.loading || a.value.disabled || (n.value ? (d = (t = n.value) == null ? void 0 : t.toggleOption) == null || d.call(t, o.value) : b(!l(r)));
94
+ T(e) || a.value.loading || a.value.disabled || (n.value ? (d = (t = n.value) == null ? void 0 : t.toggleOption) == null || d.call(t, o.value) : h(!l(r)));
99
95
  }
100
- return U(() => n.value, (e) => {
96
+ return I(() => n.value, (e) => {
101
97
  if (!e)
102
98
  return;
103
99
  const t = e.multiple ? (e.value || []).includes(o.value) : e.value === o.value;
104
- b(t);
100
+ h(t);
105
101
  }, {
106
102
  immediate: !0
107
- }), W((e) => {
103
+ }), j((e) => {
108
104
  var t, d;
109
105
  (d = (t = n.value) == null ? void 0 : t.registerValue) == null || d.call(t, o.value), e(() => {
110
- var u, B;
111
- return (B = (u = n.value) == null ? void 0 : u.cancelValue) == null ? void 0 : B.call(u, o.value);
106
+ var u, C;
107
+ return (C = (u = n.value) == null ? void 0 : u.cancelValue) == null ? void 0 : C.call(u, o.value);
112
108
  });
113
- }), (e, t) => (c(), N("div", {
114
- style: j(M.value),
115
- class: P(E.value),
116
- onClick: G(F, ["stop"])
117
- }, [a.value.loading ? (c(), f(l(q), {
109
+ }), (e, t) => (i(), B("div", {
110
+ style: D(e.style),
111
+ class: N(w.value),
112
+ onClick: M(E, ["stop"])
113
+ }, [a.value.loading ? (i(), f(l(W), {
118
114
  key: 0,
119
115
  active: ""
120
116
  })) : O(e.$slots, "default", {
121
117
  key: 1,
122
118
  checked: l(r)
123
- }, () => [y.value ? (c(), f(V(y.value), {
119
+ }, () => [b.value ? (i(), f(P(b.value), {
124
120
  key: 0
125
- })) : v("", !0), C.value ? (c(), f(V(C.value), {
121
+ })) : v("", !0), y.value ? (i(), f(P(y.value), {
126
122
  key: 1
127
- })) : v("", !0)]), l(r) ? (c(), N("div", {
123
+ })) : v("", !0)]), l(r) ? (i(), B("div", {
128
124
  key: 2,
129
- class: P(l(p)("checked-icon"))
130
- }, [$("img", {
131
- src: l(H)
132
- }, null, 8, Q)], 2)) : v("", !0)], 6));
125
+ class: N(l(p)("checked-icon"))
126
+ }, [U("img", {
127
+ src: l(q)
128
+ }, null, 8, H)], 2)) : v("", !0)], 6));
133
129
  }
134
130
  });
135
131
  export {
136
- re as default
132
+ oe as default
137
133
  };
@@ -7,13 +7,13 @@
7
7
  cursor: not-allowed;
8
8
  }
9
9
  .aplus-check-card--bordered {
10
- outline: 1px solid var(--check-card-border-color);
10
+ outline: 1px solid var(--check-card-outline-color);
11
11
  }
12
- .aplus-check-card-aplus:hover {
12
+ .aplus-check-card:hover {
13
13
  cursor: pointer;
14
- outline: 1px solid #0070ff;
14
+ outline: 1px solid var(--check-card-hover-outline-color);
15
15
  }
16
- .aplus-check-card-aplus::after {
16
+ .aplus-check-card::after {
17
17
  content: '';
18
18
  position: absolute;
19
19
  width: 0;
@@ -25,47 +25,15 @@
25
25
  border-block-end: 16px solid transparent;
26
26
  border-radius: 4px;
27
27
  }
28
- .aplus-check-card-aplus--checked {
29
- outline: 2px solid #0070ff;
28
+ .aplus-check-card--checked {
29
+ outline: 2px solid var(--check-card-checked-outline-color);
30
30
  }
31
- .aplus-check-card-aplus--checked:hover {
32
- outline: 2px solid #0070ff;
31
+ .aplus-check-card--checked:hover {
32
+ outline: 2px solid var(--check-card-checked-outline-color);
33
33
  }
34
- .aplus-check-card-aplus--checked::after {
34
+ .aplus-check-card--checked::after {
35
35
  opacity: 1;
36
- border: 16px solid #0070ff;
37
- border-inline-start: 16px solid transparent;
38
- border-block-end: 16px solid transparent;
39
- inset-block-start: -2px;
40
- inset-inline-end: -2px;
41
- transition: all 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
42
- }
43
- .aplus-check-card-admin:hover {
44
- cursor: pointer;
45
- outline: 1px solid #34b77c;
46
- }
47
- .aplus-check-card-admin::after {
48
- content: '';
49
- position: absolute;
50
- width: 0px;
51
- height: 0px;
52
- opacity: 0;
53
- inset-block-start: -2px;
54
- inset-inline-end: -2px;
55
- border-inline-start: 16px solid transparent;
56
- border-block-end: 16px solid transparent;
57
- border-radius: 4px;
58
- }
59
- .aplus-check-card-admin--checked {
60
- outline: 2px solid #34b77c;
61
- }
62
- .aplus-check-card-admin--checked:hover {
63
- outline: 2px solid #34b77c;
64
- }
65
- .aplus-check-card-admin--checked::after {
66
- content: '';
67
- opacity: 1;
68
- border: 16px solid #34b77c;
36
+ border: 16px solid var(--check-card-checked-bg);
69
37
  border-inline-start: 16px solid transparent;
70
38
  border-block-end: 16px solid transparent;
71
39
  inset-block-start: -2px;
@@ -1,39 +1,44 @@
1
- import { isVNode as n, ref as l, defineComponent as c, computed as f, watch as d, createVNode as m, renderSlot as u } from "vue";
2
- import { ConfigProvider as p } from "ant-design-vue";
3
- import { provideGlobalConfig as g } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as s } from "./config-provider-props.mjs";
5
- import { tableDefaultConfig as b } from "./constants.mjs";
6
- import { mergeAntdProvideConfig as v } from "../utils/config-provider-preset.mjs";
7
- function C(e) {
1
+ import { isVNode as n, ref as d, defineComponent as f, computed as m, watch as r, createVNode as c, renderSlot as u } from "vue";
2
+ import { ConfigProvider as s } from "ant-design-vue";
3
+ import { provideGlobalConfig as p } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as g } from "./config-provider-props.mjs";
5
+ import { tableDefaultConfig as C } from "./constants.mjs";
6
+ import { mergeAntdProvideConfig as b } from "../utils/config-provider-preset.mjs";
7
+ import { setCSSVariables as v, aplusCssVar as P, adminCssVar as S } from "../theme/css-var/index.mjs";
8
+ function V(e) {
8
9
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !n(e);
9
10
  }
10
- const r = l({}), A = /* @__PURE__ */ c({
11
+ const a = d({}), N = /* @__PURE__ */ f({
11
12
  name: "AplusConfigProvider",
12
- props: s(),
13
+ props: g(),
13
14
  setup(e, {
14
15
  slots: i
15
16
  }) {
16
- const a = f(() => ({
17
+ const l = m(() => ({
17
18
  namespace: e.namespace,
18
19
  aplusLocale: e.aplusLocale,
19
20
  api: e.api,
20
21
  table: {
21
- ...b,
22
+ ...C,
22
23
  ...e.table || {}
23
24
  },
24
25
  scrollbar: e.scrollbar,
25
26
  uiMode: e.uiMode,
26
27
  apUpload: e.apUpload,
27
28
  apDescriptions: e.apDescriptions
28
- })), t = g(a);
29
- return d(() => e, (o) => {
30
- r.value = v(o);
29
+ })), t = p(l);
30
+ return r(() => e, (o) => {
31
+ a.value = b(o);
31
32
  }, {
32
33
  deep: !0,
33
34
  immediate: !0
35
+ }), r(() => e.uiMode, (o) => {
36
+ v(o === "aplus" ? P : S);
37
+ }, {
38
+ immediate: !0
34
39
  }), () => {
35
40
  let o;
36
- return m(p, r.value, C(o = u(i, "default", {
41
+ return c(s, a.value, V(o = u(i, "default", {
37
42
  config: t == null ? void 0 : t.value
38
43
  })) ? o : {
39
44
  default: () => [o]
@@ -42,6 +47,6 @@ const r = l({}), A = /* @__PURE__ */ c({
42
47
  }
43
48
  });
44
49
  export {
45
- A as ConfigProvider,
46
- r as globalConfigCached
50
+ N as ConfigProvider,
51
+ a as globalConfigCached
47
52
  };
@@ -30,7 +30,8 @@ const o = {
30
30
  colorBgLayout: "#F2F6F9",
31
31
  colorBgSpotlight: "#000000cc",
32
32
  controlItemBgActive: "#F5F9FF",
33
- controlItemBgActiveHover: "#EAF2FF"
33
+ controlItemBgActiveHover: "#EAF2FF",
34
+ colorBorderSecondary: "#E9EDF3"
34
35
  }, c = {
35
36
  ...o,
36
37
  // 主色
@@ -61,7 +62,8 @@ const o = {
61
62
  colorBgLayout: "#FAFAFA",
62
63
  colorBgSpotlight: "#000000cc",
63
64
  controlItemBgActive: "#f3fbf7",
64
- controlItemBgActiveHover: "#e6f6ef"
65
+ controlItemBgActiveHover: "#e6f6ef",
66
+ colorBorderSecondary: "#E9E9E9"
65
67
  };
66
68
  export {
67
69
  c as adminToken,
@@ -1,4 +1,5 @@
1
1
  import { EditableColumnType } from './interface';
2
+ import { StandardBehaviorOptions } from '../../node_modules/scroll-into-view-if-needed';
2
3
  import { ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, CSSProperties, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, ShallowUnwrapRef } from 'vue';
3
4
  import { SpinSize } from 'ant-design-vue/es/spin/Spin';
4
5
  import { VueTypeValidableDef, VueTypeDef } from '../../node_modules/vue-types';
@@ -325,6 +326,7 @@ declare const _default: <RecordType = any>(__VLS_props: {
325
326
  getRowsData: () => UnwrapRefSimple<RecordType>[];
326
327
  setRowData: (index: number, payload: any) => void;
327
328
  addMultiple: (list: number | Partial<RecordType>[], insetIn?: 'prefix' | 'suffix') => void;
329
+ scrollTo: (index: number | 'end', options?: StandardBehaviorOptions) => void;
328
330
  }>) => void) | undefined, __VLS_setup?: Promise<{
329
331
  props: {
330
332
  loading?: boolean | Partial< ExtractPropTypes<{
@@ -600,6 +602,7 @@ declare const _default: <RecordType = any>(__VLS_props: {
600
602
  getRowsData: () => UnwrapRefSimple<RecordType>[];
601
603
  setRowData: (index: number, payload: any) => void;
602
604
  addMultiple: (list: number | Partial<RecordType>[], insetIn?: 'prefix' | 'suffix') => void;
605
+ scrollTo: (index: number | 'end', options?: StandardBehaviorOptions) => void;
603
606
  }>): void;
604
607
  attrs: any;
605
608
  slots: Readonly<{
@@ -912,6 +915,7 @@ declare const _default: <RecordType = any>(__VLS_props: {
912
915
  getRowsData: () => UnwrapRefSimple<RecordType>[];
913
916
  setRowData: (index: number, payload: any) => void;
914
917
  addMultiple: (list: number | Partial<RecordType>[], insetIn?: 'prefix' | 'suffix') => void;
918
+ scrollTo: (index: number | 'end', options?: StandardBehaviorOptions) => void;
915
919
  }>): void;
916
920
  attrs: any;
917
921
  slots: Readonly<{