@aplus-frontend/ui 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/es/src/ap-field/number/index.vue.d.ts +1 -1
  2. package/es/src/ap-field/slider/index.vue.d.ts +1 -1
  3. package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
  4. package/es/src/ap-table/constants.d.ts +7 -7
  5. package/es/src/ap-table/utils.d.ts +4 -4
  6. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +13 -4
  7. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +220 -108
  8. package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +14 -0
  9. package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +4 -0
  10. package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +35 -0
  11. package/es/src/business/ap-ladder/index.d.ts +31 -4
  12. package/es/src/business/ap-ladder/interface.d.ts +124 -4
  13. package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  14. package/es/src/business/ap-size-input/index.d.ts +3 -3
  15. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +33 -25
  16. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  17. package/lib/src/ap-field/slider/index.vue.d.ts +1 -1
  18. package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
  19. package/lib/src/ap-table/constants.d.ts +7 -7
  20. package/lib/src/ap-table/utils.d.ts +4 -4
  21. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +13 -4
  22. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
  23. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +14 -0
  24. package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +1 -0
  25. package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +1 -0
  26. package/lib/src/business/ap-ladder/index.d.ts +31 -4
  27. package/lib/src/business/ap-ladder/interface.d.ts +124 -4
  28. package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
  29. package/lib/src/business/ap-size-input/index.d.ts +3 -3
  30. package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
  31. package/package.json +3 -3
  32. package/theme/ap-ladder/ap-ladder.css +10 -1
  33. package/theme/ap-ladder/ap-ladder.less +10 -1
  34. package/theme/index.css +10 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),B=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const N=require("./interface.js"),_=require("../../config-provider/hooks/use-namespace.js"),D=require("../../config-provider/hooks/use-global-config.js"),P={key:1},j={key:0},w={key:1},$={key:0},F=["onClick"],M={key:0},q={key:1},O={key:0},L={key:1},A=e.defineComponent({name:"ApLadder",__name:"ApLadder",props:{major:{default:""},minor:{default:""},majorColor:{default:""},minorColor:{default:""},layout:{default:"vertical"},tooltip:{type:Boolean,default:!0},labelValues:{default:()=>[]},tooltipProps:{default:()=>({title:void 0,align:{},arrowPointAtCenter:!1,arrow:!0,autoAdjustOverflow:!0,color:"",destroyTooltipOnHide:!1,getPopupContainer:()=>document.body,mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayClassName:"",overlayStyle:{},overlayInnerStyle:{},placement:"top",trigger:"hover"})}},setup(C){const u=e.useSlots(),l=C,{b:S,e:r,m:g}=_.useNamespace("ap-ladder"),E=D.useGlobalConfig("uiMode","aplus"),p=`ap-ladder-${Math.floor(Math.random()*1e7)}`,h=r("ellipsis"),s=e.ref(!1),v=e.computed(()=>l.labelValues.length===0),b=e.computed(()=>l.labelValues.length>0),m=e.computed(()=>l.majorColor?{color:`${l.majorColor}`}:{}),d=e.computed(()=>l.minorColor?{color:`${l.minorColor}`}:{}),c=t=>t==null||typeof t=="string"&&t.trim()==="",a=(t,n={})=>{const o={rawValue:n.rawValue,precision:n.precision===void 0?2:n.precision,thousand:n.thousand,thousandSeparator:n.thousandSeparator||",",currency:n.currency,percent:n.percent};return c(t)?"--":o.rawValue?t:typeof t=="number"?o.percent?`${t.toFixed(o.precision)}%`:o.currency?t.toLocaleString(N.locales[o.currency],{style:"currency",currency:o.currency}):o.thousand?t.toFixed(o.precision).replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${o.thousandSeparator}`):t.toFixed(o.precision):t},V=()=>{const t=document.getElementById(p);if(!t)return;const n=t.querySelectorAll(`.${h}`);new ResizeObserver(i=>{i.forEach(k=>{k.target===t&&(s.value=!1,n.forEach(f=>{f.clientWidth<f.scrollWidth&&(s.value=!0)}))})}).observe(t),s.value=!1,n.forEach(i=>{i.clientWidth<i.scrollWidth&&(s.value=!0)})},y=e.computed(()=>u.title?!0:l.tooltip&&e.unref(s)),z=t=>{t&&window.open(t,"_blank")};return e.onMounted(()=>{V()}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{id:p,class:e.normalizeClass([e.unref(S)(),`${e.unref(g)(e.unref(E))}`])},[v.value?(e.openBlock(),e.createBlock(e.unref(B.Tooltip),e.normalizeProps(e.mergeProps({key:0},{...l.tooltipProps})),e.createSlots({default:e.withCtx(()=>[!c(t.major)||!c(t.minor)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.layout==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("major"),e.unref(r)("ellipsis")]),style:e.normalizeStyle(m.value)},e.toDisplayString(a(t.major)),7),e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("minor"),e.unref(r)("ellipsis")]),style:e.normalizeStyle(d.value)},e.toDisplayString(a(t.minor)),7)],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r)("ellipsis"))},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(r)("major")]),style:e.normalizeStyle(m.value)},e.toDisplayString(a(t.major)),7),e.createElementVNode("span",{class:e.normalizeClass([e.unref(r)("minor")]),style:e.normalizeStyle(d.value)},e.toDisplayString(a(t.minor)),7)],2))],64)):(e.openBlock(),e.createElementBlock("div",P,e.toDisplayString("--")))]),_:2},[y.value?{name:"title",fn:e.withCtx(()=>[u.title?e.renderSlot(t.$slots,"title",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.tooltipProps.title?(e.openBlock(),e.createElementBlock("div",j,e.toDisplayString(l.tooltipProps.title),1)):(e.openBlock(),e.createElementBlock("div",w,[e.createElementVNode("div",null,e.toDisplayString(a(t.major)),1),e.createElementVNode("div",null,e.toDisplayString(a(t.minor)),1)]))],64))]),key:"0"}:void 0]),1040)):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createBlock(e.unref(B.Tooltip),e.normalizeProps(e.mergeProps({key:1},{...l.tooltipProps})),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.labelValues,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass([e.unref(r)("ellipsis")])},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r)("label")),style:e.normalizeStyle(o.labelColor?{color:o.labelColor}:void 0)},[e.createTextVNode(e.toDisplayString(o.label),1),o.label?(e.openBlock(),e.createElementBlock("span",$,":")):e.createCommentVNode("",!0)],6),c(o.link)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r)("value")),style:e.normalizeStyle(o.valueColor?{color:o.valueColor}:void 0)},e.toDisplayString(a(o.value,{...o})),7)):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r)("link")),style:e.normalizeStyle(o.linkColor?{color:o.linkColor}:void 0),onClick:k=>z(o.link)},e.toDisplayString(a(o.value,{...o})),15,F)),o.unit?(e.openBlock(),e.createElementBlock("span",{key:2,class:e.normalizeClass(e.unref(r)("unit")),style:e.normalizeStyle(o.unitColor?{color:o.unitColor}:void 0)},e.toDisplayString(o.unit),7)):e.createCommentVNode("",!0)],2))),128))]),_:2},[y.value?{name:"title",fn:e.withCtx(()=>[u.title?e.renderSlot(t.$slots,"title",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.tooltipProps.title?(e.openBlock(),e.createElementBlock("div",M,e.toDisplayString(l.tooltipProps.title),1)):(e.openBlock(),e.createElementBlock("div",q,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.labelValues,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i},[o.label?(e.openBlock(),e.createElementBlock("span",O,e.toDisplayString(o.label),1)):e.createCommentVNode("",!0),o.label?(e.openBlock(),e.createElementBlock("span",L,"")):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(a(o.value,{...o})),1)]))),128))]))],64))]),key:"0"}:void 0]),1040)):e.createCommentVNode("",!0)],2))}});exports.default=A;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const j=require("./interface.js");require("./HelpMessageIcon.vue.js");const D=require("../../config-provider/hooks/use-namespace.js"),P=require("../../config-provider/hooks/use-global-config.js"),d=require("./HelpMessageIcon.vue2.js"),w={key:1},M={key:0},_={key:1},A={key:0},O=["onClick"],$={key:0},L={key:1},T=e.defineComponent({name:"ApLadder",__name:"ApLadder",props:{major:{default:""},minor:{default:""},majorColor:{default:""},majorStyles:{type:[Boolean,null,String,Object,Array],default:void 0},minorColor:{default:""},minorStyles:{type:[Boolean,null,String,Object,Array],default:void 0},layout:{default:"vertical"},tooltip:{type:Boolean,default:!0},labelValues:{default:()=>[]},labelAlign:{default:"right"},labelStyles:{type:[Boolean,null,String,Object,Array],default:void 0},valueStyles:{type:[Boolean,null,String,Object,Array],default:void 0},linkStyles:{type:[Boolean,null,String,Object,Array],default:void 0},unitStyles:{type:[Boolean,null,String,Object,Array],default:void 0},tooltipProps:{default:()=>({title:void 0,align:{},arrowPointAtCenter:!1,arrow:!0,autoAdjustOverflow:!0,color:"",destroyTooltipOnHide:!1,getPopupContainer:()=>document.body,mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayClassName:"",overlayStyle:{},overlayInnerStyle:{},placement:"top",trigger:"hover"})},tooltipLabelStyles:{type:[Boolean,null,String,Object,Array],default:void 0},tooltipValueStyles:{type:[Boolean,null,String,Object,Array],default:void 0}},setup(g){const y=e.useSlots(),l=g,{b:C,e:r,m:h}=D.useNamespace("ap-ladder"),b=P.useGlobalConfig("uiMode","aplus"),m=`ap-ladder-${Math.floor(Math.random()*1e7)}`,E=r("ellipsis"),s=e.ref(!1),V=e.computed(()=>l.labelValues.length===0),z=e.computed(()=>l.labelValues.length>0),k=e.computed(()=>l.majorColor?{color:`${l.majorColor}`}:{}),f=e.computed(()=>l.minorColor?{color:`${l.minorColor}`}:{}),u=t=>t==null||typeof t=="string"&&t.trim()==="",i=(t,n={})=>{const o={rawValue:n.rawValue,precision:n.precision===void 0?2:n.precision,thousand:n.thousand,thousandSeparator:n.thousandSeparator||",",currency:n.currency,percent:n.percent};if(t===null||typeof t=="object"||typeof t=="function"||typeof t>"u")return"--";if(typeof t=="boolean")return t;if(u(t))return"--";if(o.rawValue)return t;if(typeof t=="number"){if(o.percent)return`${t.toFixed(o.precision)}%`;if(o.currency)return t.toLocaleString(j.locales[o.currency],{style:"currency",currency:o.currency});if(o.thousand){const[a,p]=t.toFixed(o.precision).split(".");return`${a.replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${o.thousandSeparator}`)}.${p}`}return t.toFixed(o.precision)}return t},v=()=>{const t=document.getElementById(m);if(!t)return;const n=t.querySelectorAll(`.${E}`);new ResizeObserver(a=>{a.forEach(p=>{p.target===t&&(s.value=!1,n.forEach(S=>{S.clientWidth<S.scrollWidth&&(s.value=!0)}))})}).observe(t),s.value=!1,n.forEach(a=>{a.clientWidth<a.scrollWidth&&(s.value=!0)})},B=e.computed(()=>y.title?!0:l.tooltip&&e.unref(s)),N=t=>{t.link&&window.open(t.link,"_blank"),typeof t.handleClickLink=="function"&&t.handleClickLink()};return e.onMounted(()=>{v()}),(t,n)=>(e.openBlock(),e.createElementBlock("div",{id:m,class:e.normalizeClass([e.unref(C)(),`${e.unref(h)(e.unref(b))}`])},[V.value?(e.openBlock(),e.createBlock(e.unref(c.Tooltip),e.normalizeProps(e.mergeProps({key:0},{...l.tooltipProps})),e.createSlots({default:e.withCtx(()=>[!u(t.major)||!u(t.minor)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.layout==="vertical"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("major"),e.unref(r)("ellipsis")]),style:e.normalizeStyle([t.majorStyles,k.value])},e.toDisplayString(i(t.major)),7),e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("minor"),e.unref(r)("ellipsis")]),style:e.normalizeStyle([t.minorStyles,f.value])},e.toDisplayString(i(t.minor)),7)],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(r)("ellipsis"))},[e.createElementVNode("span",{class:e.normalizeClass([e.unref(r)("major")]),style:e.normalizeStyle([t.majorStyles,k.value])},e.toDisplayString(i(t.major)),7),e.createElementVNode("span",{class:e.normalizeClass([e.unref(r)("minor")]),style:e.normalizeStyle([t.minorStyles,f.value])},e.toDisplayString(i(t.minor)),7)],2))],64)):(e.openBlock(),e.createElementBlock("div",w,e.toDisplayString("--")))]),_:2},[B.value?{name:"title",fn:e.withCtx(()=>[y.title?e.renderSlot(t.$slots,"title",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.tooltipProps.title?(e.openBlock(),e.createElementBlock("div",M,e.toDisplayString(l.tooltipProps.title),1)):(e.openBlock(),e.createElementBlock("div",_,[e.createElementVNode("div",null,e.toDisplayString(i(t.major)),1),e.createElementVNode("div",null,e.toDisplayString(i(t.minor)),1)]))],64))]),key:"0"}:void 0]),1040)):e.createCommentVNode("",!0),z.value?(e.openBlock(),e.createBlock(e.unref(c.Tooltip),e.normalizeProps(e.mergeProps({key:1},{...l.tooltipProps})),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.labelValues,(o,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:e.normalizeClass([e.unref(r)("cross-bar")])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("ellipsis")])},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r)("label")),style:e.normalizeStyle([t.labelStyles,o.labelStyles,o.labelColor?{color:o.labelColor}:void 0,{textAlign:o.labelAlign||t.labelAlign}])},[e.createTextVNode(e.toDisplayString(o.label),1),o.label?(e.openBlock(),e.createElementBlock("span",A,":")):e.createCommentVNode("",!0)],6),e.isVNode(o.value)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:0,style:{display:"inline-block"}})):typeof o.value=="function"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value()),{key:1,style:{display:"inline-block"}})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[u(o.link)?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r)("value")),style:e.normalizeStyle([t.valueStyles,o.valueStyles,o.valueColor?{color:o.valueColor}:void 0])},e.toDisplayString(i(o.value,{...o})),7)):(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r)("link")),style:e.normalizeStyle([t.linkStyles,o.linkStyles,o.linkColor?{color:o.linkColor}:void 0]),onClick:p=>N(o)},e.toDisplayString(i(o.value,{...o})),15,O))],64)),o.unit?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(e.unref(r)("unit")),style:e.normalizeStyle([t.unitStyles,o.unitStyles,o.unitColor?{color:o.unitColor}:void 0])},e.toDisplayString(o.unit),7)):e.createCommentVNode("",!0)],2),o.helpMessage?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(r)("help-message")])},[e.isVNode(o.helpMessage)?(e.openBlock(),e.createBlock(e.unref(c.Tooltip),e.mergeProps({key:0,ref_for:!0},{...o.helpMessageTooltipProps}),{title:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.helpMessage)))]),default:e.withCtx(()=>[e.createVNode(d.default,{lv:o},null,8,["lv"])]),_:2},1040)):typeof o.helpMessage=="function"?(e.openBlock(),e.createBlock(e.unref(c.Tooltip),e.mergeProps({key:1,ref_for:!0},{...o.helpMessageTooltipProps}),{title:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.helpMessage())))]),default:e.withCtx(()=>[e.createVNode(d.default,{lv:o},null,8,["lv"])]),_:2},1040)):(e.openBlock(),e.createBlock(e.unref(c.Tooltip),e.mergeProps({key:2,ref_for:!0},{...o.helpMessageTooltipProps},{placement:"bottom",title:o.helpMessage}),{default:e.withCtx(()=>[e.createVNode(d.default,{lv:o},null,8,["lv"])]),_:2},1040,["title"]))],2)):e.createCommentVNode("",!0)],2))),128))]),_:2},[B.value?{name:"title",fn:e.withCtx(()=>[y.title?e.renderSlot(t.$slots,"title",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.tooltipProps.title?(e.openBlock(),e.createElementBlock("div",$,e.toDisplayString(l.tooltipProps.title),1)):(e.openBlock(),e.createElementBlock("div",L,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.labelValues,(o,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,style:{"word-break":"break-all"}},[o.label?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle([t.tooltipLabelStyles,o.tooltipLabelStyles])},e.toDisplayString(o.label)+":",5)):e.createCommentVNode("",!0),e.isVNode(o.value)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value),{key:1,style:{display:"inline-block"}})):typeof o.value=="function"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.value()),{key:2,style:{display:"inline-block"}})):(e.openBlock(),e.createElementBlock("span",{key:3,style:e.normalizeStyle([t.tooltipValueStyles,o.tooltipValueStyles])},e.toDisplayString(i(o.value,{...o})),5))]))),128))]))],64))]),key:"0"}:void 0]),1040)):e.createCommentVNode("",!0)],2))}});exports.default=T;
@@ -0,0 +1,14 @@
1
+ import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { ApLadderLabelValue } from './interface';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ lv: {
5
+ type: PropType<ApLadderLabelValue>;
6
+ required: true;
7
+ };
8
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
9
+ lv: {
10
+ type: PropType<ApLadderLabelValue>;
11
+ required: true;
12
+ };
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLSpanElement>;
14
+ export default _default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./HelpMessageIcon.vue2.js");exports.default=e.default;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("@aplus-frontend/icon"),o={style:{display:"inline-flex","align-items":"center"}},c=e.defineComponent({__name:"HelpMessageIcon",props:{lv:{type:Object,required:!0}},setup(l){const n={color:"#FAAD14",fontSize:"12px"};return(s,a)=>(e.openBlock(),e.createElementBlock("span",o,[e.isVNode(l.lv.helpMessageIcon)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.lv.helpMessageIcon),{key:0,style:e.normalizeStyle([n,l.lv.helpMessageIconStyles])},null,8,["style"])):typeof l.lv.helpMessageIcon=="function"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.lv.helpMessageIcon()),{key:1,style:e.normalizeStyle([n,l.lv.helpMessageIconStyles])},null,8,["style"])):l.lv.helpMessageIcon==="warning"?(e.openBlock(),e.createBlock(e.unref(t.IconApAdFillWarn),{key:2,style:e.normalizeStyle([n,l.lv.helpMessageIconStyles])},null,8,["style"])):(e.openBlock(),e.createBlock(e.unref(t.IconApAdLineAnnotation),{key:3,style:e.normalizeStyle([n,l.lv.helpMessageIconStyles])},null,8,["style"]))]))}});exports.default=c;
@@ -1,4 +1,4 @@
1
- import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
1
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, StyleValue, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
2
  import { ApLadderProps, ApLadderLabelValue, ApLadderSlots } from './interface';
3
3
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
4
4
  import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
@@ -11,7 +11,8 @@ declare const ApLadder: {
11
11
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
12
12
  layout: "vertical" | "horizontal";
13
13
  tooltip: boolean;
14
- tooltipProps: Required<Pick<Partial< ExtractPropTypes<{
14
+ labelAlign: "left" | "right";
15
+ tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
15
16
  title: VueTypeValidableDef<any>;
16
17
  trigger: PropType< TriggerType | TriggerType[]>;
17
18
  open: {
@@ -76,8 +77,16 @@ declare const ApLadder: {
76
77
  major: string;
77
78
  minor: string;
78
79
  majorColor: string;
80
+ majorStyles: string | false | CSSProperties | StyleValue[] | null;
79
81
  minorColor: string;
82
+ minorStyles: string | false | CSSProperties | StyleValue[] | null;
80
83
  labelValues: Array< ApLadderLabelValue>;
84
+ labelStyles: string | false | CSSProperties | StyleValue[] | null;
85
+ valueStyles: string | false | CSSProperties | StyleValue[] | null;
86
+ linkStyles: string | false | CSSProperties | StyleValue[] | null;
87
+ unitStyles: string | false | CSSProperties | StyleValue[] | null;
88
+ tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
89
+ tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
81
90
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
82
91
  P: {};
83
92
  B: {};
@@ -88,7 +97,8 @@ declare const ApLadder: {
88
97
  }, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
89
98
  layout: "vertical" | "horizontal";
90
99
  tooltip: boolean;
91
- tooltipProps: Required<Pick<Partial< ExtractPropTypes<{
100
+ labelAlign: "left" | "right";
101
+ tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
92
102
  title: VueTypeValidableDef<any>;
93
103
  trigger: PropType< TriggerType | TriggerType[]>;
94
104
  open: {
@@ -153,8 +163,16 @@ declare const ApLadder: {
153
163
  major: string;
154
164
  minor: string;
155
165
  majorColor: string;
166
+ majorStyles: string | false | CSSProperties | StyleValue[] | null;
156
167
  minorColor: string;
168
+ minorStyles: string | false | CSSProperties | StyleValue[] | null;
157
169
  labelValues: Array< ApLadderLabelValue>;
170
+ labelStyles: string | false | CSSProperties | StyleValue[] | null;
171
+ valueStyles: string | false | CSSProperties | StyleValue[] | null;
172
+ linkStyles: string | false | CSSProperties | StyleValue[] | null;
173
+ unitStyles: string | false | CSSProperties | StyleValue[] | null;
174
+ tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
175
+ tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
158
176
  }>;
159
177
  __isFragment?: never;
160
178
  __isTeleport?: never;
@@ -162,7 +180,8 @@ declare const ApLadder: {
162
180
  } & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
163
181
  layout: "vertical" | "horizontal";
164
182
  tooltip: boolean;
165
- tooltipProps: Required<Pick<Partial< ExtractPropTypes<{
183
+ labelAlign: "left" | "right";
184
+ tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
166
185
  title: VueTypeValidableDef<any>;
167
186
  trigger: PropType< TriggerType | TriggerType[]>;
168
187
  open: {
@@ -227,8 +246,16 @@ declare const ApLadder: {
227
246
  major: string;
228
247
  minor: string;
229
248
  majorColor: string;
249
+ majorStyles: string | false | CSSProperties | StyleValue[] | null;
230
250
  minorColor: string;
251
+ minorStyles: string | false | CSSProperties | StyleValue[] | null;
231
252
  labelValues: Array< ApLadderLabelValue>;
253
+ labelStyles: string | false | CSSProperties | StyleValue[] | null;
254
+ valueStyles: string | false | CSSProperties | StyleValue[] | null;
255
+ linkStyles: string | false | CSSProperties | StyleValue[] | null;
256
+ unitStyles: string | false | CSSProperties | StyleValue[] | null;
257
+ tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
258
+ tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
232
259
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
233
260
  $slots: Readonly< ApLadderSlots> & ApLadderSlots;
234
261
  }) & ( Plugin & (new (...args: any[]) => {
@@ -1,9 +1,9 @@
1
1
  import { TooltipProps } from '@aplus-frontend/antdv/es/tooltip/Tooltip';
2
- import { VNode } from 'vue';
2
+ import { StyleValue, VNode, VNodeChild } from 'vue';
3
3
  /**
4
4
  * Tooltip 需要的属性
5
5
  */
6
- export type TooltipNeedProps = Required<Pick<TooltipProps, 'title' | 'align' | 'arrowPointAtCenter' | 'arrow' | 'autoAdjustOverflow' | 'color' | 'destroyTooltipOnHide' | 'getPopupContainer' | 'mouseEnterDelay' | 'mouseLeaveDelay' | 'overlayClassName' | 'overlayStyle' | 'overlayInnerStyle' | 'placement' | 'trigger'>>;
6
+ export type TooltipNeedProps = Partial<Pick<TooltipProps, 'title' | 'align' | 'arrowPointAtCenter' | 'arrow' | 'autoAdjustOverflow' | 'color' | 'destroyTooltipOnHide' | 'getPopupContainer' | 'mouseEnterDelay' | 'mouseLeaveDelay' | 'overlayClassName' | 'overlayStyle' | 'overlayInnerStyle' | 'placement' | 'trigger'>>;
7
7
  /**
8
8
  * 健值对
9
9
  */
@@ -11,11 +11,11 @@ export interface ApLadderLabelValue {
11
11
  /**
12
12
  * 健名称
13
13
  */
14
- label: string;
14
+ label?: string;
15
15
  /**
16
16
  * 值
17
17
  */
18
- value: string | number | undefined | null;
18
+ value?: string | number | VNodeChild | VNode | null | (() => VNodeChild | VNode);
19
19
  /**
20
20
  * 是否采用原始值
21
21
  */
@@ -64,6 +64,70 @@ export interface ApLadderLabelValue {
64
64
  * 自定义链接颜色
65
65
  */
66
66
  linkColor?: string;
67
+ /**
68
+ * 跳转第三方链接 - 回调
69
+ */
70
+ handleClickLink?: () => void;
71
+ /**
72
+ * label 标签的文本对齐方式 仅支持健值对(labelValues)类型
73
+ * @default `right`
74
+ * @since v0.4.7 新增
75
+ */
76
+ labelAlign?: 'left' | 'right';
77
+ /**
78
+ * 健值对 - label样式
79
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
80
+ * @since v0.4.7 新增
81
+ */
82
+ labelStyles?: StyleValue;
83
+ /**
84
+ * 健值对 - value样式
85
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
86
+ * @since v0.4.7 新增
87
+ */
88
+ valueStyles?: StyleValue;
89
+ /**
90
+ * 健值对 - link样式
91
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
92
+ * @since v0.4.7 新增
93
+ */
94
+ linkStyles?: StyleValue;
95
+ /**
96
+ * 健值对 - unit样式
97
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
98
+ * @since v0.4.7 新增
99
+ */
100
+ unitStyles?: StyleValue;
101
+ /**
102
+ * Tooltip - Label style
103
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
104
+ * @since v0.4.7 新增
105
+ */
106
+ tooltipLabelStyles?: StyleValue;
107
+ /**
108
+ * Tooltip - Value style
109
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
110
+ * @since v0.4.7 新增
111
+ */
112
+ tooltipValueStyles?: StyleValue;
113
+ /**
114
+ * 帮助气泡
115
+ */
116
+ helpMessage?: string | number | VNodeChild | VNode | null | (() => VNodeChild | VNode);
117
+ /**
118
+ * 帮助气泡 - 图标
119
+ * @description 'question' | 'warning' 自定义
120
+ * @default `question`
121
+ */
122
+ helpMessageIcon?: 'question' | 'warning' | VNodeChild | VNode | (() => VNodeChild | VNode);
123
+ /**
124
+ * 帮助气泡 - 图标 - 样式
125
+ */
126
+ helpMessageIconStyles?: StyleValue;
127
+ /**
128
+ * 帮助气泡 - 扩展tooltip props
129
+ */
130
+ helpMessageTooltipProps?: TooltipProps;
67
131
  }
68
132
  /**
69
133
  * ApLadder Props 属性类型声明
@@ -81,12 +145,26 @@ export interface ApLadderProps {
81
145
  minor?: string;
82
146
  /**
83
147
  * 自定义重要信息颜色
148
+ * @deprecated 注意:v0.4.7版本之后就别用这个属性了 后面将不再支持
149
+ * @description 请使用`majorStyles`代替
84
150
  */
85
151
  majorColor?: string;
152
+ /**
153
+ * 自定义重要信息 style
154
+ * @since v0.4.7 新增
155
+ */
156
+ majorStyles?: StyleValue;
86
157
  /**
87
158
  * 自定义次要信息颜色
159
+ * @deprecated 注意:v0.4.7版本之后就别用这个属性了 后面将不再支持
160
+ * @description 请使用`minorStyles`代替
88
161
  */
89
162
  minorColor?: string;
163
+ /**
164
+ * 自定义次要信息 style
165
+ * @since v0.4.7 新增
166
+ */
167
+ minorStyles?: StyleValue;
90
168
  /**
91
169
  * 布局方式
92
170
  * - `vertical` 垂直布局
@@ -103,10 +181,52 @@ export interface ApLadderProps {
103
181
  * 健值对 - 数组展示
104
182
  */
105
183
  labelValues?: Array<ApLadderLabelValue>;
184
+ /**
185
+ * label 标签的文本对齐方式 仅支持健值对(labelValues)类型
186
+ * @default `right`
187
+ * @since v0.4.7 新增
188
+ */
189
+ labelAlign?: 'left' | 'right';
190
+ /**
191
+ * 健值对 - label样式
192
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
193
+ * @since v0.4.7 新增
194
+ */
195
+ labelStyles?: StyleValue;
196
+ /**
197
+ * 健值对 - value样式
198
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
199
+ * @since v0.4.7 新增
200
+ */
201
+ valueStyles?: StyleValue;
202
+ /**
203
+ * 健值对 - link样式
204
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
205
+ * @since v0.4.7 新增
206
+ */
207
+ linkStyles?: StyleValue;
208
+ /**
209
+ * 健值对 - unit样式
210
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
211
+ * @since v0.4.7 新增
212
+ */
213
+ unitStyles?: StyleValue;
106
214
  /**
107
215
  * 扩展 Tooltip
108
216
  */
109
217
  tooltipProps?: TooltipNeedProps;
218
+ /**
219
+ * Tooltip - Label style
220
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
221
+ * @since v0.4.7 新增
222
+ */
223
+ tooltipLabelStyles?: StyleValue;
224
+ /**
225
+ * Tooltip - Value style
226
+ * @description `ApLadderLabelValue` 里面自定义样式会覆盖
227
+ * @since v0.4.7 新增
228
+ */
229
+ tooltipValueStyles?: StyleValue;
110
230
  }
111
231
  /**
112
232
  * ApLadder Slots 类型声明
@@ -72,12 +72,12 @@ declare const _default: DefineComponent<ExtractPropTypes<{
72
72
  default: number;
73
73
  };
74
74
  }>> & Readonly<{}>, {
75
+ step: number;
75
76
  value: (string | number)[];
76
77
  placeholder: string[];
77
78
  max: number;
78
79
  min: number;
79
80
  editable: boolean;
80
- step: number;
81
81
  precision: number;
82
82
  perfix: string;
83
83
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -38,12 +38,12 @@ declare const ApSizeInput: {
38
38
  default: number;
39
39
  };
40
40
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
41
+ step: number;
41
42
  value: (string | number)[];
42
43
  placeholder: string[];
43
44
  max: number;
44
45
  min: number;
45
46
  editable: boolean;
46
- step: number;
47
47
  precision: number;
48
48
  perfix: string;
49
49
  }, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
@@ -90,12 +90,12 @@ declare const ApSizeInput: {
90
90
  default: number;
91
91
  };
92
92
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
93
+ step: number;
93
94
  value: (string | number)[];
94
95
  placeholder: string[];
95
96
  max: number;
96
97
  min: number;
97
98
  editable: boolean;
98
- step: number;
99
99
  precision: number;
100
100
  perfix: string;
101
101
  }>;
@@ -139,12 +139,12 @@ declare const ApSizeInput: {
139
139
  default: number;
140
140
  };
141
141
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
142
+ step: number;
142
143
  value: (string | number)[];
143
144
  placeholder: string[];
144
145
  max: number;
145
146
  min: number;
146
147
  editable: boolean;
147
- step: number;
148
148
  precision: number;
149
149
  perfix: string;
150
150
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");require("../../index.js");const u=require("@aplus-frontend/antdv"),m=require("../../../config-provider/hooks/use-locale.js"),p=require("../../../config-provider/hooks/use-namespace.js"),s=require("../../ap-title/index.js"),f=e.defineComponent({__name:"index",props:{leftTitle:{default:""},renderSelectedItem:{},selectedList:{default:()=>[]}},emits:["clear","deleteItem"],setup(y,{emit:i}){const{t:r}=m.useLocale(),a=i,d=()=>{a("clear")},c=t=>{a("deleteItem",t)},{m:l}=p.useNamespace("ap-table-modal");return(t,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(l)("table-layout"),{"complex-layout":!!t.renderSelectedItem}])},[t.renderSelectedItem?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-left"))},[e.createVNode(e.unref(s.ApTitle),{style:{"margin-bottom":"16px"},title:t.leftTitle},null,8,["title"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-left-content"))},[e.renderSlot(t.$slots,"default")],2)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-right"))},[e.createVNode(e.unref(s.ApTitle),{title:`${e.unref(r)("ap.apTableModal.selected")} (${t.selectedList.length})`},{suffix:e.withCtx(()=>[e.createVNode(e.unref(u.Button),{type:"link",style:{padding:"0px",height:"22px","border-width":"0px"},onClick:d},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("ap.apTableModal.clear")),1)]),_:1})]),_:1},8,["title"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-right-content"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selectedList,n=>{var o;return e.openBlock(),e.createBlock(e.resolveDynamicComponent((o=t.renderSelectedItem)==null?void 0:o.call(t,n,{deleteItem:c})),{key:n})}),128))],2)],2)],64)):e.renderSlot(t.$slots,"default",{key:1})],2))}});exports.default=f;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");require("../../index.js");const r=require("@aplus-frontend/antdv"),m=require("../../../config-provider/hooks/use-locale.js"),p=require("../../../config-provider/hooks/use-namespace.js"),i=require("../../ap-title/index.js"),f=e.defineComponent({__name:"index",props:{leftTitle:{default:""},renderSelectedItem:{},selectedList:{default:()=>[]}},emits:["clear","deleteItem"],setup(y,{emit:d}){const{t:a}=m.useLocale(),n=d,c=()=>{n("clear")},u=t=>{n("deleteItem",t)},{m:l}=p.useNamespace("ap-table-modal");return(t,k)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.renderSelectedItem?e.unref(l)("table-layout"):"",{"complex-layout":!!t.renderSelectedItem}])},[t.renderSelectedItem?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-left"))},[e.createVNode(e.unref(i.ApTitle),{style:{"margin-bottom":"16px"},title:t.leftTitle},null,8,["title"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-left-content"))},[e.renderSlot(t.$slots,"default")],2)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-right"))},[e.createVNode(e.unref(i.ApTitle),{title:`${e.unref(a)("ap.apTableModal.selected")} (${t.selectedList.length})`},{suffix:e.withCtx(()=>[e.createVNode(e.unref(r.Button),{type:"link",style:{padding:"0px",height:"22px","border-width":"0px"},onClick:c},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("ap.apTableModal.clear")),1)]),_:1})]),_:1},8,["title"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-right-content"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selectedList,o=>{var s;return e.openBlock(),e.createBlock(e.resolveDynamicComponent((s=t.renderSelectedItem)==null?void 0:s.call(t,o,{deleteItem:u})),{key:o})}),128)),t.selectedList.length===0?(e.openBlock(),e.createBlock(e.unref(r.Empty),{key:0,image:e.unref(r.Empty).PRESENTED_IMAGE_SIMPLE,style:{"margin-top":"100px"}},null,8,["image"])):e.createCommentVNode("",!0)],2)],2)],64)):e.renderSlot(t.$slots,"default",{key:1})],2))}});exports.default=f;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "main": "./lib/index.js",
5
5
  "type": "module",
6
6
  "files": [
@@ -65,8 +65,8 @@
65
65
  "sortablejs": "^1.15.2",
66
66
  "vue-virtual-scroller": "2.0.0-beta.8",
67
67
  "vuedraggable": "^4.1.0",
68
- "@aplus-frontend/utils": "1.0.44",
69
- "@aplus-frontend/hooks": "1.0.7"
68
+ "@aplus-frontend/hooks": "1.0.7",
69
+ "@aplus-frontend/utils": "1.0.47"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@aplus-frontend/antdv": "^1.0.10",
@@ -6,12 +6,21 @@
6
6
  /** Aplus端样式 */
7
7
  /** Admin端样式 */
8
8
  }
9
+ .aplus-ap-ladder__cross-bar {
10
+ display: flex;
11
+ align-items: center;
12
+ }
9
13
  .aplus-ap-ladder__ellipsis {
10
14
  overflow: hidden;
11
15
  text-overflow: ellipsis;
12
16
  white-space: nowrap;
13
17
  word-break: break-all;
14
18
  }
19
+ .aplus-ap-ladder__help-message {
20
+ display: flex;
21
+ align-items: center;
22
+ margin-left: 4px;
23
+ }
15
24
  .aplus-ap-ladder__major {
16
25
  line-height: 22px;
17
26
  color: #182948;
@@ -21,6 +30,7 @@
21
30
  color: #8896B0;
22
31
  }
23
32
  .aplus-ap-ladder__label {
33
+ display: inline-block;
24
34
  color: #8896B0;
25
35
  word-break: break-all;
26
36
  }
@@ -29,7 +39,6 @@
29
39
  word-break: break-all;
30
40
  }
31
41
  .aplus-ap-ladder__unit {
32
- margin-left: 5px;
33
42
  color: #182948;
34
43
  }
35
44
  .aplus-ap-ladder__link {
@@ -6,6 +6,10 @@
6
6
  position: relative;
7
7
  width: inherit;
8
8
  font-size: 14px;
9
+ &__cross-bar {
10
+ display: flex;
11
+ align-items: center;
12
+ }
9
13
  /** 自动溢出省略 */
10
14
  &__ellipsis {
11
15
  // min-width: 120px;
@@ -14,6 +18,11 @@
14
18
  white-space: nowrap;
15
19
  word-break: break-all;
16
20
  }
21
+ &__help-message {
22
+ display: flex;
23
+ align-items: center;
24
+ margin-left: 4px;
25
+ }
17
26
 
18
27
  /** Aplus端样式 */
19
28
  &__major {
@@ -25,6 +34,7 @@
25
34
  color: #8896B0;
26
35
  }
27
36
  &__label {
37
+ display: inline-block;
28
38
  color: #8896B0;
29
39
  word-break: break-all;
30
40
  }
@@ -33,7 +43,6 @@
33
43
  word-break: break-all;
34
44
  }
35
45
  &__unit {
36
- margin-left: 5px;
37
46
  color: #182948;
38
47
  }
39
48
  &__link {
package/theme/index.css CHANGED
@@ -554,12 +554,21 @@
554
554
  /** Aplus端样式 */
555
555
  /** Admin端样式 */
556
556
  }
557
+ .aplus-ap-ladder__cross-bar {
558
+ display: flex;
559
+ align-items: center;
560
+ }
557
561
  .aplus-ap-ladder__ellipsis {
558
562
  overflow: hidden;
559
563
  text-overflow: ellipsis;
560
564
  white-space: nowrap;
561
565
  word-break: break-all;
562
566
  }
567
+ .aplus-ap-ladder__help-message {
568
+ display: flex;
569
+ align-items: center;
570
+ margin-left: 4px;
571
+ }
563
572
  .aplus-ap-ladder__major {
564
573
  line-height: 22px;
565
574
  color: #182948;
@@ -569,6 +578,7 @@
569
578
  color: #8896B0;
570
579
  }
571
580
  .aplus-ap-ladder__label {
581
+ display: inline-block;
572
582
  color: #8896B0;
573
583
  word-break: break-all;
574
584
  }
@@ -577,7 +587,6 @@
577
587
  word-break: break-all;
578
588
  }
579
589
  .aplus-ap-ladder__unit {
580
- margin-left: 5px;
581
590
  color: #182948;
582
591
  }
583
592
  .aplus-ap-ladder__link {