@aplus-frontend/ui 0.5.16 → 0.5.18
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 +2 -1
- package/es/src/ap-form/ap-form.vue2.mjs +2 -2
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- 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 +4 -3
- 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 +4 -3
- 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 +4 -2
- package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
- 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 +4 -2
- package/es/src/ap-grid/index.vue.mjs +110 -109
- package/es/src/ap-grid/interface.d.ts +10 -0
- package/es/src/ap-grid/utils/table.mjs +39 -32
- 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 +4 -2
- 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 +4 -2
- package/es/src/ap-table/ap-table.vue2.mjs +26 -26
- 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/utils.mjs +27 -26
- 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 +7 -2
- 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 +4 -2
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
- package/es/src/business/ap-expand-alert/index.d.ts +6 -4
- 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 -14
- package/es/src/business/ap-ladder/ApLadder.vue2.mjs +64 -266
- package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
- package/es/src/business/ap-ladder/components/SimpleMode.vue.mjs +4 -0
- package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +119 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue.mjs +4 -0
- package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +213 -0
- package/es/src/business/ap-ladder/index.d.ts +4 -35
- package/es/src/business/ap-ladder/interface.d.ts +26 -0
- package/es/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
- package/es/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
- package/es/src/business/ap-ladder/utils.d.ts +2 -0
- package/es/src/business/ap-ladder/utils.mjs +5 -0
- package/es/src/business/ap-select-layout/index.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- 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/hooks/use-create-table-modal.mjs +1 -1
- package/es/src/business/ap-table-modal/interface.d.ts +1 -1
- package/es/src/business/ap-table-modal/modal-title.vue2.mjs +3 -3
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +20 -21
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +17 -17
- 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 +1 -5
- package/es/src/editable-table/form-item.vue.d.ts +4 -2
- package/es/src/editable-table/form-item.vue.mjs +2 -2
- package/es/src/editable-table/index.vue.d.ts +4 -2
- 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/mask/style/css.d.ts +0 -0
- package/es/src/mask/style/css.js +1 -0
- package/es/src/mask/style/index.d.ts +0 -0
- package/es/src/mask/style/index.js +1 -0
- package/es/src/path-map.mjs +3 -1
- package/es/src/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 +4 -4
- package/es/src/text/style/css.d.ts +0 -0
- package/es/src/text/style/css.js +2 -0
- package/es/src/text/style/index.d.ts +0 -0
- package/es/src/text/style/index.js +2 -0
- package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- 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 +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-grid/interface.d.ts +10 -0
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +4 -2
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- 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/utils.js +1 -1
- 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 +7 -2
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -14
- package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +110 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.vue.js +1 -0
- package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +118 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.js +1 -0
- package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -0
- package/lib/src/business/ap-ladder/index.d.ts +4 -35
- package/lib/src/business/ap-ladder/interface.d.ts +26 -0
- package/lib/src/business/ap-ladder/useWatchEllipsis.d.ts +1 -2
- package/lib/src/business/ap-ladder/useWatchEllipsis.origin.d.ts +3 -0
- package/lib/src/business/ap-ladder/utils.d.ts +2 -0
- package/lib/src/business/ap-ladder/utils.js +1 -0
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/hooks/use-create-table-modal.js +1 -1
- package/lib/src/business/ap-table-modal/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/modal-title.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/lib/src/editable-table/form-item.vue.d.ts +4 -2
- package/lib/src/editable-table/index.vue.d.ts +4 -2
- package/lib/src/mask/style/css.cjs +1 -0
- package/lib/src/mask/style/css.d.ts +0 -0
- package/lib/src/mask/style/index.cjs +1 -0
- package/lib/src/mask/style/index.d.ts +0 -0
- package/lib/src/path-map.js +1 -1
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/text/style/css.cjs +2 -0
- package/lib/src/text/style/css.d.ts +0 -0
- package/lib/src/text/style/index.cjs +2 -0
- package/lib/src/text/style/index.d.ts +0 -0
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
- package/package.json +3 -3
- package/theme/ap-ladder/ap-ladder.css +28 -1
- package/theme/ap-ladder/ap-ladder.less +32 -1
- package/theme/index.css +28 -1
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
- package/es/src/business/ap-ladder/HelpMessageIcon.vue.mjs +0 -4
- package/es/src/business/ap-ladder/HelpMessageIcon.vue2.mjs +0 -35
- package/es/src/business/ap-ladder/useWatchEllipsis.mjs +0 -35
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.d.ts +0 -14
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue.js +0 -1
- package/lib/src/business/ap-ladder/HelpMessageIcon.vue2.js +0 -1
- package/lib/src/business/ap-ladder/useWatchEllipsis.js +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { StyleValue, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { ApLadderLabelValue } from '../interface';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: {
|
|
6
|
+
title?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
refs: {};
|
|
9
|
+
rootEl: any;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
13
|
+
labelValues: {
|
|
14
|
+
type: () => ApLadderLabelValue[];
|
|
15
|
+
default: () => never[];
|
|
16
|
+
};
|
|
17
|
+
labelAlign: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
labelStyles: {
|
|
22
|
+
type: PropType<StyleValue>;
|
|
23
|
+
default: () => {};
|
|
24
|
+
};
|
|
25
|
+
valueStyles: {
|
|
26
|
+
type: PropType<StyleValue>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
linkStyles: {
|
|
30
|
+
type: PropType<StyleValue>;
|
|
31
|
+
default: () => {};
|
|
32
|
+
};
|
|
33
|
+
unitStyles: {
|
|
34
|
+
type: PropType<StyleValue>;
|
|
35
|
+
default: () => {};
|
|
36
|
+
};
|
|
37
|
+
tooltipLabelStyles: {
|
|
38
|
+
type: PropType<StyleValue>;
|
|
39
|
+
default: () => {};
|
|
40
|
+
};
|
|
41
|
+
tooltipValueStyles: {
|
|
42
|
+
type: PropType<StyleValue>;
|
|
43
|
+
default: () => {};
|
|
44
|
+
};
|
|
45
|
+
tooltipProps: {
|
|
46
|
+
type: ObjectConstructor;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
49
|
+
tooltip: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
54
|
+
handleClick: (...args: any[]) => void;
|
|
55
|
+
"update:valueRefs": (...args: any[]) => void;
|
|
56
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
57
|
+
labelValues: {
|
|
58
|
+
type: () => ApLadderLabelValue[];
|
|
59
|
+
default: () => never[];
|
|
60
|
+
};
|
|
61
|
+
labelAlign: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
labelStyles: {
|
|
66
|
+
type: PropType<StyleValue>;
|
|
67
|
+
default: () => {};
|
|
68
|
+
};
|
|
69
|
+
valueStyles: {
|
|
70
|
+
type: PropType<StyleValue>;
|
|
71
|
+
default: () => {};
|
|
72
|
+
};
|
|
73
|
+
linkStyles: {
|
|
74
|
+
type: PropType<StyleValue>;
|
|
75
|
+
default: () => {};
|
|
76
|
+
};
|
|
77
|
+
unitStyles: {
|
|
78
|
+
type: PropType<StyleValue>;
|
|
79
|
+
default: () => {};
|
|
80
|
+
};
|
|
81
|
+
tooltipLabelStyles: {
|
|
82
|
+
type: PropType<StyleValue>;
|
|
83
|
+
default: () => {};
|
|
84
|
+
};
|
|
85
|
+
tooltipValueStyles: {
|
|
86
|
+
type: PropType<StyleValue>;
|
|
87
|
+
default: () => {};
|
|
88
|
+
};
|
|
89
|
+
tooltipProps: {
|
|
90
|
+
type: ObjectConstructor;
|
|
91
|
+
default: () => {};
|
|
92
|
+
};
|
|
93
|
+
tooltip: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
}>> & Readonly<{
|
|
98
|
+
onHandleClick?: ((...args: any[]) => any) | undefined;
|
|
99
|
+
"onUpdate:valueRefs"?: ((...args: any[]) => any) | undefined;
|
|
100
|
+
}>, {
|
|
101
|
+
tooltip: boolean;
|
|
102
|
+
labelAlign: string;
|
|
103
|
+
tooltipProps: Record<string, any>;
|
|
104
|
+
labelValues: ApLadderLabelValue[];
|
|
105
|
+
labelStyles: StyleValue;
|
|
106
|
+
valueStyles: StyleValue;
|
|
107
|
+
linkStyles: StyleValue;
|
|
108
|
+
unitStyles: StyleValue;
|
|
109
|
+
tooltipLabelStyles: StyleValue;
|
|
110
|
+
tooltipValueStyles: StyleValue;
|
|
111
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
112
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
113
|
+
export default _default;
|
|
114
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
115
|
+
new (): {
|
|
116
|
+
$slots: S;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import { defineComponent as w, ref as x, isVNode as g, h as C, onMounted as A, openBlock as r, createBlock as F, unref as l, normalizeProps as R, guardReactiveProps as B, createSlots as M, withCtx as k, createElementVNode as y, normalizeClass as c, createElementBlock as n, Fragment as p, renderList as O, normalizeStyle as a, createTextVNode as $, toDisplayString as d, createCommentVNode as f, createVNode as z, withModifiers as E, renderSlot as G } from "vue";
|
|
2
|
+
import { Tooltip as T } from "@aplus-frontend/antdv";
|
|
3
|
+
import "../../../config-provider/index.mjs";
|
|
4
|
+
import { locales as b } from "../interface.mjs";
|
|
5
|
+
import { isNull as D } from "../utils.mjs";
|
|
6
|
+
import { useNamespace as q } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const H = { key: 0 }, I = { key: 0 }, J = ["href", "onClick"], K = { key: 0 }, _ = /* @__PURE__ */ w({
|
|
8
|
+
name: "ApLadderValueGroupMode",
|
|
9
|
+
__name: "ValueGroupMode",
|
|
10
|
+
props: {
|
|
11
|
+
labelValues: {
|
|
12
|
+
type: Array,
|
|
13
|
+
default: () => []
|
|
14
|
+
},
|
|
15
|
+
labelAlign: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
19
|
+
labelStyles: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: () => ({})
|
|
22
|
+
},
|
|
23
|
+
valueStyles: {
|
|
24
|
+
type: Object,
|
|
25
|
+
default: () => ({})
|
|
26
|
+
},
|
|
27
|
+
linkStyles: {
|
|
28
|
+
type: Object,
|
|
29
|
+
default: () => ({})
|
|
30
|
+
},
|
|
31
|
+
unitStyles: {
|
|
32
|
+
type: Object,
|
|
33
|
+
default: () => ({})
|
|
34
|
+
},
|
|
35
|
+
tooltipLabelStyles: {
|
|
36
|
+
type: Object,
|
|
37
|
+
default: () => ({})
|
|
38
|
+
},
|
|
39
|
+
tooltipValueStyles: {
|
|
40
|
+
type: Object,
|
|
41
|
+
default: () => ({})
|
|
42
|
+
},
|
|
43
|
+
tooltipProps: {
|
|
44
|
+
type: Object,
|
|
45
|
+
default: () => ({})
|
|
46
|
+
},
|
|
47
|
+
tooltip: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
emits: ["update:valueRefs", "handleClick"],
|
|
53
|
+
setup(i, { emit: j }) {
|
|
54
|
+
const v = j, { e: s } = q("ap-ladder"), S = x([]), N = (t) => g(t) || typeof t == "function", L = (t) => {
|
|
55
|
+
const { value: o, style: e, ref: u } = t;
|
|
56
|
+
return g(o) ? C(o, {
|
|
57
|
+
ref: u,
|
|
58
|
+
style: {
|
|
59
|
+
...e,
|
|
60
|
+
display: "inline-block"
|
|
61
|
+
}
|
|
62
|
+
}) : typeof o == "function" ? C(o(), {
|
|
63
|
+
ref: u,
|
|
64
|
+
style: {
|
|
65
|
+
...e,
|
|
66
|
+
display: "inline-block"
|
|
67
|
+
}
|
|
68
|
+
}) : null;
|
|
69
|
+
}, m = (t, o = {}) => {
|
|
70
|
+
const e = {
|
|
71
|
+
rawValue: o.rawValue,
|
|
72
|
+
precision: o.precision === void 0 ? 2 : o.precision,
|
|
73
|
+
thousand: o.thousand,
|
|
74
|
+
thousandSeparator: o.thousandSeparator || ",",
|
|
75
|
+
currency: o.currency,
|
|
76
|
+
percent: o.percent
|
|
77
|
+
};
|
|
78
|
+
if (t === null || typeof t == "object" || typeof t == "function" || typeof t > "u")
|
|
79
|
+
return "--";
|
|
80
|
+
if (typeof t == "boolean")
|
|
81
|
+
return t;
|
|
82
|
+
if (D(t))
|
|
83
|
+
return "--";
|
|
84
|
+
if (e.rawValue)
|
|
85
|
+
return t;
|
|
86
|
+
if (typeof t == "number") {
|
|
87
|
+
if (e.percent)
|
|
88
|
+
return `${t.toFixed(e.precision)}%`;
|
|
89
|
+
if (e.currency)
|
|
90
|
+
return t.toLocaleString(b[e.currency], {
|
|
91
|
+
style: "currency",
|
|
92
|
+
currency: e.currency
|
|
93
|
+
});
|
|
94
|
+
if (e.thousand) {
|
|
95
|
+
const [u, h] = t.toFixed(e.precision).split(".");
|
|
96
|
+
return `${u.replace(
|
|
97
|
+
/(\d)(?=(\d{3})+(?!\d))/g,
|
|
98
|
+
`$1${e.thousandSeparator}`
|
|
99
|
+
)}.${h}`;
|
|
100
|
+
}
|
|
101
|
+
return t.toFixed(e.precision);
|
|
102
|
+
}
|
|
103
|
+
return t;
|
|
104
|
+
}, P = (t) => {
|
|
105
|
+
v("handleClick", t);
|
|
106
|
+
};
|
|
107
|
+
return A(() => {
|
|
108
|
+
S.value.length > 0 && v("update:valueRefs", S.value);
|
|
109
|
+
}), (t, o) => (r(), F(l(T), R(B(i.tooltipProps)), M({
|
|
110
|
+
default: k(() => [
|
|
111
|
+
y("div", {
|
|
112
|
+
class: c(l(s)("value-group"))
|
|
113
|
+
}, [
|
|
114
|
+
(r(!0), n(p, null, O(i.labelValues, (e, u) => (r(), n("div", {
|
|
115
|
+
key: u,
|
|
116
|
+
class: c(l(s)("value-group-item"))
|
|
117
|
+
}, [
|
|
118
|
+
e.label ? (r(), n("div", {
|
|
119
|
+
key: 0,
|
|
120
|
+
class: c([
|
|
121
|
+
l(s)("value-group-label"),
|
|
122
|
+
i.labelAlign && `label-align-${i.labelAlign}`
|
|
123
|
+
]),
|
|
124
|
+
style: a(e.labelStyles)
|
|
125
|
+
}, [
|
|
126
|
+
$(d(e.label), 1),
|
|
127
|
+
e.label ? (r(), n("span", H, ":")) : f("", !0)
|
|
128
|
+
], 6)) : f("", !0),
|
|
129
|
+
y("div", {
|
|
130
|
+
class: c(l(s)("value-group-value"))
|
|
131
|
+
}, [
|
|
132
|
+
N(e.value) ? (r(), n("div", I, [
|
|
133
|
+
z(L, {
|
|
134
|
+
value: e.value,
|
|
135
|
+
style: a(
|
|
136
|
+
(e.valueColor, e.valueStyles)
|
|
137
|
+
)
|
|
138
|
+
}, null, 8, ["value", "style"])
|
|
139
|
+
])) : (r(), n(p, { key: 1 }, [
|
|
140
|
+
e.link ? (r(), n("a", {
|
|
141
|
+
key: 0,
|
|
142
|
+
href: e.link,
|
|
143
|
+
target: "_blank",
|
|
144
|
+
class: c(l(s)("value-group-link")),
|
|
145
|
+
style: a([
|
|
146
|
+
i.linkStyles,
|
|
147
|
+
e.linkStyles,
|
|
148
|
+
e.linkColor ? { color: e.linkColor } : void 0
|
|
149
|
+
]),
|
|
150
|
+
onClick: E((h) => P(e), ["prevent"])
|
|
151
|
+
}, d(m(e.value, { ...e })), 15, J)) : (r(), n(p, { key: 1 }, [
|
|
152
|
+
y("span", {
|
|
153
|
+
style: a([
|
|
154
|
+
i.valueStyles,
|
|
155
|
+
e.valueStyles,
|
|
156
|
+
e.valueColor ? { color: e.valueColor } : void 0
|
|
157
|
+
])
|
|
158
|
+
}, d(m(e.value, { ...e })), 5),
|
|
159
|
+
e.unit ? (r(), n("span", {
|
|
160
|
+
key: 0,
|
|
161
|
+
class: c(l(s)("value-group-unit")),
|
|
162
|
+
style: a([
|
|
163
|
+
i.unitStyles,
|
|
164
|
+
e.unitStyles,
|
|
165
|
+
e.unitColor ? { color: e.unitColor } : void 0
|
|
166
|
+
])
|
|
167
|
+
}, d(e.unit), 7)) : f("", !0)
|
|
168
|
+
], 64))
|
|
169
|
+
], 64))
|
|
170
|
+
], 2)
|
|
171
|
+
], 2))), 128))
|
|
172
|
+
], 2)
|
|
173
|
+
]),
|
|
174
|
+
_: 2
|
|
175
|
+
}, [
|
|
176
|
+
t.$slots.title ? {
|
|
177
|
+
name: "title",
|
|
178
|
+
fn: k(() => [
|
|
179
|
+
G(t.$slots, "title")
|
|
180
|
+
]),
|
|
181
|
+
key: "0"
|
|
182
|
+
} : i.tooltip ? {
|
|
183
|
+
name: "title",
|
|
184
|
+
fn: k(() => [
|
|
185
|
+
y("div", {
|
|
186
|
+
class: c(l(s)("tooltip"))
|
|
187
|
+
}, [
|
|
188
|
+
(r(!0), n(p, null, O(i.labelValues, (e, u) => (r(), n("div", {
|
|
189
|
+
key: u,
|
|
190
|
+
class: c(l(s)("tooltip-item"))
|
|
191
|
+
}, [
|
|
192
|
+
y("span", {
|
|
193
|
+
class: c(l(s)("tooltip-label")),
|
|
194
|
+
style: a(i.tooltipLabelStyles)
|
|
195
|
+
}, d(e.label), 7),
|
|
196
|
+
y("span", {
|
|
197
|
+
class: c(l(s)("tooltip-value")),
|
|
198
|
+
style: a(i.tooltipValueStyles)
|
|
199
|
+
}, [
|
|
200
|
+
$(d(m(e.value)) + " ", 1),
|
|
201
|
+
e.unit ? (r(), n("span", K, d(e.unit), 1)) : f("", !0)
|
|
202
|
+
], 6)
|
|
203
|
+
], 2))), 128))
|
|
204
|
+
], 2)
|
|
205
|
+
]),
|
|
206
|
+
key: "1"
|
|
207
|
+
} : void 0
|
|
208
|
+
]), 1040));
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
export {
|
|
212
|
+
_ as default
|
|
213
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties,
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
2
|
import { ApLadderProps, ApLadderLabelValue, ApLadderSlots } from './interface';
|
|
3
3
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
4
4
|
import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
|
|
@@ -11,8 +11,6 @@ declare const ApLadder: {
|
|
|
11
11
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
12
12
|
layout: "vertical" | "horizontal";
|
|
13
13
|
tooltip: boolean;
|
|
14
|
-
major: string;
|
|
15
|
-
minor: string;
|
|
16
14
|
labelAlign: "left" | "right";
|
|
17
15
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
18
16
|
title: VueTypeValidableDef<any>;
|
|
@@ -89,20 +87,11 @@ declare const ApLadder: {
|
|
|
89
87
|
default: boolean;
|
|
90
88
|
};
|
|
91
89
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
90
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
92
91
|
majorColor: string;
|
|
93
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
94
92
|
minorColor: string;
|
|
95
|
-
minorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
96
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
97
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
98
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
99
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
100
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
101
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
102
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
103
93
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
104
94
|
wrapperRef: HTMLDivElement;
|
|
105
|
-
valueRefs: HTMLSpanElement;
|
|
106
95
|
}, HTMLDivElement, ComponentProvideOptions, {
|
|
107
96
|
P: {};
|
|
108
97
|
B: {};
|
|
@@ -113,8 +102,6 @@ declare const ApLadder: {
|
|
|
113
102
|
}, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
114
103
|
layout: "vertical" | "horizontal";
|
|
115
104
|
tooltip: boolean;
|
|
116
|
-
major: string;
|
|
117
|
-
minor: string;
|
|
118
105
|
labelAlign: "left" | "right";
|
|
119
106
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
120
107
|
title: VueTypeValidableDef<any>;
|
|
@@ -191,17 +178,9 @@ declare const ApLadder: {
|
|
|
191
178
|
default: boolean;
|
|
192
179
|
};
|
|
193
180
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
181
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
194
182
|
majorColor: string;
|
|
195
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
196
183
|
minorColor: string;
|
|
197
|
-
minorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
198
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
199
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
200
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
201
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
202
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
203
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
204
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
205
184
|
}>;
|
|
206
185
|
__isFragment?: never;
|
|
207
186
|
__isTeleport?: never;
|
|
@@ -209,8 +188,6 @@ declare const ApLadder: {
|
|
|
209
188
|
} & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
210
189
|
layout: "vertical" | "horizontal";
|
|
211
190
|
tooltip: boolean;
|
|
212
|
-
major: string;
|
|
213
|
-
minor: string;
|
|
214
191
|
labelAlign: "left" | "right";
|
|
215
192
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
216
193
|
title: VueTypeValidableDef<any>;
|
|
@@ -287,17 +264,9 @@ declare const ApLadder: {
|
|
|
287
264
|
default: boolean;
|
|
288
265
|
};
|
|
289
266
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
267
|
+
labelValues: Array< ApLadderLabelValue>;
|
|
290
268
|
majorColor: string;
|
|
291
|
-
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
292
269
|
minorColor: string;
|
|
293
|
-
minorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
294
|
-
labelValues: Array< ApLadderLabelValue>;
|
|
295
|
-
labelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
296
|
-
valueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
297
|
-
linkStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
298
|
-
unitStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
299
|
-
tooltipLabelStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
300
|
-
tooltipValueStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
301
270
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
302
271
|
$slots: Readonly< ApLadderSlots> & ApLadderSlots;
|
|
303
272
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
@@ -252,3 +252,29 @@ export type CurrencyCode = 'CNY' | 'USD' | 'EUR' | 'GBP';
|
|
|
252
252
|
* 国际货币代码-映射-语言
|
|
253
253
|
*/
|
|
254
254
|
export declare const locales: CurrencyCodeInLocale;
|
|
255
|
+
export interface ConvertValueOptions {
|
|
256
|
+
/**
|
|
257
|
+
* 是否采用原始值
|
|
258
|
+
*/
|
|
259
|
+
rawValue?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* 精度 默认2位小数
|
|
262
|
+
*/
|
|
263
|
+
precision?: number;
|
|
264
|
+
/**
|
|
265
|
+
* 千分位展示
|
|
266
|
+
*/
|
|
267
|
+
thousand?: boolean;
|
|
268
|
+
/**
|
|
269
|
+
* 千分位分隔符
|
|
270
|
+
*/
|
|
271
|
+
thousandSeparator?: string;
|
|
272
|
+
/**
|
|
273
|
+
* 货币单位
|
|
274
|
+
*/
|
|
275
|
+
currency?: CurrencyCode;
|
|
276
|
+
/**
|
|
277
|
+
* 百分比展示
|
|
278
|
+
*/
|
|
279
|
+
percent?: boolean;
|
|
280
|
+
}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
export declare
|
|
3
|
-
export declare const useWatchEllipsis: (target: Ref<HTMLElement | undefined>) => Ref<boolean, boolean>;
|
|
2
|
+
export declare function useWatchEllipsis(wrapperRef: Ref<HTMLElement | undefined>): Ref<boolean, boolean>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem } from './interface';
|
|
2
|
-
import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
|
|
2
|
+
import { PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement, Plugin } from 'vue';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
5
5
|
attrs: any;
|
|
@@ -38,7 +38,9 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
|
|
|
38
38
|
(event: "afterEnter", el: Element): void;
|
|
39
39
|
(event: "afterLeave", el: Element): void;
|
|
40
40
|
};
|
|
41
|
-
}>) => VNode
|
|
41
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
}> & {
|
|
42
44
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
43
45
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
44
46
|
$props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem, ApSelectLayoutProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
3
3
|
declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onOnSelect?: ((value: T) => any) | undefined;
|
|
@@ -19,7 +19,9 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
|
|
|
19
19
|
(event: "afterEnter", el: Element): void;
|
|
20
20
|
(event: "afterLeave", el: Element): void;
|
|
21
21
|
};
|
|
22
|
-
}>) => VNode
|
|
22
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
23
|
+
[key: string]: any;
|
|
24
|
+
}> & {
|
|
23
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
26
|
};
|
|
25
27
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as I, ref as d, computed as M, onMounted as O,
|
|
1
|
+
import { defineComponent as I, ref as d, computed as M, onMounted as O, openBlock as p, createElementBlock as m, normalizeClass as a, unref as t, createVNode as u, Transition as W, withCtx as v, withDirectives as g, createElementVNode as s, toDisplayString as E, createTextVNode as $, Fragment as z, renderList as R, renderSlot as x, vShow as N, createCommentVNode as j } from "vue";
|
|
2
2
|
import "../../ap-field/index.mjs";
|
|
3
3
|
import { IconApLeftarrow as G, IconApMenu as H } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
@@ -42,7 +42,7 @@ const Q = ["onClick"], ae = /* @__PURE__ */ I({
|
|
|
42
42
|
});
|
|
43
43
|
}), (n, e) => {
|
|
44
44
|
var r;
|
|
45
|
-
return
|
|
45
|
+
return p(), m("div", {
|
|
46
46
|
class: a(t(h)())
|
|
47
47
|
}, [
|
|
48
48
|
u(W, {
|
|
@@ -90,7 +90,7 @@ const Q = ["onClick"], ae = /* @__PURE__ */ I({
|
|
|
90
90
|
s("div", {
|
|
91
91
|
class: a(t(i)("side", "body", "scroll"))
|
|
92
92
|
}, [
|
|
93
|
-
(
|
|
93
|
+
(p(!0), m(z, null, R(U.value, (l) => g((p(), m("div", {
|
|
94
94
|
key: l.value,
|
|
95
95
|
class: a(`${t(i)("side", "body", "scroll-item")} ${F.value === l ? "active" : ""}`),
|
|
96
96
|
onClick: (X) => V(l)
|
|
@@ -118,7 +118,7 @@ const Q = ["onClick"], ae = /* @__PURE__ */ I({
|
|
|
118
118
|
s("div", {
|
|
119
119
|
class: a(t(y)("content", "header"))
|
|
120
120
|
}, [
|
|
121
|
-
f.value ? (
|
|
121
|
+
f.value ? (p(), m("div", {
|
|
122
122
|
key: 0,
|
|
123
123
|
class: a(t(i)("content", "header", "imgWrap"))
|
|
124
124
|
}, [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as u, computed as a,
|
|
1
|
+
import { defineComponent as u, computed as a, openBlock as d, createElementBlock as i, normalizeClass as r, unref as t, normalizeStyle as s, createTextVNode as m, toDisplayString as f, createElementVNode as y, createCommentVNode as g } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
3
|
import { useNamespace as x } from "../../config-provider/hooks/use-namespace.mjs";
|
|
4
4
|
const C = /* @__PURE__ */ u({
|
|
@@ -20,17 +20,17 @@ const C = /* @__PURE__ */ u({
|
|
|
20
20
|
})), p = a(() => ({
|
|
21
21
|
"background-color": e.color
|
|
22
22
|
})), { b: c, e: o } = x("ap-status");
|
|
23
|
-
return (S, _) => e.show ? (
|
|
23
|
+
return (S, _) => e.show ? (d(), i("div", {
|
|
24
24
|
key: 0,
|
|
25
|
-
class:
|
|
26
|
-
style:
|
|
25
|
+
class: r([t(c)()]),
|
|
26
|
+
style: s(n.value)
|
|
27
27
|
}, [
|
|
28
|
-
f(
|
|
28
|
+
m(f(e.text) + " ", 1),
|
|
29
29
|
y("div", {
|
|
30
|
-
class:
|
|
31
|
-
style:
|
|
30
|
+
class: r([t(o)("bg"), t(o)("primary")]),
|
|
31
|
+
style: s(p.value)
|
|
32
32
|
}, null, 6)
|
|
33
|
-
], 6)) :
|
|
33
|
+
], 6)) : g("", !0);
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as p, computed as c, createElementBlock as o,
|
|
1
|
+
import { defineComponent as p, computed as c, openBlock as r, createElementBlock as o, normalizeClass as d, unref as m, normalizeStyle as a, Fragment as i, renderList as f, createBlock as y, createCommentVNode as _ } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
3
|
import "../ApStatus.vue.mjs";
|
|
4
4
|
import { useNamespace as g } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
@@ -19,10 +19,10 @@ const w = /* @__PURE__ */ p({
|
|
|
19
19
|
})), { b: l } = g("ap-status-group");
|
|
20
20
|
return (n, S) => t.statusList ? (r(), o("div", {
|
|
21
21
|
key: 0,
|
|
22
|
-
class:
|
|
22
|
+
class: d([m(l)()]),
|
|
23
23
|
style: a(u.value)
|
|
24
24
|
}, [
|
|
25
|
-
(r(!0), o(
|
|
25
|
+
(r(!0), o(i, null, f(t.statusList, (e) => (r(), y(k, {
|
|
26
26
|
key: e.value,
|
|
27
27
|
show: e.value === n.currentValue,
|
|
28
28
|
color: e.color,
|
|
@@ -30,7 +30,7 @@ const w = /* @__PURE__ */ p({
|
|
|
30
30
|
padding: t.padding,
|
|
31
31
|
style: a(t.style)
|
|
32
32
|
}, null, 8, ["show", "color", "text", "padding", "style"]))), 128))
|
|
33
|
-
], 6)) :
|
|
33
|
+
], 6)) : _("", !0);
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as N, computed as p, createVNode as w, Fragment as y,
|
|
1
|
+
import { defineComponent as N, computed as p, createVNode as w, Fragment as y, openBlock as m, createBlock as l, unref as r, normalizeClass as f, withCtx as x, createElementBlock as z, renderList as B, normalizeStyle as R, resolveDynamicComponent as A } from "vue";
|
|
2
2
|
import { isNil as D, get as i } from "lodash-unified";
|
|
3
3
|
import { TableSummaryRow as F, TableSummaryCell as V } from "@aplus-frontend/antdv";
|
|
4
4
|
import { flattenColumns as E, formatDataIndex as c } from "./utils.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as T, defineComponent as g, h as r, render as d, onUnmounted as C } from "vue";
|
|
2
2
|
import "../table-modal.vue.mjs";
|
|
3
|
-
import "../../../index.mjs";
|
|
3
|
+
import "../../../config-provider/index.mjs";
|
|
4
4
|
import { omit as y } from "lodash-unified";
|
|
5
5
|
import { ConfigProvider as A, globalConfigCached as h } from "../../../config-provider/config-provider.mjs";
|
|
6
6
|
import I from "../table-modal.vue2.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VNode, VNodeChild } from 'vue';
|
|
2
|
-
import { ApTableProps } from '../../
|
|
2
|
+
import { ApTableProps } from '../../ap-table';
|
|
3
3
|
import { ModalProps, TableProps } from '@aplus-frontend/antdv';
|
|
4
4
|
/** table-modal的props类型 */
|
|
5
5
|
export interface ApTableModalProps<TableRowType = any> extends Omit<ModalProps, 'onOk' | 'open' | 'close' | 'visible'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as m,
|
|
2
|
-
import "../../index.mjs";
|
|
1
|
+
import { defineComponent as m, openBlock as c, createElementBlock as f, createTextVNode as a, toDisplayString as t, renderSlot as d, createElementVNode as r, normalizeStyle as u, unref as o } from "vue";
|
|
2
|
+
import "../../config-provider/index.mjs";
|
|
3
3
|
import { useLocale as p } from "../../config-provider/hooks/use-locale.mjs";
|
|
4
4
|
import { useGlobalConfig as s } from "../../config-provider/hooks/use-global-config.mjs";
|
|
5
5
|
const T = /* @__PURE__ */ m({
|
|
@@ -20,7 +20,7 @@ const T = /* @__PURE__ */ m({
|
|
|
20
20
|
},
|
|
21
21
|
setup(e) {
|
|
22
22
|
const { t: n } = p(), l = s("uiMode", "aplus");
|
|
23
|
-
return (i, x) => (
|
|
23
|
+
return (i, x) => (c(), f("div", null, [
|
|
24
24
|
a(t(e.title) + " ", 1),
|
|
25
25
|
d(i.$slots, "default", {
|
|
26
26
|
maxCount: e.maxCount,
|