@aplus-frontend/ui 0.6.0-beta.0 → 0.6.0-beta.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.
- package/es/src/ap-form/ap-form.vue2.mjs +57 -58
- package/es/src/ap-form/interface.d.ts +4 -0
- package/es/src/ap-form/item/index.vue.mjs +33 -28
- package/es/src/ap-form/items/checkbox/index.vue.mjs +1 -0
- package/es/src/ap-form/items/date/index.vue.mjs +8 -7
- package/es/src/ap-form/items/date-range/index.vue.mjs +1 -0
- package/es/src/ap-form/items/number/index.vue.mjs +9 -8
- package/es/src/ap-form/items/radio/index.vue.mjs +1 -0
- package/es/src/ap-form/items/select/index.vue.mjs +7 -6
- package/es/src/ap-form/items/switch/index.vue.mjs +1 -0
- package/es/src/ap-form/items/text/index.vue2.mjs +8 -7
- package/es/src/ap-form/items/text/password.vue.mjs +1 -0
- package/es/src/ap-form/items/text-area/index.vue.mjs +1 -0
- package/es/src/ap-form/items/tree-select/index.vue.mjs +6 -5
- package/es/src/ap-form/render/item.vue.mjs +5 -4
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +10 -10
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +8 -8
- package/es/src/ap-form/search-form/index.vue.mjs +35 -34
- package/es/src/ap-grid/editable/form-item.vue.mjs +1 -1
- package/es/src/ap-grid/editable/index.vue.mjs +1 -1
- package/es/src/ap-grid/index.vue.mjs +24 -23
- package/es/src/ap-grid/interface.d.ts +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +91 -88
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +25 -23
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +38 -38
- package/es/src/business/batch-input-group/form-item.vue.mjs +1 -0
- package/es/src/check-card/index.vue2.mjs +1 -1
- package/es/src/design-token/index.mjs +9 -3
- package/es/src/editable-table/form-item.vue.mjs +1 -1
- package/es/src/editable-table/index.vue.mjs +27 -27
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/render/item.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/package.json +1 -1
- package/theme/ap-action/item-dropdown.css +5 -5
- package/theme/ap-action/item-dropdown.less +1 -1
- package/theme/ap-action/item.css +5 -5
- package/theme/ap-action/item.less +1 -1
- package/theme/ap-appendix/ap-appendix.css +3 -3
- package/theme/ap-attachment/ap-attachment.css +3 -3
- package/theme/ap-batch-action/ap-batch-action.css +3 -3
- package/theme/ap-button/ap-button.css +3 -3
- package/theme/ap-card/ap-card.css +3 -3
- package/theme/ap-descriptions/ap-descriptions.css +3 -3
- package/theme/ap-download/ap-download.css +3 -3
- package/theme/ap-expand-alert/ap-expand-alert.css +3 -3
- package/theme/ap-field/checkbox.css +4 -4
- package/theme/ap-field/checkbox.less +2 -1
- package/theme/ap-field/index.css +5 -5
- package/theme/ap-field/number.css +3 -3
- package/theme/ap-field/radio.css +4 -4
- package/theme/ap-field/radio.less +1 -1
- package/theme/ap-field/text-area.css +3 -3
- package/theme/ap-form/ap-form-item-group.css +3 -3
- package/theme/ap-form/ap-form-item.css +10 -8
- package/theme/ap-form/ap-form-item.less +8 -6
- package/theme/ap-form/drawer-form.css +3 -3
- package/theme/ap-form/index.css +21 -19
- package/theme/ap-form/item-text-group.css +3 -3
- package/theme/ap-form/item-text.css +3 -3
- package/theme/ap-form/modal-form.css +3 -3
- package/theme/ap-form/search-form-sorter.css +12 -12
- package/theme/ap-form/search-form-sorter.less +7 -7
- package/theme/ap-form/search-form.css +21 -19
- package/theme/ap-form/search-form.less +5 -5
- package/theme/ap-grid/editable.css +5 -5
- package/theme/ap-grid/editable.less +2 -2
- package/theme/ap-grid/index.css +44 -33
- package/theme/ap-grid/index.less +17 -8
- package/theme/ap-group-search/ap-extension-select.css +3 -3
- package/theme/ap-group-search/ap-group-search.css +3 -3
- package/theme/ap-group-search/ap-popover-select.css +3 -3
- package/theme/ap-image/ap-image.css +3 -3
- package/theme/ap-input-radio/ap-input-radio.css +3 -3
- package/theme/ap-label/ap-label.css +3 -3
- package/theme/ap-ladder/ap-ladder.css +3 -3
- package/theme/ap-layout/ap-info-layout.css +3 -3
- package/theme/ap-list/index.css +4 -4
- package/theme/ap-list/index.less +2 -1
- package/theme/ap-product-info/ap-product-info.css +3 -3
- package/theme/ap-select-layout/ap-select-layout.css +3 -3
- package/theme/ap-size-input/ap-size-input.css +3 -3
- package/theme/ap-status/ap-status.css +3 -3
- package/theme/ap-summary/index.css +3 -3
- package/theme/ap-table/ap-table-index.css +3 -3
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +3 -3
- package/theme/ap-table/ap-table.css +43 -37
- package/theme/ap-table/ap-table.less +12 -8
- package/theme/ap-table/setting/index.css +7 -7
- package/theme/ap-table/setting/modal.css +5 -5
- package/theme/ap-table/setting/select-group.css +3 -3
- package/theme/ap-table/setting/sortable-item-meta.css +3 -3
- package/theme/ap-table/setting/sortable-item.css +3 -3
- package/theme/ap-table/setting/sorter.css +5 -5
- package/theme/ap-table-modal/index.css +43 -37
- package/theme/ap-tag/ap-tag-group.css +3 -3
- package/theme/ap-tag/ap-tag.css +3 -3
- package/theme/ap-title/ap-title.css +3 -3
- package/theme/ap-upload/index.css +3 -3
- package/theme/ap-upload/multiple-file.css +3 -3
- package/theme/ap-upload/picture.css +3 -3
- package/theme/ap-upload/single-file.css +3 -3
- package/theme/ap-upload/upload.css +3 -3
- package/theme/ap-upload-single/index.css +3 -3
- package/theme/ap-view/ap-view.css +3 -3
- package/theme/batch-input-group/index.css +5 -5
- package/theme/batch-input-group/popover-input.css +3 -3
- package/theme/check-card/index.css +22 -22
- package/theme/check-card/index.less +17 -15
- package/theme/editable-table/index.css +36 -32
- package/theme/editable-table/index.less +9 -7
- package/theme/full-screen/index.css +3 -3
- package/theme/index.css +98 -81
- package/theme/mask/index.css +3 -3
- package/theme/mixins/config.less +26 -4
- package/theme/mixins/mixins.css +3 -3
- package/theme/scroll-bar/index.css +3 -3
- package/theme/scroll-view/index.css +3 -3
- package/theme/splitter/index.css +8 -8
- package/theme/text/group.css +3 -3
- package/theme/text/index.css +5 -5
- package/theme/work-order-modal/index.css +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const L=require("./icons/line-down.vue.js"),P=require("../ap-batch-action-group/index.js");require("./components/main-button-content.vue.js");require("./components/menu-list-content.vue.js");const B=require("./hooks/use-view-provide.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const L=require("./icons/line-down.vue.js"),P=require("../ap-batch-action-group/index.js");require("./components/main-button-content.vue.js");require("./components/menu-list-content.vue.js");const B=require("./hooks/use-view-provide.js"),F=require("../../ap-table/context.js"),d=require("./utils/enum.js"),G=require("@aplus-frontend/utils"),W=require("../../config-provider/hooks/use-global-config.js"),k=require("../../config-provider/hooks/use-namespace.js"),A=require("../../config-provider/hooks/use-locale.js"),j=require("./components/main-button-content.vue2.js"),z=require("./components/menu-list-content.vue2.js"),D=e.defineComponent({__name:"ap-view",props:{tableKey:{},saveDataSource:{},viewCacheOption:{},maxViewNum:{default:20}},setup(b){const f=b,g=W.useGlobalConfig("viewCacheOption"),{b:y}=k.useNamespace("ap-view"),{t:q}=A.useLocale(),p=e.computed(()=>({viewKey:d.SYSTEM_VIEW_KEY,viewName:q("ap.apView.systemView")})),{getSearchFormValues:E,setSearchFormValues:N,submit:S,reset:T}=F.useInjectApTable(),Y=e.ref(!1),V=e.ref(!1),r=e.ref("system"),x={dropdownType:"dropdown",content:e.createVNode(j.default,{maxViewNum:f.maxViewNum},null)},n=e.ref([p.value]),M=e.computed(()=>n.value.map(a=>({id:a.viewKey,content:e.createVNode(z.default,{view:a},null)}))),o={getSearchFormValues:E,setSearchFormValues:N,submit:S,reset:T,...f.saveDataSource},t={...g.value,...f.viewCacheOption},K=()=>{const a=n.value.find(s=>s.isDefault);return(a==null?void 0:a.viewKey)??d.SYSTEM_VIEW_KEY},m={getViewList:async a=>{var s;try{const{tableKey:u}=a,l=await((s=t==null?void 0:t.getViewList)==null?void 0:s.call(t,{tableKey:u}));return n.value=[p.value,...l??[]],r.value=K(),n.value}catch{return n.value=[p.value],r.value=d.SYSTEM_VIEW_KEY,n.value}},addView:async a=>{var v;const{tableKey:s,viewKey:u,viewName:l,isDefault:i,viewConfig:c}=a;await((v=t==null?void 0:t.addView)==null?void 0:v.call(t,{tableKey:s,viewKey:u,viewName:l,isDefault:i,viewConfig:c})),i&&(n.value=n.value.map(w=>({...w,isDefault:!1}))),n.value=[...n.value,{viewKey:u,viewName:l,isDefault:i,viewConfig:c}],r.value=u},changeView:async a=>{var w;const{tableKey:s,viewKey:u,viewName:l,isDefault:i,viewConfig:c}=a;await((w=t==null?void 0:t.changeView)==null?void 0:w.call(t,{tableKey:s,viewKey:u,viewName:l,isDefault:i,viewConfig:c})),i&&(n.value=n.value.map(_=>({..._,isDefault:!1})));const v=n.value.find(_=>_.viewKey===u);v&&(v.viewName=l,v.isDefault=i,v.viewConfig=c),r.value=u},removeView:async a=>{var l;const{tableKey:s,viewKey:u}=a;await((l=t==null?void 0:t.removeView)==null?void 0:l.call(t,{tableKey:s,viewKey:u})),n.value=n.value.filter(i=>i.viewKey!==u),u===r.value&&(r.value=K())}},I={tableKey:f.tableKey,currentViewKey:r,popoverOpen:Y,menuOpen:V,viewList:n,viewListCRUD:m,saveDataSource:o};return e.watch(r,a=>{const s=n.value.find(u=>u.viewKey===a);s&&setTimeout(()=>{var u,l,i,c;s.viewKey===d.SYSTEM_VIEW_KEY?(u=o.reset)==null||u.call(o):((i=o.setSearchFormValues)==null||i.call(o,((l=s.viewConfig)==null?void 0:l.searchForm)??{}),(c=o.submit)==null||c.call(o))})}),B.useViewProvide(I),e.watch(()=>f.tableKey,a=>{var s;G.isValid(a)&&((s=m==null?void 0:m.getViewList)==null||s.call(m,{tableKey:a}))},{immediate:!0}),(a,s)=>(e.openBlock(),e.createBlock(e.unref(P.ApBatchActionGroup),{open:V.value,"onUpdate:open":s[0]||(s[0]=u=>V.value=u),class:e.normalizeClass([e.unref(y)()]),"button-props":x,"menu-list":M.value,"overlay-class-name":[e.unref(y)("overlay")],trigger:"click",placement:"bottom"},{icon:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(y)("icon")])},[e.createVNode(L.default)],2)]),_:1},8,["open","class","menu-list","overlay-class-name"]))}});exports.default=D;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const y=require("../icons/line-eye.vue.js");require("../../../ap-form/ap-form.vue.js");const C=require("../../../ap-field/index.js");require("../../../ap-button/index.js");const q=require("dayjs"),b=require("../hooks/use-view-provide.js"),z=require("../utils/uuid.js"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),o=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const y=require("../icons/line-eye.vue.js");require("../../../ap-form/ap-form.vue.js");const C=require("../../../ap-field/index.js");require("../../../ap-button/index.js");const q=require("dayjs"),b=require("../hooks/use-view-provide.js"),z=require("../utils/uuid.js"),F=require("../../../config-provider/hooks/use-locale.js"),S=require("../../../config-provider/hooks/use-namespace.js"),p=require("../../../ap-form/ap-form.vue2.js"),V=require("../../../ap-button/ap-button.vue.js"),k=e.defineComponent({__name:"main-button-content",props:{maxViewNum:{}},setup(N){const u=N,{t}=F.useLocale(),{b:n}=S.useNamespace("ap-view"),f=e.ref(),{tableKey:x,popoverOpen:i,viewList:s,saveDataSource:l,viewListCRUD:d}=b.useViewInject(),m=e.computed({get:()=>i.value&&s.value.length<u.maxViewNum+1,set:r=>{s.value.length<u.maxViewNum+1&&(i.value=r)}});e.watch(i,r=>{var a;r&&((a=f.value)==null||a.resetFields())});const _=async r=>{var w,v;const{viewName:a,isDefault:c}=r,h=z.generateUniqueKey(),g={searchForm:((w=l==null?void 0:l.getSearchFormValues)==null?void 0:w.call(l))??{}};await((v=d.addView)==null?void 0:v.call(d,{tableKey:x,viewKey:h,viewName:a,isDefault:c,viewConfig:g})),i.value=!1};return(r,a)=>(e.openBlock(),e.createBlock(e.unref(o.Popover),{open:m.value,"onUpdate:open":a[1]||(a[1]=c=>m.value=c),placement:"bottom",trigger:"click",arrow:!1,"overlay-inner-style":{padding:"12px 16px"}},{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(n)("main-content-popover")])},[e.createVNode(p.default,{ref_key:"formRef",ref:f,layout:"vertical","initial-values":{isDefault:!0,viewName:`${e.unref(t)("ap.apView.newView")} ${e.unref(q)().format("YYYY-MM-DD").toString()}`},onFinish:_},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(n)("main-content-popover-title-content")])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(n)("main-content-popover-title-content-title")])},e.toDisplayString(e.unref(t)("ap.apView.saveNewView")),3),e.createVNode(p.default.FormItem,{name:"isDefault","value-prop-name":"checked"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.Checkbox),null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.setDefault")),1)]),_:1})]),_:1})],2),e.createVNode(p.default.FormItem,{label:e.unref(t)("ap.apView.viewName"),name:"viewName",rules:[{required:!0,message:e.unref(t)("ap.apView.notEmpty")}]},{default:e.withCtx(()=>[e.createVNode(e.unref(C.ApField).Text,{placeholder:e.unref(t)("ap.apView.viewName"),maxlength:20,"show-count":""},null,8,["placeholder"])]),_:1},8,["label","rules"]),e.createVNode(p.default.FormItem,{class:e.normalizeClass([e.unref(n)("main-content-popover-btn")])},{default:e.withCtx(()=>[e.createVNode(e.unref(o.Space),{size:8},{default:e.withCtx(()=>[e.createVNode(e.unref(V.default),{size:"small",onClick:a[0]||(a[0]=c=>i.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.cancel")),1)]),_:1}),e.createVNode(e.unref(V.default),{type:"primary",size:"small","html-type":"submit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.save")),1)]),_:1})]),_:1})]),_:1},8,["class"])]),_:1},8,["initial-values"])],2)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass({[e.unref(n)("main-content")]:!0,[e.unref(n)("main-content-disabled")]:e.unref(s).length>=u.maxViewNum+1})},[e.createVNode(e.unref(o.Tooltip),{placement:"bottom"},e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(o.Space),{size:4},{default:e.withCtx(()=>[e.createVNode(y.default,{class:e.normalizeClass([e.unref(n)("icon")])},null,8,["class"]),e.createElementVNode("div",null,e.toDisplayString(e.unref(t)("ap.apView.saveView")),1)]),_:1})]),_:2},[e.unref(s).length>=u.maxViewNum+1?{name:"title",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(t)("ap.apView.maxTip")),1)]),key:"0"}:void 0]),1024)],2)]),_:1},8,["open"]))}});exports.default=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const K=require("../hooks/use-view-provide.js"),y=require("../utils/enum.js"),m=require("@aplus-frontend/antdv"),M=require("../icons/line-delete.vue.js");require("../../../ap-tag/index.js");require("../../../ap-form/ap-form.vue.js");const b=require("../../../ap-field/index.js"),T=require("../../../config-provider/hooks/use-namespace.js"),z=require("../../../config-provider/hooks/use-locale.js"),I=require("../../../config-provider/hooks/use-global-config.js"),Y=require("../../../ap-tag/ap-tag.vue.js"),E=require("../../../ap-form/ap-form.vue2.js"),F={class:"menu-list-content-name"},P=["title"],j={key:0,class:"menu-list-content-default"},G={class:"menu-list-content-action-delete"},O={class:"menu-list-content-edit"},W=e.defineComponent({__name:"menu-list-content",props:{view:{}},setup(x){const{b:c}=T.useNamespace("ap-view"),{t:i}=z.useLocale(),n=x,g={aplus:"#2ed1a3",admin:"#34b77c"},S=I.useGlobalConfig("uiMode"),{currentViewKey:f,viewListCRUD:t,tableKey:s,menuOpen:v}=K.useViewInject(),l=e.ref(!1),p=e.ref(),h=()=>{f.value=n.view.viewKey,v.value=!1},q=()=>{var a;(a=t==null?void 0:t.changeView)==null||a.call(t,{...n.view,tableKey:s,isDefault:!0})},C=()=>{var a;(a=t==null?void 0:t.removeView)==null||a.call(t,{tableKey:s,viewKey:n.view.viewKey})},B=async()=>{var o,r,u;const a=await((r=(o=p.value)==null?void 0:o.validate)==null?void 0:r.call(o));(u=t==null?void 0:t.changeView)==null||u.call(t,{...n.view,tableKey:s,viewName:(a==null?void 0:a.viewName)||n.view.viewName}),l.value=!1};return e.watch(()=>v.value,a=>{a&&(l.value=!1)}),(a,o)=>{var r,u,w,_,V,N,k;return l.value===!1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({[e.unref(c)("menu-list-content")]:!0,[e.unref(c)("menu-list-content-active")]:((r=n.view)==null?void 0:r.viewKey)===e.unref(f)}),onClick:h},[e.createElementVNode("div",F,[e.createElementVNode("span",{title:(u=n.view)==null?void 0:u.viewName},e.toDisplayString((w=n.view)==null?void 0:w.viewName),9,P)]),((_=n.view)==null?void 0:_.viewKey)!==e.unref(y.SYSTEM_VIEW_KEY)&&((V=n.view)!=null&&V.isDefault)?(e.openBlock(),e.createElementBlock("div",j,[e.createVNode(e.unref(Y.default),{text:e.unref(i)("ap.apView.default"),size:"small",color:g[e.unref(S)??"aplus"]},null,8,["text","color"])])):e.createCommentVNode("",!0),((N=n.view)==null?void 0:N.viewKey)!==e.unref(y.SYSTEM_VIEW_KEY)?(e.openBlock(),e.createElementBlock("div",{key:1,class:"menu-list-content-action",onClick:o[1]||(o[1]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(e.unref(m.Space),{size:8},{default:e.withCtx(()=>{var d;return[e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:o[0]||(o[0]=$=>l.value=!0)},e.toDisplayString(e.unref(i)("ap.apView.rename")),1),(d=n.view)!=null&&d.isDefault?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"menu-list-content-action-text",onClick:q},e.toDisplayString(e.unref(i)("ap.apView.setDefault")),1)),e.createElementVNode("div",G,[e.createVNode(e.unref(m.Popconfirm),{title:e.unref(i)("ap.apView.deleteTip"),"ok-text":e.unref(i)("ap.apView.ok"),onConfirm:C},{default:e.withCtx(()=>[e.createVNode(M.default)]),_:1},8,["title","ok-text"])])]}),_:1})])):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(c)("menu-list-content"),e.unref(c)("menu-list-content-edit")])},[e.createVNode(E.default,{ref_key:"formRef",ref:p,"initial-values":{viewName:(k=n.view)==null?void 0:k.viewName}},{default:e.withCtx(()=>[e.createElementVNode("div",O,[e.createVNode(e.unref(m.Space),{size:8},{default:e.withCtx(()=>[e.createVNode(E.default.FormItem,{name:"viewName"},{default:e.withCtx(()=>[e.createVNode(e.unref(b.ApField).Text,{maxlength:20})]),_:1}),e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:B},e.toDisplayString(e.unref(i)("ap.apView.save")),1),e.createElementVNode("div",{class:"menu-list-content-action-text",onClick:o[2]||(o[2]=d=>l.value=!1)},e.toDisplayString(e.unref(i)("ap.apView.cancel")),1)]),_:1})])]),_:1},8,["initial-values"])],2))}}});exports.default=W;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue");require("./index.vue2.js");require("../../ap-form/item/index.vue2.js");const s=require("@aplus-frontend/utils"),f=require("lodash-unified"),y=require("../../ap-form/item/index.vue.js"),_=require("./index.vue.js"),b=o.defineComponent({__name:"form-item",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean,default:!1},valuePropName:{},initialValue:{},_signal:{},transform:{},description:{},field:{default:()=>({})},disabled:{type:Boolean,default:void 0},placeholer:{},trim:{type:Boolean,default:!0},defaultSelectedAllKey:{type:Boolean}},setup(p){const l=p,m=o.computed(()=>(l==null?void 0:l.transform)||{flat:!1,transformer:e=>{var u,a,i,r,n,d;if(e)return!(e!=null&&e.value)||((u=e==null?void 0:e.value)==null?void 0:u.length)<1?void 0:(a=l==null?void 0:l.field)!=null&&a.options?{...e,value:(r=(i=e==null?void 0:e.value)==null?void 0:i.filter(t=>s.isValid(t==null?void 0:t.trim())))==null?void 0:r.map(t=>l.trim?t==null?void 0:t.trim():t)}:(d=(n=e==null?void 0:e.value)==null?void 0:n.filter(t=>s.isValid(t==null?void 0:t.trim())))==null?void 0:d.map(t=>l.trim?t==null?void 0:t.trim():t)}}),c=o.computed(()=>{var e;return((e=l.field)==null?void 0:e.style)||"width:auto"}),v=o.computed(()=>{var e,u;return(l==null?void 0:l.initialValue)||{key:(u=(e=l==null?void 0:l.field)==null?void 0:e.options)==null?void 0:u.map(a=>a.value)}});return(e,u)=>{var a,i;return o.openBlock(),o.createBlock(y.default,o.mergeProps(o.unref(f.omit)(l,["field","initialValue","transform","placeholder","disabled"]),{"initial-value":v.value,transform:m.value,bordered:(i=(a=e.field)==null?void 0:a.options)!=null&&i.length?!1:e.bordered}),{default:o.withCtx(()=>[o.createVNode(_.default,o.mergeProps(o.unref(f.omit)(l.field,["style"]),{style:c.value,disabled:e.disabled,placeholer:e.placeholer}),null,16,["style","disabled","placeholer"])]),_:1},16,["initial-value","transform","bordered"])}}});exports.default=b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),S=require("@aplus-frontend/antdv");require("../config-provider/index.js");require("../hooks/index.js");const g=require("lodash-unified"),V=require("./context.js"),P=require("./checked.svg.js"),_=require("../config-provider/hooks/use-namespace.js"),q=require("../hooks/useControllableValue.js"),w=["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},indicatorSize:{default:void 0},style:{default:void 0},checked:{type:Boolean,default:void 0},"onUpdate:checked":{},defaultChecked:{type:Boolean},value:{type:[String,Number,Boolean]},title:{},content:{}},emits:["update:checked"],setup(k,{emit:h}){const o=k,{b:y,m:u,e:i,em:s}=_.useNamespace("check-card"),b=h,l=V.useInjectCheckCard(),{value:r,updateValue:p}=q.useControllableValue(o,b,{valuePropName:"checked",defaultValuePropName:"defaultChecked"}),a=e.computed(()=>{const t={...o},n=e.unref(l);return n&&(t.disabled=t.disabled||n.disabled,t.bordered=t.bordered||n.bordered,t.loading=t.loading||n.loading,t.size=t.size||n.size,t.indicatorSize=t.indicatorSize||n.indicatorSize,t.stopPropagation=t.stopPropagation||n.stopPropagation,t.style=t.style?t.style:n.style),t}),C=e.computed(()=>{const t=e.unref(a);return[y(),u(t.size),e.unref(r)?u("checked"):null,t.bordered?u("bordered"):null,t.disabled?u("disabled"):null]}),B=e.computed(()=>{const t=e.unref(a);return{...t.style||{},"--check-card-indicator-size":`${t.indicatorSize||
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),S=require("@aplus-frontend/antdv");require("../config-provider/index.js");require("../hooks/index.js");const g=require("lodash-unified"),V=require("./context.js"),P=require("./checked.svg.js"),_=require("../config-provider/hooks/use-namespace.js"),q=require("../hooks/useControllableValue.js"),w=["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},indicatorSize:{default:void 0},style:{default:void 0},checked:{type:Boolean,default:void 0},"onUpdate:checked":{},defaultChecked:{type:Boolean},value:{type:[String,Number,Boolean]},title:{},content:{}},emits:["update:checked"],setup(k,{emit:h}){const o=k,{b:y,m:u,e:i,em:s}=_.useNamespace("check-card"),b=h,l=V.useInjectCheckCard(),{value:r,updateValue:p}=q.useControllableValue(o,b,{valuePropName:"checked",defaultValuePropName:"defaultChecked"}),a=e.computed(()=>{const t={...o},n=e.unref(l);return n&&(t.disabled=t.disabled||n.disabled,t.bordered=t.bordered||n.bordered,t.loading=t.loading||n.loading,t.size=t.size||n.size,t.indicatorSize=t.indicatorSize||n.indicatorSize,t.stopPropagation=t.stopPropagation||n.stopPropagation,t.style=t.style?t.style:n.style),t}),C=e.computed(()=>{const t=e.unref(a);return[y(),u(t.size),e.unref(r)?u("checked"):null,t.bordered?u("bordered"):null,t.disabled?u("disabled"):null]}),B=e.computed(()=>{const t=e.unref(a);return{...t.style||{},"--check-card-indicator-size":`${t.indicatorSize||14}px`}}),f=e.computed(()=>{const t=o.title;if(!t)return;const n=g.isFunction(t)?t(e.unref(r)):e.createVNode(e.Fragment,null,[t]);return e.createVNode("div",{class:[i("title"),a.value.disabled?s("title","disabled"):null]},[n])}),m=e.computed(()=>{if(!o.content)return;const t=g.isFunction(o.content)?o.content(e.unref(r)):o.content;return e.createVNode("div",{class:[i("content"),a.value.disabled?s("content","disabled"):null]},[t])});function z(t){const n=e.unref(a).stopPropagation;return n?n===!0?t.target!==t.currentTarget:n(t):!1}function N(t){var n,c;z(t)||a.value.loading||a.value.disabled||(l.value?(c=(n=l.value)==null?void 0:n.toggleOption)==null||c.call(n,o.value):p(!e.unref(r)))}return e.watch(()=>l.value,t=>{if(!t)return;const n=t.multiple?(t.value||[]).includes(o.value):t.value===o.value;p(n)},{immediate:!0}),e.watchEffect(t=>{var n,c;(c=(n=l.value)==null?void 0:n.registerValue)==null||c.call(n,o.value),t(()=>{var d,v;return(v=(d=l.value)==null?void 0:d.cancelValue)==null?void 0:v.call(d,o.value)})}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle(B.value),class:e.normalizeClass(C.value),onClick:e.withModifiers(N,["stop"])},[a.value.loading?(e.openBlock(),e.createBlock(e.unref(S.Skeleton),{key:0,active:""})):e.renderSlot(t.$slots,"default",{key:1,checked:e.unref(r)},()=>[f.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(f.value),{key:0})):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.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,w)],2)):e.createCommentVNode("",!0)],6))}});exports.default=T;
|
|
@@ -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:"#F2F6F9",wireframe:!1,colorBgLayout:"#F2F6F9",colorBgSpotlight:"#000000cc",controlItemBgActive:"#F5F9FF",controlItemBgActiveHover:"#EAF2FF",colorBorderSecondary:"#E9EDF3"},
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o={borderRadius:4,fontSize:12,sizeStep:4,lineHeight:1.5,lineHeightSM:1.6,wireframe:!1,sizeUnit:3},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:"#F2F6F9",wireframe:!1,colorBgLayout:"#F2F6F9",colorBgSpotlight:"#000000cc",controlItemBgActive:"#F5F9FF",controlItemBgActiveHover:"#EAF2FF",colorBorderSecondary:"#E9EDF3"},e={...o,colorPrimary:"#34B77C",colorPrimaryHover:"#85D4B0",colorPrimaryActive:"#5DC596",colorBgContainerDisabled:"#f5f5f5",colorTextBase:"#333333",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=e;exports.aplusToken=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),E=require("@aplus-frontend/antdv"),p=require("../ap-form/index.js"),d=require("lodash-unified");require("../config-provider/index.js");const P=require("../ap-form/context.js"),h=require("../utils/index.js"),j=require("./hooks/use-get-columns.js"),A=require("./utils.js"),O=require("../config-provider/hooks/use-namespace.js"),z=require("../config-provider/hooks/use-global-config.js"),G=t.defineComponent({name:"EditableTableInner",__name:"form-item",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),E=require("@aplus-frontend/antdv"),p=require("../ap-form/index.js"),d=require("lodash-unified");require("../config-provider/index.js");const P=require("../ap-form/context.js"),h=require("../utils/index.js"),j=require("./hooks/use-get-columns.js"),A=require("./utils.js"),O=require("../config-provider/hooks/use-namespace.js"),z=require("../config-provider/hooks/use-global-config.js"),G=t.defineComponent({name:"EditableTableInner",__name:"form-item",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"small"},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(g,{expose:x}){const n=g;function b(e,a){return d.isArray(a)?a.reduce((l,o)=>l==null?void 0:l[o],e):e==null?void 0:e[a]}const{internalInstance:u,model:w}=P.useInjectForm(),i=t.ref(b(t.unref(w),n.name)||[]),C=t.useSlots(),y=t.toRef(n,"name"),R=p.ApForm.useWatch(y);t.watch(()=>R.value,async e=>{var a;await t.nextTick(),i.value=e,(a=n.onChange)==null||a.call(n,e)},{deep:!0});const{b:B}=O.useNamespace("editable-table"),m=t.ref(),F=z.useGlobalConfig("valueTypeMap"),T=j.default(n,F);function q(e,a){var s;const l=((s=t.unref(i))==null?void 0:s.length)||0;if(h.isDef(n.maxLength)&&l>=n.maxLength)return;const o={...e||{}};u==null||u.setFieldValue(n.name,o,!0,(r,f)=>{if(!r[f]){r[f]=[o];return}d.isUndefined(a)?r[f].push(o):r[f].splice(a,0,o)})}function v(e,a="suffix"){var r;const l=((r=t.unref(i))==null?void 0:r.length)||0,o=d.isNumber(e)?e:e.length;if(h.isDef(n.maxLength)&&l+o>n.maxLength)return;const s=d.isNumber(e)?new Array(e).fill(0).map(()=>({})):d.cloneDeep(e);u==null||u.setFieldValue(n.name,s,!0,(f,c)=>{if(!f[c]){f[c]=[...s];return}a==="suffix"?f[c].push(...s):f[c].unshift(...s)})}function D(e){const a=new Set(d.isNumber(e)?[e]:e);u==null||u.setFieldValue(n.name,void 0,!0,(l,o)=>{l[o]=l[o].filter((s,r)=>!a.has(r))})}function N(){return t.unref(i)}function S(e){var a;return(a=t.unref(i))==null?void 0:a[e]}function L(e,a,l=!0){u==null||u.setFieldValue(n.name,void 0,!0,(o,s)=>{!o[s]||!o[s][e]||(o[s][e]={...l?o[s][e]:{},...a})})}function V(e){u==null||u.setFieldValue(n.name,e)}function _(e,a){var o;const l=e==="end"?i.value.length-1:e;A.scrollToRowIndex(l,(o=m.value)==null?void 0:o.$el,a)}function k(){var e;(e=u==null?void 0:u.setFieldValue)==null||e.call(u,n.name,[])}return x({add:q,remove:D,getRowData:S,getRowsData:N,setRowData:L,addMultiple:v,scrollTo:_,setTableData:V,clear:k}),(e,a)=>(t.openBlock(),t.createBlock(t.unref(p.ApForm).FormItem,t.mergeProps(e.formItem,{name:e.name,label:e.label}),{default:t.withCtx(()=>[t.createVNode(t.unref(E.Table),t.mergeProps(t.unref(d.omit)(n,["name","maxLength","onChange"]),{ref_key:"tableRef",ref:m,class:t.unref(B)(),columns:t.unref(T),"data-source":i.value}),t.createSlots({_:2},[t.renderList(t.unref(d.omit)(C,["headerCell"]),(l,o)=>({name:o,fn:t.withCtx(s=>[t.renderSlot(e.$slots,o,t.normalizeProps(t.guardReactiveProps(s||{})))])}))]),1040,["class","columns","data-source"])]),_:3},16,["name","label"]))}});exports.default=G;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),O=require("@aplus-frontend/antdv"),x=require("../ap-form/index.js"),d=require("lodash-unified");require("../config-provider/index.js");require("../hooks/index.js");const v=require("../utils/index.js"),z=require("./utils.js"),U=require("./hooks/use-get-columns.js"),G=require("../config-provider/hooks/use-namespace.js"),K=require("../hooks/useControllableValue.js"),$=require("../config-provider/hooks/use-global-config.js"),H=n.defineComponent({name:"EditableTable",__name:"index",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),O=require("@aplus-frontend/antdv"),x=require("../ap-form/index.js"),d=require("lodash-unified");require("../config-provider/index.js");require("../hooks/index.js");const v=require("../utils/index.js"),z=require("./utils.js"),U=require("./hooks/use-get-columns.js"),G=require("../config-provider/hooks/use-namespace.js"),K=require("../hooks/useControllableValue.js"),$=require("../config-provider/hooks/use-global-config.js"),H=n.defineComponent({name:"EditableTable",__name:"index",props:{dropdownPrefixCls:{},pagination:{type:[Boolean,Object],default:!1},loading:{type:[Boolean,Object],default:void 0},size:{default:"small"},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(w,{expose:C,emit:b}){const l=w,{b:y}=G.useNamespace("editable-table"),R=n.useSlots(),F=b,g=n.ref(),{value:p,updateValue:q}=K.useControllableValue(l,F),i=n.ref(),B=$.useGlobalConfig("valueTypeMap"),h=x.ApForm.useWatch(l.name,i);n.watch(()=>h.value,e=>{var t;q(e),(t=l.onChange)==null||t.call(l,e)},{deep:!0,flush:"post"}),n.watch(p,e=>{var t;e!==n.unref(h)&&(d.isEqual(e,n.unref(h))||(t=i.value)==null||t.setFieldValue(l.name,e))},{deep:!0});const V=U.default(l,B);function N(){var e;(e=i.value)==null||e.resetFields()}function T(e){return e?(d.isArray(e)?e:[e]).map(o=>d.isArray(o)?[l.name,...o]:[l.name,o]):void 0}async function _(e,t){var a;const o=await((a=i.value)==null?void 0:a.validateFields(T(e),t));return o==null?void 0:o[l.name]}function S(e,t){var u,r,s;const o=((u=n.unref(p))==null?void 0:u.length)||0;if(v.isDef(l.maxLength)&&o>=l.maxLength)return;const a={...e||{}};(s=(r=i.value)==null?void 0:r.setFieldValue)==null||s.call(r,l.name,a,!0,(f,c)=>{if(!f[c]){f[c]=[a];return}d.isUndefined(t)?f[c].push(a):f[c].splice(t,0,a)})}function A(e,t="suffix"){var r,s,f;const o=((r=n.unref(p))==null?void 0:r.length)||0,a=d.isNumber(e)?e:e.length;if(v.isDef(l.maxLength)&&o+a>l.maxLength)return;const u=d.isNumber(e)?new Array(e).fill(0).map(()=>({})):d.cloneDeep(e);(f=(s=i.value)==null?void 0:s.setFieldValue)==null||f.call(s,l.name,u,!0,(c,m)=>{if(!c[m]){c[m]=[...u];return}t==="suffix"?c[m].push(...u):c[m].unshift(...u)})}function D(e){var o,a;const t=new Set(d.isNumber(e)?[e]:e);(a=(o=i.value)==null?void 0:o.setFieldValue)==null||a.call(o,l.name,void 0,!0,(u,r)=>{u[r]=u[r].filter((s,f)=>!t.has(f))})}function L(){return n.unref(p)}function E(e){var t;(t=i.value)==null||t.setFieldValue(l.name,e)}function k(e){var t;return(t=n.unref(p))==null?void 0:t[e]}function P(e,t,o=!0){var a,u;(u=(a=i.value)==null?void 0:a.setFieldValue)==null||u.call(a,l.name,void 0,!0,(r,s)=>{!r[s]||!r[s][e]||(r[s][e]={...o?r[s][e]:{},...t})})}function j(e,t){var a;const o=e==="end"?p.value.length-1:e;z.scrollToRowIndex(o,(a=g.value)==null?void 0:a.$el,t)}function I(){var e,t;(t=(e=i.value)==null?void 0:e.setFieldValue)==null||t.call(e,l.name,[])}return C({resetFields:N,validateFields:_,add:S,remove:D,getRowData:k,getRowsData:L,setRowData:P,addMultiple:A,scrollTo:j,clear:I,setTableData:E}),(e,t)=>(n.openBlock(),n.createBlock(n.unref(x.ApForm),{ref_key:"formRef",ref:i,"initial-values":{[l.name]:n.unref(p)}},{default:n.withCtx(()=>[n.createVNode(n.unref(x.ApForm).FormItem,{name:e.name,"no-style":""},{default:n.withCtx(()=>[n.createVNode(n.unref(O.Table),n.mergeProps(n.unref(d.omit)(l,["name","value","onUpdate:value","maxLength","onChange"]),{ref_key:"tableRef",ref:g,class:n.unref(y)(),columns:n.unref(V),"data-source":n.unref(p)}),n.createSlots({_:2},[n.renderList(n.unref(d.omit)(R,["headerCell"]),(o,a)=>({name:a,fn:n.withCtx(u=>[n.renderSlot(e.$slots,a,n.normalizeProps(n.guardReactiveProps(u||{})))])}))]),1040,["class","columns","data-source"])]),_:3},8,["name"])]),_:3},8,["initial-values"]))}});exports.default=H;
|
package/package.json
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
.aplus-action-item-dropdown__icon {
|
|
38
38
|
color: #0070ff;
|
|
39
|
-
margin-left:
|
|
40
|
-
font-size:
|
|
39
|
+
margin-left: 2px;
|
|
40
|
+
font-size: 12px;
|
|
41
41
|
display: inline-flex;
|
|
42
42
|
}
|
package/theme/ap-action/item.css
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
margin: 0;
|
|
32
32
|
padding: 0;
|
|
33
33
|
color: rgba(0 0 0 / 85%);
|
|
34
|
-
font-size:
|
|
34
|
+
font-size: 12px;
|
|
35
35
|
font-family: inherit;
|
|
36
|
-
line-height:
|
|
36
|
+
line-height: 1.5;
|
|
37
37
|
list-style: none;
|
|
38
38
|
display: inline-block;
|
|
39
39
|
cursor: pointer;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
}
|
|
32
32
|
.aplus-field-checkbox--vertical label.ant-checkbox-wrapper:not(:last-child) {
|
|
33
33
|
display: flex;
|
|
34
|
-
margin-block-end:
|
|
34
|
+
margin-block-end: 12px;
|
|
35
35
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
@import '../mixins/mixins.less';
|
|
2
|
+
@import '../mixins/config.less';
|
|
2
3
|
|
|
3
4
|
.b(field-checkbox, {
|
|
4
5
|
&--vertical {
|
|
5
6
|
display: inline-block;
|
|
6
7
|
label.ant-checkbox-wrapper:not(:last-child) {
|
|
7
8
|
display: flex;
|
|
8
|
-
margin-block-end:
|
|
9
|
+
margin-block-end: @spacing-lg;
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
});
|
package/theme/ap-field/index.css
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
.aplus-field-checkbox--vertical label.ant-checkbox-wrapper:not(:last-child) {
|
|
33
33
|
display: flex;
|
|
34
|
-
margin-block-end:
|
|
34
|
+
margin-block-end: 12px;
|
|
35
35
|
}
|
|
36
36
|
.aplus-field-number-label-left {
|
|
37
37
|
padding-right: 4px;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
}
|
|
42
42
|
.aplus-field-radio--vertical label.ant-radio-wrapper:not(:last-child) {
|
|
43
43
|
display: flex;
|
|
44
|
-
margin-block-end:
|
|
44
|
+
margin-block-end: 12px;
|
|
45
45
|
}
|
|
46
46
|
.aplus-field-text-area {
|
|
47
47
|
white-space: pre-wrap;
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
package/theme/ap-field/radio.css
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
}
|
|
29
29
|
.aplus-field-radio--vertical label.ant-radio-wrapper:not(:last-child) {
|
|
30
30
|
display: flex;
|
|
31
|
-
margin-block-end:
|
|
31
|
+
margin-block-end: 12px;
|
|
32
32
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
color: rgba(0 0 0 / 85%);
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: 12px;
|
|
7
7
|
font-family: inherit;
|
|
8
|
-
line-height:
|
|
8
|
+
line-height: 1.5;
|
|
9
9
|
list-style: none;
|
|
10
10
|
}
|
|
11
11
|
.clear-fix::before {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
}
|
|
20
20
|
.common-style {
|
|
21
21
|
box-sizing: border-box;
|
|
22
|
-
font-size:
|
|
22
|
+
font-size: 12px;
|
|
23
23
|
font-family: inherit;
|
|
24
24
|
}
|
|
25
25
|
.common-style::before,
|