@aplus-frontend/ui 0.5.24 → 0.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.mjs +14 -14
- package/es/src/ap-grid/editable/index.vue.mjs +10 -10
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +1 -83
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +34 -59
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +3 -65
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +34 -99
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +3 -75
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +68 -195
- package/es/src/business/ap-ladder/index.d.ts +1 -235
- package/es/src/business/ap-ladder/interface.d.ts +4 -114
- package/es/src/business/ap-ladder/utils.d.ts +5 -0
- package/es/src/business/ap-ladder/utils.mjs +38 -3
- package/es/src/business/ap-product-info/ApProductInfo.d.ts +46 -0
- package/es/src/business/ap-product-info/constans.d.ts +23 -0
- package/es/src/business/ap-product-info/index.d.ts +1 -0
- package/es/src/business/ap-product-info/interface.d.ts +11 -0
- package/es/src/editable-table/form-item.vue.mjs +83 -83
- package/es/src/editable-table/index.vue.mjs +84 -79
- 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/business/ap-ladder/ApLadder.vue.d.ts +1 -83
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +3 -65
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +3 -75
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -235
- package/lib/src/business/ap-ladder/interface.d.ts +4 -114
- package/lib/src/business/ap-ladder/utils.d.ts +5 -0
- package/lib/src/business/ap-ladder/utils.js +1 -1
- package/lib/src/business/ap-product-info/ApProductInfo.d.ts +46 -0
- package/lib/src/business/ap-product-info/constans.d.ts +23 -0
- package/lib/src/business/ap-product-info/index.d.ts +1 -0
- package/lib/src/business/ap-product-info/interface.d.ts +11 -0
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/package.json +5 -5
- package/theme/ap-grid/index.css +4 -0
- package/theme/ap-grid/index.less +4 -0
- package/theme/ap-ladder/ap-ladder.css +14 -5
- package/theme/ap-ladder/ap-ladder.less +16 -7
- package/theme/index.css +18 -5
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
1
|
import { ApLadderLabelValue } from '../interface';
|
|
2
|
+
import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
5
5
|
slots: {
|
|
6
6
|
title?(_: {}): any;
|
|
7
7
|
};
|
|
8
8
|
refs: {};
|
|
9
|
-
rootEl:
|
|
9
|
+
rootEl: HTMLDivElement;
|
|
10
10
|
};
|
|
11
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
12
|
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
@@ -18,38 +18,6 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
-
labelStyles: {
|
|
22
|
-
type: PropType<CSSProperties>;
|
|
23
|
-
default: () => {};
|
|
24
|
-
};
|
|
25
|
-
valueStyles: {
|
|
26
|
-
type: PropType<CSSProperties>;
|
|
27
|
-
default: () => {};
|
|
28
|
-
};
|
|
29
|
-
linkStyles: {
|
|
30
|
-
type: PropType<CSSProperties>;
|
|
31
|
-
default: () => {};
|
|
32
|
-
};
|
|
33
|
-
unitStyles: {
|
|
34
|
-
type: PropType<CSSProperties>;
|
|
35
|
-
default: () => {};
|
|
36
|
-
};
|
|
37
|
-
tooltipLabelStyles: {
|
|
38
|
-
type: PropType<CSSProperties>;
|
|
39
|
-
default: () => {};
|
|
40
|
-
};
|
|
41
|
-
tooltipValueStyles: {
|
|
42
|
-
type: PropType<CSSProperties>;
|
|
43
|
-
default: () => {};
|
|
44
|
-
};
|
|
45
|
-
tooltipProps: {
|
|
46
|
-
type: ObjectConstructor;
|
|
47
|
-
default: () => {};
|
|
48
|
-
};
|
|
49
|
-
tooltip: {
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
21
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
54
22
|
handleClick: (...args: any[]) => void;
|
|
55
23
|
"update:valueRefs": (...args: any[]) => void;
|
|
@@ -62,53 +30,13 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
62
30
|
type: StringConstructor;
|
|
63
31
|
default: string;
|
|
64
32
|
};
|
|
65
|
-
labelStyles: {
|
|
66
|
-
type: PropType<CSSProperties>;
|
|
67
|
-
default: () => {};
|
|
68
|
-
};
|
|
69
|
-
valueStyles: {
|
|
70
|
-
type: PropType<CSSProperties>;
|
|
71
|
-
default: () => {};
|
|
72
|
-
};
|
|
73
|
-
linkStyles: {
|
|
74
|
-
type: PropType<CSSProperties>;
|
|
75
|
-
default: () => {};
|
|
76
|
-
};
|
|
77
|
-
unitStyles: {
|
|
78
|
-
type: PropType<CSSProperties>;
|
|
79
|
-
default: () => {};
|
|
80
|
-
};
|
|
81
|
-
tooltipLabelStyles: {
|
|
82
|
-
type: PropType<CSSProperties>;
|
|
83
|
-
default: () => {};
|
|
84
|
-
};
|
|
85
|
-
tooltipValueStyles: {
|
|
86
|
-
type: PropType<CSSProperties>;
|
|
87
|
-
default: () => {};
|
|
88
|
-
};
|
|
89
|
-
tooltipProps: {
|
|
90
|
-
type: ObjectConstructor;
|
|
91
|
-
default: () => {};
|
|
92
|
-
};
|
|
93
|
-
tooltip: {
|
|
94
|
-
type: BooleanConstructor;
|
|
95
|
-
default: boolean;
|
|
96
|
-
};
|
|
97
33
|
}>> & Readonly<{
|
|
98
34
|
onHandleClick?: ((...args: any[]) => any) | undefined;
|
|
99
35
|
"onUpdate:valueRefs"?: ((...args: any[]) => any) | undefined;
|
|
100
36
|
}>, {
|
|
101
|
-
tooltip: boolean;
|
|
102
37
|
labelAlign: string;
|
|
103
|
-
tooltipProps: Record<string, any>;
|
|
104
38
|
labelValues: ApLadderLabelValue[];
|
|
105
|
-
|
|
106
|
-
valueStyles: CSSProperties;
|
|
107
|
-
linkStyles: CSSProperties;
|
|
108
|
-
unitStyles: CSSProperties;
|
|
109
|
-
tooltipLabelStyles: CSSProperties;
|
|
110
|
-
tooltipValueStyles: CSSProperties;
|
|
111
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
39
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
112
40
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
113
41
|
export default _default;
|
|
114
42
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -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");require("../../../config-provider/index.js");const r=require("../utils.js"),d=require("../../../config-provider/hooks/use-namespace.js"),v=["title"],p=["title"],C=["href","title","onClick"],f=["title","onClick"],g=["title"],y=e.defineComponent({name:"ApLadderValueGroupMode",__name:"ValueGroupMode",props:{labelValues:{type:Array,default:()=>[]},labelAlign:{type:String,default:""}},emits:["update:valueRefs","handleClick"],setup(l,{emit:i}){const s=i,{e:o}=d.useNamespace("ap-ladder"),c=n=>e.isVNode(n)||typeof n=="function",u=n=>e.isVNode(n.value)?e.h(n.value):typeof n.value=="function"?e.h(n.value()):null,a=n=>{s("handleClick",n)};return(n,B)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o)("value-group-mode"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.labelValues,(t,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:e.normalizeClass([e.unref(o)("value-group-item"),t.label===""&&e.unref(o)("value-group-value-end")])},[t.label?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(o)("value-group-label"),l.labelAlign?e.unref(o)(`value-group-label-${l.labelAlign}`):null]),style:e.normalizeStyle(t.labelColor?{color:t.labelColor}:null),title:String(t.label)},e.toDisplayString(t.label),15,v)):e.createCommentVNode("",!0),t.label?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(o)("value-group-label-semicolon"))},":",2)):e.createCommentVNode("",!0),e.createElementVNode("span",{class:e.normalizeClass(e.unref(o)("value-group-value")),title:String(e.unref(r.convertValue)(t.value,{...t}))},[c(t.value)?(e.openBlock(),e.createBlock(u,{key:0,value:t.value},null,8,["value"])):t.link?(e.openBlock(),e.createElementBlock("a",{key:1,href:t.link,target:"_blank",class:e.normalizeClass(e.unref(o)("value-group-link")),title:String(t.value),style:e.normalizeStyle(t.linkColor?{color:t.linkColor}:null),onClick:e.withModifiers(k=>a(t),["prevent"])},e.toDisplayString(e.unref(r.convertValue)(t.value,{...t})),15,C)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("span",{class:e.normalizeClass([t.handleValueClick?e.unref(o)("value-group-link"):null]),title:String(t.value),style:e.normalizeStyle(t.valueColor?{color:t.valueColor}:null),onClick:k=>t.handleValueClick&&t.handleValueClick(l.labelValues)},e.toDisplayString(e.unref(r.convertValue)(t.value,{...t})),15,f),t.unit?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(o)("value-group-unit")),title:String(e.unref(r.convertValue)(t.value,{...t})),style:e.normalizeStyle(t.unitColor?{color:t.unitColor}:null)},e.toDisplayString(t.unit),15,g)):e.createCommentVNode("",!0)],64))],10,p),n.$slots.title?e.renderSlot(n.$slots,"title",{key:2}):e.createCommentVNode("",!0)],2))),128))],2))}});exports.default=y;
|
|
@@ -1,92 +1,10 @@
|
|
|
1
|
-
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps,
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
2
|
import { ApLadderProps, ApLadderLabelValue, ApLadderSlots } from './interface';
|
|
3
|
-
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
4
|
-
import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
|
|
5
|
-
import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
|
|
6
|
-
import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
|
|
7
|
-
import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
|
|
8
|
-
import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
9
3
|
export * from './interface';
|
|
10
4
|
declare const ApLadder: {
|
|
11
5
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
12
6
|
layout: "vertical" | "horizontal";
|
|
13
|
-
tooltip: boolean;
|
|
14
7
|
labelAlign: "left" | "right";
|
|
15
|
-
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
16
|
-
title: VueTypeValidableDef<any>;
|
|
17
|
-
trigger: PropType< TriggerType | TriggerType[]>;
|
|
18
|
-
open: {
|
|
19
|
-
type: BooleanConstructor;
|
|
20
|
-
default: any;
|
|
21
|
-
};
|
|
22
|
-
visible: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: any;
|
|
25
|
-
};
|
|
26
|
-
placement: PropType<TooltipPlacement>;
|
|
27
|
-
color: PropType<LiteralUnion<PresetColorType>>;
|
|
28
|
-
transitionName: StringConstructor;
|
|
29
|
-
overlayStyle: {
|
|
30
|
-
type: PropType<CSSProperties>;
|
|
31
|
-
default: CSSProperties;
|
|
32
|
-
};
|
|
33
|
-
overlayInnerStyle: {
|
|
34
|
-
type: PropType<CSSProperties>;
|
|
35
|
-
default: CSSProperties;
|
|
36
|
-
};
|
|
37
|
-
overlayClassName: StringConstructor;
|
|
38
|
-
openClassName: StringConstructor;
|
|
39
|
-
prefixCls: StringConstructor;
|
|
40
|
-
mouseEnterDelay: NumberConstructor;
|
|
41
|
-
mouseLeaveDelay: NumberConstructor;
|
|
42
|
-
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
43
|
-
arrowPointAtCenter: {
|
|
44
|
-
type: BooleanConstructor;
|
|
45
|
-
default: any;
|
|
46
|
-
};
|
|
47
|
-
arrow: {
|
|
48
|
-
type: PropType<boolean | {
|
|
49
|
-
pointAtCenter?: boolean;
|
|
50
|
-
}>;
|
|
51
|
-
default: boolean | {
|
|
52
|
-
pointAtCenter?: boolean;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
autoAdjustOverflow: {
|
|
56
|
-
type: PropType<boolean | AdjustOverflow>;
|
|
57
|
-
default: boolean | AdjustOverflow;
|
|
58
|
-
};
|
|
59
|
-
destroyTooltipOnHide: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: any;
|
|
62
|
-
};
|
|
63
|
-
align: {
|
|
64
|
-
type: PropType<AlignType>;
|
|
65
|
-
default: AlignType;
|
|
66
|
-
};
|
|
67
|
-
builtinPlacements: {
|
|
68
|
-
type: PropType<BuildInPlacements>;
|
|
69
|
-
default: BuildInPlacements;
|
|
70
|
-
};
|
|
71
|
-
children: ArrayConstructor;
|
|
72
|
-
onVisibleChange: PropType<(vis: boolean) => void>;
|
|
73
|
-
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
74
|
-
onOpenChange: PropType<(vis: boolean) => void>;
|
|
75
|
-
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
76
|
-
mask: {
|
|
77
|
-
type: BooleanConstructor;
|
|
78
|
-
default: boolean;
|
|
79
|
-
};
|
|
80
|
-
maskStyle: {
|
|
81
|
-
type: PropType<CSSProperties>;
|
|
82
|
-
default: CSSProperties;
|
|
83
|
-
};
|
|
84
|
-
maskTransitionName: StringConstructor;
|
|
85
|
-
maskClosable: {
|
|
86
|
-
type: BooleanConstructor;
|
|
87
|
-
default: boolean;
|
|
88
|
-
};
|
|
89
|
-
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
90
8
|
labelValues: Array< ApLadderLabelValue>;
|
|
91
9
|
majorColor: string;
|
|
92
10
|
minorColor: string;
|
|
@@ -99,83 +17,7 @@ declare const ApLadder: {
|
|
|
99
17
|
Defaults: {};
|
|
100
18
|
}, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
101
19
|
layout: "vertical" | "horizontal";
|
|
102
|
-
tooltip: boolean;
|
|
103
20
|
labelAlign: "left" | "right";
|
|
104
|
-
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
105
|
-
title: VueTypeValidableDef<any>;
|
|
106
|
-
trigger: PropType< TriggerType | TriggerType[]>;
|
|
107
|
-
open: {
|
|
108
|
-
type: BooleanConstructor;
|
|
109
|
-
default: any;
|
|
110
|
-
};
|
|
111
|
-
visible: {
|
|
112
|
-
type: BooleanConstructor;
|
|
113
|
-
default: any;
|
|
114
|
-
};
|
|
115
|
-
placement: PropType<TooltipPlacement>;
|
|
116
|
-
color: PropType<LiteralUnion<PresetColorType>>;
|
|
117
|
-
transitionName: StringConstructor;
|
|
118
|
-
overlayStyle: {
|
|
119
|
-
type: PropType<CSSProperties>;
|
|
120
|
-
default: CSSProperties;
|
|
121
|
-
};
|
|
122
|
-
overlayInnerStyle: {
|
|
123
|
-
type: PropType<CSSProperties>;
|
|
124
|
-
default: CSSProperties;
|
|
125
|
-
};
|
|
126
|
-
overlayClassName: StringConstructor;
|
|
127
|
-
openClassName: StringConstructor;
|
|
128
|
-
prefixCls: StringConstructor;
|
|
129
|
-
mouseEnterDelay: NumberConstructor;
|
|
130
|
-
mouseLeaveDelay: NumberConstructor;
|
|
131
|
-
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
132
|
-
arrowPointAtCenter: {
|
|
133
|
-
type: BooleanConstructor;
|
|
134
|
-
default: any;
|
|
135
|
-
};
|
|
136
|
-
arrow: {
|
|
137
|
-
type: PropType<boolean | {
|
|
138
|
-
pointAtCenter?: boolean;
|
|
139
|
-
}>;
|
|
140
|
-
default: boolean | {
|
|
141
|
-
pointAtCenter?: boolean;
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
autoAdjustOverflow: {
|
|
145
|
-
type: PropType<boolean | AdjustOverflow>;
|
|
146
|
-
default: boolean | AdjustOverflow;
|
|
147
|
-
};
|
|
148
|
-
destroyTooltipOnHide: {
|
|
149
|
-
type: BooleanConstructor;
|
|
150
|
-
default: any;
|
|
151
|
-
};
|
|
152
|
-
align: {
|
|
153
|
-
type: PropType<AlignType>;
|
|
154
|
-
default: AlignType;
|
|
155
|
-
};
|
|
156
|
-
builtinPlacements: {
|
|
157
|
-
type: PropType<BuildInPlacements>;
|
|
158
|
-
default: BuildInPlacements;
|
|
159
|
-
};
|
|
160
|
-
children: ArrayConstructor;
|
|
161
|
-
onVisibleChange: PropType<(vis: boolean) => void>;
|
|
162
|
-
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
163
|
-
onOpenChange: PropType<(vis: boolean) => void>;
|
|
164
|
-
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
165
|
-
mask: {
|
|
166
|
-
type: BooleanConstructor;
|
|
167
|
-
default: boolean;
|
|
168
|
-
};
|
|
169
|
-
maskStyle: {
|
|
170
|
-
type: PropType<CSSProperties>;
|
|
171
|
-
default: CSSProperties;
|
|
172
|
-
};
|
|
173
|
-
maskTransitionName: StringConstructor;
|
|
174
|
-
maskClosable: {
|
|
175
|
-
type: BooleanConstructor;
|
|
176
|
-
default: boolean;
|
|
177
|
-
};
|
|
178
|
-
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
179
21
|
labelValues: Array< ApLadderLabelValue>;
|
|
180
22
|
majorColor: string;
|
|
181
23
|
minorColor: string;
|
|
@@ -185,83 +27,7 @@ declare const ApLadder: {
|
|
|
185
27
|
__isSuspense?: never;
|
|
186
28
|
} & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
187
29
|
layout: "vertical" | "horizontal";
|
|
188
|
-
tooltip: boolean;
|
|
189
30
|
labelAlign: "left" | "right";
|
|
190
|
-
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
191
|
-
title: VueTypeValidableDef<any>;
|
|
192
|
-
trigger: PropType< TriggerType | TriggerType[]>;
|
|
193
|
-
open: {
|
|
194
|
-
type: BooleanConstructor;
|
|
195
|
-
default: any;
|
|
196
|
-
};
|
|
197
|
-
visible: {
|
|
198
|
-
type: BooleanConstructor;
|
|
199
|
-
default: any;
|
|
200
|
-
};
|
|
201
|
-
placement: PropType<TooltipPlacement>;
|
|
202
|
-
color: PropType<LiteralUnion<PresetColorType>>;
|
|
203
|
-
transitionName: StringConstructor;
|
|
204
|
-
overlayStyle: {
|
|
205
|
-
type: PropType<CSSProperties>;
|
|
206
|
-
default: CSSProperties;
|
|
207
|
-
};
|
|
208
|
-
overlayInnerStyle: {
|
|
209
|
-
type: PropType<CSSProperties>;
|
|
210
|
-
default: CSSProperties;
|
|
211
|
-
};
|
|
212
|
-
overlayClassName: StringConstructor;
|
|
213
|
-
openClassName: StringConstructor;
|
|
214
|
-
prefixCls: StringConstructor;
|
|
215
|
-
mouseEnterDelay: NumberConstructor;
|
|
216
|
-
mouseLeaveDelay: NumberConstructor;
|
|
217
|
-
getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
|
|
218
|
-
arrowPointAtCenter: {
|
|
219
|
-
type: BooleanConstructor;
|
|
220
|
-
default: any;
|
|
221
|
-
};
|
|
222
|
-
arrow: {
|
|
223
|
-
type: PropType<boolean | {
|
|
224
|
-
pointAtCenter?: boolean;
|
|
225
|
-
}>;
|
|
226
|
-
default: boolean | {
|
|
227
|
-
pointAtCenter?: boolean;
|
|
228
|
-
};
|
|
229
|
-
};
|
|
230
|
-
autoAdjustOverflow: {
|
|
231
|
-
type: PropType<boolean | AdjustOverflow>;
|
|
232
|
-
default: boolean | AdjustOverflow;
|
|
233
|
-
};
|
|
234
|
-
destroyTooltipOnHide: {
|
|
235
|
-
type: BooleanConstructor;
|
|
236
|
-
default: any;
|
|
237
|
-
};
|
|
238
|
-
align: {
|
|
239
|
-
type: PropType<AlignType>;
|
|
240
|
-
default: AlignType;
|
|
241
|
-
};
|
|
242
|
-
builtinPlacements: {
|
|
243
|
-
type: PropType<BuildInPlacements>;
|
|
244
|
-
default: BuildInPlacements;
|
|
245
|
-
};
|
|
246
|
-
children: ArrayConstructor;
|
|
247
|
-
onVisibleChange: PropType<(vis: boolean) => void>;
|
|
248
|
-
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
249
|
-
onOpenChange: PropType<(vis: boolean) => void>;
|
|
250
|
-
'onUpdate:open': PropType<(vis: boolean) => void>;
|
|
251
|
-
mask: {
|
|
252
|
-
type: BooleanConstructor;
|
|
253
|
-
default: boolean;
|
|
254
|
-
};
|
|
255
|
-
maskStyle: {
|
|
256
|
-
type: PropType<CSSProperties>;
|
|
257
|
-
default: CSSProperties;
|
|
258
|
-
};
|
|
259
|
-
maskTransitionName: StringConstructor;
|
|
260
|
-
maskClosable: {
|
|
261
|
-
type: BooleanConstructor;
|
|
262
|
-
default: boolean;
|
|
263
|
-
};
|
|
264
|
-
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
265
31
|
labelValues: Array< ApLadderLabelValue>;
|
|
266
32
|
majorColor: string;
|
|
267
33
|
minorColor: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipProps } from '@aplus-frontend/antdv/es/tooltip/Tooltip';
|
|
2
|
-
import {
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* Tooltip 需要的属性
|
|
5
5
|
*/
|
|
@@ -15,7 +15,7 @@ export interface ApLadderLabelValue {
|
|
|
15
15
|
/**
|
|
16
16
|
* 值
|
|
17
17
|
*/
|
|
18
|
-
value?: string | number |
|
|
18
|
+
value?: string | number | VNode | (() => VNode) | null;
|
|
19
19
|
/**
|
|
20
20
|
* 是否采用原始值
|
|
21
21
|
*/
|
|
@@ -74,64 +74,9 @@ export interface ApLadderLabelValue {
|
|
|
74
74
|
handleValueClick?: (labelValueRecord: ApLadderLabelValue[]) => void;
|
|
75
75
|
/**
|
|
76
76
|
* label 标签的文本对齐方式 仅支持健值对(labelValues)类型
|
|
77
|
-
* @default `
|
|
78
|
-
* @since v0.4.7 新增
|
|
77
|
+
* @default `left`
|
|
79
78
|
*/
|
|
80
79
|
labelAlign?: 'left' | 'right';
|
|
81
|
-
/**
|
|
82
|
-
* 健值对 - label样式
|
|
83
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
84
|
-
* @since v0.4.7 新增
|
|
85
|
-
*/
|
|
86
|
-
labelStyles?: CSSProperties;
|
|
87
|
-
/**
|
|
88
|
-
* 健值对 - value样式
|
|
89
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
90
|
-
* @since v0.4.7 新增
|
|
91
|
-
*/
|
|
92
|
-
valueStyles?: CSSProperties;
|
|
93
|
-
/**
|
|
94
|
-
* 健值对 - link样式
|
|
95
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
96
|
-
* @since v0.4.7 新增
|
|
97
|
-
*/
|
|
98
|
-
linkStyles?: CSSProperties;
|
|
99
|
-
/**
|
|
100
|
-
* 健值对 - unit样式
|
|
101
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
102
|
-
* @since v0.4.7 新增
|
|
103
|
-
*/
|
|
104
|
-
unitStyles?: CSSProperties;
|
|
105
|
-
/**
|
|
106
|
-
* Tooltip - Label style
|
|
107
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
108
|
-
* @since v0.4.7 新增
|
|
109
|
-
*/
|
|
110
|
-
tooltipLabelStyles?: CSSProperties;
|
|
111
|
-
/**
|
|
112
|
-
* Tooltip - Value style
|
|
113
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
114
|
-
* @since v0.4.7 新增
|
|
115
|
-
*/
|
|
116
|
-
tooltipValueStyles?: CSSProperties;
|
|
117
|
-
/**
|
|
118
|
-
* 帮助气泡
|
|
119
|
-
*/
|
|
120
|
-
helpMessage?: string | number | VNodeChild | VNode | null | (() => VNodeChild | VNode);
|
|
121
|
-
/**
|
|
122
|
-
* 帮助气泡 - 图标
|
|
123
|
-
* @description 'question' | 'warning' 自定义
|
|
124
|
-
* @default `question`
|
|
125
|
-
*/
|
|
126
|
-
helpMessageIcon?: 'question' | 'warning' | VNodeChild | VNode | (() => VNodeChild | VNode);
|
|
127
|
-
/**
|
|
128
|
-
* 帮助气泡 - 图标 - 样式
|
|
129
|
-
*/
|
|
130
|
-
helpMessageIconStyles?: CSSProperties;
|
|
131
|
-
/**
|
|
132
|
-
* 帮助气泡 - 扩展tooltip props
|
|
133
|
-
*/
|
|
134
|
-
helpMessageTooltipProps?: TooltipProps;
|
|
135
80
|
}
|
|
136
81
|
/**
|
|
137
82
|
* ApLadder Props 属性类型声明
|
|
@@ -153,22 +98,12 @@ export interface ApLadderProps {
|
|
|
153
98
|
* @description 请使用`majorStyles`代替
|
|
154
99
|
*/
|
|
155
100
|
majorColor?: string;
|
|
156
|
-
/**
|
|
157
|
-
* 自定义重要信息 style
|
|
158
|
-
* @since v0.4.7 新增
|
|
159
|
-
*/
|
|
160
|
-
majorStyles?: CSSProperties;
|
|
161
101
|
/**
|
|
162
102
|
* 自定义次要信息颜色
|
|
163
103
|
* @deprecated 注意:v0.4.7版本之后就别用这个属性了 后面将不再支持
|
|
164
104
|
* @description 请使用`minorStyles`代替
|
|
165
105
|
*/
|
|
166
106
|
minorColor?: string;
|
|
167
|
-
/**
|
|
168
|
-
* 自定义次要信息 style
|
|
169
|
-
* @since v0.4.7 新增
|
|
170
|
-
*/
|
|
171
|
-
minorStyles?: CSSProperties;
|
|
172
107
|
/**
|
|
173
108
|
* 布局方式
|
|
174
109
|
* - `vertical` 垂直布局
|
|
@@ -176,61 +111,16 @@ export interface ApLadderProps {
|
|
|
176
111
|
* @default `vertical`
|
|
177
112
|
*/
|
|
178
113
|
layout?: 'vertical' | 'horizontal';
|
|
179
|
-
/**
|
|
180
|
-
* 是否展示气泡
|
|
181
|
-
* @description 默认展示
|
|
182
|
-
*/
|
|
183
|
-
tooltip?: boolean;
|
|
184
114
|
/**
|
|
185
115
|
* 健值对 - 数组展示
|
|
186
116
|
*/
|
|
187
117
|
labelValues?: Array<ApLadderLabelValue>;
|
|
188
118
|
/**
|
|
189
119
|
* label 标签的文本对齐方式 仅支持健值对(labelValues)类型
|
|
190
|
-
* @default `
|
|
120
|
+
* @default `left`
|
|
191
121
|
* @since v0.4.7 新增
|
|
192
122
|
*/
|
|
193
123
|
labelAlign?: 'left' | 'right';
|
|
194
|
-
/**
|
|
195
|
-
* 健值对 - label样式
|
|
196
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
197
|
-
* @since v0.4.7 新增
|
|
198
|
-
*/
|
|
199
|
-
labelStyles?: CSSProperties;
|
|
200
|
-
/**
|
|
201
|
-
* 健值对 - value样式
|
|
202
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
203
|
-
* @since v0.4.7 新增
|
|
204
|
-
*/
|
|
205
|
-
valueStyles?: CSSProperties;
|
|
206
|
-
/**
|
|
207
|
-
* 健值对 - link样式
|
|
208
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
209
|
-
* @since v0.4.7 新增
|
|
210
|
-
*/
|
|
211
|
-
linkStyles?: CSSProperties;
|
|
212
|
-
/**
|
|
213
|
-
* 健值对 - unit样式
|
|
214
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
215
|
-
* @since v0.4.7 新增
|
|
216
|
-
*/
|
|
217
|
-
unitStyles?: CSSProperties;
|
|
218
|
-
/**
|
|
219
|
-
* 扩展 Tooltip
|
|
220
|
-
*/
|
|
221
|
-
tooltipProps?: TooltipNeedProps;
|
|
222
|
-
/**
|
|
223
|
-
* Tooltip - Label style
|
|
224
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
225
|
-
* @since v0.4.7 新增
|
|
226
|
-
*/
|
|
227
|
-
tooltipLabelStyles?: CSSProperties;
|
|
228
|
-
/**
|
|
229
|
-
* Tooltip - Value style
|
|
230
|
-
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
231
|
-
* @since v0.4.7 新增
|
|
232
|
-
*/
|
|
233
|
-
tooltipValueStyles?: CSSProperties;
|
|
234
124
|
}
|
|
235
125
|
/**
|
|
236
126
|
* ApLadder Slots 类型声明
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
import { ConvertValueOptions } from './interface';
|
|
2
|
+
import { VNode, RendererNode, RendererElement } from 'vue';
|
|
1
3
|
export declare const isNull: (value: any) => boolean;
|
|
2
4
|
export declare const createMemoizeKey: (value: any, options?: any) => string;
|
|
5
|
+
export declare const convertValue: (value: string | number | (() => VNode) | VNode | null | undefined, options?: ConvertValueOptions) => string | number | VNode< RendererNode, RendererElement, {
|
|
6
|
+
[key: string]: any;
|
|
7
|
+
}> | (() => VNode) | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./interface.js"),i=r=>r==null||typeof r=="string"&&r.trim()==="",u=(r,e={})=>typeof r=="string"||typeof r=="number"?String(r)+JSON.stringify(e):"complex-value",o=(r,e={rawValue:!0,precision:2,thousand:!0,thousandSeparator:",",currency:"CNY",percent:!1})=>{if(Object.prototype.toString.call(r)==="[object Null]"||Object.prototype.toString.call(r)==="[object Undefined]"||Object.prototype.toString.call(r)==="[object Object]"||Object.prototype.toString.call(r)==="[object Function]"||r==="")return"--";if(e.rawValue)return r;if(typeof r=="number"){if(e.percent)return`${r.toFixed(e.precision)}%`;if(e.currency)return r.toLocaleString(n.locales[e.currency?e.currency:"CNY"],{style:"currency",currency:e.currency?e.currency:"CNY"});if(e.thousand){const[t,c]=r.toFixed(e.precision?e.precision:2).split(".");return`${t.replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${e.thousandSeparator?e.thousandSeparator:","}`)}.${c}`}return r.toFixed(e.precision?e.precision:2)}return r};exports.convertValue=o;exports.createMemoizeKey=u;exports.isNull=i;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ApProductInfoProps } from './interface';
|
|
3
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
4
|
+
imgSrc: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
title: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
};
|
|
11
|
+
asku: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
};
|
|
14
|
+
asin: {
|
|
15
|
+
type: PropType< ApProductInfoProps["asin"]>;
|
|
16
|
+
};
|
|
17
|
+
msku: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
onTitleClick: {
|
|
21
|
+
type: PropType< ApProductInfoProps["onTitleClick"]>;
|
|
22
|
+
};
|
|
23
|
+
}>, void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
24
|
+
imgSrc: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
title: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
asku: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
};
|
|
34
|
+
asin: {
|
|
35
|
+
type: PropType< ApProductInfoProps["asin"]>;
|
|
36
|
+
};
|
|
37
|
+
msku: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
onTitleClick: {
|
|
41
|
+
type: PropType< ApProductInfoProps["onTitleClick"]>;
|
|
42
|
+
};
|
|
43
|
+
}>> & Readonly<{}>, {
|
|
44
|
+
imgSrc: string;
|
|
45
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ApProductInfoProps as _ApProductInfoProps } from './interface';
|
|
3
|
+
export declare const ApAttachmentProps: () => {
|
|
4
|
+
imgSrc: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
title: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
};
|
|
11
|
+
asku: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
};
|
|
14
|
+
asin: {
|
|
15
|
+
type: PropType<_ApProductInfoProps["asin"]>;
|
|
16
|
+
};
|
|
17
|
+
msku: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
onTitleClick: {
|
|
21
|
+
type: PropType<_ApProductInfoProps["onTitleClick"]>;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './interface';
|