@aplus-frontend/ui 7.11.4 → 7.12.1

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 (91) hide show
  1. package/es/src/ag-grid/editable/form-item.vue.mjs +1 -1
  2. package/es/src/ap-action/group/index.vue.d.ts +2 -2
  3. package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  4. package/es/src/ap-field/date/index.vue.d.ts +1 -1
  5. package/es/src/ap-field/date/read.vue.d.ts +1 -1
  6. package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
  7. package/es/src/ap-field/date-range/read.vue.d.ts +1 -1
  8. package/es/src/ap-field/index.d.ts +2 -2
  9. package/es/src/ap-field/interface.d.ts +6 -2
  10. package/es/src/ap-field/number/index.vue.d.ts +21 -1
  11. package/es/src/ap-field/number/index.vue.mjs +18 -16
  12. package/es/src/ap-field/number/read.vue2.mjs +1 -0
  13. package/es/src/ap-field/radio/index.vue.d.ts +10 -0
  14. package/es/src/ap-field/radio/index.vue.mjs +2 -2
  15. package/es/src/ap-field/radio/read.vue2.mjs +2 -2
  16. package/es/src/ap-field/rate/index.vue.d.ts +326 -6
  17. package/es/src/ap-field/rate/index.vue.mjs +7 -6
  18. package/es/src/ap-field/second/index.vue.d.ts +1 -1
  19. package/es/src/ap-field/select/index.vue.d.ts +4 -0
  20. package/es/src/ap-field/select/index.vue.mjs +5 -4
  21. package/es/src/ap-field/select/read.vue2.mjs +1 -0
  22. package/es/src/ap-field/slider/index.vue.d.ts +1 -1
  23. package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
  24. package/es/src/ap-form/drawer-form/index.vue.d.ts +10 -5
  25. package/es/src/ap-form/items/number/index.vue.d.ts +52 -30
  26. package/es/src/ap-form/items/radio/index.vue.d.ts +20 -0
  27. package/es/src/ap-form/items/select/index.vue.d.ts +6 -0
  28. package/es/src/ap-form/items/tree-select/index.vue.d.ts +6 -6
  29. package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
  30. package/es/src/ap-table/constants.d.ts +45 -21
  31. package/es/src/business/ap-batch-action-group/index.d.ts +7 -1
  32. package/es/src/business/ap-table-modal/index.d.ts +7 -6
  33. package/es/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
  34. package/es/src/business/ap-table-modal/table-modal.vue2.mjs +7 -7
  35. package/es/src/business/ap-upload/apUpload.vue.d.ts +3 -3
  36. package/es/src/business/ap-upload/apUpload.vue.mjs +1 -1
  37. package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +3 -3
  38. package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +13 -12
  39. package/es/src/config-provider/config-provider-props.d.ts +29 -1
  40. package/es/src/config-provider/config-provider.d.ts +64 -1
  41. package/es/src/config-provider/hooks/use-global-config.d.ts +29 -1
  42. package/es/src/config-provider/index.d.ts +106 -1
  43. package/es/src/utils/config-provider-preset.d.ts +15 -1
  44. package/es/src/version.d.ts +1 -1
  45. package/es/src/version.mjs +1 -1
  46. package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
  47. package/lib/src/ap-action/group/index.vue.d.ts +2 -2
  48. package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
  49. package/lib/src/ap-field/date/index.vue.d.ts +1 -1
  50. package/lib/src/ap-field/date/read.vue.d.ts +1 -1
  51. package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
  52. package/lib/src/ap-field/date-range/read.vue.d.ts +1 -1
  53. package/lib/src/ap-field/index.d.ts +2 -2
  54. package/lib/src/ap-field/interface.d.ts +6 -2
  55. package/lib/src/ap-field/number/index.vue.d.ts +21 -1
  56. package/lib/src/ap-field/number/index.vue.js +1 -1
  57. package/lib/src/ap-field/number/read.vue2.js +1 -1
  58. package/lib/src/ap-field/radio/index.vue.d.ts +10 -0
  59. package/lib/src/ap-field/radio/index.vue.js +1 -1
  60. package/lib/src/ap-field/radio/read.vue2.js +1 -1
  61. package/lib/src/ap-field/rate/index.vue.d.ts +326 -6
  62. package/lib/src/ap-field/rate/index.vue.js +1 -1
  63. package/lib/src/ap-field/second/index.vue.d.ts +1 -1
  64. package/lib/src/ap-field/select/index.vue.d.ts +4 -0
  65. package/lib/src/ap-field/select/index.vue.js +1 -1
  66. package/lib/src/ap-field/select/read.vue2.js +1 -1
  67. package/lib/src/ap-field/slider/index.vue.d.ts +1 -1
  68. package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
  69. package/lib/src/ap-form/drawer-form/index.vue.d.ts +10 -5
  70. package/lib/src/ap-form/items/number/index.vue.d.ts +52 -30
  71. package/lib/src/ap-form/items/radio/index.vue.d.ts +20 -0
  72. package/lib/src/ap-form/items/select/index.vue.d.ts +6 -0
  73. package/lib/src/ap-form/items/tree-select/index.vue.d.ts +6 -6
  74. package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
  75. package/lib/src/ap-table/constants.d.ts +45 -21
  76. package/lib/src/business/ap-batch-action-group/index.d.ts +7 -1
  77. package/lib/src/business/ap-table-modal/index.d.ts +7 -6
  78. package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +3 -2
  79. package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
  80. package/lib/src/business/ap-upload/apUpload.vue.d.ts +3 -3
  81. package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
  82. package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +3 -3
  83. package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -2
  84. package/lib/src/config-provider/config-provider-props.d.ts +29 -1
  85. package/lib/src/config-provider/config-provider.d.ts +64 -1
  86. package/lib/src/config-provider/hooks/use-global-config.d.ts +29 -1
  87. package/lib/src/config-provider/index.d.ts +106 -1
  88. package/lib/src/utils/config-provider-preset.d.ts +15 -1
  89. package/lib/src/version.d.ts +1 -1
  90. package/lib/src/version.js +1 -1
  91. package/package.json +3 -3
@@ -53,8 +53,13 @@ declare const _default: DefineComponent<ApFieldRadioProps, {
53
53
  type: PropType<(val: any) => void>;
54
54
  default: (val: any) => void;
55
55
  };
56
+ vertical: {
57
+ type: BooleanConstructor;
58
+ default: boolean;
59
+ };
56
60
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
57
61
  size: "default" | "small" | "large";
62
+ vertical: boolean;
58
63
  onChange: (e: RadioChangeEvent) => void;
59
64
  block: boolean;
60
65
  disabled: boolean;
@@ -103,8 +108,13 @@ declare const _default: DefineComponent<ApFieldRadioProps, {
103
108
  type: PropType<(val: any) => void>;
104
109
  default: (val: any) => void;
105
110
  };
111
+ vertical: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
106
115
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
107
116
  size: "default" | "small" | "large";
117
+ vertical: boolean;
108
118
  onChange: (e: RadioChangeEvent) => void;
109
119
  block: boolean;
110
120
  disabled: boolean;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv"),i=require("lodash-unified");require("../../config-provider/index.js");require("../../hooks/index.js");const T=require("../hooks/use-options.js"),_=require("../style/index.js"),c=require("./helper.js"),V=require("../../hooks/useControllableValue.js"),C=require("../../config-provider/hooks/use-namespace.js"),O=e.defineComponent({name:"ApFieldRadio",__name:"index",props:{mode:{default:"edit"},class:{},style:{},prefixCls:{},value:{},size:{},options:{},disabled:{type:Boolean,default:void 0},name:{},buttonStyle:{},id:{},block:{type:Boolean},optionType:{},onChange:{},"onUpdate:value":{},emptyText:{default:"--"},request:{},vertical:{type:Boolean,default:!1}},emits:["update:value"],setup(p,{expose:d,emit:f}){const t=p,v=f,n=e.shallowRef(),{options:a,updateOptions:m}=T.default(t),{value:u,updateValue:y}=V.useControllableValue(t,v),{b:k,m:q}=C.useNamespace("field-radio"),g=_.default("field"),l=e.ref(!1);e.onMounted(()=>{t.request&&(l.value=!0,t.request?.().then(o=>m(o)).finally(()=>{l.value=!1}))});const b=e.computed(()=>{const o=e.unref(u);if(i.isNil(o))return t.emptyText;const r=a.value?.find(x=>o===c.getOptionValue(x));return c.getOptionLabel(r)||t.emptyText});function B(){n.value?.focus()}function h(){n.value?.blur()}return d({focus:B,blur:h}),(o,r)=>o.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(b.value),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.value?(e.openBlock(),e.createBlock(e.unref(s.Spin),{key:0,size:"small"})):(e.openBlock(),e.createBlock(e.unref(s.RadioGroup),e.mergeProps({key:1},e.unref(i.omit)(t,["value","onUpdate:value","options","request","vertical"]),{ref_key:"radioGroupRef",ref:n,value:e.unref(u),options:e.unref(a),class:[e.unref(k)(),o.vertical?e.unref(q)("vertical"):null,e.unref(g)],"onUpdate:value":e.unref(y)}),null,16,["value","options","class","onUpdate:value"]))],64))}});exports.default=O;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv"),i=require("lodash-unified");require("../../config-provider/index.js");require("../../hooks/index.js");const T=require("../hooks/use-options.js"),_=require("../style/index.js"),c=require("./helper.js"),V=require("../../hooks/useControllableValue.js"),C=require("../../config-provider/hooks/use-namespace.js"),O=e.defineComponent({name:"ApFieldRadio",__name:"index",props:{mode:{default:"edit"},class:{},style:{},prefixCls:{},value:{},size:{},options:{},disabled:{type:Boolean,default:void 0},name:{},buttonStyle:{},id:{},block:{type:Boolean},optionType:{},onChange:{},"onUpdate:value":{},vertical:{type:Boolean,default:!1},emptyText:{default:"--"},request:{}},emits:["update:value"],setup(p,{expose:d,emit:f}){const t=p,v=f,n=e.shallowRef(),{options:a,updateOptions:m}=T.default(t),{value:u,updateValue:y}=V.useControllableValue(t,v),{b:k,m:q}=C.useNamespace("field-radio"),g=_.default("field"),l=e.ref(!1);e.onMounted(()=>{t.request&&(l.value=!0,t.request?.().then(o=>m(o)).finally(()=>{l.value=!1}))});const b=e.computed(()=>{const o=e.unref(u);if(i.isNil(o))return t.emptyText;const r=a.value?.find(x=>o===c.getOptionValue(x));return c.getOptionLabel(r)||t.emptyText});function B(){n.value?.focus()}function h(){n.value?.blur()}return d({focus:B,blur:h}),(o,r)=>o.mode==="read"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(b.value),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.value?(e.openBlock(),e.createBlock(e.unref(s.Spin),{key:0,size:"small"})):(e.openBlock(),e.createBlock(e.unref(s.RadioGroup),e.mergeProps({key:1},e.unref(i.omit)(t,["value","onUpdate:value","options","request","vertical"]),{ref_key:"radioGroupRef",ref:n,value:e.unref(u),options:e.unref(a),class:[e.unref(k)(),o.vertical?e.unref(q)("vertical"):null,e.unref(g)],"onUpdate:value":e.unref(y)}),null,16,["value","options","class","onUpdate:value"]))],64))}});exports.default=O;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),u=require("lodash-unified"),n=require("./helper.js"),r=o.defineComponent({name:"ApFieldRadioRead",__name:"read",props:{mode:{default:"edit"},class:{},style:{},prefixCls:{},value:{},size:{},options:{},disabled:{type:Boolean,default:void 0},name:{},buttonStyle:{},id:{},block:{type:Boolean},optionType:{},onChange:{},"onUpdate:value":{},emptyText:{default:"--"},request:{},vertical:{type:Boolean,default:!1}},setup(l){const e=l,i=o.computed(()=>{const t=e.value;if(u.isNil(t))return e.emptyText;const a=e.options?.find(s=>t===n.getOptionValue(s));return n.getOptionLabel(a)||e.emptyText});return(t,a)=>o.toDisplayString(i.value)}});exports.default=r;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),u=require("lodash-unified"),n=require("./helper.js"),r=o.defineComponent({name:"ApFieldRadioRead",__name:"read",props:{mode:{default:"edit"},class:{},style:{},prefixCls:{},value:{},size:{},options:{},disabled:{type:Boolean,default:void 0},name:{},buttonStyle:{},id:{},block:{type:Boolean},optionType:{},onChange:{},"onUpdate:value":{},vertical:{type:Boolean,default:!1},emptyText:{default:"--"},request:{}},setup(l){const e=l,i=o.computed(()=>{const t=e.value;if(u.isNil(t))return e.emptyText;const a=e.options?.find(s=>t===n.getOptionValue(s));return n.getOptionLabel(a)||e.emptyText});return(t,a)=>o.toDisplayString(i.value)}});exports.default=r;
@@ -1,9 +1,13 @@
1
1
  import { ApFieldRateProps } from '../interface';
2
- import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
2
+ import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
3
3
  import { VueTypeValidableDef, VueTypeDef } from '../../../node_modules/vue-types';
4
+ import { TriggerType } from '@aplus-frontend/antdv/es/tooltip/abstractTooltipProps';
5
+ import { TooltipPlacement, AdjustOverflow } from '@aplus-frontend/antdv/es/tooltip';
6
+ import { LiteralUnion, VueNode } from '@aplus-frontend/antdv/es/_util/type';
7
+ import { PresetColorType } from '@aplus-frontend/antdv/es/_util/colors';
8
+ import { AlignType, BuildInPlacements } from '@aplus-frontend/antdv/es/vc-trigger/interface';
4
9
  import { Direction } from '@aplus-frontend/antdv/es/config-provider';
5
10
  import { FocusEventHandler, KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
6
- import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
7
11
  import { FieldMode } from '..';
8
12
  declare function __VLS_template(): {
9
13
  attrs: Partial<{}>;
@@ -25,7 +29,85 @@ declare function __VLS_template(): {
25
29
  type: BooleanConstructor;
26
30
  default: any;
27
31
  };
28
- tooltips: PropType<string[]>;
32
+ tooltips: PropType<(string | Partial< ExtractPropTypes<{
33
+ title: VueTypeValidableDef<any>;
34
+ trigger: PropType< TriggerType | TriggerType[]>;
35
+ open: {
36
+ type: BooleanConstructor;
37
+ default: any;
38
+ };
39
+ visible: {
40
+ type: BooleanConstructor;
41
+ default: any;
42
+ };
43
+ placement: PropType<TooltipPlacement>;
44
+ color: PropType<LiteralUnion<PresetColorType>>;
45
+ transitionName: StringConstructor;
46
+ overlayStyle: {
47
+ type: PropType<CSSProperties>;
48
+ default: CSSProperties;
49
+ };
50
+ overlayInnerStyle: {
51
+ type: PropType<CSSProperties>;
52
+ default: CSSProperties;
53
+ };
54
+ overlayClassName: StringConstructor;
55
+ openClassName: StringConstructor;
56
+ prefixCls: StringConstructor;
57
+ mouseEnterDelay: NumberConstructor;
58
+ mouseLeaveDelay: NumberConstructor;
59
+ getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
60
+ arrowPointAtCenter: {
61
+ type: BooleanConstructor;
62
+ default: any;
63
+ };
64
+ arrow: {
65
+ type: PropType<boolean | {
66
+ pointAtCenter?: boolean;
67
+ }>;
68
+ default: boolean | {
69
+ pointAtCenter?: boolean;
70
+ };
71
+ };
72
+ autoAdjustOverflow: {
73
+ type: PropType<boolean | AdjustOverflow>;
74
+ default: boolean | AdjustOverflow;
75
+ };
76
+ destroyTooltipOnHide: {
77
+ type: BooleanConstructor;
78
+ default: any;
79
+ };
80
+ align: {
81
+ type: PropType<AlignType>;
82
+ default: AlignType;
83
+ };
84
+ builtinPlacements: {
85
+ type: PropType<BuildInPlacements>;
86
+ default: BuildInPlacements;
87
+ };
88
+ children: ArrayConstructor;
89
+ onVisibleChange: PropType<(vis: boolean) => void>;
90
+ "onUpdate:visible": PropType<(vis: boolean) => void>;
91
+ onOpenChange: PropType<(vis: boolean) => void>;
92
+ "onUpdate:open": PropType<(vis: boolean) => void>;
93
+ mask: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ maskStyle: {
98
+ type: PropType<CSSProperties>;
99
+ default: CSSProperties;
100
+ };
101
+ maskTransitionName: StringConstructor;
102
+ maskClosable: {
103
+ type: BooleanConstructor;
104
+ default: boolean;
105
+ };
106
+ forceRender: {
107
+ type: BooleanConstructor;
108
+ default: boolean;
109
+ };
110
+ }>>)[]>;
29
111
  disabled: {
30
112
  type: BooleanConstructor;
31
113
  default: any;
@@ -48,6 +130,7 @@ declare function __VLS_template(): {
48
130
  onFocus: PropType<FocusEventHandler>;
49
131
  onBlur: PropType<FocusEventHandler>;
50
132
  onKeydown: PropType<KeyboardEventHandler>;
133
+ size: PropType<"small" | "large" | "middle">;
51
134
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
52
135
  disabled: boolean;
53
136
  autofocus: boolean;
@@ -73,7 +156,85 @@ declare function __VLS_template(): {
73
156
  type: BooleanConstructor;
74
157
  default: any;
75
158
  };
76
- tooltips: PropType<string[]>;
159
+ tooltips: PropType<(string | Partial< ExtractPropTypes<{
160
+ title: VueTypeValidableDef<any>;
161
+ trigger: PropType< TriggerType | TriggerType[]>;
162
+ open: {
163
+ type: BooleanConstructor;
164
+ default: any;
165
+ };
166
+ visible: {
167
+ type: BooleanConstructor;
168
+ default: any;
169
+ };
170
+ placement: PropType<TooltipPlacement>;
171
+ color: PropType<LiteralUnion<PresetColorType>>;
172
+ transitionName: StringConstructor;
173
+ overlayStyle: {
174
+ type: PropType<CSSProperties>;
175
+ default: CSSProperties;
176
+ };
177
+ overlayInnerStyle: {
178
+ type: PropType<CSSProperties>;
179
+ default: CSSProperties;
180
+ };
181
+ overlayClassName: StringConstructor;
182
+ openClassName: StringConstructor;
183
+ prefixCls: StringConstructor;
184
+ mouseEnterDelay: NumberConstructor;
185
+ mouseLeaveDelay: NumberConstructor;
186
+ getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
187
+ arrowPointAtCenter: {
188
+ type: BooleanConstructor;
189
+ default: any;
190
+ };
191
+ arrow: {
192
+ type: PropType<boolean | {
193
+ pointAtCenter?: boolean;
194
+ }>;
195
+ default: boolean | {
196
+ pointAtCenter?: boolean;
197
+ };
198
+ };
199
+ autoAdjustOverflow: {
200
+ type: PropType<boolean | AdjustOverflow>;
201
+ default: boolean | AdjustOverflow;
202
+ };
203
+ destroyTooltipOnHide: {
204
+ type: BooleanConstructor;
205
+ default: any;
206
+ };
207
+ align: {
208
+ type: PropType<AlignType>;
209
+ default: AlignType;
210
+ };
211
+ builtinPlacements: {
212
+ type: PropType<BuildInPlacements>;
213
+ default: BuildInPlacements;
214
+ };
215
+ children: ArrayConstructor;
216
+ onVisibleChange: PropType<(vis: boolean) => void>;
217
+ "onUpdate:visible": PropType<(vis: boolean) => void>;
218
+ onOpenChange: PropType<(vis: boolean) => void>;
219
+ "onUpdate:open": PropType<(vis: boolean) => void>;
220
+ mask: {
221
+ type: BooleanConstructor;
222
+ default: boolean;
223
+ };
224
+ maskStyle: {
225
+ type: PropType<CSSProperties>;
226
+ default: CSSProperties;
227
+ };
228
+ maskTransitionName: StringConstructor;
229
+ maskClosable: {
230
+ type: BooleanConstructor;
231
+ default: boolean;
232
+ };
233
+ forceRender: {
234
+ type: BooleanConstructor;
235
+ default: boolean;
236
+ };
237
+ }>>)[]>;
77
238
  disabled: {
78
239
  type: BooleanConstructor;
79
240
  default: any;
@@ -96,6 +257,7 @@ declare function __VLS_template(): {
96
257
  onFocus: PropType<FocusEventHandler>;
97
258
  onBlur: PropType<FocusEventHandler>;
98
259
  onKeydown: PropType<KeyboardEventHandler>;
260
+ size: PropType<"small" | "large" | "middle">;
99
261
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
100
262
  disabled: boolean;
101
263
  autofocus: boolean;
@@ -135,7 +297,85 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
135
297
  type: BooleanConstructor;
136
298
  default: any;
137
299
  };
138
- tooltips: PropType<string[]>;
300
+ tooltips: PropType<(string | Partial< ExtractPropTypes<{
301
+ title: VueTypeValidableDef<any>;
302
+ trigger: PropType< TriggerType | TriggerType[]>;
303
+ open: {
304
+ type: BooleanConstructor;
305
+ default: any;
306
+ };
307
+ visible: {
308
+ type: BooleanConstructor;
309
+ default: any;
310
+ };
311
+ placement: PropType<TooltipPlacement>;
312
+ color: PropType<LiteralUnion<PresetColorType>>;
313
+ transitionName: StringConstructor;
314
+ overlayStyle: {
315
+ type: PropType<CSSProperties>;
316
+ default: CSSProperties;
317
+ };
318
+ overlayInnerStyle: {
319
+ type: PropType<CSSProperties>;
320
+ default: CSSProperties;
321
+ };
322
+ overlayClassName: StringConstructor;
323
+ openClassName: StringConstructor;
324
+ prefixCls: StringConstructor;
325
+ mouseEnterDelay: NumberConstructor;
326
+ mouseLeaveDelay: NumberConstructor;
327
+ getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
328
+ arrowPointAtCenter: {
329
+ type: BooleanConstructor;
330
+ default: any;
331
+ };
332
+ arrow: {
333
+ type: PropType<boolean | {
334
+ pointAtCenter?: boolean;
335
+ }>;
336
+ default: boolean | {
337
+ pointAtCenter?: boolean;
338
+ };
339
+ };
340
+ autoAdjustOverflow: {
341
+ type: PropType<boolean | AdjustOverflow>;
342
+ default: boolean | AdjustOverflow;
343
+ };
344
+ destroyTooltipOnHide: {
345
+ type: BooleanConstructor;
346
+ default: any;
347
+ };
348
+ align: {
349
+ type: PropType<AlignType>;
350
+ default: AlignType;
351
+ };
352
+ builtinPlacements: {
353
+ type: PropType<BuildInPlacements>;
354
+ default: BuildInPlacements;
355
+ };
356
+ children: ArrayConstructor;
357
+ onVisibleChange: PropType<(vis: boolean) => void>;
358
+ "onUpdate:visible": PropType<(vis: boolean) => void>;
359
+ onOpenChange: PropType<(vis: boolean) => void>;
360
+ "onUpdate:open": PropType<(vis: boolean) => void>;
361
+ mask: {
362
+ type: BooleanConstructor;
363
+ default: boolean;
364
+ };
365
+ maskStyle: {
366
+ type: PropType<CSSProperties>;
367
+ default: CSSProperties;
368
+ };
369
+ maskTransitionName: StringConstructor;
370
+ maskClosable: {
371
+ type: BooleanConstructor;
372
+ default: boolean;
373
+ };
374
+ forceRender: {
375
+ type: BooleanConstructor;
376
+ default: boolean;
377
+ };
378
+ }>>)[]>;
139
379
  disabled: {
140
380
  type: BooleanConstructor;
141
381
  default: any;
@@ -158,6 +398,7 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
158
398
  onFocus: PropType<FocusEventHandler>;
159
399
  onBlur: PropType<FocusEventHandler>;
160
400
  onKeydown: PropType<KeyboardEventHandler>;
401
+ size: PropType<"small" | "large" | "middle">;
161
402
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
162
403
  disabled: boolean;
163
404
  autofocus: boolean;
@@ -183,7 +424,85 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
183
424
  type: BooleanConstructor;
184
425
  default: any;
185
426
  };
186
- tooltips: PropType<string[]>;
427
+ tooltips: PropType<(string | Partial< ExtractPropTypes<{
428
+ title: VueTypeValidableDef<any>;
429
+ trigger: PropType< TriggerType | TriggerType[]>;
430
+ open: {
431
+ type: BooleanConstructor;
432
+ default: any;
433
+ };
434
+ visible: {
435
+ type: BooleanConstructor;
436
+ default: any;
437
+ };
438
+ placement: PropType<TooltipPlacement>;
439
+ color: PropType<LiteralUnion<PresetColorType>>;
440
+ transitionName: StringConstructor;
441
+ overlayStyle: {
442
+ type: PropType<CSSProperties>;
443
+ default: CSSProperties;
444
+ };
445
+ overlayInnerStyle: {
446
+ type: PropType<CSSProperties>;
447
+ default: CSSProperties;
448
+ };
449
+ overlayClassName: StringConstructor;
450
+ openClassName: StringConstructor;
451
+ prefixCls: StringConstructor;
452
+ mouseEnterDelay: NumberConstructor;
453
+ mouseLeaveDelay: NumberConstructor;
454
+ getPopupContainer: PropType<(triggerNode: HTMLElement) => HTMLElement>;
455
+ arrowPointAtCenter: {
456
+ type: BooleanConstructor;
457
+ default: any;
458
+ };
459
+ arrow: {
460
+ type: PropType<boolean | {
461
+ pointAtCenter?: boolean;
462
+ }>;
463
+ default: boolean | {
464
+ pointAtCenter?: boolean;
465
+ };
466
+ };
467
+ autoAdjustOverflow: {
468
+ type: PropType<boolean | AdjustOverflow>;
469
+ default: boolean | AdjustOverflow;
470
+ };
471
+ destroyTooltipOnHide: {
472
+ type: BooleanConstructor;
473
+ default: any;
474
+ };
475
+ align: {
476
+ type: PropType<AlignType>;
477
+ default: AlignType;
478
+ };
479
+ builtinPlacements: {
480
+ type: PropType<BuildInPlacements>;
481
+ default: BuildInPlacements;
482
+ };
483
+ children: ArrayConstructor;
484
+ onVisibleChange: PropType<(vis: boolean) => void>;
485
+ "onUpdate:visible": PropType<(vis: boolean) => void>;
486
+ onOpenChange: PropType<(vis: boolean) => void>;
487
+ "onUpdate:open": PropType<(vis: boolean) => void>;
488
+ mask: {
489
+ type: BooleanConstructor;
490
+ default: boolean;
491
+ };
492
+ maskStyle: {
493
+ type: PropType<CSSProperties>;
494
+ default: CSSProperties;
495
+ };
496
+ maskTransitionName: StringConstructor;
497
+ maskClosable: {
498
+ type: BooleanConstructor;
499
+ default: boolean;
500
+ };
501
+ forceRender: {
502
+ type: BooleanConstructor;
503
+ default: boolean;
504
+ };
505
+ }>>)[]>;
187
506
  disabled: {
188
507
  type: BooleanConstructor;
189
508
  default: any;
@@ -206,6 +525,7 @@ declare const __VLS_component: DefineComponent<ApFieldRateProps, {
206
525
  onFocus: PropType<FocusEventHandler>;
207
526
  onBlur: PropType<FocusEventHandler>;
208
527
  onKeydown: PropType<KeyboardEventHandler>;
528
+ size: PropType<"small" | "large" | "middle">;
209
529
  }>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
210
530
  disabled: boolean;
211
531
  autofocus: boolean;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv"),m=require("lodash-unified");require("../../hooks/index.js");const b=require("../../hooks/useControllableValue.js"),y=e.defineComponent({name:"ApFieldRate",__name:"index",props:{mode:{default:"edit"},class:{},style:{},prefixCls:{},count:{default:5},value:{},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!0},tooltips:{},disabled:{type:Boolean,default:void 0},character:{default:void 0},autofocus:{type:Boolean,default:!1},keyboard:{type:Boolean},tabindex:{},direction:{},id:{},onChange:{},onHoverChange:{},"onUpdate:value":{},onFocus:{},onBlur:{},onKeydown:{},defaultValue:{}},emits:["update:value"],setup(o,{expose:l,emit:u}){const t=o,a=e.shallowRef(),r=u,n=e.useSlots(),{value:s,updateValue:d}=b.useControllableValue(t,r),c=e.computed(()=>t.mode==="read"?!0:t.disabled);function i(){a.value?.focus?.()}function f(){a.value?.blur?.()}return l({focus:i,blur:f}),(p,h)=>(e.openBlock(),e.createBlock(e.unref(v.Rate),e.mergeProps(e.unref(m.omit)(t,["mode","defaultValue"]),{ref_key:"rateRef",ref:a,value:e.unref(s),disabled:c.value,"onUpdate:value":e.unref(d)}),e.createSlots({_:2},[n.character?{name:"character",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"character")]),key:"0"}:void 0]),1040,["value","disabled","onUpdate:value"]))}});exports.default=y;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),v=require("@aplus-frontend/antdv"),m=require("lodash-unified");require("../../hooks/index.js");const b=require("../../hooks/useControllableValue.js"),y=e.defineComponent({name:"ApFieldRate",__name:"index",props:{mode:{default:"edit"},class:{},style:{},prefixCls:{},count:{default:5},value:{},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!0},tooltips:{},disabled:{type:Boolean,default:void 0},character:{default:void 0},autofocus:{type:Boolean,default:!1},keyboard:{type:Boolean},tabindex:{},direction:{},id:{},onChange:{},onHoverChange:{},"onUpdate:value":{},onFocus:{},onBlur:{},onKeydown:{},size:{},defaultValue:{}},emits:["update:value"],setup(o,{expose:l,emit:u}){const t=o,a=e.shallowRef(),r=u,n=e.useSlots(),{value:s,updateValue:d}=b.useControllableValue(t,r),i=e.computed(()=>t.mode==="read"?!0:t.disabled);function c(){a.value?.focus?.()}function f(){a.value?.blur?.()}return l({focus:c,blur:f}),(p,h)=>(e.openBlock(),e.createBlock(e.unref(v.Rate),e.mergeProps(e.unref(m.omit)(t,["mode","defaultValue"]),{ref_key:"rateRef",ref:a,value:e.unref(s),disabled:i.value,"onUpdate:value":e.unref(d)}),e.createSlots({_:2},[n.character?{name:"character",fn:e.withCtx(()=>[e.renderSlot(p.$slots,"character")]),key:"0"}:void 0]),1040,["value","disabled","onUpdate:value"]))}});exports.default=y;
@@ -27,13 +27,13 @@ declare const __VLS_component: DefineComponent<ApFieldSecondProps, {
27
27
  step: ValueType;
28
28
  disabled: boolean;
29
29
  bordered: boolean;
30
+ emptyText: string;
30
31
  changeOnWheel: boolean;
31
32
  changeOnBlur: boolean;
32
33
  min: ValueType;
33
34
  max: ValueType;
34
35
  controls: boolean;
35
36
  keyboard: boolean;
36
- emptyText: string;
37
37
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
38
38
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
39
  export default _default;
@@ -141,6 +141,7 @@ declare function __VLS_template(): {
141
141
  default: any;
142
142
  };
143
143
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
144
+ onActive: PropType<(value: SelectValue) => void>;
144
145
  filterOption: {
145
146
  type: PropType<boolean | FilterFunc<DefaultOptionType>>;
146
147
  default: any;
@@ -362,6 +363,7 @@ declare function __VLS_template(): {
362
363
  default: any;
363
364
  };
364
365
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
366
+ onActive: PropType<(value: SelectValue) => void>;
365
367
  filterOption: {
366
368
  type: PropType<boolean | FilterFunc<DefaultOptionType>>;
367
369
  default: any;
@@ -597,6 +599,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
597
599
  default: any;
598
600
  };
599
601
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
602
+ onActive: PropType<(value: SelectValue) => void>;
600
603
  filterOption: {
601
604
  type: PropType<boolean | FilterFunc<DefaultOptionType>>;
602
605
  default: any;
@@ -818,6 +821,7 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
818
821
  default: any;
819
822
  };
820
823
  onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
824
+ onActive: PropType<(value: SelectValue) => void>;
821
825
  filterOption: {
822
826
  type: PropType<boolean | FilterFunc<DefaultOptionType>>;
823
827
  default: any;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),S=require("@aplus-frontend/antdv"),u=require("lodash-unified");require("../../hooks/index.js");const T=require("../hooks/use-default-placeholder.js"),d=require("./use-select-options.js"),P=require("../../hooks/useControllableValue.js"),k={key:0},M=e.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},variant:{},maxCount:{},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},placeholder:{},loading:{type:Boolean,default:void 0},prefix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},inputValue:{},searchValue:{},autoClearSearchValue:{type:Boolean,default:void 0},onDeselect:{},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},options:{},defaultActiveFirstOption:{type:Boolean,default:void 0},listItemHeight:{},onClickOption:{},menuItemSelectedIcon:{},labelInValue:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},maxTagTextLength:{},maxTagCount:{},maxTagPlaceholder:{},tokenSeparators:{},removeIcon:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showAction:{},onPopupScroll:{},onInputKeyDown:{},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},addAll:{type:[Boolean,Number]},params:{},searchDelay:{default:300}},emits:["update:value"],setup(g,{expose:C,emit:B}){let r=0;const t=g,_=u.debounce(o=>{if(!u.isFunction(t.request))return;r+=1;const n=r;c([]),a.value=!0,t.request(o).then(l=>{r===n&&(c(l),a.value=!1)})},t.searchDelay),w=(o,n)=>{const l=t.fieldNames?.label||"label";return typeof n?.[l]=="string"&&n[l].toLowerCase().indexOf(o.toLowerCase())>-1},{options:i,updateOptions:c}=d.useSelectOptions(t),m=e.shallowRef(),a=e.ref(t?.loading||!1),L=B,b=e.computed(()=>{if(t.multiple)return t.tokenSeparators?"tags":"multiple"});async function f(o=!0){if(!u.isFunction(t.request))return;a.value=!0,r+=1;const n=r;try{o&&c([]);const l=await t.request(void 0,t.params);if(n!==r)return;c(l)}finally{a.value=!1}}function F(o){t.onFocus?.(o),t.refetchOnFocus&&r>0&&!a.value&&f(!0)}e.onMounted(()=>{t.lazy||f()}),e.watch(()=>t.params,()=>{f()},{deep:!0});const{value:p,updateValue:v}=P.useControllableValue(t,L),O=T.useDefaultPlaceholder("Select",t),A=e.computed(()=>{const o=e.unref(p);if(!o)return t.emptyText;const n=t.fieldNames?.label||"label",l=t.fieldNames?.value||"value";return u.isArray(o)?o.map(s=>e.unref(i).find(I=>I[l]===s)?.[n]).filter(Boolean).join("、")||t.emptyText:e.unref(i).find(s=>s[l]===o)?.[n]||t.emptyText}),V=e.computed(()=>{const o=!!t?.showSearch,n=t.searchMode;let l={};return o&&(l=n==="request"?{defaultActiveFirstOption:!1,onSearch:_,notFoundContent:a.value?void 0:null,filterOption:!1,suffixIcon:null}:{filterOption:u.isNil(t?.filterOption)?w:t?.filterOption}),{...u.omit(t,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus","onBeforeSelect"]),placeholder:e.unref(O),...l}}),y=e.computed(()=>i.value.map(o=>o[t.fieldNames?.value||"value"]).filter(o=>o!==d.SELECT_ALL_VALUE_KEY)),x=e.computed(()=>{if(!t.multiple||!t.addAll)return e.unref(p);if(i.value.some(o=>o[t.fieldNames?.value||"value"]===d.SELECT_ALL_VALUE_KEY)){const o=e.unref(y),n=e.unref(p)||[];if(o.length&&o.every(l=>n?.includes(l)))return[d.SELECT_ALL_VALUE_KEY]}return e.unref(p)});function E(o){return t.multiple&&o.includes(d.SELECT_ALL_VALUE_KEY)?v(e.unref(y)):v(o)}function N(){m.value?.focus()}function q(){m.value?.blur()}return C({focus:N,blur:q,request:f}),(o,n)=>o.mode==="read"?(e.openBlock(),e.createElementBlock("span",k,e.toDisplayString(A.value),1)):(e.openBlock(),e.createBlock(e.unref(S.Select),e.mergeProps({key:1,ref_key:"selectRef",ref:m,"allow-clear":""},V.value,{mode:b.value,value:x.value,options:e.unref(i),loading:a.value,"onUpdate:value":E,onFocus:F}),e.createSlots({_:2},[e.renderList(o.$slots,(l,h)=>({name:h,fn:e.withCtx(s=>[e.renderSlot(o.$slots,h,e.normalizeProps(e.guardReactiveProps(s||{})))])})),a.value?{name:"notFoundContent",fn:e.withCtx(()=>[e.createVNode(e.unref(S.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","options","loading"]))}});exports.default=M;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),S=require("@aplus-frontend/antdv"),u=require("lodash-unified");require("../../hooks/index.js");const T=require("../hooks/use-default-placeholder.js"),d=require("./use-select-options.js"),P=require("../../hooks/useControllableValue.js"),k={key:0},M=e.defineComponent({name:"ApFieldSelect",__name:"index",props:{mode:{default:"edit"},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},variant:{},maxCount:{},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean,default:void 0},animation:{},direction:{},disabled:{type:Boolean,default:void 0},prefixCls:{},id:{},autofocus:{type:Boolean,default:void 0},getPopupContainer:{},virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{},placeholder:{},loading:{type:Boolean,default:void 0},prefix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},fieldNames:{},inputValue:{},searchValue:{},autoClearSearchValue:{type:Boolean,default:void 0},onDeselect:{},onActive:{},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},options:{},defaultActiveFirstOption:{type:Boolean,default:void 0},listItemHeight:{},onClickOption:{},menuItemSelectedIcon:{},labelInValue:{type:Boolean,default:void 0},showSearch:{type:Boolean,default:void 0},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{},maxTagTextLength:{},maxTagCount:{},maxTagPlaceholder:{},tokenSeparators:{},removeIcon:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showAction:{},onPopupScroll:{},onInputKeyDown:{},emptyText:{default:"--"},request:{},multiple:{type:Boolean,default:void 0},value:{},"onUpdate:value":{},searchMode:{default:"filter"},refetchOnFocus:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},addAll:{type:[Boolean,Number]},params:{},searchDelay:{default:300}},emits:["update:value"],setup(g,{expose:C,emit:B}){let r=0;const t=g,_=u.debounce(o=>{if(!u.isFunction(t.request))return;r+=1;const l=r;c([]),a.value=!0,t.request(o).then(n=>{r===l&&(c(n),a.value=!1)})},t.searchDelay),w=(o,l)=>{const n=t.fieldNames?.label||"label";return typeof l?.[n]=="string"&&l[n].toLowerCase().indexOf(o.toLowerCase())>-1},{options:i,updateOptions:c}=d.useSelectOptions(t),m=e.shallowRef(),a=e.ref(t?.loading||!1),L=B,b=e.computed(()=>{if(t.multiple)return t.tokenSeparators?"tags":"multiple"});async function f(o=!0){if(!u.isFunction(t.request))return;a.value=!0,r+=1;const l=r;try{o&&c([]);const n=await t.request(void 0,t.params);if(l!==r)return;c(n)}finally{a.value=!1}}function F(o){t.onFocus?.(o),t.refetchOnFocus&&r>0&&!a.value&&f(!0)}e.onMounted(()=>{t.lazy||f()}),e.watch(()=>t.params,()=>{f()},{deep:!0});const{value:p,updateValue:v}=P.useControllableValue(t,L),A=T.useDefaultPlaceholder("Select",t),O=e.computed(()=>{const o=e.unref(p);if(!o)return t.emptyText;const l=t.fieldNames?.label||"label",n=t.fieldNames?.value||"value";return u.isArray(o)?o.map(s=>e.unref(i).find(I=>I[n]===s)?.[l]).filter(Boolean).join("、")||t.emptyText:e.unref(i).find(s=>s[n]===o)?.[l]||t.emptyText}),V=e.computed(()=>{const o=!!t?.showSearch,l=t.searchMode;let n={};return o&&(n=l==="request"?{defaultActiveFirstOption:!1,onSearch:_,notFoundContent:a.value?void 0:null,filterOption:!1,suffixIcon:null}:{filterOption:u.isNil(t?.filterOption)?w:t?.filterOption}),{...u.omit(t,["mode","value","onUpdate:value","onSearch","request","searchMode","onFocus","onBeforeSelect"]),placeholder:e.unref(A),...n}}),y=e.computed(()=>i.value.map(o=>o[t.fieldNames?.value||"value"]).filter(o=>o!==d.SELECT_ALL_VALUE_KEY)),x=e.computed(()=>{if(!t.multiple||!t.addAll)return e.unref(p);if(i.value.some(o=>o[t.fieldNames?.value||"value"]===d.SELECT_ALL_VALUE_KEY)){const o=e.unref(y),l=e.unref(p)||[];if(o.length&&o.every(n=>l?.includes(n)))return[d.SELECT_ALL_VALUE_KEY]}return e.unref(p)});function E(o){return t.multiple&&o.includes(d.SELECT_ALL_VALUE_KEY)?v(e.unref(y)):v(o)}function N(){m.value?.focus()}function q(){m.value?.blur()}return C({focus:N,blur:q,request:f}),(o,l)=>o.mode==="read"?(e.openBlock(),e.createElementBlock("span",k,e.toDisplayString(O.value),1)):(e.openBlock(),e.createBlock(e.unref(S.Select),e.mergeProps({key:1,ref_key:"selectRef",ref:m,"allow-clear":""},V.value,{mode:b.value,value:x.value,options:e.unref(i),loading:a.value,"onUpdate:value":E,onFocus:F}),e.createSlots({_:2},[e.renderList(o.$slots,(n,h)=>({name:h,fn:e.withCtx(s=>[e.renderSlot(o.$slots,h,e.normalizeProps(e.guardReactiveProps(s||{})))])})),a.value?{name:"notFoundContent",fn:e.withCtx(()=>[e.createVNode(e.unref(S.Spin),{size:"small"})]),key:"0"}:void 0]),1040,["mode","value","options","loading"]))}});exports.default=M;
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),s=require("lodash-unified"),d={key:0},u=t.defineComponent({name:"ApFieldSelectRead",__name:"read",props:{mode:{},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean},showArrow:{type:Boolean},variant:{},maxCount:{},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},placeholder:{},loading:{type:Boolean},prefix:{},clearIcon:{},allowClear:{type:Boolean},fieldNames:{},inputValue:{},searchValue:{},autoClearSearchValue:{type:Boolean},onDeselect:{},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},options:{},defaultActiveFirstOption:{type:Boolean},listItemHeight:{},onClickOption:{},menuItemSelectedIcon:{},labelInValue:{type:Boolean},showSearch:{type:Boolean},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},maxTagTextLength:{},maxTagCount:{},maxTagPlaceholder:{},tokenSeparators:{},removeIcon:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showAction:{},onPopupScroll:{},onInputKeyDown:{},emptyText:{default:"--"},request:{},multiple:{type:Boolean},value:{},"onUpdate:value":{},searchMode:{},refetchOnFocus:{type:Boolean},lazy:{type:Boolean},addAll:{type:[Boolean,Number]},params:{},searchDelay:{}},setup(r){const e=r,i=t.computed(()=>{const o=e.value;if(!o)return e.emptyText;const n=e.fieldNames?.label||"label",l=e.fieldNames?.value||"value";return s.isArray(o)?o.map(a=>e.options?.find(p=>p[l]===a)?.[n]).filter(Boolean).join("、")||e.emptyText:e.options?.find(a=>a[l]===o)?.[n]||e.emptyText});return(o,n)=>o.mode==="read"?(t.openBlock(),t.createElementBlock("span",d,t.toDisplayString(i.value),1)):t.createCommentVNode("",!0)}});exports.default=u;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),s=require("lodash-unified"),d={key:0},u=t.defineComponent({name:"ApFieldSelectRead",__name:"read",props:{mode:{},class:{},style:{},defaultValue:{},notFoundContent:{},suffixIcon:{},itemIcon:{},size:{},bordered:{type:Boolean},showArrow:{type:Boolean},variant:{},maxCount:{},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},placeholder:{},loading:{type:Boolean},prefix:{},clearIcon:{},allowClear:{type:Boolean},fieldNames:{},inputValue:{},searchValue:{},autoClearSearchValue:{type:Boolean},onDeselect:{},onActive:{},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},options:{},defaultActiveFirstOption:{type:Boolean},listItemHeight:{},onClickOption:{},menuItemSelectedIcon:{},labelInValue:{type:Boolean},showSearch:{type:Boolean},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},maxTagTextLength:{},maxTagCount:{},maxTagPlaceholder:{},tokenSeparators:{},removeIcon:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showAction:{},onPopupScroll:{},onInputKeyDown:{},emptyText:{default:"--"},request:{},multiple:{type:Boolean},value:{},"onUpdate:value":{},searchMode:{},refetchOnFocus:{type:Boolean},lazy:{type:Boolean},addAll:{type:[Boolean,Number]},params:{},searchDelay:{}},setup(r){const e=r,i=t.computed(()=>{const o=e.value;if(!o)return e.emptyText;const n=e.fieldNames?.label||"label",l=e.fieldNames?.value||"value";return s.isArray(o)?o.map(a=>e.options?.find(p=>p[l]===a)?.[n]).filter(Boolean).join("、")||e.emptyText:e.options?.find(a=>a[l]===o)?.[n]||e.emptyText});return(o,n)=>o.mode==="read"?(t.openBlock(),t.createElementBlock("span",d,t.toDisplayString(i.value),1)):t.createCommentVNode("",!0)}});exports.default=u;
@@ -178,9 +178,9 @@ declare const __VLS_component: DefineComponent<ApFieldSliderProps, {
178
178
  }>, {
179
179
  step: number;
180
180
  disabled: boolean;
181
+ emptyText: string;
181
182
  min: number;
182
183
  max: number;
183
- emptyText: string;
184
184
  included: boolean;
185
185
  tooltipVisible: boolean;
186
186
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
@@ -630,10 +630,10 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
630
630
  labelInValue: boolean;
631
631
  showSearch: boolean;
632
632
  defaultOpen: boolean;
633
+ emptyText: string;
633
634
  treeCheckable: boolean;
634
635
  treeCheckStrictly: boolean;
635
636
  treeDefaultExpandAll: boolean;
636
- emptyText: string;
637
637
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
638
638
  treeSelectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
639
639
  suffixIcon: VueTypeValidableDef<any>;
@@ -11,7 +11,7 @@ import { SizeType } from '@aplus-frontend/antdv/es/button';
11
11
  import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
12
12
  import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
13
13
  import { OnCleanup } from '@vue/reactivity';
14
- import { PushState } from '@aplus-frontend/antdv/es/drawer';
14
+ import { MaskType, sizeType, PushState, DrawerResizableConfig } from '@aplus-frontend/antdv/es/drawer';
15
15
  import { MouseEventHandler, KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
16
16
  type ApDrawerFormSlots = {
17
17
  trigger: any;
@@ -877,6 +877,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
877
877
  hideRequiredMark: boolean;
878
878
  validateOnRuleChange: boolean;
879
879
  validateTrigger: string | string[];
880
+ showCancel: boolean;
880
881
  drawerProps: Omit<Partial< ExtractPropTypes<{
881
882
  autofocus: {
882
883
  type: BooleanConstructor;
@@ -904,8 +905,8 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
904
905
  default: any;
905
906
  };
906
907
  mask: {
907
- type: BooleanConstructor;
908
- default: any;
908
+ type: PropType<MaskType>;
909
+ default: MaskType;
909
910
  };
910
911
  maskStyle: {
911
912
  type: PropType<CSSProperties>;
@@ -917,8 +918,12 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
917
918
  default: CSSProperties;
918
919
  };
919
920
  size: {
920
- type: PropType<"default" | "large">;
921
+ type: PropType<sizeType>;
921
922
  };
923
+ defaultSize: {
924
+ type: PropType<sizeType>;
925
+ };
926
+ maxSize: NumberConstructor;
922
927
  drawerStyle: {
923
928
  type: PropType<CSSProperties>;
924
929
  default: CSSProperties;
@@ -982,9 +987,9 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
982
987
  type: BooleanConstructor;
983
988
  default: boolean;
984
989
  };
990
+ resizable: PropType<DrawerResizableConfig>;
985
991
  }>>, "open" | "onUpdate:open">;
986
992
  submitter: false | ApFormSubmitterConfig;
987
- showCancel: boolean;
988
993
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
989
994
  formRef: ({
990
995
  $: ComponentInternalInstance;