@aplus-frontend/ui 0.1.17 → 0.1.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-download/ap-download.vue.mjs +33 -30
- package/es/src/ap-download/style/ap-download.css +1 -4
- package/es/src/ap-field/select/index.vue.mjs +5 -5
- package/es/src/ap-form/ap-form-item.vue.mjs +18 -17
- package/es/src/ap-table/ap-table.vue.d.ts +10 -3
- package/es/src/ap-table/ap-table.vue.mjs +135 -134
- package/es/src/ap-table/constants.d.ts +8 -31
- package/es/src/ap-table/constants.mjs +51 -41
- package/es/src/ap-table/interface.d.ts +5 -1
- package/es/src/ap-table/style/ap-table.css +0 -3
- package/es/src/ap-table/utils.d.ts +7 -1
- package/es/src/ap-table/utils.mjs +113 -86
- package/es/src/business/ap-batch-action-group/interface.d.ts +1 -1
- package/es/src/business/ap-image/ApImage.vue.d.ts +31 -29
- package/es/src/business/ap-image/ApImage.vue2.mjs +32 -29
- package/es/src/business/ap-label/ApLabel.d.ts +141 -0
- package/es/src/business/ap-label/ApLabel.mjs +49 -0
- package/es/src/business/ap-label/ApLabelGroup.mjs +11 -12
- package/es/src/business/ap-label/constans.d.ts +65 -1
- package/es/src/business/ap-label/constans.mjs +33 -2
- package/es/src/business/ap-label/index.d.ts +1 -1
- package/es/src/business/ap-label/interface.d.ts +2 -1
- package/es/src/business/index.d.ts +195 -201
- package/es/src/business/index.mjs +18 -19
- package/es/src/pro-form/hooks/use-label-width.d.ts +1 -1
- package/es/src/theme/ap-download/ap-download.css +1 -4
- package/es/src/theme/ap-table/ap-table.css +0 -3
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/style/ap-download.css +1 -4
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +10 -3
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +8 -31
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/interface.d.ts +5 -1
- package/lib/src/ap-table/style/ap-table.css +0 -3
- package/lib/src/ap-table/utils.d.ts +7 -1
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/business/ap-batch-action-group/interface.d.ts +1 -1
- package/lib/src/business/ap-image/ApImage.vue.d.ts +31 -29
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-label/ApLabel.d.ts +141 -0
- package/lib/src/business/ap-label/ApLabel.js +1 -0
- package/lib/src/business/ap-label/ApLabelGroup.js +1 -1
- package/lib/src/business/ap-label/constans.d.ts +65 -1
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-label/index.d.ts +1 -1
- package/lib/src/business/ap-label/interface.d.ts +2 -1
- package/lib/src/business/index.d.ts +195 -201
- package/lib/src/business/index.js +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +1 -1
- package/lib/src/theme/ap-download/ap-download.css +1 -4
- package/lib/src/theme/ap-table/ap-table.css +0 -3
- package/package.json +1 -1
- package/es/src/business/ap-label/ApLabel.vue.d.ts +0 -56
- package/es/src/business/ap-label/ApLabel.vue.mjs +0 -4
- package/es/src/business/ap-label/ApLabel.vue2.mjs +0 -85
- package/lib/src/business/ap-label/ApLabel.vue.d.ts +0 -56
- package/lib/src/business/ap-label/ApLabel.vue.js +0 -1
- package/lib/src/business/ap-label/ApLabel.vue2.js +0 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { VNode, DefineComponent, PropType, CSSProperties, ComponentOptionsMixin, PublicProps, ExtractPropTypes, RendererNode, RendererElement } from 'vue';
|
|
2
|
+
import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
|
|
3
|
+
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
4
|
+
import { LiteralUnion } from 'ant-design-vue/es/_util/type';
|
|
5
|
+
declare const _default: DefineComponent<{
|
|
6
|
+
helpMessage: {
|
|
7
|
+
type: PropType<VNode | string | undefined>;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
placement: {
|
|
11
|
+
type: PropType<TooltipPlacement>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
iconColor: {
|
|
15
|
+
type: PropType<string>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
iconType: {
|
|
19
|
+
type: PropType<"question" | "warning" | "ellipsis" | "success">;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
iconSize: {
|
|
23
|
+
type: PropType<number>;
|
|
24
|
+
default: number;
|
|
25
|
+
};
|
|
26
|
+
show: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
toolTipBgColor: {
|
|
31
|
+
type: PropType<string>;
|
|
32
|
+
};
|
|
33
|
+
count: VueTypeValidableDef<any> & {
|
|
34
|
+
default: any;
|
|
35
|
+
};
|
|
36
|
+
showZero: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: any;
|
|
39
|
+
};
|
|
40
|
+
overflowCount: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
dot: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: any;
|
|
47
|
+
};
|
|
48
|
+
prefixCls: StringConstructor;
|
|
49
|
+
scrollNumberPrefixCls: StringConstructor;
|
|
50
|
+
status: {
|
|
51
|
+
type: PropType<"error" | "default" | "success" | "processing" | "warning">;
|
|
52
|
+
};
|
|
53
|
+
size: {
|
|
54
|
+
type: PropType<"default" | "small">;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
58
|
+
text: VueTypeValidableDef<any>;
|
|
59
|
+
offset: PropType<[string | number, string | number]>;
|
|
60
|
+
numberStyle: {
|
|
61
|
+
type: PropType<CSSProperties>;
|
|
62
|
+
default: CSSProperties;
|
|
63
|
+
};
|
|
64
|
+
title: StringConstructor;
|
|
65
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
66
|
+
helpMessage: {
|
|
67
|
+
type: PropType<VNode | string | undefined>;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
placement: {
|
|
71
|
+
type: PropType<TooltipPlacement>;
|
|
72
|
+
default: string;
|
|
73
|
+
};
|
|
74
|
+
iconColor: {
|
|
75
|
+
type: PropType<string>;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
iconType: {
|
|
79
|
+
type: PropType<"question" | "warning" | "ellipsis" | "success">;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
iconSize: {
|
|
83
|
+
type: PropType<number>;
|
|
84
|
+
default: number;
|
|
85
|
+
};
|
|
86
|
+
show: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
toolTipBgColor: {
|
|
91
|
+
type: PropType<string>;
|
|
92
|
+
};
|
|
93
|
+
count: VueTypeValidableDef<any> & {
|
|
94
|
+
default: any;
|
|
95
|
+
};
|
|
96
|
+
showZero: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: any;
|
|
99
|
+
};
|
|
100
|
+
overflowCount: {
|
|
101
|
+
type: NumberConstructor;
|
|
102
|
+
default: number;
|
|
103
|
+
};
|
|
104
|
+
dot: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: any;
|
|
107
|
+
};
|
|
108
|
+
prefixCls: StringConstructor;
|
|
109
|
+
scrollNumberPrefixCls: StringConstructor;
|
|
110
|
+
status: {
|
|
111
|
+
type: PropType<"error" | "default" | "success" | "processing" | "warning">;
|
|
112
|
+
};
|
|
113
|
+
size: {
|
|
114
|
+
type: PropType<"default" | "small">;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
color: PropType<LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
118
|
+
text: VueTypeValidableDef<any>;
|
|
119
|
+
offset: PropType<[string | number, string | number]>;
|
|
120
|
+
numberStyle: {
|
|
121
|
+
type: PropType<CSSProperties>;
|
|
122
|
+
default: CSSProperties;
|
|
123
|
+
};
|
|
124
|
+
title: StringConstructor;
|
|
125
|
+
}>>, {
|
|
126
|
+
size: "small" | "default";
|
|
127
|
+
placement: TooltipPlacement;
|
|
128
|
+
iconType: "ellipsis" | "success" | "warning" | "question";
|
|
129
|
+
iconSize: number;
|
|
130
|
+
show: boolean;
|
|
131
|
+
dot: boolean;
|
|
132
|
+
helpMessage: string | VNode< RendererNode, RendererElement, {
|
|
133
|
+
[key: string]: any;
|
|
134
|
+
}> | undefined;
|
|
135
|
+
count: any;
|
|
136
|
+
showZero: boolean;
|
|
137
|
+
overflowCount: number;
|
|
138
|
+
numberStyle: CSSProperties;
|
|
139
|
+
iconColor: string;
|
|
140
|
+
}, {}>;
|
|
141
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("ant-design-vue"),c=require("@aplus-frontend/icon");require("../../config-provider/index.js");const d=require("./constans.js"),m=require("lodash-unified");require("./style.css");const f=require("../../config-provider/hooks/use-namespace.js"),A=e.defineComponent({name:"ApLabel",props:d.ApLabelProps(),setup(t){const{b:i,e:u}=f.useNamespace("ap-label"),n=e.useSlots(),o=e.computed(()=>({color:t.iconColor,"font-size":t.iconSize+"px","margin-left":"4px",display:"inline-flex"})),r=(a,l)=>a?e.createVNode(s.Tooltip,{title:a,placement:l.placement||"top",color:l.toolTipBgColor},{default:()=>[l.iconType==="question"&&e.createVNode(c.IconApAdLineAnnotation,{style:o.value},null),l.iconType==="warning"&&e.createVNode(c.IconApAdFillWarn,{style:o.value},null),l.iconType==="ellipsis"&&e.createVNode(c.IconApAdFillExecution,{style:o.value},null),l.iconType==="success"&&e.createVNode(c.IconApAdFillSuccessful,{style:o.value},null)]}):null;return()=>e.createVNode("div",null,[t.show?e.createVNode("div",{class:[i()]},[e.createVNode("div",{class:[u("content")]},[e.createVNode(s.Badge,e.mergeProps(m.omit(t,["helpMessage","placement","iconColor"]),{status:t.status?t.status:"default"}),null),n.default?n.default():r(t.helpMessage,t)]),n.custom?e.createVNode("div",{class:[u("custom")]},[n.custom()]):null]):null])}});exports.default=A;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue");require("../../config-provider/index.js");require("./ApLabel.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("vue");require("../../config-provider/index.js");const o=require("./ApLabel.js"),a=require("lodash-unified"),l=require("./constans.js"),s=require("ant-design-vue"),c=require("../../config-provider/hooks/use-namespace.js"),{b:d}=c.useNamespace("ap-label-group"),i=u.defineComponent({name:"ApLabelGroup",props:l.ApLabelGroupProps(),setup(r){const n=e=>(r.tagValue||r.tagValue===0)&&e.tagConfig&&e.tagConfig.length>0?()=>e.tagConfig.filter(t=>r.tagValue===t.value).map(t=>u.createVNode(s.Tag,a.omit(t,["text"]),{default:()=>[t.text]})):e.customRender?()=>u.createVNode("div",null,[e.customRender(r.record)]):null;return()=>u.createVNode("div",{class:d()},[r.columns?r.columns.map((e,t)=>u.createVNode(o.default,u.mergeProps({key:t,show:r.value===e.value},a.omit(e,["value","tagConfig","customRender"])),{custom:n(e)})):u.createVNode("div",null,[u.createTextVNode("columns数组不能为空")])])}});exports.default=i;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, VNode, CSSProperties } from 'vue';
|
|
2
2
|
import { ApLabelGroupItemProps } from './interface';
|
|
3
|
+
import { TooltipPlacement } from 'ant-design-vue/es/Tooltip';
|
|
4
|
+
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
|
+
import { LiteralUnion } from 'ant-design-vue/es/_util/type';
|
|
3
6
|
export declare const ApLabelGroupProps: () => {
|
|
4
7
|
value: {
|
|
5
8
|
type: PropType<string | number | undefined>;
|
|
@@ -18,3 +21,64 @@ export declare const ApLabelGroupProps: () => {
|
|
|
18
21
|
default: null;
|
|
19
22
|
};
|
|
20
23
|
};
|
|
24
|
+
export declare const ApLabelProps: () => {
|
|
25
|
+
helpMessage: {
|
|
26
|
+
type: PropType<VNode | string | undefined>;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
placement: {
|
|
30
|
+
type: PropType<TooltipPlacement>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
iconColor: {
|
|
34
|
+
type: PropType<string>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
iconType: {
|
|
38
|
+
type: PropType<"question" | "warning" | "ellipsis" | "success">;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
iconSize: {
|
|
42
|
+
type: PropType<number>;
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
45
|
+
show: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
toolTipBgColor: {
|
|
50
|
+
type: PropType<string>;
|
|
51
|
+
};
|
|
52
|
+
count: VueTypeValidableDef<any> & {
|
|
53
|
+
default: any;
|
|
54
|
+
};
|
|
55
|
+
showZero: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: any;
|
|
58
|
+
};
|
|
59
|
+
overflowCount: {
|
|
60
|
+
type: NumberConstructor;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
dot: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: any;
|
|
66
|
+
};
|
|
67
|
+
prefixCls: StringConstructor;
|
|
68
|
+
scrollNumberPrefixCls: StringConstructor;
|
|
69
|
+
status: {
|
|
70
|
+
type: PropType<"error" | "default" | "success" | "processing" | "warning">;
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
type: PropType<"default" | "small">;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
color: PropType< LiteralUnion<"blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue">>;
|
|
77
|
+
text: VueTypeValidableDef<any>;
|
|
78
|
+
offset: PropType<[string | number, string | number]>;
|
|
79
|
+
numberStyle: {
|
|
80
|
+
type: PropType< CSSProperties>;
|
|
81
|
+
default: CSSProperties;
|
|
82
|
+
};
|
|
83
|
+
title: StringConstructor;
|
|
84
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({value:{type:String,default:void 0},tagValue:{type:String,default:void 0},columns:{type:Array,default:null},record:{type:Object,default:null}});exports.ApLabelGroupProps=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("ant-design-vue/es/badge/Badge"),t=()=>({value:{type:String,default:void 0},tagValue:{type:String,default:void 0},columns:{type:Array,default:null},record:{type:Object,default:null}}),o=()=>({...e.badgeProps(),helpMessage:{type:String,default:void 0},placement:{type:String,default:"top"},iconColor:{type:String,default:"#FF4D4F"},iconType:{type:String,default:"question"},iconSize:{type:Number,default:16},show:{type:Boolean,default:!0},toolTipBgColor:{type:String}});exports.ApLabelGroupProps=t;exports.ApLabelProps=o;
|
|
@@ -4,12 +4,13 @@ import { TagProps } from 'ant-design-vue/es/Tag';
|
|
|
4
4
|
import { VNode, VNodeChild } from 'vue';
|
|
5
5
|
type Recordable = Record<string, any>;
|
|
6
6
|
export type ApLabelProps = BadgeProps & Partial<{
|
|
7
|
-
helpMessage: string;
|
|
7
|
+
helpMessage: VNode | string | undefined;
|
|
8
8
|
placement: TooltipPlacement;
|
|
9
9
|
iconColor: string;
|
|
10
10
|
iconType: 'question' | 'warning' | 'ellipsis' | 'success';
|
|
11
11
|
iconSize: number;
|
|
12
12
|
show: boolean;
|
|
13
|
+
toolTipBgColor: string;
|
|
13
14
|
}>;
|
|
14
15
|
export type tagConfigKey = TagProps & {
|
|
15
16
|
value: number | string | undefined | null;
|