@aplus-frontend/ui 0.4.7 → 0.4.9
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/index.mjs +21 -19
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/slider/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +4 -3
- package/es/src/ap-table/constants.d.ts +7 -7
- package/es/src/ap-table/utils.d.ts +4 -4
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +13 -4
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +220 -108
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +14 -0
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +4 -0
- package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +35 -0
- package/es/src/business/ap-ladder/index.d.ts +31 -4
- package/es/src/business/ap-ladder/interface.d.ts +124 -4
- package/es/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/es/src/business/ap-size-input/index.d.ts +3 -3
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +33 -25
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +209 -206
- package/es/src/path-map.mjs +1 -0
- package/es/src/scroll-bar/interface.d.ts +1 -1
- package/es/src/scroll-view/hooks/use-scroll-wrapper.d.ts +19 -0
- package/es/src/scroll-view/hooks/use-scroll-wrapper.mjs +54 -0
- package/es/src/scroll-view/index.d.ts +3 -0
- package/es/src/scroll-view/index.mjs +2 -0
- package/es/src/scroll-view/index.vue.d.ts +205 -0
- package/es/src/scroll-view/index.vue.mjs +201 -0
- package/es/src/scroll-view/index.vue2.mjs +4 -0
- package/es/src/scroll-view/interface.d.ts +52 -0
- package/es/src/scroll-view/interface.mjs +1 -0
- package/es/src/scroll-view/style/css.d.ts +0 -0
- package/es/src/scroll-view/style/css.js +2 -0
- package/es/src/scroll-view/style/index.d.ts +0 -0
- package/es/src/scroll-view/style/index.js +2 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/lib/src/ap-table/components/dynamic-component/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +7 -7
- package/lib/src/ap-table/utils.d.ts +4 -4
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +13 -4
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +14 -0
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +1 -0
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +1 -0
- package/lib/src/business/ap-ladder/index.d.ts +31 -4
- package/lib/src/business/ap-ladder/interface.d.ts +124 -4
- package/lib/src/business/ap-size-input/ApSizeInput.d.ts +1 -1
- package/lib/src/business/ap-size-input/index.d.ts +3 -3
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/scroll-bar/interface.d.ts +1 -1
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.d.ts +19 -0
- package/lib/src/scroll-view/hooks/use-scroll-wrapper.js +1 -0
- package/lib/src/scroll-view/index.d.ts +3 -0
- package/lib/src/scroll-view/index.js +1 -0
- package/lib/src/scroll-view/index.vue.d.ts +205 -0
- package/lib/src/scroll-view/index.vue.js +1 -0
- package/lib/src/scroll-view/index.vue2.js +1 -0
- package/lib/src/scroll-view/interface.d.ts +52 -0
- package/lib/src/scroll-view/interface.js +1 -0
- package/lib/src/scroll-view/style/css.cjs +2 -0
- package/lib/src/scroll-view/style/css.d.ts +0 -0
- package/lib/src/scroll-view/style/index.cjs +2 -0
- package/lib/src/scroll-view/style/index.d.ts +0 -0
- package/package.json +5 -4
- package/theme/ap-ladder/ap-ladder.css +10 -1
- package/theme/ap-ladder/ap-ladder.less +10 -1
- package/theme/index.css +31 -2
- package/theme/index.less +1 -0
- package/theme/scroll-bar/index.css +1 -1
- package/theme/scroll-bar/index.less +1 -1
- package/theme/scroll-view/index.css +20 -0
- package/theme/scroll-view/index.less +23 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=e.defineComponent({name:"ApTableDynamicComponent",inheritAttrs:!1,__name:"index",props:{customRender:{type:Function}},setup(o){return(n,r)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.customRender(n.$attrs))))}});exports.default=t;
|
|
@@ -175,6 +175,7 @@ export declare const apTableFormItemMap: {
|
|
|
175
175
|
readonly class?: unknown;
|
|
176
176
|
readonly style?: unknown;
|
|
177
177
|
readonly size?: ButtonSize;
|
|
178
|
+
readonly step?: ValueType | undefined;
|
|
178
179
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
179
180
|
readonly onChange?: ((value: ValueType) => void) | undefined;
|
|
180
181
|
readonly onFocus?: ((e: FocusEvent) => void) | undefined;
|
|
@@ -193,7 +194,6 @@ export declare const apTableFormItemMap: {
|
|
|
193
194
|
readonly onPressEnter?: KeyboardEventHandler | undefined;
|
|
194
195
|
readonly readonly?: boolean | undefined;
|
|
195
196
|
readonly stringMode?: boolean | undefined;
|
|
196
|
-
readonly step?: ValueType | undefined;
|
|
197
197
|
readonly controls?: boolean | undefined;
|
|
198
198
|
readonly parser?: ((displayValue: string) => ValueType) | undefined;
|
|
199
199
|
readonly formatter?: ((value: ValueType, info: {
|
|
@@ -563,12 +563,12 @@ export declare const apTableFormItemMap: {
|
|
|
563
563
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
564
564
|
"update:value": (...args: any[]) => void;
|
|
565
565
|
}, string, {
|
|
566
|
+
step: ValueType;
|
|
566
567
|
disabled: boolean;
|
|
567
568
|
bordered: boolean;
|
|
568
569
|
keyboard: boolean;
|
|
569
570
|
max: ValueType;
|
|
570
571
|
min: ValueType;
|
|
571
|
-
step: ValueType;
|
|
572
572
|
controls: boolean;
|
|
573
573
|
emptyText: string;
|
|
574
574
|
thousands: boolean;
|
|
@@ -593,18 +593,18 @@ export declare const apTableFormItemMap: {
|
|
|
593
593
|
$nextTick: nextTick;
|
|
594
594
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
595
595
|
} & Readonly<{
|
|
596
|
+
step: ValueType;
|
|
596
597
|
disabled: boolean;
|
|
597
598
|
bordered: boolean;
|
|
598
599
|
keyboard: boolean;
|
|
599
600
|
max: ValueType;
|
|
600
601
|
min: ValueType;
|
|
601
|
-
step: ValueType;
|
|
602
602
|
controls: boolean;
|
|
603
603
|
emptyText: string;
|
|
604
604
|
thousands: boolean;
|
|
605
605
|
}> & Omit<Readonly< ApFieldNumberProps> & Readonly<{
|
|
606
606
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
607
|
-
}>, "blur" | "focus" | ("disabled" | "bordered" | "keyboard" | "max" | "min" | "
|
|
607
|
+
}>, "blur" | "focus" | ("step" | "disabled" | "bordered" | "keyboard" | "max" | "min" | "controls" | "emptyText" | "thousands")> & ShallowUnwrapRef<{
|
|
608
608
|
focus: () => void;
|
|
609
609
|
blur: () => void;
|
|
610
610
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -2093,12 +2093,12 @@ export declare const apTableRenderItemMap: {
|
|
|
2093
2093
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2094
2094
|
"update:value": (...args: any[]) => void;
|
|
2095
2095
|
}, PublicProps, {
|
|
2096
|
+
step: ValueType;
|
|
2096
2097
|
disabled: boolean;
|
|
2097
2098
|
bordered: boolean;
|
|
2098
2099
|
keyboard: boolean;
|
|
2099
2100
|
max: ValueType;
|
|
2100
2101
|
min: ValueType;
|
|
2101
|
-
step: ValueType;
|
|
2102
2102
|
controls: boolean;
|
|
2103
2103
|
emptyText: string;
|
|
2104
2104
|
thousands: boolean;
|
|
@@ -2436,12 +2436,12 @@ export declare const apTableRenderItemMap: {
|
|
|
2436
2436
|
focus: () => void;
|
|
2437
2437
|
blur: () => void;
|
|
2438
2438
|
}, {}, {}, {}, {
|
|
2439
|
+
step: ValueType;
|
|
2439
2440
|
disabled: boolean;
|
|
2440
2441
|
bordered: boolean;
|
|
2441
2442
|
keyboard: boolean;
|
|
2442
2443
|
max: ValueType;
|
|
2443
2444
|
min: ValueType;
|
|
2444
|
-
step: ValueType;
|
|
2445
2445
|
controls: boolean;
|
|
2446
2446
|
emptyText: string;
|
|
2447
2447
|
thousands: boolean;
|
|
@@ -2457,12 +2457,12 @@ export declare const apTableRenderItemMap: {
|
|
|
2457
2457
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2458
2458
|
"update:value": (...args: any[]) => void;
|
|
2459
2459
|
}, string, {
|
|
2460
|
+
step: ValueType;
|
|
2460
2461
|
disabled: boolean;
|
|
2461
2462
|
bordered: boolean;
|
|
2462
2463
|
keyboard: boolean;
|
|
2463
2464
|
max: ValueType;
|
|
2464
2465
|
min: ValueType;
|
|
2465
|
-
step: ValueType;
|
|
2466
2466
|
controls: boolean;
|
|
2467
2467
|
emptyText: string;
|
|
2468
2468
|
thousands: boolean;
|
|
@@ -882,6 +882,7 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
882
882
|
readonly class?: unknown;
|
|
883
883
|
readonly style?: unknown;
|
|
884
884
|
readonly size?: ButtonSize;
|
|
885
|
+
readonly step?: ValueType | undefined;
|
|
885
886
|
readonly onBlur?: ((e: FocusEvent) => void) | undefined;
|
|
886
887
|
readonly onChange?: ((value: ValueType) => void) | undefined;
|
|
887
888
|
readonly onFocus?: ((e: FocusEvent) => void) | undefined;
|
|
@@ -900,7 +901,6 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
900
901
|
readonly onPressEnter?: KeyboardEventHandler | undefined;
|
|
901
902
|
readonly readonly?: boolean | undefined;
|
|
902
903
|
readonly stringMode?: boolean | undefined;
|
|
903
|
-
readonly step?: ValueType | undefined;
|
|
904
904
|
readonly controls?: boolean | undefined;
|
|
905
905
|
readonly parser?: ((displayValue: string) => ValueType) | undefined;
|
|
906
906
|
readonly formatter?: ((value: ValueType, info: {
|
|
@@ -1270,12 +1270,12 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
1270
1270
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1271
1271
|
"update:value": (...args: any[]) => void;
|
|
1272
1272
|
}, string, {
|
|
1273
|
+
step: ValueType;
|
|
1273
1274
|
disabled: boolean;
|
|
1274
1275
|
bordered: boolean;
|
|
1275
1276
|
keyboard: boolean;
|
|
1276
1277
|
max: ValueType;
|
|
1277
1278
|
min: ValueType;
|
|
1278
|
-
step: ValueType;
|
|
1279
1279
|
controls: boolean;
|
|
1280
1280
|
emptyText: string;
|
|
1281
1281
|
thousands: boolean;
|
|
@@ -1300,18 +1300,18 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
1300
1300
|
$nextTick: nextTick;
|
|
1301
1301
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
|
|
1302
1302
|
} & Readonly<{
|
|
1303
|
+
step: ValueType;
|
|
1303
1304
|
disabled: boolean;
|
|
1304
1305
|
bordered: boolean;
|
|
1305
1306
|
keyboard: boolean;
|
|
1306
1307
|
max: ValueType;
|
|
1307
1308
|
min: ValueType;
|
|
1308
|
-
step: ValueType;
|
|
1309
1309
|
controls: boolean;
|
|
1310
1310
|
emptyText: string;
|
|
1311
1311
|
thousands: boolean;
|
|
1312
1312
|
}> & Omit<Readonly< ApFieldNumberProps> & Readonly<{
|
|
1313
1313
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
1314
|
-
}>, "blur" | "focus" | ("disabled" | "bordered" | "keyboard" | "max" | "min" | "
|
|
1314
|
+
}>, "blur" | "focus" | ("step" | "disabled" | "bordered" | "keyboard" | "max" | "min" | "controls" | "emptyText" | "thousands")> & ShallowUnwrapRef<{
|
|
1315
1315
|
focus: () => void;
|
|
1316
1316
|
blur: () => void;
|
|
1317
1317
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApLadderProps, ApLadderSlots
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, ComponentProvideOptions } from 'vue';
|
|
1
|
+
import { ApLadderLabelValue, ApLadderProps, ApLadderSlots } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, StyleValue, ComponentProvideOptions } from 'vue';
|
|
3
3
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
4
4
|
import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
|
|
5
5
|
import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
|
|
@@ -16,7 +16,8 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
16
16
|
declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApLadderProps> & Readonly<{}>, {
|
|
17
17
|
layout: "vertical" | "horizontal";
|
|
18
18
|
tooltip: boolean;
|
|
19
|
-
|
|
19
|
+
labelAlign: "left" | "right";
|
|
20
|
+
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
20
21
|
title: VueTypeValidableDef<any>;
|
|
21
22
|
trigger: PropType< TriggerType | TriggerType[]>;
|
|
22
23
|
open: {
|
|
@@ -81,8 +82,16 @@ declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, Co
|
|
|
81
82
|
major: string;
|
|
82
83
|
minor: string;
|
|
83
84
|
majorColor: string;
|
|
85
|
+
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
84
86
|
minorColor: string;
|
|
85
|
-
|
|
87
|
+
minorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
88
|
+
labelValues: Array<ApLadderLabelValue>;
|
|
89
|
+
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
90
|
+
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
91
|
+
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
92
|
+
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
93
|
+
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
94
|
+
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
86
95
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
87
96
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
88
97
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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 =
|
|
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
|
|
14
|
+
label?: string;
|
|
15
15
|
/**
|
|
16
16
|
* 值
|
|
17
17
|
*/
|
|
18
|
-
value
|
|
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
|
|
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/lib/src/index.d.ts
CHANGED