@aplus-frontend/ui 0.5.17 → 0.5.19
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-table/ap-table.vue2.mjs +30 -30
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +108 -107
- package/es/src/ap-table/interface.d.ts +8 -0
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +4 -20
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +64 -266
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
- package/es/src/business/ap-ladder/components/SimpleMode.vue.mjs +4 -0
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +122 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.mjs +4 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +209 -0
- package/es/src/business/ap-ladder/index.d.ts +5 -38
- package/es/src/business/ap-ladder/interface.d.ts +42 -16
- package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
- package/es/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
- package/es/src/business/ap-ladder/utils.d.ts +2 -0
- package/es/src/business/ap-ladder/utils.mjs +5 -0
- package/es/src/business/ap-table-modal/hooks/use-create-table-modal.mjs +1 -1
- package/es/src/business/ap-table-modal/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +8 -9
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +14 -14
- package/es/src/mask/style/css.d.ts +0 -0
- package/es/src/mask/style/css.js +1 -0
- package/es/src/mask/style/index.d.ts +0 -0
- package/es/src/mask/style/index.js +1 -0
- package/es/src/path-map.mjs +3 -1
- package/es/src/text/index.vue.mjs +46 -41
- package/es/src/text/interface.d.ts +6 -0
- package/es/src/text/style/css.d.ts +0 -0
- package/es/src/text/style/css.js +2 -0
- package/es/src/text/style/index.d.ts +0 -0
- package/es/src/text/style/index.js +2 -0
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/interface.d.ts +8 -0
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +4 -20
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.js +1 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.js +1 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -0
- package/lib/src/business/ap-ladder/index.d.ts +5 -38
- package/lib/src/business/ap-ladder/interface.d.ts +42 -16
- package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
- package/lib/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
- package/lib/src/business/ap-ladder/utils.d.ts +2 -0
- package/lib/src/business/ap-ladder/utils.js +1 -0
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/mask/style/css.cjs +1 -0
- package/lib/src/mask/style/css.d.ts +0 -0
- package/lib/src/mask/style/index.cjs +1 -0
- package/lib/src/mask/style/index.d.ts +0 -0
- package/lib/src/path-map.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/text/interface.d.ts +6 -0
- package/lib/src/text/style/css.cjs +2 -0
- package/lib/src/text/style/css.d.ts +0 -0
- package/lib/src/text/style/index.cjs +2 -0
- package/lib/src/text/style/index.d.ts +0 -0
- package/package.json +1 -1
- package/theme/ap-ladder/ap-ladder.css +68 -1
- package/theme/ap-ladder/ap-ladder.less +72 -2
- package/theme/index.css +68 -1
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +0 -4
- package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +0 -35
- package/es/src/business/ap-ladder/useWatchEllipsis.mjs +0 -35
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +0 -1
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +0 -1
- package/lib/src/business/ap-ladder/useWatchEllipsis.js +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ApLadderLabelValue } from '../interface';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
title?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
13
|
+
labelValues: {
|
|
14
|
+
type: () => ApLadderLabelValue[];
|
|
15
|
+
default: () => never[];
|
|
16
|
+
};
|
|
17
|
+
labelAlign: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
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
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
54
|
+
handleClick: (...args: any[]) => void;
|
|
55
|
+
"update:valueRefs": (...args: any[]) => void;
|
|
56
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
57
|
+
labelValues: {
|
|
58
|
+
type: () => ApLadderLabelValue[];
|
|
59
|
+
default: () => never[];
|
|
60
|
+
};
|
|
61
|
+
labelAlign: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
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
|
+
}>> & Readonly<{
|
|
98
|
+
onHandleClick?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
"onUpdate:valueRefs"?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
}>, {
|
|
101
|
+
tooltip: boolean;
|
|
102
|
+
labelAlign: string;
|
|
103
|
+
tooltipProps: Record<string, any>;
|
|
104
|
+
labelValues: ApLadderLabelValue[];
|
|
105
|
+
labelStyles: CSSProperties;
|
|
106
|
+
valueStyles: CSSProperties;
|
|
107
|
+
linkStyles: CSSProperties;
|
|
108
|
+
unitStyles: CSSProperties;
|
|
109
|
+
tooltipLabelStyles: CSSProperties;
|
|
110
|
+
tooltipValueStyles: CSSProperties;
|
|
111
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
112
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
113
|
+
export default _default;
|
|
114
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
115
|
+
new (): {
|
|
116
|
+
$slots: S;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ValueGroupMode.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"),m=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const p=require("../interface.js"),k=require("../../../config-provider/hooks/use-namespace.js"),f={key:0},S=["href","onClick"],v={key:0},C={key:0},g=e.defineComponent({name:"ApLadderValueGroupMode",__name:"ValueGroupMode",props:{labelValues:{type:Array,default:()=>[]},labelAlign:{type:String,default:""},labelStyles:{type:Object,default:()=>({})},valueStyles:{type:Object,default:()=>({})},linkStyles:{type:Object,default:()=>({})},unitStyles:{type:Object,default:()=>({})},tooltipLabelStyles:{type:Object,default:()=>({})},tooltipValueStyles:{type:Object,default:()=>({})},tooltipProps:{type:Object,default:()=>({})},tooltip:{type:Boolean,default:!1}},emits:["update:valueRefs","handleClick"],setup(l,{emit:u}){const y=u,{e:r}=k.useNamespace("ap-ladder"),a=o=>e.isVNode(o)||typeof o=="function",s=o=>{const{value:n,style:t}=o;return e.isVNode(n)?e.h(n,{style:t}):typeof n=="function"?e.h(n(),{ref:e.ref,style:{...t}}):null},i=(o,n={rawValue:!0,precision:2,thousand:!0,thousandSeparator:",",currency:"CNY",percent:!1})=>{if(Object.prototype.toString.call(o)==="[object Null]"||Object.prototype.toString.call(o)==="[object Undefined]"||Object.prototype.toString.call(o)==="[object Object]"||Object.prototype.toString.call(o)==="[object Function]")return"--";if(typeof o=="number"){if(n.percent)return`${o.toFixed(n.precision)}%`;if(n.currency)return o.toLocaleString(p.locales[n.currency?n.currency:"CNY"],{style:"currency",currency:n.currency?n.currency:"CNY"});if(n.thousand){const[t,c]=o.toFixed(n.precision?n.precision:2).split(".");return`${t.replace(/(\d)(?=(\d{3})+(?!\d))/g,`$1${n.thousandSeparator?n.thousandSeparator:","}`)}.${c}`}return o.toFixed(n.precision?n.precision:2)}return o},d=o=>{y("handleClick",o)};return(o,n)=>(e.openBlock(),e.createBlock(e.unref(m.Tooltip),e.normalizeProps(e.guardReactiveProps(l.tooltipProps)),e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r)("value-group"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.labelValues,(t,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(e.unref(r)("value-group-item"))},[t.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(r)("value-group-label"),l.labelAlign&&`label-align-${l.labelAlign}`]),style:e.normalizeStyle(t.labelStyles)},[e.createTextVNode(e.toDisplayString(t.label),1),t.label?(e.openBlock(),e.createElementBlock("span",f,":")):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(r)("value-group-value"))},[a(t.value)?(e.openBlock(),e.createBlock(s,{key:0,value:t.value,style:e.normalizeStyle([t.labelColor,t.valueStyles])},null,8,["value","style"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.link?(e.openBlock(),e.createElementBlock("a",{key:0,href:t.link,target:"_blank",class:e.normalizeClass(e.unref(r)("value-group-link")),style:e.normalizeStyle([l.linkStyles,t.linkStyles,t.linkColor?{color:t.linkColor}:void 0]),onClick:e.withModifiers(B=>d(t),["prevent"])},e.toDisplayString(i(t.value,{...t})),15,S)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",{style:e.normalizeStyle([l.valueStyles,t.valueStyles,t.valueColor?{color:t.valueColor}:void 0])},e.toDisplayString(i(t.value,{...t})),5),t.unit?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r)("value-group-unit")),style:e.normalizeStyle([l.unitStyles,t.unitStyles,t.unitColor?{color:t.unitColor}:void 0])},e.toDisplayString(t.unit),7)):e.createCommentVNode("",!0)],64))],64))],2)],2))),128))],2)]),_:2},[o.$slots.title?{name:"title",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"title")]),key:"0"}:l.tooltip?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(r)("tooltip"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.labelValues,(t,c)=>(e.openBlock(),e.createElementBlock("div",{key:c,class:e.normalizeClass(e.unref(r)("tooltip-item"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(r)("tooltip-label")),style:e.normalizeStyle(l.tooltipLabelStyles)},e.toDisplayString(t.label?t.label:"--")+": ",7),a(t.value)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(r)("tooltip-value")),style:e.normalizeStyle(l.tooltipValueStyles)},[e.createVNode(s,{value:t.value,style:e.normalizeStyle([t.tooltipValueStyles])},null,8,["value","style"]),t.unit?(e.openBlock(),e.createElementBlock("span",v,e.toDisplayString(t.unit),1)):e.createCommentVNode("",!0)],6)):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(r)("tooltip-value")),style:e.normalizeStyle(l.tooltipValueStyles)},[e.createTextVNode(e.toDisplayString(i(t.value,{...t}))+" ",1),t.unit?(e.openBlock(),e.createElementBlock("span",C,e.toDisplayString(t.unit),1)):e.createCommentVNode("",!0)],6))],2))),128))],2)]),key:"1"}:void 0]),1040))}});exports.default=g;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties,
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, 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,8 +11,6 @@ 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
|
-
major: string;
|
|
15
|
-
minor: string;
|
|
16
14
|
labelAlign: "left" | "right";
|
|
17
15
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
18
16
|
title: VueTypeValidableDef<any>;
|
|
@@ -89,21 +87,10 @@ declare const ApLadder: {
|
|
|
89
87
|
default: boolean;
|
|
90
88
|
};
|
|
91
89
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
90
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
92
91
|
majorColor: string;
|
|
93
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
94
92
|
minorColor: string;
|
|
95
|
-
|
|
96
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
97
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
98
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
99
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
100
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
101
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
102
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
103
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
104
|
-
wrapperRef: HTMLDivElement;
|
|
105
|
-
valueRefs: HTMLSpanElement;
|
|
106
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
93
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
107
94
|
P: {};
|
|
108
95
|
B: {};
|
|
109
96
|
D: {};
|
|
@@ -113,8 +100,6 @@ declare const ApLadder: {
|
|
|
113
100
|
}, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
114
101
|
layout: "vertical" | "horizontal";
|
|
115
102
|
tooltip: boolean;
|
|
116
|
-
major: string;
|
|
117
|
-
minor: string;
|
|
118
103
|
labelAlign: "left" | "right";
|
|
119
104
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
120
105
|
title: VueTypeValidableDef<any>;
|
|
@@ -191,17 +176,9 @@ declare const ApLadder: {
|
|
|
191
176
|
default: boolean;
|
|
192
177
|
};
|
|
193
178
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
179
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
194
180
|
majorColor: string;
|
|
195
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
196
181
|
minorColor: string;
|
|
197
|
-
minorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
198
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
199
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
200
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
201
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
202
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
203
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
204
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
205
182
|
}>;
|
|
206
183
|
__isFragment?: never;
|
|
207
184
|
__isTeleport?: never;
|
|
@@ -209,8 +186,6 @@ declare const ApLadder: {
|
|
|
209
186
|
} & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
210
187
|
layout: "vertical" | "horizontal";
|
|
211
188
|
tooltip: boolean;
|
|
212
|
-
major: string;
|
|
213
|
-
minor: string;
|
|
214
189
|
labelAlign: "left" | "right";
|
|
215
190
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
216
191
|
title: VueTypeValidableDef<any>;
|
|
@@ -287,17 +262,9 @@ declare const ApLadder: {
|
|
|
287
262
|
default: boolean;
|
|
288
263
|
};
|
|
289
264
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
265
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
290
266
|
majorColor: string;
|
|
291
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
292
267
|
minorColor: string;
|
|
293
|
-
minorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
294
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
295
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
296
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
297
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
298
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
299
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
300
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
301
268
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
302
269
|
$slots: Readonly< ApLadderSlots> & ApLadderSlots;
|
|
303
270
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TooltipProps } from '@aplus-frontend/antdv/es/tooltip/Tooltip';
|
|
2
|
-
import {
|
|
2
|
+
import { CSSProperties, VNode, VNodeChild } from 'vue';
|
|
3
3
|
/**
|
|
4
4
|
* Tooltip 需要的属性
|
|
5
5
|
*/
|
|
@@ -79,37 +79,37 @@ export interface ApLadderLabelValue {
|
|
|
79
79
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
80
80
|
* @since v0.4.7 新增
|
|
81
81
|
*/
|
|
82
|
-
labelStyles?:
|
|
82
|
+
labelStyles?: CSSProperties;
|
|
83
83
|
/**
|
|
84
84
|
* 健值对 - value样式
|
|
85
85
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
86
86
|
* @since v0.4.7 新增
|
|
87
87
|
*/
|
|
88
|
-
valueStyles?:
|
|
88
|
+
valueStyles?: CSSProperties;
|
|
89
89
|
/**
|
|
90
90
|
* 健值对 - link样式
|
|
91
91
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
92
92
|
* @since v0.4.7 新增
|
|
93
93
|
*/
|
|
94
|
-
linkStyles?:
|
|
94
|
+
linkStyles?: CSSProperties;
|
|
95
95
|
/**
|
|
96
96
|
* 健值对 - unit样式
|
|
97
97
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
98
98
|
* @since v0.4.7 新增
|
|
99
99
|
*/
|
|
100
|
-
unitStyles?:
|
|
100
|
+
unitStyles?: CSSProperties;
|
|
101
101
|
/**
|
|
102
102
|
* Tooltip - Label style
|
|
103
103
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
104
104
|
* @since v0.4.7 新增
|
|
105
105
|
*/
|
|
106
|
-
tooltipLabelStyles?:
|
|
106
|
+
tooltipLabelStyles?: CSSProperties;
|
|
107
107
|
/**
|
|
108
108
|
* Tooltip - Value style
|
|
109
109
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
110
110
|
* @since v0.4.7 新增
|
|
111
111
|
*/
|
|
112
|
-
tooltipValueStyles?:
|
|
112
|
+
tooltipValueStyles?: CSSProperties;
|
|
113
113
|
/**
|
|
114
114
|
* 帮助气泡
|
|
115
115
|
*/
|
|
@@ -123,7 +123,7 @@ export interface ApLadderLabelValue {
|
|
|
123
123
|
/**
|
|
124
124
|
* 帮助气泡 - 图标 - 样式
|
|
125
125
|
*/
|
|
126
|
-
helpMessageIconStyles?:
|
|
126
|
+
helpMessageIconStyles?: CSSProperties;
|
|
127
127
|
/**
|
|
128
128
|
* 帮助气泡 - 扩展tooltip props
|
|
129
129
|
*/
|
|
@@ -153,7 +153,7 @@ export interface ApLadderProps {
|
|
|
153
153
|
* 自定义重要信息 style
|
|
154
154
|
* @since v0.4.7 新增
|
|
155
155
|
*/
|
|
156
|
-
majorStyles?:
|
|
156
|
+
majorStyles?: CSSProperties;
|
|
157
157
|
/**
|
|
158
158
|
* 自定义次要信息颜色
|
|
159
159
|
* @deprecated 注意:v0.4.7版本之后就别用这个属性了 后面将不再支持
|
|
@@ -164,7 +164,7 @@ export interface ApLadderProps {
|
|
|
164
164
|
* 自定义次要信息 style
|
|
165
165
|
* @since v0.4.7 新增
|
|
166
166
|
*/
|
|
167
|
-
minorStyles?:
|
|
167
|
+
minorStyles?: CSSProperties;
|
|
168
168
|
/**
|
|
169
169
|
* 布局方式
|
|
170
170
|
* - `vertical` 垂直布局
|
|
@@ -192,25 +192,25 @@ export interface ApLadderProps {
|
|
|
192
192
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
193
193
|
* @since v0.4.7 新增
|
|
194
194
|
*/
|
|
195
|
-
labelStyles?:
|
|
195
|
+
labelStyles?: CSSProperties;
|
|
196
196
|
/**
|
|
197
197
|
* 健值对 - value样式
|
|
198
198
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
199
199
|
* @since v0.4.7 新增
|
|
200
200
|
*/
|
|
201
|
-
valueStyles?:
|
|
201
|
+
valueStyles?: CSSProperties;
|
|
202
202
|
/**
|
|
203
203
|
* 健值对 - link样式
|
|
204
204
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
205
205
|
* @since v0.4.7 新增
|
|
206
206
|
*/
|
|
207
|
-
linkStyles?:
|
|
207
|
+
linkStyles?: CSSProperties;
|
|
208
208
|
/**
|
|
209
209
|
* 健值对 - unit样式
|
|
210
210
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
211
211
|
* @since v0.4.7 新增
|
|
212
212
|
*/
|
|
213
|
-
unitStyles?:
|
|
213
|
+
unitStyles?: CSSProperties;
|
|
214
214
|
/**
|
|
215
215
|
* 扩展 Tooltip
|
|
216
216
|
*/
|
|
@@ -220,13 +220,13 @@ export interface ApLadderProps {
|
|
|
220
220
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
221
221
|
* @since v0.4.7 新增
|
|
222
222
|
*/
|
|
223
|
-
tooltipLabelStyles?:
|
|
223
|
+
tooltipLabelStyles?: CSSProperties;
|
|
224
224
|
/**
|
|
225
225
|
* Tooltip - Value style
|
|
226
226
|
* @description `ApLadderLabelValue` 里面自定义样式会覆盖
|
|
227
227
|
* @since v0.4.7 新增
|
|
228
228
|
*/
|
|
229
|
-
tooltipValueStyles?:
|
|
229
|
+
tooltipValueStyles?: CSSProperties;
|
|
230
230
|
}
|
|
231
231
|
/**
|
|
232
232
|
* ApLadder Slots 类型声明
|
|
@@ -252,3 +252,29 @@ export type CurrencyCode = 'CNY' | 'USD' | 'EUR' | 'GBP';
|
|
|
252
252
|
* 国际货币代码-映射-语言
|
|
253
253
|
*/
|
|
254
254
|
export declare const locales: CurrencyCodeInLocale;
|
|
255
|
+
export interface ConvertValueOptions {
|
|
256
|
+
/**
|
|
257
|
+
* 是否采用原始值
|
|
258
|
+
*/
|
|
259
|
+
rawValue?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* 精度 默认2位小数
|
|
262
|
+
*/
|
|
263
|
+
precision?: number;
|
|
264
|
+
/**
|
|
265
|
+
* 千分位展示
|
|
266
|
+
*/
|
|
267
|
+
thousand?: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* 千分位分隔符
|
|
270
|
+
*/
|
|
271
|
+
thousandSeparator?: string;
|
|
272
|
+
/**
|
|
273
|
+
* 货币单位
|
|
274
|
+
*/
|
|
275
|
+
currency?: CurrencyCode;
|
|
276
|
+
/**
|
|
277
|
+
* 百分比展示
|
|
278
|
+
*/
|
|
279
|
+
percent?: boolean;
|
|
280
|
+
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
export declare
|
|
3
|
-
export declare const useWatchEllipsis: (target: Ref<HTMLElement | undefined>) => Ref<boolean, boolean>;
|
|
2
|
+
export declare function useWatchEllipsis(wrapperRef: Ref<HTMLElement | undefined>): Ref<boolean, boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=e=>e==null||typeof e=="string"&&e.trim()==="",i=(e,t={})=>typeof e=="string"||typeof e=="number"?String(e)+JSON.stringify(t):"complex-value";exports.createMemoizeKey=i;exports.isNull=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("../table-modal.vue.js");require("../../../index.js");const g=require("lodash-unified"),d=require("../../../config-provider/config-provider.js"),T=require("../table-modal.vue2.js");function y(l){let r=!0;const c=document.body,n=o.ref(),{destroyOnUnmounted:i=!0}=l,a=document.createElement("div"),v=()=>{const e=o.defineComponent({setup(){return()=>o.h(d.ConfigProvider,{...d.globalConfigCached.value},o.h(T.default,{...g.omit(l,"destroyOnUnmounted"),ref:n}))}});c.appendChild(a),o.render(o.h(e),a),r=!1},u=()=>{var e;(e=n.value)==null||e.close(),r||setTimeout(()=>{var t;o.render(null,a),(t=a.parentElement)==null||t.removeChild(a),r=!0},400)},f=async(e=[],t={})=>{var s;return n.value||v(),(s=n.value)==null?void 0:s.open(e,t)},m=()=>{var e;r||(e=n.value)==null||e.close()},p=()=>{var e,t;(t=(e=n.value)==null?void 0:e.getApTableInstance())==null||t.submit()},b=()=>{var e,t;(t=(e=n.value)==null?void 0:e.getApTableInstance())==null||t.reset()};return o.onUnmounted(()=>{i&&u()}),{openModal:f,closeModal:m,destroy:u,reloadApTableData:p,resetApTableData:b,getApTableInstance:()=>{var e;return(e=n.value)==null?void 0:e.getApTableInstance()},isDestroyed:r}}exports.useCreateTableModal=y;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue");require("../table-modal.vue.js");require("../../../config-provider/index.js");const g=require("lodash-unified"),d=require("../../../config-provider/config-provider.js"),T=require("../table-modal.vue2.js");function y(l){let r=!0;const c=document.body,n=o.ref(),{destroyOnUnmounted:i=!0}=l,a=document.createElement("div"),v=()=>{const e=o.defineComponent({setup(){return()=>o.h(d.ConfigProvider,{...d.globalConfigCached.value},o.h(T.default,{...g.omit(l,"destroyOnUnmounted"),ref:n}))}});c.appendChild(a),o.render(o.h(e),a),r=!1},u=()=>{var e;(e=n.value)==null||e.close(),r||setTimeout(()=>{var t;o.render(null,a),(t=a.parentElement)==null||t.removeChild(a),r=!0},400)},f=async(e=[],t={})=>{var s;return n.value||v(),(s=n.value)==null?void 0:s.open(e,t)},m=()=>{var e;r||(e=n.value)==null||e.close()},p=()=>{var e,t;(t=(e=n.value)==null?void 0:e.getApTableInstance())==null||t.submit()},b=()=>{var e,t;(t=(e=n.value)==null?void 0:e.getApTableInstance())==null||t.reset()};return o.onUnmounted(()=>{i&&u()}),{openModal:f,closeModal:m,destroy:u,reloadApTableData:p,resetApTableData:b,getApTableInstance:()=>{var e;return(e=n.value)==null?void 0:e.getApTableInstance()},isDestroyed:r}}exports.useCreateTableModal=y;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VNode, VNodeChild } from 'vue';
|
|
2
|
-
import { ApTableProps } from '../../
|
|
2
|
+
import { ApTableProps } from '../../ap-table';
|
|
3
3
|
import { ModalProps, TableProps } from '@aplus-frontend/antdv';
|
|
4
4
|
/** table-modal的props类型 */
|
|
5
5
|
export interface ApTableModalProps<TableRowType = any> extends Omit<ModalProps, 'onOk' | 'open' | 'close' | 'visible'> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../index.js");const r=require("../../config-provider/hooks/use-locale.js"),l=require("../../config-provider/hooks/use-global-config.js"),u=e.defineComponent({__name:"modal-title",props:{title:{type:String,required:!0},count:{type:Number,required:!0},maxCount:{type:Number,required:!0}},setup(t){const{t:n}=r.useLocale(),o=l.useGlobalConfig("uiMode","aplus");return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),e.renderSlot(a.$slots,"default",{maxCount:t.maxCount,count:t.count},()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:e.unref(o)==="admin"?"#999999":"#8896b0",fontSize:"14px",fontWeight:"normal",marginLeft:"16px"}),class:"product-number"},[e.createTextVNode(e.toDisplayString(isFinite(t.maxCount)?e.unref(n)("ap.apTableModal.titleSuffixOne",{maxCount:t.maxCount}):"")+e.toDisplayString(e.unref(n)("ap.apTableModal.titleSuffixTwo"))+" ",1),e.createElementVNode("span",{style:e.normalizeStyle({color:e.unref(o)==="admin"?"#34B77C":"#0070ff"})},e.toDisplayString(t.count),5),e.createTextVNode(" "+e.toDisplayString(e.unref(n)("ap.apTableModal.titleSuffixThree")),1)],4)])]))}});exports.default=u;
|
|
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("../../config-provider/hooks/use-locale.js"),l=require("../../config-provider/hooks/use-global-config.js"),u=e.defineComponent({__name:"modal-title",props:{title:{type:String,required:!0},count:{type:Number,required:!0},maxCount:{type:Number,required:!0}},setup(t){const{t:n}=r.useLocale(),o=l.useGlobalConfig("uiMode","aplus");return(a,i)=>(e.openBlock(),e.createElementBlock("div",null,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),e.renderSlot(a.$slots,"default",{maxCount:t.maxCount,count:t.count},()=>[e.createElementVNode("span",{style:e.normalizeStyle({color:e.unref(o)==="admin"?"#999999":"#8896b0",fontSize:"14px",fontWeight:"normal",marginLeft:"16px"}),class:"product-number"},[e.createTextVNode(e.toDisplayString(isFinite(t.maxCount)?e.unref(n)("ap.apTableModal.titleSuffixOne",{maxCount:t.maxCount}):"")+e.toDisplayString(e.unref(n)("ap.apTableModal.titleSuffixTwo"))+" ",1),e.createElementVNode("span",{style:e.normalizeStyle({color:e.unref(o)==="admin"?"#34B77C":"#0070ff"})},e.toDisplayString(t.count),5),e.createTextVNode(" "+e.toDisplayString(e.unref(n)("ap.apTableModal.titleSuffixThree")),1)],4)])]))}});exports.default=u;
|
|
@@ -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")
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");const c=require("../../ap-title/index.js"),n=require("@aplus-frontend/antdv"),y=require("../../../config-provider/hooks/use-locale.js"),k=require("../../../config-provider/hooks/use-namespace.js"),g=e.defineComponent({__name:"index",props:{leftTitle:{type:[String,Object,Number,Boolean,null,Array],default:""},rightTitle:{},renderSelectedItem:{},selectedList:{default:()=>[]}},emits:["clear","deleteItem"],setup(d,{emit:u}){const{t:r}=y.useLocale(),o=d,a=u,m=()=>{a("clear")},p=t=>{a("deleteItem",t)},f=t=>typeof o.rightTitle=="function"?o.rightTitle(t):`${r("ap.apTableModal.selected")} (${t})`,{m:l}=k.useNamespace("ap-table-modal");return(t,h)=>(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},[t.leftTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(l)("table-layout-left"))},[e.createVNode(e.unref(c.ApTitle),{style:{"margin-bottom":"16px"}},{prefix:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[t.leftTitle]))))]),_:1}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-left-content"))},[e.renderSlot(t.$slots,"default")],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-right"))},[e.createVNode(e.unref(c.ApTitle),{title:`${e.unref(r)("ap.apTableModal.selected")} (${t.selectedList.length})`},{prefix:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[f(t.selectedList.length)]))))]),suffix:e.withCtx(()=>[e.createVNode(e.unref(n.Button),{type:"link",style:{padding:"0px",height:"22px","border-width":"0px"},onClick:m},{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,s=>{var i;return e.openBlock(),e.createBlock(e.resolveDynamicComponent((i=t.renderSelectedItem)==null?void 0:i.call(t,s,{deleteItem:p})),{key:s})}),128)),t.selectedList.length===0?(e.openBlock(),e.createBlock(e.unref(n.Empty),{key:0,image:e.unref(n.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=g;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv");require("../../index.js");const y=require("lodash-unified"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const L=require("../../ap-table/index.js"),y=require("lodash-unified"),N=require("@aplus-frontend/utils");require("./modal-title.vue.js");const b=require("./interface.js");require("./table-layout/index.vue.js");const D=require("../../config-provider/hooks/use-global-config.js"),E=require("../../config-provider/hooks/use-locale.js"),G=require("./modal-title.vue2.js"),H=require("./table-layout/index.vue2.js"),U=e.defineComponent({__name:"table-modal",props:{columns:{},getRowKey:{},api:{type:Function,default:async()=>({records:[],total:0})},apTableProps:{},maxCount:{default:1/0},isRenderModalTitleSuffix:{type:Boolean,default:!0},renderModalTitleSuffix:{},disabledCheckbox:{type:[Boolean,Function]},rowSelection:{},tableLayoutConfig:{},renderHeader:{},prefixCls:{},confirmLoading:{type:Boolean,default:void 0},title:{},closable:{type:Boolean,default:void 0},closeIcon:{},onCancel:{},"onUpdate:visible":{},"onUpdate:open":{},onChange:{},afterClose:{},centered:{type:Boolean,default:void 0},width:{},footer:{},okText:{},okType:{},cancelText:{},icon:{},maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:{},cancelButtonProps:{},destroyOnClose:{type:Boolean,default:void 0},wrapClassName:{},maskTransitionName:{},transitionName:{},getContainer:{type:[String,Boolean,Function],default:void 0},zIndex:{},bodyStyle:{},maskStyle:{},mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:{},focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:{},mousePosition:{}},emits:["finish"],setup(k,{expose:T,emit:h}){const t=k,S=h,i=e.ref(!1),x=e.ref({}),d=e.ref(null),n=e.ref([]),C=e.ref();let c=null,r=null;const _=D.useGlobalConfig("uiMode","admin"),{t:g}=E.useLocale(),B=async(a=[],o={})=>{var l,u,s;switch(n.value=[...a],i.value=!0,x.value=o==null?void 0:o.extraParams,C.value=o.apTableDataSources||((l=t.apTableProps)==null?void 0:l.dataSource),o.refreshMode||"reset"){case"reset":(u=d.value)==null||u.reset();break;case"submit":(s=d.value)==null||s.submit();break;case"none":break}return new Promise((p,f)=>{c=p,r=f})},w=()=>{i.value=!1,c=null,r==null||r(b.AsyncOpenResultError.ModalCancel),r=null},R=async a=>{a=N.transformTableParams({...a,...x.value});const o=t.api,{records:l,total:u}=await o(a);return{data:l,total:u}},M=()=>{if(n.value.length>t.maxCount){r==null||r(b.AsyncOpenResultError.ExceedMaxCount);return}if(t.getRowKey){const a=y.cloneDeep(e.unref(n)),o=a.map(t.getRowKey);S("finish",o,a),c==null||c({keys:o,rows:a})}else{r==null||r(b.AsyncOpenResultError.NotFineGetRowKey);return}i.value=!1},P=e.computed(()=>{if(!t.getRowKey)return;const a=t.getRowKey;return{fixed:!0,selectedRowKeys:n.value.map(a),columnWidth:50,preserveSelectedRowKeys:!0,onSelectAll(o,l){var s,p;if(l.length>t.maxCount){v.message.warning(g("ap.apTableModal.messageMaxCount",{maxCount:t.maxCount}));return}const u=(s=d.value)==null?void 0:s.dataSource;if(o){const f=e.unref(u).filter(m=>!n.value.some(A=>a(A)===a(m)));n.value=n.value.concat(f)}else n.value=(p=n.value)==null?void 0:p.filter(f=>!u.some(m=>a(m)===a(f)))},onSelect(o,l){if(l){if(n.value.length>=t.maxCount){v.message.warning(g("ap.apTableModal.messageMaxCount",{maxCount:t.maxCount}));return}n.value.push(o)}else{const u=n.value.findIndex(s=>a(o)===a(s));n.value.splice(u,1)}},getCheckboxProps:o=>({disabled:typeof t.disabledCheckbox=="function"?t.disabledCheckbox(o,n.value):t.disabledCheckbox}),...t.rowSelection||{}}}),q=()=>t.isRenderModalTitleSuffix?e.h(G.default,{title:t.title,count:n.value.length||0,maxCount:t.maxCount},{default:t.renderModalTitleSuffix??void 0}):t.title,K=()=>d.value,I=()=>{n.value=[]},O=a=>{const o=t.getRowKey;if(!o)return;const l=n.value.findIndex(u=>o(a)===o(u));n.value.splice(l,1)};return T({open:B,close:w,getApTableInstance:K}),(a,o)=>(e.openBlock(),e.createBlock(e.unref(v.Modal),e.mergeProps({open:i.value,"onUpdate:open":o[0]||(o[0]=l=>i.value=l)},e.unref(y.omit)(t,["api","getRowKey","centered","apTableProps","onOk","maxCount","title","renderModalTitleSuffix","isRenderModalTitleSuffix","rowSelection","disabledCheckbox","tableLayoutConfig"]),{title:q(),"body-style":{maxHeight:"calc(100vh - 205px)",overflowY:"scroll"},centered:t.centered??!0,onOk:M,onCancel:w}),{default:e.withCtx(()=>[t.renderHeader?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.renderHeader),{key:0})):e.createCommentVNode("",!0),e.createVNode(H.default,e.mergeProps(t.tableLayoutConfig||{},{"selected-list":n.value,onClear:I,onDeleteItem:O}),{default:e.withCtx(()=>[e.createVNode(e.unref(L.ApTable),e.mergeProps({ref_key:"apTableRef",ref:d,scroll:{y:"100%"},style:{padding:"0px"},columns:a.columns,request:R,"row-key":a.getRowKey,"row-selection":P.value,bordered:e.unref(_)==="admin","data-source":C.value},e.unref(y.omit)(t.apTableProps,"dataSource")),null,16,["columns","row-key","row-selection","bordered","data-source"])]),_:1},16,["selected-list"])]),_:1},16,["open","title","centered"]))}});exports.default=U;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/mask/index.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/mask/index.less';
|
|
File without changes
|
package/lib/src/path-map.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={ApActionItem:["ap-action","item"],ApActionItemModal:["ap-action","item-modal"],ApActionItemPopconfirm:["ap-action","item-popconfirm"],ApActionItemDropdown:["ap-action","item-dropdown"],ApActionGroup:["ap-action","group"],ApButton:["ap-button"],ApActionButton:["ap-action-button"],ApDescriptions:["ap-descriptions"],ApDownload:["ap-download"],ApField:["ap-field"],ApFieldText:["ap-field","text"],ApFieldCheckbox:["ap-field","checkbox"],ApFieldDate:["ap-field","date"],ApFieldNumber:["ap-field","number"],ApFieldRadio:["ap-field","radio"],ApFieldSwitch:["ap-field","switch"],ApFieldTextArea:["ap-field","text-area"],ApFieldDateRange:["ap-field","date-range"],ApFieldSelect:["ap-field","select"],ApFieldPassword:["ap-field","password"],ApFieldSlider:["ap-field","slider"],ApFieldSegmented:["ap-field","segmented"],ApFieldDateRate:["ap-field","rate"],ApForm:["ap-form"],ApFormItem:["ap-form","item"],ApFormItemGroup:["ap-form","item-group"],ApFormList:["ap-form","list"],ApFormSearchForm:["ap-form","search-form"],ApFormModalForm:["ap-form","modal-form"],ApFormDependency:["ap-form","dependency"],ApFormSet:["ap-form","set"],ApFormDrawerForm:["ap-form","drawer-form"],ApFormItemText:["ap-form","item-text"],ApFormItemTextArea:["ap-form","item-text-area"],ApFormItemNumber:["ap-form","item-number"],ApFormItemDate:["ap-form","item-date"],ApFormItemDateRange:["ap-form","item-date-range"],ApFormItemRadio:["ap-form","item-radio"],ApFormItemSelect:["ap-form","item-select"],ApFormItemSwitch:["ap-form","item-switch"],ApFormItemCheckbox:["ap-form","item-checkbox"],ApFormItemTextPassword:["ap-form","item-text-password"],ApFormItemTextGroup:["ap-form","item-text-group"],ApInfoLayout:["ap-info-layout"],ApList:["ap-list"],ApModal:["ap-modal"],ApDrawer:["ap-drawer"],ApTable:["ap-table"],ApTag:["ap-tag"],ApTagGroup:["ap-tag","group"],ApUpload:["ap-upload"],CheckCard:["check-card"],CheckCardGroup:["check-card","group"],ConfigProvider:["config-provider"],EditableTable:["editable-table"],EditableTableFormItem:["editable-table","form-item"],WorkOrderModal:["work-order-modal"],ApAttachment:["business","ap-attachment"],ApBatchAction:["business","ap-batch-action"],ApBatchActionGroup:["business","ap-batch-action-group"],ApButtonGroup:["business","ap-button-group"],ApCard:["business","ap-card"],ApExpandAlert:["business","ap-expand-alert"],ApExportGroup:["business","ap-export-group"],ApImage:["business","ap-image"],ApInputRadio:["business","ap-input-radio"],ApSizeInput:["business","ap-size-input"],ApLabel:["business","ap-label"],ApLabelGroup:["business","ap-label","group"],ApLadder:["business","ap-ladder"],ApSelectLayout:["business","ap-select-layout"],ApStatus:["business","ap-status"],ApStatusGroup:["business","ap-status","group"],ApTableModal:["business","ap-table-modal"],useTableModal:["business","ap-table-modal"],useTableSelectModal:["business","ap-table-modal"],ApTitle:["business","ap-title"],ApSummary:["business","ap-summary"],ScrollBar:["scroll-bar"],ScrollView:["scroll-view"],ApAppendix:["business","ap-appendix"],ApGroupSearch:["business","ap-group-search"],ApPopoverSelect:["business","ap-group-search","popover-select"],ApExtensionSelect:["business","ap-group-search","extension-select"],ApUploadSingle:["business","ap-upload-file","ap-upload-single"],BatchInputGroup:["business","batch-input-group"],ApFormControlRender:["ap-form","render"],ApFormItemRender:["ap-form","render"],Portal:["portal"],FullScreen:["full-screen"],ResizeObserver:["resize-observer"],ApGrid:["ap-grid"],EditableGrid:["ap-grid","editable"],EditableGridFormItem:["ap-grid","editable"]};exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={ApActionItem:["ap-action","item"],ApActionItemModal:["ap-action","item-modal"],ApActionItemPopconfirm:["ap-action","item-popconfirm"],ApActionItemDropdown:["ap-action","item-dropdown"],ApActionGroup:["ap-action","group"],ApButton:["ap-button"],ApActionButton:["ap-action-button"],ApDescriptions:["ap-descriptions"],ApDownload:["ap-download"],ApField:["ap-field"],ApFieldText:["ap-field","text"],ApFieldCheckbox:["ap-field","checkbox"],ApFieldDate:["ap-field","date"],ApFieldNumber:["ap-field","number"],ApFieldRadio:["ap-field","radio"],ApFieldSwitch:["ap-field","switch"],ApFieldTextArea:["ap-field","text-area"],ApFieldDateRange:["ap-field","date-range"],ApFieldSelect:["ap-field","select"],ApFieldPassword:["ap-field","password"],ApFieldSlider:["ap-field","slider"],ApFieldSegmented:["ap-field","segmented"],ApFieldDateRate:["ap-field","rate"],ApForm:["ap-form"],ApFormItem:["ap-form","item"],ApFormItemGroup:["ap-form","item-group"],ApFormList:["ap-form","list"],ApFormSearchForm:["ap-form","search-form"],ApFormModalForm:["ap-form","modal-form"],ApFormDependency:["ap-form","dependency"],ApFormSet:["ap-form","set"],ApFormDrawerForm:["ap-form","drawer-form"],ApFormItemText:["ap-form","item-text"],ApFormItemTextArea:["ap-form","item-text-area"],ApFormItemNumber:["ap-form","item-number"],ApFormItemDate:["ap-form","item-date"],ApFormItemDateRange:["ap-form","item-date-range"],ApFormItemRadio:["ap-form","item-radio"],ApFormItemSelect:["ap-form","item-select"],ApFormItemSwitch:["ap-form","item-switch"],ApFormItemCheckbox:["ap-form","item-checkbox"],ApFormItemTextPassword:["ap-form","item-text-password"],ApFormItemTextGroup:["ap-form","item-text-group"],ApInfoLayout:["ap-info-layout"],ApList:["ap-list"],ApModal:["ap-modal"],ApDrawer:["ap-drawer"],ApTable:["ap-table"],ApTag:["ap-tag"],ApTagGroup:["ap-tag","group"],ApUpload:["ap-upload"],CheckCard:["check-card"],CheckCardGroup:["check-card","group"],ConfigProvider:["config-provider"],EditableTable:["editable-table"],EditableTableFormItem:["editable-table","form-item"],WorkOrderModal:["work-order-modal"],ApAttachment:["business","ap-attachment"],ApBatchAction:["business","ap-batch-action"],ApBatchActionGroup:["business","ap-batch-action-group"],ApButtonGroup:["business","ap-button-group"],ApCard:["business","ap-card"],ApExpandAlert:["business","ap-expand-alert"],ApExportGroup:["business","ap-export-group"],ApImage:["business","ap-image"],ApInputRadio:["business","ap-input-radio"],ApSizeInput:["business","ap-size-input"],ApLabel:["business","ap-label"],ApLabelGroup:["business","ap-label","group"],ApLadder:["business","ap-ladder"],ApSelectLayout:["business","ap-select-layout"],ApStatus:["business","ap-status"],ApStatusGroup:["business","ap-status","group"],ApTableModal:["business","ap-table-modal"],useTableModal:["business","ap-table-modal"],useTableSelectModal:["business","ap-table-modal"],ApTitle:["business","ap-title"],ApSummary:["business","ap-summary"],ScrollBar:["scroll-bar"],ScrollView:["scroll-view"],ApAppendix:["business","ap-appendix"],ApGroupSearch:["business","ap-group-search"],ApPopoverSelect:["business","ap-group-search","popover-select"],ApExtensionSelect:["business","ap-group-search","extension-select"],ApUploadSingle:["business","ap-upload-file","ap-upload-single"],BatchInputGroup:["business","batch-input-group"],ApFormControlRender:["ap-form","render"],ApFormItemRender:["ap-form","render"],Portal:["portal"],FullScreen:["full-screen"],ResizeObserver:["resize-observer"],ApGrid:["ap-grid"],EditableGrid:["ap-grid","editable"],EditableGridFormItem:["ap-grid","editable"],ApText:["text"],Mask:["mask"]};exports.default=e;
|
|
@@ -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"),u=require("@aplus-frontend/antdv"),o=require("lodash-unified");require("../config-provider/index.js");const v=require("./context.js"),g=require("../config-provider/hooks/use-namespace.js"),S=e.defineComponent({__name:"index",props:{ellipsis:{type:[Boolean,Object]},delete:{type:Boolean},type:{},code:{type:Boolean},mark:{type:Boolean},strong:{type:Boolean},content:{},underline:{type:Boolean},disabled:{type:Boolean},prefixCls:{},editable:{type:[Boolean,Object]},keyboard:{type:Boolean},copyable:{type:[Boolean,Object]},"onUpdate:content":{},label:{},colon:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},labelStyle:{default:void 0},link:{type:[Boolean,String]},linkProps:{default:()=>({})},onClickContent:{},class:{},style:{}},setup(d){const s=e.useSlots(),l=d,{b:p,e:a,em:f,m}=g.useNamespace("ap-text"),{colon:t,vertical:r,labelStyle:y}=v.useInjectApTextGroup(),k=e.computed(()=>o.isUndefined(l.colon)?o.isUndefined(t==null?void 0:t.value)?!0:t.value:l.colon),b=e.computed(()=>o.isUndefined(l.vertical)?o.isUndefined(r==null?void 0:r.value)?!1:r.value:l.vertical),B=e.computed(()=>{const n=e.unref(y)||{};return Object.assign(n,l.labelStyle||{}),n}),i=e.computed(()=>{if(l.label)return e.isVNode(l.label)?l.label:e.createVNode(e.Fragment,null,[l.label])});return(n,N)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(p)(),{[e.unref(m)("vertical")]:b.value}])},[i.value?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(a)("label"),{[e.unref(f)("label","no-colon")]:!k.value}]),style:e.normalizeStyle(B.value)},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.value)))],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a)("content"))},[n.link?(e.openBlock(),e.createBlock(e.unref(u.TypographyLink),e.mergeProps({key:0},{href:e.unref(o.isString)(n.link)?n.link:void 0,...n.linkProps},{onClick:n.onClickContent}),{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3},16,["onClick"])):(e.openBlock(),e.createBlock(e.unref(u.TypographyText),e.mergeProps({key:1},e.unref(o.omit)(l,["label","colon","link","linkProps","vertical","labelStyle"]),{onClick:n.onClickContent}),e.createSlots({default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.content||"--"),1)])]),_:2},[e.renderList(e.unref(o.omit)(s,["default","addonAfter"]),(h,c)=>({name:c,fn:e.withCtx(C=>[e.renderSlot(n.$slots,c,e.normalizeProps(e.guardReactiveProps(C||{})))])}))]),1040,["onClick"])),s.addonAfter?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(e.unref(a)("content-addon-after"))},[e.renderSlot(n.$slots,"addonAfter")],2)):e.createCommentVNode("",!0)],2)],2))}});exports.default=S;
|
|
File without changes
|
|
File without changes
|