@aplus-frontend/ui 0.1.40 → 0.1.42

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 (77) hide show
  1. package/es/src/ap-action/group/index.vue.d.ts +1 -1
  2. package/es/src/ap-download/interface.d.ts +1 -1
  3. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  4. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  5. package/es/src/ap-field/number/index.vue.d.ts +1 -1
  6. package/es/src/ap-field/rate/index.vue.d.ts +1 -1
  7. package/es/src/ap-field/select/index.vue.d.ts +1 -1
  8. package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
  9. package/es/src/ap-form/items/number/index.vue.d.ts +16 -16
  10. package/es/src/ap-form/items/text/index.vue.d.ts +12 -12
  11. package/es/src/ap-form/items/text/password.vue.d.ts +12 -12
  12. package/es/src/ap-form/items/text-area/index.vue.d.ts +12 -12
  13. package/es/src/ap-table/constants.d.ts +209 -209
  14. package/es/src/ap-table/utils.d.ts +72 -72
  15. package/es/src/ap-table/utils.mjs +69 -69
  16. package/es/src/ap-upload/components/SingleFile.vue2.mjs +41 -39
  17. package/es/src/base-button/index.d.ts +4 -4
  18. package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +42 -43
  19. package/es/src/business/ap-batch-action-group/interface.d.ts +4 -1
  20. package/es/src/business/ap-label/ApLabel.d.ts +1 -1
  21. package/es/src/business/index.d.ts +24 -16
  22. package/es/src/check-card/group.vue.d.ts +1 -1
  23. package/es/src/config-provider/config-provider-props.d.ts +5 -0
  24. package/es/src/config-provider/config-provider-props.mjs +4 -0
  25. package/es/src/config-provider/config-provider.d.ts +90 -3
  26. package/es/src/config-provider/config-provider.mjs +27 -23
  27. package/es/src/config-provider/css-var.d.ts +88 -0
  28. package/es/src/{theme/css-var/index.mjs → config-provider/css-var.mjs} +1 -0
  29. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -0
  30. package/es/src/config-provider/index.d.ts +486 -9
  31. package/es/src/editable-table/utils.mjs +51 -51
  32. package/es/src/theme/antd-global-overwrite/admin/button.css +0 -3
  33. package/es/src/theme/antd-global-overwrite/admin/index.css +0 -3
  34. package/es/src/theme/antd-global-overwrite/aplus/button.css +0 -3
  35. package/es/src/theme/antd-global-overwrite/aplus/index.css +0 -3
  36. package/es/src/type.d.ts +3 -0
  37. package/es/src/utils/config-provider-preset.d.ts +3 -3
  38. package/lib/src/ap-action/group/index.vue.d.ts +1 -1
  39. package/lib/src/ap-download/interface.d.ts +1 -1
  40. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  41. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  42. package/lib/src/ap-field/number/index.vue.d.ts +1 -1
  43. package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
  44. package/lib/src/ap-field/select/index.vue.d.ts +1 -1
  45. package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
  46. package/lib/src/ap-form/items/number/index.vue.d.ts +16 -16
  47. package/lib/src/ap-form/items/text/index.vue.d.ts +12 -12
  48. package/lib/src/ap-form/items/text/password.vue.d.ts +12 -12
  49. package/lib/src/ap-form/items/text-area/index.vue.d.ts +12 -12
  50. package/lib/src/ap-table/constants.d.ts +209 -209
  51. package/lib/src/ap-table/utils.d.ts +72 -72
  52. package/lib/src/ap-table/utils.js +1 -1
  53. package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
  54. package/lib/src/base-button/index.d.ts +4 -4
  55. package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
  56. package/lib/src/business/ap-batch-action-group/interface.d.ts +4 -1
  57. package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
  58. package/lib/src/business/index.d.ts +24 -16
  59. package/lib/src/check-card/group.vue.d.ts +1 -1
  60. package/lib/src/config-provider/config-provider-props.d.ts +5 -0
  61. package/lib/src/config-provider/config-provider-props.js +1 -1
  62. package/lib/src/config-provider/config-provider.d.ts +90 -3
  63. package/lib/src/config-provider/config-provider.js +1 -1
  64. package/lib/src/config-provider/css-var.d.ts +88 -0
  65. package/lib/src/{theme/css-var/index.js → config-provider/css-var.js} +1 -1
  66. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -0
  67. package/lib/src/config-provider/index.d.ts +486 -9
  68. package/lib/src/editable-table/utils.js +1 -1
  69. package/lib/src/theme/antd-global-overwrite/admin/button.css +0 -3
  70. package/lib/src/theme/antd-global-overwrite/admin/index.css +0 -3
  71. package/lib/src/theme/antd-global-overwrite/aplus/button.css +0 -3
  72. package/lib/src/theme/antd-global-overwrite/aplus/index.css +0 -3
  73. package/lib/src/type.d.ts +3 -0
  74. package/lib/src/utils/config-provider-preset.d.ts +3 -3
  75. package/package.json +2 -2
  76. package/es/src/theme/css-var/index.d.ts +0 -7
  77. package/lib/src/theme/css-var/index.d.ts +0 -7
@@ -9,8 +9,8 @@ import { ApInputRadioOptions } from './ap-input-radio';
9
9
  import { KeyboardEventHandler, MouseEventHandler, FocusEventHandler } from 'ant-design-vue/es/_util/EventInterface';
10
10
  import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
11
11
  import { ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
12
+ import { ButtonProps, ItemType, MenuTheme, MenuMode } from 'ant-design-vue';
12
13
  import { DropdownArrowOptions, Trigger, Align } from 'ant-design-vue/es/dropdown/props';
13
- import { ItemType, MenuTheme, MenuMode, ButtonProps } from 'ant-design-vue';
14
14
  import { CSSMotionProps } from 'ant-design-vue/es/_util/transition';
15
15
  import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler } from 'ant-design-vue/es/menu/src/interface';
16
16
  import { accessCreate } from '@aplus-frontend/oss';
@@ -360,12 +360,12 @@ export declare const ApLabel: {
360
360
  placement: TooltipPlacement;
361
361
  show: boolean;
362
362
  dot: boolean;
363
+ count: any;
363
364
  iconType: "ellipsis" | "success" | "warning" | "question";
364
365
  iconSize: number;
365
366
  helpMessage: string | VNode<RendererNode, RendererElement, {
366
367
  [key: string]: any;
367
368
  }> | undefined;
368
- count: any;
369
369
  showZero: boolean;
370
370
  overflowCount: number;
371
371
  numberStyle: CSSProperties;
@@ -442,12 +442,12 @@ export declare const ApLabel: {
442
442
  placement: TooltipPlacement;
443
443
  show: boolean;
444
444
  dot: boolean;
445
+ count: any;
445
446
  iconType: "ellipsis" | "success" | "warning" | "question";
446
447
  iconSize: number;
447
448
  helpMessage: string | VNode<RendererNode, RendererElement, {
448
449
  [key: string]: any;
449
450
  }> | undefined;
450
- count: any;
451
451
  showZero: boolean;
452
452
  overflowCount: number;
453
453
  numberStyle: CSSProperties;
@@ -521,12 +521,12 @@ export declare const ApLabel: {
521
521
  placement: TooltipPlacement;
522
522
  show: boolean;
523
523
  dot: boolean;
524
+ count: any;
524
525
  iconType: "ellipsis" | "success" | "warning" | "question";
525
526
  iconSize: number;
526
527
  helpMessage: string | VNode<RendererNode, RendererElement, {
527
528
  [key: string]: any;
528
529
  }> | undefined;
529
- count: any;
530
530
  showZero: boolean;
531
531
  overflowCount: number;
532
532
  numberStyle: CSSProperties;
@@ -985,14 +985,14 @@ export declare const ApInputRadio: DefineComponent<{
985
985
  disabled: {
986
986
  type: PropType<boolean>;
987
987
  };
988
- options: {
989
- type: PropType<ApInputRadioOptions>;
990
- required: true;
991
- };
992
988
  bordered: {
993
989
  type: PropType<boolean>;
994
990
  default: boolean;
995
991
  };
992
+ options: {
993
+ type: PropType<ApInputRadioOptions>;
994
+ required: true;
995
+ };
996
996
  autofocus: {
997
997
  type: PropType<boolean>;
998
998
  };
@@ -1068,14 +1068,14 @@ export declare const ApInputRadio: DefineComponent<{
1068
1068
  disabled: {
1069
1069
  type: PropType<boolean>;
1070
1070
  };
1071
- options: {
1072
- type: PropType<ApInputRadioOptions>;
1073
- required: true;
1074
- };
1075
1071
  bordered: {
1076
1072
  type: PropType<boolean>;
1077
1073
  default: boolean;
1078
1074
  };
1075
+ options: {
1076
+ type: PropType<ApInputRadioOptions>;
1077
+ required: true;
1078
+ };
1079
1079
  autofocus: {
1080
1080
  type: PropType<boolean>;
1081
1081
  };
@@ -1274,8 +1274,12 @@ export declare const ApBatchActionGroup: DefineComponent<{
1274
1274
  onMousedown: {
1275
1275
  type: PropType< MouseEventHandler | MouseEventHandler[]>;
1276
1276
  };
1277
- }>>, "type"> & {
1278
- type?: ButtonType | "borderLink" | undefined;
1277
+ }>>, "type" | "onClick"> & {
1278
+ type?: ButtonProps["type"] | "borderLink";
1279
+ borderLinkColor?: string;
1280
+ minWidth?: boolean | number | string;
1281
+ onClick?: () => any | Promise<any>;
1282
+ } & {
1279
1283
  content?: string;
1280
1284
  }) | ({
1281
1285
  dropdownType?: "dropdown" | undefined;
@@ -1566,8 +1570,12 @@ export declare const ApBatchActionGroup: DefineComponent<{
1566
1570
  onMousedown: {
1567
1571
  type: PropType< MouseEventHandler | MouseEventHandler[]>;
1568
1572
  };
1569
- }>>, "type"> & {
1570
- type?: ButtonType | "borderLink" | undefined;
1573
+ }>>, "type" | "onClick"> & {
1574
+ type?: ButtonProps["type"] | "borderLink";
1575
+ borderLinkColor?: string;
1576
+ minWidth?: boolean | number | string;
1577
+ onClick?: () => any | Promise<any>;
1578
+ } & {
1571
1579
  content?: string;
1572
1580
  }) | ({
1573
1581
  dropdownType?: "dropdown" | undefined;
@@ -40,9 +40,9 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
40
40
  value: CheckCardValueType | CheckCardValueType[];
41
41
  multiple: boolean;
42
42
  disabled: boolean;
43
+ bordered: boolean;
43
44
  loading: boolean;
44
45
  defaultValue: CheckCardValueType | CheckCardValueType[];
45
- bordered: boolean;
46
46
  stopPropagation: boolean | ((event: MouseEvent) => boolean);
47
47
  indicatorSize: number;
48
48
  }, {}>;
@@ -1,6 +1,7 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
  import { LocaleType } from '../locale/interface';
3
3
  import { ApiType, ScrollbarGlobalConfig, TableDefaultConfig, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
4
+ import { CssVarType } from './css-var';
4
5
  import { default as __DTS_DEFAULT_0__ } from 'ant-design-vue/es/config-provider/renderEmpty';
5
6
  import { TransformCellTextProps } from 'ant-design-vue/es/table/interface';
6
7
  import { CSPConfig } from 'ant-design-vue/es/config-provider';
@@ -165,5 +166,9 @@ export declare const configProviderProps: () => {
165
166
  type: PropType<downloadCenterTriggerConfig>;
166
167
  default: () => {};
167
168
  };
169
+ cssVar: {
170
+ type: PropType<CssVarType>;
171
+ default: () => {};
172
+ };
168
173
  };
169
174
  export type ConfigProviderProps = Partial<ExtractPropTypes<ReturnType<typeof configProviderProps>>>;
@@ -41,6 +41,10 @@ const a = () => ({
41
41
  type: Object,
42
42
  default: () => ({})
43
43
  },
44
+ cssVar: {
45
+ type: Object,
46
+ default: () => ({})
47
+ },
44
48
  ...e()
45
49
  });
46
50
  export {
@@ -1,5 +1,6 @@
1
1
  import { Ref, DefineComponent, PropType, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
2
  import { ConfigProviderProps } from './config-provider-props';
3
+ import { CssVarType } from './css-var';
3
4
  import { default as __DTS_DEFAULT_0__ } from 'ant-design-vue/es/config-provider/renderEmpty';
4
5
  import { TransformCellTextProps } from 'ant-design-vue/es/table/interface';
5
6
  import { CSPConfig } from 'ant-design-vue/es/config-provider';
@@ -10,6 +11,7 @@ import { RequiredMark } from 'ant-design-vue/es/form/Form';
10
11
  import { ThemeConfig } from 'ant-design-vue/es/config-provider/context';
11
12
  import { LocaleType } from '..';
12
13
  import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
14
+ import { RecursivePartial } from '../type';
13
15
  export declare const globalConfigCached: Ref<ConfigProviderProps>;
14
16
  export declare const ConfigProvider: DefineComponent<{
15
17
  iconPrefixCls: StringConstructor;
@@ -164,6 +166,10 @@ export declare const ConfigProvider: DefineComponent<{
164
166
  type: PropType<downloadCenterTriggerConfig>;
165
167
  default: () => {};
166
168
  };
169
+ cssVar: {
170
+ type: PropType<CssVarType>;
171
+ default: () => {};
172
+ };
167
173
  }, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
168
174
  iconPrefixCls: StringConstructor;
169
175
  getTargetContainer: {
@@ -317,6 +323,10 @@ export declare const ConfigProvider: DefineComponent<{
317
323
  type: PropType<downloadCenterTriggerConfig>;
318
324
  default: () => {};
319
325
  };
326
+ cssVar: {
327
+ type: PropType<CssVarType>;
328
+ default: () => {};
329
+ };
320
330
  }>>, {
321
331
  input: {
322
332
  autocomplete?: string;
@@ -334,6 +344,9 @@ export declare const ConfigProvider: DefineComponent<{
334
344
  };
335
345
  scrollbar: ScrollbarGlobalConfig;
336
346
  direction: "ltr" | "rtl";
347
+ pagination: {
348
+ showSizeChanger?: boolean;
349
+ };
337
350
  csp: CSPConfig;
338
351
  autoInsertSpaceInButton: boolean;
339
352
  locale: Locale;
@@ -343,9 +356,6 @@ export declare const ConfigProvider: DefineComponent<{
343
356
  componentDisabled: boolean;
344
357
  virtual: boolean;
345
358
  dropdownMatchSelectWidth: number | boolean;
346
- pagination: {
347
- showSizeChanger?: boolean;
348
- };
349
359
  theme: ThemeConfig;
350
360
  wave: {
351
361
  disabled?: boolean;
@@ -357,5 +367,82 @@ export declare const ConfigProvider: DefineComponent<{
357
367
  apDescriptions: ApDescriptionsConfig;
358
368
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
359
369
  downloadCenterTriggerConfig: downloadCenterTriggerConfig;
370
+ cssVar: RecursivePartial<{
371
+ 'ap-form': {
372
+ bordered: {
373
+ 'border-color': {
374
+ base: string;
375
+ hover: string;
376
+ active: string;
377
+ };
378
+ 'shadow-color': string;
379
+ };
380
+ };
381
+ 'ap-action': {
382
+ color: {
383
+ primary: {
384
+ base: string;
385
+ hover: string;
386
+ };
387
+ success: string;
388
+ error: string;
389
+ warn: string;
390
+ };
391
+ };
392
+ 'check-card': {
393
+ outline: {
394
+ color: string;
395
+ };
396
+ hover: {
397
+ outline: {
398
+ color: string;
399
+ };
400
+ };
401
+ checked: {
402
+ outline: {
403
+ color: string;
404
+ };
405
+ bg: string;
406
+ };
407
+ };
408
+ 'ap-table': {
409
+ header: {
410
+ bg: string;
411
+ };
412
+ pagination: {
413
+ total: {
414
+ color: string;
415
+ count: {
416
+ color: string;
417
+ };
418
+ };
419
+ };
420
+ setting: {
421
+ button: {
422
+ color: string;
423
+ };
424
+ };
425
+ };
426
+ 'ap-batch-action': {
427
+ color: {
428
+ font: string;
429
+ active: string;
430
+ };
431
+ };
432
+ basic: {
433
+ color: {
434
+ primary: string;
435
+ };
436
+ };
437
+ 'ap-descriptions': {
438
+ item: {
439
+ 'padding-bottom': string;
440
+ 'label-width': string;
441
+ };
442
+ 'last-row-item': {
443
+ 'padding-bottom': string;
444
+ };
445
+ };
446
+ }>;
360
447
  }, {}>;
361
448
  export type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
@@ -1,25 +1,25 @@
1
- import { isVNode as l, ref as d, defineComponent as f, computed as u, watch as i, createVNode as m, renderSlot as c } from "vue";
2
- import { ConfigProvider as g } from "ant-design-vue";
3
- import { provideGlobalConfig as p } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as s } from "./config-provider-props.mjs";
5
- import { tableDefaultConfig as C } from "./constants.mjs";
6
- import { mergeAntdProvideConfig as v } from "../utils/config-provider-preset.mjs";
7
- import { setCSSVariables as b, aplusCssVar as P, adminCssVar as w } from "../theme/css-var/index.mjs";
8
- function y(e) {
9
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
1
+ import { isVNode as c, ref as u, defineComponent as s, computed as m, watch as t, createVNode as g, renderSlot as C } from "vue";
2
+ import { ConfigProvider as p } from "ant-design-vue";
3
+ import { provideGlobalConfig as v } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as b } from "./config-provider-props.mjs";
5
+ import { tableDefaultConfig as V } from "./constants.mjs";
6
+ import { mergeAntdProvideConfig as P } from "../utils/config-provider-preset.mjs";
7
+ import { generateCssVar as w, aplusCssVar as y, adminCssVar as M, setCSSVariables as S } from "./css-var.mjs";
8
+ function T(e) {
9
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !c(e);
10
10
  }
11
- const a = d({}), A = /* @__PURE__ */ f({
11
+ const r = u({}), U = /* @__PURE__ */ s({
12
12
  name: "AplusConfigProvider",
13
- props: s(),
13
+ props: b(),
14
14
  setup(e, {
15
- slots: r
15
+ slots: i
16
16
  }) {
17
- const n = u(() => ({
17
+ const n = m(() => ({
18
18
  namespace: e.namespace,
19
19
  aplusLocale: e.aplusLocale,
20
20
  api: e.api,
21
21
  table: {
22
- ...C,
22
+ ...V,
23
23
  ...e.table || {}
24
24
  },
25
25
  scrollbar: e.scrollbar,
@@ -28,20 +28,24 @@ const a = d({}), A = /* @__PURE__ */ f({
28
28
  apDescriptions: e.apDescriptions,
29
29
  valueTypeMap: e.valueTypeMap,
30
30
  downloadCenterTriggerConfig: e.downloadCenterTriggerConfig
31
- })), t = p(n);
32
- return i(() => e, (o) => {
33
- a.value = v(o);
31
+ })), a = v(n);
32
+ return t(() => e, (o) => {
33
+ r.value = P(o);
34
34
  }, {
35
35
  deep: !0,
36
36
  immediate: !0
37
- }), typeof window < "u" && i(() => e.uiMode, (o) => {
38
- b(o === "aplus" ? P : w);
37
+ }), typeof window < "u" && t(() => [e.uiMode, e.cssVar], ([o, l]) => {
38
+ const d = w(l), f = {
39
+ ...o === "aplus" ? y : M,
40
+ ...d
41
+ };
42
+ S(f);
39
43
  }, {
40
44
  immediate: !0
41
45
  }), () => {
42
46
  let o;
43
- return m(g, a.value, y(o = c(r, "default", {
44
- config: t == null ? void 0 : t.value
47
+ return g(p, r.value, T(o = C(i, "default", {
48
+ config: a == null ? void 0 : a.value
45
49
  })) ? o : {
46
50
  default: () => [o]
47
51
  });
@@ -49,6 +53,6 @@ const a = d({}), A = /* @__PURE__ */ f({
49
53
  }
50
54
  });
51
55
  export {
52
- A as ConfigProvider,
53
- a as globalConfigCached
56
+ U as ConfigProvider,
57
+ r as globalConfigCached
54
58
  };
@@ -0,0 +1,88 @@
1
+ import { RecursivePartial } from '../type';
2
+ declare const aplusCssVarObj: {
3
+ 'ap-form': {
4
+ bordered: {
5
+ 'border-color': {
6
+ base: string;
7
+ hover: string;
8
+ active: string;
9
+ };
10
+ 'shadow-color': string;
11
+ };
12
+ };
13
+ 'ap-action': {
14
+ color: {
15
+ primary: {
16
+ base: string;
17
+ hover: string;
18
+ };
19
+ success: string;
20
+ error: string;
21
+ warn: string;
22
+ };
23
+ };
24
+ 'check-card': {
25
+ outline: {
26
+ color: string;
27
+ };
28
+ hover: {
29
+ outline: {
30
+ color: string;
31
+ };
32
+ };
33
+ checked: {
34
+ outline: {
35
+ color: string;
36
+ };
37
+ bg: string;
38
+ };
39
+ };
40
+ 'ap-table': {
41
+ header: {
42
+ bg: string;
43
+ };
44
+ pagination: {
45
+ total: {
46
+ color: string;
47
+ count: {
48
+ color: string;
49
+ };
50
+ };
51
+ };
52
+ setting: {
53
+ button: {
54
+ color: string;
55
+ };
56
+ };
57
+ };
58
+ 'ap-batch-action': {
59
+ color: {
60
+ font: string;
61
+ active: string;
62
+ };
63
+ };
64
+ basic: {
65
+ color: {
66
+ primary: string;
67
+ };
68
+ };
69
+ 'ap-descriptions': {
70
+ item: {
71
+ 'padding-bottom': string;
72
+ 'label-width': string;
73
+ };
74
+ 'last-row-item': {
75
+ 'padding-bottom': string;
76
+ };
77
+ };
78
+ };
79
+ export type CssVarType = RecursivePartial<typeof aplusCssVarObj>;
80
+ export declare function generateCssVar(cssVarRawObj: CssVarType): Record<string, any>;
81
+ export declare const aplusCssVar: Record<string, any>;
82
+ export declare const adminCssVar: Record<string, any>;
83
+ /**
84
+ * 多次设置css变量(这种方式如果css变量过多可能会有性能问题)
85
+ * @param variables
86
+ */
87
+ export declare function setCSSVariables(variables: Record<string, any>): void;
88
+ export {};
@@ -171,5 +171,6 @@ function u(e) {
171
171
  export {
172
172
  d as adminCssVar,
173
173
  p as aplusCssVar,
174
+ s as generateCssVar,
174
175
  u as setCSSVariables
175
176
  };
@@ -11,6 +11,7 @@ import { RequiredMark } from 'ant-design-vue/es/form/Form';
11
11
  import { ThemeConfig } from 'ant-design-vue/es/config-provider/context';
12
12
  import { LocaleType } from '../..';
13
13
  import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig } from '..';
14
+ import { CssVarType } from '../css-var';
14
15
  export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
15
16
  export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
16
17
  export declare function useGlobalConfig(): Ref<ConfigProviderContext>;
@@ -167,4 +168,8 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
167
168
  type: PropType<downloadCenterTriggerConfig>;
168
169
  default: () => {};
169
170
  };
171
+ cssVar: {
172
+ type: PropType<CssVarType>;
173
+ default: () => {};
174
+ };
170
175
  }>>>> | undefined;