@aplus-frontend/ui 7.7.4 → 7.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-action/group/index.vue.d.ts +1 -0
- package/es/src/ap-action/group/index.vue.mjs +28 -28
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +25 -1
- package/es/src/ap-button/ap-action-button.vue.d.ts +2 -1
- package/es/src/ap-button/ap-button.vue.d.ts +2 -1
- package/es/src/ap-field/number/index.vue.d.ts +20 -0
- package/es/src/ap-field/number/index.vue.mjs +11 -10
- package/es/src/ap-field/number/read.vue2.mjs +3 -2
- package/es/src/ap-field/select/index.vue.d.ts +12 -4
- package/es/src/ap-field/tree-select/index.vue.d.ts +2 -0
- package/es/src/ap-form/items/number/index.vue.d.ts +22 -0
- package/es/src/ap-form/items/select/index.vue.d.ts +18 -6
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +2 -0
- package/es/src/ap-form/modal-form/index.vue.d.ts +25 -1
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +19 -1
- package/es/src/ap-table/constants.d.ts +22 -3
- package/es/src/business/ap-batch-action-group/index.d.ts +34 -4
- package/es/src/business/ap-descriptions/ap-descriptions.vue.d.ts +3 -10
- package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +58 -79
- package/es/src/business/ap-descriptions/interface.d.ts +2 -3
- package/es/src/business/ap-upload/apUpload.vue.d.ts +9 -0
- package/es/src/business/ap-upload/apUpload.vue.mjs +33 -29
- package/es/src/business/ap-upload/apUploadTypes.d.ts +4 -0
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +50 -49
- package/es/src/business/ap-upload/components/Picture.vue2.mjs +66 -65
- package/es/src/business/ap-upload/components/SingleFile.vue2.mjs +95 -94
- package/es/src/business/ap-upload/hooks/useOss.d.ts +2 -1
- package/es/src/business/ap-upload/hooks/useOss.mjs +26 -24
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-action/group/index.vue.d.ts +1 -0
- package/lib/src/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +25 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +2 -1
- package/lib/src/ap-button/ap-button.vue.d.ts +2 -1
- package/lib/src/ap-field/number/index.vue.d.ts +20 -0
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/number/read.vue2.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +12 -4
- package/lib/src/ap-field/tree-select/index.vue.d.ts +2 -0
- package/lib/src/ap-form/items/number/index.vue.d.ts +22 -0
- package/lib/src/ap-form/items/select/index.vue.d.ts +18 -6
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +2 -0
- package/lib/src/ap-form/modal-form/index.vue.d.ts +25 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +19 -1
- package/lib/src/ap-table/constants.d.ts +22 -3
- package/lib/src/business/ap-batch-action-group/index.d.ts +34 -4
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.d.ts +3 -10
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/business/ap-descriptions/interface.d.ts +2 -3
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +9 -0
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/ap-upload/apUploadTypes.d.ts +4 -0
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/business/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-upload/hooks/useOss.d.ts +2 -1
- package/lib/src/business/ap-upload/hooks/useOss.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),g=require("@aplus-frontend/antdv");require("../../hooks/index.js");const u=require("lodash-unified"),S=require("./helper.js");require("../../config-provider/index.js");const q=require("../hooks/use-default-placeholder.js"),C=require("../style/index.js"),i=require("../../utils/format.js"),N=require("../../config-provider/hooks/use-namespace.js"),P=require("../../hooks/useControllableValue.js"),V=e.defineComponent({name:"ApFieldNumber",__name:"index",props:{mode:{},class:{},style:{},size:{},bordered:{type:Boolean,default:!0},placeholder:{},name:{},id:{},type:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},"onUpdate:value":{},valueModifiers:{},status:{},variant:{},changeOnWheel:{type:Boolean},changeOnBlur:{type:Boolean},stringMode:{type:Boolean},defaultValue:{},value:{},prefixCls:{},min:{default:-1/0},max:{default:1/0},step:{default:1},tabindex:{},controls:{type:Boolean,default:!0},readonly:{type:Boolean},disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean},keyboard:{type:Boolean,default:!0},parser:{},formatter:{},precision:{},decimalSeparator:{},onInput:{},onChange:{},onPressEnter:{},onStep:{},onBlur:{},onFocus:{},emptyText:{default:"--"},thousands:{type:Boolean,default:!1},limitDecimalsRetain:{type:Boolean}},emits:["update:value"],setup(d,{expose:c,emit:p}){const f=p,{b:l}=N.useNamespace("field-number"),m=C.default("field"),o=d,r=e.shallowRef(),{value:n,updateValue:y}=P.useControllableValue(o,f),v=q.useDefaultPlaceholder("Number",o),B=e.computed(()=>{let t=e.unref(n);if(u.isNil(t))return o.emptyText;o.precision&&(t=i.roundWith(t,o.precision));let a=o.thousands?i.toDecimalMark(t):String(t);return o.precision&&o.limitDecimalsRetain&&(a=S.addZeroToDecimalPlaces(a,o.precision)),a});function h(){r.value?.focus()}function b(){r.value?.blur()}return c({focus:h,blur:b}),(t,a)=>t.mode==="read"?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([e.unref(l)(),e.unref(m)])},[t.$slots.prefix?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(l)("label-left"))},[e.renderSlot(t.$slots,"prefix")],2)):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(B.value),1),t.$slots.addonAfter?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(e.unref(l)("label-right"))},[e.renderSlot(t.$slots,"addonAfter")],2)):e.createCommentVNode("",!0)],2)):(e.openBlock(),e.createBlock(e.unref(g.InputNumber),e.mergeProps({key:1},e.unref(u.omit)(o,["value","onUpdate:value"]),{ref_key:"inputRef",ref:r,placeholder:e.unref(v),value:e.unref(n),"onUpdate:value":e.unref(y)}),e.createSlots({_:2},[e.renderList(t.$slots,(x,s)=>({name:s,fn:e.withCtx(k=>[e.renderSlot(t.$slots,s,e.normalizeProps(e.guardReactiveProps(k||{})))])}))]),1040,["placeholder","value","onUpdate:value"]))}});exports.default=V;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("lodash-unified"),i=require("./helper.js"),a=require("../../utils/format.js"),d={key:0,style:{"padding-right":"4px"}},p={key:1,style:{"padding-left":"4px"}},u=e.defineComponent({name:"ApFieldNumberRead",__name:"read",props:{mode:{},class:{},style:{},size:{},bordered:{type:Boolean},placeholder:{},name:{},id:{},type:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},"onUpdate:value":{},valueModifiers:{},status:{},variant:{},changeOnWheel:{type:Boolean},stringMode:{type:Boolean},defaultValue:{},value:{},prefixCls:{},min:{},max:{},step:{},tabindex:{},controls:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean},parser:{},formatter:{},precision:{},decimalSeparator:{},onInput:{},onChange:{},onPressEnter:{},onStep:{},onBlur:{},onFocus:{},emptyText:{default:"--"},thousands:{type:Boolean,default:!1},limitDecimalsRetain:{type:Boolean}},setup(
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("lodash-unified"),i=require("./helper.js"),a=require("../../utils/format.js"),d={key:0,style:{"padding-right":"4px"}},p={key:1,style:{"padding-left":"4px"}},u=e.defineComponent({name:"ApFieldNumberRead",__name:"read",props:{mode:{},class:{},style:{},size:{},bordered:{type:Boolean},placeholder:{},name:{},id:{},type:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},"onUpdate:value":{},valueModifiers:{},status:{},variant:{},changeOnWheel:{type:Boolean},changeOnBlur:{type:Boolean},stringMode:{type:Boolean},defaultValue:{},value:{},prefixCls:{},min:{},max:{},step:{},tabindex:{},controls:{type:Boolean},readonly:{type:Boolean},disabled:{type:Boolean},autofocus:{type:Boolean},keyboard:{type:Boolean},parser:{},formatter:{},precision:{},decimalSeparator:{},onInput:{},onChange:{},onPressEnter:{},onStep:{},onBlur:{},onFocus:{},emptyText:{default:"--"},thousands:{type:Boolean,default:!1},limitDecimalsRetain:{type:Boolean}},setup(l){const t=l,r=e.computed(()=>{let o=t.value;if(s.isNil(o))return t.emptyText;t.precision&&(o=a.roundWith(o,t.precision));let n=t.thousands?a.toDecimalMark(o):String(o);return t.precision&&t.limitDecimalsRetain&&(n=i.addZeroToDecimalPlaces(n,t.precision)),n});return(o,n)=>(e.openBlock(),e.createElementBlock("span",null,[o.$slots.prefix?(e.openBlock(),e.createElementBlock("span",d,[e.renderSlot(o.$slots,"prefix")])):e.createCommentVNode("",!0),e.createElementVNode("span",null,e.toDisplayString(r.value),1),o.$slots.addonAfter?(e.openBlock(),e.createElementBlock("span",p,[e.renderSlot(o.$slots,"addonAfter")])):e.createCommentVNode("",!0)]))}});exports.default=u;
|
|
@@ -145,7 +145,9 @@ declare function __VLS_template(): {
|
|
|
145
145
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
146
146
|
default: any;
|
|
147
147
|
};
|
|
148
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
148
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
149
|
+
searchValue: string;
|
|
150
|
+
}) => number>;
|
|
149
151
|
optionFilterProp: StringConstructor;
|
|
150
152
|
optionLabelProp: StringConstructor;
|
|
151
153
|
options: PropType<DefaultOptionType[]>;
|
|
@@ -364,7 +366,9 @@ declare function __VLS_template(): {
|
|
|
364
366
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
365
367
|
default: any;
|
|
366
368
|
};
|
|
367
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
369
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
370
|
+
searchValue: string;
|
|
371
|
+
}) => number>;
|
|
368
372
|
optionFilterProp: StringConstructor;
|
|
369
373
|
optionLabelProp: StringConstructor;
|
|
370
374
|
options: PropType<DefaultOptionType[]>;
|
|
@@ -597,7 +601,9 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
597
601
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
598
602
|
default: any;
|
|
599
603
|
};
|
|
600
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
604
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
605
|
+
searchValue: string;
|
|
606
|
+
}) => number>;
|
|
601
607
|
optionFilterProp: StringConstructor;
|
|
602
608
|
optionLabelProp: StringConstructor;
|
|
603
609
|
options: PropType<DefaultOptionType[]>;
|
|
@@ -816,7 +822,9 @@ declare const __VLS_component: DefineComponent<ApFieldSelectProps, {
|
|
|
816
822
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
817
823
|
default: any;
|
|
818
824
|
};
|
|
819
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
825
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
826
|
+
searchValue: string;
|
|
827
|
+
}) => number>;
|
|
820
828
|
optionFilterProp: StringConstructor;
|
|
821
829
|
optionLabelProp: StringConstructor;
|
|
822
830
|
options: PropType<DefaultOptionType[]>;
|
|
@@ -317,6 +317,7 @@ declare function __VLS_template(): {
|
|
|
317
317
|
leafIcon?: any;
|
|
318
318
|
tagRender?: any;
|
|
319
319
|
suffixIcon?: any;
|
|
320
|
+
clearIcon?: any;
|
|
320
321
|
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
321
322
|
P: {};
|
|
322
323
|
B: {};
|
|
@@ -900,6 +901,7 @@ declare const __VLS_component: DefineComponent<ApFieldTreeSelectProps, {
|
|
|
900
901
|
leafIcon?: any;
|
|
901
902
|
tagRender?: any;
|
|
902
903
|
suffixIcon?: any;
|
|
904
|
+
clearIcon?: any;
|
|
903
905
|
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
904
906
|
P: {};
|
|
905
907
|
B: {};
|
|
@@ -52,6 +52,7 @@ declare function __VLS_template(): {
|
|
|
52
52
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
53
53
|
readonly defaultValue?: ValueType | undefined;
|
|
54
54
|
readonly changeOnWheel?: boolean | undefined;
|
|
55
|
+
readonly changeOnBlur?: boolean | undefined;
|
|
55
56
|
readonly stringMode?: boolean | undefined;
|
|
56
57
|
readonly min?: ValueType | undefined;
|
|
57
58
|
readonly max?: ValueType | undefined;
|
|
@@ -121,6 +122,10 @@ declare function __VLS_template(): {
|
|
|
121
122
|
type: BooleanConstructor;
|
|
122
123
|
default: boolean;
|
|
123
124
|
};
|
|
125
|
+
changeOnBlur: {
|
|
126
|
+
type: BooleanConstructor;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
124
129
|
stringMode: {
|
|
125
130
|
type: BooleanConstructor;
|
|
126
131
|
default: boolean;
|
|
@@ -237,6 +242,7 @@ declare function __VLS_template(): {
|
|
|
237
242
|
defaultValue: ValueType;
|
|
238
243
|
step: ValueType;
|
|
239
244
|
changeOnWheel: boolean;
|
|
245
|
+
changeOnBlur: boolean;
|
|
240
246
|
stringMode: boolean;
|
|
241
247
|
controls: boolean;
|
|
242
248
|
keyboard: boolean;
|
|
@@ -298,6 +304,10 @@ declare function __VLS_template(): {
|
|
|
298
304
|
type: BooleanConstructor;
|
|
299
305
|
default: boolean;
|
|
300
306
|
};
|
|
307
|
+
changeOnBlur: {
|
|
308
|
+
type: BooleanConstructor;
|
|
309
|
+
default: boolean;
|
|
310
|
+
};
|
|
301
311
|
stringMode: {
|
|
302
312
|
type: BooleanConstructor;
|
|
303
313
|
default: boolean;
|
|
@@ -414,6 +424,7 @@ declare function __VLS_template(): {
|
|
|
414
424
|
defaultValue: ValueType;
|
|
415
425
|
step: ValueType;
|
|
416
426
|
changeOnWheel: boolean;
|
|
427
|
+
changeOnBlur: boolean;
|
|
417
428
|
stringMode: boolean;
|
|
418
429
|
controls: boolean;
|
|
419
430
|
keyboard: boolean;
|
|
@@ -547,6 +558,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
547
558
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
548
559
|
readonly defaultValue?: ValueType | undefined;
|
|
549
560
|
readonly changeOnWheel?: boolean | undefined;
|
|
561
|
+
readonly changeOnBlur?: boolean | undefined;
|
|
550
562
|
readonly stringMode?: boolean | undefined;
|
|
551
563
|
readonly min?: ValueType | undefined;
|
|
552
564
|
readonly max?: ValueType | undefined;
|
|
@@ -616,6 +628,10 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
616
628
|
type: BooleanConstructor;
|
|
617
629
|
default: boolean;
|
|
618
630
|
};
|
|
631
|
+
changeOnBlur: {
|
|
632
|
+
type: BooleanConstructor;
|
|
633
|
+
default: boolean;
|
|
634
|
+
};
|
|
619
635
|
stringMode: {
|
|
620
636
|
type: BooleanConstructor;
|
|
621
637
|
default: boolean;
|
|
@@ -732,6 +748,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
732
748
|
defaultValue: ValueType;
|
|
733
749
|
step: ValueType;
|
|
734
750
|
changeOnWheel: boolean;
|
|
751
|
+
changeOnBlur: boolean;
|
|
735
752
|
stringMode: boolean;
|
|
736
753
|
controls: boolean;
|
|
737
754
|
keyboard: boolean;
|
|
@@ -793,6 +810,10 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
793
810
|
type: BooleanConstructor;
|
|
794
811
|
default: boolean;
|
|
795
812
|
};
|
|
813
|
+
changeOnBlur: {
|
|
814
|
+
type: BooleanConstructor;
|
|
815
|
+
default: boolean;
|
|
816
|
+
};
|
|
796
817
|
stringMode: {
|
|
797
818
|
type: BooleanConstructor;
|
|
798
819
|
default: boolean;
|
|
@@ -909,6 +930,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
909
930
|
defaultValue: ValueType;
|
|
910
931
|
step: ValueType;
|
|
911
932
|
changeOnWheel: boolean;
|
|
933
|
+
changeOnBlur: boolean;
|
|
912
934
|
stringMode: boolean;
|
|
913
935
|
controls: boolean;
|
|
914
936
|
keyboard: boolean;
|
|
@@ -98,7 +98,9 @@ declare function __VLS_template(): {
|
|
|
98
98
|
readonly autoClearSearchValue?: boolean | undefined;
|
|
99
99
|
readonly onDeselect?: SelectHandler<(string | number) | LabeledValue, DefaultOptionType> | undefined;
|
|
100
100
|
readonly filterOption?: boolean | FilterFunc<DefaultOptionType> | undefined;
|
|
101
|
-
readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
101
|
+
readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
102
|
+
searchValue: string;
|
|
103
|
+
}) => number) | undefined;
|
|
102
104
|
readonly optionFilterProp?: string | undefined;
|
|
103
105
|
readonly optionLabelProp?: string | undefined;
|
|
104
106
|
readonly options?: DefaultOptionType[] | undefined;
|
|
@@ -261,7 +263,9 @@ declare function __VLS_template(): {
|
|
|
261
263
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
262
264
|
default: any;
|
|
263
265
|
};
|
|
264
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
266
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
267
|
+
searchValue: string;
|
|
268
|
+
}) => number>;
|
|
265
269
|
optionFilterProp: StringConstructor;
|
|
266
270
|
optionLabelProp: StringConstructor;
|
|
267
271
|
options: PropType< DefaultOptionType[]>;
|
|
@@ -480,7 +484,9 @@ declare function __VLS_template(): {
|
|
|
480
484
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
481
485
|
default: any;
|
|
482
486
|
};
|
|
483
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
487
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
488
|
+
searchValue: string;
|
|
489
|
+
}) => number>;
|
|
484
490
|
optionFilterProp: StringConstructor;
|
|
485
491
|
optionLabelProp: StringConstructor;
|
|
486
492
|
options: PropType< DefaultOptionType[]>;
|
|
@@ -747,7 +753,9 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
747
753
|
readonly autoClearSearchValue?: boolean | undefined;
|
|
748
754
|
readonly onDeselect?: SelectHandler<(string | number) | LabeledValue, DefaultOptionType> | undefined;
|
|
749
755
|
readonly filterOption?: boolean | FilterFunc<DefaultOptionType> | undefined;
|
|
750
|
-
readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
756
|
+
readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
757
|
+
searchValue: string;
|
|
758
|
+
}) => number) | undefined;
|
|
751
759
|
readonly optionFilterProp?: string | undefined;
|
|
752
760
|
readonly optionLabelProp?: string | undefined;
|
|
753
761
|
readonly options?: DefaultOptionType[] | undefined;
|
|
@@ -910,7 +918,9 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
910
918
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
911
919
|
default: any;
|
|
912
920
|
};
|
|
913
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
921
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
922
|
+
searchValue: string;
|
|
923
|
+
}) => number>;
|
|
914
924
|
optionFilterProp: StringConstructor;
|
|
915
925
|
optionLabelProp: StringConstructor;
|
|
916
926
|
options: PropType< DefaultOptionType[]>;
|
|
@@ -1129,7 +1139,9 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
1129
1139
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
1130
1140
|
default: any;
|
|
1131
1141
|
};
|
|
1132
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
1142
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
1143
|
+
searchValue: string;
|
|
1144
|
+
}) => number>;
|
|
1133
1145
|
optionFilterProp: StringConstructor;
|
|
1134
1146
|
optionLabelProp: StringConstructor;
|
|
1135
1147
|
options: PropType< DefaultOptionType[]>;
|
|
@@ -435,6 +435,7 @@ declare function __VLS_template(): {
|
|
|
435
435
|
leafIcon?: any;
|
|
436
436
|
tagRender?: any;
|
|
437
437
|
suffixIcon?: any;
|
|
438
|
+
clearIcon?: any;
|
|
438
439
|
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
439
440
|
P: {};
|
|
440
441
|
B: {};
|
|
@@ -1226,6 +1227,7 @@ declare const __VLS_component: DefineComponent<ApFormItemTreeSelectProps, {
|
|
|
1226
1227
|
leafIcon?: any;
|
|
1227
1228
|
tagRender?: any;
|
|
1228
1229
|
suffixIcon?: any;
|
|
1230
|
+
clearIcon?: any;
|
|
1229
1231
|
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1230
1232
|
P: {};
|
|
1231
1233
|
B: {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFormModalFormProps } from '../interface';
|
|
2
|
-
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
2
|
+
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, RendererNode, RendererElement, CSSProperties } from 'vue';
|
|
3
3
|
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
4
|
import { Recordable } from '../../type';
|
|
5
5
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
@@ -942,9 +942,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
942
942
|
loading: {
|
|
943
943
|
type: PropType<boolean | {
|
|
944
944
|
delay?: number;
|
|
945
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
946
|
+
[key: string]: any;
|
|
947
|
+
}>;
|
|
945
948
|
}>;
|
|
946
949
|
default: () => boolean | {
|
|
947
950
|
delay?: number;
|
|
951
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
952
|
+
[key: string]: any;
|
|
953
|
+
}>;
|
|
948
954
|
};
|
|
949
955
|
};
|
|
950
956
|
disabled: {
|
|
@@ -997,9 +1003,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
997
1003
|
loading: {
|
|
998
1004
|
type: PropType<boolean | {
|
|
999
1005
|
delay?: number;
|
|
1006
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1007
|
+
[key: string]: any;
|
|
1008
|
+
}>;
|
|
1000
1009
|
}>;
|
|
1001
1010
|
default: () => boolean | {
|
|
1002
1011
|
delay?: number;
|
|
1012
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1013
|
+
[key: string]: any;
|
|
1014
|
+
}>;
|
|
1003
1015
|
};
|
|
1004
1016
|
};
|
|
1005
1017
|
disabled: {
|
|
@@ -1054,9 +1066,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1054
1066
|
loading: {
|
|
1055
1067
|
type: PropType<boolean | {
|
|
1056
1068
|
delay?: number;
|
|
1069
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1070
|
+
[key: string]: any;
|
|
1071
|
+
}>;
|
|
1057
1072
|
}>;
|
|
1058
1073
|
default: () => boolean | {
|
|
1059
1074
|
delay?: number;
|
|
1075
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1076
|
+
[key: string]: any;
|
|
1077
|
+
}>;
|
|
1060
1078
|
};
|
|
1061
1079
|
};
|
|
1062
1080
|
disabled: {
|
|
@@ -1109,9 +1127,15 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1109
1127
|
loading: {
|
|
1110
1128
|
type: PropType<boolean | {
|
|
1111
1129
|
delay?: number;
|
|
1130
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1131
|
+
[key: string]: any;
|
|
1132
|
+
}>;
|
|
1112
1133
|
}>;
|
|
1113
1134
|
default: () => boolean | {
|
|
1114
1135
|
delay?: number;
|
|
1136
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
1137
|
+
[key: string]: any;
|
|
1138
|
+
}>;
|
|
1115
1139
|
};
|
|
1116
1140
|
};
|
|
1117
1141
|
disabled: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApFormSearchFormPopoverFilterProps } from '../../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
3
|
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
4
4
|
import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
5
5
|
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
@@ -22,9 +22,15 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
|
|
|
22
22
|
loading: {
|
|
23
23
|
type: PropType<boolean | {
|
|
24
24
|
delay?: number;
|
|
25
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>;
|
|
25
28
|
}>;
|
|
26
29
|
default: () => boolean | {
|
|
27
30
|
delay?: number;
|
|
31
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>;
|
|
28
34
|
};
|
|
29
35
|
};
|
|
30
36
|
disabled: {
|
|
@@ -66,6 +72,9 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
|
|
|
66
72
|
autoInsertSpace: boolean;
|
|
67
73
|
loading: boolean | {
|
|
68
74
|
delay?: number;
|
|
75
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
}>;
|
|
69
78
|
};
|
|
70
79
|
danger: boolean;
|
|
71
80
|
htmlType: ButtonHTMLType;
|
|
@@ -97,9 +106,15 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
|
|
|
97
106
|
loading: {
|
|
98
107
|
type: PropType<boolean | {
|
|
99
108
|
delay?: number;
|
|
109
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
110
|
+
[key: string]: any;
|
|
111
|
+
}>;
|
|
100
112
|
}>;
|
|
101
113
|
default: () => boolean | {
|
|
102
114
|
delay?: number;
|
|
115
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
116
|
+
[key: string]: any;
|
|
117
|
+
}>;
|
|
103
118
|
};
|
|
104
119
|
};
|
|
105
120
|
disabled: {
|
|
@@ -141,6 +156,9 @@ declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {},
|
|
|
141
156
|
autoInsertSpace: boolean;
|
|
142
157
|
loading: boolean | {
|
|
143
158
|
delay?: number;
|
|
159
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
160
|
+
[key: string]: any;
|
|
161
|
+
}>;
|
|
144
162
|
};
|
|
145
163
|
danger: boolean;
|
|
146
164
|
htmlType: ButtonHTMLType;
|
|
@@ -195,6 +195,7 @@ export declare const apTableFormItemMap: {
|
|
|
195
195
|
readonly status?: "" | "error" | "warning" | undefined;
|
|
196
196
|
readonly defaultValue?: ValueType | undefined;
|
|
197
197
|
readonly changeOnWheel?: boolean | undefined;
|
|
198
|
+
readonly changeOnBlur?: boolean | undefined;
|
|
198
199
|
readonly stringMode?: boolean | undefined;
|
|
199
200
|
readonly min?: ValueType | undefined;
|
|
200
201
|
readonly max?: ValueType | undefined;
|
|
@@ -264,6 +265,10 @@ export declare const apTableFormItemMap: {
|
|
|
264
265
|
type: BooleanConstructor;
|
|
265
266
|
default: boolean;
|
|
266
267
|
};
|
|
268
|
+
changeOnBlur: {
|
|
269
|
+
type: BooleanConstructor;
|
|
270
|
+
default: boolean;
|
|
271
|
+
};
|
|
267
272
|
stringMode: {
|
|
268
273
|
type: BooleanConstructor;
|
|
269
274
|
default: boolean;
|
|
@@ -380,6 +385,7 @@ export declare const apTableFormItemMap: {
|
|
|
380
385
|
defaultValue: ValueType;
|
|
381
386
|
step: ValueType;
|
|
382
387
|
changeOnWheel: boolean;
|
|
388
|
+
changeOnBlur: boolean;
|
|
383
389
|
stringMode: boolean;
|
|
384
390
|
controls: boolean;
|
|
385
391
|
keyboard: boolean;
|
|
@@ -441,6 +447,10 @@ export declare const apTableFormItemMap: {
|
|
|
441
447
|
type: BooleanConstructor;
|
|
442
448
|
default: boolean;
|
|
443
449
|
};
|
|
450
|
+
changeOnBlur: {
|
|
451
|
+
type: BooleanConstructor;
|
|
452
|
+
default: boolean;
|
|
453
|
+
};
|
|
444
454
|
stringMode: {
|
|
445
455
|
type: BooleanConstructor;
|
|
446
456
|
default: boolean;
|
|
@@ -557,6 +567,7 @@ export declare const apTableFormItemMap: {
|
|
|
557
567
|
defaultValue: ValueType;
|
|
558
568
|
step: ValueType;
|
|
559
569
|
changeOnWheel: boolean;
|
|
570
|
+
changeOnBlur: boolean;
|
|
560
571
|
stringMode: boolean;
|
|
561
572
|
controls: boolean;
|
|
562
573
|
keyboard: boolean;
|
|
@@ -950,7 +961,9 @@ export declare const apTableFormItemMap: {
|
|
|
950
961
|
readonly autoClearSearchValue?: boolean | undefined;
|
|
951
962
|
readonly onDeselect?: SelectHandler<(string | number) | LabeledValue, DefaultOptionType> | undefined;
|
|
952
963
|
readonly filterOption?: boolean | FilterFunc<DefaultOptionType> | undefined;
|
|
953
|
-
readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
964
|
+
readonly filterSort?: ((optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
965
|
+
searchValue: string;
|
|
966
|
+
}) => number) | undefined;
|
|
954
967
|
readonly optionFilterProp?: string | undefined;
|
|
955
968
|
readonly optionLabelProp?: string | undefined;
|
|
956
969
|
readonly options?: DefaultOptionType[] | undefined;
|
|
@@ -1113,7 +1126,9 @@ export declare const apTableFormItemMap: {
|
|
|
1113
1126
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
1114
1127
|
default: any;
|
|
1115
1128
|
};
|
|
1116
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
1129
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
1130
|
+
searchValue: string;
|
|
1131
|
+
}) => number>;
|
|
1117
1132
|
optionFilterProp: StringConstructor;
|
|
1118
1133
|
optionLabelProp: StringConstructor;
|
|
1119
1134
|
options: PropType< DefaultOptionType[]>;
|
|
@@ -1332,7 +1347,9 @@ export declare const apTableFormItemMap: {
|
|
|
1332
1347
|
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
1333
1348
|
default: any;
|
|
1334
1349
|
};
|
|
1335
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType
|
|
1350
|
+
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType, info: {
|
|
1351
|
+
searchValue: string;
|
|
1352
|
+
}) => number>;
|
|
1336
1353
|
optionFilterProp: StringConstructor;
|
|
1337
1354
|
optionLabelProp: StringConstructor;
|
|
1338
1355
|
options: PropType< DefaultOptionType[]>;
|
|
@@ -2880,6 +2897,7 @@ export declare const apTableFormItemMap: {
|
|
|
2880
2897
|
leafIcon?: any;
|
|
2881
2898
|
tagRender?: any;
|
|
2882
2899
|
suffixIcon?: any;
|
|
2900
|
+
clearIcon?: any;
|
|
2883
2901
|
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
2884
2902
|
P: {};
|
|
2885
2903
|
B: {};
|
|
@@ -3411,6 +3429,7 @@ export declare const apTableRenderItemMap: {
|
|
|
3411
3429
|
actions: GroupActionTypes[];
|
|
3412
3430
|
trigger: Trigger | Trigger[];
|
|
3413
3431
|
count: number;
|
|
3432
|
+
iconFirst: boolean;
|
|
3414
3433
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
3415
3434
|
index: DefineComponent<ApTableIndexProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ApTableIndexProps> & Readonly<{}>, {
|
|
3416
3435
|
bordered: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNodeChild, CSSProperties, ComputedRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, VNode, VNodeChild, RendererNode, RendererElement, CSSProperties, ComputedRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
2
|
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
3
3
|
import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
@@ -31,9 +31,11 @@ declare const ApBatchActionGroup: {
|
|
|
31
31
|
loading: {
|
|
32
32
|
type: PropType<boolean | {
|
|
33
33
|
delay?: number;
|
|
34
|
+
icon?: VNode;
|
|
34
35
|
}>;
|
|
35
36
|
default: () => boolean | {
|
|
36
37
|
delay?: number;
|
|
38
|
+
icon?: VNode;
|
|
37
39
|
};
|
|
38
40
|
};
|
|
39
41
|
disabled: {
|
|
@@ -97,9 +99,15 @@ declare const ApBatchActionGroup: {
|
|
|
97
99
|
loading: {
|
|
98
100
|
type: PropType<boolean | {
|
|
99
101
|
delay?: number;
|
|
102
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
103
|
+
[key: string]: any;
|
|
104
|
+
}>;
|
|
100
105
|
}>;
|
|
101
106
|
default: () => boolean | {
|
|
102
107
|
delay?: number;
|
|
108
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
109
|
+
[key: string]: any;
|
|
110
|
+
}>;
|
|
103
111
|
};
|
|
104
112
|
};
|
|
105
113
|
onClick: {
|
|
@@ -301,7 +309,9 @@ declare const ApBatchActionGroup: {
|
|
|
301
309
|
type: PropType<(val: boolean) => void>;
|
|
302
310
|
};
|
|
303
311
|
onOpenChange: {
|
|
304
|
-
type: PropType<(val: boolean
|
|
312
|
+
type: PropType<(val: boolean, info: {
|
|
313
|
+
source: "trigger" | "menu";
|
|
314
|
+
}) => void>;
|
|
305
315
|
};
|
|
306
316
|
'onUpdate:open': {
|
|
307
317
|
type: PropType<(val: boolean) => void>;
|
|
@@ -341,9 +351,11 @@ declare const ApBatchActionGroup: {
|
|
|
341
351
|
loading: {
|
|
342
352
|
type: PropType<boolean | {
|
|
343
353
|
delay?: number;
|
|
354
|
+
icon?: VNode;
|
|
344
355
|
}>;
|
|
345
356
|
default: () => boolean | {
|
|
346
357
|
delay?: number;
|
|
358
|
+
icon?: VNode;
|
|
347
359
|
};
|
|
348
360
|
};
|
|
349
361
|
disabled: {
|
|
@@ -407,9 +419,15 @@ declare const ApBatchActionGroup: {
|
|
|
407
419
|
loading: {
|
|
408
420
|
type: PropType<boolean | {
|
|
409
421
|
delay?: number;
|
|
422
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
423
|
+
[key: string]: any;
|
|
424
|
+
}>;
|
|
410
425
|
}>;
|
|
411
426
|
default: () => boolean | {
|
|
412
427
|
delay?: number;
|
|
428
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
429
|
+
[key: string]: any;
|
|
430
|
+
}>;
|
|
413
431
|
};
|
|
414
432
|
};
|
|
415
433
|
onClick: {
|
|
@@ -611,7 +629,9 @@ declare const ApBatchActionGroup: {
|
|
|
611
629
|
type: PropType<(val: boolean) => void>;
|
|
612
630
|
};
|
|
613
631
|
onOpenChange: {
|
|
614
|
-
type: PropType<(val: boolean
|
|
632
|
+
type: PropType<(val: boolean, info: {
|
|
633
|
+
source: "trigger" | "menu";
|
|
634
|
+
}) => void>;
|
|
615
635
|
};
|
|
616
636
|
'onUpdate:open': {
|
|
617
637
|
type: PropType<(val: boolean) => void>;
|
|
@@ -648,9 +668,11 @@ declare const ApBatchActionGroup: {
|
|
|
648
668
|
loading: {
|
|
649
669
|
type: PropType<boolean | {
|
|
650
670
|
delay?: number;
|
|
671
|
+
icon?: VNode;
|
|
651
672
|
}>;
|
|
652
673
|
default: () => boolean | {
|
|
653
674
|
delay?: number;
|
|
675
|
+
icon?: VNode;
|
|
654
676
|
};
|
|
655
677
|
};
|
|
656
678
|
disabled: {
|
|
@@ -714,9 +736,15 @@ declare const ApBatchActionGroup: {
|
|
|
714
736
|
loading: {
|
|
715
737
|
type: PropType<boolean | {
|
|
716
738
|
delay?: number;
|
|
739
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
740
|
+
[key: string]: any;
|
|
741
|
+
}>;
|
|
717
742
|
}>;
|
|
718
743
|
default: () => boolean | {
|
|
719
744
|
delay?: number;
|
|
745
|
+
icon?: VNode<RendererNode, RendererElement, {
|
|
746
|
+
[key: string]: any;
|
|
747
|
+
}>;
|
|
720
748
|
};
|
|
721
749
|
};
|
|
722
750
|
onClick: {
|
|
@@ -918,7 +946,9 @@ declare const ApBatchActionGroup: {
|
|
|
918
946
|
type: PropType<(val: boolean) => void>;
|
|
919
947
|
};
|
|
920
948
|
onOpenChange: {
|
|
921
|
-
type: PropType<(val: boolean
|
|
949
|
+
type: PropType<(val: boolean, info: {
|
|
950
|
+
source: "trigger" | "menu";
|
|
951
|
+
}) => void>;
|
|
922
952
|
};
|
|
923
953
|
'onUpdate:open': {
|
|
924
954
|
type: PropType<(val: boolean) => void>;
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import { DisplayInfoProps } from './interface';
|
|
2
|
-
import {
|
|
2
|
+
import { Recordable } from '../../type';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
4
|
declare function __VLS_template(): {
|
|
4
5
|
attrs: Partial<{}>;
|
|
5
|
-
slots:
|
|
6
|
-
index: number;
|
|
7
|
-
item: VNode<RendererNode, RendererElement, {
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
}> | VNodeChild;
|
|
10
|
-
record: {
|
|
11
|
-
[x: string]: any;
|
|
12
|
-
} | undefined;
|
|
13
|
-
}) => any>>;
|
|
6
|
+
slots: Readonly<Recordable> & Recordable;
|
|
14
7
|
refs: {};
|
|
15
8
|
rootEl: HTMLDivElement;
|
|
16
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),P=require("@aplus-frontend/antdv"),o=require("./helper.js"),u=require("lodash-unified");require("./help-message/index.vue.js");require("../../config-provider/index.js");const _=require("./style/index.js"),a=require("../../config-provider/hooks/use-global-config.js"),m=require("../../config-provider/hooks/use-namespace.js"),x=require("./help-message/index.vue2.js"),T=t.defineComponent({name:"ApDescriptions",__name:"ap-descriptions",props:{descriptionsProps:{},schemas:{},dataSource:{},style:{type:[Boolean,null,String,Object,Array]},className:{}},setup(p){const l=p,c=a.useGlobalConfig("apDescriptions"),d=a.useGlobalConfig("downloadCenterTriggerConfig"),{b:f,be:y}=m.useNamespace("ap-descriptions"),b=_.default("ap-descriptions"),g=t.useSlots(),S=(e={})=>{let n="";return l.descriptionsProps?.layout==="vertical"&&(n="start"),{justifyContent:n,...e}},s=e=>{const n=u.get(l.dataSource,e.field);if(e.customRender)return e.customRender(l.dataSource);e.valueType==="attachment"&&(e.extraProps=o.mixinsAttachmentExtraProps(e.extraProps,{fromConfig:c.value?.downloadFile,fromGlobal:d.value?.trigger}));const r=e.format?e.format(n,l.dataSource||{}):n;return o.transformValue({value:r,record:l.dataSource},e)},v=e=>e.valueType==="text"&&!!e.extraProps?.ellipsis,C=(e,n)=>{if(e.visible!=null){if(typeof e.visible=="boolean")return e.visible;if(typeof e.visible=="function")return e.visible({record:n||{},schema:e})}return!0},q=(e,n,r)=>e.valueType==="empty"?null:o.isEmptyWithType(u.get(r,e.field),e)?t.createVNode("span",null,[t.createTextVNode("--")]):e.contentSlotName?g?.[e.contentSlotName]?.({index:n,record:r,item:s(e)}):t.createVNode(t.Fragment,null,[e.prefix,s(e),e.suffix]),N=(e=[],n)=>e.filter(r=>C(r,n)).map((r,i)=>({label:r.label?t.h(t.Fragment,[t.h(x.default,{helpMessage:r.helpMessage,label:r.label})]):null,span:r.span,style:r.style,contentStyle:r.contentStyle,labelStyle:r.labelStyle,key:r.field?.toString()||"empty"+i,class:v(r)?y("item","ellipsis"):"",children:q(r,i,n)}));return(e,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass([e.className,t.unref(f)(),t.unref(b)]),style:t.normalizeStyle(e.style)},[t.createVNode(t.unref(P.Descriptions),t.mergeProps(e.descriptionsProps,{"label-style":S({...e.descriptionsProps?.labelStyle||{}}),items:N(e.schemas,e.dataSource)}),null,16,["label-style","items"])],6))}});exports.default=T;
|