@aplus-frontend/ui 0.5.18 → 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-action/group/index.vue.mjs +3 -3
- package/es/src/ap-action/item/index.vue2.mjs +5 -5
- package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
- package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-button.vue.mjs +2 -2
- package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
- package/es/src/ap-download/ap-download.vue.mjs +1 -1
- package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
- package/es/src/ap-field/date/index.vue.mjs +4 -4
- package/es/src/ap-field/date-range/index.vue.mjs +8 -8
- package/es/src/ap-field/index.mjs +30 -30
- package/es/src/ap-field/number/index.vue.mjs +8 -8
- package/es/src/ap-field/radio/index.vue.mjs +1 -1
- package/es/src/ap-field/rate/index.vue.mjs +2 -2
- package/es/src/ap-field/segmented/index.vue.mjs +1 -1
- package/es/src/ap-field/select/index.vue.mjs +2 -2
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/slider/index.vue.mjs +4 -4
- package/es/src/ap-field/switch/index.vue.mjs +3 -3
- package/es/src/ap-field/text/index.vue2.mjs +2 -2
- package/es/src/ap-field/text/password.vue.mjs +2 -2
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-form/item-group/index.vue.mjs +3 -3
- package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.mjs +2 -2
- package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
- package/es/src/ap-form/items/number/index.vue.mjs +2 -2
- package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
- package/es/src/ap-form/items/select/index.vue.mjs +2 -2
- package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
- package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
- package/es/src/ap-form/items/text/password.vue.mjs +2 -2
- package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
- package/es/src/ap-form/render/item.vue.mjs +2 -2
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/set/index.vue.mjs +1 -1
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.mjs +2 -2
- package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.mjs +4 -4
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-list/index.vue.mjs +4 -4
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/ap-table.vue2.mjs +13 -13
- package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
- package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
- package/es/src/ap-table/constants.mjs +40 -40
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
- 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/ap-tag/ap-tag-group.vue.mjs +8 -8
- package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
- package/es/src/ap-upload/apUpload.vue.mjs +5 -5
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
- package/es/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
- package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
- package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +4 -6
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
- package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +50 -50
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +40 -37
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +118 -122
- package/es/src/business/ap-ladder/index.d.ts +1 -3
- package/es/src/business/ap-ladder/interface.d.ts +16 -16
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
- package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
- package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
- package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
- package/es/src/check-card/index.vue2.mjs +3 -3
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.mjs +2 -2
- package/es/src/full-screen/index.vue.mjs +3 -3
- package/es/src/hooks/useFullScreen.mjs +5 -5
- package/es/src/mask/index.vue.mjs +10 -10
- package/es/src/portal/index.vue.mjs +2 -2
- package/es/src/scroll-bar/index.vue.mjs +3 -3
- package/es/src/scroll-bar/internal.vue.mjs +2 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/scroll-view/index.vue.mjs +9 -9
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/group.vue.mjs +2 -2
- package/es/src/text/index.vue.mjs +46 -41
- package/es/src/text/interface.d.ts +6 -0
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- 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/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +2 -7
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -6
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -6
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +13 -13
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +19 -19
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +1 -3
- package/lib/src/business/ap-ladder/interface.d.ts +16 -16
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/text/interface.d.ts +6 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +2 -3
- package/package.json +1 -1
- package/theme/ap-ladder/ap-ladder.css +41 -1
- package/theme/ap-ladder/ap-ladder.less +41 -2
- package/theme/index.css +41 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
4
|
slots: {
|
|
@@ -18,19 +18,19 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
18
18
|
default: null;
|
|
19
19
|
};
|
|
20
20
|
majorStyles: {
|
|
21
|
-
type: PropType<
|
|
21
|
+
type: PropType<CSSProperties>;
|
|
22
22
|
default: () => {};
|
|
23
23
|
};
|
|
24
24
|
majorColorStyles: {
|
|
25
|
-
type: PropType<
|
|
25
|
+
type: PropType<CSSProperties>;
|
|
26
26
|
default: () => {};
|
|
27
27
|
};
|
|
28
28
|
minorStyles: {
|
|
29
|
-
type: PropType<
|
|
29
|
+
type: PropType<CSSProperties>;
|
|
30
30
|
default: () => {};
|
|
31
31
|
};
|
|
32
32
|
minorColorStyles: {
|
|
33
|
-
type: PropType<
|
|
33
|
+
type: PropType<CSSProperties>;
|
|
34
34
|
default: () => {};
|
|
35
35
|
};
|
|
36
36
|
tooltipProps: {
|
|
@@ -59,19 +59,19 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
59
59
|
default: null;
|
|
60
60
|
};
|
|
61
61
|
majorStyles: {
|
|
62
|
-
type: PropType<
|
|
62
|
+
type: PropType<CSSProperties>;
|
|
63
63
|
default: () => {};
|
|
64
64
|
};
|
|
65
65
|
majorColorStyles: {
|
|
66
|
-
type: PropType<
|
|
66
|
+
type: PropType<CSSProperties>;
|
|
67
67
|
default: () => {};
|
|
68
68
|
};
|
|
69
69
|
minorStyles: {
|
|
70
|
-
type: PropType<
|
|
70
|
+
type: PropType<CSSProperties>;
|
|
71
71
|
default: () => {};
|
|
72
72
|
};
|
|
73
73
|
minorColorStyles: {
|
|
74
|
-
type: PropType<
|
|
74
|
+
type: PropType<CSSProperties>;
|
|
75
75
|
default: () => {};
|
|
76
76
|
};
|
|
77
77
|
tooltipProps: {
|
|
@@ -96,10 +96,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
96
96
|
major: string | number | Function | Record<string, any>;
|
|
97
97
|
minor: string | number | Function | Record<string, any>;
|
|
98
98
|
tooltipProps: Record<string, any>;
|
|
99
|
-
majorStyles:
|
|
100
|
-
majorColorStyles:
|
|
101
|
-
minorStyles:
|
|
102
|
-
minorColorStyles:
|
|
99
|
+
majorStyles: CSSProperties;
|
|
100
|
+
majorColorStyles: CSSProperties;
|
|
101
|
+
minorStyles: CSSProperties;
|
|
102
|
+
minorColorStyles: CSSProperties;
|
|
103
103
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
104
104
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
105
105
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as j,
|
|
2
|
-
import { Tooltip as
|
|
1
|
+
import { defineComponent as j, createBlock as S, openBlock as n, unref as t, normalizeProps as v, guardReactiveProps as b, createSlots as k, withCtx as s, createElementBlock as i, createCommentVNode as u, Fragment as C, normalizeClass as l, createElementVNode as a, normalizeStyle as m, toDisplayString as r, renderSlot as V } from "vue";
|
|
2
|
+
import { Tooltip as O } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../../config-provider/index.mjs";
|
|
4
|
-
import { isNull as
|
|
5
|
-
import { useNamespace as
|
|
6
|
-
const
|
|
4
|
+
import { isNull as c } from "../utils.mjs";
|
|
5
|
+
import { useNamespace as g } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const E = /* @__PURE__ */ j({
|
|
7
7
|
name: "ApLadderSimpleMode",
|
|
8
8
|
__name: "SimpleMode",
|
|
9
9
|
props: {
|
|
@@ -37,7 +37,7 @@ const y = "ellipsis-element", h = /* @__PURE__ */ j({
|
|
|
37
37
|
},
|
|
38
38
|
layout: {
|
|
39
39
|
type: String,
|
|
40
|
-
default: "
|
|
40
|
+
default: "vertical"
|
|
41
41
|
},
|
|
42
42
|
tooltip: {
|
|
43
43
|
type: Boolean,
|
|
@@ -49,63 +49,66 @@ const y = "ellipsis-element", h = /* @__PURE__ */ j({
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
setup(e) {
|
|
52
|
-
const { e:
|
|
53
|
-
return (
|
|
54
|
-
default:
|
|
55
|
-
!t(
|
|
56
|
-
e.layout === "vertical" ? (
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
const { b: y, e: o, m: d } = g("ap-ladder");
|
|
53
|
+
return (f, N) => (n(), S(t(O), v(b(e.tooltipProps)), k({
|
|
54
|
+
default: s(() => [
|
|
55
|
+
!t(c)(e.major) || !t(c)(e.minor) ? (n(), i(C, { key: 0 }, [
|
|
56
|
+
e.layout === "vertical" ? (n(), i("div", {
|
|
57
|
+
key: 0,
|
|
58
|
+
class: l([t(y)("base"), t(d)("vertical")])
|
|
59
|
+
}, [
|
|
60
|
+
a("span", {
|
|
61
|
+
class: l([t(o)("major")]),
|
|
59
62
|
style: m([e.majorStyles, e.majorColorStyles])
|
|
60
|
-
},
|
|
61
|
-
a("
|
|
62
|
-
class:
|
|
63
|
+
}, r(e.convertValue(e.major)), 7),
|
|
64
|
+
a("span", {
|
|
65
|
+
class: l([t(o)("minor")]),
|
|
63
66
|
style: m([e.minorStyles, e.minorColorStyles])
|
|
64
|
-
},
|
|
65
|
-
],
|
|
67
|
+
}, r(e.convertValue(e.minor)), 7)
|
|
68
|
+
], 2)) : (n(), i("div", {
|
|
66
69
|
key: 1,
|
|
67
|
-
class:
|
|
70
|
+
class: l([t(y)("base"), t(d)("horizontal")])
|
|
68
71
|
}, [
|
|
69
72
|
a("span", {
|
|
70
|
-
class:
|
|
73
|
+
class: l([t(o)("major")]),
|
|
71
74
|
style: m([e.majorStyles, e.majorColorStyles])
|
|
72
|
-
},
|
|
75
|
+
}, r(e.convertValue(e.major)), 7),
|
|
73
76
|
a("span", {
|
|
74
|
-
class:
|
|
77
|
+
class: l([t(o)("minor")]),
|
|
75
78
|
style: m([e.minorStyles, e.minorColorStyles])
|
|
76
|
-
},
|
|
79
|
+
}, r(e.convertValue(e.minor)), 7)
|
|
77
80
|
], 2))
|
|
78
81
|
], 64)) : u("", !0)
|
|
79
82
|
]),
|
|
80
83
|
_: 2
|
|
81
84
|
}, [
|
|
82
|
-
|
|
85
|
+
f.$slots.title ? {
|
|
83
86
|
name: "title",
|
|
84
|
-
fn:
|
|
85
|
-
|
|
87
|
+
fn: s(() => [
|
|
88
|
+
V(f.$slots, "title")
|
|
86
89
|
]),
|
|
87
90
|
key: "0"
|
|
88
91
|
} : e.tooltip ? {
|
|
89
92
|
name: "title",
|
|
90
|
-
fn:
|
|
93
|
+
fn: s(() => [
|
|
91
94
|
a("div", {
|
|
92
|
-
class:
|
|
95
|
+
class: l(t(o)("tooltip"))
|
|
93
96
|
}, [
|
|
94
|
-
t(
|
|
97
|
+
t(c)(e.major) ? u("", !0) : (n(), i("div", {
|
|
95
98
|
key: 0,
|
|
96
|
-
class:
|
|
99
|
+
class: l(t(o)("tooltip-item"))
|
|
97
100
|
}, [
|
|
98
101
|
a("span", {
|
|
99
|
-
class:
|
|
100
|
-
},
|
|
102
|
+
class: l(t(o)("tooltip-label"))
|
|
103
|
+
}, r(e.convertValue(e.major)), 3)
|
|
101
104
|
], 2)),
|
|
102
|
-
t(
|
|
105
|
+
t(c)(e.minor) ? u("", !0) : (n(), i("div", {
|
|
103
106
|
key: 1,
|
|
104
|
-
class:
|
|
107
|
+
class: l(t(o)("tooltip-item"))
|
|
105
108
|
}, [
|
|
106
109
|
a("span", {
|
|
107
|
-
class:
|
|
108
|
-
},
|
|
110
|
+
class: l(t(o)("tooltip-label"))
|
|
111
|
+
}, r(e.convertValue(e.minor)), 3)
|
|
109
112
|
], 2))
|
|
110
113
|
], 2)
|
|
111
114
|
]),
|
|
@@ -115,5 +118,5 @@ const y = "ellipsis-element", h = /* @__PURE__ */ j({
|
|
|
115
118
|
}
|
|
116
119
|
});
|
|
117
120
|
export {
|
|
118
|
-
|
|
121
|
+
E as default
|
|
119
122
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CSSProperties, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { ApLadderLabelValue } from '../interface';
|
|
3
3
|
declare function __VLS_template(): {
|
|
4
4
|
attrs: Partial<{}>;
|
|
@@ -19,27 +19,27 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
21
|
labelStyles: {
|
|
22
|
-
type: PropType<
|
|
22
|
+
type: PropType<CSSProperties>;
|
|
23
23
|
default: () => {};
|
|
24
24
|
};
|
|
25
25
|
valueStyles: {
|
|
26
|
-
type: PropType<
|
|
26
|
+
type: PropType<CSSProperties>;
|
|
27
27
|
default: () => {};
|
|
28
28
|
};
|
|
29
29
|
linkStyles: {
|
|
30
|
-
type: PropType<
|
|
30
|
+
type: PropType<CSSProperties>;
|
|
31
31
|
default: () => {};
|
|
32
32
|
};
|
|
33
33
|
unitStyles: {
|
|
34
|
-
type: PropType<
|
|
34
|
+
type: PropType<CSSProperties>;
|
|
35
35
|
default: () => {};
|
|
36
36
|
};
|
|
37
37
|
tooltipLabelStyles: {
|
|
38
|
-
type: PropType<
|
|
38
|
+
type: PropType<CSSProperties>;
|
|
39
39
|
default: () => {};
|
|
40
40
|
};
|
|
41
41
|
tooltipValueStyles: {
|
|
42
|
-
type: PropType<
|
|
42
|
+
type: PropType<CSSProperties>;
|
|
43
43
|
default: () => {};
|
|
44
44
|
};
|
|
45
45
|
tooltipProps: {
|
|
@@ -63,27 +63,27 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
63
63
|
default: string;
|
|
64
64
|
};
|
|
65
65
|
labelStyles: {
|
|
66
|
-
type: PropType<
|
|
66
|
+
type: PropType<CSSProperties>;
|
|
67
67
|
default: () => {};
|
|
68
68
|
};
|
|
69
69
|
valueStyles: {
|
|
70
|
-
type: PropType<
|
|
70
|
+
type: PropType<CSSProperties>;
|
|
71
71
|
default: () => {};
|
|
72
72
|
};
|
|
73
73
|
linkStyles: {
|
|
74
|
-
type: PropType<
|
|
74
|
+
type: PropType<CSSProperties>;
|
|
75
75
|
default: () => {};
|
|
76
76
|
};
|
|
77
77
|
unitStyles: {
|
|
78
|
-
type: PropType<
|
|
78
|
+
type: PropType<CSSProperties>;
|
|
79
79
|
default: () => {};
|
|
80
80
|
};
|
|
81
81
|
tooltipLabelStyles: {
|
|
82
|
-
type: PropType<
|
|
82
|
+
type: PropType<CSSProperties>;
|
|
83
83
|
default: () => {};
|
|
84
84
|
};
|
|
85
85
|
tooltipValueStyles: {
|
|
86
|
-
type: PropType<
|
|
86
|
+
type: PropType<CSSProperties>;
|
|
87
87
|
default: () => {};
|
|
88
88
|
};
|
|
89
89
|
tooltipProps: {
|
|
@@ -102,12 +102,12 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
102
102
|
labelAlign: string;
|
|
103
103
|
tooltipProps: Record<string, any>;
|
|
104
104
|
labelValues: ApLadderLabelValue[];
|
|
105
|
-
labelStyles:
|
|
106
|
-
valueStyles:
|
|
107
|
-
linkStyles:
|
|
108
|
-
unitStyles:
|
|
109
|
-
tooltipLabelStyles:
|
|
110
|
-
tooltipValueStyles:
|
|
105
|
+
labelStyles: CSSProperties;
|
|
106
|
+
valueStyles: CSSProperties;
|
|
107
|
+
linkStyles: CSSProperties;
|
|
108
|
+
unitStyles: CSSProperties;
|
|
109
|
+
tooltipLabelStyles: CSSProperties;
|
|
110
|
+
tooltipValueStyles: CSSProperties;
|
|
111
111
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
112
112
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
113
113
|
export default _default;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Tooltip as
|
|
1
|
+
import { defineComponent as L, isVNode as g, h as C, ref as P, createBlock as h, openBlock as o, unref as i, normalizeProps as x, guardReactiveProps as A, createSlots as B, withCtx as v, createElementVNode as d, normalizeClass as s, createElementBlock as n, Fragment as f, renderList as j, createCommentVNode as p, normalizeStyle as u, createTextVNode as O, toDisplayString as y, withModifiers as w, renderSlot as z, createVNode as M } from "vue";
|
|
2
|
+
import { Tooltip as R } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../../config-provider/index.mjs";
|
|
4
|
-
import { locales as
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
const H = { key: 0 }, I = { key: 0 }, J = ["href", "onClick"], K = { key: 0 }, _ = /* @__PURE__ */ w({
|
|
4
|
+
import { locales as Y } from "../interface.mjs";
|
|
5
|
+
import { useNamespace as b } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
const E = { key: 0 }, G = ["href", "onClick"], T = { key: 0 }, D = { key: 0 }, Q = /* @__PURE__ */ L({
|
|
8
7
|
name: "ApLadderValueGroupMode",
|
|
9
8
|
__name: "ValueGroupMode",
|
|
10
9
|
props: {
|
|
@@ -50,121 +49,107 @@ const H = { key: 0 }, I = { key: 0 }, J = ["href", "onClick"], K = { key: 0 }, _
|
|
|
50
49
|
}
|
|
51
50
|
},
|
|
52
51
|
emits: ["update:valueRefs", "handleClick"],
|
|
53
|
-
setup(
|
|
54
|
-
const
|
|
55
|
-
const { value:
|
|
56
|
-
return g(
|
|
57
|
-
|
|
52
|
+
setup(l, { emit: N }) {
|
|
53
|
+
const $ = N, { e: c } = b("ap-ladder"), m = (e) => g(e) || typeof e == "function", S = (e) => {
|
|
54
|
+
const { value: r, style: t } = e;
|
|
55
|
+
return g(r) ? C(r, {
|
|
56
|
+
style: t
|
|
57
|
+
}) : typeof r == "function" ? C(r(), {
|
|
58
|
+
ref: P,
|
|
58
59
|
style: {
|
|
59
|
-
...
|
|
60
|
-
display: "inline-block"
|
|
61
|
-
}
|
|
62
|
-
}) : typeof o == "function" ? C(o(), {
|
|
63
|
-
ref: u,
|
|
64
|
-
style: {
|
|
65
|
-
...e,
|
|
66
|
-
display: "inline-block"
|
|
60
|
+
...t
|
|
67
61
|
}
|
|
68
62
|
}) : null;
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
if (t === null || typeof t == "object" || typeof t == "function" || typeof t > "u")
|
|
63
|
+
}, k = (e, r = {
|
|
64
|
+
rawValue: !0,
|
|
65
|
+
precision: 2,
|
|
66
|
+
thousand: !0,
|
|
67
|
+
thousandSeparator: ",",
|
|
68
|
+
currency: "CNY",
|
|
69
|
+
percent: !1
|
|
70
|
+
}) => {
|
|
71
|
+
if (Object.prototype.toString.call(e) === "[object Null]" || Object.prototype.toString.call(e) === "[object Undefined]" || Object.prototype.toString.call(e) === "[object Object]" || Object.prototype.toString.call(e) === "[object Function]")
|
|
79
72
|
return "--";
|
|
80
|
-
if (typeof
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
if (e.thousand) {
|
|
95
|
-
const [u, h] = t.toFixed(e.precision).split(".");
|
|
96
|
-
return `${u.replace(
|
|
73
|
+
if (typeof e == "number") {
|
|
74
|
+
if (r.percent)
|
|
75
|
+
return `${e.toFixed(r.precision)}%`;
|
|
76
|
+
if (r.currency)
|
|
77
|
+
return e.toLocaleString(
|
|
78
|
+
Y[r.currency ? r.currency : "CNY"],
|
|
79
|
+
{
|
|
80
|
+
style: "currency",
|
|
81
|
+
currency: r.currency ? r.currency : "CNY"
|
|
82
|
+
}
|
|
83
|
+
);
|
|
84
|
+
if (r.thousand) {
|
|
85
|
+
const [t, a] = e.toFixed(r.precision ? r.precision : 2).split(".");
|
|
86
|
+
return `${t.replace(
|
|
97
87
|
/(\d)(?=(\d{3})+(?!\d))/g,
|
|
98
|
-
`$1${
|
|
99
|
-
)}.${
|
|
88
|
+
`$1${r.thousandSeparator ? r.thousandSeparator : ","}`
|
|
89
|
+
)}.${a}`;
|
|
100
90
|
}
|
|
101
|
-
return
|
|
91
|
+
return e.toFixed(r.precision ? r.precision : 2);
|
|
102
92
|
}
|
|
103
|
-
return
|
|
104
|
-
},
|
|
105
|
-
|
|
93
|
+
return e;
|
|
94
|
+
}, F = (e) => {
|
|
95
|
+
$("handleClick", e);
|
|
106
96
|
};
|
|
107
|
-
return
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
y("div", {
|
|
112
|
-
class: c(l(s)("value-group"))
|
|
97
|
+
return (e, r) => (o(), h(i(R), x(A(l.tooltipProps)), B({
|
|
98
|
+
default: v(() => [
|
|
99
|
+
d("div", {
|
|
100
|
+
class: s(i(c)("value-group"))
|
|
113
101
|
}, [
|
|
114
|
-
(
|
|
115
|
-
key:
|
|
116
|
-
class:
|
|
102
|
+
(o(!0), n(f, null, j(l.labelValues, (t, a) => (o(), n("div", {
|
|
103
|
+
key: a,
|
|
104
|
+
class: s(i(c)("value-group-item"))
|
|
117
105
|
}, [
|
|
118
|
-
|
|
106
|
+
t.label ? (o(), n("div", {
|
|
119
107
|
key: 0,
|
|
120
|
-
class:
|
|
121
|
-
|
|
122
|
-
|
|
108
|
+
class: s([
|
|
109
|
+
i(c)("value-group-label"),
|
|
110
|
+
l.labelAlign && `label-align-${l.labelAlign}`
|
|
123
111
|
]),
|
|
124
|
-
style:
|
|
112
|
+
style: u(t.labelStyles)
|
|
125
113
|
}, [
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
], 6)) :
|
|
129
|
-
|
|
130
|
-
class:
|
|
114
|
+
O(y(t.label), 1),
|
|
115
|
+
t.label ? (o(), n("span", E, ":")) : p("", !0)
|
|
116
|
+
], 6)) : p("", !0),
|
|
117
|
+
d("div", {
|
|
118
|
+
class: s(i(c)("value-group-value"))
|
|
131
119
|
}, [
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}, null, 8, ["value", "style"])
|
|
139
|
-
])) : (r(), n(p, { key: 1 }, [
|
|
140
|
-
e.link ? (r(), n("a", {
|
|
120
|
+
m(t.value) ? (o(), h(S, {
|
|
121
|
+
key: 0,
|
|
122
|
+
value: t.value,
|
|
123
|
+
style: u([t.labelColor, t.valueStyles])
|
|
124
|
+
}, null, 8, ["value", "style"])) : (o(), n(f, { key: 1 }, [
|
|
125
|
+
t.link ? (o(), n("a", {
|
|
141
126
|
key: 0,
|
|
142
|
-
href:
|
|
127
|
+
href: t.link,
|
|
143
128
|
target: "_blank",
|
|
144
|
-
class:
|
|
145
|
-
style:
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
129
|
+
class: s(i(c)("value-group-link")),
|
|
130
|
+
style: u([
|
|
131
|
+
l.linkStyles,
|
|
132
|
+
t.linkStyles,
|
|
133
|
+
t.linkColor ? { color: t.linkColor } : void 0
|
|
149
134
|
]),
|
|
150
|
-
onClick:
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
style:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
135
|
+
onClick: w((U) => F(t), ["prevent"])
|
|
136
|
+
}, y(k(t.value, { ...t })), 15, G)) : (o(), n(f, { key: 1 }, [
|
|
137
|
+
d("span", {
|
|
138
|
+
style: u([
|
|
139
|
+
l.valueStyles,
|
|
140
|
+
t.valueStyles,
|
|
141
|
+
t.valueColor ? { color: t.valueColor } : void 0
|
|
157
142
|
])
|
|
158
|
-
},
|
|
159
|
-
|
|
143
|
+
}, y(k(t.value, { ...t })), 5),
|
|
144
|
+
t.unit ? (o(), n("span", {
|
|
160
145
|
key: 0,
|
|
161
|
-
class:
|
|
162
|
-
style:
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
146
|
+
class: s(i(c)("value-group-unit")),
|
|
147
|
+
style: u([
|
|
148
|
+
l.unitStyles,
|
|
149
|
+
t.unitStyles,
|
|
150
|
+
t.unitColor ? { color: t.unitColor } : void 0
|
|
166
151
|
])
|
|
167
|
-
},
|
|
152
|
+
}, y(t.unit), 7)) : p("", !0)
|
|
168
153
|
], 64))
|
|
169
154
|
], 64))
|
|
170
155
|
], 2)
|
|
@@ -173,33 +158,44 @@ const H = { key: 0 }, I = { key: 0 }, J = ["href", "onClick"], K = { key: 0 }, _
|
|
|
173
158
|
]),
|
|
174
159
|
_: 2
|
|
175
160
|
}, [
|
|
176
|
-
|
|
161
|
+
e.$slots.title ? {
|
|
177
162
|
name: "title",
|
|
178
|
-
fn:
|
|
179
|
-
|
|
163
|
+
fn: v(() => [
|
|
164
|
+
z(e.$slots, "title")
|
|
180
165
|
]),
|
|
181
166
|
key: "0"
|
|
182
|
-
} :
|
|
167
|
+
} : l.tooltip ? {
|
|
183
168
|
name: "title",
|
|
184
|
-
fn:
|
|
185
|
-
|
|
186
|
-
class:
|
|
169
|
+
fn: v(() => [
|
|
170
|
+
d("div", {
|
|
171
|
+
class: s(i(c)("tooltip"))
|
|
187
172
|
}, [
|
|
188
|
-
(
|
|
189
|
-
key:
|
|
190
|
-
class:
|
|
173
|
+
(o(!0), n(f, null, j(l.labelValues, (t, a) => (o(), n("div", {
|
|
174
|
+
key: a,
|
|
175
|
+
class: s(i(c)("tooltip-item"))
|
|
191
176
|
}, [
|
|
192
|
-
|
|
193
|
-
class:
|
|
194
|
-
style:
|
|
195
|
-
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
177
|
+
d("span", {
|
|
178
|
+
class: s(i(c)("tooltip-label")),
|
|
179
|
+
style: u(l.tooltipLabelStyles)
|
|
180
|
+
}, y(t.label ? t.label : "--") + ": ", 7),
|
|
181
|
+
m(t.value) ? (o(), n("span", {
|
|
182
|
+
key: 0,
|
|
183
|
+
class: s(i(c)("tooltip-value")),
|
|
184
|
+
style: u(l.tooltipValueStyles)
|
|
185
|
+
}, [
|
|
186
|
+
M(S, {
|
|
187
|
+
value: t.value,
|
|
188
|
+
style: u([t.tooltipValueStyles])
|
|
189
|
+
}, null, 8, ["value", "style"]),
|
|
190
|
+
t.unit ? (o(), n("span", T, y(t.unit), 1)) : p("", !0)
|
|
191
|
+
], 6)) : (o(), n("span", {
|
|
192
|
+
key: 1,
|
|
193
|
+
class: s(i(c)("tooltip-value")),
|
|
194
|
+
style: u(l.tooltipValueStyles)
|
|
199
195
|
}, [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
], 6)
|
|
196
|
+
O(y(k(t.value, { ...t })) + " ", 1),
|
|
197
|
+
t.unit ? (o(), n("span", D, y(t.unit), 1)) : p("", !0)
|
|
198
|
+
], 6))
|
|
203
199
|
], 2))), 128))
|
|
204
200
|
], 2)
|
|
205
201
|
]),
|
|
@@ -209,5 +205,5 @@ const H = { key: 0 }, I = { key: 0 }, J = ["href", "onClick"], K = { key: 0 }, _
|
|
|
209
205
|
}
|
|
210
206
|
});
|
|
211
207
|
export {
|
|
212
|
-
|
|
208
|
+
Q as default
|
|
213
209
|
};
|
|
@@ -90,9 +90,7 @@ declare const ApLadder: {
|
|
|
90
90
|
labelValues: Array< ApLadderLabelValue>;
|
|
91
91
|
majorColor: string;
|
|
92
92
|
minorColor: string;
|
|
93
|
-
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
94
|
-
wrapperRef: HTMLDivElement;
|
|
95
|
-
}, HTMLDivElement, ComponentProvideOptions, {
|
|
93
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
96
94
|
P: {};
|
|
97
95
|
B: {};
|
|
98
96
|
D: {};
|