@aplus-frontend/ui 7.1.0 → 7.2.0

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 (63) hide show
  1. package/es/index.mjs +143 -147
  2. package/es/src/ag-grid/hooks/use-columns-def.mjs +20 -19
  3. package/es/src/ag-grid/interface.d.ts +4 -0
  4. package/es/src/ap-pro-card/components/title/index.vue.d.ts +3 -0
  5. package/es/src/ap-pro-card/components/title/index.vue2.mjs +18 -13
  6. package/es/src/ap-upload/apUpload.vue.d.ts +1 -1
  7. package/es/src/business/ap-image/ApImage.vue2.mjs +45 -42
  8. package/es/src/business/ap-image/interface.d.ts +2 -0
  9. package/es/src/business/ap-title/ApTitle.vue2.mjs +24 -21
  10. package/es/src/business/ap-title/interface.d.ts +2 -0
  11. package/es/src/business/ap-title/style/index.mjs +11 -11
  12. package/es/src/business/hooks/index.d.ts +0 -2
  13. package/es/src/business/hooks/index.mjs +5 -9
  14. package/es/src/business/hooks/usePageListApGrid.d.ts +1 -2
  15. package/es/src/business/hooks/usePageListApGrid.mjs +35 -44
  16. package/es/src/business/hooks/usePageListApTable.d.ts +1 -2
  17. package/es/src/business/hooks/usePageListApTable.mjs +46 -48
  18. package/es/src/config-provider/config-provider-props.d.ts +20 -3
  19. package/es/src/config-provider/config-provider-props.mjs +12 -0
  20. package/es/src/config-provider/config-provider.d.ts +33 -3
  21. package/es/src/config-provider/config-provider.mjs +35 -35
  22. package/es/src/config-provider/constants.d.ts +1 -0
  23. package/es/src/config-provider/hooks/use-global-config.d.ts +17 -2
  24. package/es/src/config-provider/index.d.ts +49 -4
  25. package/es/src/index.mjs +147 -151
  26. package/es/src/version.d.ts +1 -1
  27. package/es/src/version.mjs +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
  30. package/lib/src/ag-grid/interface.d.ts +4 -0
  31. package/lib/src/ap-pro-card/components/title/index.vue.d.ts +3 -0
  32. package/lib/src/ap-pro-card/components/title/index.vue2.js +1 -1
  33. package/lib/src/ap-upload/apUpload.vue.d.ts +1 -1
  34. package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
  35. package/lib/src/business/ap-image/interface.d.ts +2 -0
  36. package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
  37. package/lib/src/business/ap-title/interface.d.ts +2 -0
  38. package/lib/src/business/ap-title/style/index.js +1 -1
  39. package/lib/src/business/hooks/index.d.ts +0 -2
  40. package/lib/src/business/hooks/index.js +1 -1
  41. package/lib/src/business/hooks/usePageListApGrid.d.ts +1 -2
  42. package/lib/src/business/hooks/usePageListApGrid.js +1 -1
  43. package/lib/src/business/hooks/usePageListApTable.d.ts +1 -2
  44. package/lib/src/business/hooks/usePageListApTable.js +1 -1
  45. package/lib/src/config-provider/config-provider-props.d.ts +20 -3
  46. package/lib/src/config-provider/config-provider-props.js +1 -1
  47. package/lib/src/config-provider/config-provider.d.ts +33 -3
  48. package/lib/src/config-provider/config-provider.js +1 -1
  49. package/lib/src/config-provider/constants.d.ts +1 -0
  50. package/lib/src/config-provider/hooks/use-global-config.d.ts +17 -2
  51. package/lib/src/config-provider/index.d.ts +49 -4
  52. package/lib/src/index.js +1 -1
  53. package/lib/src/version.d.ts +1 -1
  54. package/lib/src/version.js +1 -1
  55. package/package.json +1 -1
  56. package/es/src/business/hooks/useGridRefresh.d.ts +0 -17
  57. package/es/src/business/hooks/useGridRefresh.mjs +0 -16
  58. package/es/src/business/hooks/useTableRefresh.d.ts +0 -20
  59. package/es/src/business/hooks/useTableRefresh.mjs +0 -57
  60. package/lib/src/business/hooks/useGridRefresh.d.ts +0 -17
  61. package/lib/src/business/hooks/useGridRefresh.js +0 -1
  62. package/lib/src/business/hooks/useTableRefresh.d.ts +0 -20
  63. package/lib/src/business/hooks/useTableRefresh.js +0 -1
@@ -1,9 +1,9 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { LocaleType } from '../locale/interface';
3
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
3
+ import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig, UiModeType } from './constants';
4
4
  import { ApGridProps } from '../ap-grid';
5
5
  import { AgGridProps } from '../ag-grid';
6
- import { ViewCacheOption } from '../business';
6
+ import { ApImageProps, ApTitleProps, ViewCacheOption } from '../business';
7
7
  import { FullToken } from '../design-token/interface';
8
8
  import { RecursivePartial } from '../type';
9
9
  import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
@@ -14,6 +14,11 @@ import { ButtonSize } from '@aplus-frontend/antdv/es/button';
14
14
  import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
15
15
  type ApGridConfig = Pick<ApGridProps, 'rowSelection'>;
16
16
  type AgGridConfig = Pick<AgGridProps, 'rowSelection'>;
17
+ type ApProCardConfig = {
18
+ uiMode?: UiModeType;
19
+ };
20
+ type ApImageConfig = Pick<ApImageProps, 'uiMode'>;
21
+ type ApTitleConfig = Pick<ApTitleProps, 'uiMode'>;
17
22
  export declare const configProviderProps: () => {
18
23
  iconPrefixCls: StringConstructor;
19
24
  getTargetContainer: {
@@ -152,6 +157,15 @@ export declare const configProviderProps: () => {
152
157
  agGrid: {
153
158
  type: PropType<AgGridConfig>;
154
159
  };
160
+ apProCard: {
161
+ type: PropType<ApProCardConfig>;
162
+ };
163
+ apImage: {
164
+ type: PropType<ApImageConfig>;
165
+ };
166
+ apTitle: {
167
+ type: PropType<ApTitleConfig>;
168
+ };
155
169
  /**
156
170
  * @description aplus-ui的locale
157
171
  */
@@ -171,8 +185,11 @@ export declare const configProviderProps: () => {
171
185
  type: PropType<ApiType>;
172
186
  default: () => {};
173
187
  };
188
+ /**
189
+ * @deprecated 已废弃,请使用各自组件的uiMode属性
190
+ */
174
191
  uiMode: {
175
- type: PropType<"aplus" | "admin">;
192
+ type: PropType<UiModeType>;
176
193
  };
177
194
  apUpload: {
178
195
  type: PropType<ApUploadConfig>;
@@ -5,6 +5,15 @@ const t = () => ({
5
5
  },
6
6
  agGrid: {
7
7
  type: Object
8
+ },
9
+ apProCard: {
10
+ type: Object
11
+ },
12
+ apImage: {
13
+ type: Object
14
+ },
15
+ apTitle: {
16
+ type: Object
8
17
  }
9
18
  }), o = () => ({
10
19
  /**
@@ -26,6 +35,9 @@ const t = () => ({
26
35
  type: Object,
27
36
  default: () => ({})
28
37
  },
38
+ /**
39
+ * @deprecated 已废弃,请使用各自组件的uiMode属性
40
+ */
29
41
  uiMode: {
30
42
  type: String
31
43
  },
@@ -7,9 +7,9 @@ import { Locale } from '@aplus-frontend/antdv/es/locale';
7
7
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
8
8
  import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
9
9
  import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
10
+ import { UiModeType, ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
10
11
  import { LocaleType } from '../locale';
11
12
  import { RecursivePartial } from '../type';
12
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
13
13
  export declare const globalConfigCached: Ref<ConfigProviderProps>;
14
14
  export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
15
15
  iconPrefixCls: StringConstructor;
@@ -153,6 +153,21 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
153
153
  rowSelection?: true | AgGridRowSelection<any> | undefined;
154
154
  }>;
155
155
  };
156
+ apProCard: {
157
+ type: PropType<{
158
+ uiMode?: UiModeType;
159
+ }>;
160
+ };
161
+ apImage: {
162
+ type: PropType<{
163
+ uiMode?: UiModeType | undefined;
164
+ }>;
165
+ };
166
+ apTitle: {
167
+ type: PropType<{
168
+ uiMode?: UiModeType | undefined;
169
+ }>;
170
+ };
156
171
  aplusLocale: {
157
172
  type: PropType<LocaleType>;
158
173
  };
@@ -167,7 +182,7 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
167
182
  default: () => {};
168
183
  };
169
184
  uiMode: {
170
- type: PropType<"aplus" | "admin">;
185
+ type: PropType<UiModeType>;
171
186
  };
172
187
  apUpload: {
173
188
  type: PropType<ApUploadConfig>;
@@ -342,6 +357,21 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
342
357
  rowSelection?: true | AgGridRowSelection<any> | undefined;
343
358
  }>;
344
359
  };
360
+ apProCard: {
361
+ type: PropType<{
362
+ uiMode?: UiModeType;
363
+ }>;
364
+ };
365
+ apImage: {
366
+ type: PropType<{
367
+ uiMode?: UiModeType | undefined;
368
+ }>;
369
+ };
370
+ apTitle: {
371
+ type: PropType<{
372
+ uiMode?: UiModeType | undefined;
373
+ }>;
374
+ };
345
375
  aplusLocale: {
346
376
  type: PropType<LocaleType>;
347
377
  };
@@ -356,7 +386,7 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
356
386
  default: () => {};
357
387
  };
358
388
  uiMode: {
359
- type: PropType<"aplus" | "admin">;
389
+ type: PropType<UiModeType>;
360
390
  };
361
391
  apUpload: {
362
392
  type: PropType<ApUploadConfig>;
@@ -1,26 +1,27 @@
1
- import { isVNode as p, ref as G, defineComponent as M, computed as o, unref as a, watch as u, onActivated as P, createVNode as h, renderSlot as A } from "vue";
2
- import { ConfigProvider as T } from "@aplus-frontend/antdv";
3
- import { useGlobalConfig as w, provideGlobalConfig as D } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as F } from "./config-provider-props.mjs";
5
- import { mergeAntdProviderConfigWithCache as l, mergeAntdProvideConfig as c } from "../utils/config-provider-preset.mjs";
6
- import { DEFAULT_NAMESPACE as U, DEFAULT_UIMODE as b } from "./constants.mjs";
7
- function E(e) {
8
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !p(e);
1
+ import { isVNode as P, ref as G, defineComponent as T, computed as a, unref as n, watch as h, onActivated as b, createVNode as w, renderSlot as A } from "vue";
2
+ import { ConfigProvider as D } from "@aplus-frontend/antdv";
3
+ import { useGlobalConfig as F, provideGlobalConfig as N } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as I } from "./config-provider-props.mjs";
5
+ import { mergeAntdProviderConfigWithCache as d, mergeAntdProvideConfig as l } from "../utils/config-provider-preset.mjs";
6
+ import { DEFAULT_NAMESPACE as M } from "./constants.mjs";
7
+ import { useDevWarning as k } from "../utils/warning.mjs";
8
+ function y(e) {
9
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !P(e);
9
10
  }
10
- const n = G({}), j = /* @__PURE__ */ M({
11
+ const r = G({}), V = /* @__PURE__ */ T({
11
12
  name: "AplusConfigProvider",
12
- props: F(),
13
+ props: I(),
13
14
  setup(e, {
14
- slots: f
15
+ slots: u
15
16
  }) {
16
- const t = w();
17
- let r = !0;
18
- const m = o(() => e.namespace !== void 0 ? e.namespace : t.value?.namespace || U), d = o(() => e.uiMode !== void 0 ? e.uiMode : t.value?.uiMode || b), g = o(() => e.apGrid !== void 0 ? e.apGrid : t.value?.apGrid), v = o(() => e.agGrid !== void 0 ? e.agGrid : t.value?.agGrid), C = o(() => ({
19
- namespace: a(m),
17
+ k("ConfigProvider")(!e.uiMode, "breaking", "uiMode has been remove, see migrate guild https://aplus.aplnk.com/aplus-ui/guild/migrate-7.2.html");
18
+ const i = F();
19
+ let t = !0;
20
+ const c = a(() => e.namespace !== void 0 ? e.namespace : i.value?.namespace || M), g = a(() => e.apGrid !== void 0 ? e.apGrid : i.value?.apGrid), m = a(() => e.agGrid !== void 0 ? e.agGrid : i.value?.agGrid), f = a(() => e.apProCard !== void 0 ? e.apProCard : i.value?.apProCard), v = a(() => e.apImage !== void 0 ? e.apImage : i.value?.apImage), C = a(() => e.apTitle !== void 0 ? e.apTitle : i.value?.apTitle), p = a(() => ({
21
+ namespace: n(c),
20
22
  aplusLocale: e.aplusLocale,
21
23
  aplusToken: e.aplusToken,
22
24
  api: e.api,
23
- uiMode: a(d),
24
25
  apUpload: e.apUpload,
25
26
  apDescriptions: e.apDescriptions,
26
27
  valueTypeMap: e.valueTypeMap,
@@ -29,35 +30,34 @@ const n = G({}), j = /* @__PURE__ */ M({
29
30
  scrollYDomName: e.scrollYDomName,
30
31
  viewCacheOption: e.viewCacheOption,
31
32
  searchForm: e.searchForm,
32
- apGrid: a(g),
33
- agGrid: a(v)
34
- })), s = D(C);
35
- return u(() => e, (i) => {
36
- n.value = l(c(i), n.value);
33
+ apGrid: n(g),
34
+ agGrid: n(m),
35
+ apProCard: n(f),
36
+ apImage: n(v),
37
+ apTitle: n(C)
38
+ })), s = N(p);
39
+ return h(() => e, (o) => {
40
+ r.value = d(l(o), r.value);
37
41
  }, {
38
42
  deep: !0,
39
43
  immediate: !0
40
- }), P(() => {
41
- if (r) {
42
- r = !1;
44
+ }), b(() => {
45
+ if (t) {
46
+ t = !1;
43
47
  return;
44
48
  }
45
- n.value = l(c(e), n.value);
46
- }), typeof window < "u" && u(() => a(d), (i) => {
47
- document.documentElement.dataset.aplusUiMode = i;
48
- }, {
49
- immediate: !0
49
+ r.value = d(l(e), r.value);
50
50
  }), () => {
51
- let i;
52
- return h(T, n.value, E(i = A(f, "default", {
51
+ let o;
52
+ return w(D, r.value, y(o = A(u, "default", {
53
53
  config: s?.value
54
- })) ? i : {
55
- default: () => [i]
54
+ })) ? o : {
55
+ default: () => [o]
56
56
  });
57
57
  };
58
58
  }
59
59
  });
60
60
  export {
61
- j as ConfigProvider,
62
- n as globalConfigCached
61
+ V as ConfigProvider,
62
+ r as globalConfigCached
63
63
  };
@@ -52,4 +52,5 @@ export type ExportField = boolean | {
52
52
  };
53
53
  export declare const DEFAULT_NAMESPACE = "aplus";
54
54
  export declare const DEFAULT_UIMODE = "aplus";
55
+ export type UiModeType = 'aplus' | 'admin';
55
56
  export {};
@@ -8,9 +8,9 @@ import { Locale } from '@aplus-frontend/antdv/es/locale';
8
8
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
9
9
  import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
10
10
  import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '../..';
11
+ import { UiModeType, ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from '..';
11
12
  import { LocaleType } from '../../locale';
12
13
  import { RecursivePartial } from '../../type';
13
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from '..';
14
14
  export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
15
15
  export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
16
16
  export declare function useGlobalConfig(): Ref<ConfigProviderContext>;
@@ -156,6 +156,21 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
156
156
  rowSelection?: true | AgGridRowSelection<any> | undefined;
157
157
  }>;
158
158
  };
159
+ apProCard: {
160
+ type: PropType<{
161
+ uiMode?: UiModeType;
162
+ }>;
163
+ };
164
+ apImage: {
165
+ type: PropType<{
166
+ uiMode?: UiModeType | undefined;
167
+ }>;
168
+ };
169
+ apTitle: {
170
+ type: PropType<{
171
+ uiMode?: UiModeType | undefined;
172
+ }>;
173
+ };
159
174
  aplusLocale: {
160
175
  type: PropType<LocaleType>;
161
176
  };
@@ -170,7 +185,7 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
170
185
  default: () => {};
171
186
  };
172
187
  uiMode: {
173
- type: PropType<"aplus" | "admin">;
188
+ type: PropType<UiModeType>;
174
189
  };
175
190
  apUpload: {
176
191
  type: PropType<ApUploadConfig>;
@@ -6,9 +6,9 @@ import { Locale } from '@aplus-frontend/antdv/es/locale';
6
6
  import { ButtonSize } from '@aplus-frontend/antdv/es/button';
7
7
  import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
8
8
  import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
9
+ import { UiModeType, ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
9
10
  import { LocaleType } from '../locale';
10
11
  import { RecursivePartial } from '../type';
11
- import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
12
12
  export * from './config-provider-props';
13
13
  export * from './constants';
14
14
  export * from './hooks/use-global-config';
@@ -158,6 +158,21 @@ export declare const APConfigProvider: {
158
158
  rowSelection?: true | AgGridRowSelection<any> | undefined;
159
159
  }>;
160
160
  };
161
+ apProCard: {
162
+ type: PropType<{
163
+ uiMode?: UiModeType;
164
+ }>;
165
+ };
166
+ apImage: {
167
+ type: PropType<{
168
+ uiMode?: UiModeType | undefined;
169
+ }>;
170
+ };
171
+ apTitle: {
172
+ type: PropType<{
173
+ uiMode?: UiModeType | undefined;
174
+ }>;
175
+ };
161
176
  aplusLocale: {
162
177
  type: PropType<LocaleType>;
163
178
  };
@@ -172,7 +187,7 @@ export declare const APConfigProvider: {
172
187
  default: () => {};
173
188
  };
174
189
  uiMode: {
175
- type: PropType<"aplus" | "admin">;
190
+ type: PropType<UiModeType>;
176
191
  };
177
192
  apUpload: {
178
193
  type: PropType<ApUploadConfig>;
@@ -393,6 +408,21 @@ export declare const APConfigProvider: {
393
408
  rowSelection?: true | AgGridRowSelection<any> | undefined;
394
409
  }>;
395
410
  };
411
+ apProCard: {
412
+ type: PropType<{
413
+ uiMode?: UiModeType;
414
+ }>;
415
+ };
416
+ apImage: {
417
+ type: PropType<{
418
+ uiMode?: UiModeType | undefined;
419
+ }>;
420
+ };
421
+ apTitle: {
422
+ type: PropType<{
423
+ uiMode?: UiModeType | undefined;
424
+ }>;
425
+ };
396
426
  aplusLocale: {
397
427
  type: PropType<LocaleType>;
398
428
  };
@@ -407,7 +437,7 @@ export declare const APConfigProvider: {
407
437
  default: () => {};
408
438
  };
409
439
  uiMode: {
410
- type: PropType<"aplus" | "admin">;
440
+ type: PropType<UiModeType>;
411
441
  };
412
442
  apUpload: {
413
443
  type: PropType<ApUploadConfig>;
@@ -625,6 +655,21 @@ export declare const APConfigProvider: {
625
655
  rowSelection?: true | AgGridRowSelection<any> | undefined;
626
656
  }>;
627
657
  };
658
+ apProCard: {
659
+ type: PropType<{
660
+ uiMode?: UiModeType;
661
+ }>;
662
+ };
663
+ apImage: {
664
+ type: PropType<{
665
+ uiMode?: UiModeType | undefined;
666
+ }>;
667
+ };
668
+ apTitle: {
669
+ type: PropType<{
670
+ uiMode?: UiModeType | undefined;
671
+ }>;
672
+ };
628
673
  aplusLocale: {
629
674
  type: PropType<LocaleType>;
630
675
  };
@@ -639,7 +684,7 @@ export declare const APConfigProvider: {
639
684
  default: () => {};
640
685
  };
641
686
  uiMode: {
642
- type: PropType<"aplus" | "admin">;
687
+ type: PropType<UiModeType>;
643
688
  };
644
689
  apUpload: {
645
690
  type: PropType<ApUploadConfig>;