@aplus-frontend/ui 0.0.31 → 0.0.33
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-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +8 -8
- package/es/src/ap-field/date-range/index.vue.d.ts +6 -6
- package/es/src/ap-field/rate/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text/password.vue.d.ts +3 -3
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
- package/es/src/ap-form/ap-form-item-group/helper.mjs +30 -25
- package/es/src/ap-form/ap-form-item-group/index.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form-item-group/index.vue.mjs +20 -22
- package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form.vue.d.ts +2 -2
- package/es/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/es/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/es/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/es/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/modal-form/index.vue.mjs +43 -39
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/es/src/ap-list/hooks/use-offline-list.d.ts +1 -1
- package/es/src/ap-list/index.vue.d.ts +15 -15
- package/es/src/ap-table/ap-table.vue.d.ts +60 -60
- package/es/src/ap-table/constants.d.ts +2778 -2778
- package/es/src/ap-table/utils.d.ts +2 -8474
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
- package/es/src/ap-tag/ap-tag-group.vue.mjs +81 -61
- package/es/src/ap-tag/interface.d.ts +24 -0
- package/es/src/ap-tag/style/ap-tag-group.css +8 -0
- package/es/src/ap-upload/styles/multiple-file.css +4 -0
- package/es/src/ap-upload/styles/picture.css +1 -1
- package/es/src/base-button/index.d.ts +17 -17
- package/es/src/basic/index.d.ts +3 -3
- package/es/src/business/index.d.ts +40 -40
- package/es/src/button/index.d.ts +1 -1
- package/es/src/check-card/group.vue.d.ts +3 -0
- package/es/src/check-card/group.vue.mjs +17 -16
- package/es/src/check-card/index.vue.d.ts +1 -1
- package/es/src/config-provider/config-provider.d.ts +1 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/es/src/config-provider/index.d.ts +4 -3
- package/es/src/container/collapse/header.vue.d.ts +1 -1
- package/es/src/container/collapse/index.vue.d.ts +1 -1
- package/es/src/container/index.d.ts +5 -5
- package/es/src/count-down/index.d.ts +2 -2
- package/es/src/cropper/cropper-image.vue.d.ts +1 -1
- package/es/src/cropper/index.d.ts +34 -34
- package/es/src/description/index.d.ts +2 -2
- package/es/src/design-token/index.mjs +6 -2
- package/es/src/dropdown/index.d.ts +2 -2
- package/es/src/editable-table/form-item.vue.d.ts +23 -23
- package/es/src/editable-table/index.vue.d.ts +27 -27
- package/es/src/icon/index.d.ts +2 -2
- package/es/src/icon-picker/index.d.ts +1 -1
- package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/es/src/modal/components/modal.d.ts +1 -1
- package/es/src/modal/index.d.ts +1 -1
- package/es/src/pro-form/component-map.d.ts +2 -2
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-transfer.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-advanced.d.ts +1 -1
- package/es/src/pro-form/hooks/use-form-values.d.ts +1 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +27 -27
- package/es/src/pro-form/pro-form.vue.d.ts +4 -4
- package/es/src/pro-table/component-map.d.ts +2 -2
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -2
- package/es/src/pro-table/components/table-action.vue.d.ts +1 -1
- package/es/src/pro-table/components/table-footer.vue.d.ts +2 -2
- package/es/src/pro-table/components/table-image.vue.d.ts +1 -1
- package/es/src/pro-table/hooks/use-data-source.d.ts +5 -5
- package/es/src/pro-table/hooks/use-row-selection.d.ts +1 -1
- package/es/src/pro-table/hooks/use-table-footer.d.ts +1 -1
- package/es/src/pro-table/hooks/use-table-header.d.ts +1 -1
- package/es/src/pro-table/pro-table.vue.d.ts +12 -12
- package/es/src/prompt/utils.d.ts +2 -2
- package/es/src/scroll-bar/index.d.ts +21 -21
- package/es/src/scroll-bar/scroll-bar.vue.d.ts +2 -2
- package/es/src/strength-meter/index.d.ts +1 -1
- package/es/src/theme/ap-tag/ap-tag-group.css +8 -0
- package/es/src/theme/ap-upload/multiple-file.css +4 -0
- package/es/src/theme/ap-upload/picture.css +1 -1
- package/es/src/transition/create-transition.d.ts +1 -1
- package/es/src/transition/index.d.ts +11 -11
- package/es/src/work-order-modal/interfaces.d.ts +2 -2
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +8 -8
- package/lib/src/ap-field/date-range/index.vue.d.ts +6 -6
- package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +3 -3
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item-group/helper.d.ts +7 -0
- package/lib/src/ap-form/ap-form-item-group/helper.js +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item-group/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +2 -2
- package/lib/src/ap-form/hooks/use-watch.d.ts +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/radio/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/switch/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text/password.vue.d.ts +3 -3
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +3 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -4
- package/lib/src/ap-list/hooks/use-offline-list.d.ts +1 -1
- package/lib/src/ap-list/index.vue.d.ts +15 -15
- package/lib/src/ap-table/ap-table.vue.d.ts +60 -60
- package/lib/src/ap-table/constants.d.ts +2778 -2778
- package/lib/src/ap-table/utils.d.ts +2 -8474
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +16 -6
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-tag/interface.d.ts +24 -0
- package/lib/src/ap-tag/style/ap-tag-group.css +8 -0
- package/lib/src/ap-upload/styles/multiple-file.css +4 -0
- package/lib/src/ap-upload/styles/picture.css +1 -1
- package/lib/src/base-button/index.d.ts +17 -17
- package/lib/src/basic/index.d.ts +3 -3
- package/lib/src/business/index.d.ts +40 -40
- package/lib/src/button/index.d.ts +1 -1
- package/lib/src/check-card/group.vue.d.ts +3 -0
- package/lib/src/check-card/group.vue.js +1 -1
- package/lib/src/check-card/index.vue.d.ts +1 -1
- package/lib/src/config-provider/config-provider.d.ts +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/lib/src/config-provider/index.d.ts +4 -3
- package/lib/src/container/collapse/header.vue.d.ts +1 -1
- package/lib/src/container/collapse/index.vue.d.ts +1 -1
- package/lib/src/container/index.d.ts +5 -5
- package/lib/src/count-down/index.d.ts +2 -2
- package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
- package/lib/src/cropper/index.d.ts +34 -34
- package/lib/src/description/index.d.ts +2 -2
- package/lib/src/design-token/index.js +1 -1
- package/lib/src/dropdown/index.d.ts +2 -2
- package/lib/src/editable-table/form-item.vue.d.ts +23 -23
- package/lib/src/editable-table/index.vue.d.ts +27 -27
- package/lib/src/icon/index.d.ts +2 -2
- package/lib/src/icon-picker/index.d.ts +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/lib/src/modal/components/modal.d.ts +1 -1
- package/lib/src/modal/index.d.ts +1 -1
- package/lib/src/pro-form/component-map.d.ts +2 -2
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-advanced.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-form-values.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +27 -27
- package/lib/src/pro-form/pro-form.vue.d.ts +4 -4
- package/lib/src/pro-table/component-map.d.ts +2 -2
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +2 -2
- package/lib/src/pro-table/components/table-action.vue.d.ts +1 -1
- package/lib/src/pro-table/components/table-footer.vue.d.ts +2 -2
- package/lib/src/pro-table/components/table-image.vue.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-data-source.d.ts +5 -5
- package/lib/src/pro-table/hooks/use-row-selection.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-table-footer.d.ts +1 -1
- package/lib/src/pro-table/hooks/use-table-header.d.ts +1 -1
- package/lib/src/pro-table/pro-table.vue.d.ts +12 -12
- package/lib/src/prompt/utils.d.ts +2 -2
- package/lib/src/scroll-bar/index.d.ts +21 -21
- package/lib/src/scroll-bar/scroll-bar.vue.d.ts +2 -2
- package/lib/src/strength-meter/index.d.ts +1 -1
- package/lib/src/theme/ap-tag/ap-tag-group.css +8 -0
- package/lib/src/theme/ap-upload/multiple-file.css +4 -0
- package/lib/src/theme/ap-upload/picture.css +1 -1
- package/lib/src/transition/create-transition.d.ts +1 -1
- package/lib/src/transition/index.d.ts +11 -11
- package/lib/src/work-order-modal/interfaces.d.ts +2 -2
- package/package.json +2 -2
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { ApTagGroupProps, ApTagProps } from './interface';
|
|
1
|
+
import { ApTagGroupProps, ApTagProps, EllipsisProps } from './interface';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
type ApTagGroupSlots = {
|
|
5
|
+
tooltip?: (props: {
|
|
6
|
+
tags: ApTagProps[];
|
|
7
|
+
}) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTagGroupProps>, {
|
|
5
10
|
list: () => ApTagProps[];
|
|
6
11
|
space: number;
|
|
7
|
-
|
|
12
|
+
ellipsis: () => {};
|
|
8
13
|
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTagGroupProps>, {
|
|
9
14
|
list: () => ApTagProps[];
|
|
10
15
|
space: number;
|
|
11
|
-
|
|
16
|
+
ellipsis: () => {};
|
|
12
17
|
}>>>, {
|
|
18
|
+
ellipsis: EllipsisProps;
|
|
13
19
|
space: number;
|
|
14
20
|
list: ApTagProps[];
|
|
15
|
-
|
|
16
|
-
}, {}>;
|
|
21
|
+
}, {}>, Readonly<ApTagGroupSlots> & ApTagGroupSlots>;
|
|
17
22
|
export default _default;
|
|
18
23
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
24
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -32,3 +37,8 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
32
37
|
type __VLS_Prettify<T> = {
|
|
33
38
|
[K in keyof T]: T[K];
|
|
34
39
|
} & {};
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { createElementVNode as
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import
|
|
1
|
+
import { createElementVNode as t, defineComponent as N, ref as v, computed as s, unref as o, nextTick as g, watch as P, onMounted as S, onUnmounted as j, openBlock as u, createBlock as h, mergeProps as _, withCtx as y, renderSlot as q, createTextVNode as G, toDisplayString as k, normalizeClass as b, normalizeStyle as E, createElementBlock as B, Fragment as R, renderList as I, createCommentVNode as U } from "vue";
|
|
2
|
+
import { Tooltip as H } from "ant-design-vue";
|
|
3
|
+
import J from "@ant-design/icons-vue";
|
|
4
4
|
import "./ap-tag.vue2.mjs";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
|
+
import { omit as K } from "lodash-unified";
|
|
6
7
|
import "./style/ap-tag-group.css";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
8
|
+
import { useLocale as O } from "../config-provider/hooks/use-locale.mjs";
|
|
9
|
+
import { useGlobalConfig as Q } from "../config-provider/hooks/use-global-config.mjs";
|
|
10
|
+
import { useNamespace as X } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import Y from "./ap-tag.vue.mjs";
|
|
12
|
+
const Z = /* @__PURE__ */ t("svg", {
|
|
10
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11
14
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
12
15
|
fill: "none",
|
|
@@ -15,9 +18,9 @@ const I = /* @__PURE__ */ e("svg", {
|
|
|
15
18
|
height: "16",
|
|
16
19
|
viewBox: "0 0 16 16"
|
|
17
20
|
}, [
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
+
/* @__PURE__ */ t("defs", null, [
|
|
22
|
+
/* @__PURE__ */ t("clipPath", { id: "master_svg0_1133_24991" }, [
|
|
23
|
+
/* @__PURE__ */ t("rect", {
|
|
21
24
|
x: "0",
|
|
22
25
|
y: "0",
|
|
23
26
|
width: "16",
|
|
@@ -26,9 +29,9 @@ const I = /* @__PURE__ */ e("svg", {
|
|
|
26
29
|
})
|
|
27
30
|
])
|
|
28
31
|
]),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ t("g", { "clip-path": "url(#master_svg0_1133_24991)" }, [
|
|
33
|
+
/* @__PURE__ */ t("g", null, [
|
|
34
|
+
/* @__PURE__ */ t("ellipse", {
|
|
32
35
|
cx: "8",
|
|
33
36
|
cy: "8",
|
|
34
37
|
rx: "1",
|
|
@@ -37,8 +40,8 @@ const I = /* @__PURE__ */ e("svg", {
|
|
|
37
40
|
"fill-opacity": "1"
|
|
38
41
|
})
|
|
39
42
|
]),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
43
|
+
/* @__PURE__ */ t("g", null, [
|
|
44
|
+
/* @__PURE__ */ t("ellipse", {
|
|
42
45
|
cx: "3.25",
|
|
43
46
|
cy: "8",
|
|
44
47
|
rx: "1",
|
|
@@ -47,8 +50,8 @@ const I = /* @__PURE__ */ e("svg", {
|
|
|
47
50
|
"fill-opacity": "1"
|
|
48
51
|
})
|
|
49
52
|
]),
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ t("g", null, [
|
|
54
|
+
/* @__PURE__ */ t("ellipse", {
|
|
52
55
|
cx: "12.75",
|
|
53
56
|
cy: "8",
|
|
54
57
|
rx: "1",
|
|
@@ -58,80 +61,97 @@ const I = /* @__PURE__ */ e("svg", {
|
|
|
58
61
|
})
|
|
59
62
|
])
|
|
60
63
|
])
|
|
61
|
-
], -1),
|
|
64
|
+
], -1), pe = /* @__PURE__ */ N({
|
|
62
65
|
__name: "ap-tag-group",
|
|
63
66
|
props: {
|
|
64
67
|
list: { default: () => [] },
|
|
65
68
|
space: { default: 4 },
|
|
66
|
-
ellipsisColor: {
|
|
69
|
+
ellipsisColor: {},
|
|
70
|
+
ellipsis: { default: () => ({}) }
|
|
67
71
|
},
|
|
68
|
-
setup(
|
|
69
|
-
const
|
|
70
|
-
|
|
72
|
+
setup(T) {
|
|
73
|
+
const { t: V } = O(), l = T, z = Q("uiMode"), { b: L, bm: x } = X("tag-group"), c = v(), r = s(() => ({
|
|
74
|
+
...{
|
|
75
|
+
iconColor: "#34B77C",
|
|
76
|
+
symbol: "icon",
|
|
77
|
+
text: V("ap.common.more")
|
|
78
|
+
},
|
|
79
|
+
...l.ellipsis
|
|
80
|
+
})), M = s(() => r.value.tooltip && typeof r.value.tooltip == "object" ? K(r.value.tooltip, ["trigger", "title"]) : {}), d = s(() => o(n) < l.list.length), $ = s(() => l.list.slice(0, o(n))), n = v(0), p = v(0), m = v(l.list.length), W = s(() => l.list.map((e) => e.text).join("、")), A = s(() => [L()].filter(Boolean)), D = s(() => z.value === "aplus" ? [x("ellipsis-text", "aplus")] : [x("ellipsis-text", "admin")]), f = () => {
|
|
81
|
+
if (!c.value)
|
|
71
82
|
return;
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
requestAnimationFrame(
|
|
83
|
+
const e = c.value.scrollWidth, i = c.value.clientWidth;
|
|
84
|
+
if (o(p) <= o(m)) {
|
|
85
|
+
const a = Math.floor((o(p) + o(m)) / 2);
|
|
86
|
+
e <= i ? (n.value = a, p.value = a + 1) : m.value = a - 1, g(() => {
|
|
87
|
+
requestAnimationFrame(f);
|
|
77
88
|
});
|
|
78
89
|
} else
|
|
79
|
-
|
|
80
|
-
requestAnimationFrame(
|
|
90
|
+
e > i && (n.value = n.value - 1, g(() => {
|
|
91
|
+
requestAnimationFrame(f);
|
|
81
92
|
}));
|
|
82
|
-
},
|
|
83
|
-
|
|
93
|
+
}, w = () => {
|
|
94
|
+
p.value = 0, m.value = l.list.length, n.value = 0;
|
|
84
95
|
};
|
|
85
|
-
|
|
86
|
-
() =>
|
|
87
|
-
(
|
|
88
|
-
|
|
96
|
+
P(
|
|
97
|
+
() => l.list,
|
|
98
|
+
(e, i) => {
|
|
99
|
+
e !== i && (w(), g(() => f()));
|
|
89
100
|
},
|
|
90
101
|
{
|
|
91
102
|
immediate: !0
|
|
92
103
|
}
|
|
93
|
-
)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
);
|
|
105
|
+
const C = () => {
|
|
106
|
+
w(), f();
|
|
107
|
+
};
|
|
108
|
+
return S(() => {
|
|
109
|
+
[["ellipsisColor", "ellipse.color"]].forEach(([e, i]) => {
|
|
110
|
+
l[e] && console.error(
|
|
111
|
+
`[ApTagGroup]: \`${e}\` is deprecated, please use \`${i}\` instead.`
|
|
112
|
+
);
|
|
113
|
+
}), window.addEventListener("resize", C);
|
|
114
|
+
}), j(() => {
|
|
115
|
+
window.removeEventListener("resize", C);
|
|
116
|
+
}), (e, i) => (u(), h(o(H), _({ trigger: "hover" }, M.value), {
|
|
117
|
+
title: y(() => [
|
|
118
|
+
q(e.$slots, "tooltip", { tags: e.list }, () => [
|
|
119
|
+
G(k(W.value), 1)
|
|
120
|
+
])
|
|
121
|
+
]),
|
|
105
122
|
default: y(() => [
|
|
106
|
-
|
|
107
|
-
class:
|
|
123
|
+
t("div", {
|
|
124
|
+
class: b(A.value),
|
|
108
125
|
ref_key: "container",
|
|
109
|
-
ref:
|
|
110
|
-
style:
|
|
111
|
-
pointerEvents:
|
|
126
|
+
ref: c,
|
|
127
|
+
style: E({
|
|
128
|
+
pointerEvents: d.value ? "auto" : "none"
|
|
112
129
|
})
|
|
113
130
|
}, [
|
|
114
|
-
(
|
|
115
|
-
key:
|
|
131
|
+
(u(!0), B(R, null, I($.value, (a, F) => (u(), h(Y, _({ ref_for: !0 }, a, {
|
|
132
|
+
key: F,
|
|
116
133
|
style: {
|
|
117
|
-
marginRight: `${
|
|
134
|
+
marginRight: `${e.space}px`
|
|
118
135
|
}
|
|
119
136
|
}), null, 16, ["style"]))), 128)),
|
|
120
|
-
|
|
137
|
+
d.value && r.value.symbol === "icon" ? (u(), h(o(J), {
|
|
121
138
|
key: 0,
|
|
122
|
-
style:
|
|
139
|
+
style: E({ color: e.ellipsisColor || r.value.iconColor })
|
|
123
140
|
}, {
|
|
124
141
|
component: y(() => [
|
|
125
|
-
|
|
142
|
+
Z
|
|
126
143
|
]),
|
|
127
144
|
_: 1
|
|
128
|
-
}, 8, ["style"])) :
|
|
145
|
+
}, 8, ["style"])) : d.value && r.value.symbol === "text" ? (u(), B("span", {
|
|
146
|
+
key: 1,
|
|
147
|
+
class: b(D.value)
|
|
148
|
+
}, k(r.value.text), 3)) : U("", !0)
|
|
129
149
|
], 6)
|
|
130
150
|
]),
|
|
131
|
-
_:
|
|
132
|
-
},
|
|
151
|
+
_: 3
|
|
152
|
+
}, 16));
|
|
133
153
|
}
|
|
134
154
|
});
|
|
135
155
|
export {
|
|
136
|
-
|
|
156
|
+
pe as default
|
|
137
157
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { TooltipProps } from 'ant-design-vue/es/tooltip';
|
|
2
|
+
|
|
1
3
|
export interface ApTagProps {
|
|
2
4
|
/**
|
|
3
5
|
* 标签内容
|
|
@@ -17,6 +19,27 @@ export interface ApTagProps {
|
|
|
17
19
|
*/
|
|
18
20
|
disabled?: boolean;
|
|
19
21
|
}
|
|
22
|
+
export type EllipsisProps = {
|
|
23
|
+
/**
|
|
24
|
+
* 省略号标志
|
|
25
|
+
* @default 'icon' - 内置图标不能自定义
|
|
26
|
+
* @type 'icon' | 'text'
|
|
27
|
+
*/
|
|
28
|
+
symbol?: 'icon' | 'text';
|
|
29
|
+
/**
|
|
30
|
+
* 省略号文本 - symbol为text时生效
|
|
31
|
+
*/
|
|
32
|
+
text?: string;
|
|
33
|
+
/**
|
|
34
|
+
* 省略号颜色 - symbol为icon时生效
|
|
35
|
+
* @default #34B77C
|
|
36
|
+
*/
|
|
37
|
+
iconColor?: string;
|
|
38
|
+
/**
|
|
39
|
+
* 省略号气泡内容
|
|
40
|
+
*/
|
|
41
|
+
tooltip?: Omit<TooltipProps, 'trigger' | 'title'>;
|
|
42
|
+
};
|
|
20
43
|
export interface ApTagGroupProps {
|
|
21
44
|
/**
|
|
22
45
|
* 标签组内容
|
|
@@ -32,4 +55,5 @@ export interface ApTagGroupProps {
|
|
|
32
55
|
* @default #34B77C
|
|
33
56
|
*/
|
|
34
57
|
ellipsisColor?: string;
|
|
58
|
+
ellipsis?: EllipsisProps;
|
|
35
59
|
}
|
|
@@ -39,11 +39,15 @@
|
|
|
39
39
|
}
|
|
40
40
|
.aplus-ap-upload-multiple-file-admin .multiple-file-context .file-btn {
|
|
41
41
|
border: 1px solid #d9d9d9;
|
|
42
|
+
color: #333333;
|
|
42
43
|
}
|
|
43
44
|
.aplus-ap-upload-multiple-file-admin .multiple-file-context .file-btn:hover {
|
|
44
45
|
border-color: #34b77c;
|
|
45
46
|
color: #34b77c;
|
|
46
47
|
}
|
|
48
|
+
.aplus-ap-upload-multiple-file-admin .multiple-file-context .sub-title {
|
|
49
|
+
color: #999999;
|
|
50
|
+
}
|
|
47
51
|
.aplus-ap-upload-multiple-file-admin .ant-upload-wrapper .ant-upload-list .ant-upload-list-item:hover {
|
|
48
52
|
background: #fafafa;
|
|
49
53
|
}
|
|
@@ -20,16 +20,16 @@ export declare const BaseButton: {
|
|
|
20
20
|
loading: {
|
|
21
21
|
type: PropType<boolean>;
|
|
22
22
|
};
|
|
23
|
+
iconSize: {
|
|
24
|
+
type: PropType<number>;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
23
27
|
preIcon: {
|
|
24
28
|
type: PropType<string>;
|
|
25
29
|
};
|
|
26
30
|
postIcon: {
|
|
27
31
|
type: PropType<string>;
|
|
28
32
|
};
|
|
29
|
-
iconSize: {
|
|
30
|
-
type: PropType<number>;
|
|
31
|
-
default: number;
|
|
32
|
-
};
|
|
33
33
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
34
34
|
text: {
|
|
35
35
|
type: PropType<string>;
|
|
@@ -46,16 +46,16 @@ export declare const BaseButton: {
|
|
|
46
46
|
loading: {
|
|
47
47
|
type: PropType<boolean>;
|
|
48
48
|
};
|
|
49
|
+
iconSize: {
|
|
50
|
+
type: PropType<number>;
|
|
51
|
+
default: number;
|
|
52
|
+
};
|
|
49
53
|
preIcon: {
|
|
50
54
|
type: PropType<string>;
|
|
51
55
|
};
|
|
52
56
|
postIcon: {
|
|
53
57
|
type: PropType<string>;
|
|
54
58
|
};
|
|
55
|
-
iconSize: {
|
|
56
|
-
type: PropType<number>;
|
|
57
|
-
default: number;
|
|
58
|
-
};
|
|
59
59
|
}>>, {
|
|
60
60
|
iconSize: number;
|
|
61
61
|
}, true, {}, {}, {
|
|
@@ -81,16 +81,16 @@ export declare const BaseButton: {
|
|
|
81
81
|
loading: {
|
|
82
82
|
type: PropType<boolean>;
|
|
83
83
|
};
|
|
84
|
+
iconSize: {
|
|
85
|
+
type: PropType<number>;
|
|
86
|
+
default: number;
|
|
87
|
+
};
|
|
84
88
|
preIcon: {
|
|
85
89
|
type: PropType<string>;
|
|
86
90
|
};
|
|
87
91
|
postIcon: {
|
|
88
92
|
type: PropType<string>;
|
|
89
93
|
};
|
|
90
|
-
iconSize: {
|
|
91
|
-
type: PropType<number>;
|
|
92
|
-
default: number;
|
|
93
|
-
};
|
|
94
94
|
}>>, {}, {}, {}, {}, {
|
|
95
95
|
iconSize: number;
|
|
96
96
|
}>;
|
|
@@ -113,16 +113,16 @@ export declare const BaseButton: {
|
|
|
113
113
|
loading: {
|
|
114
114
|
type: PropType<boolean>;
|
|
115
115
|
};
|
|
116
|
+
iconSize: {
|
|
117
|
+
type: PropType<number>;
|
|
118
|
+
default: number;
|
|
119
|
+
};
|
|
116
120
|
preIcon: {
|
|
117
121
|
type: PropType<string>;
|
|
118
122
|
};
|
|
119
123
|
postIcon: {
|
|
120
124
|
type: PropType<string>;
|
|
121
125
|
};
|
|
122
|
-
iconSize: {
|
|
123
|
-
type: PropType<number>;
|
|
124
|
-
default: number;
|
|
125
|
-
};
|
|
126
126
|
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
127
127
|
iconSize: number;
|
|
128
128
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
@@ -130,7 +130,7 @@ export declare const BaseButton: {
|
|
|
130
130
|
icon?(_: {}): any;
|
|
131
131
|
default?(_: any): any;
|
|
132
132
|
};
|
|
133
|
-
}) & Plugin
|
|
133
|
+
}) & Plugin & (new (...args: any[]) => {
|
|
134
134
|
$props: {
|
|
135
135
|
onClick?: (() => void) | undefined;
|
|
136
136
|
};
|
package/es/src/basic/index.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ export declare const BasicHelp: {
|
|
|
131
131
|
fontSize: string;
|
|
132
132
|
maxWidth: string;
|
|
133
133
|
showIndex: boolean;
|
|
134
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin
|
|
134
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
|
|
135
135
|
$props: {
|
|
136
136
|
onClick?: (() => void) | undefined;
|
|
137
137
|
};
|
|
@@ -202,7 +202,7 @@ export declare const BasicTitle: {
|
|
|
202
202
|
$slots: {
|
|
203
203
|
default?(_: {}): any;
|
|
204
204
|
};
|
|
205
|
-
}) & Plugin
|
|
205
|
+
}) & Plugin & (new (...args: any[]) => {
|
|
206
206
|
$props: {
|
|
207
207
|
onClick?: (() => void) | undefined;
|
|
208
208
|
};
|
|
@@ -271,7 +271,7 @@ export declare const BasicArrow: {
|
|
|
271
271
|
inset: {
|
|
272
272
|
type: PropType<boolean>;
|
|
273
273
|
};
|
|
274
|
-
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin
|
|
274
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
|
|
275
275
|
$props: {
|
|
276
276
|
onClick?: (() => void) | undefined;
|
|
277
277
|
};
|
|
@@ -145,7 +145,7 @@ export declare const ApTitle: {
|
|
|
145
145
|
prefix?(_: {}): any;
|
|
146
146
|
suffix?(_: {}): any;
|
|
147
147
|
};
|
|
148
|
-
}) & Plugin
|
|
148
|
+
}) & Plugin & (new (...args: any[]) => {
|
|
149
149
|
$props: {
|
|
150
150
|
onClick?: (() => void) | undefined;
|
|
151
151
|
};
|
|
@@ -363,18 +363,12 @@ export declare const ApLabel: {
|
|
|
363
363
|
size: {
|
|
364
364
|
type: PropType<"default" | "small">;
|
|
365
365
|
};
|
|
366
|
-
status: {
|
|
367
|
-
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
368
|
-
default: string;
|
|
369
|
-
};
|
|
370
366
|
offset: {
|
|
371
367
|
type: PropType<[string | number, string | number]>;
|
|
372
368
|
};
|
|
373
|
-
|
|
374
|
-
type: PropType<
|
|
375
|
-
|
|
376
|
-
helpMessage: {
|
|
377
|
-
type: PropType<string>;
|
|
369
|
+
status: {
|
|
370
|
+
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
371
|
+
default: string;
|
|
378
372
|
};
|
|
379
373
|
count: {
|
|
380
374
|
type: PropType<any>;
|
|
@@ -385,12 +379,18 @@ export declare const ApLabel: {
|
|
|
385
379
|
overflowCount: {
|
|
386
380
|
type: PropType<number>;
|
|
387
381
|
};
|
|
382
|
+
dot: {
|
|
383
|
+
type: PropType<boolean>;
|
|
384
|
+
};
|
|
388
385
|
scrollNumberPrefixCls: {
|
|
389
386
|
type: PropType<string>;
|
|
390
387
|
};
|
|
391
388
|
numberStyle: {
|
|
392
389
|
type: PropType<CSSProperties>;
|
|
393
390
|
};
|
|
391
|
+
helpMessage: {
|
|
392
|
+
type: PropType<string>;
|
|
393
|
+
};
|
|
394
394
|
iconColor: {
|
|
395
395
|
type: PropType<string>;
|
|
396
396
|
required: true;
|
|
@@ -418,18 +418,12 @@ export declare const ApLabel: {
|
|
|
418
418
|
size: {
|
|
419
419
|
type: PropType<"default" | "small">;
|
|
420
420
|
};
|
|
421
|
-
status: {
|
|
422
|
-
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
423
|
-
default: string;
|
|
424
|
-
};
|
|
425
421
|
offset: {
|
|
426
422
|
type: PropType<[string | number, string | number]>;
|
|
427
423
|
};
|
|
428
|
-
|
|
429
|
-
type: PropType<
|
|
430
|
-
|
|
431
|
-
helpMessage: {
|
|
432
|
-
type: PropType<string>;
|
|
424
|
+
status: {
|
|
425
|
+
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
426
|
+
default: string;
|
|
433
427
|
};
|
|
434
428
|
count: {
|
|
435
429
|
type: PropType<any>;
|
|
@@ -440,12 +434,18 @@ export declare const ApLabel: {
|
|
|
440
434
|
overflowCount: {
|
|
441
435
|
type: PropType<number>;
|
|
442
436
|
};
|
|
437
|
+
dot: {
|
|
438
|
+
type: PropType<boolean>;
|
|
439
|
+
};
|
|
443
440
|
scrollNumberPrefixCls: {
|
|
444
441
|
type: PropType<string>;
|
|
445
442
|
};
|
|
446
443
|
numberStyle: {
|
|
447
444
|
type: PropType<CSSProperties>;
|
|
448
445
|
};
|
|
446
|
+
helpMessage: {
|
|
447
|
+
type: PropType<string>;
|
|
448
|
+
};
|
|
449
449
|
iconColor: {
|
|
450
450
|
type: PropType<string>;
|
|
451
451
|
required: true;
|
|
@@ -485,18 +485,12 @@ export declare const ApLabel: {
|
|
|
485
485
|
size: {
|
|
486
486
|
type: PropType<"default" | "small">;
|
|
487
487
|
};
|
|
488
|
-
status: {
|
|
489
|
-
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
490
|
-
default: string;
|
|
491
|
-
};
|
|
492
488
|
offset: {
|
|
493
489
|
type: PropType<[string | number, string | number]>;
|
|
494
490
|
};
|
|
495
|
-
|
|
496
|
-
type: PropType<
|
|
497
|
-
|
|
498
|
-
helpMessage: {
|
|
499
|
-
type: PropType<string>;
|
|
491
|
+
status: {
|
|
492
|
+
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
493
|
+
default: string;
|
|
500
494
|
};
|
|
501
495
|
count: {
|
|
502
496
|
type: PropType<any>;
|
|
@@ -507,12 +501,18 @@ export declare const ApLabel: {
|
|
|
507
501
|
overflowCount: {
|
|
508
502
|
type: PropType<number>;
|
|
509
503
|
};
|
|
504
|
+
dot: {
|
|
505
|
+
type: PropType<boolean>;
|
|
506
|
+
};
|
|
510
507
|
scrollNumberPrefixCls: {
|
|
511
508
|
type: PropType<string>;
|
|
512
509
|
};
|
|
513
510
|
numberStyle: {
|
|
514
511
|
type: PropType<CSSProperties>;
|
|
515
512
|
};
|
|
513
|
+
helpMessage: {
|
|
514
|
+
type: PropType<string>;
|
|
515
|
+
};
|
|
516
516
|
iconColor: {
|
|
517
517
|
type: PropType<string>;
|
|
518
518
|
required: true;
|
|
@@ -549,18 +549,12 @@ export declare const ApLabel: {
|
|
|
549
549
|
size: {
|
|
550
550
|
type: PropType<"default" | "small">;
|
|
551
551
|
};
|
|
552
|
-
status: {
|
|
553
|
-
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
554
|
-
default: string;
|
|
555
|
-
};
|
|
556
552
|
offset: {
|
|
557
553
|
type: PropType<[string | number, string | number]>;
|
|
558
554
|
};
|
|
559
|
-
|
|
560
|
-
type: PropType<
|
|
561
|
-
|
|
562
|
-
helpMessage: {
|
|
563
|
-
type: PropType<string>;
|
|
555
|
+
status: {
|
|
556
|
+
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
557
|
+
default: string;
|
|
564
558
|
};
|
|
565
559
|
count: {
|
|
566
560
|
type: PropType<any>;
|
|
@@ -571,12 +565,18 @@ export declare const ApLabel: {
|
|
|
571
565
|
overflowCount: {
|
|
572
566
|
type: PropType<number>;
|
|
573
567
|
};
|
|
568
|
+
dot: {
|
|
569
|
+
type: PropType<boolean>;
|
|
570
|
+
};
|
|
574
571
|
scrollNumberPrefixCls: {
|
|
575
572
|
type: PropType<string>;
|
|
576
573
|
};
|
|
577
574
|
numberStyle: {
|
|
578
575
|
type: PropType<CSSProperties>;
|
|
579
576
|
};
|
|
577
|
+
helpMessage: {
|
|
578
|
+
type: PropType<string>;
|
|
579
|
+
};
|
|
580
580
|
iconColor: {
|
|
581
581
|
type: PropType<string>;
|
|
582
582
|
required: true;
|
|
@@ -587,7 +587,7 @@ export declare const ApLabel: {
|
|
|
587
587
|
placement: TooltipPlacement;
|
|
588
588
|
status: "success" | "error" | "default" | "warning" | "processing";
|
|
589
589
|
iconColor: string;
|
|
590
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin
|
|
590
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
|
|
591
591
|
$props: {
|
|
592
592
|
onClick?: (() => void) | undefined;
|
|
593
593
|
};
|
|
@@ -696,7 +696,7 @@ export declare const ApStatus: {
|
|
|
696
696
|
color: string;
|
|
697
697
|
padding: number;
|
|
698
698
|
show: boolean;
|
|
699
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin
|
|
699
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
|
|
700
700
|
$props: {
|
|
701
701
|
onClick?: (() => void) | undefined;
|
|
702
702
|
};
|
|
@@ -834,7 +834,7 @@ export declare const ApStatusGroup: {
|
|
|
834
834
|
statusList: Required<Pick< ApStatusProps, "text" | "color"> & {
|
|
835
835
|
value: string | number;
|
|
836
836
|
}>[] | null;
|
|
837
|
-
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin
|
|
837
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
|
|
838
838
|
$props: {
|
|
839
839
|
onClick?: (() => void) | undefined;
|
|
840
840
|
};
|
package/es/src/button/index.d.ts
CHANGED