@aplus-frontend/ui 7.3.0 → 7.3.1

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,8 +1,8 @@
1
- import { ref as D, shallowRef as G, unref as i, computed as P, watchEffect as W } from "vue";
2
- import { isDef as X } from "../../utils/index.mjs";
3
- import q, { customCloneColumnStates as v, getColumnStateString as H } from "../components/setting/utils.mjs";
4
- import { useInjectApTable as L } from "../context.mjs";
5
- import { isObject as b, mergeWith as T, isBoolean as Q, omit as U, isString as V, isNumber as y } from "lodash-unified";
1
+ import { ref as D, shallowRef as G, unref as i, computed as W, watchEffect as X } from "vue";
2
+ import { isDef as q } from "../../utils/index.mjs";
3
+ import H, { customCloneColumnStates as v, getColumnStateString as L } from "../components/setting/utils.mjs";
4
+ import { useInjectApTable as P } from "../context.mjs";
5
+ import { isObject as T, mergeWith as A, isBoolean as Q, omit as U, isString as V, isNumber as b } from "lodash-unified";
6
6
  import "../../config-provider/index.mjs";
7
7
  import { useToken as Y } from "@aplus-frontend/antdv/es/theme/internal";
8
8
  import { getTableTitle as Z } from "../utils.mjs";
@@ -19,22 +19,22 @@ function K(r, o) {
19
19
  return n ? JSON.parse(n) : {};
20
20
  }
21
21
  function N(r, o) {
22
- if (b(r) && b(o))
23
- return T({}, r, o, N);
22
+ if (T(r) && T(o))
23
+ return A({}, r, o, N);
24
24
  }
25
- const A = Number.MAX_SAFE_INTEGER;
25
+ const y = Number.MAX_SAFE_INTEGER;
26
26
  function ee(r, o, n, a) {
27
27
  return a ? a.fixed : o ? o.fixed : n && "fixed" in n ? n.fixed : Q(r.fixed) ? r.fixed ? "left" : void 0 : r.fixed;
28
28
  }
29
29
  const ce = (r, o, n) => {
30
30
  const { be: a } = $("ap-table"), [te, B] = Y(), l = D(n), d = G(
31
31
  v(n)
32
- ), { columnsBackup: m, updateColumns: E } = L(), F = r.persistenceType || "localStorage", h = window[F];
32
+ ), { columnsBackup: m, updateColumns: E } = P(), F = r.persistenceType || "localStorage", h = window[F];
33
33
  function I() {
34
34
  const e = K(
35
35
  h,
36
36
  i(o)
37
- ), t = T(
37
+ ), t = A(
38
38
  {},
39
39
  r.defaultValue || {},
40
40
  e,
@@ -48,7 +48,7 @@ const ce = (r, o, n) => {
48
48
  f,
49
49
  a("table-header", "title"),
50
50
  void 0,
51
- B.value.colorPrimary
51
+ B.value.colorTextTertiary
52
52
  ) : f.title,
53
53
  show: !0,
54
54
  fixed: ee(
@@ -70,11 +70,11 @@ const ce = (r, o, n) => {
70
70
  return u(s || [], t);
71
71
  }
72
72
  function O(e, t) {
73
- const s = y(e.order) ? e.order : A;
74
- let u = y(t.order) ? t.order : A;
73
+ const s = b(e.order) ? e.order : y;
74
+ let u = b(t.order) ? t.order : y;
75
75
  return e.fixed === "right" && t.fixed !== "right" && (u = s - 1), t.fixed === "left" && e.fixed !== "left" && (u = s - 1), s - u;
76
76
  }
77
- const S = P(() => i(l).every((e) => e.show));
77
+ const S = W(() => i(l).every((e) => e.show));
78
78
  function p() {
79
79
  const e = i(l);
80
80
  c(e, (t) => {
@@ -92,7 +92,7 @@ const ce = (r, o, n) => {
92
92
  }
93
93
  function J(e, t) {
94
94
  c(i(l), (s) => {
95
- s.key === e && (s.show = X(t) ? t : !s.show);
95
+ s.key === e && (s.show = q(t) ? t : !s.show);
96
96
  });
97
97
  }
98
98
  function C(e) {
@@ -103,14 +103,14 @@ const ce = (r, o, n) => {
103
103
  }
104
104
  function w(e) {
105
105
  if (i(o)) {
106
- const t = H(e);
106
+ const t = L(e);
107
107
  h.setItem(i(o), JSON.stringify(t));
108
108
  }
109
109
  }
110
- return W(() => {
110
+ return X(() => {
111
111
  const e = I();
112
112
  C(e), r.onChange?.(e), E?.(
113
- q(
113
+ H(
114
114
  i(m),
115
115
  i(e)
116
116
  )
@@ -2,7 +2,7 @@ import { multiRows as l, resetScrollbar as i } from "../../style/index.mjs";
2
2
  import { genComponentStyleHook as o } from "../../utils/cssinjs/index.mjs";
3
3
  const r = (t) => ({
4
4
  [`.${t.namespace}-ap-table-setting-trigger-button`]: {
5
- color: t.textColor3,
5
+ color: t.textColor2,
6
6
  "&:hover": {
7
7
  color: "unset"
8
8
  }
@@ -1,4 +1,4 @@
1
- import { defineComponent as l, createVNode as u, mergeProps as o, createTextVNode as m } from "vue";
1
+ import { defineComponent as l, createVNode as o, mergeProps as t, createTextVNode as m } from "vue";
2
2
  import "../../../config-provider/index.mjs";
3
3
  import s from "../ApLabel.mjs";
4
4
  import { omit as n } from "lodash-unified";
@@ -12,19 +12,18 @@ const {
12
12
  name: "ApLabelGroup",
13
13
  props: i(),
14
14
  setup(r) {
15
- const a = (e) => (r.tagValue || r.tagValue === 0) && e.tagConfig && e.tagConfig.length > 0 ? () => e.tagConfig.filter((t) => r.tagValue === t.value).map((t) => u(c, o(n(t, ["type", "size"]), {
15
+ const a = (e) => (r.tagValue || r.tagValue === 0) && e.tagConfig && e.tagConfig.length > 0 ? () => e.tagConfig.filter((u) => r.tagValue === u.value).map((u) => o(c, t(n(u, ["type", "size"]), {
16
16
  size: "small",
17
- type: "border",
18
- text: ""
19
- }), null)) : e.customRender ? () => u("div", null, [e.customRender(r.record)]) : null;
20
- return () => u("div", {
17
+ type: "border"
18
+ }), null)) : e.customRender ? () => o("div", null, [e.customRender(r.record)]) : null;
19
+ return () => o("div", {
21
20
  class: f()
22
- }, [r.columns ? r.columns.map((e, t) => u(s, o({
23
- key: t,
21
+ }, [r.columns ? r.columns.map((e, u) => o(s, t({
22
+ key: u,
24
23
  show: r.value === e.value
25
24
  }, n(e, ["value", "tagConfig", "customRender"])), {
26
25
  custom: a(e)
27
- })) : u("div", null, [m("columns数组不能为空")])]);
26
+ })) : o("div", null, [m("columns数组不能为空")])]);
28
27
  }
29
28
  });
30
29
  export {
@@ -60,7 +60,7 @@ const l = (o) => {
60
60
  "&.all": {
61
61
  color: o.textColor2,
62
62
  background: "#fff",
63
- border: `1px solid ${o.colorBg1}`,
63
+ border: `1px solid ${o.borderColorBase}`,
64
64
  boxShadow: "none",
65
65
  "&:hover:not(.disabled)": {
66
66
  borderColor: o.colorPrimary
@@ -72,7 +72,7 @@ const l = (o) => {
72
72
  border: `1px solid ${o.colorBg1}`
73
73
  },
74
74
  "&.select": {
75
- background: o.colorBgControl,
75
+ backgroundColor: o.colorBgControl,
76
76
  borderColor: o.colorPrimary,
77
77
  cursor: "pointer"
78
78
  }
@@ -107,9 +107,9 @@ const l = (o) => {
107
107
  }
108
108
  }
109
109
  };
110
- }, a = e("ApValueSelectCard", (o) => [
110
+ }, i = e("ApValueSelectCard", (o) => [
111
111
  l(o)
112
112
  ]);
113
113
  export {
114
- a as default
114
+ i as default
115
115
  };
@@ -1,2 +1,2 @@
1
- declare const _default: "7.3.0";
1
+ declare const _default: "7.3.1";
2
2
  export default _default;
@@ -1,4 +1,4 @@
1
- const e = "7.3.0";
1
+ const e = "7.3.1";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),J=require("../../utils/index.js"),d=require("../components/setting/utils.js"),P=require("../context.js"),f=require("lodash-unified");require("../../config-provider/index.js");const R=require("@aplus-frontend/antdv/es/theme/internal"),W=require("../utils.js"),z=require("../../config-provider/hooks/use-namespace.js");function g(r,n){r.forEach(i=>{n(i),i.children?.length&&g(i.children,n)})}function D(r,n){if(!n)return{};const i=r.getItem(n);return i?JSON.parse(i):{}}function T(r,n){if(f.isObject(r)&&f.isObject(n))return f.mergeWith({},r,n,T)}const y=Number.MAX_SAFE_INTEGER;function G(r,n,i,a){return a?a.fixed:n?n.fixed:i&&"fixed"in i?i.fixed:f.isBoolean(r.fixed)?r.fixed?"left":void 0:r.fixed}const U=(r,n,i)=>{const{be:a}=z.useNamespace("ap-table"),[X,q]=R.useToken(),c=o.ref(i),h=o.shallowRef(d.customCloneColumnStates(i)),{columnsBackup:x,updateColumns:N}=P.useInjectApTable(),A=r.persistenceType||"localStorage",C=window[A];function O(){const e=D(C,o.unref(n)),t=f.mergeWith({},r.defaultValue||{},e,T),s=o.unref(x);function l(j,M,_){return j.map(u=>{const k=M?.[u.key]||{},S={key:u.key,label:f.isString(u.title)?W.getTableTitle(u,a("table-header","title"),void 0,q.value.colorPrimary):u.title,show:!0,fixed:G(u,e[u.key],r.defaultValue?.[u.key],_),disabled:!1,...f.omit(k,["children","fixed"])};return S.children=u.children?.length?l(u.children,k.children,S):void 0,S}).sort(B)}return l(s||[],t)}function B(e,t){const s=f.isNumber(e.order)?e.order:y;let l=f.isNumber(t.order)?t.order:y;return e.fixed==="right"&&t.fixed!=="right"&&(l=s-1),t.fixed==="left"&&e.fixed!=="left"&&(l=s-1),s-l}const m=o.computed(()=>o.unref(c).every(e=>e.show));function b(){const e=o.unref(c);g(e,t=>{!t.disabled&&(t.show=!0)})}function p(){const e=o.unref(c);g(e,t=>{!t.disabled&&(t.show=!1)})}function E(){o.unref(m)?p():b()}function F(e,t){g(o.unref(c),s=>{s.key===e&&(s.show=J.isDef(t)?t:!s.show)})}function v(e){c.value=e}function I(e){h.value=e}function w(e){if(o.unref(n)){const t=d.getColumnStateString(e);C.setItem(o.unref(n),JSON.stringify(t))}}return o.watchEffect(()=>{const e=O();v(e),r.onChange?.(e),N?.(d.default(o.unref(x),o.unref(e))),h.value=d.customCloneColumnStates(e),w(e)}),{columnState:c,selectAll:b,unSelectAll:p,toggleSelect:F,setColumnState:v,isAllSelected:m,toggleSelectAll:E,columnStateBackup:h,setColumnStateBackup:I,cacheColumnStateIfNeeded:w}};exports.useTableColumnState=U;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),J=require("../../utils/index.js"),d=require("../components/setting/utils.js"),R=require("../context.js"),f=require("lodash-unified");require("../../config-provider/index.js");const W=require("@aplus-frontend/antdv/es/theme/internal"),z=require("../utils.js"),D=require("../../config-provider/hooks/use-namespace.js");function g(r,n){r.forEach(i=>{n(i),i.children?.length&&g(i.children,n)})}function G(r,n){if(!n)return{};const i=r.getItem(n);return i?JSON.parse(i):{}}function y(r,n){if(f.isObject(r)&&f.isObject(n))return f.mergeWith({},r,n,y)}const k=Number.MAX_SAFE_INTEGER;function P(r,n,i,a){return a?a.fixed:n?n.fixed:i&&"fixed"in i?i.fixed:f.isBoolean(r.fixed)?r.fixed?"left":void 0:r.fixed}const U=(r,n,i)=>{const{be:a}=D.useNamespace("ap-table"),[X,q]=W.useToken(),c=o.ref(i),h=o.shallowRef(d.customCloneColumnStates(i)),{columnsBackup:x,updateColumns:N}=R.useInjectApTable(),A=r.persistenceType||"localStorage",C=window[A];function O(){const e=G(C,o.unref(n)),t=f.mergeWith({},r.defaultValue||{},e,y),s=o.unref(x);function l(j,M,_){return j.map(u=>{const T=M?.[u.key]||{},S={key:u.key,label:f.isString(u.title)?z.getTableTitle(u,a("table-header","title"),void 0,q.value.colorTextTertiary):u.title,show:!0,fixed:P(u,e[u.key],r.defaultValue?.[u.key],_),disabled:!1,...f.omit(T,["children","fixed"])};return S.children=u.children?.length?l(u.children,T.children,S):void 0,S}).sort(B)}return l(s||[],t)}function B(e,t){const s=f.isNumber(e.order)?e.order:k;let l=f.isNumber(t.order)?t.order:k;return e.fixed==="right"&&t.fixed!=="right"&&(l=s-1),t.fixed==="left"&&e.fixed!=="left"&&(l=s-1),s-l}const m=o.computed(()=>o.unref(c).every(e=>e.show));function b(){const e=o.unref(c);g(e,t=>{!t.disabled&&(t.show=!0)})}function p(){const e=o.unref(c);g(e,t=>{!t.disabled&&(t.show=!1)})}function E(){o.unref(m)?p():b()}function F(e,t){g(o.unref(c),s=>{s.key===e&&(s.show=J.isDef(t)?t:!s.show)})}function v(e){c.value=e}function I(e){h.value=e}function w(e){if(o.unref(n)){const t=d.getColumnStateString(e);C.setItem(o.unref(n),JSON.stringify(t))}}return o.watchEffect(()=>{const e=O();v(e),r.onChange?.(e),N?.(d.default(o.unref(x),o.unref(e))),h.value=d.customCloneColumnStates(e),w(e)}),{columnState:c,selectAll:b,unSelectAll:p,toggleSelect:F,setColumnState:v,isAllSelected:m,toggleSelectAll:E,columnStateBackup:h,setColumnStateBackup:I,cacheColumnStateIfNeeded:w}};exports.useTableColumnState=U;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../style/index.js"),o=require("../../utils/cssinjs/index.js"),l=t=>({[`.${t.namespace}-ap-table-setting-trigger-button`]:{color:t.textColor3,"&:hover":{color:"unset"}}}),i=t=>{const{componentCls:e,namespace:r}=t,a=`--${r}-ap-table-scroll-bar-width`;return{[e]:{...n.resetScrollbar(t),"&-wrapper":{padding:t.space,backgroundColor:"#fff","&:has(.ant-pagination)":{paddingBlockEnd:0}},"&-adaptive":{height:"100%",display:"flex",flexDirection:"column",".ant-table-wrapper":{flex:1},".ant-spin-nested-loading,.ant-spin-container":{height:"100%"},".ant-spin-container":{display:"flex",flexDirection:"column"},".ant-table":{flex:1},".ant-table-container,.ant-table-content":{height:"100%"},".ant-table-content > table":{height:"100%"}},[`${e}__search-wrapper`]:{padding:t.space,paddingBlockEnd:0,backgroundColor:"#fff",marginBlockEnd:"10px",borderRadius:t.borderRadius},[`${e}__table-wrapper`]:{flex:1,maxHeight:"100%",display:"flex",flexDirection:"column"},[`${e}__table-wrapper-card`]:{padding:t.space,borderRadius:t.borderRadius,backgroundColor:"#fff",overflow:"hidden","&:has(.ant-pagination)":{paddingBlockEnd:0}},[`${e}-table`]:{"ul.ant-table-pagination.ant-pagination":{marginBlock:t.space,alignItems:"center",".ant-pagination-total-text":{flex:1,height:"unset",lineHeight:t.lineHeight,display:"flex",alignItems:"center"}},"tr > th.ant-table-cell":{"&::before":{backgroundColor:"#D8DDE5 !important"},backgroundColor:t.apTableHeaderBg}},".ant-table.ant-table-middle .ant-table-row .ant-table-cell:not(.ant-table-selection-column)":{padding:"9px 12px"},".ant-table.ant-table-middle .ant-table-thead .ant-table-cell:not(.ant-table-selection-column)":{padding:"9px 12px"},".ant-table.ant-table-small .ant-table-row .ant-table-cell:not(.ant-table-selection-column)":{padding:"6px 9px"},".ant-table.ant-table-small .ant-table-thead .ant-table-cell:not(.ant-table-selection-column)":{padding:"6px 9px"},".ant-table-placeholder .ant-table-expanded-row-fixed":{"&::after":{borderInlineEndWidth:"0px !important"}},".ant-table-column-sorters":{justifyContent:"unset",display:"inline-flex",".ant-table-column-title":{flex:"unset"}},".ant-table-filter-column":{justifyContent:"unset",display:"inline-flex",".ant-table-column-title":{flex:"unset"},".ant-table-filter-trigger":{marginInlineStart:"2px",paddingInlineStart:"2px"}},".ant-table-cell .ant-typography":{marginBlockEnd:0},"&-pagination-count-text":{color:t.textColor1},"&-pagination--total-right":{paddingLeft:"12px"},"&-pagination-total-wrapper":{color:t.textColor2},[`${e}-header`]:{paddingBlockEnd:t.space,display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"nowrap","&__title":{flex:1,flexShrink:1,minWidth:0}},[`${e}-table-header__title`]:{...n.multiRows(t),textAlign:"right"},...l(t),"&--sticky-relative":{".ant-table-container":{"& > div:last-child":{marginBottom:`calc(var(${a}) * -1)`,clipPath:`inset(0 0 var(${a}) 0)`}}},"&--sticky-absolute":{".ant-table-container":{"& > div:last-child":{paddingBottom:"15px",marginBottom:"-15px",clipPath:"inset(0 0 15px 0)"}}}}}},d=o.genComponentStyleHook("ApTable",t=>[i(t)],{apTableHeaderBg:"#F2F6F9"});exports.default=d;exports.genApTableStyle=i;exports.genSettingTriggerBtnStyle=l;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../../style/index.js"),o=require("../../utils/cssinjs/index.js"),l=t=>({[`.${t.namespace}-ap-table-setting-trigger-button`]:{color:t.textColor2,"&:hover":{color:"unset"}}}),i=t=>{const{componentCls:e,namespace:r}=t,a=`--${r}-ap-table-scroll-bar-width`;return{[e]:{...n.resetScrollbar(t),"&-wrapper":{padding:t.space,backgroundColor:"#fff","&:has(.ant-pagination)":{paddingBlockEnd:0}},"&-adaptive":{height:"100%",display:"flex",flexDirection:"column",".ant-table-wrapper":{flex:1},".ant-spin-nested-loading,.ant-spin-container":{height:"100%"},".ant-spin-container":{display:"flex",flexDirection:"column"},".ant-table":{flex:1},".ant-table-container,.ant-table-content":{height:"100%"},".ant-table-content > table":{height:"100%"}},[`${e}__search-wrapper`]:{padding:t.space,paddingBlockEnd:0,backgroundColor:"#fff",marginBlockEnd:"10px",borderRadius:t.borderRadius},[`${e}__table-wrapper`]:{flex:1,maxHeight:"100%",display:"flex",flexDirection:"column"},[`${e}__table-wrapper-card`]:{padding:t.space,borderRadius:t.borderRadius,backgroundColor:"#fff",overflow:"hidden","&:has(.ant-pagination)":{paddingBlockEnd:0}},[`${e}-table`]:{"ul.ant-table-pagination.ant-pagination":{marginBlock:t.space,alignItems:"center",".ant-pagination-total-text":{flex:1,height:"unset",lineHeight:t.lineHeight,display:"flex",alignItems:"center"}},"tr > th.ant-table-cell":{"&::before":{backgroundColor:"#D8DDE5 !important"},backgroundColor:t.apTableHeaderBg}},".ant-table.ant-table-middle .ant-table-row .ant-table-cell:not(.ant-table-selection-column)":{padding:"9px 12px"},".ant-table.ant-table-middle .ant-table-thead .ant-table-cell:not(.ant-table-selection-column)":{padding:"9px 12px"},".ant-table.ant-table-small .ant-table-row .ant-table-cell:not(.ant-table-selection-column)":{padding:"6px 9px"},".ant-table.ant-table-small .ant-table-thead .ant-table-cell:not(.ant-table-selection-column)":{padding:"6px 9px"},".ant-table-placeholder .ant-table-expanded-row-fixed":{"&::after":{borderInlineEndWidth:"0px !important"}},".ant-table-column-sorters":{justifyContent:"unset",display:"inline-flex",".ant-table-column-title":{flex:"unset"}},".ant-table-filter-column":{justifyContent:"unset",display:"inline-flex",".ant-table-column-title":{flex:"unset"},".ant-table-filter-trigger":{marginInlineStart:"2px",paddingInlineStart:"2px"}},".ant-table-cell .ant-typography":{marginBlockEnd:0},"&-pagination-count-text":{color:t.textColor1},"&-pagination--total-right":{paddingLeft:"12px"},"&-pagination-total-wrapper":{color:t.textColor2},[`${e}-header`]:{paddingBlockEnd:t.space,display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"nowrap","&__title":{flex:1,flexShrink:1,minWidth:0}},[`${e}-table-header__title`]:{...n.multiRows(t),textAlign:"right"},...l(t),"&--sticky-relative":{".ant-table-container":{"& > div:last-child":{marginBottom:`calc(var(${a}) * -1)`,clipPath:`inset(0 0 var(${a}) 0)`}}},"&--sticky-absolute":{".ant-table-container":{"& > div:last-child":{paddingBottom:"15px",marginBottom:"-15px",clipPath:"inset(0 0 15px 0)"}}}}}},d=o.genComponentStyleHook("ApTable",t=>[i(t)],{apTableHeaderBg:"#F2F6F9"});exports.default=d;exports.genApTableStyle=i;exports.genSettingTriggerBtnStyle=l;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue");require("../../../config-provider/index.js");const o=require("../ApLabel.js"),a=require("lodash-unified"),l=require("../constans.js");require("../../ap-tag/index.js");const s=require("../../../config-provider/hooks/use-namespace.js"),c=require("../../ap-tag/ap-tag.vue.js"),{b:d}=s.useNamespace("ap-label-group"),i=u.defineComponent({name:"ApLabelGroup",props:l.ApLabelGroupProps(),setup(r){const n=e=>(r.tagValue||r.tagValue===0)&&e.tagConfig&&e.tagConfig.length>0?()=>e.tagConfig.filter(t=>r.tagValue===t.value).map(t=>u.createVNode(c.default,u.mergeProps(a.omit(t,["type","size"]),{size:"small",type:"border",text:""}),null)):e.customRender?()=>u.createVNode("div",null,[e.customRender(r.record)]):null;return()=>u.createVNode("div",{class:d()},[r.columns?r.columns.map((e,t)=>u.createVNode(o.default,u.mergeProps({key:t,show:r.value===e.value},a.omit(e,["value","tagConfig","customRender"])),{custom:n(e)})):u.createVNode("div",null,[u.createTextVNode("columns数组不能为空")])])}});exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue");require("../../../config-provider/index.js");const o=require("../ApLabel.js"),a=require("lodash-unified"),l=require("../constans.js");require("../../ap-tag/index.js");const s=require("../../../config-provider/hooks/use-namespace.js"),c=require("../../ap-tag/ap-tag.vue.js"),{b:d}=s.useNamespace("ap-label-group"),i=u.defineComponent({name:"ApLabelGroup",props:l.ApLabelGroupProps(),setup(r){const n=e=>(r.tagValue||r.tagValue===0)&&e.tagConfig&&e.tagConfig.length>0?()=>e.tagConfig.filter(t=>r.tagValue===t.value).map(t=>u.createVNode(c.default,u.mergeProps(a.omit(t,["type","size"]),{size:"small",type:"border"}),null)):e.customRender?()=>u.createVNode("div",null,[e.customRender(r.record)]):null;return()=>u.createVNode("div",{class:d()},[r.columns?r.columns.map((e,t)=>u.createVNode(o.default,u.mergeProps({key:t,show:r.value===e.value},a.omit(e,["value","tagConfig","customRender"])),{custom:n(e)})):u.createVNode("div",null,[u.createTextVNode("columns数组不能为空")])])}});exports.default=i;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../utils/cssinjs/index.js"),l=o=>{const{componentCls:r}=o;return{[r]:{position:"relative",marginBlockStart:"8px",".ant-popover":{width:"100%"},[`${r}-list`]:{display:"grid",gridTemplateColumns:"repeat(var(--ap-value-select-card-column-count, 5), minmax(var(--ap-value-select-card-max-width, 150px), 1fr))",gridAutoRows:"1fr",gap:"12px","&-item":{position:"relative",boxSizing:"border-box",padding:"8px 16px",color:o.textColor2,border:`1px solid ${o.colorBg1}`,borderRadius:o.borderRadius,cursor:"pointer","&-close":{position:"absolute",top:"8px",right:"10px",zIndex:1,color:o.textColor3,fontSize:o.fontSizeLG,cursor:"pointer","&:hover":{color:o.colorError}},".label":{marginBlockEnd:"4px",fontSize:o.fontSize,lineHeight:o.lineHeight},".value":{overflow:"hidden",fontWeight:"bold",fontSize:o.fontSizeXL,whiteSpace:"nowrap",textOverflow:"ellipsis"},"&:hover:not(.select)":{border:`1px solid ${o.colorPrimary}`},"&.select":{color:o.textColor1,borderColor:"transparent",boxShadow:"3px 10px 30px -2px rgba(123, 121, 140, 0.15)",background:"linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--ap-value-select-card-bg-color, #f5f9ff) 92%)","&:hover":{background:"var(--ap-value-select-card-bg-color, #f5f9ff)"}},"&.all":{color:o.textColor2,background:"#fff",border:`1px solid ${o.colorBg1}`,boxShadow:"none","&:hover:not(.disabled)":{borderColor:o.colorPrimary},"&.disabled":{color:o.textColor3,background:"#f9f9fa",cursor:"not-allowed",border:`1px solid ${o.colorBg1}`},"&.select":{background:o.colorBgControl,borderColor:o.colorPrimary,cursor:"pointer"}},"&.choose":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:o.colorPrimary,background:"#fff",border:"1px dashed #d1d7df",boxShadow:"none",".text":{fontSize:o.fontSize,marginInlineStart:"4px"}}}},[`${r}-title`]:{display:"flex",alignItems:"center",marginBlockEnd:"12px",color:o.textColor2,fontSize:o.fontSize,"&-icon":{marginRight:"4px",color:o.textColor4,fontSize:o.fontSizeLG}}}}},i=e.genComponentStyleHook("ApValueSelectCard",o=>[l(o)]);exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../utils/cssinjs/index.js"),l=o=>{const{componentCls:r}=o;return{[r]:{position:"relative",marginBlockStart:"8px",".ant-popover":{width:"100%"},[`${r}-list`]:{display:"grid",gridTemplateColumns:"repeat(var(--ap-value-select-card-column-count, 5), minmax(var(--ap-value-select-card-max-width, 150px), 1fr))",gridAutoRows:"1fr",gap:"12px","&-item":{position:"relative",boxSizing:"border-box",padding:"8px 16px",color:o.textColor2,border:`1px solid ${o.colorBg1}`,borderRadius:o.borderRadius,cursor:"pointer","&-close":{position:"absolute",top:"8px",right:"10px",zIndex:1,color:o.textColor3,fontSize:o.fontSizeLG,cursor:"pointer","&:hover":{color:o.colorError}},".label":{marginBlockEnd:"4px",fontSize:o.fontSize,lineHeight:o.lineHeight},".value":{overflow:"hidden",fontWeight:"bold",fontSize:o.fontSizeXL,whiteSpace:"nowrap",textOverflow:"ellipsis"},"&:hover:not(.select)":{border:`1px solid ${o.colorPrimary}`},"&.select":{color:o.textColor1,borderColor:"transparent",boxShadow:"3px 10px 30px -2px rgba(123, 121, 140, 0.15)",background:"linear-gradient(270deg, rgba(255, 255, 255, 0) 0%, var(--ap-value-select-card-bg-color, #f5f9ff) 92%)","&:hover":{background:"var(--ap-value-select-card-bg-color, #f5f9ff)"}},"&.all":{color:o.textColor2,background:"#fff",border:`1px solid ${o.borderColorBase}`,boxShadow:"none","&:hover:not(.disabled)":{borderColor:o.colorPrimary},"&.disabled":{color:o.textColor3,background:"#f9f9fa",cursor:"not-allowed",border:`1px solid ${o.colorBg1}`},"&.select":{backgroundColor:o.colorBgControl,borderColor:o.colorPrimary,cursor:"pointer"}},"&.choose":{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",color:o.colorPrimary,background:"#fff",border:"1px dashed #d1d7df",boxShadow:"none",".text":{fontSize:o.fontSize,marginInlineStart:"4px"}}}},[`${r}-title`]:{display:"flex",alignItems:"center",marginBlockEnd:"12px",color:o.textColor2,fontSize:o.fontSize,"&-icon":{marginRight:"4px",color:o.textColor4,fontSize:o.fontSizeLG}}}}},i=e.genComponentStyleHook("ApValueSelectCard",o=>[l(o)]);exports.default=i;
@@ -1,2 +1,2 @@
1
- declare const _default: "7.3.0";
1
+ declare const _default: "7.3.1";
2
2
  export default _default;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.3.0";exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.3.1";exports.default=e;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "7.3.0",
3
+ "version": "7.3.1",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [