@aplus-frontend/ui 0.1.24 → 0.1.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 (86) hide show
  1. package/es/index.mjs +58 -55
  2. package/es/src/ap-form/search-form/index.vue.mjs +1 -0
  3. package/es/src/ap-layout/ApInfoLayout.vue.d.ts +81 -0
  4. package/es/src/ap-layout/ApInfoLayout.vue.mjs +41 -0
  5. package/es/src/ap-layout/ApInfoLayout.vue2.mjs +4 -0
  6. package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +48 -0
  7. package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs +4 -0
  8. package/es/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +42 -0
  9. package/es/src/ap-layout/{ap-info-layout → ap-info-layout-aplus}/ap-info-layout.vue.d.ts +3 -3
  10. package/es/src/ap-layout/ap-info-layout-aplus/ap-info-layout.vue.mjs +4 -0
  11. package/es/src/ap-layout/index.d.ts +2 -1
  12. package/es/src/ap-layout/index.mjs +2 -1
  13. package/es/src/ap-layout/interface.d.ts +8 -2
  14. package/es/src/ap-layout/interface.mjs +1 -0
  15. package/es/src/ap-layout/style/ap-info-layout.css +17 -0
  16. package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +37 -27
  17. package/es/src/business/ap-input-radio/interface.d.ts +4 -3
  18. package/es/src/business/ap-ladder/ApLadder.vue.d.ts +159 -0
  19. package/es/src/business/ap-ladder/ApLadder.vue.mjs +4 -0
  20. package/es/src/business/ap-ladder/ApLadder.vue2.mjs +146 -0
  21. package/es/src/business/ap-ladder/interface.d.ts +92 -0
  22. package/es/src/business/ap-ladder/style.css +56 -0
  23. package/es/src/business/hooks/index.d.ts +1 -0
  24. package/es/src/business/hooks/index.mjs +3 -1
  25. package/es/src/business/hooks/usePageListApTable.d.ts +19 -2
  26. package/es/src/business/hooks/usePageListApTable.mjs +24 -23
  27. package/es/src/business/hooks/useTableRefresh.d.ts +18 -0
  28. package/es/src/business/hooks/useTableRefresh.mjs +16 -0
  29. package/es/src/business/index.d.ts +718 -8
  30. package/es/src/business/index.mjs +25 -22
  31. package/es/src/components.d.ts +1 -0
  32. package/es/src/index.mjs +206 -203
  33. package/es/src/theme/antd-global-overwrite/aplus/index.css +8 -0
  34. package/es/src/theme/antd-global-overwrite/aplus/table.css +8 -0
  35. package/es/src/theme/ap-ladder/ap-ladder.css +56 -0
  36. package/es/src/theme/ap-layout/ap-info-layout.css +17 -0
  37. package/lib/index.js +1 -1
  38. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  39. package/lib/src/ap-layout/ApInfoLayout.vue.d.ts +81 -0
  40. package/lib/src/ap-layout/ApInfoLayout.vue.js +1 -0
  41. package/lib/src/ap-layout/ApInfoLayout.vue2.js +1 -0
  42. package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +48 -0
  43. package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.js +1 -0
  44. package/lib/src/ap-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -0
  45. package/lib/src/ap-layout/{ap-info-layout → ap-info-layout-aplus}/ap-info-layout.vue.d.ts +3 -3
  46. package/lib/src/ap-layout/{ap-info-layout/ap-info-layout.vue2.js → ap-info-layout-aplus/ap-info-layout.vue.js} +1 -1
  47. package/lib/src/ap-layout/index.d.ts +2 -1
  48. package/lib/src/ap-layout/index.js +1 -1
  49. package/lib/src/ap-layout/interface.d.ts +8 -2
  50. package/lib/src/ap-layout/interface.js +1 -0
  51. package/lib/src/ap-layout/style/ap-info-layout.css +17 -0
  52. package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
  53. package/lib/src/business/ap-input-radio/interface.d.ts +4 -3
  54. package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +159 -0
  55. package/lib/src/business/ap-ladder/ApLadder.vue.js +1 -0
  56. package/lib/src/business/ap-ladder/ApLadder.vue2.js +1 -0
  57. package/lib/src/business/ap-ladder/interface.d.ts +92 -0
  58. package/lib/src/business/ap-ladder/style.css +56 -0
  59. package/lib/src/business/hooks/index.d.ts +1 -0
  60. package/lib/src/business/hooks/index.js +1 -1
  61. package/lib/src/business/hooks/usePageListApTable.d.ts +19 -2
  62. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  63. package/lib/src/business/hooks/useTableRefresh.d.ts +18 -0
  64. package/lib/src/business/hooks/useTableRefresh.js +1 -0
  65. package/lib/src/business/index.d.ts +718 -8
  66. package/lib/src/business/index.js +1 -1
  67. package/lib/src/components.d.ts +1 -0
  68. package/lib/src/index.js +1 -1
  69. package/lib/src/theme/antd-global-overwrite/aplus/index.css +8 -0
  70. package/lib/src/theme/antd-global-overwrite/aplus/table.css +8 -0
  71. package/lib/src/theme/ap-ladder/ap-ladder.css +56 -0
  72. package/lib/src/theme/ap-layout/ap-info-layout.css +17 -0
  73. package/package.json +1 -1
  74. package/es/src/ap-layout/ap-info-layout/ap-info-layout.vue2.mjs +0 -4
  75. /package/es/src/ap-layout/{ap-info-layout/ap-info-layout.vue.mjs → ap-info-layout-aplus/ap-info-layout.vue2.mjs} +0 -0
  76. /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.d.ts +0 -0
  77. /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.mjs +0 -0
  78. /package/es/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue2.mjs +0 -0
  79. /package/es/src/business/{expandAlert → ap-expand-alert}/interface.d.ts +0 -0
  80. /package/es/src/business/{expandAlert → ap-expand-alert}/style.css +0 -0
  81. /package/lib/src/ap-layout/{ap-info-layout/ap-info-layout.vue.js → ap-info-layout-aplus/ap-info-layout.vue2.js} +0 -0
  82. /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.d.ts +0 -0
  83. /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue.js +0 -0
  84. /package/lib/src/business/{expandAlert → ap-expand-alert}/ApExpandAlert.vue2.js +0 -0
  85. /package/lib/src/business/{expandAlert → ap-expand-alert}/interface.d.ts +0 -0
  86. /package/lib/src/business/{expandAlert → ap-expand-alert}/style.css +0 -0
package/es/index.mjs CHANGED
@@ -5,8 +5,8 @@ import { configProviderProps as x } from "./src/config-provider/config-provider-
5
5
  import { configProviderContextKey as u, tableDefaultConfig as n } from "./src/config-provider/constants.mjs";
6
6
  import { keysOf as c, provideGlobalConfig as T, useGlobalConfig as F } from "./src/config-provider/hooks/use-global-config.mjs";
7
7
  import { buildLocaleContext as b, buildTranslator as S, localeContextKey as I, translate as g, useLocale as P } from "./src/config-provider/hooks/use-locale.mjs";
8
- import { defaultNamespace as h, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as G } from "./src/config-provider/hooks/use-namespace.mjs";
9
- import { ConfigProvider as B, globalConfigCached as w } from "./src/config-provider/config-provider.mjs";
8
+ import { defaultNamespace as D, namespaceContextKey as M, useGetDerivedNamespace as R, useNamespace as G } from "./src/config-provider/hooks/use-namespace.mjs";
9
+ import { ConfigProvider as B, globalConfigCached as L } from "./src/config-provider/config-provider.mjs";
10
10
  import { APConfigProvider as k } from "./src/config-provider/index.mjs";
11
11
  import { Scrollbar as y } from "./src/scroll-bar/index.mjs";
12
12
  import { CollapseContainer as K, ScrollContainer as X } from "./src/container/index.mjs";
@@ -22,10 +22,10 @@ import { useComponentRegister as Te } from "./src/pro-form/hooks/use-component-r
22
22
  import { useForm as Ce } from "./src/pro-form/hooks/use-form.mjs";
23
23
  import { isComponentFormSchema as Se, isSlotFormSchema as Ie } from "./src/pro-form/types/form.mjs";
24
24
  import { Field as Pe } from "./src/pro-form/index.mjs";
25
- import { default as he } from "./src/pro-form/components/api-cascader.vue.mjs";
25
+ import { default as De } from "./src/pro-form/components/api-cascader.vue.mjs";
26
26
  import { default as Re } from "./src/pro-form/components/api-radio-group.vue.mjs";
27
27
  import { default as ve } from "./src/pro-form/components/api-select.vue.mjs";
28
- import { default as we } from "./src/pro-form/components/api-transfer.vue.mjs";
28
+ import { default as Le } from "./src/pro-form/components/api-transfer.vue.mjs";
29
29
  import { default as ke } from "./src/pro-form/components/api-tree.vue.mjs";
30
30
  import { default as ye } from "./src/pro-form/components/radio-button-group.vue.mjs";
31
31
  import { default as Ke } from "./src/pro-form/pro-form.vue.mjs";
@@ -47,10 +47,10 @@ import { default as Fo } from "./src/pro-table/pro-table.vue.mjs";
47
47
  import { default as bo } from "./src/pro-table/components/table-action.vue.mjs";
48
48
  import { default as Io } from "./src/pro-table/components/edit-table-header-icon.vue.mjs";
49
49
  import { default as Po } from "./src/pro-table/components/table-image.vue.mjs";
50
- import { useTable as ho } from "./src/pro-table/hooks/use-table.mjs";
50
+ import { useTable as Do } from "./src/pro-table/hooks/use-table.mjs";
51
51
  import { ApFormItemText as Ro } from "./src/ap-form/items/text/index.mjs";
52
52
  import { default as vo } from "./src/ap-form/items/text-area/index.vue.mjs";
53
- import { default as wo } from "./src/ap-form/items/number/index.vue.mjs";
53
+ import { default as Lo } from "./src/ap-form/items/number/index.vue.mjs";
54
54
  import { default as ko } from "./src/ap-form/items/date/index.vue.mjs";
55
55
  import { default as yo } from "./src/ap-form/items/date-range/index.vue.mjs";
56
56
  import { default as Ko } from "./src/ap-form/items/radio/index.vue.mjs";
@@ -74,10 +74,10 @@ import { default as Fr } from "./src/ap-field/switch/index.vue.mjs";
74
74
  import { default as br } from "./src/ap-field/text-area/index.vue.mjs";
75
75
  import { default as Ir } from "./src/ap-field/date-range/index.vue.mjs";
76
76
  import { default as Pr } from "./src/ap-field/select/index.vue.mjs";
77
- import { default as hr } from "./src/ap-field/text/password.vue.mjs";
77
+ import { default as Dr } from "./src/ap-field/text/password.vue.mjs";
78
78
  import { default as Rr } from "./src/ap-field/slider/index.vue.mjs";
79
79
  import { default as vr } from "./src/ap-field/segmented/index.vue.mjs";
80
- import { default as wr } from "./src/ap-field/rate/index.vue.mjs";
80
+ import { default as Lr } from "./src/ap-field/rate/index.vue.mjs";
81
81
  import { adminToken as kr, aplusToken as Nr } from "./src/design-token/index.mjs";
82
82
  import { ApActionItem as Er } from "./src/ap-action/index.mjs";
83
83
  import { default as Xr } from "./src/ap-action/item-modal/index.vue.mjs";
@@ -93,28 +93,29 @@ import { createWorkOrderModal as tt } from "./src/work-order-modal/createWorkOrd
93
93
  import { default as pt } from "./src/work-order-modal/work-order-modal.vue.mjs";
94
94
  import { default as mt } from "./src/ap-tag/ap-tag.vue.mjs";
95
95
  import { default as st } from "./src/ap-tag/ap-tag-group.vue.mjs";
96
- import { default as xt } from "./src/ap-layout/ap-info-layout/ap-info-layout.vue.mjs";
96
+ import { default as xt } from "./src/ap-layout/ApInfoLayout.vue.mjs";
97
97
  import { NeedNameKeyDefault as ut } from "./src/ap-upload/apUploadTypes.mjs";
98
98
  import { default as At } from "./src/ap-upload/apUpload.vue.mjs";
99
99
  import { ApDownLoadNeedNameKeyDefault as Tt } from "./src/ap-download/interface.mjs";
100
100
  import { default as Ct } from "./src/ap-download/ap-download.vue.mjs";
101
101
  import { CheckCard as St } from "./src/check-card/index.mjs";
102
102
  import { default as gt } from "./src/check-card/group.vue.mjs";
103
- import { ApModal as Dt } from "./src/ap-modal/index.mjs";
103
+ import { ApModal as ht } from "./src/ap-modal/index.mjs";
104
104
  import { default as Mt } from "./src/ap-list/index.vue.mjs";
105
105
  import { usePageListApTable as Gt } from "./src/business/hooks/usePageListApTable.mjs";
106
- import { default as Bt } from "./src/business/ap-table-modal/index.mjs";
107
- import { useTableModal as Lt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
108
- import { useTableSelectModal as Nt } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
109
- import { ApAttachment as Et, ApBatchAction as Kt, ApBatchActionGroup as Xt, ApExpandAlert as Yt, ApExportGroup as Ht, ApImage as Ot, ApInputRadio as Wt, ApLabel as zt, ApLabelGroup as Ut, ApSelectLayout as Vt, ApStatus as $t, ApStatusGroup as jt, ApTitle as qt } from "./src/business/index.mjs";
110
- import { ApTransformDataHelper as Qt } from "./src/utils/ap-trans-data/index.mjs";
111
- import { useTablePaging as _t } from "./src/ap-table/hooks/use-table-paging.mjs";
112
- import { default as oa } from "./src/ap-table/ap-table.vue.mjs";
113
- import { default as ta } from "./src/editable-table/index.vue.mjs";
114
- import { default as pa } from "./src/editable-table/form-item.vue.mjs";
115
- import { default as ma } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
116
- import { useMessage as sa } from "./src/hooks/useMessage.mjs";
117
- import { useControllableValue as xa } from "./src/hooks/useControllableValue.mjs";
106
+ import { useTableRefresh as Bt } from "./src/business/hooks/useTableRefresh.mjs";
107
+ import { default as wt } from "./src/business/ap-table-modal/index.mjs";
108
+ import { useTableModal as Nt } from "./src/business/ap-table-modal/hooks/use-table-modal.mjs";
109
+ import { useTableSelectModal as Et } from "./src/business/ap-table-modal/hooks/use-table-select-modal.mjs";
110
+ import { ApAttachment as Xt, ApBatchAction as Yt, ApBatchActionGroup as Ht, ApExpandAlert as Ot, ApExportGroup as Wt, ApImage as zt, ApInputRadio as Ut, ApLabel as Vt, ApLabelGroup as $t, ApLadder as jt, ApSelectLayout as qt, ApStatus as Jt, ApStatusGroup as Qt, ApTitle as Zt } from "./src/business/index.mjs";
111
+ import { ApTransformDataHelper as ea } from "./src/utils/ap-trans-data/index.mjs";
112
+ import { useTablePaging as ra } from "./src/ap-table/hooks/use-table-paging.mjs";
113
+ import { default as aa } from "./src/ap-table/ap-table.vue.mjs";
114
+ import { default as fa } from "./src/editable-table/index.vue.mjs";
115
+ import { default as la } from "./src/editable-table/form-item.vue.mjs";
116
+ import { default as da } from "./src/ap-descriptions/ap-descriptions.vue.mjs";
117
+ import { useMessage as ia } from "./src/hooks/useMessage.mjs";
118
+ import { useControllableValue as na } from "./src/hooks/useControllableValue.mjs";
118
119
  const p = {
119
120
  install: (r) => {
120
121
  for (const t in o) {
@@ -130,24 +131,24 @@ export {
130
131
  Wr as ApActionItemDropdown,
131
132
  Xr as ApActionItemModal,
132
133
  Hr as ApActionItemPopconfirm,
133
- Et as ApAttachment,
134
- Kt as ApBatchAction,
135
- Xt as ApBatchActionGroup,
134
+ Xt as ApAttachment,
135
+ Yt as ApBatchAction,
136
+ Ht as ApBatchActionGroup,
136
137
  Qr as ApCustomColumn,
137
138
  _r as ApCustomSelect,
138
- ma as ApDescriptions,
139
+ da as ApDescriptions,
139
140
  Tt as ApDownLoadNeedNameKeyDefault,
140
141
  Ct as ApDownload,
141
- Yt as ApExpandAlert,
142
- Ht as ApExportGroup,
142
+ Ot as ApExpandAlert,
143
+ Wt as ApExportGroup,
143
144
  fr as ApField,
144
145
  dr as ApFieldCheckbox,
145
146
  ir as ApFieldDate,
146
147
  Ir as ApFieldDateRange,
147
148
  nr as ApFieldNumber,
148
- hr as ApFieldPassword,
149
+ Dr as ApFieldPassword,
149
150
  cr as ApFieldRadio,
150
- wr as ApFieldRate,
151
+ Lr as ApFieldRate,
151
152
  vr as ApFieldSegmented,
152
153
  Pr as ApFieldSelect,
153
154
  Rr as ApFieldSlider,
@@ -160,7 +161,7 @@ export {
160
161
  ko as ApFormItemDate,
161
162
  yo as ApFormItemDateRange,
162
163
  Zo as ApFormItemGroup,
163
- wo as ApFormItemNumber,
164
+ Lo as ApFormItemNumber,
164
165
  Ko as ApFormItemRadio,
165
166
  Yo as ApFormItemSelect,
166
167
  Oo as ApFormItemSwitch,
@@ -170,27 +171,28 @@ export {
170
171
  er as ApFormList,
171
172
  ar as ApFormModalForm,
172
173
  rr as ApFormSearchForm,
173
- Ot as ApImage,
174
+ zt as ApImage,
174
175
  xt as ApInfoLayout,
175
- Wt as ApInputRadio,
176
- zt as ApLabel,
177
- Ut as ApLabelGroup,
176
+ Ut as ApInputRadio,
177
+ Vt as ApLabel,
178
+ $t as ApLabelGroup,
179
+ jt as ApLadder,
178
180
  Mt as ApList,
179
- Dt as ApModal,
180
- Vt as ApSelectLayout,
181
- $t as ApStatus,
182
- jt as ApStatusGroup,
183
- oa as ApTable,
184
- Bt as ApTableModal,
181
+ ht as ApModal,
182
+ qt as ApSelectLayout,
183
+ Jt as ApStatus,
184
+ Qt as ApStatusGroup,
185
+ aa as ApTable,
186
+ wt as ApTableModal,
185
187
  mt as ApTag,
186
188
  st as ApTagGroup,
187
- qt as ApTitle,
188
- Qt as ApTransformDataHelper,
189
+ Zt as ApTitle,
190
+ ea as ApTransformDataHelper,
189
191
  At as ApUpload,
190
- he as ApiCascader,
192
+ De as ApiCascader,
191
193
  Re as ApiRadioGroup,
192
194
  ve as ApiSelect,
193
- we as ApiTransfer,
195
+ Le as ApiTransfer,
194
196
  ke as ApiTree,
195
197
  Ye as ApiTreeSelect,
196
198
  Je as BaseButton,
@@ -211,8 +213,8 @@ export {
211
213
  ot as DictCode,
212
214
  co as Dropdown,
213
215
  Io as EditTableHeaderIcon,
214
- ta as EditableTable,
215
- pa as EditableTableFormItem,
216
+ fa as EditableTable,
217
+ la as EditableTableFormItem,
216
218
  _ as ExpandTransition,
217
219
  ee as ExpandXTransition,
218
220
  oe as FadeTransition,
@@ -253,10 +255,10 @@ export {
253
255
  no as createPrompt,
254
256
  tt as createWorkOrderModal,
255
257
  p as default,
256
- h as defaultNamespace,
258
+ D as defaultNamespace,
257
259
  U as en,
258
260
  $r as generateTableList,
259
- w as globalConfigCached,
261
+ L as globalConfigCached,
260
262
  Se as isComponentFormSchema,
261
263
  Ie as isSlotFormSchema,
262
264
  c as keysOf,
@@ -267,21 +269,22 @@ export {
267
269
  g as translate,
268
270
  qr as useCacheColumnSetting,
269
271
  Te as useComponentRegister,
270
- xa as useControllableValue,
272
+ na as useControllableValue,
271
273
  ue as useDescription,
272
274
  Ce as useForm,
273
275
  R as useGetDerivedNamespace,
274
276
  F as useGlobalConfig,
275
277
  P as useLocale,
276
- sa as useMessage,
278
+ ia as useMessage,
277
279
  ro as useModal,
278
280
  eo as useModalContext,
279
281
  to as useModalInner,
280
282
  G as useNamespace,
281
283
  Gt as usePageListApTable,
282
- ho as useTable,
283
- Lt as useTableModal,
284
- _t as useTablePaging,
285
- Nt as useTableSelectModal,
284
+ Do as useTable,
285
+ Nt as useTableModal,
286
+ ra as useTablePaging,
287
+ Bt as useTableRefresh,
288
+ Et as useTableSelectModal,
286
289
  W as zhCn
287
290
  };
@@ -148,6 +148,7 @@ const i = 24, ze = /* @__PURE__ */ le({
148
148
  const x = c.props, O = x.span || r;
149
149
  if (P += O, !a.forceExpand && o(u) && P > I) {
150
150
  t.push(ie(c, {
151
+ class: "ant-form-item-hidden",
151
152
  hidden: !0
152
153
  }));
153
154
  return;
@@ -0,0 +1,81 @@
1
+ import { ApInfoLayoutPropsMixed } from './interface';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
+ declare function __VLS_template(): {
4
+ slots: Readonly<{
5
+ [key: string]: any;
6
+ /**
7
+ * 默认插槽
8
+ */
9
+ default(): any;
10
+ /**
11
+ * 整个 header 区域
12
+ */
13
+ header(): any;
14
+ /**
15
+ * 仅Aplus- header标题,位于左侧
16
+ */
17
+ title(): any;
18
+ /**
19
+ * 仅Aplus- 操作区域
20
+ */
21
+ actions(): any;
22
+ /**
23
+ *
24
+ * 仅Aplus- header下方的分割线
25
+ *
26
+ */
27
+ divider(): any;
28
+ /**
29
+ * content 内容区
30
+ */
31
+ content(): any;
32
+ }> & {
33
+ [key: string]: any;
34
+ /**
35
+ * 默认插槽
36
+ */
37
+ default(): any;
38
+ /**
39
+ * 整个 header 区域
40
+ */
41
+ header(): any;
42
+ /**
43
+ * 仅Aplus- header标题,位于左侧
44
+ */
45
+ title(): any;
46
+ /**
47
+ * 仅Aplus- 操作区域
48
+ */
49
+ actions(): any;
50
+ /**
51
+ *
52
+ * 仅Aplus- header下方的分割线
53
+ *
54
+ */
55
+ divider(): any;
56
+ /**
57
+ * content 内容区
58
+ */
59
+ content(): any;
60
+ };
61
+ refs: {};
62
+ attrs: Partial<{}>;
63
+ };
64
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
65
+ declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<ApInfoLayoutPropsMixed>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<ApInfoLayoutPropsMixed>>>, {}, {}>;
66
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
67
+ export default _default;
68
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
69
+ type __VLS_TypePropsToOption<T> = {
70
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
71
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
72
+ } : {
73
+ type: PropType<T[K]>;
74
+ required: true;
75
+ };
76
+ };
77
+ type __VLS_WithTemplateSlots<T, S> = T & {
78
+ new (): {
79
+ $slots: S;
80
+ };
81
+ };
@@ -0,0 +1,41 @@
1
+ import { defineComponent as a, computed as n, openBlock as p, createBlock as s, resolveDynamicComponent as i, normalizeProps as l, guardReactiveProps as m, createSlots as c, renderList as u, withCtx as d, renderSlot as f } from "vue";
2
+ import "./ap-info-layout-aplus/ap-info-layout.vue.mjs";
3
+ import "./ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs";
4
+ import "../config-provider/index.mjs";
5
+ import { useGlobalConfig as _ } from "../config-provider/hooks/use-global-config.mjs";
6
+ import y from "./ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs";
7
+ import b from "./ap-info-layout-aplus/ap-info-layout.vue2.mjs";
8
+ const D = /* @__PURE__ */ a({
9
+ __name: "ApInfoLayout",
10
+ props: {
11
+ headerStyle: {},
12
+ bordered: { type: Boolean },
13
+ toEl: {},
14
+ telDisabled: { type: Boolean }
15
+ },
16
+ setup($) {
17
+ const r = _("uiMode", "aplus"), t = n(() => {
18
+ let e;
19
+ switch (r.value) {
20
+ case "aplus":
21
+ e = b;
22
+ break;
23
+ case "admin":
24
+ e = y;
25
+ break;
26
+ }
27
+ return e;
28
+ });
29
+ return (e, h) => (p(), s(i(t.value), l(m(e.$props)), c({ _: 2 }, [
30
+ u(e.$slots, (k, o) => ({
31
+ name: o,
32
+ fn: d(() => [
33
+ f(e.$slots, o)
34
+ ])
35
+ }))
36
+ ]), 1040));
37
+ }
38
+ });
39
+ export {
40
+ D as default
41
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ApInfoLayout.vue.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,48 @@
1
+ import { CSSProperties, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
+ import { ApInfoLayoutAdminProps } from '../interface';
3
+ declare function __VLS_template(): {
4
+ slots: {
5
+ header?(_: {}): any;
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {
9
+ containerRef: HTMLDivElement;
10
+ headerRef: HTMLDivElement;
11
+ };
12
+ attrs: Partial<{}>;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInfoLayoutAdminProps>, {
16
+ bordered: boolean;
17
+ headerStyle: () => CSSProperties;
18
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInfoLayoutAdminProps>, {
19
+ bordered: boolean;
20
+ headerStyle: () => CSSProperties;
21
+ }>>>, {
22
+ bordered: boolean;
23
+ headerStyle: CSSProperties;
24
+ }, {}>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
27
+ type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
+ type __VLS_TypePropsToOption<T> = {
34
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
35
+ type: PropType<__VLS_NonUndefinedable<T[K]>>;
36
+ } : {
37
+ type: PropType<T[K]>;
38
+ required: true;
39
+ };
40
+ };
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
46
+ type __VLS_PrettifyLocal<T> = {
47
+ [K in keyof T]: T[K];
48
+ } & {};
@@ -0,0 +1,4 @@
1
+ import f from "./ApInfoLayoutAdmin.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as u, ref as t, openBlock as p, createElementBlock as y, normalizeClass as s, unref as e, createElementVNode as n, normalizeStyle as h, renderSlot as d } from "vue";
2
+ import "../../config-provider/index.mjs";
3
+ import "../style/ap-info-layout.css";
4
+ import { useNamespace as v } from "../../config-provider/hooks/use-namespace.mjs";
5
+ import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
6
+ const $ = /* @__PURE__ */ u({
7
+ __name: "ApInfoLayoutAdmin",
8
+ props: {
9
+ headerStyle: { default: () => ({}) },
10
+ bordered: { type: Boolean, default: !1 }
11
+ },
12
+ setup(b) {
13
+ const l = t(), a = t(), i = () => {
14
+ l.value && a.value && (l.value.scrollTop > 0 ? a.value.classList.add(o("header-shadow")) : a.value.classList.remove(o("header-shadow")));
15
+ }, { b: f, e: o, m: c } = v("ap-info-layout-admin"), m = _("uiMode", "admin");
16
+ return (r, k) => (p(), y("div", {
17
+ class: s([e(f)(), `${e(c)(e(m))}`]),
18
+ onScroll: i,
19
+ ref_key: "containerRef",
20
+ ref: l
21
+ }, [
22
+ n("div", {
23
+ class: s([e(o)("sticky_box"), r.bordered ? e(o)("sticky_box-bordered") : ""]),
24
+ style: h({
25
+ ...r.headerStyle
26
+ }),
27
+ ref_key: "headerRef",
28
+ ref: a
29
+ }, [
30
+ d(r.$slots, "header")
31
+ ], 6),
32
+ n("div", {
33
+ class: s(e(o)("default_content"))
34
+ }, [
35
+ d(r.$slots, "default")
36
+ ], 2)
37
+ ], 34));
38
+ }
39
+ });
40
+ export {
41
+ $ as default
42
+ };
@@ -1,4 +1,4 @@
1
- import { APInfoLayoutProps } from '../interface';
1
+ import { ApInfoLayoutAplusProps } from '../interface';
2
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
3
3
  declare function __VLS_template(): {
4
4
  slots: {
@@ -12,12 +12,12 @@ declare function __VLS_template(): {
12
12
  attrs: Partial<{}>;
13
13
  };
14
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
- declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<APInfoLayoutProps>, {
15
+ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInfoLayoutAplusProps>, {
16
16
  toEl: string;
17
17
  telDisabled: boolean;
18
18
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
19
19
  "update:telDisabled": (...args: any[]) => void;
20
- }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<APInfoLayoutProps>, {
20
+ }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApInfoLayoutAplusProps>, {
21
21
  toEl: string;
22
22
  telDisabled: boolean;
23
23
  }>>> & {
@@ -0,0 +1,4 @@
1
+ import f from "./ap-info-layout.vue2.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -1,2 +1,3 @@
1
- import { default as ApInfoLayout } from './ap-info-layout/ap-info-layout.vue';
1
+ import { default as ApInfoLayout } from './ApInfoLayout.vue';
2
+ export * from './interface';
2
3
  export { ApInfoLayout };
@@ -1 +1,2 @@
1
- import "./ap-info-layout/ap-info-layout.vue2.mjs";
1
+ import "./ApInfoLayout.vue2.mjs";
2
+ import "./interface.mjs";
@@ -1,4 +1,10 @@
1
- export interface APInfoLayoutProps {
1
+ import { CSSProperties } from 'vue';
2
+ export type ApInfoLayoutAdminProps = {
3
+ headerStyle?: CSSProperties;
4
+ bordered?: boolean;
5
+ };
6
+ export type ApInfoLayoutAplusProps = {
2
7
  toEl?: string | HTMLElement;
3
8
  telDisabled?: boolean;
4
- }
9
+ };
10
+ export type ApInfoLayoutPropsMixed = ApInfoLayoutAdminProps & ApInfoLayoutAplusProps;
@@ -0,0 +1 @@
1
+
@@ -17,3 +17,20 @@
17
17
  .aplus-info-layout-contant {
18
18
  border-bottom-color: #fff;
19
19
  }
20
+ .aplus-ap-info-layout-admin {
21
+ margin: 16px;
22
+ height: calc(100% - 32px);
23
+ overflow: auto;
24
+ }
25
+ div.aplus-ap-info-layout-admin__header-shadow.aplus-ap-info-layout-admin__sticky_box {
26
+ box-shadow: 0 4px 6px 0 rgba(73, 107, 158, 0.1);
27
+ border-bottom: none;
28
+ }
29
+ .aplus-ap-info-layout-admin__sticky_box {
30
+ position: sticky;
31
+ top: 0;
32
+ z-index: 100;
33
+ }
34
+ .aplus-ap-info-layout-admin__sticky_box-bordered {
35
+ border-bottom: 1px solid #e9e9e9;
36
+ }
@@ -1,12 +1,11 @@
1
- import { defineComponent as g, openBlock as C, createElementBlock as h, normalizeClass as I, unref as t, createVNode as l, mergeProps as B } from "vue";
1
+ import { defineComponent as f, onMounted as g, openBlock as R, createElementBlock as V, normalizeClass as b, unref as t, createVNode as i, mergeProps as h } from "vue";
2
2
  import "../../config-provider/index.mjs";
3
- import { Form as R, InputNumber as b, RadioGroup as _ } from "ant-design-vue";
4
- import { omit as x } from "lodash-unified";
3
+ import { Form as I, InputNumber as B, RadioGroup as k } from "ant-design-vue";
4
+ import { omit as _ } from "lodash-unified";
5
5
  import "./style.css";
6
- import { useNamespace as y } from "../../config-provider/hooks/use-namespace.mjs";
7
- const G = /* @__PURE__ */ g({
6
+ import { useNamespace as x } from "../../config-provider/hooks/use-namespace.mjs";
7
+ const M = /* @__PURE__ */ f({
8
8
  name: "ApInputRadio",
9
- inheritAttrs: !1,
10
9
  __name: "ApInputRadio",
11
10
  props: {
12
11
  disabled: { type: Boolean },
@@ -28,38 +27,49 @@ const G = /* @__PURE__ */ g({
28
27
  onFocus: {},
29
28
  value: {},
30
29
  options: {},
31
- onInputRadioChange: {}
30
+ onInputRadioChange: {},
31
+ setRadioValCallback: {}
32
32
  },
33
33
  emits: ["update:value", "InputRadioChange"],
34
- setup(i, { emit: s }) {
35
- const m = R.useInjectFormItemContext(), e = i, { b: c, e: d } = y("ap-input-radio"), a = s, r = (o) => {
36
- let n = { ...e.value, ...o };
37
- a("update:value", n), a("InputRadioChange", n), m.onFieldChange();
34
+ setup(p, { emit: s }) {
35
+ const d = I.useInjectFormItemContext(), e = p, { b: m, e: c } = x("ap-input-radio"), u = s, n = (o) => {
36
+ let a = { ...e.value, ...o };
37
+ u("update:value", a), u("InputRadioChange", a), d.onFieldChange();
38
+ }, C = (o) => {
39
+ n({ inputVal: o });
38
40
  }, v = (o) => {
39
- r({ inputval: o });
40
- }, f = (o) => {
41
- r({ radioVal: o.target.value });
41
+ const a = o.target.value;
42
+ if (e.setRadioValCallback) {
43
+ let l = e.setRadioValCallback(a);
44
+ n({ inputVal: l, radioVal: a });
45
+ } else
46
+ n({ radioVal: a });
42
47
  };
43
- return (o, n) => {
44
- var u, p;
45
- return C(), h("div", {
46
- class: I([t(c)()])
48
+ return g(() => {
49
+ if (e.setRadioValCallback) {
50
+ let o = e.setRadioValCallback(e.value.radioVal);
51
+ n({ inputVal: o });
52
+ }
53
+ }), (o, a) => {
54
+ var l, r;
55
+ return R(), V("div", {
56
+ class: b([t(m)()])
47
57
  }, [
48
- l(t(b), B({
49
- class: t(d)("input-number")
50
- }, t(x)(e, ["value", "options"]), {
51
- value: e.value ? (u = e.value) == null ? void 0 : u.inputval : "",
52
- onChange: v
58
+ i(t(B), h({
59
+ class: t(c)("input-number")
60
+ }, t(_)(e, ["value", "options"]), {
61
+ value: e.value ? (l = e.value) == null ? void 0 : l.inputVal : "",
62
+ onChange: C
53
63
  }), null, 16, ["class", "value"]),
54
- l(t(_), {
55
- value: e.value ? (p = e.value) == null ? void 0 : p.radioVal : "",
64
+ i(t(k), {
65
+ value: e.value ? (r = e.value) == null ? void 0 : r.radioVal : "",
56
66
  options: e.options,
57
- onChange: f
67
+ onChange: v
58
68
  }, null, 8, ["value", "options"])
59
69
  ], 2);
60
70
  };
61
71
  }
62
72
  });
63
73
  export {
64
- G as default
74
+ M as default
65
75
  };
@@ -2,7 +2,7 @@ import { InputNumberProps } from 'ant-design-vue/es/input-number';
2
2
  type ApInputProps = Pick<InputNumberProps, 'disabled' | 'stringMode' | 'precision' | 'max' | 'min' | 'step' | 'bordered' | 'autofocus' | 'decimalSeparator' | 'controls' | 'formatter' | 'onInput' | 'onChange' | 'onPressEnter' | 'onStep' | 'onBlur' | 'onFocus'>;
3
3
  export type ApInputValType = {
4
4
  value: {
5
- inputval: string | number;
5
+ inputVal: string | number;
6
6
  radioVal: string | number;
7
7
  };
8
8
  };
@@ -12,9 +12,10 @@ export type ApInputRadioOptions = Array<{
12
12
  }>;
13
13
  export type ApInputRadioProps = ApInputProps & ApInputValType & {
14
14
  options: ApInputRadioOptions;
15
- onInputRadioChange: (value: {
16
- inputval: string | number;
15
+ onInputRadioChange?: (value: {
16
+ inputVal: string | number;
17
17
  radioVal: string | number;
18
18
  }) => void;
19
+ setRadioValCallback?: (radioVal: string | number) => string | number;
19
20
  };
20
21
  export {};