@aplus-frontend/ui 0.6.0-beta.4 → 0.6.0-beta.6
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-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/helper.mjs +12 -12
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-form/item/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/es/src/ap-form/render/item.vue.d.ts +1 -1
- package/es/src/ap-grid/index.vue.mjs +37 -35
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +20 -18
- package/es/src/ap-table/constants.d.ts +30 -30
- package/es/src/ap-table/utils.d.ts +14 -14
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +25 -25
- package/es/src/business/ap-expand-alert/index.d.ts +4 -4
- package/es/src/business/ap-label/ApLabel.d.ts +1 -1
- package/es/src/business/ap-label/index.d.ts +3 -3
- package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/es/src/business/ap-ladder/index.d.ts +3 -3
- package/es/src/business/ap-view/ap-view.vue2.mjs +60 -58
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/check-card/group.vue.d.ts +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +0 -5
- package/es/src/config-provider/config-provider-props.mjs +0 -4
- package/es/src/config-provider/config-provider.d.ts +0 -138
- package/es/src/config-provider/config-provider.mjs +21 -26
- package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/es/src/config-provider/index.d.ts +0 -652
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/helper.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-form/item/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/render/item.vue.d.ts +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +30 -30
- package/lib/src/ap-table/utils.d.ts +14 -14
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
- package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
- package/lib/src/business/ap-label/index.d.ts +3 -3
- package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +3 -3
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/check-card/group.vue.d.ts +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +0 -5
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +0 -138
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/lib/src/config-provider/index.d.ts +0 -652
- package/package.json +3 -3
- package/theme/antd-global-overwrite/admin/index.css +3 -0
- package/theme/antd-global-overwrite/admin/index.less +1 -0
- package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
- package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
- package/theme/antd-global-overwrite/aplus/index.css +3 -0
- package/theme/antd-global-overwrite/aplus/index.less +1 -0
- package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
- package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
- package/theme/ap-action/item-dropdown.css +17 -0
- package/theme/ap-action/item.css +17 -0
- package/theme/ap-appendix/ap-appendix.css +17 -0
- package/theme/ap-attachment/ap-attachment.css +17 -0
- package/theme/ap-batch-action/ap-batch-action.css +17 -0
- package/theme/ap-button/ap-button.css +17 -0
- package/theme/ap-card/ap-card.css +17 -0
- package/theme/ap-descriptions/ap-descriptions.css +17 -0
- package/theme/ap-download/ap-download.css +17 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +17 -0
- package/theme/ap-field/checkbox.css +17 -0
- package/theme/ap-field/index.css +17 -0
- package/theme/ap-field/number.css +17 -0
- package/theme/ap-field/radio.css +17 -0
- package/theme/ap-field/text-area.css +17 -0
- package/theme/ap-form/ap-form-item-group.css +17 -0
- package/theme/ap-form/ap-form-item.css +22 -2
- package/theme/ap-form/ap-form-item.less +9 -3
- package/theme/ap-form/drawer-form.css +17 -0
- package/theme/ap-form/index.css +22 -2
- package/theme/ap-form/item-text-group.css +17 -0
- package/theme/ap-form/item-text.css +17 -0
- package/theme/ap-form/modal-form.css +17 -0
- package/theme/ap-form/search-form-sorter.css +17 -0
- package/theme/ap-form/search-form.css +22 -2
- package/theme/ap-grid/editable.css +17 -0
- package/theme/ap-grid/index.css +39 -2
- package/theme/ap-grid/index.less +1 -0
- package/theme/ap-group-search/ap-extension-select.css +17 -0
- package/theme/ap-group-search/ap-group-search.css +17 -0
- package/theme/ap-group-search/ap-popover-select.css +17 -0
- package/theme/ap-image/ap-image.css +17 -0
- package/theme/ap-input-radio/ap-input-radio.css +17 -0
- package/theme/ap-label/ap-label.css +17 -0
- package/theme/ap-ladder/ap-ladder.css +17 -0
- package/theme/ap-layout/ap-info-layout.css +17 -0
- package/theme/ap-list/index.css +17 -0
- package/theme/ap-product-info/ap-product-info.css +17 -0
- package/theme/ap-select-layout/ap-select-layout.css +17 -0
- package/theme/ap-size-input/ap-size-input.css +17 -0
- package/theme/ap-status/ap-status.css +17 -0
- package/theme/ap-summary/index.css +17 -0
- package/theme/ap-table/ap-table-index.css +17 -0
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +17 -0
- package/theme/ap-table/ap-table.css +39 -2
- package/theme/ap-table/ap-table.less +1 -0
- package/theme/ap-table/setting/index.css +17 -0
- package/theme/ap-table/setting/modal.css +17 -0
- package/theme/ap-table/setting/select-group.css +17 -0
- package/theme/ap-table/setting/sortable-item-meta.css +17 -0
- package/theme/ap-table/setting/sortable-item.css +17 -0
- package/theme/ap-table/setting/sorter.css +17 -0
- package/theme/ap-table-modal/index.css +39 -2
- package/theme/ap-tag/ap-tag-group.css +17 -0
- package/theme/ap-tag/ap-tag.css +17 -0
- package/theme/ap-title/ap-title.css +17 -0
- package/theme/ap-upload/index.css +17 -0
- package/theme/ap-upload/multiple-file.css +17 -0
- package/theme/ap-upload/picture.css +17 -0
- package/theme/ap-upload/single-file.css +17 -0
- package/theme/ap-upload/upload.css +17 -0
- package/theme/ap-upload-single/index.css +17 -0
- package/theme/ap-view/ap-view.css +17 -0
- package/theme/batch-input-group/index.css +17 -0
- package/theme/batch-input-group/popover-input.css +17 -0
- package/theme/check-card/index.css +17 -0
- package/theme/editable-table/index.css +22 -2
- package/theme/full-screen/index.css +17 -0
- package/theme/index.css +148 -2
- package/theme/index.less +1 -0
- package/theme/mask/index.css +17 -0
- package/theme/mixins/mixins.css +17 -0
- package/theme/mixins/mixins.less +28 -0
- package/theme/scroll-bar/index.css +17 -0
- package/theme/scroll-view/index.css +17 -0
- package/theme/splitter/index.css +17 -0
- package/theme/text/group.css +17 -0
- package/theme/text/index.css +17 -0
- package/theme/ui-mode.css +92 -0
- package/theme/ui-mode.less +93 -0
- package/theme/work-order-modal/index.css +17 -0
- package/es/src/config-provider/css-var.d.ts +0 -139
- package/es/src/config-provider/css-var.mjs +0 -278
- package/lib/src/config-provider/css-var.d.ts +0 -139
- package/lib/src/config-provider/css-var.js +0 -1
|
@@ -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 t=require("vue");require("../../config-provider/index.js");const L=require("./icons/line-down.vue.js"),A=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"),y=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"),j=require("../../config-provider/hooks/use-locale.js"),D=require("./components/main-button-content.vue2.js"),z=require("./components/menu-list-content.vue2.js"),$=t.defineComponent({name:"ApView",__name:"ap-view",props:{tableKey:{},saveDataSource:{},viewCacheOption:{},maxViewNum:{default:20}},setup(g){const f=g,q=W.useGlobalConfig("viewCacheOption"),{b:p}=k.useNamespace("ap-view"),{t:E}=j.useLocale(),V=t.computed(()=>({viewKey:y.SYSTEM_VIEW_KEY,viewName:E("ap.apView.systemView")})),{getSearchFormValues:N,setSearchFormValues:S,submit:T,reset:Y}=F.useInjectApTable(),x=t.ref(!1),_=t.ref(!1),w=t.ref(""),M={dropdownType:"dropdown",content:t.createVNode(D.default,{maxViewNum:f.maxViewNum},null)},n=t.ref([V.value]),P=t.computed(()=>n.value.map(e=>({id:e.viewKey,content:t.createVNode(z.default,{view:e},null)}))),l={getSearchFormValues:N,setSearchFormValues:S,submit:T,reset:Y,...f.saveDataSource},a={...q.value,...f.viewCacheOption},b=()=>{const e=n.value.find(s=>s.isDefault);return(e==null?void 0:e.viewKey)??y.SYSTEM_VIEW_KEY},m=e=>{w.value=e;const s=n.value.find(u=>u.viewKey===w.value);s&&setTimeout(()=>{var u,r,i,o;s.viewKey===y.SYSTEM_VIEW_KEY?(u=l.reset)==null||u.call(l):((i=l.setSearchFormValues)==null||i.call(l,((r=s.viewConfig)==null?void 0:r.searchForm)??{}),(o=l.submit)==null||o.call(l))})},v={getViewList:async e=>{var s;try{const{tableKey:u}=e,r=await((s=a==null?void 0:a.getViewList)==null?void 0:s.call(a,{tableKey:u}));return n.value=[V.value,...r??[]],m(b()),n.value}catch{return n.value=[V.value],m(y.SYSTEM_VIEW_KEY),n.value}},addView:async e=>{var c;const{tableKey:s,viewKey:u,viewName:r,isDefault:i,viewConfig:o}=e;await((c=a==null?void 0:a.addView)==null?void 0:c.call(a,{tableKey:s,viewKey:u,viewName:r,isDefault:i,viewConfig:o})),i&&(n.value=n.value.map(d=>({...d,isDefault:!1}))),n.value=[...n.value,{viewKey:u,viewName:r,isDefault:i,viewConfig:o}],m(u)},changeView:async e=>{var d;const{tableKey:s,viewKey:u,viewName:r,isDefault:i,viewConfig:o}=e;await((d=a==null?void 0:a.changeView)==null?void 0:d.call(a,{tableKey:s,viewKey:u,viewName:r,isDefault:i,viewConfig:o})),i&&(n.value=n.value.map(K=>({...K,isDefault:!1})));const c=n.value.find(K=>K.viewKey===u);c&&(c.viewName=r,c.isDefault=i,c.viewConfig=o),m(u)},removeView:async e=>{var r;const{tableKey:s,viewKey:u}=e;await((r=a==null?void 0:a.removeView)==null?void 0:r.call(a,{tableKey:s,viewKey:u})),n.value=n.value.filter(i=>i.viewKey!==u),u===w.value&&m(b())}},I={tableKey:f.tableKey,currentViewKey:w,changeCurrentViewKey:m,popoverOpen:x,menuOpen:_,viewList:n,viewListCRUD:v,saveDataSource:l};return B.useViewProvide(I),t.watch(()=>f.tableKey,e=>{var s;G.isValid(e)&&((s=v==null?void 0:v.getViewList)==null||s.call(v,{tableKey:e}))},{immediate:!0}),(e,s)=>(t.openBlock(),t.createBlock(t.unref(A.ApBatchActionGroup),t.mergeProps({...e.$attrs},{open:_.value,"onUpdate:open":s[0]||(s[0]=u=>_.value=u),class:[t.unref(p)()],"button-props":M,"menu-list":P.value,"overlay-class-name":[t.unref(p)("overlay")],trigger:"click",placement:"bottom"}),{icon:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass([t.unref(p)("icon")])},[t.createVNode(L.default)],2)]),_:1},16,["open","class","menu-list","overlay-class-name"]))}});exports.default=$;
|
|
@@ -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 M=require("../hooks/use-view-provide.js"),k=require("../utils/enum.js"),m=require("@aplus-frontend/antdv"),b=require("../icons/line-delete.vue.js");require("../../../ap-tag/index.js");require("../../../ap-form/ap-form.vue.js");const T=require("../../../ap-field/index.js"),z=require("../../../config-provider/hooks/use-namespace.js"),I=require("../../../config-provider/hooks/use-locale.js"),Y=require("../../../config-provider/hooks/use-global-config.js"),F=require("../../../ap-tag/ap-tag.vue.js"),y=require("../../../ap-form/ap-form.vue2.js"),P={class:"menu-list-content-name"},j=["title"],G={key:0,class:"menu-list-content-default"},O={class:"menu-list-content-action-delete"},W={class:"menu-list-content-edit"},$=e.defineComponent({__name:"menu-list-content",props:{view:{}},setup(E){const{b:u}=z.useNamespace("ap-view"),{t:i}=I.useLocale(),n=E,g={aplus:"#2ed1a3",admin:"#34b77c"},x=Y.useGlobalConfig("uiMode"),{currentViewKey:S,changeCurrentViewKey:h,viewListCRUD:t,tableKey:s,menuOpen:f}=M.useViewInject(),l=e.ref(!1),v=e.ref(),q=()=>{h(n.view.viewKey),f.value=!1},C=()=>{var a;(a=t==null?void 0:t.changeView)==null||a.call(t,{...n.view,tableKey:s,isDefault:!0})},K=()=>{var a;(a=t==null?void 0:t.removeView)==null||a.call(t,{tableKey:s,viewKey:n.view.viewKey})},B=async()=>{var o,r,c;const a=await((r=(o=v.value)==null?void 0:o.validate)==null?void 0:r.call(o));(c=t==null?void 0:t.changeView)==null||c.call(t,{...n.view,tableKey:s,viewName:(a==null?void 0:a.viewName)||n.view.viewName}),l.value=!1};return e.watch(()=>f.value,a=>{a&&(l.value=!1)}),(a,o)=>{var r,c,p,w,_,V,N;return l.value===!1?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({[e.unref(u)("menu-list-content")]:!0,[e.unref(u)("menu-list-content-active")]:((r=n.view)==null?void 0:r.viewKey)===e.unref(S)}),onClick:q},[e.createElementVNode("div",P,[e.createElementVNode("span",{title:(c=n.view)==null?void 0:c.viewName},e.toDisplayString((p=n.view)==null?void 0:p.viewName),9,j)]),((w=n.view)==null?void 0:w.viewKey)!==e.unref(k.SYSTEM_VIEW_KEY)&&((_=n.view)!=null&&_.isDefault)?(e.openBlock(),e.createElementBlock("div",G,[e.createVNode(e.unref(F.default),{text:e.unref(i)("ap.apView.default"),size:"small",color:g[e.unref(x)??"aplus"]},null,8,["text","color"])])):e.createCommentVNode("",!0),((V=n.view)==null?void 0:V.viewKey)!==e.unref(k.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]=A=>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:C},e.toDisplayString(e.unref(i)("ap.apView.setDefault")),1)),e.createElementVNode("div",O,[e.createVNode(e.unref(m.Popconfirm),{title:e.unref(i)("ap.apView.deleteTip"),"ok-text":e.unref(i)("ap.apView.ok"),onConfirm:K},{default:e.withCtx(()=>[e.createVNode(b.default)]),_:1},8,["title","ok-text"])])]}),_:1})])):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([e.unref(u)("menu-list-content"),e.unref(u)("menu-list-content-edit")])},[e.createVNode(y.default,{ref_key:"formRef",ref:v,"initial-values":{viewName:(N=n.view)==null?void 0:N.viewName}},{default:e.withCtx(()=>[e.createElementVNode("div",W,[e.createVNode(e.unref(m.Space),{size:8},{default:e.withCtx(()=>[e.createVNode(y.default.FormItem,{name:"viewName"},{default:e.withCtx(()=>[e.createVNode(e.unref(T.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=$;
|
|
@@ -3,6 +3,7 @@ import { SaveDataSource, ViewCacheOption, ViewListModel } from '../interface';
|
|
|
3
3
|
type DataModel = {
|
|
4
4
|
tableKey: string;
|
|
5
5
|
currentViewKey: Ref<string>;
|
|
6
|
+
changeCurrentViewKey: (key: string) => void;
|
|
6
7
|
popoverOpen: Ref<boolean>;
|
|
7
8
|
menuOpen: Ref<boolean>;
|
|
8
9
|
viewList: Ref<ViewListModel[]>;
|
|
@@ -3,12 +3,12 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
declare const _default: DefineComponent<ApFormItemBatchInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemBatchInputProps> & Readonly<{}>, {
|
|
4
4
|
trim: boolean;
|
|
5
5
|
disabled: boolean;
|
|
6
|
-
bordered: boolean;
|
|
7
6
|
hasFeedback: boolean;
|
|
8
7
|
colon: boolean;
|
|
9
8
|
autoLink: boolean;
|
|
10
9
|
required: boolean;
|
|
11
10
|
validateFirst: boolean;
|
|
11
|
+
bordered: boolean;
|
|
12
12
|
field: Omit< BatchInputGroupProps, "value" | "onUpdate:value">;
|
|
13
13
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
export default _default;
|
|
@@ -43,12 +43,12 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
43
43
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
44
44
|
readonly value?: string | number | undefined;
|
|
45
45
|
readonly disabled?: boolean | undefined;
|
|
46
|
-
readonly bordered?: boolean | undefined;
|
|
47
46
|
readonly prefixCls?: string | undefined;
|
|
48
47
|
readonly name?: string | undefined;
|
|
49
48
|
readonly loading?: boolean | undefined;
|
|
50
49
|
readonly autofocus?: boolean | undefined;
|
|
51
50
|
readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
51
|
+
readonly bordered?: boolean | undefined;
|
|
52
52
|
readonly suffix?: any;
|
|
53
53
|
readonly focused?: boolean | undefined;
|
|
54
54
|
readonly placeholder?: string | number | undefined;
|
|
@@ -19,8 +19,8 @@ declare const __VLS_component: DefineComponent<CheckCardGroupProps, {}, {}, {},
|
|
|
19
19
|
value: CheckCardValueType | CheckCardValueType[];
|
|
20
20
|
multiple: boolean;
|
|
21
21
|
disabled: boolean;
|
|
22
|
-
bordered: boolean;
|
|
23
22
|
loading: boolean;
|
|
23
|
+
bordered: boolean;
|
|
24
24
|
defaultValue: CheckCardValueType | CheckCardValueType[];
|
|
25
25
|
stopPropagation: boolean | ((event: MouseEvent) => boolean);
|
|
26
26
|
indicatorSize: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { LocaleType } from '../locale/interface';
|
|
3
3
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
|
|
4
|
-
import { CssVarType } from './css-var';
|
|
5
4
|
import { ViewCacheOption } from '../business';
|
|
6
5
|
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
7
6
|
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
@@ -156,10 +155,6 @@ export declare const configProviderProps: () => {
|
|
|
156
155
|
type: PropType<downloadCenterTriggerConfig>;
|
|
157
156
|
default: () => {};
|
|
158
157
|
};
|
|
159
|
-
cssVar: {
|
|
160
|
-
type: PropType<CssVarType>;
|
|
161
|
-
default: () => {};
|
|
162
|
-
};
|
|
163
158
|
exportField: {
|
|
164
159
|
type: PropType<ExportField>;
|
|
165
160
|
default: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/antdv/es/config-provider/context"),t=()=>({aplusLocale:{type:Object},namespace:{type:String},api:{type:Object,default:()=>({})},uiMode:{type:String},apUpload:{type:Object,default:()=>({})},apDescriptions:{type:Object,default:()=>({})},valueTypeMap:{type:Object,default:()=>({})},downloadCenterTriggerConfig:{type:Object,default:()=>({})},
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/antdv/es/config-provider/context"),t=()=>({aplusLocale:{type:Object},namespace:{type:String},api:{type:Object,default:()=>({})},uiMode:{type:String},apUpload:{type:Object,default:()=>({})},apDescriptions:{type:Object,default:()=>({})},valueTypeMap:{type:Object,default:()=>({})},downloadCenterTriggerConfig:{type:Object,default:()=>({})},exportField:{type:[Object,Boolean],default:!1},scrollYDomName:{type:String},viewCacheOption:{type:Object,default:()=>({})},...e.configProviderProps()});exports.configProviderProps=t;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Ref, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { ConfigProviderProps } from './config-provider-props';
|
|
3
|
-
import { CssVarType } from './css-var';
|
|
4
3
|
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
5
4
|
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
6
5
|
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
@@ -12,7 +11,6 @@ import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
|
12
11
|
import { LocaleType } from '../locale';
|
|
13
12
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
|
|
14
13
|
import { ViewCacheOption } from '..';
|
|
15
|
-
import { RecursivePartial } from '../type';
|
|
16
14
|
export declare const globalConfigCached: Ref<ConfigProviderProps>;
|
|
17
15
|
export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
18
16
|
iconPrefixCls: StringConstructor;
|
|
@@ -156,10 +154,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
156
154
|
type: PropType<downloadCenterTriggerConfig>;
|
|
157
155
|
default: () => {};
|
|
158
156
|
};
|
|
159
|
-
cssVar: {
|
|
160
|
-
type: PropType<CssVarType>;
|
|
161
|
-
default: () => {};
|
|
162
|
-
};
|
|
163
157
|
exportField: {
|
|
164
158
|
type: PropType<ExportField>;
|
|
165
159
|
default: boolean;
|
|
@@ -313,10 +307,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
313
307
|
type: PropType<downloadCenterTriggerConfig>;
|
|
314
308
|
default: () => {};
|
|
315
309
|
};
|
|
316
|
-
cssVar: {
|
|
317
|
-
type: PropType<CssVarType>;
|
|
318
|
-
default: () => {};
|
|
319
|
-
};
|
|
320
310
|
exportField: {
|
|
321
311
|
type: PropType<ExportField>;
|
|
322
312
|
default: boolean;
|
|
@@ -365,134 +355,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
365
355
|
apDescriptions: ApDescriptionsConfig;
|
|
366
356
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
367
357
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
368
|
-
cssVar: RecursivePartial<{
|
|
369
|
-
'ap-form': {
|
|
370
|
-
bordered: {
|
|
371
|
-
'border-color': {
|
|
372
|
-
base: string;
|
|
373
|
-
hover: string;
|
|
374
|
-
active: string;
|
|
375
|
-
};
|
|
376
|
-
'shadow-color': string;
|
|
377
|
-
};
|
|
378
|
-
};
|
|
379
|
-
'ap-action': {
|
|
380
|
-
color: {
|
|
381
|
-
primary: {
|
|
382
|
-
base: string;
|
|
383
|
-
hover: string;
|
|
384
|
-
};
|
|
385
|
-
success: string;
|
|
386
|
-
error: string;
|
|
387
|
-
warn: string;
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
'check-card': {
|
|
391
|
-
outline: {
|
|
392
|
-
color: string;
|
|
393
|
-
};
|
|
394
|
-
hover: {
|
|
395
|
-
outline: {
|
|
396
|
-
color: string;
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
checked: {
|
|
400
|
-
outline: {
|
|
401
|
-
color: string;
|
|
402
|
-
};
|
|
403
|
-
bg: string;
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
'ap-table': {
|
|
407
|
-
header: {
|
|
408
|
-
bg: string;
|
|
409
|
-
};
|
|
410
|
-
pagination: {
|
|
411
|
-
total: {
|
|
412
|
-
color: string;
|
|
413
|
-
count: {
|
|
414
|
-
color: string;
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
|
-
};
|
|
418
|
-
setting: {
|
|
419
|
-
button: {
|
|
420
|
-
color: string;
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
'ap-batch-action': {
|
|
425
|
-
color: {
|
|
426
|
-
font: string;
|
|
427
|
-
active: string;
|
|
428
|
-
border: string;
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
basic: {
|
|
432
|
-
color: {
|
|
433
|
-
primary: string;
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
'ap-descriptions': {
|
|
437
|
-
item: {
|
|
438
|
-
'padding-bottom': string;
|
|
439
|
-
'label-width': string;
|
|
440
|
-
};
|
|
441
|
-
'last-row-item': {
|
|
442
|
-
'padding-bottom': string;
|
|
443
|
-
};
|
|
444
|
-
};
|
|
445
|
-
'ap-appendix': {
|
|
446
|
-
area: {
|
|
447
|
-
color: {
|
|
448
|
-
border: string;
|
|
449
|
-
font: string;
|
|
450
|
-
'font-hover': string;
|
|
451
|
-
'font-disabled': string;
|
|
452
|
-
icon: string;
|
|
453
|
-
};
|
|
454
|
-
};
|
|
455
|
-
};
|
|
456
|
-
'ap-upload-single': {
|
|
457
|
-
color: {
|
|
458
|
-
main: string;
|
|
459
|
-
sub: string;
|
|
460
|
-
border: string;
|
|
461
|
-
primary: string;
|
|
462
|
-
};
|
|
463
|
-
};
|
|
464
|
-
'batch-input-group': {
|
|
465
|
-
trigger: {
|
|
466
|
-
color: string;
|
|
467
|
-
'color-disabled': string;
|
|
468
|
-
};
|
|
469
|
-
};
|
|
470
|
-
'ap-text': {
|
|
471
|
-
label: {
|
|
472
|
-
color: string;
|
|
473
|
-
};
|
|
474
|
-
content: {
|
|
475
|
-
color: {
|
|
476
|
-
major: string;
|
|
477
|
-
minor: string;
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
'ap-view': {
|
|
482
|
-
icon: {
|
|
483
|
-
color: string;
|
|
484
|
-
};
|
|
485
|
-
bg: {
|
|
486
|
-
color: string;
|
|
487
|
-
};
|
|
488
|
-
message: {
|
|
489
|
-
color: string;
|
|
490
|
-
};
|
|
491
|
-
border: {
|
|
492
|
-
color: string;
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
}>;
|
|
496
358
|
exportField: ExportField;
|
|
497
359
|
viewCacheOption: ViewCacheOption;
|
|
498
360
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),m=require("@aplus-frontend/antdv"),i=require("./hooks/use-global-config.js"),C=require("./config-provider-props.js"),d=require("../utils/config-provider-preset.js"),l=require("./constants.js");function v(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!o.isVNode(e)}const t=o.ref({}),p=o.defineComponent({name:"AplusConfigProvider",props:C.configProviderProps(),setup(e,{slots:f}){const a=i.useGlobalConfig("namespace"),u=i.useGlobalConfig("uiMode"),s=o.computed(()=>e.namespace?e.namespace:o.unref(a)?o.unref(a):l.DEFAULT_NAMESPACE),c=o.computed(()=>e.uiMode?e.uiMode:o.unref(u)?o.unref(u):l.DEFAULT_UIMODE),g=o.computed(()=>({namespace:o.unref(s),aplusLocale:e.aplusLocale,api:e.api,uiMode:o.unref(c),apUpload:e.apUpload,apDescriptions:e.apDescriptions,valueTypeMap:e.valueTypeMap,downloadCenterTriggerConfig:e.downloadCenterTriggerConfig,exportField:e.exportField,scrollYDomName:e.scrollYDomName,viewCacheOption:e.viewCacheOption})),r=i.provideGlobalConfig(g);return o.watch(()=>e,n=>{t.value=d.mergeAntdProviderConfigWithCache(d.mergeAntdProvideConfig(n),t.value)},{deep:!0,immediate:!0}),typeof window<"u"&&o.watch(()=>o.unref(c),n=>{document.documentElement.dataset.aplusUiMode=n},{immediate:!0}),()=>{let n;return o.createVNode(m.ConfigProvider,t.value,v(n=o.renderSlot(f,"default",{config:r==null?void 0:r.value}))?n:{default:()=>[n]})}}});exports.ConfigProvider=p;exports.globalConfigCached=t;
|
|
@@ -11,7 +11,6 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
|
11
11
|
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
12
12
|
import { LocaleType } from '../../locale';
|
|
13
13
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from '..';
|
|
14
|
-
import { CssVarType } from '../css-var';
|
|
15
14
|
import { ViewCacheOption } from '../..';
|
|
16
15
|
export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
|
|
17
16
|
export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
|
|
@@ -158,10 +157,6 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
158
157
|
type: PropType<downloadCenterTriggerConfig>;
|
|
159
158
|
default: () => {};
|
|
160
159
|
};
|
|
161
|
-
cssVar: {
|
|
162
|
-
type: PropType<CssVarType>;
|
|
163
|
-
default: () => {};
|
|
164
|
-
};
|
|
165
160
|
exportField: {
|
|
166
161
|
type: PropType<ExportField>;
|
|
167
162
|
default: boolean;
|