@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
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ApLabelProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
|
|
4
|
-
declare function __VLS_template(): {
|
|
5
|
-
default?(_: {}): any;
|
|
6
|
-
custom?(_: {}): any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApLabelProps>, {
|
|
9
|
-
status: string;
|
|
10
|
-
placement: string;
|
|
11
|
-
iconColor: string;
|
|
12
|
-
iconType: string;
|
|
13
|
-
iconSize: number;
|
|
14
|
-
text: string;
|
|
15
|
-
show: boolean;
|
|
16
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApLabelProps>, {
|
|
17
|
-
status: string;
|
|
18
|
-
placement: string;
|
|
19
|
-
iconColor: string;
|
|
20
|
-
iconType: string;
|
|
21
|
-
iconSize: number;
|
|
22
|
-
text: string;
|
|
23
|
-
show: boolean;
|
|
24
|
-
}>>>, {
|
|
25
|
-
placement: TooltipPlacement;
|
|
26
|
-
iconType: "question" | "warning" | "ellipsis" | "success";
|
|
27
|
-
text: any;
|
|
28
|
-
iconSize: number;
|
|
29
|
-
status: "error" | "default" | "success" | "warning" | "processing";
|
|
30
|
-
show: boolean;
|
|
31
|
-
iconColor: string;
|
|
32
|
-
}, {}>;
|
|
33
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
34
|
-
export default _default;
|
|
35
|
-
type __VLS_WithDefaults<P, D> = {
|
|
36
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
-
default: D[K];
|
|
38
|
-
}> : P[K];
|
|
39
|
-
};
|
|
40
|
-
type __VLS_Prettify<T> = {
|
|
41
|
-
[K in keyof T]: T[K];
|
|
42
|
-
} & {};
|
|
43
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
-
new (): {
|
|
45
|
-
$slots: S;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
-
type __VLS_TypePropsToOption<T> = {
|
|
50
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
-
} : {
|
|
53
|
-
type: PropType<T[K]>;
|
|
54
|
-
required: true;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, computed as A, openBlock as l, createElementBlock as c, normalizeClass as i, unref as t, createElementVNode as u, createVNode as k, normalizeProps as C, guardReactiveProps as g, renderSlot as m, Fragment as h, createBlock as n, withCtx as v, normalizeStyle as a, createCommentVNode as o } from "vue";
|
|
2
|
-
import { Badge as b, Tooltip as x } from "ant-design-vue";
|
|
3
|
-
import { IconApAdLineAnnotation as z, IconApAdFillWarn as B, IconApAdFillExecution as F, IconApAdFillSuccessful as S } from "@aplus-frontend/icon";
|
|
4
|
-
import "../../config-provider/index.mjs";
|
|
5
|
-
import { omit as w } from "lodash-unified";
|
|
6
|
-
import "./style.css";
|
|
7
|
-
import { useNamespace as T } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
-
const $ = /* @__PURE__ */ y({
|
|
9
|
-
name: "ApLabel",
|
|
10
|
-
__name: "ApLabel",
|
|
11
|
-
props: {
|
|
12
|
-
count: {},
|
|
13
|
-
showZero: { type: Boolean },
|
|
14
|
-
overflowCount: {},
|
|
15
|
-
dot: { type: Boolean },
|
|
16
|
-
prefixCls: {},
|
|
17
|
-
scrollNumberPrefixCls: {},
|
|
18
|
-
status: { default: "default" },
|
|
19
|
-
size: {},
|
|
20
|
-
color: {},
|
|
21
|
-
text: { default: "" },
|
|
22
|
-
offset: {},
|
|
23
|
-
numberStyle: {},
|
|
24
|
-
title: {},
|
|
25
|
-
helpMessage: {},
|
|
26
|
-
placement: { default: "top" },
|
|
27
|
-
iconColor: { default: "#FF4D4F" },
|
|
28
|
-
iconType: { default: "question" },
|
|
29
|
-
iconSize: { default: 16 },
|
|
30
|
-
show: { type: Boolean, default: !0 }
|
|
31
|
-
},
|
|
32
|
-
setup(d) {
|
|
33
|
-
const s = A(() => ({
|
|
34
|
-
color: e.iconColor,
|
|
35
|
-
"font-size": e.iconSize + "px",
|
|
36
|
-
"margin-left": "4px",
|
|
37
|
-
display: "inline-flex"
|
|
38
|
-
})), e = d, { b: f, e: p } = T("ap-label");
|
|
39
|
-
return (r, N) => e.show ? (l(), c("div", {
|
|
40
|
-
key: 0,
|
|
41
|
-
class: i([t(f)()])
|
|
42
|
-
}, [
|
|
43
|
-
u("div", {
|
|
44
|
-
class: i([t(p)("content")])
|
|
45
|
-
}, [
|
|
46
|
-
k(t(b), C(g(t(w)(e, ["helpMessage", "placement", "iconColor"]))), null, 16),
|
|
47
|
-
r.$slots.default ? m(r.$slots, "default", { key: 0 }) : (l(), c(h, { key: 1 }, [
|
|
48
|
-
e.helpMessage ? (l(), n(t(x), {
|
|
49
|
-
key: 0,
|
|
50
|
-
placement: e.placement,
|
|
51
|
-
title: e.helpMessage
|
|
52
|
-
}, {
|
|
53
|
-
default: v(() => [
|
|
54
|
-
e.iconType === "question" ? (l(), n(t(z), {
|
|
55
|
-
key: 0,
|
|
56
|
-
style: a(s.value)
|
|
57
|
-
}, null, 8, ["style"])) : o("", !0),
|
|
58
|
-
e.iconType === "warning" ? (l(), n(t(B), {
|
|
59
|
-
key: 1,
|
|
60
|
-
style: a(s.value)
|
|
61
|
-
}, null, 8, ["style"])) : o("", !0),
|
|
62
|
-
e.iconType === "ellipsis" ? (l(), n(t(F), {
|
|
63
|
-
key: 2,
|
|
64
|
-
style: a(s.value)
|
|
65
|
-
}, null, 8, ["style"])) : o("", !0),
|
|
66
|
-
e.iconType === "success" ? (l(), n(t(S), {
|
|
67
|
-
key: 3,
|
|
68
|
-
style: a(s.value)
|
|
69
|
-
}, null, 8, ["style"])) : o("", !0)
|
|
70
|
-
]),
|
|
71
|
-
_: 1
|
|
72
|
-
}, 8, ["placement", "title"])) : o("", !0)
|
|
73
|
-
], 64))
|
|
74
|
-
], 2),
|
|
75
|
-
u("div", {
|
|
76
|
-
class: i([t(p)("custom")])
|
|
77
|
-
}, [
|
|
78
|
-
m(r.$slots, "custom")
|
|
79
|
-
], 2)
|
|
80
|
-
], 2)) : o("", !0);
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
export {
|
|
84
|
-
$ as default
|
|
85
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { ApLabelProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
|
|
4
|
-
declare function __VLS_template(): {
|
|
5
|
-
default?(_: {}): any;
|
|
6
|
-
custom?(_: {}): any;
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApLabelProps>, {
|
|
9
|
-
status: string;
|
|
10
|
-
placement: string;
|
|
11
|
-
iconColor: string;
|
|
12
|
-
iconType: string;
|
|
13
|
-
iconSize: number;
|
|
14
|
-
text: string;
|
|
15
|
-
show: boolean;
|
|
16
|
-
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApLabelProps>, {
|
|
17
|
-
status: string;
|
|
18
|
-
placement: string;
|
|
19
|
-
iconColor: string;
|
|
20
|
-
iconType: string;
|
|
21
|
-
iconSize: number;
|
|
22
|
-
text: string;
|
|
23
|
-
show: boolean;
|
|
24
|
-
}>>>, {
|
|
25
|
-
placement: TooltipPlacement;
|
|
26
|
-
iconType: "question" | "warning" | "ellipsis" | "success";
|
|
27
|
-
text: any;
|
|
28
|
-
iconSize: number;
|
|
29
|
-
status: "error" | "default" | "success" | "warning" | "processing";
|
|
30
|
-
show: boolean;
|
|
31
|
-
iconColor: string;
|
|
32
|
-
}, {}>;
|
|
33
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
34
|
-
export default _default;
|
|
35
|
-
type __VLS_WithDefaults<P, D> = {
|
|
36
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
-
default: D[K];
|
|
38
|
-
}> : P[K];
|
|
39
|
-
};
|
|
40
|
-
type __VLS_Prettify<T> = {
|
|
41
|
-
[K in keyof T]: T[K];
|
|
42
|
-
} & {};
|
|
43
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
44
|
-
new (): {
|
|
45
|
-
$slots: S;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
-
type __VLS_TypePropsToOption<T> = {
|
|
50
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
-
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
-
} : {
|
|
53
|
-
type: PropType<T[K]>;
|
|
54
|
-
required: true;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./ApLabel.vue2.js");exports.default=e.default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("ant-design-vue"),t=require("@aplus-frontend/icon");require("../../config-provider/index.js");const u=require("lodash-unified");require("./style.css");const i=require("../../config-provider/hooks/use-namespace.js"),p=e.defineComponent({name:"ApLabel",__name:"ApLabel",props:{count:{},showZero:{type:Boolean},overflowCount:{},dot:{type:Boolean},prefixCls:{},scrollNumberPrefixCls:{},status:{default:"default"},size:{},color:{},text:{default:""},offset:{},numberStyle:{},title:{},helpMessage:{},placement:{default:"top"},iconColor:{default:"#FF4D4F"},iconType:{default:"question"},iconSize:{default:16},show:{type:Boolean,default:!0}},setup(s){const o=e.computed(()=>({color:l.iconColor,"font-size":l.iconSize+"px","margin-left":"4px",display:"inline-flex"})),l=s,{b:c,e:r}=i.useNamespace("ap-label");return(n,m)=>l.show?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([e.unref(c)()])},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("content")])},[e.createVNode(e.unref(a.Badge),e.normalizeProps(e.guardReactiveProps(e.unref(u.omit)(l,["helpMessage","placement","iconColor"]))),null,16),n.$slots.default?e.renderSlot(n.$slots,"default",{key:0}):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.helpMessage?(e.openBlock(),e.createBlock(e.unref(a.Tooltip),{key:0,placement:l.placement,title:l.helpMessage},{default:e.withCtx(()=>[l.iconType==="question"?(e.openBlock(),e.createBlock(e.unref(t.IconApAdLineAnnotation),{key:0,style:e.normalizeStyle(o.value)},null,8,["style"])):e.createCommentVNode("",!0),l.iconType==="warning"?(e.openBlock(),e.createBlock(e.unref(t.IconApAdFillWarn),{key:1,style:e.normalizeStyle(o.value)},null,8,["style"])):e.createCommentVNode("",!0),l.iconType==="ellipsis"?(e.openBlock(),e.createBlock(e.unref(t.IconApAdFillExecution),{key:2,style:e.normalizeStyle(o.value)},null,8,["style"])):e.createCommentVNode("",!0),l.iconType==="success"?(e.openBlock(),e.createBlock(e.unref(t.IconApAdFillSuccessful),{key:3,style:e.normalizeStyle(o.value)},null,8,["style"])):e.createCommentVNode("",!0)]),_:1},8,["placement","title"])):e.createCommentVNode("",!0)],64))],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(r)("custom")])},[e.renderSlot(n.$slots,"custom")],2)],2)):e.createCommentVNode("",!0)}});exports.default=p;
|