@aplus-frontend/ui 7.7.4 → 7.7.5

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 (61) hide show
  1. package/es/src/ap-action/group/index.vue.d.ts +1 -0
  2. package/es/src/ap-action/group/index.vue.mjs +28 -28
  3. package/es/src/ap-action/item-popconfirm/index.vue.d.ts +25 -1
  4. package/es/src/ap-button/ap-action-button.vue.d.ts +2 -1
  5. package/es/src/ap-button/ap-button.vue.d.ts +2 -1
  6. package/es/src/ap-field/number/index.vue.d.ts +20 -0
  7. package/es/src/ap-field/number/index.vue.mjs +11 -10
  8. package/es/src/ap-field/number/read.vue2.mjs +3 -2
  9. package/es/src/ap-field/select/index.vue.d.ts +12 -4
  10. package/es/src/ap-field/tree-select/index.vue.d.ts +2 -0
  11. package/es/src/ap-form/items/number/index.vue.d.ts +22 -0
  12. package/es/src/ap-form/items/select/index.vue.d.ts +18 -6
  13. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -0
  14. package/es/src/ap-form/modal-form/index.vue.d.ts +25 -1
  15. package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +19 -1
  16. package/es/src/ap-table/constants.d.ts +22 -3
  17. package/es/src/business/ap-batch-action-group/index.d.ts +34 -4
  18. package/es/src/business/ap-descriptions/ap-descriptions.vue.d.ts +3 -10
  19. package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +58 -79
  20. package/es/src/business/ap-descriptions/interface.d.ts +2 -3
  21. package/es/src/business/ap-upload/apUpload.vue.d.ts +9 -0
  22. package/es/src/business/ap-upload/apUpload.vue.mjs +33 -29
  23. package/es/src/business/ap-upload/apUploadTypes.d.ts +4 -0
  24. package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +50 -49
  25. package/es/src/business/ap-upload/components/Picture.vue2.mjs +66 -65
  26. package/es/src/business/ap-upload/components/SingleFile.vue2.mjs +95 -94
  27. package/es/src/business/ap-upload/hooks/useOss.d.ts +2 -1
  28. package/es/src/business/ap-upload/hooks/useOss.mjs +26 -24
  29. package/es/src/version.d.ts +1 -1
  30. package/es/src/version.mjs +1 -1
  31. package/lib/src/ap-action/group/index.vue.d.ts +1 -0
  32. package/lib/src/ap-action/group/index.vue.js +1 -1
  33. package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +25 -1
  34. package/lib/src/ap-button/ap-action-button.vue.d.ts +2 -1
  35. package/lib/src/ap-button/ap-button.vue.d.ts +2 -1
  36. package/lib/src/ap-field/number/index.vue.d.ts +20 -0
  37. package/lib/src/ap-field/number/index.vue.js +1 -1
  38. package/lib/src/ap-field/number/read.vue2.js +1 -1
  39. package/lib/src/ap-field/select/index.vue.d.ts +12 -4
  40. package/lib/src/ap-field/tree-select/index.vue.d.ts +2 -0
  41. package/lib/src/ap-form/items/number/index.vue.d.ts +22 -0
  42. package/lib/src/ap-form/items/select/index.vue.d.ts +18 -6
  43. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -0
  44. package/lib/src/ap-form/modal-form/index.vue.d.ts +25 -1
  45. package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +19 -1
  46. package/lib/src/ap-table/constants.d.ts +22 -3
  47. package/lib/src/business/ap-batch-action-group/index.d.ts +34 -4
  48. package/lib/src/business/ap-descriptions/ap-descriptions.vue.d.ts +3 -10
  49. package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
  50. package/lib/src/business/ap-descriptions/interface.d.ts +2 -3
  51. package/lib/src/business/ap-upload/apUpload.vue.d.ts +9 -0
  52. package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
  53. package/lib/src/business/ap-upload/apUploadTypes.d.ts +4 -0
  54. package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
  55. package/lib/src/business/ap-upload/components/Picture.vue2.js +1 -1
  56. package/lib/src/business/ap-upload/components/SingleFile.vue2.js +1 -1
  57. package/lib/src/business/ap-upload/hooks/useOss.d.ts +2 -1
  58. package/lib/src/business/ap-upload/hooks/useOss.js +1 -1
  59. package/lib/src/version.d.ts +1 -1
  60. package/lib/src/version.js +1 -1
  61. package/package.json +5 -5
@@ -1,5 +1,5 @@
1
1
  import { ApFormModalFormProps } from '../interface';
2
- import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
2
+ import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, RendererNode, RendererElement, CSSProperties } from 'vue';
3
3
  import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
4
4
  import { Recordable } from '../../type';
5
5
  import { ColSize } from '@aplus-frontend/antdv/es/grid';
@@ -942,9 +942,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
942
942
  loading: {
943
943
  type: PropType<boolean | {
944
944
  delay?: number;
945
+ icon?: VNode<RendererNode, RendererElement, {
946
+ [key: string]: any;
947
+ }>;
945
948
  }>;
946
949
  default: () => boolean | {
947
950
  delay?: number;
951
+ icon?: VNode<RendererNode, RendererElement, {
952
+ [key: string]: any;
953
+ }>;
948
954
  };
949
955
  };
950
956
  disabled: {
@@ -997,9 +1003,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
997
1003
  loading: {
998
1004
  type: PropType<boolean | {
999
1005
  delay?: number;
1006
+ icon?: VNode<RendererNode, RendererElement, {
1007
+ [key: string]: any;
1008
+ }>;
1000
1009
  }>;
1001
1010
  default: () => boolean | {
1002
1011
  delay?: number;
1012
+ icon?: VNode<RendererNode, RendererElement, {
1013
+ [key: string]: any;
1014
+ }>;
1003
1015
  };
1004
1016
  };
1005
1017
  disabled: {
@@ -1054,9 +1066,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1054
1066
  loading: {
1055
1067
  type: PropType<boolean | {
1056
1068
  delay?: number;
1069
+ icon?: VNode<RendererNode, RendererElement, {
1070
+ [key: string]: any;
1071
+ }>;
1057
1072
  }>;
1058
1073
  default: () => boolean | {
1059
1074
  delay?: number;
1075
+ icon?: VNode<RendererNode, RendererElement, {
1076
+ [key: string]: any;
1077
+ }>;
1060
1078
  };
1061
1079
  };
1062
1080
  disabled: {
@@ -1109,9 +1127,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
1109
1127
  loading: {
1110
1128
  type: PropType<boolean | {
1111
1129
  delay?: number;
1130
+ icon?: VNode<RendererNode, RendererElement, {
1131
+ [key: string]: any;
1132
+ }>;
1112
1133
  }>;
1113
1134
  default: () => boolean | {
1114
1135
  delay?: number;
1136
+ icon?: VNode<RendererNode, RendererElement, {
1137
+ [key: string]: any;
1138
+ }>;
1115
1139
  };
1116
1140
  };
1117
1141
  disabled: {
@@ -1,5 +1,5 @@
1
1
  import { ApFormSearchFormPopoverFilterProps } from '../../interface';
2
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, GlobalComponents, GlobalDirectives } from 'vue';
3
3
  import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
4
4
  import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
5
5
  import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
@@ -22,9 +22,15 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
22
22
  loading: {
23
23
  type: PropType<boolean | {
24
24
  delay?: number;
25
+ icon?: VNode<RendererNode, RendererElement, {
26
+ [key: string]: any;
27
+ }>;
25
28
  }>;
26
29
  default: () => boolean | {
27
30
  delay?: number;
31
+ icon?: VNode<RendererNode, RendererElement, {
32
+ [key: string]: any;
33
+ }>;
28
34
  };
29
35
  };
30
36
  disabled: {
@@ -66,6 +72,9 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
66
72
  autoInsertSpace: boolean;
67
73
  loading: boolean | {
68
74
  delay?: number;
75
+ icon?: VNode<RendererNode, RendererElement, {
76
+ [key: string]: any;
77
+ }>;
69
78
  };
70
79
  danger: boolean;
71
80
  htmlType: ButtonHTMLType;
@@ -97,9 +106,15 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
97
106
  loading: {
98
107
  type: PropType<boolean | {
99
108
  delay?: number;
109
+ icon?: VNode<RendererNode, RendererElement, {
110
+ [key: string]: any;
111
+ }>;
100
112
  }>;
101
113
  default: () => boolean | {
102
114
  delay?: number;
115
+ icon?: VNode<RendererNode, RendererElement, {
116
+ [key: string]: any;
117
+ }>;
103
118
  };
104
119
  };
105
120
  disabled: {
@@ -141,6 +156,9 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
141
156
  autoInsertSpace: boolean;
142
157
  loading: boolean | {
143
158
  delay?: number;
159
+ icon?: VNode<RendererNode, RendererElement, {
160
+ [key: string]: any;
161
+ }>;
144
162
  };
145
163
  danger: boolean;
146
164
  htmlType: ButtonHTMLType;
@@ -195,6 +195,7 @@ export declare const apTableFormItemMap: {
195
195
  readonly status?: "" | "error" | "warning" | undefined;
196
196
  readonly defaultValue?: ValueType | undefined;
197
197
  readonly changeOnWheel?: boolean | undefined;
198
+ readonly changeOnBlur?: boolean | undefined;
198
199
  readonly stringMode?: boolean | undefined;
199
200
  readonly min?: ValueType | undefined;
200
201
  readonly max?: ValueType | undefined;
@@ -264,6 +265,10 @@ export declare const apTableFormItemMap: {
264
265
  type: BooleanConstructor;
265
266
  default: boolean;
266
267
  };
268
+ changeOnBlur: {
269
+ type: BooleanConstructor;
270
+ default: boolean;
271
+ };
267
272
  stringMode: {
268
273
  type: BooleanConstructor;
269
274
  default: boolean;
@@ -380,6 +385,7 @@ export declare const apTableFormItemMap: {
380
385
  defaultValue: ValueType;
381
386
  step: ValueType;
382
387
  changeOnWheel: boolean;
388
+ changeOnBlur: boolean;
383
389
  stringMode: boolean;
384
390
  controls: boolean;
385
391
  keyboard: boolean;
@@ -441,6 +447,10 @@ export declare const apTableFormItemMap: {
441
447
  type: BooleanConstructor;
442
448
  default: boolean;
443
449
  };
450
+ changeOnBlur: {
451
+ type: BooleanConstructor;
452
+ default: boolean;
453
+ };
444
454
  stringMode: {
445
455
  type: BooleanConstructor;
446
456
  default: boolean;
@@ -557,6 +567,7 @@ export declare const apTableFormItemMap: {
557
567
  defaultValue: ValueType;
558
568
  step: ValueType;
559
569
  changeOnWheel: boolean;
570
+ changeOnBlur: boolean;
560
571
  stringMode: boolean;
561
572
  controls: boolean;
562
573
  keyboard: boolean;
@@ -950,7 +961,9 @@ export declare const apTableFormItemMap: {
950
961
  readonly autoClearSearchValue?: boolean | undefined;
951
962
  readonly onDeselect?: SelectHandler<(string | number) | LabeledValue, DefaultOptionType> | undefined;
952
963
  readonly filterOption?: boolean | FilterFunc<DefaultOptionType> | undefined;
953
- readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType) => number) | undefined;
964
+ readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
965
+ searchValue: string;
966
+ }) => number) | undefined;
954
967
  readonly optionFilterProp?: string | undefined;
955
968
  readonly optionLabelProp?: string | undefined;
956
969
  readonly options?: DefaultOptionType[] | undefined;
@@ -1113,7 +1126,9 @@ export declare const apTableFormItemMap: {
1113
1126
  type: PropType<boolean | FilterFunc<DefaultOptionType>>;
1114
1127
  default: any;
1115
1128
  };
1116
- filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
1129
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
1130
+ searchValue: string;
1131
+ }) => number>;
1117
1132
  optionFilterProp: StringConstructor;
1118
1133
  optionLabelProp: StringConstructor;
1119
1134
  options: PropType< DefaultOptionType[]>;
@@ -1332,7 +1347,9 @@ export declare const apTableFormItemMap: {
1332
1347
  type: PropType<boolean | FilterFunc<DefaultOptionType>>;
1333
1348
  default: any;
1334
1349
  };
1335
- filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
1350
+ filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
1351
+ searchValue: string;
1352
+ }) => number>;
1336
1353
  optionFilterProp: StringConstructor;
1337
1354
  optionLabelProp: StringConstructor;
1338
1355
  options: PropType< DefaultOptionType[]>;
@@ -2880,6 +2897,7 @@ export declare const apTableFormItemMap: {
2880
2897
  leafIcon?: any;
2881
2898
  tagRender?: any;
2882
2899
  suffixIcon?: any;
2900
+ clearIcon?: any;
2883
2901
  }>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
2884
2902
  P: {};
2885
2903
  B: {};
@@ -3411,6 +3429,7 @@ export declare const apTableRenderItemMap: {
3411
3429
  actions: GroupActionTypes[];
3412
3430
  trigger: Trigger | Trigger[];
3413
3431
  count: number;
3432
+ iconFirst: boolean;
3414
3433
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3415
3434
  index: DefineComponent<ApTableIndexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApTableIndexProps> & Readonly<{}>, {
3416
3435
  bordered: boolean;
@@ -1,4 +1,4 @@
1
- import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNodeChild, CSSProperties, ComputedRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
1
+ import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNode, VNodeChild, RendererNode, RendererElement, CSSProperties, ComputedRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
2
2
  import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
3
3
  import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
4
4
  import { VueTypeValidableDef } from '../../../node_modules/vue-types';
@@ -31,9 +31,11 @@ declare const ApBatchActionGroup: {
31
31
  loading: {
32
32
  type: PropType<boolean | {
33
33
  delay?: number;
34
+ icon?: VNode;
34
35
  }>;
35
36
  default: () => boolean | {
36
37
  delay?: number;
38
+ icon?: VNode;
37
39
  };
38
40
  };
39
41
  disabled: {
@@ -97,9 +99,15 @@ declare const ApBatchActionGroup: {
97
99
  loading: {
98
100
  type: PropType<boolean | {
99
101
  delay?: number;
102
+ icon?: VNode<RendererNode, RendererElement, {
103
+ [key: string]: any;
104
+ }>;
100
105
  }>;
101
106
  default: () => boolean | {
102
107
  delay?: number;
108
+ icon?: VNode<RendererNode, RendererElement, {
109
+ [key: string]: any;
110
+ }>;
103
111
  };
104
112
  };
105
113
  onClick: {
@@ -301,7 +309,9 @@ declare const ApBatchActionGroup: {
301
309
  type: PropType<(val: boolean) => void>;
302
310
  };
303
311
  onOpenChange: {
304
- type: PropType<(val: boolean) => void>;
312
+ type: PropType<(val: boolean, info: {
313
+ source: "trigger" | "menu";
314
+ }) => void>;
305
315
  };
306
316
  'onUpdate:open': {
307
317
  type: PropType<(val: boolean) => void>;
@@ -341,9 +351,11 @@ declare const ApBatchActionGroup: {
341
351
  loading: {
342
352
  type: PropType<boolean | {
343
353
  delay?: number;
354
+ icon?: VNode;
344
355
  }>;
345
356
  default: () => boolean | {
346
357
  delay?: number;
358
+ icon?: VNode;
347
359
  };
348
360
  };
349
361
  disabled: {
@@ -407,9 +419,15 @@ declare const ApBatchActionGroup: {
407
419
  loading: {
408
420
  type: PropType<boolean | {
409
421
  delay?: number;
422
+ icon?: VNode<RendererNode, RendererElement, {
423
+ [key: string]: any;
424
+ }>;
410
425
  }>;
411
426
  default: () => boolean | {
412
427
  delay?: number;
428
+ icon?: VNode<RendererNode, RendererElement, {
429
+ [key: string]: any;
430
+ }>;
413
431
  };
414
432
  };
415
433
  onClick: {
@@ -611,7 +629,9 @@ declare const ApBatchActionGroup: {
611
629
  type: PropType<(val: boolean) => void>;
612
630
  };
613
631
  onOpenChange: {
614
- type: PropType<(val: boolean) => void>;
632
+ type: PropType<(val: boolean, info: {
633
+ source: "trigger" | "menu";
634
+ }) => void>;
615
635
  };
616
636
  'onUpdate:open': {
617
637
  type: PropType<(val: boolean) => void>;
@@ -648,9 +668,11 @@ declare const ApBatchActionGroup: {
648
668
  loading: {
649
669
  type: PropType<boolean | {
650
670
  delay?: number;
671
+ icon?: VNode;
651
672
  }>;
652
673
  default: () => boolean | {
653
674
  delay?: number;
675
+ icon?: VNode;
654
676
  };
655
677
  };
656
678
  disabled: {
@@ -714,9 +736,15 @@ declare const ApBatchActionGroup: {
714
736
  loading: {
715
737
  type: PropType<boolean | {
716
738
  delay?: number;
739
+ icon?: VNode<RendererNode, RendererElement, {
740
+ [key: string]: any;
741
+ }>;
717
742
  }>;
718
743
  default: () => boolean | {
719
744
  delay?: number;
745
+ icon?: VNode<RendererNode, RendererElement, {
746
+ [key: string]: any;
747
+ }>;
720
748
  };
721
749
  };
722
750
  onClick: {
@@ -918,7 +946,9 @@ declare const ApBatchActionGroup: {
918
946
  type: PropType<(val: boolean) => void>;
919
947
  };
920
948
  onOpenChange: {
921
- type: PropType<(val: boolean) => void>;
949
+ type: PropType<(val: boolean, info: {
950
+ source: "trigger" | "menu";
951
+ }) => void>;
922
952
  };
923
953
  'onUpdate:open': {
924
954
  type: PropType<(val: boolean) => void>;
@@ -1,16 +1,9 @@
1
1
  import { DisplayInfoProps } from './interface';
2
- import { VNode, RendererNode, RendererElement, VNodeChild, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { Recordable } from '../../type';
3
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
4
  declare function __VLS_template(): {
4
5
  attrs: Partial<{}>;
5
- slots: Partial<Record<string, (_: {
6
- index: number;
7
- item: VNode<RendererNode, RendererElement, {
8
- [key: string]: any;
9
- }> | VNodeChild;
10
- record: {
11
- [x: string]: any;
12
- } | undefined;
13
- }) => any>>;
6
+ slots: Readonly<Recordable> & Recordable;
14
7
  refs: {};
15
8
  rootEl: HTMLDivElement;
16
9
  };
@@ -1,108 +1,87 @@
1
- import { defineComponent as V, createElementBlock as n, openBlock as o, normalizeStyle as x, normalizeClass as y, unref as r, createVNode as B, mergeProps as E, withCtx as f, Fragment as a, renderList as _, createCommentVNode as w, createBlock as i, h as p, renderSlot as A, resolveDynamicComponent as j } from "vue";
2
- import { Descriptions as z, DescriptionsItem as d } from "@aplus-frontend/antdv";
3
- import { mixinsAttachmentExtraProps as F, transformValue as G, isEmptyWithType as I } from "./helper.mjs";
4
- import { get as b } from "lodash-unified";
1
+ import { defineComponent as T, useSlots as D, createVNode as l, createTextVNode as V, Fragment as p, h as a, createElementBlock as E, openBlock as k, normalizeStyle as A, normalizeClass as B, unref as n, mergeProps as j } from "vue";
2
+ import { Descriptions as w } from "@aplus-frontend/antdv";
3
+ import { mixinsAttachmentExtraProps as z, transformValue as F, isEmptyWithType as G } from "./helper.mjs";
4
+ import { get as u } from "lodash-unified";
5
5
  import "./help-message/index.vue.mjs";
6
6
  import "../../config-provider/index.mjs";
7
- import L from "./style/index.mjs";
8
- import { useGlobalConfig as m } from "../../config-provider/hooks/use-global-config.mjs";
7
+ import I from "./style/index.mjs";
8
+ import { useGlobalConfig as f } from "../../config-provider/hooks/use-global-config.mjs";
9
9
  import { useNamespace as M } from "../../config-provider/hooks/use-namespace.mjs";
10
10
  import R from "./help-message/index.vue2.mjs";
11
- const $ = { key: 0 }, Z = /* @__PURE__ */ V({
11
+ const X = /* @__PURE__ */ T({
12
12
  name: "ApDescriptions",
13
13
  __name: "ap-descriptions",
14
14
  props: {
15
15
  descriptionsProps: {},
16
16
  schemas: {},
17
17
  dataSource: {},
18
- style: { type: [Boolean, null, String, Object, Array] },
18
+ style: {
19
+ type: [Boolean, null, String, Object, Array]
20
+ },
19
21
  className: {}
20
22
  },
21
- setup(S) {
22
- const l = S, g = m("apDescriptions"), v = m("downloadCenterTriggerConfig"), { b: C, be: k } = M("ap-descriptions"), P = L("ap-descriptions"), D = (e = {}) => {
23
- let s = "";
24
- return l.descriptionsProps?.layout === "vertical" && (s = "start"), {
25
- justifyContent: s,
23
+ setup(c) {
24
+ const o = c, d = f("apDescriptions"), y = f("downloadCenterTriggerConfig"), {
25
+ b: m,
26
+ be: b
27
+ } = M("ap-descriptions"), g = I("ap-descriptions"), S = D(), v = (e = {}) => {
28
+ let r = "";
29
+ return o.descriptionsProps?.layout === "vertical" && (r = "start"), {
30
+ justifyContent: r,
26
31
  ...e
27
32
  };
28
- }, c = (e) => {
29
- const s = b(l.dataSource, e.field);
33
+ }, s = (e) => {
34
+ const r = u(o.dataSource, e.field);
30
35
  if (e.customRender)
31
- return e.customRender(l.dataSource);
32
- e.valueType === "attachment" && (e.extraProps = F(e.extraProps, {
33
- fromConfig: g.value?.downloadFile,
34
- fromGlobal: v.value?.trigger
36
+ return e.customRender(o.dataSource);
37
+ e.valueType === "attachment" && (e.extraProps = z(e.extraProps, {
38
+ fromConfig: d.value?.downloadFile,
39
+ fromGlobal: y.value?.trigger
35
40
  }));
36
- const t = e.format ? e.format(s, l.dataSource || {}) : s;
37
- return G({ value: t, record: l.dataSource }, e);
38
- }, N = (e) => e.valueType === "text" && !!e.extraProps?.ellipsis, T = (e) => {
41
+ const t = e.format ? e.format(r, o.dataSource || {}) : r;
42
+ return F({
43
+ value: t,
44
+ record: o.dataSource
45
+ }, e);
46
+ }, C = (e) => e.valueType === "text" && !!e.extraProps?.ellipsis, P = (e, r) => {
39
47
  if (e.visible != null) {
40
48
  if (typeof e.visible == "boolean")
41
49
  return e.visible;
42
50
  if (typeof e.visible == "function")
43
51
  return e.visible({
44
- record: l.dataSource || {},
52
+ record: r || {},
45
53
  schema: e
46
54
  });
47
55
  }
48
56
  return !0;
49
- };
50
- return (e, s) => (o(), n("div", {
51
- class: y([e.className, r(C)(), r(P)]),
52
- style: x(e.style)
53
- }, [
54
- B(r(z), E(e.descriptionsProps, {
55
- "label-style": D({ ...e.descriptionsProps?.labelStyle || {} })
56
- }), {
57
- default: f(() => [
58
- (o(!0), n(a, null, _(e.schemas, (t, u) => (o(), n(a, {
59
- key: t.field || "empty" + u
60
- }, [
61
- T(t) ? (o(), n(a, { key: 0 }, [
62
- t.valueType === "empty" ? (o(), i(r(d), {
63
- key: 0,
64
- "content-style": t.contentStyle,
65
- "label-style": t.labelStyle,
66
- span: t.span
67
- }, null, 8, ["content-style", "label-style", "span"])) : (o(), i(r(d), {
68
- key: 1,
69
- class: y(N(t) ? r(k)("item", "ellipsis") : ""),
70
- label: t.label ? p(a, [
71
- p(R, {
72
- helpMessage: t.helpMessage,
73
- label: t.label
74
- })
75
- ]) : null,
76
- span: t.span,
77
- "content-style": t.contentStyle,
78
- "label-style": t.labelStyle
79
- }, {
80
- default: f(() => [
81
- r(I)(r(b)(e.dataSource, t.field), t) ? (o(), n("span", $, "--")) : (o(), n(a, { key: 1 }, [
82
- t.contentSlotName ? A(e.$slots, t.contentSlotName, {
83
- key: 0,
84
- index: u,
85
- item: c(t),
86
- record: e.dataSource
87
- }) : (o(), i(j(
88
- p(a, [
89
- t.prefix,
90
- c(t),
91
- t.suffix
92
- ])
93
- ), { key: 1 }))
94
- ], 64))
95
- ]),
96
- _: 2
97
- }, 1032, ["class", "label", "span", "content-style", "label-style"]))
98
- ], 64)) : w("", !0)
99
- ], 64))), 128))
100
- ]),
101
- _: 3
102
- }, 16, ["label-style"])
103
- ], 6));
57
+ }, N = (e, r, t) => e.valueType === "empty" ? null : G(u(t, e.field), e) ? l("span", null, [V("--")]) : e.contentSlotName ? S?.[e.contentSlotName]?.({
58
+ index: r,
59
+ record: t,
60
+ item: s(e)
61
+ }) : l(p, null, [e.prefix, s(e), e.suffix]), x = (e = [], r) => e.filter((t) => P(t, r)).map((t, i) => ({
62
+ label: t.label ? a(p, [a(R, {
63
+ helpMessage: t.helpMessage,
64
+ label: t.label
65
+ })]) : null,
66
+ span: t.span,
67
+ style: t.style,
68
+ contentStyle: t.contentStyle,
69
+ labelStyle: t.labelStyle,
70
+ key: t.field?.toString() || "empty" + i,
71
+ class: C(t) ? b("item", "ellipsis") : "",
72
+ children: N(t, i, r)
73
+ }));
74
+ return (e, r) => (k(), E("div", {
75
+ class: B([e.className, n(m)(), n(g)]),
76
+ style: A(e.style)
77
+ }, [l(n(w), j(e.descriptionsProps, {
78
+ "label-style": v({
79
+ ...e.descriptionsProps?.labelStyle || {}
80
+ }),
81
+ items: x(e.schemas, e.dataSource)
82
+ }), null, 16, ["label-style", "items"])], 6));
104
83
  }
105
84
  });
106
85
  export {
107
- Z as default
86
+ X as default
108
87
  };
@@ -1,4 +1,4 @@
1
- import { DescriptionsProps } from '@aplus-frontend/antdv';
1
+ import { DescriptionItemType, DescriptionsProps } from '@aplus-frontend/antdv';
2
2
  import { CSSProperties, StyleValue, VNode, VNodeChild } from 'vue';
3
3
  import { formatterMap } from './formatter';
4
4
  /** 字段路径 */
@@ -19,10 +19,9 @@ type AllKeys<T, P extends string = '', Level extends unknown[] = []> = Level['le
19
19
  ]> : never);
20
20
  }[keyof T] : never;
21
21
  /** 基本描述类型 */
22
- export interface ItemSchema<T extends Recordable = Recordable> {
22
+ export interface ItemSchema<T extends Recordable = Recordable> extends Omit<DescriptionItemType, 'children'> {
23
23
  label: VNodeChild | VNode;
24
24
  field: Extract<AllKeys<T>, string> | (string & {}) | string[];
25
- span?: number;
26
25
  prefix?: VNodeChild | VNode;
27
26
  suffix?: VNodeChild | VNode;
28
27
  contentStyle?: CSSProperties;
@@ -85,6 +85,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
85
85
  type: BooleanConstructor;
86
86
  default: boolean;
87
87
  };
88
+ baseDirName: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
88
92
  }>, {
89
93
  done: ComputedRef<boolean>;
90
94
  clear: typeof clear;
@@ -164,6 +168,10 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
164
168
  type: BooleanConstructor;
165
169
  default: boolean;
166
170
  };
171
+ baseDirName: {
172
+ type: StringConstructor;
173
+ default: string;
174
+ };
167
175
  }>> & Readonly<{
168
176
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
169
177
  }>, {
@@ -185,6 +193,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
185
193
  subTitle: string | VNode< RendererNode, RendererElement, {
186
194
  [key: string]: any;
187
195
  }>;
196
+ baseDirName: string;
188
197
  showUploadErrorMsg: boolean;
189
198
  maxCountErrorMsg: string;
190
199
  }, {}, {}, {}, string, ComponentProvideOptions, true, {