@aplus-frontend/ui 6.24.2 → 6.26.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.
- package/es/src/ag-grid/index.vue.mjs +36 -32
- package/es/src/ap-form/interface.d.ts +1 -2
- package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +27 -24
- package/es/src/ap-form/search-form/index.vue.d.ts +1 -1
- package/es/src/ap-form/search-form/index.vue.mjs +116 -109
- package/es/src/ap-grid/editable/form-item.vue.mjs +1 -0
- package/es/src/ap-grid/editable/index.vue.mjs +1 -0
- package/es/src/ap-grid/index.vue.mjs +229 -212
- package/es/src/ap-grid/interface.d.ts +13 -1
- package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/es/src/ap-pro-card/components/statistic/index.vue.d.ts +2 -1
- package/es/src/ap-pro-card/components/statistic/index.vue2.mjs +43 -37
- package/es/src/ap-pro-card/interface.d.ts +3 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +41 -41
- package/es/src/business/ap-value-select-card/index.vue.d.ts +6 -0
- package/es/src/business/ap-value-select-card/index.vue2.mjs +88 -80
- package/es/src/utils/copy.mjs +14 -4
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +1 -2
- package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +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 +13 -1
- package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
- package/lib/src/ap-pro-card/components/statistic/index.vue.d.ts +2 -1
- package/lib/src/ap-pro-card/components/statistic/index.vue2.js +1 -1
- package/lib/src/ap-pro-card/interface.d.ts +3 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue.d.ts +6 -0
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/utils/copy.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -5
- package/theme/ap-pro-card/index.css +29 -25
- package/theme/ap-pro-card/index.less +32 -16
- package/theme/ap-value-select-card/index.css +1 -0
- package/theme/ap-value-select-card/index.less +1 -0
- package/theme/index.css +30 -25
|
@@ -21,9 +21,9 @@ declare const __VLS_component: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}
|
|
|
21
21
|
gutter: ApProCardGutter | ApProCardGutter[];
|
|
22
22
|
ghost: boolean;
|
|
23
23
|
bordered: boolean;
|
|
24
|
+
collapsible: boolean;
|
|
24
25
|
headerBordered: boolean;
|
|
25
26
|
hoverable: boolean;
|
|
26
|
-
collapsible: boolean;
|
|
27
27
|
defaultCollapsed: boolean;
|
|
28
28
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
29
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -8,6 +8,7 @@ declare function __VLS_template(): {
|
|
|
8
8
|
};
|
|
9
9
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
10
|
declare const __VLS_component: DefineComponent<ApProCardStatisticProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApProCardStatisticProps> & Readonly<{}>, {
|
|
11
|
+
size: "default" | "small";
|
|
11
12
|
title: string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
12
13
|
[key: string]: any;
|
|
13
14
|
}> | (string | number | boolean | void | VNode<RendererNode, RendererElement, {
|
|
@@ -15,7 +16,7 @@ declare const __VLS_component: DefineComponent<ApProCardStatisticProps, {}, {},
|
|
|
15
16
|
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
16
17
|
[key: string]: any;
|
|
17
18
|
}> | null;
|
|
18
|
-
layout: "horizontal" | "vertical" | "inline";
|
|
19
|
+
layout: "horizontal" | "vertical" | "vertical-center" | "inline";
|
|
19
20
|
icon: string | number | boolean | void | VNodeArrayChildren | VNode<RendererNode, RendererElement, {
|
|
20
21
|
[key: string]: any;
|
|
21
22
|
}> | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),S=require("@ant-design/icons-vue"),i=require("@aplus-frontend/antdv"),b=require("lodash-unified");require("../../../config-provider/index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),S=require("@ant-design/icons-vue"),i=require("@aplus-frontend/antdv"),b=require("lodash-unified");require("../../../config-provider/index.js");const l=require("../../../editable-table/utils.js"),V=require("../../../config-provider/hooks/use-namespace.js"),$=e.defineComponent({name:"ApProCardStatistic",__name:"index",props:{prefixCls:{},decimalSeparator:{},groupSeparator:{},format:{},value:{},valueStyle:{},valueRender:{},formatter:{type:[Boolean,String,Function]},precision:{},prefix:{type:[Object,String,Number,Boolean,null,Array],default:void 0},suffix:{type:[Object,String,Number,Boolean,null,Array],default:void 0},title:{type:[Object,String,Number,Boolean,null,Array],default:void 0},loading:{type:Boolean},description:{type:[Object,String,Number,Boolean,null,Array],default:void 0},tip:{type:[Object,String,Number,Boolean,null,Array],default:void 0},status:{default:void 0},icon:{type:[Object,String,Number,Boolean,null,Array],default:void 0},layout:{default:"inline"},trend:{default:void 0},size:{default:"default"}},setup(p){const n=e.useSlots(),o=p,{b:r}=V.useNamespace("pro-card-statistic"),f=e.computed(()=>{const t=r();return l.mergeClass(`${t}`,[o.size?`${t}-size-${o.size}`:void 0].filter(Boolean))}),m=e.computed(()=>r("tip")),v=e.computed(()=>{const t=r();return l.mergeClass(`${t}-trend-icon`,[o.trend?`${t}-trend-icon-${o.trend}`:void 0].filter(Boolean))}),y=e.computed(()=>r("status")),C=e.computed(()=>r("icon")),B=e.computed(()=>r("wrapper")),x=e.computed(()=>r("content")),k=e.computed(()=>{const t=r();return l.mergeClass(`${t}-layout`,[o.layout?`${t}-layout-${o.layout}`:void 0,o.trend?`${t}-trend-${o.trend}`:void 0].filter(Boolean))}),g=e.computed(()=>r("description")),u=e.computed(()=>{var t;return o.tip||n.tip?e.createVNode(i.Tooltip,{title:o.tip??((t=n.tip)==null?void 0:t.call(n))},{default:()=>[e.createVNode(S.QuestionCircleOutlined,{class:m.value},null)]}):void 0}),a=e.computed(()=>o.trend?e.createVNode("div",{class:v.value},null):void 0),N=e.computed(()=>o.status?e.createVNode(i.Badge,{class:y.value,status:o.status},null):void 0),D=e.computed(()=>{var t;return o.icon||n.icon?e.createVNode("div",{class:C.value},[o.icon??((t=n.icon)==null?void 0:t.call(n))]):void 0}),c=e.computed(()=>{var t;return o.title||n.title?e.createVNode(e.Fragment,null,[o.title||((t=n.title)==null?void 0:t.call(n))]):void 0}),d=e.computed(()=>{var t;return o.prefix||n.prefix?e.createVNode(e.Fragment,null,[o.prefix||((t=n.prefix)==null?void 0:t.call(n))]):void 0}),s=e.computed(()=>{var t;return o.suffix||n.suffix?e.createVNode(e.Fragment,null,[o.suffix||((t=n.suffix)==null?void 0:t.call(n))]):void 0}),O=e.computed(()=>{var t;return o.description||n.description?e.createVNode("div",{class:g.value},[o.description||((t=n.description)==null?void 0:t.call(n))]):void 0});return(t,M)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({...t.$attrs},{class:f.value}),[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(D.value))),e.createElementVNode("div",{class:e.normalizeClass(B.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(N.value))),e.createElementVNode("div",{class:e.normalizeClass(x.value)},[e.createVNode(e.unref(i.Statistic),e.mergeProps({class:k.value},{...e.unref(b.omit)(o,["title","prefix"])}),e.createSlots({_:2},[c.value||u.value?{name:"title",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value))),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(u.value)))]),key:"0"}:void 0,a.value||d.value?{name:"prefix",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(a.value))),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d.value)))]),key:"1"}:void 0,s.value?{name:"suffix",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.value)))]),key:"2"}:void 0]),1040,["class"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(O.value)))],2)],2)],16))}});exports.default=$;
|
|
@@ -79,9 +79,11 @@ export type ApProCardStatisticProps = StatisticProps & {
|
|
|
79
79
|
/** Icon 图标 */
|
|
80
80
|
icon?: VNodeChild;
|
|
81
81
|
/** Layout 布局 */
|
|
82
|
-
layout?: 'horizontal' | 'vertical' | 'inline';
|
|
82
|
+
layout?: 'horizontal' | 'vertical' | 'vertical-center' | 'inline';
|
|
83
83
|
/** 趋势 */
|
|
84
84
|
trend?: 'up' | 'down';
|
|
85
|
+
/** 尺寸 */
|
|
86
|
+
size?: 'default' | 'small';
|
|
85
87
|
};
|
|
86
88
|
export type ApProCardStatisticSolts = {
|
|
87
89
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),ue=require("./use-sorted-filtered.js");require("../../config-provider/index.js");const N=require("../utils.js"),E=require("lodash-unified"),J=require("../../utils/index.js"),le=require("../../config-provider/hooks/use-locale.js"),fe=require("../../config-provider/hooks/use-namespace.js"),p=1,C=20,K={defaultCurrent:p,defaultPageSize:C,showLessItems:!1,showTotal:!0};function de(u){return u===!1?{}:u==null||u===!0?K:{...K,...u}}function ge(u){const d={};return u===!1||(u===!0||u==null?(d.current=p,d.pageSize=C):(d.current=u.defaultCurrent||p,d.pageSize=u.defaultPageSize||C)),d}const pe=({manual:u=!1,request:d,params:U={},defaultData:V=[],formatParams:q,paramsValueTypeMap:A,resetFieldsIgnores:_,filterFields:Q,sortFields:W,namespace:Z="ap-table",pagination:m,onClickReset:v,onAfterRequest:x})=>{let D=0,i={};const $=de(m),H=e=>q?q(e):e,z=s.ref(),c=s.reactive(ge(m)),{getColumnSFConfig:R,setSF:X,clearAll:Y,sortedInfo:I,filteredInfo:j}=ue.useTableSortedAndFiltered(),{t:T}=le.useLocale(),{b:P}=fe.useNamespace(Z),o=s.reactive({total:V.length,records:V,loading:!1}),b=()=>{var e,t;return((t=(e=z.value)==null?void 0:e.apForm)==null?void 0:t.getFieldsValueTransformed(!0))||{}},M=async e=>{var n;const t=H(e),r=Date.now();D=r,o.loading=!0;try{const a=await d({...s.unref(U),...t});D===r&&(o.total=a.total||((n=a.data)==null?void 0:n.length)||0,o.records=[...a.data||[]],o.loading=!1)}catch{D===r&&(o.records=[],o.total=0,o.loading=!1)}finally{x==null||x(o.records)}},B=e=>{const t={};return Object.entries(e).forEach(([r,n])=>{if(t[r]=n,A&&n){const a=A[r];a&&(t[r]=N.parseFieldValue(a,n))}}),t},k=async e=>{var n,a,f,g,S;const t=b(),r={};Object.entries(t).forEach(([h,w])=>{_&&_.indexOf(h)>-1&&(r[h]=w)}),await((a=(n=z.value)==null?void 0:n.apForm)==null?void 0:a.resetFields()),(S=(g=(f=z.value)==null?void 0:f.apForm)==null?void 0:g.setFieldsValue)==null||S.call(g,r),s.nextTick(()=>{e==null||e()})},F=e=>{i=e;const t=B(e);M(t)},ee=e=>{F({...i,...e})},L=()=>{G(!0)},G=(e=!1)=>{const t=b(),r=m!==!1;r&&e&&(c.current=p),F({...t,filter:i.filter,sort:i.sort,current:r?e?p:i.current||c.current:void 0,pageSize:r?i.pageSize||c.pageSize:void 0})},te=()=>{Y(),i.sort={},i.filter={},v==null||v(),k(L)},y=()=>{F(i)},re=e=>{if(m===!1)y();else{const{current:t,pageSize:r}=c,n=o.total-e,a=Math.ceil(n/r),f=t>a?a:t;ee({current:f>0?f:1})}},O=(e,t,r)=>{var h,w;const n=b();c.current=e.current,c.pageSize=e.pageSize,X(t,r);const a=E.isArray(r)?[...r]:[r],f={};for(const l of a)(h=s.unref(W))!=null&&h.includes(l.columnKey||l.field)&&l.order&&(f[N.dataIndexToStr(l.columnKey||l.field)]=l.order);const g={};for(const l of Object.keys(t))(w=s.unref(Q))!=null&&w.includes(l)&&t[l]&&(g[l]=t[l]);const S={...n,filter:g,sort:f,current:e.current,pageSize:e.pageSize};E.isEqualWith(i,S,N.isEqualCustom)||F(S)},ne=(e,t=j.value||{},r=I.value||{})=>{const n=(e==null?void 0:e.current)??c.current,a=(e==null?void 0:e.pageSize)??c.pageSize;O({current:n,pageSize:a},t,r,{action:"sort",currentDataSource:[]})};s.onMounted(()=>{const e=b(),{current:t,pageSize:r}=c;if(i={current:t,pageSize:r,filter:{},sort:{},...e},!u){const n=B(i);M(n)}}),s.watch(()=>s.unref(U),()=>{L()},{deep:!0});const ae=s.computed(()=>{if(o.total===0)return"-";const{current:e,pageSize:t}=c;return`${e}/${Math.ceil(o.total/t)}`});function oe(e){E.isArray(e)&&(o.records=e,o.total=e.length)}const se=s.computed(()=>{const{showLessItems:e,showTotal:t,showQuickJumper:r,showSizeChanger:n,pageSizeOptions:a}=$;return{loading:o.loading,pagination:{current:c.current,pageSize:c.pageSize,total:o.total,showSizeChanger:J.isDef(n)?n:!e,showQuickJumper:J.isDef(r)?r:!e,showLessItems:e,size:"default",pageSizeOptions:E.isUndefined(a)?["10","20","50","100"]:a,showTotal:t?f=>s.createVNode("span",{class:P("pagination-total-wrapper")},[T("ap.apTable.pagination.totalLeftPrefix")," ",s.createVNode("span",{class:P("pagination-count-text")},[f])," ",T("ap.apTable.pagination.totalLeftSuffix"),s.createVNode("span",{class:P("pagination--total-right")},[T("ap.apTable.pagination.totalRightPrefix")," ",s.createVNode("span",{class:P("pagination-count-text")},[s.unref(ae)])," ",T("ap.apTable.pagination.totalRightSuffix")])]):void 0},onChange:O,dataSource:o.records}});function ie(e,t=!0){Object.assign(c,e),i.current=e.current,i.pageSize=e.pageSize,t&&y()}function ce(){return{...c}}return{formRef:z,submit:L,reset:te,refresh:y,refreshByDelete:re,data:o,handleTableChange:O,handleTableChangeOptional:ne,tableProps:se,dataSource:s.computed(()=>o.records),setDataSource:oe,getColumnSFConfig:R,sortedInfo:I,filteredInfo:j,getPaging:ce,setPaging:ie,submitWith:G}};exports.DEFAULT_CURRENT=p;exports.DEFAULT_PAGE_SIZE=C;exports.useTablePaging=pe;
|
|
@@ -22,6 +22,12 @@ declare const _default: <T extends Record<string, any> = Record<string, any>>(__
|
|
|
22
22
|
}>): void;
|
|
23
23
|
attrs: any;
|
|
24
24
|
slots: {
|
|
25
|
+
'popover-label'?(_: {
|
|
26
|
+
option: ApValueSelectCardOption<T>;
|
|
27
|
+
}): any;
|
|
28
|
+
'popover-value'?(_: {
|
|
29
|
+
option: ApValueSelectCardOption<T>;
|
|
30
|
+
}): any;
|
|
25
31
|
'close-icon'?(_: {}): any;
|
|
26
32
|
label?(_: {
|
|
27
33
|
option: ApValueSelectCardOption<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),z=require("@aplus-frontend/antdv"),T=require("@ant-design/icons-vue"),$=require("@aplus-frontend/icon");require("../../config-provider/index.js");const I=require("../../config-provider/hooks/use-namespace.js"),O=require("../../config-provider/hooks/use-global-config.js"),D=["onClick"],M={class:"label"},q={class:"value"},H=["onClick"],A=["onClick"],F={class:"label"},
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),z=require("@aplus-frontend/antdv"),T=require("@ant-design/icons-vue"),$=require("@aplus-frontend/icon");require("../../config-provider/index.js");const I=require("../../config-provider/hooks/use-namespace.js"),O=require("../../config-provider/hooks/use-global-config.js"),D=["onClick"],M={class:"label"},q={class:"value"},H=["onClick"],A=["onClick"],F={class:"label"},R={class:"value"},P={class:"text"},_=e.defineComponent({name:"ApValueSelectCard",__name:"index",props:{options:{},selectedKeys:{default:()=>[]},highlightedKeys:{default:()=>[]},maxSelected:{default:4},maxRowDisplay:{default:4},popoverTitle:{default:""},showTitleIcon:{type:Boolean,default:!0},showCloseIcon:{type:Boolean,default:!0},showAddButton:{type:Boolean,default:!0},addButtonText:{default:""},getContainer:{type:Function,default:u=>u.parentElement||document.body},getCardStyle:{type:Function,default:()=>({})},wrapperStyle:{type:[Boolean,null,String,Object,Array]}},emits:["update:selectedKeys","update:highlightedKeys","change","select","remove","highlight"],setup(u,{expose:B,emit:N}){const i=N,l=u,{b:r,m:V}=I.useNamespace("ap-value-select-card"),w=O.useGlobalConfig("uiMode","aplus"),c=e.ref(null),d=e.ref(!1),h=e.computed(()=>l.options),g=e.computed(()=>h.value.filter(t=>l.selectedKeys.includes(t.key))),v=t=>l.selectedKeys.includes(t),m=t=>l.highlightedKeys.includes(t),C=t=>{l.selectedKeys.includes(t)?p(t):S(t)},S=t=>{if(l.maxSelected&&l.selectedKeys.length>=l.maxSelected)return;const s=[...l.selectedKeys,t];i("update:selectedKeys",s),i("change",s),i("select",t),l.highlightedKeys.includes(t)||f(t)},p=t=>{if(l.selectedKeys.length<=1||l.highlightedKeys.length<=1&&l.highlightedKeys.includes(t))return;const s=l.selectedKeys.filter(a=>a!==t);if(i("update:selectedKeys",s),i("change",s),i("remove",t),l.highlightedKeys.includes(t)){const a=l.highlightedKeys.filter(n=>n!==t);i("update:highlightedKeys",a),i("highlight",a)}},f=t=>{let s;if(l.highlightedKeys.includes(t))if(l.highlightedKeys.length>1)s=l.highlightedKeys.filter(a=>a!==t);else return;else s=[...l.highlightedKeys,t];i("update:highlightedKeys",s),i("highlight",s)},E=t=>{t||(d.value=t)};return B({popoverVisible:d,allOptions:h,selectedOptions:g,isSelected:v,isHighlighted:m,toggleOption:C,addOption:S,removeOption:p,highlightOption:f}),(t,s)=>{const a=e.resolveComponent("InfoCircleFilled");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(r)(),`${e.unref(V)(e.unref(w))}`]),style:e.normalizeStyle({...t.wrapperStyle,"--ap-value-select-card-column-count":t.maxRowDisplay})},[e.createVNode(e.unref(z.Popover),{open:d.value,trigger:"click",placement:"bottomRight",arrow:!1,"get-popup-container":t.getContainer,onOpenChange:E},{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r)("popover"))},[t.popoverTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r)("title"))},[t.showTitleIcon?(e.openBlock(),e.createBlock(a,{key:0,class:e.normalizeClass(e.unref(r)("title-icon"))},null,8,["class"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.popoverTitle),1)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r)("list"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,n=>(e.openBlock(),e.createElementBlock("div",{key:n.key,class:e.normalizeClass([e.unref(r)("list-item"),"all",{select:v(n.key),disabled:t.maxSelected&&t.selectedKeys.length>=t.maxSelected}]),onClick:e.withModifiers(y=>C(n.key),["stop"])},[e.createElementVNode("div",M,[e.renderSlot(t.$slots,"popover-label",{option:n},()=>[e.createTextVNode(e.toDisplayString(n.label),1)])]),e.createElementVNode("div",q,[e.renderSlot(t.$slots,"popover-value",{option:n},()=>[e.createTextVNode(e.toDisplayString(n.value),1)])])],10,D))),128))],2)],2)]),default:e.withCtx(()=>{var n,y,k,K;return[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r)("list"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,o=>(e.openBlock(),e.createElementBlock("div",{key:o.key,ref_for:!0,ref_key:"listItemRef",ref:c,class:e.normalizeClass([e.unref(r)("list-item"),{select:m(o.key),custom:o.customClass},o.customClass]),style:e.normalizeStyle(t.getCardStyle(o.key)),onClick:e.withModifiers(b=>f(o.key),["stop"])},[t.showCloseIcon&&(!(t.highlightedKeys.length===1&&m(o.key))&&g.value.length>1)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(r)("list-item-close")),onClick:e.withModifiers(b=>p(o.key),["stop"])},[e.renderSlot(t.$slots,"close-icon",{},()=>[e.createVNode(e.unref($.IconApAdLinePoor))])],10,A)):e.createCommentVNode("",!0),e.createElementVNode("div",F,[e.renderSlot(t.$slots,"label",{option:o},()=>[e.createTextVNode(e.toDisplayString(o.label),1)])]),e.createElementVNode("div",R,[e.renderSlot(t.$slots,"value",{option:o},()=>[e.createTextVNode(e.toDisplayString(o.value),1)])])],14,H))),128)),t.showAddButton&&(!t.maxSelected||t.selectedKeys.length<t.maxSelected)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(r)("list-item"),"choose"]),style:e.normalizeStyle({minHeight:c.value?`${(y=(n=c.value)==null?void 0:n[0])!=null&&y.offsetHeight?`${(K=(k=c.value)==null?void 0:k[0])==null?void 0:K.offsetHeight}px`:"auto"}`:"auto"}),onClick:s[0]||(s[0]=e.withModifiers(o=>d.value=!0,["stop"]))},[e.renderSlot(t.$slots,"add-button",{},()=>[e.createVNode(e.unref(T.PlusOutlined)),e.createElementVNode("span",P,e.toDisplayString(t.addButtonText),1)])],6)):e.createCommentVNode("",!0)],2)]}),_:3},8,["open","get-popup-container"])],6)}}});exports.default=_;
|
package/lib/src/utils/copy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(t,e){const o=e==null?void 0:e.format;if(typeof t!="string")return!1;try{if(o==="text/html"){const r=new ClipboardItem({[o]:new Blob([t],{type:o}),"text/plain":new Blob([t],{type:"text/plain"})});navigator.clipboard.write([r])}else navigator.clipboard.writeText(t);return!0}catch{return a(t)}}function a(t){try{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.focus(),e.select();const o=document.execCommand("copy");return document.body.removeChild(e),o}catch{return!1}}exports.copy=n;
|
package/lib/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "6.
|
|
1
|
+
declare const _default: "6.26.0";
|
|
2
2
|
export default _default;
|
package/lib/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="6.26.0";exports.default=e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.26.0",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
38
38
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
39
39
|
"vuedraggable": "^4.1.0",
|
|
40
|
-
"@aplus-frontend/
|
|
41
|
-
"@aplus-frontend/
|
|
40
|
+
"@aplus-frontend/utils": "1.0.61",
|
|
41
|
+
"@aplus-frontend/hooks": "1.0.7"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@aplus-frontend/antdv": "^1.2.
|
|
44
|
+
"@aplus-frontend/antdv": "^1.2.3",
|
|
45
45
|
"@aplus-frontend/icon": "^1.2.6",
|
|
46
46
|
"@aplus-frontend/oss": "^1.1.2",
|
|
47
47
|
"vue": "^3.5.14",
|
|
48
48
|
"vxe-table": "^4.13.37"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@aplus-frontend/antdv": "^1.2.
|
|
51
|
+
"@aplus-frontend/antdv": "^1.2.3",
|
|
52
52
|
"@aplus-frontend/icon": "^1.2.6",
|
|
53
53
|
"@aplus-frontend/oss": "^1.1.2",
|
|
54
54
|
"@types/sortablejs": "^1.15.8",
|
|
@@ -384,17 +384,11 @@
|
|
|
384
384
|
.aplus-pro-card-statistic-content {
|
|
385
385
|
width: 100%;
|
|
386
386
|
}
|
|
387
|
-
.aplus-pro-card-statistic-content .ant-statistic-content
|
|
388
|
-
font-size: 22px;
|
|
389
|
-
font-weight: bold;
|
|
390
|
-
}
|
|
391
|
-
.aplus-pro-card-statistic-content .ant-statistic-content-value {
|
|
392
|
-
font-size: 22px;
|
|
393
|
-
font-weight: bold;
|
|
394
|
-
}
|
|
395
|
-
.aplus-pro-card-statistic-content .ant-statistic-content-value-decimal {
|
|
387
|
+
.aplus-pro-card-statistic-content .ant-statistic-content {
|
|
396
388
|
font-size: 22px;
|
|
389
|
+
line-height: 24px;
|
|
397
390
|
font-weight: bold;
|
|
391
|
+
font-family: DDinBold, OPPOSans, sans-serif;
|
|
398
392
|
}
|
|
399
393
|
.aplus-pro-card-statistic-description {
|
|
400
394
|
width: 100%;
|
|
@@ -403,6 +397,13 @@
|
|
|
403
397
|
color: var(--ap-text-color-1);
|
|
404
398
|
font-size: 12px;
|
|
405
399
|
line-height: 18px;
|
|
400
|
+
margin-bottom: 8px;
|
|
401
|
+
}
|
|
402
|
+
.aplus-pro-card-statistic-size-small .ant-statistic-title {
|
|
403
|
+
margin-bottom: 4px;
|
|
404
|
+
}
|
|
405
|
+
.aplus-pro-card-statistic-size-small .ant-statistic-content {
|
|
406
|
+
font-size: 16px;
|
|
406
407
|
}
|
|
407
408
|
.aplus-pro-card-statistic-trend-up .ant-statistic-content {
|
|
408
409
|
color: var(--ap-color-error);
|
|
@@ -422,18 +423,18 @@
|
|
|
422
423
|
}
|
|
423
424
|
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-title {
|
|
424
425
|
margin-block-end: 0;
|
|
426
|
+
color: var(--ap-text-color-3);
|
|
425
427
|
}
|
|
426
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-content
|
|
428
|
+
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-content {
|
|
429
|
+
color: var(--ap-text-color-2);
|
|
430
|
+
font-size: 12px;
|
|
431
|
+
line-height: 18px;
|
|
427
432
|
font-weight: 500;
|
|
428
433
|
}
|
|
429
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-title
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-content-suffix,
|
|
434
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-content-prefix,
|
|
435
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-content-value-decimal {
|
|
436
|
-
font-size: 14px;
|
|
434
|
+
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-title {
|
|
435
|
+
font-size: 12px;
|
|
436
|
+
line-height: 18px;
|
|
437
|
+
font-weight: 500;
|
|
437
438
|
}
|
|
438
439
|
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline {
|
|
439
440
|
display: inline-flex;
|
|
@@ -445,17 +446,20 @@
|
|
|
445
446
|
}
|
|
446
447
|
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content {
|
|
447
448
|
color: var(--ap-text-color-2);
|
|
449
|
+
font-size: 12px;
|
|
450
|
+
line-height: 18px;
|
|
451
|
+
font-weight: 500;
|
|
448
452
|
}
|
|
449
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-title
|
|
450
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content-value,
|
|
451
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content-value-int,
|
|
452
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content,
|
|
453
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content-suffix,
|
|
454
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content-prefix,
|
|
455
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content-value-decimal {
|
|
453
|
+
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-title {
|
|
456
454
|
font-size: 12px;
|
|
455
|
+
line-height: 18px;
|
|
457
456
|
font-weight: 500;
|
|
458
457
|
}
|
|
458
|
+
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-vertical-center {
|
|
459
|
+
display: flex;
|
|
460
|
+
flex-direction: column;
|
|
461
|
+
align-items: center;
|
|
462
|
+
}
|
|
459
463
|
.aplus-statistic-card-chart {
|
|
460
464
|
display: flex;
|
|
461
465
|
flex-direction: column;
|
|
@@ -259,18 +259,10 @@
|
|
|
259
259
|
&-content {
|
|
260
260
|
width: 100%;
|
|
261
261
|
.ant-statistic-content {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
&-value {
|
|
267
|
-
font-size: 22px;
|
|
268
|
-
font-weight: bold;
|
|
269
|
-
}
|
|
270
|
-
&-value-decimal {
|
|
271
|
-
font-size: 22px;
|
|
272
|
-
font-weight: bold;
|
|
273
|
-
}
|
|
262
|
+
font-size: 22px;
|
|
263
|
+
line-height: 24px;
|
|
264
|
+
font-weight: bold;
|
|
265
|
+
font-family: DDinBold,OPPOSans,sans-serif;
|
|
274
266
|
}
|
|
275
267
|
}
|
|
276
268
|
&-description {
|
|
@@ -280,6 +272,15 @@
|
|
|
280
272
|
color: var(--ap-text-color-1);
|
|
281
273
|
font-size: 12px;
|
|
282
274
|
line-height: 18px;
|
|
275
|
+
margin-bottom: 8px;
|
|
276
|
+
}
|
|
277
|
+
&-size-small {
|
|
278
|
+
.ant-statistic-title {
|
|
279
|
+
margin-bottom: 4px;
|
|
280
|
+
}
|
|
281
|
+
.ant-statistic-content {
|
|
282
|
+
font-size: 16px;
|
|
283
|
+
}
|
|
283
284
|
}
|
|
284
285
|
&-trend-up {
|
|
285
286
|
.ant-statistic-content {
|
|
@@ -303,12 +304,18 @@
|
|
|
303
304
|
justify-content: space-between;
|
|
304
305
|
.ant-statistic-title {
|
|
305
306
|
margin-block-end: 0;
|
|
307
|
+
color: var(--ap-text-color-3);
|
|
306
308
|
}
|
|
307
|
-
.ant-statistic-content
|
|
309
|
+
.ant-statistic-content {
|
|
310
|
+
color: var(--ap-text-color-2);
|
|
311
|
+
font-size: 12px;
|
|
312
|
+
line-height: 18px;
|
|
308
313
|
font-weight: 500;
|
|
309
314
|
}
|
|
310
|
-
.ant-statistic-title
|
|
311
|
-
font-size:
|
|
315
|
+
.ant-statistic-title {
|
|
316
|
+
font-size: 12px;
|
|
317
|
+
line-height: 18px;
|
|
318
|
+
font-weight: 500;
|
|
312
319
|
}
|
|
313
320
|
}
|
|
314
321
|
& &-layout-inline {
|
|
@@ -320,12 +327,21 @@
|
|
|
320
327
|
}
|
|
321
328
|
.ant-statistic-content {
|
|
322
329
|
color: var(--ap-text-color-2);
|
|
330
|
+
font-size: 12px;
|
|
331
|
+
line-height: 18px;
|
|
332
|
+
font-weight: 500;
|
|
323
333
|
}
|
|
324
|
-
.ant-statistic-title
|
|
334
|
+
.ant-statistic-title {
|
|
325
335
|
font-size: 12px;
|
|
336
|
+
line-height: 18px;
|
|
326
337
|
font-weight: 500;
|
|
327
338
|
}
|
|
328
339
|
}
|
|
340
|
+
& &-layout-vertical-center {
|
|
341
|
+
display: flex;
|
|
342
|
+
flex-direction: column;;
|
|
343
|
+
align-items: center;
|
|
344
|
+
}
|
|
329
345
|
});
|
|
330
346
|
|
|
331
347
|
.b(statistic-card, {
|
package/theme/index.css
CHANGED
|
@@ -4414,6 +4414,7 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
4414
4414
|
color: #8896b0;
|
|
4415
4415
|
background: #f9f9fa;
|
|
4416
4416
|
cursor: not-allowed;
|
|
4417
|
+
border: 1px solid var(--ap-color-bg);
|
|
4417
4418
|
}
|
|
4418
4419
|
.aplus-ap-value-select-card-list-item.all.select {
|
|
4419
4420
|
background: #f5f9ff;
|
|
@@ -4798,17 +4799,11 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
4798
4799
|
.aplus-pro-card-statistic-content {
|
|
4799
4800
|
width: 100%;
|
|
4800
4801
|
}
|
|
4801
|
-
.aplus-pro-card-statistic-content .ant-statistic-content
|
|
4802
|
-
font-size: 22px;
|
|
4803
|
-
font-weight: bold;
|
|
4804
|
-
}
|
|
4805
|
-
.aplus-pro-card-statistic-content .ant-statistic-content-value {
|
|
4806
|
-
font-size: 22px;
|
|
4807
|
-
font-weight: bold;
|
|
4808
|
-
}
|
|
4809
|
-
.aplus-pro-card-statistic-content .ant-statistic-content-value-decimal {
|
|
4802
|
+
.aplus-pro-card-statistic-content .ant-statistic-content {
|
|
4810
4803
|
font-size: 22px;
|
|
4804
|
+
line-height: 24px;
|
|
4811
4805
|
font-weight: bold;
|
|
4806
|
+
font-family: DDinBold, OPPOSans, sans-serif;
|
|
4812
4807
|
}
|
|
4813
4808
|
.aplus-pro-card-statistic-description {
|
|
4814
4809
|
width: 100%;
|
|
@@ -4817,6 +4812,13 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
4817
4812
|
color: var(--ap-text-color-1);
|
|
4818
4813
|
font-size: 12px;
|
|
4819
4814
|
line-height: 18px;
|
|
4815
|
+
margin-bottom: 8px;
|
|
4816
|
+
}
|
|
4817
|
+
.aplus-pro-card-statistic-size-small .ant-statistic-title {
|
|
4818
|
+
margin-bottom: 4px;
|
|
4819
|
+
}
|
|
4820
|
+
.aplus-pro-card-statistic-size-small .ant-statistic-content {
|
|
4821
|
+
font-size: 16px;
|
|
4820
4822
|
}
|
|
4821
4823
|
.aplus-pro-card-statistic-trend-up .ant-statistic-content {
|
|
4822
4824
|
color: var(--ap-color-error);
|
|
@@ -4836,18 +4838,18 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
4836
4838
|
}
|
|
4837
4839
|
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-title {
|
|
4838
4840
|
margin-block-end: 0;
|
|
4841
|
+
color: var(--ap-text-color-3);
|
|
4839
4842
|
}
|
|
4840
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-content
|
|
4843
|
+
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-content {
|
|
4844
|
+
color: var(--ap-text-color-2);
|
|
4845
|
+
font-size: 12px;
|
|
4846
|
+
line-height: 18px;
|
|
4841
4847
|
font-weight: 500;
|
|
4842
4848
|
}
|
|
4843
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-title
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-content-suffix,
|
|
4848
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-content-prefix,
|
|
4849
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-content-value-decimal {
|
|
4850
|
-
font-size: 14px;
|
|
4849
|
+
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-horizontal .ant-statistic-title {
|
|
4850
|
+
font-size: 12px;
|
|
4851
|
+
line-height: 18px;
|
|
4852
|
+
font-weight: 500;
|
|
4851
4853
|
}
|
|
4852
4854
|
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline {
|
|
4853
4855
|
display: inline-flex;
|
|
@@ -4859,17 +4861,20 @@ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky
|
|
|
4859
4861
|
}
|
|
4860
4862
|
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content {
|
|
4861
4863
|
color: var(--ap-text-color-2);
|
|
4864
|
+
font-size: 12px;
|
|
4865
|
+
line-height: 18px;
|
|
4866
|
+
font-weight: 500;
|
|
4862
4867
|
}
|
|
4863
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-title
|
|
4864
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content-value,
|
|
4865
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content-value-int,
|
|
4866
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content,
|
|
4867
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content-suffix,
|
|
4868
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content-prefix,
|
|
4869
|
-
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-content-value-decimal {
|
|
4868
|
+
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-inline .ant-statistic-title {
|
|
4870
4869
|
font-size: 12px;
|
|
4870
|
+
line-height: 18px;
|
|
4871
4871
|
font-weight: 500;
|
|
4872
4872
|
}
|
|
4873
|
+
.aplus-pro-card-statistic .aplus-pro-card-statistic-layout-vertical-center {
|
|
4874
|
+
display: flex;
|
|
4875
|
+
flex-direction: column;
|
|
4876
|
+
align-items: center;
|
|
4877
|
+
}
|
|
4873
4878
|
.aplus-statistic-card-chart {
|
|
4874
4879
|
display: flex;
|
|
4875
4880
|
flex-direction: column;
|