@aplus-frontend/ui 0.5.24 → 0.5.25

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.
Files changed (213) hide show
  1. package/es/src/ap-action/group/index.vue.mjs +3 -3
  2. package/es/src/ap-action/item/index.vue2.mjs +5 -5
  3. package/es/src/ap-action/item-dropdown/index.vue.mjs +7 -7
  4. package/es/src/ap-action/item-modal/index.vue.mjs +2 -2
  5. package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
  6. package/es/src/ap-button/ap-action-button.vue.mjs +2 -2
  7. package/es/src/ap-button/ap-button.vue.mjs +2 -2
  8. package/es/src/ap-button/ap-confirm-button.vue.mjs +2 -2
  9. package/es/src/ap-descriptions/ap-descriptions.vue.mjs +4 -4
  10. package/es/src/ap-descriptions/help-message/index.vue2.mjs +4 -4
  11. package/es/src/ap-download/ap-download.vue.mjs +1 -1
  12. package/es/src/ap-field/checkbox/index.vue.mjs +1 -1
  13. package/es/src/ap-field/date/index.vue.mjs +4 -4
  14. package/es/src/ap-field/date-range/index.vue.mjs +8 -8
  15. package/es/src/ap-field/index.mjs +36 -36
  16. package/es/src/ap-field/number/index.vue.mjs +8 -8
  17. package/es/src/ap-field/radio/index.vue.mjs +1 -1
  18. package/es/src/ap-field/rate/index.vue.mjs +2 -2
  19. package/es/src/ap-field/segmented/index.vue.mjs +1 -1
  20. package/es/src/ap-field/select/index.vue.mjs +2 -2
  21. package/es/src/ap-field/select/use-select-options.d.ts +2 -2
  22. package/es/src/ap-field/slider/index.vue.mjs +4 -4
  23. package/es/src/ap-field/switch/index.vue.mjs +3 -3
  24. package/es/src/ap-field/text/index.vue2.mjs +2 -2
  25. package/es/src/ap-field/text/password.vue.mjs +2 -2
  26. package/es/src/ap-field/text-area/index.vue.mjs +3 -3
  27. package/es/src/ap-field/tree-select/index.vue.mjs +3 -3
  28. package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
  29. package/es/src/ap-form/ap-form.vue.d.ts +2 -1
  30. package/es/src/ap-form/ap-form.vue2.mjs +2 -2
  31. package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  32. package/es/src/ap-form/drawer-form/index.vue.mjs +9 -9
  33. package/es/src/ap-form/item/index.vue.mjs +7 -7
  34. package/es/src/ap-form/item-group/index.vue.mjs +3 -3
  35. package/es/src/ap-form/items/checkbox/index.vue.mjs +2 -2
  36. package/es/src/ap-form/items/date/index.vue.mjs +2 -2
  37. package/es/src/ap-form/items/date-range/index.vue.mjs +2 -2
  38. package/es/src/ap-form/items/number/index.vue.mjs +2 -2
  39. package/es/src/ap-form/items/radio/index.vue.mjs +2 -2
  40. package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
  41. package/es/src/ap-form/items/select/index.vue.mjs +2 -2
  42. package/es/src/ap-form/items/switch/index.vue.mjs +2 -2
  43. package/es/src/ap-form/items/text/group.vue2.mjs +2 -2
  44. package/es/src/ap-form/items/text/index.vue2.mjs +2 -2
  45. package/es/src/ap-form/items/text/password.vue.mjs +2 -2
  46. package/es/src/ap-form/items/text-area/index.vue.mjs +2 -2
  47. package/es/src/ap-form/items/tree-select/index.vue.mjs +2 -2
  48. package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
  49. package/es/src/ap-form/modal-form/index.vue.mjs +7 -7
  50. package/es/src/ap-form/render/item.vue.mjs +2 -2
  51. package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
  52. package/es/src/ap-form/search-form/index.vue.mjs +1 -1
  53. package/es/src/ap-form/set/index.vue.mjs +1 -1
  54. package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
  55. package/es/src/ap-grid/editable/form-item.vue.mjs +2 -2
  56. package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
  57. package/es/src/ap-grid/editable/index.vue.mjs +2 -2
  58. package/es/src/ap-grid/hooks/use-inner-params.mjs +3 -3
  59. package/es/src/ap-grid/index.vue.d.ts +4 -2
  60. package/es/src/ap-grid/index.vue.mjs +4 -4
  61. package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +2 -2
  62. package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +2 -2
  63. package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +1 -1
  64. package/es/src/ap-list/index.vue.d.ts +4 -2
  65. package/es/src/ap-list/index.vue.mjs +4 -4
  66. package/es/src/ap-modal/utils/confirm.d.ts +1 -1
  67. package/es/src/ap-table/ap-table.vue.d.ts +4 -2
  68. package/es/src/ap-table/ap-table.vue2.mjs +13 -13
  69. package/es/src/ap-table/components/dynamic-component/index.vue2.mjs +2 -2
  70. package/es/src/ap-table/components/index/index.vue2.mjs +2 -2
  71. package/es/src/ap-table/components/paragraph-ellipsis/index.vue2.mjs +3 -3
  72. package/es/src/ap-table/components/setting/modal/index.vue2.mjs +3 -3
  73. package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +1 -1
  74. package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +1 -1
  75. package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +1 -1
  76. package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +11 -11
  77. package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +1 -1
  78. package/es/src/ap-table/components/status/index.vue2.mjs +2 -2
  79. package/es/src/ap-table/constants.d.ts +5 -5
  80. package/es/src/ap-table/constants.mjs +45 -45
  81. package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  82. package/es/src/ap-table/hooks/use-table-column-state.mjs +3 -3
  83. package/es/src/ap-table/utils.d.ts +5 -5
  84. package/es/src/ap-tag/ap-tag-group.vue.mjs +8 -8
  85. package/es/src/ap-tag/ap-tag.vue.mjs +2 -2
  86. package/es/src/ap-upload/apUpload.vue.mjs +5 -5
  87. package/es/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  88. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +3 -3
  89. package/es/src/ap-upload/components/Picture.vue.d.ts +7 -2
  90. package/es/src/ap-upload/components/Picture.vue2.mjs +6 -6
  91. package/es/src/ap-upload/components/SingleFile.vue2.mjs +7 -7
  92. package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +1 -1
  93. package/es/src/business/ap-appendix/icons/file-icon.vue.mjs +2 -2
  94. package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +2 -2
  95. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
  96. package/es/src/business/ap-batch-action-group/MenuItemGroup.vue2.mjs +1 -1
  97. package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
  98. package/es/src/business/ap-button-group/ApButtonGroup.vue2.mjs +1 -1
  99. package/es/src/business/ap-card/ApCard.vue2.mjs +7 -7
  100. package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  101. package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +11 -11
  102. package/es/src/business/ap-expand-alert/index.d.ts +6 -4
  103. package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +9 -9
  104. package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +5 -5
  105. package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +4 -4
  106. package/es/src/business/ap-group-search/images/icon-down.vue.mjs +2 -2
  107. package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +2 -2
  108. package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +2 -2
  109. package/es/src/business/ap-image/ApImage.vue2.mjs +1 -1
  110. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +2 -2
  111. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +1 -83
  112. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +34 -59
  113. package/es/src/business/ap-ladder/components/SimpleMode.vue.d.ts +3 -65
  114. package/es/src/business/ap-ladder/components/SimpleMode.vue2.mjs +34 -99
  115. package/es/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +3 -75
  116. package/es/src/business/ap-ladder/components/ValueGroupMode.vue2.mjs +68 -195
  117. package/es/src/business/ap-ladder/index.d.ts +1 -235
  118. package/es/src/business/ap-ladder/interface.d.ts +4 -114
  119. package/es/src/business/ap-ladder/utils.d.ts +5 -0
  120. package/es/src/business/ap-ladder/utils.mjs +38 -3
  121. package/es/src/business/ap-product-info/ApProductInfo.d.ts +46 -0
  122. package/es/src/business/ap-product-info/constans.d.ts +23 -0
  123. package/es/src/business/ap-product-info/index.d.ts +1 -0
  124. package/es/src/business/ap-product-info/interface.d.ts +11 -0
  125. package/es/src/business/ap-select-layout/index.d.ts +4 -2
  126. package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  127. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +4 -4
  128. package/es/src/business/ap-status/ApStatus.vue2.mjs +8 -8
  129. package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +4 -4
  130. package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
  131. package/es/src/business/ap-table-modal/modal-title.vue2.mjs +2 -2
  132. package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +14 -14
  133. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +3 -3
  134. package/es/src/business/ap-title/ApTitle.vue2.mjs +7 -7
  135. package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +1 -1
  136. package/es/src/business/ap-upload-file/icon/delete-icon.vue.mjs +2 -2
  137. package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +2 -2
  138. package/es/src/business/batch-input-group/form-item.vue.mjs +2 -2
  139. package/es/src/business/batch-input-group/index.vue.mjs +1 -1
  140. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +2 -2
  141. package/es/src/check-card/index.vue2.mjs +3 -3
  142. package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
  143. package/es/src/editable-table/form-item.vue.d.ts +4 -2
  144. package/es/src/editable-table/form-item.vue.mjs +2 -2
  145. package/es/src/editable-table/index.vue.d.ts +4 -2
  146. package/es/src/editable-table/index.vue.mjs +2 -2
  147. package/es/src/full-screen/index.vue.mjs +3 -3
  148. package/es/src/hooks/useFullScreen.mjs +5 -5
  149. package/es/src/mask/index.vue.mjs +10 -10
  150. package/es/src/portal/index.vue.mjs +2 -2
  151. package/es/src/scroll-bar/index.vue.mjs +3 -3
  152. package/es/src/scroll-bar/internal.vue.mjs +2 -2
  153. package/es/src/scroll-view/index.vue.d.ts +5 -5
  154. package/es/src/scroll-view/index.vue.mjs +9 -9
  155. package/es/src/tests/wrapper.d.ts +4 -4
  156. package/es/src/text/group.vue.mjs +2 -2
  157. package/es/src/text/index.vue.mjs +4 -4
  158. package/es/src/work-order-modal/help-message.vue2.mjs +2 -2
  159. package/es/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  160. package/es/src/work-order-modal/work-order-modal.vue.mjs +2 -2
  161. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  162. package/lib/src/ap-field/index.js +1 -1
  163. package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
  164. package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
  165. package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
  166. package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
  167. package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
  168. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
  169. package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
  170. package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
  171. package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
  172. package/lib/src/ap-grid/index.vue.d.ts +4 -2
  173. package/lib/src/ap-list/index.vue.d.ts +4 -2
  174. package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
  175. package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
  176. package/lib/src/ap-table/constants.d.ts +5 -5
  177. package/lib/src/ap-table/constants.js +1 -1
  178. package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
  179. package/lib/src/ap-table/utils.d.ts +5 -5
  180. package/lib/src/ap-upload/apUpload.vue.js +1 -1
  181. package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +1 -1
  182. package/lib/src/ap-upload/components/Picture.vue.d.ts +7 -2
  183. package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
  184. package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
  185. package/lib/src/business/ap-expand-alert/index.d.ts +6 -4
  186. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +1 -83
  187. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -1
  188. package/lib/src/business/ap-ladder/components/SimpleMode.vue.d.ts +3 -65
  189. package/lib/src/business/ap-ladder/components/SimpleMode.vue2.js +1 -1
  190. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue.d.ts +3 -75
  191. package/lib/src/business/ap-ladder/components/ValueGroupMode.vue2.js +1 -1
  192. package/lib/src/business/ap-ladder/index.d.ts +1 -235
  193. package/lib/src/business/ap-ladder/interface.d.ts +4 -114
  194. package/lib/src/business/ap-ladder/utils.d.ts +5 -0
  195. package/lib/src/business/ap-ladder/utils.js +1 -1
  196. package/lib/src/business/ap-product-info/ApProductInfo.d.ts +46 -0
  197. package/lib/src/business/ap-product-info/constans.d.ts +23 -0
  198. package/lib/src/business/ap-product-info/index.d.ts +1 -0
  199. package/lib/src/business/ap-product-info/interface.d.ts +11 -0
  200. package/lib/src/business/ap-select-layout/index.d.ts +4 -2
  201. package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
  202. package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
  203. package/lib/src/editable-table/form-item.vue.d.ts +4 -2
  204. package/lib/src/editable-table/index.vue.d.ts +4 -2
  205. package/lib/src/scroll-view/index.vue.d.ts +5 -5
  206. package/lib/src/tests/wrapper.d.ts +4 -4
  207. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +3 -2
  208. package/package.json +3 -3
  209. package/theme/ap-grid/index.css +3 -0
  210. package/theme/ap-grid/index.less +3 -0
  211. package/theme/ap-ladder/ap-ladder.css +14 -5
  212. package/theme/ap-ladder/ap-ladder.less +16 -7
  213. package/theme/index.css +17 -5
@@ -1,92 +1,10 @@
1
- import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
1
+ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
2
  import { ApLadderProps, ApLadderLabelValue, ApLadderSlots } from './interface';
3
- import { VueTypeValidableDef } from '../../../node_modules/vue-types';
4
- import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
5
- import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
6
- import { LiteralUnion } from '@aplus-frontend/antdv/es/_util/type';
7
- import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
8
- import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
9
3
  export * from './interface';
10
4
  declare const ApLadder: {
11
5
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
12
6
  layout: "vertical" | "horizontal";
13
- tooltip: boolean;
14
7
  labelAlign: "left" | "right";
15
- tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
16
- title: VueTypeValidableDef<any>;
17
- trigger: PropType< TriggerType | TriggerType[]>;
18
- open: {
19
- type: BooleanConstructor;
20
- default: any;
21
- };
22
- visible: {
23
- type: BooleanConstructor;
24
- default: any;
25
- };
26
- placement: PropType<TooltipPlacement>;
27
- color: PropType<LiteralUnion<PresetColorType>>;
28
- transitionName: StringConstructor;
29
- overlayStyle: {
30
- type: PropType<CSSProperties>;
31
- default: CSSProperties;
32
- };
33
- overlayInnerStyle: {
34
- type: PropType<CSSProperties>;
35
- default: CSSProperties;
36
- };
37
- overlayClassName: StringConstructor;
38
- openClassName: StringConstructor;
39
- prefixCls: StringConstructor;
40
- mouseEnterDelay: NumberConstructor;
41
- mouseLeaveDelay: NumberConstructor;
42
- getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
43
- arrowPointAtCenter: {
44
- type: BooleanConstructor;
45
- default: any;
46
- };
47
- arrow: {
48
- type: PropType<boolean | {
49
- pointAtCenter?: boolean;
50
- }>;
51
- default: boolean | {
52
- pointAtCenter?: boolean;
53
- };
54
- };
55
- autoAdjustOverflow: {
56
- type: PropType<boolean | AdjustOverflow>;
57
- default: boolean | AdjustOverflow;
58
- };
59
- destroyTooltipOnHide: {
60
- type: BooleanConstructor;
61
- default: any;
62
- };
63
- align: {
64
- type: PropType<AlignType>;
65
- default: AlignType;
66
- };
67
- builtinPlacements: {
68
- type: PropType<BuildInPlacements>;
69
- default: BuildInPlacements;
70
- };
71
- children: ArrayConstructor;
72
- onVisibleChange: PropType<(vis: boolean) => void>;
73
- 'onUpdate:visible': PropType<(vis: boolean) => void>;
74
- onOpenChange: PropType<(vis: boolean) => void>;
75
- 'onUpdate:open': PropType<(vis: boolean) => void>;
76
- mask: {
77
- type: BooleanConstructor;
78
- default: boolean;
79
- };
80
- maskStyle: {
81
- type: PropType<CSSProperties>;
82
- default: CSSProperties;
83
- };
84
- maskTransitionName: StringConstructor;
85
- maskClosable: {
86
- type: BooleanConstructor;
87
- default: boolean;
88
- };
89
- }>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
90
8
  labelValues: Array< ApLadderLabelValue>;
91
9
  majorColor: string;
92
10
  minorColor: string;
@@ -99,83 +17,7 @@ declare const ApLadder: {
99
17
  Defaults: {};
100
18
  }, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
101
19
  layout: "vertical" | "horizontal";
102
- tooltip: boolean;
103
20
  labelAlign: "left" | "right";
104
- tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
105
- title: VueTypeValidableDef<any>;
106
- trigger: PropType< TriggerType | TriggerType[]>;
107
- open: {
108
- type: BooleanConstructor;
109
- default: any;
110
- };
111
- visible: {
112
- type: BooleanConstructor;
113
- default: any;
114
- };
115
- placement: PropType<TooltipPlacement>;
116
- color: PropType<LiteralUnion<PresetColorType>>;
117
- transitionName: StringConstructor;
118
- overlayStyle: {
119
- type: PropType<CSSProperties>;
120
- default: CSSProperties;
121
- };
122
- overlayInnerStyle: {
123
- type: PropType<CSSProperties>;
124
- default: CSSProperties;
125
- };
126
- overlayClassName: StringConstructor;
127
- openClassName: StringConstructor;
128
- prefixCls: StringConstructor;
129
- mouseEnterDelay: NumberConstructor;
130
- mouseLeaveDelay: NumberConstructor;
131
- getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
132
- arrowPointAtCenter: {
133
- type: BooleanConstructor;
134
- default: any;
135
- };
136
- arrow: {
137
- type: PropType<boolean | {
138
- pointAtCenter?: boolean;
139
- }>;
140
- default: boolean | {
141
- pointAtCenter?: boolean;
142
- };
143
- };
144
- autoAdjustOverflow: {
145
- type: PropType<boolean | AdjustOverflow>;
146
- default: boolean | AdjustOverflow;
147
- };
148
- destroyTooltipOnHide: {
149
- type: BooleanConstructor;
150
- default: any;
151
- };
152
- align: {
153
- type: PropType<AlignType>;
154
- default: AlignType;
155
- };
156
- builtinPlacements: {
157
- type: PropType<BuildInPlacements>;
158
- default: BuildInPlacements;
159
- };
160
- children: ArrayConstructor;
161
- onVisibleChange: PropType<(vis: boolean) => void>;
162
- 'onUpdate:visible': PropType<(vis: boolean) => void>;
163
- onOpenChange: PropType<(vis: boolean) => void>;
164
- 'onUpdate:open': PropType<(vis: boolean) => void>;
165
- mask: {
166
- type: BooleanConstructor;
167
- default: boolean;
168
- };
169
- maskStyle: {
170
- type: PropType<CSSProperties>;
171
- default: CSSProperties;
172
- };
173
- maskTransitionName: StringConstructor;
174
- maskClosable: {
175
- type: BooleanConstructor;
176
- default: boolean;
177
- };
178
- }>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
179
21
  labelValues: Array< ApLadderLabelValue>;
180
22
  majorColor: string;
181
23
  minorColor: string;
@@ -185,83 +27,7 @@ declare const ApLadder: {
185
27
  __isSuspense?: never;
186
28
  } & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
187
29
  layout: "vertical" | "horizontal";
188
- tooltip: boolean;
189
30
  labelAlign: "left" | "right";
190
- tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
191
- title: VueTypeValidableDef<any>;
192
- trigger: PropType< TriggerType | TriggerType[]>;
193
- open: {
194
- type: BooleanConstructor;
195
- default: any;
196
- };
197
- visible: {
198
- type: BooleanConstructor;
199
- default: any;
200
- };
201
- placement: PropType<TooltipPlacement>;
202
- color: PropType<LiteralUnion<PresetColorType>>;
203
- transitionName: StringConstructor;
204
- overlayStyle: {
205
- type: PropType<CSSProperties>;
206
- default: CSSProperties;
207
- };
208
- overlayInnerStyle: {
209
- type: PropType<CSSProperties>;
210
- default: CSSProperties;
211
- };
212
- overlayClassName: StringConstructor;
213
- openClassName: StringConstructor;
214
- prefixCls: StringConstructor;
215
- mouseEnterDelay: NumberConstructor;
216
- mouseLeaveDelay: NumberConstructor;
217
- getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
218
- arrowPointAtCenter: {
219
- type: BooleanConstructor;
220
- default: any;
221
- };
222
- arrow: {
223
- type: PropType<boolean | {
224
- pointAtCenter?: boolean;
225
- }>;
226
- default: boolean | {
227
- pointAtCenter?: boolean;
228
- };
229
- };
230
- autoAdjustOverflow: {
231
- type: PropType<boolean | AdjustOverflow>;
232
- default: boolean | AdjustOverflow;
233
- };
234
- destroyTooltipOnHide: {
235
- type: BooleanConstructor;
236
- default: any;
237
- };
238
- align: {
239
- type: PropType<AlignType>;
240
- default: AlignType;
241
- };
242
- builtinPlacements: {
243
- type: PropType<BuildInPlacements>;
244
- default: BuildInPlacements;
245
- };
246
- children: ArrayConstructor;
247
- onVisibleChange: PropType<(vis: boolean) => void>;
248
- 'onUpdate:visible': PropType<(vis: boolean) => void>;
249
- onOpenChange: PropType<(vis: boolean) => void>;
250
- 'onUpdate:open': PropType<(vis: boolean) => void>;
251
- mask: {
252
- type: BooleanConstructor;
253
- default: boolean;
254
- };
255
- maskStyle: {
256
- type: PropType<CSSProperties>;
257
- default: CSSProperties;
258
- };
259
- maskTransitionName: StringConstructor;
260
- maskClosable: {
261
- type: BooleanConstructor;
262
- default: boolean;
263
- };
264
- }>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
265
31
  labelValues: Array< ApLadderLabelValue>;
266
32
  majorColor: string;
267
33
  minorColor: string;
@@ -1,5 +1,5 @@
1
1
  import { TooltipProps } from '@aplus-frontend/antdv/es/tooltip/Tooltip';
2
- import { CSSProperties, VNode, VNodeChild } from 'vue';
2
+ import { VNode } from 'vue';
3
3
  /**
4
4
  * Tooltip 需要的属性
5
5
  */
@@ -15,7 +15,7 @@ export interface ApLadderLabelValue {
15
15
  /**
16
16
  * 值
17
17
  */
18
- value?: string | number | VNodeChild | VNode | null | (() => VNodeChild | VNode);
18
+ value?: string | number | VNode | (() => VNode) | null;
19
19
  /**
20
20
  * 是否采用原始值
21
21
  */
@@ -74,64 +74,9 @@ export interface ApLadderLabelValue {
74
74
  handleValueClick?: (labelValueRecord: ApLadderLabelValue[]) => void;
75
75
  /**
76
76
  * label 标签的文本对齐方式 仅支持健值对(labelValues)类型
77
- * @default `right`
78
- * @since v0.4.7 新增
77
+ * @default `left`
79
78
  */
80
79
  labelAlign?: 'left' | 'right';
81
- /**
82
- * 健值对 - label样式
83
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
84
- * @since v0.4.7 新增
85
- */
86
- labelStyles?: CSSProperties;
87
- /**
88
- * 健值对 - value样式
89
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
90
- * @since v0.4.7 新增
91
- */
92
- valueStyles?: CSSProperties;
93
- /**
94
- * 健值对 - link样式
95
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
96
- * @since v0.4.7 新增
97
- */
98
- linkStyles?: CSSProperties;
99
- /**
100
- * 健值对 - unit样式
101
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
102
- * @since v0.4.7 新增
103
- */
104
- unitStyles?: CSSProperties;
105
- /**
106
- * Tooltip - Label style
107
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
108
- * @since v0.4.7 新增
109
- */
110
- tooltipLabelStyles?: CSSProperties;
111
- /**
112
- * Tooltip - Value style
113
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
114
- * @since v0.4.7 新增
115
- */
116
- tooltipValueStyles?: CSSProperties;
117
- /**
118
- * 帮助气泡
119
- */
120
- helpMessage?: string | number | VNodeChild | VNode | null | (() => VNodeChild | VNode);
121
- /**
122
- * 帮助气泡 - 图标
123
- * @description 'question' | 'warning' 自定义
124
- * @default `question`
125
- */
126
- helpMessageIcon?: 'question' | 'warning' | VNodeChild | VNode | (() => VNodeChild | VNode);
127
- /**
128
- * 帮助气泡 - 图标 - 样式
129
- */
130
- helpMessageIconStyles?: CSSProperties;
131
- /**
132
- * 帮助气泡 - 扩展tooltip props
133
- */
134
- helpMessageTooltipProps?: TooltipProps;
135
80
  }
136
81
  /**
137
82
  * ApLadder Props 属性类型声明
@@ -153,22 +98,12 @@ export interface ApLadderProps {
153
98
  * @description 请使用`majorStyles`代替
154
99
  */
155
100
  majorColor?: string;
156
- /**
157
- * 自定义重要信息 style
158
- * @since v0.4.7 新增
159
- */
160
- majorStyles?: CSSProperties;
161
101
  /**
162
102
  * 自定义次要信息颜色
163
103
  * @deprecated 注意:v0.4.7版本之后就别用这个属性了 后面将不再支持
164
104
  * @description 请使用`minorStyles`代替
165
105
  */
166
106
  minorColor?: string;
167
- /**
168
- * 自定义次要信息 style
169
- * @since v0.4.7 新增
170
- */
171
- minorStyles?: CSSProperties;
172
107
  /**
173
108
  * 布局方式
174
109
  * - `vertical` 垂直布局
@@ -176,61 +111,16 @@ export interface ApLadderProps {
176
111
  * @default `vertical`
177
112
  */
178
113
  layout?: 'vertical' | 'horizontal';
179
- /**
180
- * 是否展示气泡
181
- * @description 默认展示
182
- */
183
- tooltip?: boolean;
184
114
  /**
185
115
  * 健值对 - 数组展示
186
116
  */
187
117
  labelValues?: Array<ApLadderLabelValue>;
188
118
  /**
189
119
  * label 标签的文本对齐方式 仅支持健值对(labelValues)类型
190
- * @default `right`
120
+ * @default `left`
191
121
  * @since v0.4.7 新增
192
122
  */
193
123
  labelAlign?: 'left' | 'right';
194
- /**
195
- * 健值对 - label样式
196
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
197
- * @since v0.4.7 新增
198
- */
199
- labelStyles?: CSSProperties;
200
- /**
201
- * 健值对 - value样式
202
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
203
- * @since v0.4.7 新增
204
- */
205
- valueStyles?: CSSProperties;
206
- /**
207
- * 健值对 - link样式
208
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
209
- * @since v0.4.7 新增
210
- */
211
- linkStyles?: CSSProperties;
212
- /**
213
- * 健值对 - unit样式
214
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
215
- * @since v0.4.7 新增
216
- */
217
- unitStyles?: CSSProperties;
218
- /**
219
- * 扩展 Tooltip
220
- */
221
- tooltipProps?: TooltipNeedProps;
222
- /**
223
- * Tooltip - Label style
224
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
225
- * @since v0.4.7 新增
226
- */
227
- tooltipLabelStyles?: CSSProperties;
228
- /**
229
- * Tooltip - Value style
230
- * @description `ApLadderLabelValue` 里面自定义样式会覆盖
231
- * @since v0.4.7 新增
232
- */
233
- tooltipValueStyles?: CSSProperties;
234
124
  }
235
125
  /**
236
126
  * ApLadder Slots 类型声明
@@ -1,2 +1,7 @@
1
+ import { ConvertValueOptions } from './interface';
2
+ import { VNode, RendererNode, RendererElement } from 'vue';
1
3
  export declare const isNull: (value: any) => boolean;
2
4
  export declare const createMemoizeKey: (value: any, options?: any) => string;
5
+ export declare const convertValue: (value: string | number | (() => VNode) | VNode | null | undefined, options?: ConvertValueOptions) => string | number | VNode< RendererNode, RendererElement, {
6
+ [key: string]: any;
7
+ }> | (() => VNode) | null | undefined;
@@ -1,5 +1,40 @@
1
- const e = (r) => r == null || typeof r == "string" && r.trim() === "", n = (r, t = {}) => typeof r == "string" || typeof r == "number" ? String(r) + JSON.stringify(t) : "complex-value";
1
+ import { locales as n } from "./interface.mjs";
2
+ const o = (r) => r == null || typeof r == "string" && r.trim() === "", u = (r, e = {}) => typeof r == "string" || typeof r == "number" ? String(r) + JSON.stringify(e) : "complex-value", y = (r, e = {
3
+ rawValue: !0,
4
+ precision: 2,
5
+ thousand: !0,
6
+ thousandSeparator: ",",
7
+ currency: "CNY",
8
+ percent: !1
9
+ }) => {
10
+ if (Object.prototype.toString.call(r) === "[object Null]" || Object.prototype.toString.call(r) === "[object Undefined]" || Object.prototype.toString.call(r) === "[object Object]" || Object.prototype.toString.call(r) === "[object Function]")
11
+ return "--";
12
+ if (e.rawValue)
13
+ return r;
14
+ if (typeof r == "number") {
15
+ if (e.percent)
16
+ return `${r.toFixed(e.precision)}%`;
17
+ if (e.currency)
18
+ return r.toLocaleString(
19
+ n[e.currency ? e.currency : "CNY"],
20
+ {
21
+ style: "currency",
22
+ currency: e.currency ? e.currency : "CNY"
23
+ }
24
+ );
25
+ if (e.thousand) {
26
+ const [t, c] = r.toFixed(e.precision ? e.precision : 2).split(".");
27
+ return `${t.replace(
28
+ /(\d)(?=(\d{3})+(?!\d))/g,
29
+ `$1${e.thousandSeparator ? e.thousandSeparator : ","}`
30
+ )}.${c}`;
31
+ }
32
+ return r.toFixed(e.precision ? e.precision : 2);
33
+ }
34
+ return r;
35
+ };
2
36
  export {
3
- n as createMemoizeKey,
4
- e as isNull
37
+ y as convertValue,
38
+ u as createMemoizeKey,
39
+ o as isNull
5
40
  };
@@ -0,0 +1,46 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { ApProductInfoProps } from './interface';
3
+ declare const _default: DefineComponent<ExtractPropTypes<{
4
+ imgSrc: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ title: {
9
+ type: StringConstructor;
10
+ };
11
+ asku: {
12
+ type: StringConstructor;
13
+ };
14
+ asin: {
15
+ type: PropType< ApProductInfoProps["asin"]>;
16
+ };
17
+ msku: {
18
+ type: StringConstructor;
19
+ };
20
+ onTitleClick: {
21
+ type: PropType< ApProductInfoProps["onTitleClick"]>;
22
+ };
23
+ }>, void, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
24
+ imgSrc: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ title: {
29
+ type: StringConstructor;
30
+ };
31
+ asku: {
32
+ type: StringConstructor;
33
+ };
34
+ asin: {
35
+ type: PropType< ApProductInfoProps["asin"]>;
36
+ };
37
+ msku: {
38
+ type: StringConstructor;
39
+ };
40
+ onTitleClick: {
41
+ type: PropType< ApProductInfoProps["onTitleClick"]>;
42
+ };
43
+ }>> & Readonly<{}>, {
44
+ imgSrc: string;
45
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
46
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { PropType } from 'vue';
2
+ import { ApProductInfoProps as _ApProductInfoProps } from './interface';
3
+ export declare const ApAttachmentProps: () => {
4
+ imgSrc: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ title: {
9
+ type: StringConstructor;
10
+ };
11
+ asku: {
12
+ type: StringConstructor;
13
+ };
14
+ asin: {
15
+ type: PropType<_ApProductInfoProps["asin"]>;
16
+ };
17
+ msku: {
18
+ type: StringConstructor;
19
+ };
20
+ onTitleClick: {
21
+ type: PropType<_ApProductInfoProps["onTitleClick"]>;
22
+ };
23
+ };
@@ -0,0 +1 @@
1
+ export * from './interface';
@@ -0,0 +1,11 @@
1
+ export interface ApProductInfoProps {
2
+ imgSrc?: string;
3
+ title?: string;
4
+ asku?: string;
5
+ asin?: {
6
+ value: string;
7
+ href: string;
8
+ };
9
+ msku?: string;
10
+ onTitleClick?: () => void;
11
+ }
@@ -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, createElementBlock as p, openBlock as m, normalizeClass as a, unref as t, createVNode as u, createElementVNode as s, Transition as W, withCtx as v, withDirectives as g, toDisplayString as E, createTextVNode as $, Fragment as z, renderList as R, renderSlot as x, vShow as N, createCommentVNode as j } from "vue";
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 m(), p("div", {
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
- (m(!0), p(z, null, R(U.value, (l) => g((m(), p("div", {
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 ? (m(), p("div", {
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, createElementBlock as d, createCommentVNode as i, openBlock as m, normalizeStyle as r, normalizeClass as s, unref as t, createTextVNode as f, createElementVNode as y, toDisplayString as g } from "vue";
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 ? (m(), d("div", {
23
+ return (S, _) => e.show ? (d(), i("div", {
24
24
  key: 0,
25
- class: s([t(c)()]),
26
- style: r(n.value)
25
+ class: r([t(c)()]),
26
+ style: s(n.value)
27
27
  }, [
28
- f(g(e.text) + " ", 1),
28
+ m(f(e.text) + " ", 1),
29
29
  y("div", {
30
- class: s([t(o)("bg"), t(o)("primary")]),
31
- style: r(p.value)
30
+ class: r([t(o)("bg"), t(o)("primary")]),
31
+ style: s(p.value)
32
32
  }, null, 6)
33
- ], 6)) : i("", !0);
33
+ ], 6)) : g("", !0);
34
34
  }
35
35
  });
36
36
  export {