@aplus-frontend/ui 7.7.8 → 7.7.9

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.
@@ -1,5 +1,5 @@
1
- import { defineComponent as w, ref as B, computed as A, createBlock as n, openBlock as r, unref as o, normalizeClass as s, withCtx as l, createElementVNode as c, createVNode as d, normalizeProps as b, guardReactiveProps as I, renderSlot as h, createCommentVNode as C, createElementBlock as P, Fragment as D, renderList as N, mergeProps as p } from "vue";
2
- import { Dropdown as $, Menu as L, MenuItem as V } from "@aplus-frontend/antdv";
1
+ import { defineComponent as w, ref as B, computed as A, createBlock as n, openBlock as t, unref as o, normalizeClass as s, withCtx as l, createElementVNode as c, createVNode as d, normalizeProps as b, guardReactiveProps as C, renderSlot as I, resolveDynamicComponent as h, createCommentVNode as D, createElementBlock as P, Fragment as N, renderList as $, mergeProps as p } from "vue";
2
+ import { Dropdown as L, Menu as V, MenuItem as x } from "@aplus-frontend/antdv";
3
3
  import "../item/index.vue.mjs";
4
4
  import "../item-modal/index.vue2.mjs";
5
5
  import "../item-popconfirm/index.vue2.mjs";
@@ -10,8 +10,8 @@ import M from "../style/dropdown-item.mjs";
10
10
  import { useNamespace as S } from "../../config-provider/hooks/use-namespace.mjs";
11
11
  import y from "../item/index.vue2.mjs";
12
12
  import U from "../item-modal/index.vue.mjs";
13
- import x from "../item-popconfirm/index.vue.mjs";
14
- const Z = /* @__PURE__ */ w({
13
+ import R from "../item-popconfirm/index.vue.mjs";
14
+ const ee = /* @__PURE__ */ w({
15
15
  name: "ApActionItemDropDown",
16
16
  __name: "index",
17
17
  props: {
@@ -40,31 +40,31 @@ const Z = /* @__PURE__ */ w({
40
40
  }
41
41
  }
42
42
  })));
43
- return (e, a) => (r(), n(o($), {
43
+ return (e, a) => (t(), n(o(L), {
44
44
  open: i.value,
45
- "onUpdate:open": a[0] || (a[0] = (t) => i.value = t),
45
+ "onUpdate:open": a[0] || (a[0] = (r) => i.value = r),
46
46
  trigger: e.trigger,
47
47
  placement: e.placement,
48
48
  class: s(o(u))
49
49
  }, {
50
50
  overlay: l(() => [
51
- d(o(L), null, {
51
+ d(o(V), null, {
52
52
  default: l(() => [
53
- (r(!0), P(D, null, N(v.value, (t, k) => (r(), n(o(V), {
53
+ (t(!0), P(N, null, $(v.value, (r, k) => (t(), n(o(x), {
54
54
  key: k,
55
55
  class: s([o(u), o(f)("item")])
56
56
  }, {
57
57
  default: l(() => [
58
- t.modalProps ? (r(), n(U, p({
58
+ r.modalProps ? (t(), n(U, p({
59
59
  key: 0,
60
60
  ref_for: !0
61
- }, t), null, 16)) : t.popconfirmProps ? (r(), n(x, p({
61
+ }, r), null, 16)) : r.popconfirmProps ? (t(), n(R, p({
62
62
  key: 1,
63
63
  ref_for: !0
64
- }, t), null, 16)) : (r(), n(y, p({
64
+ }, r), null, 16)) : (t(), n(y, p({
65
65
  key: 2,
66
66
  ref_for: !0
67
- }, t), null, 16))
67
+ }, r), null, 16))
68
68
  ]),
69
69
  _: 2
70
70
  }, 1032, ["class"]))), 128))
@@ -76,17 +76,19 @@ const Z = /* @__PURE__ */ w({
76
76
  c("span", {
77
77
  class: s(o(_)())
78
78
  }, [
79
- d(y, b(I(o(F)(m, ["actions", "trigger", "placement"]))), {
79
+ d(y, b(C(o(F)(m, ["actions", "trigger", "placement", "text"]))), {
80
80
  default: l(() => [
81
- h(e.$slots, "default")
81
+ I(e.$slots, "default", {}, () => [
82
+ (t(), n(h(() => e.text)))
83
+ ]),
84
+ c("span", {
85
+ class: s(o(f)("icon"))
86
+ }, [
87
+ e.showIcon ? (t(), n(o(z), { key: 0 })) : D("", !0)
88
+ ], 2)
82
89
  ]),
83
90
  _: 3
84
- }, 16),
85
- c("span", {
86
- class: s(o(f)("icon"))
87
- }, [
88
- e.showIcon ? (r(), n(o(z), { key: 0 })) : C("", !0)
89
- ], 2)
91
+ }, 16)
90
92
  ], 2)
91
93
  ]),
92
94
  _: 3
@@ -94,5 +96,5 @@ const Z = /* @__PURE__ */ w({
94
96
  }
95
97
  });
96
98
  export {
97
- Z as default
99
+ ee as default
98
100
  };
@@ -310,6 +310,7 @@ declare const __VLS_component: DefineComponent<ApActionItemPopconfirmProps, {},
310
310
  };
311
311
  onConfirm: PropType<(e: MouseEvent) => void>;
312
312
  onCancel: PropType<(e: MouseEvent) => void>;
313
+ onPopupClick: PropType<(e: MouseEvent) => void>;
313
314
  trigger: PropType< TriggerType | TriggerType[]>;
314
315
  open: {
315
316
  type: BooleanConstructor;
@@ -1,6 +1,6 @@
1
1
  import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
2
- const c = (e) => {
3
- const { componentCls: n, namespace: o } = e, t = `.${o}-action-item`;
2
+ const l = (e) => {
3
+ const { componentCls: n, namespace: t } = e, o = `.${t}-action-item`;
4
4
  return {
5
5
  [n]: {
6
6
  display: "inline-flex",
@@ -8,22 +8,20 @@ const c = (e) => {
8
8
  alignItems: "center",
9
9
  // dropdown menu item
10
10
  "&__item": {
11
- [t]: {
11
+ [o]: {
12
12
  width: "100%"
13
13
  }
14
14
  },
15
15
  [`${n}__icon`]: {
16
- color: e.colorLink,
17
- marginLeft: e.spaceXXS,
18
16
  fontSize: e.fontSize,
19
17
  display: "inline-flex"
20
18
  }
21
19
  }
22
20
  };
23
- }, r = i("ApAction.Dropdown", (e) => [
24
- c(e)
21
+ }, s = i("ApAction.Dropdown", (e) => [
22
+ l(e)
25
23
  ]);
26
24
  export {
27
- r as default,
28
- c as genActionDropdownItemStyle
25
+ s as default,
26
+ l as genActionDropdownItemStyle
29
27
  };
@@ -5,6 +5,9 @@ export type ActionToken = {
5
5
  * 加载中时的组件透明度
6
6
  */
7
7
  loadingOpacity: number;
8
+ /**
9
+ * 加载中图标出现/隐藏时的动画效果
10
+ */
8
11
  apActionLoadingIconEase: string;
9
12
  };
10
13
  export declare const genActionItemStyle: GenStyleFunc<ActionToken>;
@@ -1,13 +1,12 @@
1
- import { resetComponent as s } from "../../style/index.mjs";
2
- import { genComponentStyleHook as d } from "../../utils/cssinjs/index.mjs";
3
- const p = (o) => {
1
+ import { resetComponent as t } from "../../style/index.mjs";
2
+ import { genComponentStyleHook as s } from "../../utils/cssinjs/index.mjs";
3
+ const d = (o) => {
4
4
  const {
5
- loadingOpacity: r,
6
- colorLink: n,
7
- colorLinkHover: a,
8
- colorSuccess: l,
9
- colorError: c,
10
- colorWarn: e,
5
+ loadingOpacity: n,
6
+ colorLink: r,
7
+ colorSuccess: a,
8
+ colorError: l,
9
+ colorWarn: c,
11
10
  componentCls: i
12
11
  } = o;
13
12
  return {
@@ -19,41 +18,38 @@ const p = (o) => {
19
18
  textAlign: "center",
20
19
  gap: o.spaceXS,
21
20
  cursor: "pointer",
22
- ...s(o),
21
+ ...t(o),
22
+ [`&:not(${i}--disabled):hover`]: {
23
+ opacity: 0.7
24
+ },
23
25
  "&--primary": {
24
- color: n,
25
- [`&:not(${i}--disabled):hover`]: {
26
- color: a
27
- },
26
+ color: r,
28
27
  [`&${i}--disabled`]: {
29
28
  color: o.colorLinkDisabled
30
29
  }
31
30
  },
32
31
  "&--success": {
33
- color: l,
32
+ color: a,
34
33
  [`&${i}--disabled`]: {
35
34
  color: o.colorSuccessDisabled
36
35
  }
37
36
  },
38
37
  "&--error": {
39
- color: c,
38
+ color: l,
40
39
  [`&${i}--disabled`]: {
41
40
  color: o.colorErrorDisabled
42
41
  }
43
42
  },
44
43
  "&--warn": {
45
- color: e,
44
+ color: c,
46
45
  [`&${i}--disabled`]: {
47
46
  color: o.colorWarnDisabled
48
47
  }
49
48
  },
50
49
  "&--loading": {
51
- opacity: r,
50
+ opacity: n,
52
51
  transition: `opacity ${o.motionDurationMid}`,
53
52
  cursor: "default",
54
- // [`${componentCls}-loading-icon`]: {
55
- // marginRight: token.spaceXS
56
- // },
57
53
  [`&${i}--disabled`]: {
58
54
  opacity: 1
59
55
  }
@@ -71,7 +67,7 @@ const p = (o) => {
71
67
  display: "inline-block",
72
68
  lineHeight: 0,
73
69
  transition: ["width", "opacity", "margin"].map(
74
- (t) => `${t} ${o.motionDurationSlow} ${o.apActionLoadingIconEase}`
70
+ (e) => `${e} ${o.motionDurationSlow} ${o.apActionLoadingIconEase}`
75
71
  ).join(",")
76
72
  },
77
73
  [`${i}-loading-icon-motion`]: {
@@ -90,9 +86,9 @@ const p = (o) => {
90
86
  }
91
87
  }
92
88
  };
93
- }, u = d(
89
+ }, g = s(
94
90
  "ApAction",
95
- (o) => [p(o)],
91
+ (o) => [d(o)],
96
92
  {
97
93
  loadingOpacity: 0.35,
98
94
  apActionLoadingIconEase: "cubic-bezier(0.645, 0.045, 0.355, 1)"
@@ -102,6 +98,6 @@ const p = (o) => {
102
98
  }
103
99
  );
104
100
  export {
105
- u as default,
106
- p as genActionItemStyle
101
+ g as default,
102
+ d as genActionItemStyle
107
103
  };
@@ -1,13 +1,19 @@
1
- const a = (e) => {
2
- const { componentCls: r } = e;
1
+ const t = (a) => {
2
+ const { componentCls: e } = a;
3
3
  return {
4
- [`${r}-text-area`]: {
4
+ [`${e}-textarea--read`]: {
5
5
  whiteSpace: "pre-wrap",
6
6
  wordWrap: "break-word",
7
7
  wordBreak: "break-all"
8
+ },
9
+ [`${e}-textarea`]: {
10
+ "&.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon": {
11
+ insetBlockStart: "9px"
12
+ // (28 - 10) / 2
13
+ }
8
14
  }
9
15
  };
10
16
  };
11
17
  export {
12
- a as genTextareaStyle
18
+ t as genTextareaStyle
13
19
  };
@@ -1,13 +1,13 @@
1
- import { defineComponent as h, shallowRef as B, computed as b, createElementBlock as I, createBlock as A, openBlock as p, normalizeClass as C, unref as e, toDisplayString as g, mergeProps as z } from "vue";
2
- import { isNil as T, omit as w } from "lodash-unified";
1
+ import { defineComponent as B, shallowRef as b, computed as I, createElementBlock as A, createBlock as C, openBlock as s, normalizeClass as g, unref as e, toDisplayString as z, mergeProps as T } from "vue";
2
+ import { isNil as w, omit as k } from "lodash-unified";
3
3
  import "../../hooks/index.mjs";
4
4
  import "../../config-provider/index.mjs";
5
- import { Input as k } from "@aplus-frontend/antdv";
6
- import { useDefaultPlaceholder as R } from "../hooks/use-default-placeholder.mjs";
7
- import S from "../style/index.mjs";
8
- import { useControllableValue as _ } from "../../hooks/useControllableValue.mjs";
9
- import { useNamespace as U } from "../../config-provider/hooks/use-namespace.mjs";
10
- const O = /* @__PURE__ */ h({
5
+ import { Input as R } from "@aplus-frontend/antdv";
6
+ import { useDefaultPlaceholder as S } from "../hooks/use-default-placeholder.mjs";
7
+ import _ from "../style/index.mjs";
8
+ import { useControllableValue as U } from "../../hooks/useControllableValue.mjs";
9
+ import { useNamespace as V } from "../../config-provider/hooks/use-namespace.mjs";
10
+ const q = /* @__PURE__ */ B({
11
11
  name: "ApFieldTextArea",
12
12
  __name: "index",
13
13
  props: {
@@ -62,36 +62,37 @@ const O = /* @__PURE__ */ h({
62
62
  beforeInput: {}
63
63
  },
64
64
  emits: ["update:value"],
65
- setup(s, { expose: i, emit: d }) {
66
- const o = B(), a = s, m = d, { value: l, updateValue: c } = _(a, m), { b: f } = U("field-text-area"), y = S("field"), x = R("TextArea", a);
67
- function v(t) {
68
- const n = t.target.value || "", r = a.beforeInput ? a.beforeInput?.(n) : n, u = o.value?.$el?.querySelector("textarea");
69
- u && (u.value = r), c(r);
65
+ setup(i, { expose: d, emit: c }) {
66
+ const o = b(), a = i, m = c, { value: l, updateValue: f } = U(a, m), { b: y, m: x } = V("field-textarea"), r = _("field"), v = S("TextArea", a);
67
+ function h(t) {
68
+ const n = t.target.value || "", u = a.beforeInput ? a.beforeInput?.(n) : n, p = o.value?.$el?.querySelector("textarea");
69
+ p && (p.value = u), f(u);
70
70
  }
71
- return i({
71
+ return d({
72
72
  focus: (t) => {
73
73
  o.value?.focus(t);
74
74
  },
75
75
  blur: () => {
76
76
  o.value?.blur();
77
77
  },
78
- resizableTextArea: b(() => o.value?.resizableTextArea)
79
- }), (t, n) => t.mode === "read" ? (p(), I("span", {
78
+ resizableTextArea: I(() => o.value?.resizableTextArea)
79
+ }), (t, n) => t.mode === "read" ? (s(), A("span", {
80
80
  key: 0,
81
- class: C([e(f)(), e(y)])
82
- }, g(e(T)(e(l)) || e(l) === "" ? t.emptyText : e(l)), 3)) : (p(), A(e(k).TextArea, z(
81
+ class: g([e(x)("read"), e(r)])
82
+ }, z(e(w)(e(l)) || e(l) === "" ? t.emptyText : e(l)), 3)) : (s(), C(e(R).TextArea, T(
83
83
  { key: 1 },
84
- e(w)(a, ["onUpdate:value", "value", "beforeInput", "emptyText"]),
84
+ e(k)(a, ["onUpdate:value", "value", "beforeInput", "emptyText"]),
85
85
  {
86
86
  ref_key: "textAreaRef",
87
87
  ref: o,
88
- placeholder: e(x),
88
+ placeholder: e(v),
89
89
  value: e(l),
90
- onInput: v
90
+ class: [e(y)(), e(r)],
91
+ onInput: h
91
92
  }
92
- ), null, 16, ["placeholder", "value"]));
93
+ ), null, 16, ["placeholder", "value", "class"]));
93
94
  }
94
95
  });
95
96
  export {
96
- O as default
97
+ q as default
97
98
  };
@@ -1,8 +1,8 @@
1
- import { genComponentStyleHook as i } from "../../utils/cssinjs/index.mjs";
2
- const r = (n) => {
3
- const { componentCls: a, namespace: t } = n, e = `${a}--disabled`;
1
+ import { genComponentStyleHook as r } from "../../utils/cssinjs/index.mjs";
2
+ const o = (n) => {
3
+ const { componentCls: e, namespace: a } = n, i = `${e}--disabled`, t = n.calc(n.controlHeight).sub(n.calc(n.lineWidth).mul(2)).equal();
4
4
  return {
5
- [a]: {
5
+ [e]: {
6
6
  // bordered
7
7
  "&--bordered": {
8
8
  boxSizing: "border-box",
@@ -12,7 +12,7 @@ const r = (n) => {
12
12
  ".ant-input-affix-wrapper": {
13
13
  padding: 0
14
14
  },
15
- [`&:has(.${t}-batch-input-group):has(.ant-select)`]: {
15
+ [`&:has(.${a}-batch-input-group):has(.ant-select)`]: {
16
16
  ".ant-input-affix-wrapper": {
17
17
  paddingInlineEnd: n.space
18
18
  }
@@ -23,7 +23,7 @@ const r = (n) => {
23
23
  paddingInlineStart: 0
24
24
  }
25
25
  },
26
- [`&:has(div.${t}-batch-input-group .ant-input)`]: {
26
+ [`&:has(div.${a}-batch-input-group .ant-input)`]: {
27
27
  paddingInlineEnd: n.space,
28
28
  ".ant-input": {
29
29
  paddingInlineStart: 0
@@ -52,7 +52,7 @@ const r = (n) => {
52
52
  background: "unset !important"
53
53
  },
54
54
  ".ant-select-single .ant-select-selector": {
55
- height: `${n.controlHeight} !important`
55
+ height: `${t} !important`
56
56
  },
57
57
  "input.ant-input-number-input": {
58
58
  paddingInlineStart: 0
@@ -72,25 +72,25 @@ const r = (n) => {
72
72
  },
73
73
  ".ant-form-item-label > label": {
74
74
  paddingRight: n.spaceLG,
75
- height: n.controlHeight,
75
+ height: t,
76
76
  "&::after": {
77
77
  margin: 0
78
78
  }
79
79
  },
80
80
  ".ant-form-item-control-input": {
81
- minHeight: n.controlHeight,
81
+ minHeight: t,
82
82
  ".ant-select-single": {
83
83
  height: "unset"
84
84
  }
85
85
  },
86
- [`&:hover:not(${e})`]: {
86
+ [`&:hover:not(${i})`]: {
87
87
  borderColor: n.hoverColorBase
88
88
  },
89
89
  "&:focus": {
90
90
  borderColor: n.activeColorBase,
91
91
  boxShadow: "0 0 0 2px rgba(5, 155, 255, 0.1)"
92
92
  },
93
- [`.${t}-batch-input-group-popover-input__popover`]: {
93
+ [`.${a}-batch-input-group-popover-input__popover`]: {
94
94
  width: "calc(100% + 12px)"
95
95
  }
96
96
  },
@@ -129,17 +129,11 @@ const r = (n) => {
129
129
  paddingInline: n.space,
130
130
  flex: 1
131
131
  }
132
- },
133
- textarea: {
134
- lineHeight: "20px"
135
- },
136
- "& .ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon": {
137
- insetBlockStart: "8px"
138
132
  }
139
133
  }
140
134
  };
141
- }, p = i("ApForm", (n) => [r(n)]);
135
+ }, p = r("ApForm", (n) => [o(n)]);
142
136
  export {
143
137
  p as default,
144
- r as genApFormItemStyle
138
+ o as genApFormItemStyle
145
139
  };
@@ -1,28 +1,28 @@
1
1
  import { resetComponent as o } from "../../style/index.mjs";
2
- import { genComponentStyleHook as t } from "../../utils/cssinjs/index.mjs";
3
- const s = (e) => {
2
+ import { genComponentStyleHook as n } from "../../utils/cssinjs/index.mjs";
3
+ const s = (i) => {
4
4
  const {
5
- componentCls: i,
5
+ componentCls: e,
6
6
  checkCardDisabledOutlineColor: l,
7
- checkCardIndicatorSize: c,
7
+ checkCardIndicatorSize: a,
8
8
  checkCardOutlineWidth: r,
9
9
  checkCardIndicatorOffset: d
10
- } = e, a = e.calc(c).mul(2).equal();
10
+ } = i, c = i.calc(a).mul(2).equal();
11
11
  return {
12
- [`${i}`]: {
13
- ...o(e),
14
- borderRadius: e.borderRadius,
12
+ [`${e}`]: {
13
+ ...o(i),
14
+ borderRadius: i.borderRadius,
15
15
  position: "relative",
16
16
  "&--disabled": {
17
- backgroundColor: e.checkCardDisabledBg,
17
+ backgroundColor: i.checkCardDisabledBg,
18
18
  cursor: "not-allowed !important"
19
19
  },
20
20
  "&--bordered": {
21
- outline: `${e.lineWidth} ${e.lineType} ${e.borderColorBase}`
21
+ outline: `${i.lineWidth} ${i.lineType} ${i.borderColorBase}`
22
22
  },
23
- [`&:hover:not(${i}--disabled)`]: {
23
+ [`&:hover:not(${e}--disabled)`]: {
24
24
  cursor: "pointer",
25
- outline: `${e.lineWidth} ${e.lineType} ${e.colorPrimary}`
25
+ outline: `${i.lineWidth} ${i.lineType} ${i.colorPrimary}`
26
26
  },
27
27
  "&::after": {
28
28
  content: '""',
@@ -32,22 +32,24 @@ const s = (e) => {
32
32
  insetBlockStart: 0,
33
33
  insetInlineEnd: 0,
34
34
  clipPath: "polygon(100% 0, 100% 100%, 0 0)",
35
- background: e.colorPrimary,
36
- borderRadius: e.calc(e.borderRadius).add("2px").equal()
35
+ background: i.colorPrimary,
36
+ borderRadius: i.calc(i.borderRadius).add("2px").equal()
37
37
  },
38
38
  "&--checked": {
39
- outline: `${r} ${e.lineType} ${e.colorPrimary}`,
40
- [`&:hover:not(${i}--disabled)`]: {
41
- outline: `${r} ${e.lineType} ${e.colorPrimary}`
39
+ outline: `${r} ${i.lineType} ${i.colorPrimary}`,
40
+ [`&:hover:not(${e}--disabled)`]: {
41
+ outline: `${r} ${i.lineType} ${i.colorPrimary}`
42
42
  },
43
43
  "&::after": {
44
- width: a,
45
- height: a,
44
+ width: c,
45
+ height: c,
46
46
  insetBlockStart: d,
47
47
  insetInlineEnd: d,
48
- transition: "width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), inset 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"
48
+ transition: ["width", "height", "inset"].map(
49
+ (t) => `${t} ${i.motionDurationSlow} cubic-bezier(0.645, 0.045, 0.355, 1)`
50
+ ).join(", ")
49
51
  },
50
- [`&${i}--disabled`]: {
52
+ [`&${e}--disabled`]: {
51
53
  outlineColor: l,
52
54
  "&::after": {
53
55
  backgroundColor: l
@@ -55,28 +57,28 @@ const s = (e) => {
55
57
  }
56
58
  },
57
59
  "&--middle": {
58
- padding: e.spaceLG
60
+ padding: i.spaceLG
59
61
  },
60
62
  "&--small": {
61
- padding: `${e.spaceSM} ${e.spaceLG}`
63
+ padding: `${i.spaceSM} ${i.spaceLG}`
62
64
  },
63
- [`${i}__title`]: {
64
- ...o(e),
65
- marginBottom: e.spaceXS,
66
- color: e.textColor1,
65
+ [`${e}__title`]: {
66
+ ...o(i),
67
+ marginBottom: i.spaceXS,
68
+ color: i.textColor1,
67
69
  fontWeight: "bold",
68
70
  "&--disabled": {
69
- color: e.textColor4
71
+ color: i.textColor4
70
72
  }
71
73
  },
72
- [`${i}__content`]: {
73
- ...o(e),
74
- color: e.textColor1,
74
+ [`${e}__content`]: {
75
+ ...o(i),
76
+ color: i.textColor1,
75
77
  "&--disabled": {
76
- color: e.textColor4
78
+ color: i.textColor4
77
79
  }
78
80
  },
79
- [`${i}__checked-icon`]: {
81
+ [`${e}__checked-icon`]: {
80
82
  position: "absolute",
81
83
  top: 0,
82
84
  right: 0,
@@ -84,15 +86,15 @@ const s = (e) => {
84
86
  lineHeight: 1,
85
87
  userSelect: "none",
86
88
  "& > img": {
87
- width: e.calc(c).sub(r).equal(),
89
+ width: i.calc(a).sub(r).equal(),
88
90
  verticalAlign: "top"
89
91
  }
90
92
  }
91
93
  }
92
94
  };
93
- }, u = t(
95
+ }, p = n(
94
96
  "CheckCard",
95
- (e) => [s(e)],
97
+ (i) => [s(i)],
96
98
  {
97
99
  checkCardDisabledBg: "#F9F9FA",
98
100
  checkCardDisabledOutlineColor: "#E9EDF3",
@@ -102,5 +104,5 @@ const s = (e) => {
102
104
  }
103
105
  );
104
106
  export {
105
- u as default
107
+ p as default
106
108
  };
@@ -1,2 +1,2 @@
1
- declare const _default: "7.7.8";
1
+ declare const _default: "7.7.9";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "7.7.8";
1
+ const e = "7.7.9";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv");require("../item/index.vue.js");require("../item-modal/index.vue2.js");require("../item-popconfirm/index.vue2.js");const _=require("@aplus-frontend/icon");require("../../config-provider/index.js");const i=require("lodash-unified"),g=require("../style/dropdown-item.js"),k=require("../../config-provider/hooks/use-namespace.js"),c=require("../item/index.vue2.js"),v=require("../item-modal/index.vue.js"),y=require("../item-popconfirm/index.vue.js"),B=e.defineComponent({name:"ApActionItemDropDown",__name:"index",props:{trigger:{default:()=>["hover"]},placement:{default:"bottomLeft"},actions:{default:()=>[]},showIcon:{type:Boolean,default:!0},text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onClick:{},loading:{type:Boolean,default:!1},icon:{},iconFirst:{type:Boolean},tooltip:{}},setup(p){const a=p,n=e.ref(!1),{e:u,b:d}=k.useNamespace("action-item-dropdown"),s=g.default("action-item-dropdown"),f=e.computed(()=>a.actions.filter(t=>t.visible||i.isUndefined(t.visible)).map(t=>({...t,onAction:async o=>{try{await t.onAction?.(o)}finally{n.value=!1}}})));return(t,o)=>(e.openBlock(),e.createBlock(e.unref(l.Dropdown),{open:n.value,"onUpdate:open":o[0]||(o[0]=r=>n.value=r),trigger:t.trigger,placement:t.placement,class:e.normalizeClass(e.unref(s))},{overlay:e.withCtx(()=>[e.createVNode(e.unref(l.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(r,m)=>(e.openBlock(),e.createBlock(e.unref(l.MenuItem),{key:m,class:e.normalizeClass([e.unref(s),e.unref(u)("item")])},{default:e.withCtx(()=>[r.modalProps?(e.openBlock(),e.createBlock(v.default,e.mergeProps({key:0,ref_for:!0},r),null,16)):r.popconfirmProps?(e.openBlock(),e.createBlock(y.default,e.mergeProps({key:1,ref_for:!0},r),null,16)):(e.openBlock(),e.createBlock(c.default,e.mergeProps({key:2,ref_for:!0},r),null,16))]),_:2},1032,["class"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(d)())},[e.createVNode(c.default,e.normalizeProps(e.guardReactiveProps(e.unref(i.omit)(a,["actions","trigger","placement"]))),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16),e.createElementVNode("span",{class:e.normalizeClass(e.unref(u)("icon"))},[t.showIcon?(e.openBlock(),e.createBlock(e.unref(_.IconApAdLineDown),{key:0})):e.createCommentVNode("",!0)],2)],2)]),_:3},8,["open","trigger","placement","class"]))}});exports.default=B;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("@aplus-frontend/antdv");require("../item/index.vue.js");require("../item-modal/index.vue2.js");require("../item-popconfirm/index.vue2.js");const _=require("@aplus-frontend/icon");require("../../config-provider/index.js");const i=require("lodash-unified"),g=require("../style/dropdown-item.js"),k=require("../../config-provider/hooks/use-namespace.js"),c=require("../item/index.vue2.js"),v=require("../item-modal/index.vue.js"),B=require("../item-popconfirm/index.vue.js"),y=e.defineComponent({name:"ApActionItemDropDown",__name:"index",props:{trigger:{default:()=>["hover"]},placement:{default:"bottomLeft"},actions:{default:()=>[]},showIcon:{type:Boolean,default:!0},text:{},color:{default:"primary"},disabled:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},onClick:{},loading:{type:Boolean,default:!1},icon:{},iconFirst:{type:Boolean},tooltip:{}},setup(p){const a=p,n=e.ref(!1),{e:u,b:d}=k.useNamespace("action-item-dropdown"),s=g.default("action-item-dropdown"),f=e.computed(()=>a.actions.filter(t=>t.visible||i.isUndefined(t.visible)).map(t=>({...t,onAction:async o=>{try{await t.onAction?.(o)}finally{n.value=!1}}})));return(t,o)=>(e.openBlock(),e.createBlock(e.unref(l.Dropdown),{open:n.value,"onUpdate:open":o[0]||(o[0]=r=>n.value=r),trigger:t.trigger,placement:t.placement,class:e.normalizeClass(e.unref(s))},{overlay:e.withCtx(()=>[e.createVNode(e.unref(l.Menu),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.value,(r,m)=>(e.openBlock(),e.createBlock(e.unref(l.MenuItem),{key:m,class:e.normalizeClass([e.unref(s),e.unref(u)("item")])},{default:e.withCtx(()=>[r.modalProps?(e.openBlock(),e.createBlock(v.default,e.mergeProps({key:0,ref_for:!0},r),null,16)):r.popconfirmProps?(e.openBlock(),e.createBlock(B.default,e.mergeProps({key:1,ref_for:!0},r),null,16)):(e.openBlock(),e.createBlock(c.default,e.mergeProps({key:2,ref_for:!0},r),null,16))]),_:2},1032,["class"]))),128))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(d)())},[e.createVNode(c.default,e.normalizeProps(e.guardReactiveProps(e.unref(i.omit)(a,["actions","trigger","placement","text"]))),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(()=>t.text)))]),e.createElementVNode("span",{class:e.normalizeClass(e.unref(u)("icon"))},[t.showIcon?(e.openBlock(),e.createBlock(e.unref(_.IconApAdLineDown),{key:0})):e.createCommentVNode("",!0)],2)]),_:3},16)],2)]),_:3},8,["open","trigger","placement","class"]))}});exports.default=y;
@@ -310,6 +310,7 @@ declare const __VLS_component: DefineComponent<ApActionItemPopconfirmProps, {},
310
310
  };
311
311
  onConfirm: PropType<(e: MouseEvent) => void>;
312
312
  onCancel: PropType<(e: MouseEvent) => void>;
313
+ onPopupClick: PropType<(e: MouseEvent) => void>;
313
314
  trigger: PropType< TriggerType | TriggerType[]>;
314
315
  open: {
315
316
  type: BooleanConstructor;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../utils/cssinjs/index.js"),t=e=>{const{componentCls:n,namespace:o}=e,i=`.${o}-action-item`;return{[n]:{display:"inline-flex",flexDirection:"row",alignItems:"center","&__item":{[i]:{width:"100%"}},[`${n}__icon`]:{color:e.colorLink,marginLeft:e.spaceXXS,fontSize:e.fontSize,display:"inline-flex"}}}},c=l.genComponentStyleHook("ApAction.Dropdown",e=>[t(e)]);exports.default=c;exports.genActionDropdownItemStyle=t;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("../../utils/cssinjs/index.js"),n=e=>{const{componentCls:t,namespace:o}=e,i=`.${o}-action-item`;return{[t]:{display:"inline-flex",flexDirection:"row",alignItems:"center","&__item":{[i]:{width:"100%"}},[`${t}__icon`]:{fontSize:e.fontSize,display:"inline-flex"}}}},c=l.genComponentStyleHook("ApAction.Dropdown",e=>[n(e)]);exports.default=c;exports.genActionDropdownItemStyle=n;
@@ -5,6 +5,9 @@ export type ActionToken = {
5
5
  * 加载中时的组件透明度
6
6
  */
7
7
  loadingOpacity: number;
8
+ /**
9
+ * 加载中图标出现/隐藏时的动画效果
10
+ */
8
11
  apActionLoadingIconEase: string;
9
12
  };
10
13
  export declare const genActionItemStyle: GenStyleFunc<ActionToken>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("../../style/index.js"),p=require("../../utils/cssinjs/index.js"),e=o=>{const{loadingOpacity:n,colorLink:r,colorLinkHover:l,colorSuccess:a,colorError:c,colorWarn:t,componentCls:i}=o;return{[i]:{display:"inline-flex",justifyContent:"center",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",gap:o.spaceXS,cursor:"pointer",...d.resetComponent(o),"&--primary":{color:r,[`&:not(${i}--disabled):hover`]:{color:l},[`&${i}--disabled`]:{color:o.colorLinkDisabled}},"&--success":{color:a,[`&${i}--disabled`]:{color:o.colorSuccessDisabled}},"&--error":{color:c,[`&${i}--disabled`]:{color:o.colorErrorDisabled}},"&--warn":{color:t,[`&${i}--disabled`]:{color:o.colorWarnDisabled}},"&--loading":{opacity:n,transition:`opacity ${o.motionDurationMid}`,cursor:"default",[`&${i}--disabled`]:{opacity:1}},"&--disabled":{cursor:"not-allowed"},[`${i}__icon-wrapper`]:{},"&--icon-first":{[`${i}__icon-wrapper`]:{paddingRight:0}},[`${i}-loading-icon`]:{display:"inline-block",lineHeight:0,transition:["width","opacity","margin"].map(s=>`${s} ${o.motionDurationSlow} ${o.apActionLoadingIconEase}`).join(",")},[`${i}-loading-icon-motion`]:{"&-enter-from":{marginInlineEnd:o.calc(o.spaceXS).mul(-1).equal()},"&-enter-to":{marginInlineEnd:0},"&-leave-from":{marginInlineEnd:0},"&-leave-to":{marginInlineEnd:o.calc(o.spaceXS).mul(-1).equal()}}}}},u=p.genComponentStyleHook("ApAction",o=>[e(o)],{loadingOpacity:.35,apActionLoadingIconEase:"cubic-bezier(0.645, 0.045, 0.355, 1)"},{skipUnit:["loadingOpacity"]});exports.default=u;exports.genActionItemStyle=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("../../style/index.js"),d=require("../../utils/cssinjs/index.js"),e=o=>{const{loadingOpacity:n,colorLink:r,colorSuccess:a,colorError:l,colorWarn:c,componentCls:i}=o;return{[i]:{display:"inline-flex",justifyContent:"center",alignItems:"center",whiteSpace:"nowrap",textAlign:"center",gap:o.spaceXS,cursor:"pointer",...s.resetComponent(o),[`&:not(${i}--disabled):hover`]:{opacity:.7},"&--primary":{color:r,[`&${i}--disabled`]:{color:o.colorLinkDisabled}},"&--success":{color:a,[`&${i}--disabled`]:{color:o.colorSuccessDisabled}},"&--error":{color:l,[`&${i}--disabled`]:{color:o.colorErrorDisabled}},"&--warn":{color:c,[`&${i}--disabled`]:{color:o.colorWarnDisabled}},"&--loading":{opacity:n,transition:`opacity ${o.motionDurationMid}`,cursor:"default",[`&${i}--disabled`]:{opacity:1}},"&--disabled":{cursor:"not-allowed"},[`${i}__icon-wrapper`]:{},"&--icon-first":{[`${i}__icon-wrapper`]:{paddingRight:0}},[`${i}-loading-icon`]:{display:"inline-block",lineHeight:0,transition:["width","opacity","margin"].map(t=>`${t} ${o.motionDurationSlow} ${o.apActionLoadingIconEase}`).join(",")},[`${i}-loading-icon-motion`]:{"&-enter-from":{marginInlineEnd:o.calc(o.spaceXS).mul(-1).equal()},"&-enter-to":{marginInlineEnd:0},"&-leave-from":{marginInlineEnd:0},"&-leave-to":{marginInlineEnd:o.calc(o.spaceXS).mul(-1).equal()}}}}},p=d.genComponentStyleHook("ApAction",o=>[e(o)],{loadingOpacity:.35,apActionLoadingIconEase:"cubic-bezier(0.645, 0.045, 0.355, 1)"},{skipUnit:["loadingOpacity"]});exports.default=p;exports.genActionItemStyle=e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>{const{componentCls:r}=e;return{[`${r}-text-area`]:{whiteSpace:"pre-wrap",wordWrap:"break-word",wordBreak:"break-all"}}};exports.genTextareaStyle=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=t=>{const{componentCls:e}=t;return{[`${e}-textarea--read`]:{whiteSpace:"pre-wrap",wordWrap:"break-word",wordBreak:"break-all"},[`${e}-textarea`]:{"&.ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon":{insetBlockStart:"9px"}}}};exports.genTextareaStyle=a;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("lodash-unified");require("../../hooks/index.js");require("../../config-provider/index.js");const x=require("@aplus-frontend/antdv"),b=require("../hooks/use-default-placeholder.js"),B=require("../style/index.js"),I=require("../../hooks/useControllableValue.js"),g=require("../../config-provider/hooks/use-namespace.js"),q=e.defineComponent({name:"ApFieldTextArea",__name:"index",props:{mode:{default:"edit"},class:{},style:{},rows:{},autoSize:{type:[Boolean,Object]},onResize:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},size:{},value:{},name:{},type:{default:"text"},onFocus:{},onBlur:{},onChange:{},onInput:{},onKeydown:{},onKeyup:{},onMousedown:{},focused:{type:Boolean},hidden:{type:Boolean},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},readonly:{type:Boolean},autofocus:{type:Boolean},variant:{},autocomplete:{},placeholder:{},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onMouseUp:{},onRawInput:{},"onUpdate:value":{},status:{},defaultValue:{},inputElement:{},triggerFocus:{},handleReset:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"},beforeInput:{}},emits:["update:value"],setup(p,{expose:i,emit:d}){const o=e.shallowRef(),a=p,c=d,{value:n,updateValue:f}=I.useControllableValue(a,c),{b:m}=g.useNamespace("field-text-area"),y=B.default("field"),v=b.useDefaultPlaceholder("TextArea",a);function h(t){const l=t.target.value||"",u=a.beforeInput?a.beforeInput?.(l):l,r=o.value?.$el?.querySelector("textarea");r&&(r.value=u),f(u)}return i({focus:t=>{o.value?.focus(t)},blur:()=>{o.value?.blur()},resizableTextArea:e.computed(()=>o.value?.resizableTextArea)}),(t,l)=>t.mode==="read"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(m)(),e.unref(y)])},e.toDisplayString(e.unref(s.isNil)(e.unref(n))||e.unref(n)===""?t.emptyText:e.unref(n)),3)):(e.openBlock(),e.createBlock(e.unref(x.Input).TextArea,e.mergeProps({key:1},e.unref(s.omit)(a,["onUpdate:value","value","beforeInput","emptyText"]),{ref_key:"textAreaRef",ref:o,placeholder:e.unref(v),value:e.unref(n),onInput:h}),null,16,["placeholder","value"]))}});exports.default=q;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("lodash-unified");require("../../hooks/index.js");require("../../config-provider/index.js");const b=require("@aplus-frontend/antdv"),B=require("../hooks/use-default-placeholder.js"),I=require("../style/index.js"),g=require("../../hooks/useControllableValue.js"),q=require("../../config-provider/hooks/use-namespace.js"),C=e.defineComponent({name:"ApFieldTextArea",__name:"index",props:{mode:{default:"edit"},class:{},style:{},rows:{},autoSize:{type:[Boolean,Object]},onResize:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},size:{},value:{},name:{},type:{default:"text"},onFocus:{},onBlur:{},onChange:{},onInput:{},onKeydown:{},onKeyup:{},onMousedown:{},focused:{type:Boolean},hidden:{type:Boolean},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},readonly:{type:Boolean},autofocus:{type:Boolean},variant:{},autocomplete:{},placeholder:{},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onMouseUp:{},onRawInput:{},"onUpdate:value":{},status:{},defaultValue:{},inputElement:{},triggerFocus:{},handleReset:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"},beforeInput:{}},emits:["update:value"],setup(d,{expose:i,emit:c}){const o=e.shallowRef(),a=d,f=c,{value:n,updateValue:m}=g.useControllableValue(a,f),{b:y,m:v}=q.useNamespace("field-textarea"),u=I.default("field"),h=B.useDefaultPlaceholder("TextArea",a);function x(t){const l=t.target.value||"",r=a.beforeInput?a.beforeInput?.(l):l,s=o.value?.$el?.querySelector("textarea");s&&(s.value=r),m(r)}return i({focus:t=>{o.value?.focus(t)},blur:()=>{o.value?.blur()},resizableTextArea:e.computed(()=>o.value?.resizableTextArea)}),(t,l)=>t.mode==="read"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(v)("read"),e.unref(u)])},e.toDisplayString(e.unref(p.isNil)(e.unref(n))||e.unref(n)===""?t.emptyText:e.unref(n)),3)):(e.openBlock(),e.createBlock(e.unref(b.Input).TextArea,e.mergeProps({key:1},e.unref(p.omit)(a,["onUpdate:value","value","beforeInput","emptyText"]),{ref_key:"textAreaRef",ref:o,placeholder:e.unref(h),value:e.unref(n),class:[e.unref(y)(),e.unref(u)],onInput:x}),null,16,["placeholder","value","class"]))}});exports.default=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../../utils/cssinjs/index.js"),a=n=>{const{componentCls:t,namespace:e}=n,i=`${t}--disabled`;return{[t]:{"&--bordered":{boxSizing:"border-box",border:`${n.lineWidth} ${n.lineType} ${n.borderColorBase}`,borderRadius:n.borderRadius,paddingInline:n.space,".ant-input-affix-wrapper":{padding:0},[`&:has(.${e}-batch-input-group):has(.ant-select)`]:{".ant-input-affix-wrapper":{paddingInlineEnd:n.space}},"&:has(textarea.ant-input)":{paddingInlineEnd:0,".ant-input":{paddingInlineStart:0}},[`&:has(div.${e}-batch-input-group .ant-input)`]:{paddingInlineEnd:n.space,".ant-input":{paddingInlineStart:0}},".ant-picker":{padding:0},".ant-form-item-control-input-content":{"& > .ant-input-group":{"& > .ant-picker-range:nth-child(1)":{".ant-picker-clear":{insetInlineEnd:0}}}},".ant-space-compact-block":{".ant-input":{paddingInlineStart:n.space}},".ant-select-selector":{borderWidth:"0 !important",boxShadow:"none !important",background:"unset !important"},".ant-select-single .ant-select-selector":{height:`${n.controlHeight} !important`},"input.ant-input-number-input":{paddingInlineStart:0},"&:has(.ant-input-number)":{paddingInlineEnd:0},"&:has(.ant-select)":{paddingInlineEnd:0,".ant-form-item-label > label":{paddingInlineEnd:n.spaceXS}},"div.ant-form-item-control":{flex:"1 1 0",minWidth:0},".ant-form-item-label > label":{paddingRight:n.spaceLG,height:n.controlHeight,"&::after":{margin:0}},".ant-form-item-control-input":{minHeight:n.controlHeight,".ant-select-single":{height:"unset"}},[`&:hover:not(${i})`]:{borderColor:n.hoverColorBase},"&:focus":{borderColor:n.activeColorBase,boxShadow:"0 0 0 2px rgba(5, 155, 255, 0.1)"},[`.${e}-batch-input-group-popover-input__popover`]:{width:"calc(100% + 12px)"}},"&--disabled":{cursor:"not-allowed",backgroundColor:n.colorBgDisabled,".ant-select-selector":{backgroundColor:"transparent !important"}},"&--focused":{borderColor:n.activeColorBase,boxShadow:"0 0 0 2px rgba(5, 155, 255, 0.1)"},".ant-form-show-help":{".ant-form-item-explain-error":{fontSize:n.fontSize,lineHeight:n.lineHeightSM}},".ant-col .ant-form-item-extra":{lineHeight:n.lineHeightLG,minHeight:"unset",marginBlockStart:n.spaceXS,marginBlockEnd:n.spaceLG},".ant-input-group":{".ant-picker:only-child":{width:"100%"},".ant-select + .ant-picker":{paddingInline:n.space,flex:1}},textarea:{lineHeight:"20px"},"& .ant-input-affix-wrapper-textarea-with-clear-btn .ant-input-clear-icon":{insetBlockStart:"8px"}}}},o=r.genComponentStyleHook("ApForm",n=>[a(n)]);exports.default=o;exports.genApFormItemStyle=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../utils/cssinjs/index.js"),i=n=>{const{componentCls:a,namespace:e}=n,r=`${a}--disabled`,t=n.calc(n.controlHeight).sub(n.calc(n.lineWidth).mul(2)).equal();return{[a]:{"&--bordered":{boxSizing:"border-box",border:`${n.lineWidth} ${n.lineType} ${n.borderColorBase}`,borderRadius:n.borderRadius,paddingInline:n.space,".ant-input-affix-wrapper":{padding:0},[`&:has(.${e}-batch-input-group):has(.ant-select)`]:{".ant-input-affix-wrapper":{paddingInlineEnd:n.space}},"&:has(textarea.ant-input)":{paddingInlineEnd:0,".ant-input":{paddingInlineStart:0}},[`&:has(div.${e}-batch-input-group .ant-input)`]:{paddingInlineEnd:n.space,".ant-input":{paddingInlineStart:0}},".ant-picker":{padding:0},".ant-form-item-control-input-content":{"& > .ant-input-group":{"& > .ant-picker-range:nth-child(1)":{".ant-picker-clear":{insetInlineEnd:0}}}},".ant-space-compact-block":{".ant-input":{paddingInlineStart:n.space}},".ant-select-selector":{borderWidth:"0 !important",boxShadow:"none !important",background:"unset !important"},".ant-select-single .ant-select-selector":{height:`${t} !important`},"input.ant-input-number-input":{paddingInlineStart:0},"&:has(.ant-input-number)":{paddingInlineEnd:0},"&:has(.ant-select)":{paddingInlineEnd:0,".ant-form-item-label > label":{paddingInlineEnd:n.spaceXS}},"div.ant-form-item-control":{flex:"1 1 0",minWidth:0},".ant-form-item-label > label":{paddingRight:n.spaceLG,height:t,"&::after":{margin:0}},".ant-form-item-control-input":{minHeight:t,".ant-select-single":{height:"unset"}},[`&:hover:not(${r})`]:{borderColor:n.hoverColorBase},"&:focus":{borderColor:n.activeColorBase,boxShadow:"0 0 0 2px rgba(5, 155, 255, 0.1)"},[`.${e}-batch-input-group-popover-input__popover`]:{width:"calc(100% + 12px)"}},"&--disabled":{cursor:"not-allowed",backgroundColor:n.colorBgDisabled,".ant-select-selector":{backgroundColor:"transparent !important"}},"&--focused":{borderColor:n.activeColorBase,boxShadow:"0 0 0 2px rgba(5, 155, 255, 0.1)"},".ant-form-show-help":{".ant-form-item-explain-error":{fontSize:n.fontSize,lineHeight:n.lineHeightSM}},".ant-col .ant-form-item-extra":{lineHeight:n.lineHeightLG,minHeight:"unset",marginBlockStart:n.spaceXS,marginBlockEnd:n.spaceLG},".ant-input-group":{".ant-picker:only-child":{width:"100%"},".ant-select + .ant-picker":{paddingInline:n.space,flex:1}}}}},l=o.genComponentStyleHook("ApForm",n=>[i(n)]);exports.default=l;exports.genApFormItemStyle=i;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../style/index.js"),a=require("../../utils/cssinjs/index.js"),n=e=>{const{componentCls:i,checkCardDisabledOutlineColor:l,checkCardIndicatorSize:c,checkCardOutlineWidth:r,checkCardIndicatorOffset:t}=e,d=e.calc(c).mul(2).equal();return{[`${i}`]:{...o.resetComponent(e),borderRadius:e.borderRadius,position:"relative","&--disabled":{backgroundColor:e.checkCardDisabledBg,cursor:"not-allowed !important"},"&--bordered":{outline:`${e.lineWidth} ${e.lineType} ${e.borderColorBase}`},[`&:hover:not(${i}--disabled)`]:{cursor:"pointer",outline:`${e.lineWidth} ${e.lineType} ${e.colorPrimary}`},"&::after":{content:'""',position:"absolute",width:0,height:0,insetBlockStart:0,insetInlineEnd:0,clipPath:"polygon(100% 0, 100% 100%, 0 0)",background:e.colorPrimary,borderRadius:e.calc(e.borderRadius).add("2px").equal()},"&--checked":{outline:`${r} ${e.lineType} ${e.colorPrimary}`,[`&:hover:not(${i}--disabled)`]:{outline:`${r} ${e.lineType} ${e.colorPrimary}`},"&::after":{width:d,height:d,insetBlockStart:t,insetInlineEnd:t,transition:"width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), inset 0.3s cubic-bezier(0.645, 0.045, 0.355, 1)"},[`&${i}--disabled`]:{outlineColor:l,"&::after":{backgroundColor:l}}},"&--middle":{padding:e.spaceLG},"&--small":{padding:`${e.spaceSM} ${e.spaceLG}`},[`${i}__title`]:{...o.resetComponent(e),marginBottom:e.spaceXS,color:e.textColor1,fontWeight:"bold","&--disabled":{color:e.textColor4}},[`${i}__content`]:{...o.resetComponent(e),color:e.textColor1,"&--disabled":{color:e.textColor4}},[`${i}__checked-icon`]:{position:"absolute",top:0,right:0,zIndex:1,lineHeight:1,userSelect:"none","& > img":{width:e.calc(c).sub(r).equal(),verticalAlign:"top"}}}}},s=a.genComponentStyleHook("CheckCard",e=>[n(e)],{checkCardDisabledBg:"#F9F9FA",checkCardDisabledOutlineColor:"#E9EDF3",checkCardIndicatorSize:14,checkCardOutlineWidth:2,checkCardIndicatorOffset:-2});exports.default=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("../../style/index.js"),n=require("../../utils/cssinjs/index.js"),s=e=>{const{componentCls:i,checkCardDisabledOutlineColor:l,checkCardIndicatorSize:t,checkCardOutlineWidth:r,checkCardIndicatorOffset:d}=e,a=e.calc(t).mul(2).equal();return{[`${i}`]:{...o.resetComponent(e),borderRadius:e.borderRadius,position:"relative","&--disabled":{backgroundColor:e.checkCardDisabledBg,cursor:"not-allowed !important"},"&--bordered":{outline:`${e.lineWidth} ${e.lineType} ${e.borderColorBase}`},[`&:hover:not(${i}--disabled)`]:{cursor:"pointer",outline:`${e.lineWidth} ${e.lineType} ${e.colorPrimary}`},"&::after":{content:'""',position:"absolute",width:0,height:0,insetBlockStart:0,insetInlineEnd:0,clipPath:"polygon(100% 0, 100% 100%, 0 0)",background:e.colorPrimary,borderRadius:e.calc(e.borderRadius).add("2px").equal()},"&--checked":{outline:`${r} ${e.lineType} ${e.colorPrimary}`,[`&:hover:not(${i}--disabled)`]:{outline:`${r} ${e.lineType} ${e.colorPrimary}`},"&::after":{width:a,height:a,insetBlockStart:d,insetInlineEnd:d,transition:["width","height","inset"].map(c=>`${c} ${e.motionDurationSlow} cubic-bezier(0.645, 0.045, 0.355, 1)`).join(", ")},[`&${i}--disabled`]:{outlineColor:l,"&::after":{backgroundColor:l}}},"&--middle":{padding:e.spaceLG},"&--small":{padding:`${e.spaceSM} ${e.spaceLG}`},[`${i}__title`]:{...o.resetComponent(e),marginBottom:e.spaceXS,color:e.textColor1,fontWeight:"bold","&--disabled":{color:e.textColor4}},[`${i}__content`]:{...o.resetComponent(e),color:e.textColor1,"&--disabled":{color:e.textColor4}},[`${i}__checked-icon`]:{position:"absolute",top:0,right:0,zIndex:1,lineHeight:1,userSelect:"none","& > img":{width:e.calc(t).sub(r).equal(),verticalAlign:"top"}}}}},u=n.genComponentStyleHook("CheckCard",e=>[s(e)],{checkCardDisabledBg:"#F9F9FA",checkCardDisabledOutlineColor:"#E9EDF3",checkCardIndicatorSize:14,checkCardOutlineWidth:2,checkCardIndicatorOffset:-2});exports.default=u;
@@ -1,2 +1,2 @@
1
- declare const _default: "7.7.8";
1
+ declare const _default: "7.7.9";
2
2
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.7.8";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.7.9";exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "7.7.8",
3
+ "version": "7.7.9",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -43,14 +43,14 @@
43
43
  "@aplus-frontend/hooks": "1.0.7"
44
44
  },
45
45
  "peerDependencies": {
46
- "@aplus-frontend/antdv": "^1.3.0",
46
+ "@aplus-frontend/antdv": "^1.3.2",
47
47
  "@aplus-frontend/icon": "^2.0.4",
48
48
  "@aplus-frontend/oss": "^1.1.9",
49
49
  "vue": "^3.5.21",
50
50
  "vxe-table": "^4.13.37"
51
51
  },
52
52
  "devDependencies": {
53
- "@aplus-frontend/antdv": "^1.3.0",
53
+ "@aplus-frontend/antdv": "^1.3.2",
54
54
  "@aplus-frontend/icon": "^2.0.4",
55
55
  "@aplus-frontend/oss": "^1.1.9",
56
56
  "@emotion/serialize": "^1.3.3",
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};