@aplus-frontend/ui 6.35.2 → 6.37.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 (144) hide show
  1. package/es/src/ag-grid/index.vue.d.ts +2 -30
  2. package/es/src/ag-grid/index.vue.mjs +1 -1
  3. package/es/src/ag-grid/interface.d.ts +15 -0
  4. package/es/src/ap-action/group/index.vue.mjs +41 -34
  5. package/es/src/ap-action/interface.d.ts +17 -0
  6. package/es/src/ap-action/item/index.vue2.mjs +34 -25
  7. package/es/src/ap-action/item-dropdown/index.vue.mjs +22 -20
  8. package/es/src/ap-action/item-modal/index.vue.mjs +14 -12
  9. package/es/src/ap-action/item-popconfirm/index.vue.mjs +13 -11
  10. package/es/src/ap-field/date/index.vue.mjs +6 -5
  11. package/es/src/ap-field/date/read.vue2.mjs +8 -7
  12. package/es/src/ap-field/date-range/index.vue.mjs +20 -17
  13. package/es/src/ap-field/date-range/read.vue2.mjs +3 -2
  14. package/es/src/ap-field/index.d.ts +3 -3
  15. package/es/src/ap-field/text/index.vue.d.ts +1 -1
  16. package/es/src/ap-field/text/password.vue.d.ts +1 -1
  17. package/es/src/ap-field/text/read-password.vue.d.ts +1 -1
  18. package/es/src/ap-field/text/read.vue.d.ts +1 -1
  19. package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
  20. package/es/src/ap-field/text-area/read.vue.d.ts +1 -1
  21. package/es/src/ap-form/ap-form.vue.d.ts +1 -1
  22. package/es/src/ap-form/drawer-form/index.vue.d.ts +20 -20
  23. package/es/src/ap-form/interface.d.ts +12 -1
  24. package/es/src/ap-form/item/index.vue.d.ts +34 -34
  25. package/es/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  26. package/es/src/ap-form/items/date/index.vue.d.ts +2 -2
  27. package/es/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  28. package/es/src/ap-form/items/number/index.vue.d.ts +2 -2
  29. package/es/src/ap-form/items/radio/index.vue.d.ts +2 -2
  30. package/es/src/ap-form/items/select/index.vue.d.ts +2 -2
  31. package/es/src/ap-form/items/switch/index.vue.d.ts +2 -2
  32. package/es/src/ap-form/items/text/index.vue.d.ts +8 -8
  33. package/es/src/ap-form/items/text/password.vue.d.ts +8 -8
  34. package/es/src/ap-form/items/text-area/index.vue.d.ts +6 -6
  35. package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  36. package/es/src/ap-form/modal-form/index.vue.d.ts +30 -21
  37. package/es/src/ap-form/render/item.vue.d.ts +2 -2
  38. package/es/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
  39. package/es/src/ap-form/search-form/hooks/use-count-per-row.mjs +32 -22
  40. package/es/src/ap-form/search-form/index.vue.d.ts +298 -20
  41. package/es/src/ap-form/search-form/index.vue.mjs +94 -88
  42. package/es/src/ap-modal/utils/createModal.mjs +38 -35
  43. package/es/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  44. package/es/src/ap-table/constants.d.ts +77 -77
  45. package/es/src/ap-upload/components/MultipleFile.vue2.mjs +132 -109
  46. package/es/src/business/ap-attachment/ApAttachment.d.ts +9 -0
  47. package/es/src/business/ap-attachment/ApAttachment.mjs +48 -47
  48. package/es/src/business/ap-attachment/constans.d.ts +4 -0
  49. package/es/src/business/ap-attachment/constans.mjs +4 -0
  50. package/es/src/business/ap-attachment/index.d.ts +15 -0
  51. package/es/src/business/ap-attachment/interface.d.ts +1 -0
  52. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +15 -13
  53. package/es/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
  54. package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
  55. package/es/src/business/batch-input-group/form-item.vue.d.ts +2 -2
  56. package/es/src/business/batch-input-group/index.vue.d.ts +4 -4
  57. package/es/src/config-provider/config-provider-props.d.ts +5 -1
  58. package/es/src/config-provider/config-provider.d.ts +10 -1
  59. package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
  60. package/es/src/config-provider/index.d.ts +16 -1
  61. package/es/src/utils/config-provider-preset.d.ts +3 -1
  62. package/es/src/version.d.ts +1 -1
  63. package/es/src/version.mjs +1 -1
  64. package/es/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
  65. package/es/src/work-order-modal/work-order-modal.vue.mjs +6 -4
  66. package/lib/src/ag-grid/index.vue.d.ts +2 -30
  67. package/lib/src/ag-grid/index.vue.js +1 -1
  68. package/lib/src/ag-grid/interface.d.ts +15 -0
  69. package/lib/src/ap-action/group/index.vue.js +1 -1
  70. package/lib/src/ap-action/interface.d.ts +17 -0
  71. package/lib/src/ap-action/item/index.vue2.js +1 -1
  72. package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
  73. package/lib/src/ap-action/item-modal/index.vue.js +1 -1
  74. package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
  75. package/lib/src/ap-field/date/index.vue.js +1 -1
  76. package/lib/src/ap-field/date/read.vue2.js +1 -1
  77. package/lib/src/ap-field/date-range/index.vue.js +1 -1
  78. package/lib/src/ap-field/date-range/read.vue2.js +1 -1
  79. package/lib/src/ap-field/index.d.ts +3 -3
  80. package/lib/src/ap-field/text/index.vue.d.ts +1 -1
  81. package/lib/src/ap-field/text/password.vue.d.ts +1 -1
  82. package/lib/src/ap-field/text/read-password.vue.d.ts +1 -1
  83. package/lib/src/ap-field/text/read.vue.d.ts +1 -1
  84. package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
  85. package/lib/src/ap-field/text-area/read.vue.d.ts +1 -1
  86. package/lib/src/ap-form/ap-form.vue.d.ts +1 -1
  87. package/lib/src/ap-form/drawer-form/index.vue.d.ts +20 -20
  88. package/lib/src/ap-form/interface.d.ts +12 -1
  89. package/lib/src/ap-form/item/index.vue.d.ts +34 -34
  90. package/lib/src/ap-form/items/checkbox/index.vue.d.ts +2 -2
  91. package/lib/src/ap-form/items/date/index.vue.d.ts +2 -2
  92. package/lib/src/ap-form/items/date-range/index.vue.d.ts +2 -2
  93. package/lib/src/ap-form/items/number/index.vue.d.ts +2 -2
  94. package/lib/src/ap-form/items/radio/index.vue.d.ts +2 -2
  95. package/lib/src/ap-form/items/select/index.vue.d.ts +2 -2
  96. package/lib/src/ap-form/items/switch/index.vue.d.ts +2 -2
  97. package/lib/src/ap-form/items/text/index.vue.d.ts +8 -8
  98. package/lib/src/ap-form/items/text/password.vue.d.ts +8 -8
  99. package/lib/src/ap-form/items/text-area/index.vue.d.ts +6 -6
  100. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -2
  101. package/lib/src/ap-form/modal-form/index.vue.d.ts +30 -21
  102. package/lib/src/ap-form/render/item.vue.d.ts +2 -2
  103. package/lib/src/ap-form/search-form/hooks/use-count-per-row.d.ts +13 -2
  104. package/lib/src/ap-form/search-form/hooks/use-count-per-row.js +1 -1
  105. package/lib/src/ap-form/search-form/index.vue.d.ts +298 -20
  106. package/lib/src/ap-form/search-form/index.vue.js +1 -1
  107. package/lib/src/ap-modal/utils/createModal.js +1 -1
  108. package/lib/src/ap-pro-card/components/card/index.vue.d.ts +1 -1
  109. package/lib/src/ap-table/constants.d.ts +77 -77
  110. package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
  111. package/lib/src/business/ap-attachment/ApAttachment.d.ts +9 -0
  112. package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
  113. package/lib/src/business/ap-attachment/constans.d.ts +4 -0
  114. package/lib/src/business/ap-attachment/constans.js +1 -1
  115. package/lib/src/business/ap-attachment/index.d.ts +15 -0
  116. package/lib/src/business/ap-attachment/interface.d.ts +1 -0
  117. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  118. package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +10 -10
  119. package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +10 -10
  120. package/lib/src/business/batch-input-group/form-item.vue.d.ts +2 -2
  121. package/lib/src/business/batch-input-group/index.vue.d.ts +4 -4
  122. package/lib/src/config-provider/config-provider-props.d.ts +5 -1
  123. package/lib/src/config-provider/config-provider.d.ts +10 -1
  124. package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
  125. package/lib/src/config-provider/index.d.ts +16 -1
  126. package/lib/src/utils/config-provider-preset.d.ts +3 -1
  127. package/lib/src/version.d.ts +1 -1
  128. package/lib/src/version.js +1 -1
  129. package/lib/src/work-order-modal/work-order-modal.vue.d.ts +10 -10
  130. package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
  131. package/package.json +3 -3
  132. package/theme/ag-grid/index.css +6 -0
  133. package/theme/ap-action/item.css +6 -0
  134. package/theme/ap-action/item.less +9 -0
  135. package/theme/ap-attachment/ap-attachment.css +8 -4
  136. package/theme/ap-attachment/ap-attachment.less +8 -4
  137. package/theme/ap-grid/index.css +6 -0
  138. package/theme/ap-table/ap-table.css +6 -0
  139. package/theme/ap-table-modal/index.css +6 -0
  140. package/theme/ap-upload/index.css +6 -0
  141. package/theme/ap-upload/multiple-file.css +6 -0
  142. package/theme/ap-upload/multiple-file.less +7 -0
  143. package/theme/editable-table/index.css +6 -0
  144. package/theme/index.css +20 -4
@@ -35,10 +35,10 @@ export declare const apTableFormItemMap: {
35
35
  date: {
36
36
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemDateProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
37
37
  disabled: boolean;
38
- hasFeedback: boolean;
39
38
  colon: boolean;
40
- autoLink: boolean;
41
39
  required: boolean;
40
+ hasFeedback: boolean;
41
+ autoLink: boolean;
42
42
  validateFirst: boolean;
43
43
  field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
44
44
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
@@ -50,10 +50,10 @@ export declare const apTableFormItemMap: {
50
50
  Defaults: {};
51
51
  }, Readonly< ApFormItemDateProps> & Readonly<{}>, {}, {}, {}, {}, {
52
52
  disabled: boolean;
53
- hasFeedback: boolean;
54
53
  colon: boolean;
55
- autoLink: boolean;
56
54
  required: boolean;
55
+ hasFeedback: boolean;
56
+ autoLink: boolean;
57
57
  validateFirst: boolean;
58
58
  field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
59
59
  }>;
@@ -62,10 +62,10 @@ export declare const apTableFormItemMap: {
62
62
  __isSuspense?: never;
63
63
  } & ComponentOptionsBase<Readonly< ApFormItemDateProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
64
64
  disabled: boolean;
65
- hasFeedback: boolean;
66
65
  colon: boolean;
67
- autoLink: boolean;
68
66
  required: boolean;
67
+ hasFeedback: boolean;
68
+ autoLink: boolean;
69
69
  validateFirst: boolean;
70
70
  field: Omit< ApFieldDateProps, "value" | "onUpdate:value">;
71
71
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -98,10 +98,10 @@ export declare const apTableFormItemMap: {
98
98
  dateRange: {
99
99
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemDateRangeProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
100
100
  disabled: boolean;
101
- hasFeedback: boolean;
102
101
  colon: boolean;
103
- autoLink: boolean;
104
102
  required: boolean;
103
+ hasFeedback: boolean;
104
+ autoLink: boolean;
105
105
  validateFirst: boolean;
106
106
  field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
107
107
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
@@ -113,10 +113,10 @@ export declare const apTableFormItemMap: {
113
113
  Defaults: {};
114
114
  }, Readonly< ApFormItemDateRangeProps> & Readonly<{}>, {}, {}, {}, {}, {
115
115
  disabled: boolean;
116
- hasFeedback: boolean;
117
116
  colon: boolean;
118
- autoLink: boolean;
119
117
  required: boolean;
118
+ hasFeedback: boolean;
119
+ autoLink: boolean;
120
120
  validateFirst: boolean;
121
121
  field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
122
122
  }>;
@@ -125,10 +125,10 @@ export declare const apTableFormItemMap: {
125
125
  __isSuspense?: never;
126
126
  } & ComponentOptionsBase<Readonly< ApFormItemDateRangeProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
127
127
  disabled: boolean;
128
- hasFeedback: boolean;
129
128
  colon: boolean;
130
- autoLink: boolean;
131
129
  required: boolean;
130
+ hasFeedback: boolean;
131
+ autoLink: boolean;
132
132
  validateFirst: boolean;
133
133
  field: Omit< ApFieldDateRangeProps, "value" | "onUpdate:value">;
134
134
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -162,10 +162,10 @@ export declare const apTableFormItemMap: {
162
162
  blur: () => void;
163
163
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
164
164
  disabled: boolean;
165
- hasFeedback: boolean;
166
165
  colon: boolean;
167
- autoLink: boolean;
168
166
  required: boolean;
167
+ hasFeedback: boolean;
168
+ autoLink: boolean;
169
169
  validateFirst: boolean;
170
170
  field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
171
171
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -660,10 +660,10 @@ export declare const apTableFormItemMap: {
660
660
  blur: () => void;
661
661
  }, {}, {}, {}, {
662
662
  disabled: boolean;
663
- hasFeedback: boolean;
664
663
  colon: boolean;
665
- autoLink: boolean;
666
664
  required: boolean;
665
+ hasFeedback: boolean;
666
+ autoLink: boolean;
667
667
  validateFirst: boolean;
668
668
  field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
669
669
  }>;
@@ -675,10 +675,10 @@ export declare const apTableFormItemMap: {
675
675
  blur: () => void;
676
676
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
677
677
  disabled: boolean;
678
- hasFeedback: boolean;
679
678
  colon: boolean;
680
- autoLink: boolean;
681
679
  required: boolean;
680
+ hasFeedback: boolean;
681
+ autoLink: boolean;
682
682
  validateFirst: boolean;
683
683
  field: Omit< ApFieldNumberProps, "value" | "onUpdate:value">;
684
684
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -704,10 +704,10 @@ export declare const apTableFormItemMap: {
704
704
  blur: () => void;
705
705
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
706
706
  disabled: boolean;
707
- hasFeedback: boolean;
708
707
  colon: boolean;
709
- autoLink: boolean;
710
708
  required: boolean;
709
+ hasFeedback: boolean;
710
+ autoLink: boolean;
711
711
  validateFirst: boolean;
712
712
  field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
713
713
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -848,10 +848,10 @@ export declare const apTableFormItemMap: {
848
848
  blur: () => void;
849
849
  }, {}, {}, {}, {
850
850
  disabled: boolean;
851
- hasFeedback: boolean;
852
851
  colon: boolean;
853
- autoLink: boolean;
854
852
  required: boolean;
853
+ hasFeedback: boolean;
854
+ autoLink: boolean;
855
855
  validateFirst: boolean;
856
856
  field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
857
857
  }>;
@@ -863,10 +863,10 @@ export declare const apTableFormItemMap: {
863
863
  blur: () => void;
864
864
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
865
865
  disabled: boolean;
866
- hasFeedback: boolean;
867
866
  colon: boolean;
868
- autoLink: boolean;
869
867
  required: boolean;
868
+ hasFeedback: boolean;
869
+ autoLink: boolean;
870
870
  validateFirst: boolean;
871
871
  field: Omit< ApFieldRadioProps, "value" | "onUpdate:value">;
872
872
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -887,10 +887,10 @@ export declare const apTableFormItemMap: {
887
887
  request: () => void;
888
888
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
889
889
  disabled: boolean;
890
- hasFeedback: boolean;
891
890
  colon: boolean;
892
- autoLink: boolean;
893
891
  required: boolean;
892
+ hasFeedback: boolean;
893
+ autoLink: boolean;
894
894
  validateFirst: boolean;
895
895
  field: Omit< ApFieldSelectProps, "value" | "onUpdate:value">;
896
896
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -1539,10 +1539,10 @@ export declare const apTableFormItemMap: {
1539
1539
  request: () => void;
1540
1540
  }, {}, {}, {}, {
1541
1541
  disabled: boolean;
1542
- hasFeedback: boolean;
1543
1542
  colon: boolean;
1544
- autoLink: boolean;
1545
1543
  required: boolean;
1544
+ hasFeedback: boolean;
1545
+ autoLink: boolean;
1546
1546
  validateFirst: boolean;
1547
1547
  field: Omit< ApFieldSelectProps, "value" | "onUpdate:value">;
1548
1548
  }>;
@@ -1555,10 +1555,10 @@ export declare const apTableFormItemMap: {
1555
1555
  request: () => void;
1556
1556
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1557
1557
  disabled: boolean;
1558
- hasFeedback: boolean;
1559
1558
  colon: boolean;
1560
- autoLink: boolean;
1561
1559
  required: boolean;
1560
+ hasFeedback: boolean;
1561
+ autoLink: boolean;
1562
1562
  validateFirst: boolean;
1563
1563
  field: Omit< ApFieldSelectProps, "value" | "onUpdate:value">;
1564
1564
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -1593,10 +1593,10 @@ export declare const apTableFormItemMap: {
1593
1593
  switch: {
1594
1594
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemSwitchProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1595
1595
  disabled: boolean;
1596
- hasFeedback: boolean;
1597
1596
  colon: boolean;
1598
- autoLink: boolean;
1599
1597
  required: boolean;
1598
+ hasFeedback: boolean;
1599
+ autoLink: boolean;
1600
1600
  validateFirst: boolean;
1601
1601
  valuePropName: string;
1602
1602
  field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
@@ -1609,10 +1609,10 @@ export declare const apTableFormItemMap: {
1609
1609
  Defaults: {};
1610
1610
  }, Readonly< ApFormItemSwitchProps> & Readonly<{}>, {}, {}, {}, {}, {
1611
1611
  disabled: boolean;
1612
- hasFeedback: boolean;
1613
1612
  colon: boolean;
1614
- autoLink: boolean;
1615
1613
  required: boolean;
1614
+ hasFeedback: boolean;
1615
+ autoLink: boolean;
1616
1616
  validateFirst: boolean;
1617
1617
  valuePropName: string;
1618
1618
  field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
@@ -1622,10 +1622,10 @@ export declare const apTableFormItemMap: {
1622
1622
  __isSuspense?: never;
1623
1623
  } & ComponentOptionsBase<Readonly< ApFormItemSwitchProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1624
1624
  disabled: boolean;
1625
- hasFeedback: boolean;
1626
1625
  colon: boolean;
1627
- autoLink: boolean;
1628
1626
  required: boolean;
1627
+ hasFeedback: boolean;
1628
+ autoLink: boolean;
1629
1629
  validateFirst: boolean;
1630
1630
  valuePropName: string;
1631
1631
  field: Omit< ApFieldSwitchProps, "checked" | "onUpdate:checked">;
@@ -1649,10 +1649,10 @@ export declare const apTableFormItemMap: {
1649
1649
  select: () => void;
1650
1650
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1651
1651
  disabled: boolean;
1652
- hasFeedback: boolean;
1653
1652
  colon: boolean;
1654
- autoLink: boolean;
1655
1653
  required: boolean;
1654
+ hasFeedback: boolean;
1655
+ autoLink: boolean;
1656
1656
  validateFirst: boolean;
1657
1657
  field: Omit< ApFieldTextProps, "value" | "onUpdate:value">;
1658
1658
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -1663,7 +1663,7 @@ export declare const apTableFormItemMap: {
1663
1663
  readonly mode?: FieldMode | undefined;
1664
1664
  readonly class?: unknown;
1665
1665
  readonly style?: unknown;
1666
- readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password" | undefined;
1666
+ readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined;
1667
1667
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
1668
1668
  readonly lazy?: boolean | undefined;
1669
1669
  readonly size?: ButtonSize;
@@ -1736,7 +1736,7 @@ export declare const apTableFormItemMap: {
1736
1736
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1737
1737
  "update:value": (...args: any[]) => void;
1738
1738
  }, string, {
1739
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
1739
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
1740
1740
  mode: FieldMode;
1741
1741
  disabled: boolean;
1742
1742
  bordered: boolean;
@@ -1764,7 +1764,7 @@ export declare const apTableFormItemMap: {
1764
1764
  $nextTick: nextTick;
1765
1765
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1766
1766
  } & Readonly<{
1767
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
1767
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
1768
1768
  mode: FieldMode;
1769
1769
  disabled: boolean;
1770
1770
  bordered: boolean;
@@ -1809,10 +1809,10 @@ export declare const apTableFormItemMap: {
1809
1809
  select: () => void;
1810
1810
  }, {}, {}, {}, {
1811
1811
  disabled: boolean;
1812
- hasFeedback: boolean;
1813
1812
  colon: boolean;
1814
- autoLink: boolean;
1815
1813
  required: boolean;
1814
+ hasFeedback: boolean;
1815
+ autoLink: boolean;
1816
1816
  validateFirst: boolean;
1817
1817
  field: Omit< ApFieldTextProps, "value" | "onUpdate:value">;
1818
1818
  }>;
@@ -1827,10 +1827,10 @@ export declare const apTableFormItemMap: {
1827
1827
  select: () => void;
1828
1828
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1829
1829
  disabled: boolean;
1830
- hasFeedback: boolean;
1831
1830
  colon: boolean;
1832
- autoLink: boolean;
1833
1831
  required: boolean;
1832
+ hasFeedback: boolean;
1833
+ autoLink: boolean;
1834
1834
  validateFirst: boolean;
1835
1835
  field: Omit< ApFieldTextProps, "value" | "onUpdate:value">;
1836
1836
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -1858,10 +1858,10 @@ export declare const apTableFormItemMap: {
1858
1858
  resizableTextArea: any;
1859
1859
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
1860
1860
  disabled: boolean;
1861
- hasFeedback: boolean;
1862
1861
  colon: boolean;
1863
- autoLink: boolean;
1864
1862
  required: boolean;
1863
+ hasFeedback: boolean;
1864
+ autoLink: boolean;
1865
1865
  validateFirst: boolean;
1866
1866
  field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
1867
1867
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -1874,7 +1874,7 @@ export declare const apTableFormItemMap: {
1874
1874
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1875
1875
  "update:value": (...args: any[]) => void;
1876
1876
  }, PublicProps, {
1877
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
1877
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
1878
1878
  mode: FieldMode;
1879
1879
  disabled: boolean;
1880
1880
  bordered: boolean;
@@ -2164,7 +2164,7 @@ export declare const apTableFormItemMap: {
2164
2164
  blur: () => void;
2165
2165
  resizableTextArea: any;
2166
2166
  }, {}, {}, {}, {
2167
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
2167
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
2168
2168
  mode: FieldMode;
2169
2169
  disabled: boolean;
2170
2170
  bordered: boolean;
@@ -2185,10 +2185,10 @@ export declare const apTableFormItemMap: {
2185
2185
  resizableTextArea: any;
2186
2186
  }, {}, {}, {}, {
2187
2187
  disabled: boolean;
2188
- hasFeedback: boolean;
2189
2188
  colon: boolean;
2190
- autoLink: boolean;
2191
2189
  required: boolean;
2190
+ hasFeedback: boolean;
2191
+ autoLink: boolean;
2192
2192
  validateFirst: boolean;
2193
2193
  field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
2194
2194
  }>;
@@ -2201,10 +2201,10 @@ export declare const apTableFormItemMap: {
2201
2201
  resizableTextArea: any;
2202
2202
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
2203
2203
  disabled: boolean;
2204
- hasFeedback: boolean;
2205
2204
  colon: boolean;
2206
- autoLink: boolean;
2207
2205
  required: boolean;
2206
+ hasFeedback: boolean;
2207
+ autoLink: boolean;
2208
2208
  validateFirst: boolean;
2209
2209
  field: Omit< ApFieldTextAreaProps, "value" | "onUpdate:value">;
2210
2210
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -2221,10 +2221,10 @@ export declare const apTableFormItemMap: {
2221
2221
  checkbox: {
2222
2222
  new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApFormItemCheckboxProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
2223
2223
  disabled: boolean;
2224
- hasFeedback: boolean;
2225
2224
  colon: boolean;
2226
- autoLink: boolean;
2227
2225
  required: boolean;
2226
+ hasFeedback: boolean;
2227
+ autoLink: boolean;
2228
2228
  validateFirst: boolean;
2229
2229
  field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
2230
2230
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
@@ -2236,10 +2236,10 @@ export declare const apTableFormItemMap: {
2236
2236
  Defaults: {};
2237
2237
  }, Readonly< ApFormItemCheckboxProps> & Readonly<{}>, {}, {}, {}, {}, {
2238
2238
  disabled: boolean;
2239
- hasFeedback: boolean;
2240
2239
  colon: boolean;
2241
- autoLink: boolean;
2242
2240
  required: boolean;
2241
+ hasFeedback: boolean;
2242
+ autoLink: boolean;
2243
2243
  validateFirst: boolean;
2244
2244
  field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
2245
2245
  }>;
@@ -2248,10 +2248,10 @@ export declare const apTableFormItemMap: {
2248
2248
  __isSuspense?: never;
2249
2249
  } & ComponentOptionsBase<Readonly< ApFormItemCheckboxProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
2250
2250
  disabled: boolean;
2251
- hasFeedback: boolean;
2252
2251
  colon: boolean;
2253
- autoLink: boolean;
2254
2252
  required: boolean;
2253
+ hasFeedback: boolean;
2254
+ autoLink: boolean;
2255
2255
  validateFirst: boolean;
2256
2256
  field: Omit< ApFieldCheckboxProps, "value" | "onUpdate:value">;
2257
2257
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -2271,10 +2271,10 @@ export declare const apTableFormItemMap: {
2271
2271
  blur: () => void;
2272
2272
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
2273
2273
  disabled: boolean;
2274
- hasFeedback: boolean;
2275
2274
  colon: boolean;
2276
- autoLink: boolean;
2277
2275
  required: boolean;
2276
+ hasFeedback: boolean;
2277
+ autoLink: boolean;
2278
2278
  validateFirst: boolean;
2279
2279
  field: Omit< ApFieldTextPasswordProps, "value" | "onUpdate:value">;
2280
2280
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -2285,7 +2285,7 @@ export declare const apTableFormItemMap: {
2285
2285
  readonly mode?: FieldMode | undefined;
2286
2286
  readonly class?: unknown;
2287
2287
  readonly style?: unknown;
2288
- readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password" | undefined;
2288
+ readonly type?: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password" | undefined;
2289
2289
  readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
2290
2290
  readonly lazy?: boolean | undefined;
2291
2291
  readonly size?: ButtonSize;
@@ -2361,7 +2361,7 @@ export declare const apTableFormItemMap: {
2361
2361
  "update:value": (...args: any[]) => void;
2362
2362
  "update:visible": (...args: any[]) => void;
2363
2363
  }, string, {
2364
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
2364
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
2365
2365
  mode: FieldMode;
2366
2366
  visible: boolean;
2367
2367
  disabled: boolean;
@@ -2392,7 +2392,7 @@ export declare const apTableFormItemMap: {
2392
2392
  $nextTick: nextTick;
2393
2393
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
2394
2394
  } & Readonly<{
2395
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
2395
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
2396
2396
  mode: FieldMode;
2397
2397
  visible: boolean;
2398
2398
  disabled: boolean;
@@ -2437,10 +2437,10 @@ export declare const apTableFormItemMap: {
2437
2437
  blur: () => void;
2438
2438
  }, {}, {}, {}, {
2439
2439
  disabled: boolean;
2440
- hasFeedback: boolean;
2441
2440
  colon: boolean;
2442
- autoLink: boolean;
2443
2441
  required: boolean;
2442
+ hasFeedback: boolean;
2443
+ autoLink: boolean;
2444
2444
  validateFirst: boolean;
2445
2445
  field: Omit< ApFieldTextPasswordProps, "value" | "onUpdate:value">;
2446
2446
  }>;
@@ -2452,10 +2452,10 @@ export declare const apTableFormItemMap: {
2452
2452
  blur: () => void;
2453
2453
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
2454
2454
  disabled: boolean;
2455
- hasFeedback: boolean;
2456
2455
  colon: boolean;
2457
- autoLink: boolean;
2458
2456
  required: boolean;
2457
+ hasFeedback: boolean;
2458
+ autoLink: boolean;
2459
2459
  validateFirst: boolean;
2460
2460
  field: Omit< ApFieldTextPasswordProps, "value" | "onUpdate:value">;
2461
2461
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -2482,10 +2482,10 @@ export declare const apTableFormItemMap: {
2482
2482
  request: (currentNode?: LegacyDataNode, clear?: boolean) => void;
2483
2483
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
2484
2484
  disabled: boolean;
2485
- hasFeedback: boolean;
2486
2485
  colon: boolean;
2487
- autoLink: boolean;
2488
2486
  required: boolean;
2487
+ hasFeedback: boolean;
2488
+ autoLink: boolean;
2489
2489
  validateFirst: boolean;
2490
2490
  field: Omit< ApFieldTreeSelectProps, "value" | "onUpdate:value">;
2491
2491
  }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
@@ -3276,10 +3276,10 @@ export declare const apTableFormItemMap: {
3276
3276
  request: (currentNode?: LegacyDataNode, clear?: boolean) => void;
3277
3277
  }, {}, {}, {}, {
3278
3278
  disabled: boolean;
3279
- hasFeedback: boolean;
3280
3279
  colon: boolean;
3281
- autoLink: boolean;
3282
3280
  required: boolean;
3281
+ hasFeedback: boolean;
3282
+ autoLink: boolean;
3283
3283
  validateFirst: boolean;
3284
3284
  field: Omit< ApFieldTreeSelectProps, "value" | "onUpdate:value">;
3285
3285
  }>;
@@ -3292,10 +3292,10 @@ export declare const apTableFormItemMap: {
3292
3292
  request: (currentNode?: LegacyDataNode, clear?: boolean) => void;
3293
3293
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
3294
3294
  disabled: boolean;
3295
- hasFeedback: boolean;
3296
3295
  colon: boolean;
3297
- autoLink: boolean;
3298
3296
  required: boolean;
3297
+ hasFeedback: boolean;
3298
+ autoLink: boolean;
3299
3299
  validateFirst: boolean;
3300
3300
  field: Omit< ApFieldTreeSelectProps, "value" | "onUpdate:value">;
3301
3301
  }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -3383,7 +3383,7 @@ export declare const apTableRenderItemMap: {
3383
3383
  unCheckedValue: string | number | boolean;
3384
3384
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3385
3385
  text: DefineComponent<ApFieldTextProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextProps> & Readonly<{}>, {
3386
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
3386
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
3387
3387
  mode: FieldMode;
3388
3388
  disabled: boolean;
3389
3389
  bordered: boolean;
@@ -3392,7 +3392,7 @@ export declare const apTableRenderItemMap: {
3392
3392
  allowClear: boolean;
3393
3393
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLSpanElement>;
3394
3394
  textArea: DefineComponent<ApFieldTextAreaProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextAreaProps> & Readonly<{}>, {
3395
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
3395
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
3396
3396
  mode: FieldMode;
3397
3397
  disabled: boolean;
3398
3398
  bordered: boolean;
@@ -3417,7 +3417,7 @@ export declare const apTableRenderItemMap: {
3417
3417
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
3418
3418
  status: DefineComponent<ApTableStatusProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApTableStatusProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
3419
3419
  password: DefineComponent<ApFieldTextPasswordProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApFieldTextPasswordProps> & Readonly<{}>, {
3420
- type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "tel" | "url" | "email" | "image" | "datetime-local" | "file" | "password";
3420
+ type: "number" | "reset" | "submit" | "button" | "search" | "time" | "month" | "date" | "week" | "hidden" | "checkbox" | "radio" | "color" | "text" | "range" | "image" | "tel" | "url" | "email" | "datetime-local" | "file" | "password";
3421
3421
  mode: FieldMode;
3422
3422
  visible: boolean;
3423
3423
  disabled: boolean;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const v=require("../utils/returnData.js"),N=require("../hooks/useOss.js"),i=require("@aplus-frontend/antdv"),O=require("@ant-design/icons-vue"),b=require("../utils/accept.js"),D=require("../../config-provider/hooks/use-locale.js"),$=require("../../config-provider/hooks/use-namespace.js"),W={class:"multiple-file-context"},G={key:0},H={key:1},J=e.defineComponent({__name:"MultipleFile",setup(K,{expose:q}){const{t:a}=D.useLocale(),{b:w}=$.useNamespace("ap-upload-multiple-file"),{put:M}=N.useOss(),R=e.inject("theme"),S=e.inject("dirName"),h=e.inject("accept")||"*",y=e.inject("maxSize")??500,T=e.inject("title")||a("ap.apUpload.uploadFile"),d=e.inject("subTitle"),r=e.inject("maxCount")??10,l=e.inject("uploadingCount"),E=e.inject("beforeUpload"),j=e.inject("customRequest"),A=e.inject("getOssAccess"),B=e.inject("maxSizeErrorMsg"),F=e.inject("maxCountErrorMsg"),L=e.inject("acceptErrorMsg"),U=e.inject("onRemove"),x=e.inject("showUploadErrorMsg"),s=e.inject("value"),u=[],m=e.inject("needName"),p=e.ref(null);e.watch(()=>s?.value,function(t){!p?.value?.fileList?.length&&t&&C(t)},{immediate:!0});function C(t){if(!t){c=[],p.value.fileList=[],s.value=void 0,u.splice(0,u.length);return}e.nextTick(()=>{const n=t.map(o=>{const g=v.getPath(m,o),V=v.getName(m,o),k=new File([o],V,{});return k.response=g,k.uid=g,k});if(r&&n.length>r){i.message.warning(a("ap.apUpload.fileInitializationException",{maxCount:r}));return}n.forEach(o=>{c.push(o),u.push({uid:o.uid,path:o.response})}),p.value.fileList=n,s.value=t})}q({setValue:C});let c=[],_;function f(t){setTimeout(()=>{const n=p.value.fileList.findIndex(o=>o.uid===t.uid);n>=0&&p.value.fileList.splice(n,1)})}async function z(t){if(r&&r>1&&c.length>=r)return clearTimeout(_),_=setTimeout(()=>{i.message.warning(F||a("ap.apUpload.maxUploadFiles",{maxCount:r}))}),f(t),!1;if(t.size>y*1024*1024)return i.message.warning(B||a("ap.apUpload.maxUploadFileSize",{maxSize:y})),f(t),!1;if(!b.fileMatchesAccept(t,h))return i.message.warning(L||a("ap.apUpload.fileFormatNotSupported")),f(t),!1;if(typeof E=="function"&&await E(t)===!1)return f(t),!1;r&&r===1&&(c=[],s.value=void 0),c.push(t)}async function I(t){if(l.value++,typeof j=="function"){j({onProgress:n=>{setTimeout(()=>{t.onProgress({percent:n})})},onError:n=>{x&&i.message.warning(n||a("ap.apUpload.networkAnomaly")),setTimeout(()=>{t.onError({name:n,message:n})}),l.value--},onSuccess:n=>{setTimeout(()=>{t.onSuccess(n)}),s.value=[...s.value||[],v.getReturnData(m,n,t.file.name)],u.push({uid:t.file.uid,path:n}),l.value--},file:t.file});return}try{const n=await N.getOssInstance(A);t.file.oss=n,M({file:t.file,dirName:S,oss:n,successCallBack(o){t.onSuccess(o),s.value=[...s.value||[],v.getReturnData(m,o,t.file.name)],u.push({uid:t.file.uid,path:o}),l.value--},errorCallBack(o){x&&i.message.warning(o||a("ap.apUpload.networkAnomaly")),t.onError({name:o,message:o}),l.value--},progressCallBack(o){t.onProgress({percent:o})}})}catch(n){x&&i.message.warning(typeof n?.message=="string"?n.message:a("ap.apUpload.networkAnomaly")),t.onError({name:n?.message||a("ap.apUpload.networkAnomaly"),message:n?.message||a("ap.apUpload.networkAnomaly")}),l.value--}}function P(t){if(U&&U?.(t),t.response){if(Array.isArray(s.value)){const o=u.findIndex(g=>g.uid===t.uid);o>=0&&(s?.value.splice(o,1),u.splice(o,1)),s.value.length===0&&(s.value=void 0)}}else t?.oss?.pauseUpload();const n=c.findIndex(o=>o.uid===t.uid);return c.splice(n,1),Promise.resolve(!0)}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(w)()]:!0,[e.unref(w)("admin")]:e.unref(R)==="admin"})},[e.createVNode(e.unref(i.Upload),{ref_key:"uploadRef",ref:p,accept:e.unref(h),multiple:"","max-count":e.unref(r),progress:{strokeWidth:3,showInfo:!1,strokeColor:"#0070FF"},"before-upload":z,"custom-request":I,onRemove:P},{default:e.withCtx(()=>[e.createElementVNode("div",W,[e.createVNode(e.unref(i.Button),{class:"file-btn"},{default:e.withCtx(()=>[e.createVNode(e.unref(O.UploadOutlined)),e.createTextVNode(" "+e.toDisplayString(e.unref(T)),1)]),_:1}),e.createElementVNode("div",{class:"sub-title",onClick:n[0]||(n[0]=e.withModifiers(()=>{},["stop"]))},[typeof e.unref(d)=="string"?(e.openBlock(),e.createElementBlock("div",G,e.toDisplayString(e.unref(d)||`${e.unref(a)("ap.apUpload.supportExtension")}:${e.unref(b.getAcceptText)(e.unref(h))}`),1)):e.unref(d)?(e.openBlock(),e.createElementBlock("div",H,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d))))])):e.createCommentVNode("",!0)])])]),_:1},8,["accept","max-count"])],2))}});exports.default=J;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../config-provider/index.js");const h=require("../utils/returnData.js"),C=require("../hooks/useOss.js"),i=require("@aplus-frontend/antdv"),q=require("@ant-design/icons-vue"),F=require("../utils/accept.js"),G=require("../../config-provider/hooks/use-global-config.js"),W=require("../../config-provider/hooks/use-locale.js"),H=require("../../config-provider/hooks/use-namespace.js"),J={class:"multiple-file-context"},K={key:0},Q={key:1},X=e.defineComponent({__name:"MultipleFile",setup(Y,{expose:R}){const y=G.useGlobalConfig("downloadCenterTriggerConfig"),{t:a}=W.useLocale(),{b:k}=H.useNamespace("ap-upload-multiple-file"),{put:A}=C.useOss(),B=e.inject("theme"),M=e.inject("dirName"),w=e.inject("accept")||"*",j=e.inject("maxSize")??500,S=e.inject("title")||a("ap.apUpload.uploadFile"),d=e.inject("subTitle"),r=e.inject("maxCount")??10,u=e.inject("uploadingCount"),E=e.inject("beforeUpload"),N=e.inject("customRequest"),U=e.inject("getOssAccess"),I=e.inject("maxSizeErrorMsg"),L=e.inject("maxCountErrorMsg"),O=e.inject("acceptErrorMsg"),b=e.inject("onRemove"),x=e.inject("showUploadErrorMsg"),s=e.inject("value"),l=[],m=e.inject("needName"),p=e.ref(null);e.watch(()=>s?.value,function(t){!p?.value?.fileList?.length&&t&&_(t)},{immediate:!0});function _(t){if(!t){c=[],p.value.fileList=[],s.value=void 0,l.splice(0,l.length);return}e.nextTick(()=>{const o=t.map(n=>{const g=h.getPath(m,n),$=h.getName(m,n),v=new File([n],$,{});return v.response=g,v.uid=g,v.status="done",v});if(r&&o.length>r){i.message.warning(a("ap.apUpload.fileInitializationException",{maxCount:r}));return}o.forEach(n=>{c.push(n),l.push({uid:n.uid,path:n.response})}),p.value.fileList=o,s.value=t})}R({setValue:_});let c=[],T;function f(t){setTimeout(()=>{const o=p.value.fileList.findIndex(n=>n.uid===t.uid);o>=0&&p.value.fileList.splice(o,1)})}async function V(t){if(r&&r>1&&c.length>=r)return clearTimeout(T),T=setTimeout(()=>{i.message.warning(L||a("ap.apUpload.maxUploadFiles",{maxCount:r}))}),f(t),!1;if(t.size>j*1024*1024)return i.message.warning(I||a("ap.apUpload.maxUploadFileSize",{maxSize:j})),f(t),!1;if(!F.fileMatchesAccept(t,w))return i.message.warning(O||a("ap.apUpload.fileFormatNotSupported")),f(t),!1;if(typeof E=="function"&&await E(t)===!1)return f(t),!1;r&&r===1&&(c=[],s.value=void 0),c.push(t)}async function D(t){if(u.value++,typeof N=="function"){N({onProgress:o=>{setTimeout(()=>{t.onProgress({percent:o})})},onError:o=>{x&&i.message.warning(o||a("ap.apUpload.networkAnomaly")),setTimeout(()=>{t.onError({name:o,message:o})}),u.value--},onSuccess:o=>{setTimeout(()=>{t.onSuccess(o)}),s.value=[...s.value||[],h.getReturnData(m,o,t.file.name)],l.push({uid:t.file.uid,path:o}),u.value--},file:t.file});return}try{const o=await C.getOssInstance(U);t.file.oss=o,A({file:t.file,dirName:M,oss:o,successCallBack(n){t.onSuccess(n),s.value=[...s.value||[],h.getReturnData(m,n,t.file.name)],l.push({uid:t.file.uid,path:n}),u.value--},errorCallBack(n){x&&i.message.warning(n||a("ap.apUpload.networkAnomaly")),t.onError({name:n,message:n}),u.value--},progressCallBack(n){t.onProgress({percent:n})}})}catch(o){x&&i.message.warning(typeof o?.message=="string"?o.message:a("ap.apUpload.networkAnomaly")),t.onError({name:o?.message||a("ap.apUpload.networkAnomaly"),message:o?.message||a("ap.apUpload.networkAnomaly")}),u.value--}}function z(t){if(b&&b?.(t),t.response){if(Array.isArray(s.value)){const n=l.findIndex(g=>g.uid===t.uid);n>=0&&(s?.value.splice(n,1),l.splice(n,1)),s.value.length===0&&(s.value=void 0)}}else t?.oss?.pauseUpload();const o=c.findIndex(n=>n.uid===t.uid);return c.splice(o,1),Promise.resolve(!0)}const P=async t=>{if(y.value?.trigger){let o=[t].map(n=>({objectName:n.response,fileName:n.name}));y.value?.trigger?.(o)}else(await C.getOssInstance(U)).downloadFile([{path:t.response,fileName:t.name}])};return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass({[e.unref(k)()]:!0,[e.unref(k)("admin")]:e.unref(B)==="admin"})},[e.createVNode(e.unref(i.Upload),{ref_key:"uploadRef",ref:p,accept:e.unref(w),multiple:"","max-count":e.unref(r),progress:{strokeWidth:3,showInfo:!1,strokeColor:"#0070FF"},"before-upload":V,"custom-request":D,"show-upload-list":{showDownloadIcon:!0,showRemoveIcon:!0},onRemove:z,onDownload:P},{downloadIcon:e.withCtx(()=>[e.createVNode(e.unref(q.VerticalAlignBottomOutlined))]),default:e.withCtx(()=>[e.createElementVNode("div",J,[e.createVNode(e.unref(i.Button),{class:"file-btn"},{default:e.withCtx(()=>[e.createVNode(e.unref(q.UploadOutlined)),e.createTextVNode(" "+e.toDisplayString(e.unref(S)),1)]),_:1}),e.createElementVNode("div",{class:"sub-title",onClick:o[0]||(o[0]=e.withModifiers(()=>{},["stop"]))},[typeof e.unref(d)=="string"?(e.openBlock(),e.createElementBlock("div",K,e.toDisplayString(e.unref(d)||`${e.unref(a)("ap.apUpload.supportExtension")}:${e.unref(F.getAcceptText)(e.unref(w))}`),1)):e.unref(d)?(e.openBlock(),e.createElementBlock("div",Q,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(d))))])):e.createCommentVNode("",!0)])])]),_:1},8,["accept","max-count"])],2))}});exports.default=X;
@@ -22,6 +22,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
22
22
  type: StringConstructor;
23
23
  default: string;
24
24
  };
25
+ maxWidth: {
26
+ type: (NumberConstructor | StringConstructor)[];
27
+ default: string;
28
+ };
25
29
  needName: {
26
30
  type: PropType<{
27
31
  nameKey?: string;
@@ -63,6 +67,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
63
67
  type: StringConstructor;
64
68
  default: string;
65
69
  };
70
+ maxWidth: {
71
+ type: (NumberConstructor | StringConstructor)[];
72
+ default: string;
73
+ };
66
74
  needName: {
67
75
  type: PropType<{
68
76
  nameKey?: string;
@@ -86,6 +94,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
86
94
  }>> & Readonly<{}>, {
87
95
  size: string;
88
96
  disabled: boolean;
97
+ maxWidth: string | number;
89
98
  needName: {
90
99
  nameKey?: string;
91
100
  pathKey?: string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const M=require("./constans.js"),m=require("../../ap-download/utils/getFileInfo.js"),_=require("../../ap-download/hooks/index.js"),w=require("lodash-unified"),f=require("@ant-design/icons-vue"),k=require("../../utils/warning.js"),G=require("../../config-provider/hooks/use-namespace.js"),g=require("../../config-provider/hooks/use-global-config.js"),U=require("../../config-provider/hooks/use-locale.js"),j=e.defineComponent({name:"ApAttachment",props:M.ApAttachmentProps(),setup(t){const{b:A,e:a}=G.useNamespace("ap-attachment"),p=g.useGlobalConfig("uiMode"),F=g.useGlobalConfig("apUpload"),v=g.useGlobalConfig("downloadCenterTriggerConfig"),{lang:y,t:s}=U.useLocale(),o=e.ref(!1),c=e.ref(""),r=e.useSlots(),b=e.computed(()=>y.value==="zh-cn"?"zh_CN":"en_US"),u=e.computed(()=>t.attachmentList.length===1),N=e.computed(()=>t.needName?t.attachmentList.length>0&&t.needName&&t.needName.nameKey?t.attachmentList[0][t.needName.nameKey]:"":t.attachmentList.length>0?t.attachmentList[0].fileName:""),q=e.computed(()=>u.value?N.value:s("ap.apAttachment.downloadall")),h=e.computed(()=>t.color?t.color:p.value==="aplus"?"#0070FF":"#1890FF"),O=e.computed(()=>({width:u.value?"auto":"266px"})),L=e.computed(()=>({"--download-main-color":h.value,"--download-main-color-opacity":m.getHexWithOpacity(h.value,.6)})),T=e.computed(()=>t.getOssAccess||F.value?.getOssAccess),x=e.computed(()=>{const l=r.default?r.default()[0]:null;return l?e.cloneVNode(l,{style:{"font-size":"16px"}}):null}),d=w.debounce(async(l,i)=>{if(!t.disabled){o.value=!0,i&&(c.value=i);try{const n=w.isArray(e.toRaw(l))?e.toRaw(l):[e.toRaw(l)];if(v.value?.trigger){const S=m.getFileInfo(t.needName,n).map(V=>({objectName:V.path,fileName:V.fileName}));v.value?.trigger(S)}else await(await _.useOssInit(T.value,e.unref(b))).downloadFile(m.getFileInfo(t.needName,n))}catch(n){k.warning(!1,n)}finally{o.value=!1,c.value=""}}},500),I=l=>l&&l.length>0?e.createVNode("ul",{class:[a("file-list")],style:L.value},[l.map((i,n)=>e.createVNode("li",{key:n,class:[a("file-item")],onClick:()=>d(i,n+1)},[o.value&&c.value===n+1?e.createVNode("span",{class:[a("spin")]},[e.createVNode(f.LoadingOutlined,{spin:!0},null)]):null,i.fileName])),e.createVNode("li",{class:[a("down-load-all")],onClick:()=>d(t.attachmentList,"all")},[o.value&&c.value==="all"?e.createVNode("span",{class:[a("spin")]},[e.createVNode(f.LoadingOutlined,{spin:!0},null)]):null,s("ap.apAttachment.downloadall")])]):null;return()=>t.attachmentList?.length>0&&e.createVNode("div",{class:[A()],style:[O.value,L.value]},[e.createVNode(C.Tooltip,{title:q.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[a("content")],onClick:()=>d(u.value?t.attachmentList[0]:t.attachmentList,"global")},[o.value&&c.value==="global"?e.createVNode("div",{class:[a("spin")]},[e.createVNode(f.LoadingOutlined,{spin:!0},null)]):null,r.default?e.createVNode("div",{class:[a("text-render")]},[x.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[a("text-inner")]},[N.value])])]}),e.createVNode(C.Popover,{content:I(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!u.value&&e.createVNode("div",{class:[a("more")]},[s("ap.apAttachment.more")])]})])}});exports.default=j;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),C=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const M=require("./constans.js"),m=require("../../ap-download/utils/getFileInfo.js"),S=require("../../ap-download/hooks/index.js"),w=require("lodash-unified"),f=require("@ant-design/icons-vue"),_=require("../../utils/warning.js"),k=require("../../config-provider/hooks/use-namespace.js"),g=require("../../config-provider/hooks/use-global-config.js"),G=require("../../config-provider/hooks/use-locale.js"),U=e.defineComponent({name:"ApAttachment",props:M.ApAttachmentProps(),setup(t){const{b:F,e:a}=k.useNamespace("ap-attachment"),y=g.useGlobalConfig("uiMode"),A=g.useGlobalConfig("apUpload"),v=g.useGlobalConfig("downloadCenterTriggerConfig"),{lang:b,t:s}=G.useLocale(),o=e.ref(!1),c=e.ref(""),u=e.useSlots(),q=e.computed(()=>b.value==="zh-cn"?"zh_CN":"en_US"),r=e.computed(()=>t.attachmentList.length===1),N=e.computed(()=>t.needName?t.attachmentList.length>0&&t.needName&&t.needName.nameKey?t.attachmentList[0][t.needName.nameKey]:"":t.attachmentList.length>0?t.attachmentList[0].fileName:""),O=e.computed(()=>r.value?N.value:s("ap.apAttachment.downloadall")),h=e.computed(()=>t.color?t.color:y.value==="aplus"?"#0070FF":"#1890FF"),L=e.computed(()=>({"--download-main-color":h.value,"--download-main-color-opacity":m.getHexWithOpacity(h.value,.6)})),p=e.computed(()=>t.getOssAccess||A.value?.getOssAccess),T=e.computed(()=>{const l=u.default?u.default()[0]:null;return l?e.cloneVNode(l,{style:{"font-size":"16px"}}):null}),d=w.debounce(async(l,i)=>{if(!t.disabled){o.value=!0,i&&(c.value=i);try{const n=w.isArray(e.toRaw(l))?e.toRaw(l):[e.toRaw(l)];if(v.value?.trigger){const P=m.getFileInfo(t.needName,n).map(V=>({objectName:V.path,fileName:V.fileName}));v.value?.trigger(P)}else await(await S.useOssInit(p.value,e.unref(q))).downloadFile(m.getFileInfo(t.needName,n))}catch(n){_.warning(!1,n)}finally{o.value=!1,c.value=""}}},500),x=l=>l&&l.length>0?e.createVNode("ul",{class:[a("file-list")],style:L.value},[l.map((i,n)=>e.createVNode("li",{key:n,class:[a("file-item")],onClick:()=>d(i,n+1)},[o.value&&c.value===n+1?e.createVNode("span",{class:[a("spin")]},[e.createVNode(f.LoadingOutlined,{spin:!0},null)]):null,i.fileName])),e.createVNode("li",{class:[a("down-load-all")],onClick:()=>d(t.attachmentList,"all")},[o.value&&c.value==="all"?e.createVNode("span",{class:[a("spin")]},[e.createVNode(f.LoadingOutlined,{spin:!0},null)]):null,s("ap.apAttachment.downloadall")])]):null;return()=>t.attachmentList?.length>0&&e.createVNode("div",{class:[F()],style:[L.value]},[e.createVNode(C.Tooltip,{title:O.value,placement:t.textToolTipPlacement,color:t.toolTipBgColor},{default:()=>[e.createVNode("div",{class:[a("content")],onClick:()=>d(r.value?t.attachmentList[0]:t.attachmentList,"global")},[o.value&&c.value==="global"?e.createVNode("div",{class:[a("spin")]},[e.createVNode(f.LoadingOutlined,{spin:!0},null)]):null,u.default?e.createVNode("div",{class:[a("text-render")]},[T.value,e.createTextVNode(" ")]):null,e.createVNode("div",{class:[a("text-inner")],style:{"max-width":t.maxWidth?t.maxWidth+"px":"auto"}},[N.value])])]}),e.createVNode(C.Popover,{content:x(t.attachmentList),placement:t.fileMorePopoverPlacement,color:"#fff"},{default:()=>[!r.value&&e.createVNode("div",{class:[a("more")]},[s("ap.apAttachment.more")])]})])}});exports.default=U;
@@ -21,6 +21,10 @@ export declare const ApAttachmentProps: () => {
21
21
  type: StringConstructor;
22
22
  default: string;
23
23
  };
24
+ maxWidth: {
25
+ type: (NumberConstructor | StringConstructor)[];
26
+ default: string;
27
+ };
24
28
  needName: {
25
29
  type: PropType<{
26
30
  nameKey?: string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({attachmentList:{type:Array,default:[],required:!0},textToolTipPlacement:{type:String,default:"topLeft"},fileMorePopoverPlacement:{type:String,default:"bottom"},color:{type:String},size:{type:String,default:"middle"},needName:{type:Object,default:()=>({nameKey:"fileName",pathKey:"filePath"})},getOssAccess:{type:Function},disabled:{type:Boolean,default:!1},toolTipBgColor:{type:String}});exports.ApAttachmentProps=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=()=>({attachmentList:{type:Array,default:[],required:!0},textToolTipPlacement:{type:String,default:"topLeft"},fileMorePopoverPlacement:{type:String,default:"bottom"},color:{type:String},size:{type:String,default:"middle"},maxWidth:{type:[Number,String],default:"auto"},needName:{type:Object,default:()=>({nameKey:"fileName",pathKey:"filePath"})},getOssAccess:{type:Function},disabled:{type:Boolean,default:!1},toolTipBgColor:{type:String}});exports.ApAttachmentProps=e;