@aplus-frontend/ui 0.0.40 → 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 (57) hide show
  1. package/es/src/ap-action/item/index.vue2.mjs +19 -20
  2. package/es/src/ap-action/item-modal/index.vue.mjs +7 -6
  3. package/es/src/ap-action/style/item.css +10 -25
  4. package/es/src/ap-field/checkbox/index.vue.mjs +32 -27
  5. package/es/src/ap-field/checkbox/style.css +7 -0
  6. package/es/src/ap-field/interface.d.ts +2 -0
  7. package/es/src/ap-field/radio/index.vue.d.ts +3 -0
  8. package/es/src/ap-field/radio/index.vue.mjs +44 -29
  9. package/es/src/ap-field/radio/style.css +4 -0
  10. package/es/src/ap-table/ap-table.vue.mjs +125 -126
  11. package/es/src/ap-table/constants.d.ts +15 -0
  12. package/es/src/ap-table/style/ap-table.css +1 -21
  13. package/es/src/business/ap-status/ApStatusGroup.vue2.mjs +10 -9
  14. package/es/src/check-card/index.vue2.mjs +44 -48
  15. package/es/src/check-card/style/index.css +10 -42
  16. package/es/src/design-token/index.mjs +4 -2
  17. package/es/src/editable-table/form-item.vue.mjs +57 -58
  18. package/es/src/editable-table/index.vue.mjs +54 -55
  19. package/es/src/editable-table/style/index.css +1 -21
  20. package/es/src/locale/lang/en.mjs +1 -1
  21. package/es/src/locale/lang/zh-cn.mjs +22 -22
  22. package/es/src/theme/ap-action/item.css +10 -25
  23. package/es/src/theme/ap-field/checkbox.css +7 -0
  24. package/es/src/theme/ap-field/radio.css +4 -0
  25. package/es/src/theme/ap-table/ap-table.css +1 -21
  26. package/es/src/theme/check-card/index.css +10 -42
  27. package/es/src/theme/css-var/index.mjs +83 -19
  28. package/es/src/theme/editable-table/index.css +1 -21
  29. package/lib/src/ap-action/item/index.vue2.js +1 -1
  30. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  31. package/lib/src/ap-action/style/item.css +10 -25
  32. package/lib/src/ap-field/checkbox/index.vue.js +1 -1
  33. package/lib/src/ap-field/checkbox/style.css +7 -0
  34. package/lib/src/ap-field/interface.d.ts +2 -0
  35. package/lib/src/ap-field/radio/index.vue.d.ts +3 -0
  36. package/lib/src/ap-field/radio/index.vue.js +1 -1
  37. package/lib/src/ap-field/radio/style.css +4 -0
  38. package/lib/src/ap-table/ap-table.vue.js +1 -1
  39. package/lib/src/ap-table/constants.d.ts +15 -0
  40. package/lib/src/ap-table/style/ap-table.css +1 -21
  41. package/lib/src/business/ap-status/ApStatusGroup.vue2.js +1 -1
  42. package/lib/src/check-card/index.vue2.js +1 -1
  43. package/lib/src/check-card/style/index.css +10 -42
  44. package/lib/src/design-token/index.js +1 -1
  45. package/lib/src/editable-table/form-item.vue.js +1 -1
  46. package/lib/src/editable-table/index.vue.js +1 -1
  47. package/lib/src/editable-table/style/index.css +1 -21
  48. package/lib/src/locale/lang/en.js +1 -1
  49. package/lib/src/locale/lang/zh-cn.js +1 -1
  50. package/lib/src/theme/ap-action/item.css +10 -25
  51. package/lib/src/theme/ap-field/checkbox.css +7 -0
  52. package/lib/src/theme/ap-field/radio.css +4 -0
  53. package/lib/src/theme/ap-table/ap-table.css +1 -21
  54. package/lib/src/theme/check-card/index.css +10 -42
  55. package/lib/src/theme/css-var/index.js +1 -1
  56. package/lib/src/theme/editable-table/index.css +1 -21
  57. package/package.json +2 -2
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");require("./ApStatus.vue.js");const n=require("../../config-provider/hooks/use-namespace.js"),o=require("./ApStatus.vue2.js"),p=e.defineComponent({name:"ApStatusGroup",__name:"ApStatusGroup",props:{padding:{default:8},currentValue:{default:0},statusList:{default:null},style:{},show:{type:Boolean,default:!0}},setup(r){const t=r,a=e.computed(()=>({"padding-left":t.padding+"px","padding-right":t.padding+"px",...t.style})),{b:s}=n.useNamespace("ap-status-group");return(l,c)=>t.statusList?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(s)()]),style:e.normalizeStyle(a.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.statusList,u=>(e.openBlock(),e.createBlock(o.default,{key:u.value,show:u.value===l.currentValue,color:u.color,text:u.text,padding:t.padding},null,8,["show","color","text","padding"]))),128))],6)):e.createCommentVNode("",!0)}});exports.default=p;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");require("./ApStatus.vue.js");const n=require("../../config-provider/hooks/use-namespace.js"),o=require("./ApStatus.vue2.js"),p=e.defineComponent({name:"ApStatusGroup",__name:"ApStatusGroup",props:{padding:{default:8},currentValue:{default:0},statusList:{default:null},style:{},show:{type:Boolean,default:!0}},setup(r){const t=r,a=e.computed(()=>({"padding-left":t.padding+"px","padding-right":t.padding+"px",...t.style})),{b:l}=n.useNamespace("ap-status-group");return(s,c)=>t.statusList?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(l)()]),style:e.normalizeStyle(a.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.statusList,u=>(e.openBlock(),e.createBlock(o.default,{key:u.value,show:u.value===s.currentValue,color:u.color,text:u.text,padding:t.padding,style:e.normalizeStyle(t.style)},null,8,["show","color","text","padding","style"]))),128))],6)):e.createCommentVNode("",!0)}});exports.default=p;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),S=require("ant-design-vue");require("../config-provider/index.js");require("../hooks/index.js");const b=require("lodash-unified"),_=require("./context.js");require("./style/index.css");const z=require("./checked.svg.js"),D=require("../config-provider/hooks/use-namespace.js"),w=require("../config-provider/hooks/use-global-config.js"),E=require("../hooks/useControllableValue.js"),M=["src"],T=e.defineComponent({name:"CheckCard",__name:"index",props:{bordered:{type:Boolean,default:!0},disabled:{type:Boolean},loading:{type:Boolean},size:{default:"middle"},stopPropagation:{type:[Boolean,Function],default:!1},checked:{type:Boolean,default:void 0},"onUpdate:checked":{},defaultChecked:{type:Boolean},value:{type:[String,Number,Boolean]},style:{default:()=>({})},title:{},content:{}},emits:["update:checked"],setup(h,{emit:C}){const n=h,{b:s,m:d,e:i,bm:y,em:p}=D.useNamespace("check-card"),f=w.useGlobalConfig("uiMode","aplus"),B=C,a=_.useInjectCheckCard(),{value:r,updateValue:m}=E.useControllableValue(n,B,{valuePropName:"checked",defaultValuePropName:"defaultChecked"}),l=e.computed(()=>{const t={...n},o=e.unref(a);return o&&(t.disabled=t.disabled||o.disabled,t.bordered=t.bordered||o.bordered,t.loading=t.loading||o.loading,t.size=t.size||o.size,t.stopPropagation=t.stopPropagation||o.stopPropagation),t}),N=e.computed(()=>{const t=e.unref(f),o=e.unref(l);return[s(),...o.disabled?[]:[s(t),e.unref(r)?y(t,"checked"):null],d(o.size),o.bordered?d("bordered"):null,o.disabled?d("disabled"):null]}),V=e.computed(()=>({...n.style,"--check-card-border-color":f.value==="admin"?"#D9D9D9":"#E9EDF3"})),v=e.computed(()=>{if(!n.title)return;const t=b.isFunction(n.title)?n.title(e.unref(r)):e.createVNode("span",null,[n.title]);return e.createVNode("div",{class:[i("title"),l.value.disabled?p("title","disabled"):null]},[t])}),g=e.computed(()=>{if(!n.content)return;const t=b.isFunction(n.content)?n.content(e.unref(r)):n.content;return e.createVNode("div",{class:[i("content"),l.value.disabled?p("content","disabled"):null]},[t])});function q(t){const o=e.unref(l).stopPropagation;return o?o===!0?t.target!==t.currentTarget:o(t):!1}function P(t){var o,u;q(t)||l.value.loading||l.value.disabled||(a.value?(u=(o=a.value)==null?void 0:o.toggleOption)==null||u.call(o,n.value):m(!e.unref(r)))}return e.watch(()=>a.value,t=>{if(!t)return;const o=t.multiple?(t.value||[]).includes(n.value):t.value===n.value;m(o)},{immediate:!0}),e.watchEffect(t=>{var o,u;(u=(o=a.value)==null?void 0:o.registerValue)==null||u.call(o,n.value),t(()=>{var c,k;return(k=(c=a.value)==null?void 0:c.cancelValue)==null?void 0:k.call(c,n.value)})}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(V.value),class:e.normalizeClass(N.value),onClick:e.withModifiers(P,["stop"])},[l.value.loading?(e.openBlock(),e.createBlock(e.unref(S.Skeleton),{key:0,active:""})):e.renderSlot(t.$slots,"default",{key:1,checked:e.unref(r)},()=>[v.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.value),{key:0})):e.createCommentVNode("",!0),g.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(g.value),{key:1})):e.createCommentVNode("",!0)]),e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(i)("checked-icon"))},[e.createElementVNode("img",{src:e.unref(z.default)},null,8,M)],2)):e.createCommentVNode("",!0)],6))}});exports.default=T;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),V=require("ant-design-vue");require("../config-provider/index.js");require("../hooks/index.js");const g=require("lodash-unified"),q=require("./context.js");require("./style/index.css");const P=require("./checked.svg.js"),z=require("../config-provider/hooks/use-namespace.js"),S=require("../hooks/useControllableValue.js"),_=["src"],w=e.defineComponent({name:"CheckCard",__name:"index",props:{bordered:{type:Boolean,default:!0},disabled:{type:Boolean},loading:{type:Boolean},size:{default:"middle"},stopPropagation:{type:[Boolean,Function],default:!1},checked:{type:Boolean,default:void 0},"onUpdate:checked":{},defaultChecked:{type:Boolean},value:{type:[String,Number,Boolean]},style:{default:()=>({})},title:{},content:{}},emits:["update:checked"],setup(b,{emit:h}){const n=b,{b:s,m:c,e:i,bm:T,em:p}=z.useNamespace("check-card"),C=h,a=q.useInjectCheckCard(),{value:r,updateValue:f}=S.useControllableValue(n,C,{valuePropName:"checked",defaultValuePropName:"defaultChecked"}),l=e.computed(()=>{const t={...n},o=e.unref(a);return o&&(t.disabled=t.disabled||o.disabled,t.bordered=t.bordered||o.bordered,t.loading=t.loading||o.loading,t.size=t.size||o.size,t.stopPropagation=t.stopPropagation||o.stopPropagation),t}),y=e.computed(()=>{const t=e.unref(l);return[s(),...t.disabled?[]:[s(),e.unref(r)?c("checked"):null],c(t.size),t.bordered?c("bordered"):null,t.disabled?c("disabled"):null]}),m=e.computed(()=>{if(!n.title)return;const t=g.isFunction(n.title)?n.title(e.unref(r)):e.createVNode("span",null,[n.title]);return e.createVNode("div",{class:[i("title"),l.value.disabled?p("title","disabled"):null]},[t])}),v=e.computed(()=>{if(!n.content)return;const t=g.isFunction(n.content)?n.content(e.unref(r)):n.content;return e.createVNode("div",{class:[i("content"),l.value.disabled?p("content","disabled"):null]},[t])});function B(t){const o=e.unref(l).stopPropagation;return o?o===!0?t.target!==t.currentTarget:o(t):!1}function N(t){var o,u;B(t)||l.value.loading||l.value.disabled||(a.value?(u=(o=a.value)==null?void 0:o.toggleOption)==null||u.call(o,n.value):f(!e.unref(r)))}return e.watch(()=>a.value,t=>{if(!t)return;const o=t.multiple?(t.value||[]).includes(n.value):t.value===n.value;f(o)},{immediate:!0}),e.watchEffect(t=>{var o,u;(u=(o=a.value)==null?void 0:o.registerValue)==null||u.call(o,n.value),t(()=>{var d,k;return(k=(d=a.value)==null?void 0:d.cancelValue)==null?void 0:k.call(d,n.value)})}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(t.style),class:e.normalizeClass(y.value),onClick:e.withModifiers(N,["stop"])},[l.value.loading?(e.openBlock(),e.createBlock(e.unref(V.Skeleton),{key:0,active:""})):e.renderSlot(t.$slots,"default",{key:1,checked:e.unref(r)},()=>[m.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value),{key:0})):e.createCommentVNode("",!0),v.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.value),{key:1})):e.createCommentVNode("",!0)]),e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(i)("checked-icon"))},[e.createElementVNode("img",{src:e.unref(P.default)},null,8,_)],2)):e.createCommentVNode("",!0)],6))}});exports.default=w;
@@ -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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={borderRadius:4},r={...o,colorPrimary:"#0070FF",colorPrimaryHover:"#66A9FF",colorPrimaryActive:"#338CFF",colorTextBase:"#182948",colorText:"#182948",colorTextSecondary:"#526A90",colorTextTertiary:"#8896B0",colorTextPlaceholder:"#BFBFBF",colorBorder:"#DEE4ED",colorSplit:"#E9EDF3",colorInfo:"#0070FF",colorSuccess:"#2ED1A3",colorError:"#FF4D4F",colorWarning:"#FFA940",colorBgContainerDisabled:"#F9F9FA",wireframe:!1,colorBgLayout:"#F2F6F9",colorBgSpotlight:"#000000cc",controlItemBgActive:"#F5F9FF",controlItemBgActiveHover:"#EAF2FF"},c={...o,colorPrimary:"#34B77C",colorPrimaryHover:"#85D4B0",colorPrimaryActive:"#5DC596",colorBgContainerDisabled:"#f5f5f5",colorText:"#333333",colorTextSecondary:"#666666",colorTextTertiary:"#999999",colorTextPlaceholder:"#ABB7CC",colorBorder:"#D9D9D9",colorSplit:"#E9E9E9",colorInfo:"#1890FF",colorSuccess:"#52C41A",colorError:"#FF4D4F",colorWarning:"#FAAD14",colorLink:"#1890FF",wireframe:!1,colorBgLayout:"#FAFAFA",colorBgSpotlight:"#000000cc",controlItemBgActive:"#f3fbf7",controlItemBgActiveHover:"#e6f6ef"};exports.adminToken=c;exports.aplusToken=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={borderRadius:4},r={...o,colorPrimary:"#0070FF",colorPrimaryHover:"#66A9FF",colorPrimaryActive:"#338CFF",colorTextBase:"#182948",colorText:"#182948",colorTextSecondary:"#526A90",colorTextTertiary:"#8896B0",colorTextPlaceholder:"#BFBFBF",colorBorder:"#DEE4ED",colorSplit:"#E9EDF3",colorInfo:"#0070FF",colorSuccess:"#2ED1A3",colorError:"#FF4D4F",colorWarning:"#FFA940",colorBgContainerDisabled:"#F9F9FA",wireframe:!1,colorBgLayout:"#F2F6F9",colorBgSpotlight:"#000000cc",controlItemBgActive:"#F5F9FF",controlItemBgActiveHover:"#EAF2FF",colorBorderSecondary:"#E9EDF3"},c={...o,colorPrimary:"#34B77C",colorPrimaryHover:"#85D4B0",colorPrimaryActive:"#5DC596",colorBgContainerDisabled:"#f5f5f5",colorText:"#333333",colorTextSecondary:"#666666",colorTextTertiary:"#999999",colorTextPlaceholder:"#ABB7CC",colorBorder:"#D9D9D9",colorSplit:"#E9E9E9",colorInfo:"#1890FF",colorSuccess:"#52C41A",colorError:"#FF4D4F",colorWarning:"#FAAD14",colorLink:"#1890FF",wireframe:!1,colorBgLayout:"#FAFAFA",colorBgSpotlight:"#000000cc",controlItemBgActive:"#f3fbf7",controlItemBgActiveHover:"#e6f6ef",colorBorderSecondary:"#E9E9E9"};exports.adminToken=c;exports.aplusToken=r;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),_=require("ant-design-vue"),h=require("../ap-form/index.js"),d=require("lodash-unified");require("../config-provider/index.js");const P=require("../ap-form/context.js");require("./style/index.css");const i=require("../utils/index.js"),T=require("./hooks/use-get-columns.js"),x=require("./utils.js"),V=require("../config-provider/hooks/use-namespace.js"),j=require("../config-provider/hooks/use-global-config.js"),z=e.defineComponent({name:"EditableTableInner",__name:"form-item",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"middle"},bordered:{type:Boolean,default:!1},locale:{},onResizeColumn:{},rowSelection:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{default:"fixed"},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},value:{},defaultValue:{},"onUpdate:value":{},onChange:{},maxLength:{},onFieldChange:{},label:{},name:{},formItem:{default:()=>({})}},setup(C,{expose:b}){var m;const a=C,{internalInstance:l,model:w}=P.useInjectForm(),r=e.ref(((m=e.unref(w))==null?void 0:m[a.name])||[]),y=e.useSlots(),R=h.ApForm.useWatch(a.name);e.watch(()=>R.value,n=>{var o;r.value=n,(o=a.onChange)==null||o.call(a,n)});const{b:f,em:D}=V.useNamespace("editable-table"),B=j.useGlobalConfig("uiMode","aplus"),c=e.ref(),q=T.default(a);function v(n,o){var s;const t=((s=e.unref(r))==null?void 0:s.length)||0;if(i.isDef(a.maxLength)&&t>=a.maxLength)return;const u=[...e.unref(r)||[]];i.isDef(o)?u.splice(o,0,{...n||{}}):u.push({...n||{}}),l==null||l.setFieldValue(a.name,[...e.unref(r)||[],n||{}])}function N(n,o="suffix"){var g;const t=((g=e.unref(r))==null?void 0:g.length)||0,u=d.isNumber(n)?n:n.length;if(i.isDef(a.maxLength)&&t+u>a.maxLength)return;const s=[...e.unref(r)||[]],p=d.isNumber(n)?new Array(n).fill({}):d.cloneDeep(n);o==="suffix"?s.push(...p):s.unshift(...p),l==null||l.setFieldValue(a.name,s)}function F(n){let o=d.cloneDeep(e.unref(r)||[]);const t=d.isNumber(n)?[n]:n;o=o.filter((u,s)=>!t.includes(s)),l==null||l.setFieldValue(a.name,o)}function E(){return e.unref(r)}function S(n){var o;return(o=e.unref(r))==null?void 0:o[n]}function k(n,o){const t=d.cloneDeep(e.unref(r));t[n]&&(t[n]={...t[n],...o},l==null||l.setFieldValue(a.name,[...t]))}function L(n,o){var u;const t=n==="end"?r.value.length-1:n;x.scrollToRowIndex(t,(u=c.value)==null?void 0:u.$el,o)}return b({add:v,remove:F,getRowData:S,getRowsData:E,setRowData:k,addMultiple:N,scrollTo:L}),(n,o)=>(e.openBlock(),e.createBlock(e.unref(h.ApForm).FormItem,e.mergeProps(n.formItem,{name:n.name,label:n.label}),{default:e.withCtx(()=>[e.createVNode(e.unref(_.Table),e.mergeProps(e.unref(d.omit)(a,["name","maxLength","onChange"]),{class:[e.unref(f)(),e.unref(B)==="admin"?e.unref(f)("admin"):null],columns:e.unref(q),"data-source":r.value,ref_key:"tableRef",ref:c}),e.createSlots({headerCell:e.withCtx(({column:t})=>[e.unref(x.getColumnIsRequired)(t)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(D)("header-cell","required"))},"*",2),e.createElementVNode("span",null,e.toDisplayString(t.title),1)],64)):e.createCommentVNode("",!0)]),_:2},[e.renderList(y,(t,u)=>({name:u,fn:e.withCtx(s=>[e.renderSlot(n.$slots,u,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040,["class","columns","data-source"])]),_:3},16,["name","label"]))}});exports.default=z;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),L=require("ant-design-vue"),h=require("../ap-form/index.js"),d=require("lodash-unified");require("../config-provider/index.js");const _=require("../ap-form/context.js");require("./style/index.css");const f=require("../utils/index.js"),P=require("./hooks/use-get-columns.js"),g=require("./utils.js"),T=require("../config-provider/hooks/use-namespace.js"),V=e.defineComponent({name:"EditableTableInner",__name:"form-item",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"middle"},bordered:{type:Boolean,default:!1},locale:{},onResizeColumn:{},rowSelection:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{default:"fixed"},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},value:{},defaultValue:{},"onUpdate:value":{},onChange:{},maxLength:{},onFieldChange:{},label:{},name:{},formItem:{default:()=>({})}},setup(x,{expose:C}){var i;const a=x,{internalInstance:l,model:b}=_.useInjectForm(),r=e.ref(((i=e.unref(b))==null?void 0:i[a.name])||[]),w=e.useSlots(),y=h.ApForm.useWatch(a.name);e.watch(()=>y.value,t=>{var n;r.value=t,(n=a.onChange)==null||n.call(a,t)});const{b:R,em:D}=T.useNamespace("editable-table"),c=e.ref(),B=P.default(a);function q(t,n){var s;const o=((s=e.unref(r))==null?void 0:s.length)||0;if(f.isDef(a.maxLength)&&o>=a.maxLength)return;const u=[...e.unref(r)||[]];f.isDef(n)?u.splice(n,0,{...t||{}}):u.push({...t||{}}),l==null||l.setFieldValue(a.name,[...e.unref(r)||[],t||{}])}function v(t,n="suffix"){var p;const o=((p=e.unref(r))==null?void 0:p.length)||0,u=d.isNumber(t)?t:t.length;if(f.isDef(a.maxLength)&&o+u>a.maxLength)return;const s=[...e.unref(r)||[]],m=d.isNumber(t)?new Array(t).fill({}):d.cloneDeep(t);n==="suffix"?s.push(...m):s.unshift(...m),l==null||l.setFieldValue(a.name,s)}function N(t){let n=d.cloneDeep(e.unref(r)||[]);const o=d.isNumber(t)?[t]:t;n=n.filter((u,s)=>!o.includes(s)),l==null||l.setFieldValue(a.name,n)}function F(){return e.unref(r)}function E(t){var n;return(n=e.unref(r))==null?void 0:n[t]}function S(t,n){const o=d.cloneDeep(e.unref(r));o[t]&&(o[t]={...o[t],...n},l==null||l.setFieldValue(a.name,[...o]))}function k(t,n){var u;const o=t==="end"?r.value.length-1:t;g.scrollToRowIndex(o,(u=c.value)==null?void 0:u.$el,n)}return C({add:q,remove:N,getRowData:E,getRowsData:F,setRowData:S,addMultiple:v,scrollTo:k}),(t,n)=>(e.openBlock(),e.createBlock(e.unref(h.ApForm).FormItem,e.mergeProps(t.formItem,{name:t.name,label:t.label}),{default:e.withCtx(()=>[e.createVNode(e.unref(L.Table),e.mergeProps(e.unref(d.omit)(a,["name","maxLength","onChange"]),{class:e.unref(R)(),columns:e.unref(B),"data-source":r.value,ref_key:"tableRef",ref:c}),e.createSlots({headerCell:e.withCtx(({column:o})=>[e.unref(g.getColumnIsRequired)(o)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(D)("header-cell","required"))},"*",2),e.createElementVNode("span",null,e.toDisplayString(o.title),1)],64)):e.createCommentVNode("",!0)]),_:2},[e.renderList(w,(o,u)=>({name:u,fn:e.withCtx(s=>[e.renderSlot(t.$slots,u,e.normalizeProps(e.guardReactiveProps(s||{})))])}))]),1040,["class","columns","data-source"])]),_:3},16,["name","label"]))}});exports.default=V;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),j=require("ant-design-vue"),m=require("../ap-form/index.js"),c=require("lodash-unified");require("../config-provider/index.js");require("../hooks/index.js");const p=require("../utils/index.js"),C=require("./utils.js"),z=require("./hooks/use-get-columns.js");require("./style/index.css");const I=require("../config-provider/hooks/use-namespace.js"),M=require("../config-provider/hooks/use-global-config.js"),O=require("../hooks/useControllableValue.js"),G=e.defineComponent({name:"EditableTable",__name:"index",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"middle"},bordered:{type:Boolean,default:!1},locale:{},onResizeColumn:{},rowSelection:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{default:"fixed"},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},value:{},defaultValue:{},"onUpdate:value":{},onChange:{},maxLength:{},name:{default:"ap-editable-table-inner-name"},onFieldChange:{}},emits:["update:value"],setup(b,{expose:w,emit:v}){const l=b,{b:h,em:y}=I.useNamespace("editable-table"),R=M.useGlobalConfig("uiMode","aplus"),D=e.useSlots(),q=v,x=e.ref(),{value:r,updateValue:B}=O.useControllableValue(l,q),s=e.ref(),F=m.ApForm.useWatch(l.name,s);e.watch(()=>F.value,n=>{var a;B(n),(a=l.onChange)==null||a.call(l,n)});const N=z.default(l);function _(){var n;(n=s.value)==null||n.resetFields()}async function V(n,a){var t;const o=await((t=s.value)==null?void 0:t.validateFields(n,a));return o==null?void 0:o[l.name]}function k(n,a){var u,i,d;const o=((u=e.unref(r))==null?void 0:u.length)||0;if(p.isDef(l.maxLength)&&o>=l.maxLength)return;const t=[...e.unref(r)||[]];p.isDef(a)?t.splice(a,0,{...n||{}}):t.push({...n||{}}),(d=(i=s.value)==null?void 0:i.setFieldValue)==null||d.call(i,l.name,t)}function E(n,a="suffix"){var d,f,g;const o=((d=e.unref(r))==null?void 0:d.length)||0,t=c.isNumber(n)?n:n.length;if(p.isDef(l.maxLength)&&o+t>l.maxLength)return;const u=[...e.unref(r)||[]],i=c.isNumber(n)?new Array(n).fill({}):c.cloneDeep(n);a==="suffix"?u.push(...i):u.unshift(...i),(g=(f=s.value)==null?void 0:f.setFieldValue)==null||g.call(f,l.name,u)}function S(n){var t,u;let a=c.cloneDeep(e.unref(r)||[]);const o=c.isNumber(n)?[n]:n;a=a.filter((i,d)=>!o.includes(d)),(u=(t=s.value)==null?void 0:t.setFieldValue)==null||u.call(t,l.name,a)}function L(){return e.unref(r)}function T(n){var a;return(a=e.unref(r))==null?void 0:a[n]}function A(n,a){var t,u;const o=c.cloneDeep(e.unref(r));o[n]&&(o[n]={...o[n],...a},(u=(t=s.value)==null?void 0:t.setFieldValue)==null||u.call(t,l.name,[...o]))}function P(n,a){var t;const o=n==="end"?r.value.length-1:n;C.scrollToRowIndex(o,(t=x.value)==null?void 0:t.$el,a)}return w({resetFields:_,validateFields:V,add:k,remove:S,getRowData:T,getRowsData:L,setRowData:A,addMultiple:E,scrollTo:P}),(n,a)=>(e.openBlock(),e.createBlock(e.unref(m.ApForm),{"initial-values":{[l.name]:e.unref(r)},ref_key:"formRef",ref:s},{default:e.withCtx(()=>[e.createVNode(e.unref(m.ApForm).FormItem,{name:n.name,"no-style":""},{default:e.withCtx(()=>[e.createVNode(e.unref(j.Table),e.mergeProps(e.unref(c.omit)(l,["name","value","onUpdate:value","maxLength","onChange"]),{class:[e.unref(h)(),e.unref(R)==="admin"?e.unref(h)("admin"):null],columns:e.unref(N),"data-source":e.unref(r),ref_key:"tableRef",ref:x}),e.createSlots({headerCell:e.withCtx(({column:o})=>[e.unref(C.getColumnIsRequired)(o)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(y)("header-cell","required"))},"*",2),e.createElementVNode("span",null,e.toDisplayString(o.title),1)],64)):e.createCommentVNode("",!0)]),_:2},[e.renderList(D,(o,t)=>({name:t,fn:e.withCtx(u=>[e.renderSlot(n.$slots,t,e.normalizeProps(e.guardReactiveProps(u||{})))])}))]),1040,["class","columns","data-source"])]),_:3},8,["name"])]),_:3},8,["initial-values"]))}});exports.default=G;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),P=require("ant-design-vue"),m=require("../ap-form/index.js"),c=require("lodash-unified");require("../config-provider/index.js");require("../hooks/index.js");const p=require("../utils/index.js"),g=require("./utils.js"),j=require("./hooks/use-get-columns.js");require("./style/index.css");const z=require("../config-provider/hooks/use-namespace.js"),I=require("../hooks/useControllableValue.js"),O=e.defineComponent({name:"EditableTable",__name:"index",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"middle"},bordered:{type:Boolean,default:!1},locale:{},onResizeColumn:{},rowSelection:{},getPopupContainer:{},scroll:{},sortDirections:{default:()=>["ascend","descend"]},showSorterTooltip:{type:[Boolean,Object],default:!0},prefixCls:{},rowKey:{default:"key"},tableLayout:{default:"fixed"},rowClassName:{},title:{},footer:{},id:{},showHeader:{type:Boolean,default:!0},components:{},customRow:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean],default:!1},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean,default:!1},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean,default:!1},indentSize:{default:15},expandIconColumnIndex:{},showExpandColumn:{type:Boolean,default:!0},expandedRowClassName:{},childrenColumnName:{default:"children"},rowExpandable:{},sticky:{type:[Boolean,Object]},transformCellText:{},columns:{},value:{},defaultValue:{},"onUpdate:value":{},onChange:{},maxLength:{},name:{default:"ap-editable-table-inner-name"},onFieldChange:{}},emits:["update:value"],setup(C,{expose:w,emit:b}){const l=C,{b:v,em:y}=z.useNamespace("editable-table"),R=e.useSlots(),D=b,h=e.ref(),{value:u,updateValue:B}=I.useControllableValue(l,D),s=e.ref(),F=m.ApForm.useWatch(l.name,s);e.watch(()=>F.value,n=>{var a;B(n),(a=l.onChange)==null||a.call(l,n)});const q=j.default(l);function N(){var n;(n=s.value)==null||n.resetFields()}async function _(n,a){var t;const o=await((t=s.value)==null?void 0:t.validateFields(n,a));return o==null?void 0:o[l.name]}function V(n,a){var r,i,d;const o=((r=e.unref(u))==null?void 0:r.length)||0;if(p.isDef(l.maxLength)&&o>=l.maxLength)return;const t=[...e.unref(u)||[]];p.isDef(a)?t.splice(a,0,{...n||{}}):t.push({...n||{}}),(d=(i=s.value)==null?void 0:i.setFieldValue)==null||d.call(i,l.name,t)}function k(n,a="suffix"){var d,f,x;const o=((d=e.unref(u))==null?void 0:d.length)||0,t=c.isNumber(n)?n:n.length;if(p.isDef(l.maxLength)&&o+t>l.maxLength)return;const r=[...e.unref(u)||[]],i=c.isNumber(n)?new Array(n).fill({}):c.cloneDeep(n);a==="suffix"?r.push(...i):r.unshift(...i),(x=(f=s.value)==null?void 0:f.setFieldValue)==null||x.call(f,l.name,r)}function E(n){var t,r;let a=c.cloneDeep(e.unref(u)||[]);const o=c.isNumber(n)?[n]:n;a=a.filter((i,d)=>!o.includes(d)),(r=(t=s.value)==null?void 0:t.setFieldValue)==null||r.call(t,l.name,a)}function S(){return e.unref(u)}function L(n){var a;return(a=e.unref(u))==null?void 0:a[n]}function T(n,a){var t,r;const o=c.cloneDeep(e.unref(u));o[n]&&(o[n]={...o[n],...a},(r=(t=s.value)==null?void 0:t.setFieldValue)==null||r.call(t,l.name,[...o]))}function A(n,a){var t;const o=n==="end"?u.value.length-1:n;g.scrollToRowIndex(o,(t=h.value)==null?void 0:t.$el,a)}return w({resetFields:N,validateFields:_,add:V,remove:E,getRowData:L,getRowsData:S,setRowData:T,addMultiple:k,scrollTo:A}),(n,a)=>(e.openBlock(),e.createBlock(e.unref(m.ApForm),{"initial-values":{[l.name]:e.unref(u)},ref_key:"formRef",ref:s},{default:e.withCtx(()=>[e.createVNode(e.unref(m.ApForm).FormItem,{name:n.name,"no-style":""},{default:e.withCtx(()=>[e.createVNode(e.unref(P.Table),e.mergeProps(e.unref(c.omit)(l,["name","value","onUpdate:value","maxLength","onChange"]),{class:e.unref(v)(),columns:e.unref(q),"data-source":e.unref(u),ref_key:"tableRef",ref:h}),e.createSlots({headerCell:e.withCtx(({column:o})=>[e.unref(g.getColumnIsRequired)(o)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(y)("header-cell","required"))},"*",2),e.createElementVNode("span",null,e.toDisplayString(o.title),1)],64)):e.createCommentVNode("",!0)]),_:2},[e.renderList(R,(o,t)=>({name:t,fn:e.withCtx(r=>[e.renderSlot(n.$slots,t,e.normalizeProps(e.guardReactiveProps(r||{})))])}))]),1040,["class","columns","data-source"])]),_:3},8,["name"])]),_:3},8,["initial-values"]))}});exports.default=O;
@@ -12,31 +12,11 @@
12
12
  flex: 1;
13
13
  }
14
14
  .aplus-editable-table tr > th.ant-table-cell {
15
- background-color: #F2F6F9;
16
- border-bottom-color: #E9EDF3;
15
+ background-color: var(--ap-table-header-bg);
17
16
  }
18
17
  .aplus-editable-table tr > th.ant-table-cell::before {
19
18
  display: none;
20
19
  }
21
- .aplus-editable-table tr > td.ant-table-cell {
22
- border-top-color: #E9EDF3;
23
- }
24
- .aplus-editable-table-admin .ant-pagination {
25
- margin-bottom: 0 !important;
26
- }
27
- .aplus-editable-table-admin .ant-pagination .ant-pagination-total-text {
28
- flex: 1;
29
- }
30
- .aplus-editable-table-admin tr > th.ant-table-cell {
31
- background-color: #FAFAFA;
32
- border-bottom-color: #E9E9E9;
33
- }
34
- .aplus-editable-table-admin tr > th.ant-table-cell::before {
35
- display: none;
36
- }
37
- .aplus-editable-table-admin tr > td.ant-table-cell {
38
- border-top-color: #E9E9E9;
39
- }
40
20
  .aplus-editable-table .ant-table.ant-table-middle .ant-table-row .ant-table-cell:has(.is-editable) {
41
21
  padding: 20px 16px 0px;
42
22
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{button:{prefix:"Prefix"},icon:{picker:{placeholder:"Click the select icon",search:"Search icon",copy:"Copy icon successfully!"}},form:{item:{apiSelect:{loadingTip:"Wait for data loading to complete..."}},maxTip:"The number of characters should be less than {count}"},common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},cropper:{modalTitle:"Avatar upload",okText:"Confirm and upload ",selectImage:"Select Image",rotateLeft:"Counterclockwise rotation",rotateRight:"Clockwise rotation",scaleX:"Flip horizontal",scaleY:"Flip vertical",zoomIn:"Zoom in",zoomOut:"Zoom out",preview:"Preview",imageTooBig:"Image too big",uploadSuccess:"Uploaded success!"},modal:{restore:"Restore",maximize:"Maximize",close:"Close"},countdown:{normalText:"Get SMS code",sendText:"Reacquire in {sec}s"},table:{settingColumn:"Column settings",settingColumnShow:"Column display",settingIndexColumnShow:"Index Column",settingSelectColumnShow:"Selection Column",settingFixedLeft:"Fixed Left",settingFixedRight:"Fixed Right",settingFullScreen:"Full Screen",settingDens:"Density",settingDensDefault:"Default",settingDensMiddle:"Middle",settingDensSmall:"Compact",selectionBarTips:"{count} records selected.",selectionBarEmpty:"No records selected.",selectionBarClear:"Clear",total:"total of {total}",index:"Index"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeft:"Total {total} items",totalRight:"Page {page}"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}个图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"export error",exportSelected:"export selected",exportAll:"export all",export:"export"}}};exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{button:{prefix:"Prefix"},icon:{picker:{placeholder:"Click the select icon",search:"Search icon",copy:"Copy icon successfully!"}},form:{item:{apiSelect:{loadingTip:"Wait for data loading to complete..."}},maxTip:"The number of characters should be less than {count}"},common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},cropper:{modalTitle:"Avatar upload",okText:"Confirm and upload ",selectImage:"Select Image",rotateLeft:"Counterclockwise rotation",rotateRight:"Clockwise rotation",scaleX:"Flip horizontal",scaleY:"Flip vertical",zoomIn:"Zoom in",zoomOut:"Zoom out",preview:"Preview",imageTooBig:"Image too big",uploadSuccess:"Uploaded success!"},modal:{restore:"Restore",maximize:"Maximize",close:"Close"},countdown:{normalText:"Get SMS code",sendText:"Reacquire in {sec}s"},table:{settingColumn:"Column settings",settingColumnShow:"Column display",settingIndexColumnShow:"Index Column",settingSelectColumnShow:"Selection Column",settingFixedLeft:"Fixed Left",settingFixedRight:"Fixed Right",settingFullScreen:"Full Screen",settingDens:"Density",settingDensDefault:"Default",settingDensMiddle:"Middle",settingDensSmall:"Compact",selectionBarTips:"{count} records selected.",selectionBarEmpty:"No records selected.",selectionBarClear:"Clear",total:"total of {total}",index:"Index"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeft:"Total {total} items",totalRight:"Page {page}"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}张图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"export error",exportSelected:"export selected",exportAll:"export all",export:"export"}}};exports.default=e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"zh-cn",ap:{button:{prefix:"前缀"},icon:{picker:{placeholder:"点击选择图标",search:"搜索图标",copy:"复制图标成功!"}},form:{item:{apiSelect:{loadingTip:"请等待数据加载完成..."}},maxTip:"字符数应小于{count}位"},common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多"},cropper:{modalTitle:"头像上传",okText:"确认并上传",selectImage:"选择图片",rotateLeft:"逆时针旋转",rotateRight:"顺时针旋转",scaleX:"水平翻转",scaleY:"垂直翻转",zoomIn:"放大",zoomOut:"缩小",preview:"预览",imageTooBig:"图片超限",uploadSuccess:"上传成功"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},table:{settingColumn:"列设置",settingColumnShow:"列展示",settingIndexColumnShow:"序号列",settingSelectColumnShow:"勾选列",settingFixedLeft:"固定到左侧",settingFixedRight:"固定到右侧",settingFullScreen:"全屏",settingDens:"密度",settingDensDefault:"默认",settingDensMiddle:"中等",settingDensSmall:"紧凑",selectionBarTips:"已选择{count}条记录",selectionBarEmpty:"未选中任何记录",selectionBarClear:"清空",total:"共 {total} 条数据",index:"索引"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeft:"共 {total} 条记录",totalRight:"第 {page} 页"}},apUpload:{update:"上传",pictureType:"图片类型",videoType:"视频类型",audioType:"音频类型",documentType:"文档类型",allTypes:"全部类型",networkAnomaly:"网络异常",FailedToObtainOssTemporaryPermissions:"获取oss临时权限失败",pleasePass:"请传入",supportExtension:"支持扩展名",uploadFile:"上传文件",fileInitializationException:"文件初始化个数超过{maxCount}个,后续上传的文件会与数据不同步",maxUploadFiles:"最多上传{maxCount}个文件",maxUploadPicture:"最多上传{maxCount}个图片",maxUploadFileSize:"文件大小不超过{maxSize}MB",maxWarnUploadFileSize:"文件大小小于{maxSize}MB",maxUploadPictureSize:"图片大小小于{maxSize}MB",fileFormatNotSupported:"不支持该格式的文件",pictureFormatNotSupported:"不支持该格式的图片",imageParsingFailed:"图片解析失败",clickOrDragUpload:"点击或将文件拖拽到这里上传",foldersNotSupported:"不支持上传文件夹"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出"}}};exports.default=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"zh-cn",ap:{button:{prefix:"前缀"},icon:{picker:{placeholder:"点击选择图标",search:"搜索图标",copy:"复制图标成功!"}},form:{item:{apiSelect:{loadingTip:"请等待数据加载完成..."}},maxTip:"字符数应小于{count}位"},common:{okText:"确认",cancelText:"取消",resetText:"重置",queryText:"查询",expandText:"展开",closeText:"收起",inputText:"请输入",chooseText:"请选择",redo:"刷新",back:"返回",more:"更多"},cropper:{modalTitle:"头像上传",okText:"确认并上传",selectImage:"选择图片",rotateLeft:"逆时针旋转",rotateRight:"顺时针旋转",scaleX:"水平翻转",scaleY:"垂直翻转",zoomIn:"放大",zoomOut:"缩小",preview:"预览",imageTooBig:"图片超限",uploadSuccess:"上传成功"},modal:{restore:"还原",maximize:"最大化",close:"关闭"},countdown:{normalText:"获取验证码",sendText:"{sec}秒后重新获取"},table:{settingColumn:"列设置",settingColumnShow:"列展示",settingIndexColumnShow:"序号列",settingSelectColumnShow:"勾选列",settingFixedLeft:"固定到左侧",settingFixedRight:"固定到右侧",settingFullScreen:"全屏",settingDens:"密度",settingDensDefault:"默认",settingDensMiddle:"中等",settingDensSmall:"紧凑",selectionBarTips:"已选择{count}条记录",selectionBarEmpty:"未选中任何记录",selectionBarClear:"清空",total:"共 {total} 条数据",index:"索引"},apForm:{search:{search:"查询",reset:"重置"}},apTable:{pagination:{totalLeft:"共 {total} 条记录",totalRight:"第 {page} 页"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"导出失败",exportSelected:"导出所选",exportAll:"导出全部",export:"导出"}}};exports.default=e;
@@ -4,35 +4,20 @@
4
4
  line-height: 22px;
5
5
  cursor: pointer;
6
6
  }
7
- .aplus-action-item-aplus--primary {
8
- color: #0070ff;
7
+ .aplus-action-item--primary {
8
+ color: var(--ap-action-color-primary-base);
9
9
  }
10
- .aplus-action-item-aplus--primary:not(.aplus-action-item--disabled):hover {
11
- color: #66a9ff;
10
+ .aplus-action-item--primary:not(.aplus-action-item--disabled):hover {
11
+ color: var(--ap-action-color-primary-hover);
12
12
  }
13
- .aplus-action-item-admin--primary {
14
- color: #1890FF;
13
+ .aplus-action-item--success {
14
+ color: var(--ap-action-color-success);
15
15
  }
16
- .aplus-action-item-admin--primary:not(.aplus-action-item--disabled):hover {
17
- color: #5EB1FF;
16
+ .aplus-action-item--error {
17
+ color: var(--ap-action-color-error);
18
18
  }
19
- .aplus-action-item-aplus--success {
20
- color: #2ed1a3;
21
- }
22
- .aplus-action-item-aplus--error {
23
- color: #FF4D4F;
24
- }
25
- .aplus-action-item-aplus--warn {
26
- color: #FFA940;
27
- }
28
- .aplus-action-item-admin--success {
29
- color: #52C41A;
30
- }
31
- .aplus-action-item-admin--error {
32
- color: #FF4D4F;
33
- }
34
- .aplus-action-item-admin--warn {
35
- color: #FAAD14;
19
+ .aplus-action-item--warn {
20
+ color: var(--ap-action-color-warn);
36
21
  }
37
22
  .aplus-action-item--loading {
38
23
  opacity: 0.35;
@@ -0,0 +1,7 @@
1
+ .aplus-field-checkbox--vertical {
2
+ display: inline-block;
3
+ }
4
+ .aplus-field-checkbox--vertical label.ant-checkbox-wrapper:not(:last-child) {
5
+ display: flex;
6
+ margin-block-end: 16px;
7
+ }
@@ -0,0 +1,4 @@
1
+ .aplus-field-radio--vertical label.ant-radio-wrapper:not(:last-child) {
2
+ display: flex;
3
+ margin-block-end: 16px;
4
+ }
@@ -48,31 +48,11 @@
48
48
  flex: 1;
49
49
  }
50
50
  .aplus-ap-table-table tr > th.ant-table-cell {
51
- background-color: #F2F6F9;
52
- border-bottom-color: #E9EDF3;
51
+ background-color: var(--ap-table-header-bg);
53
52
  }
54
53
  .aplus-ap-table-table tr > th.ant-table-cell::before {
55
54
  display: none;
56
55
  }
57
- .aplus-ap-table-table tr > td.ant-table-cell {
58
- border-top-color: #E9EDF3;
59
- }
60
- .aplus-ap-table-table-admin .ant-pagination {
61
- margin-bottom: 0 !important;
62
- }
63
- .aplus-ap-table-table-admin .ant-pagination .ant-pagination-total-text {
64
- flex: 1;
65
- }
66
- .aplus-ap-table-table-admin tr > th.ant-table-cell {
67
- background-color: #FAFAFA;
68
- border-bottom-color: #E9E9E9;
69
- }
70
- .aplus-ap-table-table-admin tr > th.ant-table-cell::before {
71
- display: none;
72
- }
73
- .aplus-ap-table-table-admin tr > td.ant-table-cell {
74
- border-top-color: #E9E9E9;
75
- }
76
56
  .aplus-ap-table .ant-table.ant-table-middle .ant-table-row .ant-table-cell {
77
57
  padding: 12px 16px;
78
58
  }
@@ -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 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d={"ap-form":{bordered:{"border-color":{base:"#dee4ed",hover:"#66a9ff",active:"#66a9ff"},"shadow-color":"rgba(5, 155, 255, 0.1)"}}},b={"ap-form":{bordered:{"border-color":{base:"#D9D9D9",hover:"#85D4B0",active:"#85D4B0"},"shadow-color":"rgba(11, 166, 66, 0.09)"}}};function c(r){const e={};function s(t,l){const i=Object.keys(t);for(const a of i){const o=t[a],n=[...l,a];o!==null&&typeof o=="object"?s(o,n):e[`--${n.join("-")}`]=o}}return s(r,[]),e}const f=c(d),u=c(b);function m(r){Object.entries(r).forEach(([e,s])=>{document.documentElement.style.setProperty(e,s)})}exports.adminCssVar=u;exports.aplusCssVar=f;exports.setCSSVariables=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i={"ap-form":{bordered:{"border-color":{base:"#DEE4ED",hover:"#66A9FF",active:"#66A9FF"},"shadow-color":"rgba(5, 155, 255, 0.1)"}},"ap-action":{color:{primary:{base:"#0070FF",hover:"#66A9FF"},success:"#2ED1A3",error:"#FF4D4F",warn:"#FFA940"}},"check-card":{outline:{color:"#E9EDF3"},hover:{outline:{color:"#0070FF"}},checked:{outline:{color:"#0070FF"},bg:"#0070FF"}},"ap-table":{header:{bg:"#F2F6F9"}}},b={"ap-form":{bordered:{"border-color":{base:"#D9D9D9",hover:"#85D4B0",active:"#85D4B0"},"shadow-color":"rgba(11, 166, 66, 0.09)"}},"ap-action":{color:{primary:{base:"#1890FF",hover:"#5EB1FF"},success:"#52C41A",error:"#FF4D4F",warn:"#FAAD14"}},"check-card":{outline:{color:"#D9D9D9"},hover:{outline:{color:"#34B77C"}},checked:{outline:{color:"#34B77C"},bg:"#34B77C"}},"ap-table":{header:{bg:"#FAFAFA"}}};function n(s){const e={};function o(a,l){const F=Object.keys(a);for(const c of F){const r=a[c],t=[...l,c];r!==null&&typeof r=="object"?o(r,t):e[`--${t.join("-")}`]=r}}return o(s,[]),e}const u=n(i),d=n(b);function h(s){Object.entries(s).forEach(([e,o])=>{document.documentElement.style.setProperty(e,o)})}exports.adminCssVar=d;exports.aplusCssVar=u;exports.setCSSVariables=h;
@@ -12,31 +12,11 @@
12
12
  flex: 1;
13
13
  }
14
14
  .aplus-editable-table tr > th.ant-table-cell {
15
- background-color: #F2F6F9;
16
- border-bottom-color: #E9EDF3;
15
+ background-color: var(--ap-table-header-bg);
17
16
  }
18
17
  .aplus-editable-table tr > th.ant-table-cell::before {
19
18
  display: none;
20
19
  }
21
- .aplus-editable-table tr > td.ant-table-cell {
22
- border-top-color: #E9EDF3;
23
- }
24
- .aplus-editable-table-admin .ant-pagination {
25
- margin-bottom: 0 !important;
26
- }
27
- .aplus-editable-table-admin .ant-pagination .ant-pagination-total-text {
28
- flex: 1;
29
- }
30
- .aplus-editable-table-admin tr > th.ant-table-cell {
31
- background-color: #FAFAFA;
32
- border-bottom-color: #E9E9E9;
33
- }
34
- .aplus-editable-table-admin tr > th.ant-table-cell::before {
35
- display: none;
36
- }
37
- .aplus-editable-table-admin tr > td.ant-table-cell {
38
- border-top-color: #E9E9E9;
39
- }
40
20
  .aplus-editable-table .ant-table.ant-table-middle .ant-table-row .ant-table-cell:has(.is-editable) {
41
21
  padding: 20px 16px 0px;
42
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.0.40",
3
+ "version": "0.1.0",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.mjs",
6
6
  "files": [
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@aplus-frontend/icon": "^1.0.20",
68
- "@aplus-frontend/oss": "^1.0.19",
68
+ "@aplus-frontend/oss": "^1.0.20",
69
69
  "ant-design-vue": "^4.2.1",
70
70
  "vue": "^3.4.29"
71
71
  },