@aplus-frontend/ui 0.2.18 → 0.2.20
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/index.mjs +193 -189
- package/es/src/ap-field/number/index.vue.d.ts +4 -0
- package/es/src/ap-field/number/index.vue.mjs +5 -4
- package/es/src/ap-form/index.d.ts +5 -1
- package/es/src/ap-form/index.mjs +17 -9
- package/es/src/ap-form/interface.d.ts +9 -0
- package/es/src/ap-form/items/number/index.vue.d.ts +20 -10
- package/es/src/ap-form/items/select/index.vue.d.ts +1 -0
- package/es/src/ap-form/items/select/index.vue.mjs +26 -22
- package/es/src/ap-form/items/text/index.vue.d.ts +10 -10
- package/es/src/ap-form/items/text/password.vue.d.ts +10 -10
- package/es/src/ap-form/items/text-area/index.vue.d.ts +9 -9
- package/es/src/ap-form/render/control.vue.d.ts +29 -0
- package/es/src/ap-form/render/control.vue.mjs +23 -0
- package/es/src/ap-form/render/control.vue2.mjs +4 -0
- package/es/src/ap-form/render/item.vue.d.ts +62 -0
- package/es/src/ap-form/render/item.vue.mjs +64 -0
- package/es/src/ap-form/render/item.vue2.mjs +4 -0
- package/es/src/ap-table/constants.d.ts +75 -60
- package/es/src/ap-table/utils.d.ts +3 -0
- package/es/src/business/ap-group-search/index.d.ts +36 -36
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +1 -1
- package/es/src/business/ap-ladder/index.d.ts +7 -7
- package/es/src/business/batch-input-group/index.vue.mjs +45 -41
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +15 -15
- package/es/src/config-provider/config-provider.d.ts +5 -0
- package/es/src/config-provider/css-var.d.ts +5 -0
- package/es/src/config-provider/css-var.mjs +20 -10
- package/es/src/config-provider/index.d.ts +30 -0
- package/es/src/index.mjs +154 -150
- package/es/src/locale/lang/en.mjs +3 -0
- package/es/src/locale/lang/zh-cn.mjs +3 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +4 -0
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-form/index.d.ts +5 -1
- package/lib/src/ap-form/index.js +1 -1
- package/lib/src/ap-form/interface.d.ts +9 -0
- package/lib/src/ap-form/items/number/index.vue.d.ts +20 -10
- package/lib/src/ap-form/items/select/index.vue.d.ts +1 -0
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue.d.ts +10 -10
- package/lib/src/ap-form/items/text/password.vue.d.ts +10 -10
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +9 -9
- package/lib/src/ap-form/render/control.vue.d.ts +29 -0
- package/lib/src/ap-form/render/control.vue.js +1 -0
- package/lib/src/ap-form/render/control.vue2.js +1 -0
- package/lib/src/ap-form/render/item.vue.d.ts +62 -0
- package/lib/src/ap-form/render/item.vue.js +1 -0
- package/lib/src/ap-form/render/item.vue2.js +1 -0
- package/lib/src/ap-table/constants.d.ts +75 -60
- package/lib/src/ap-table/utils.d.ts +3 -0
- package/lib/src/business/ap-group-search/index.d.ts +36 -36
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +7 -7
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/config-provider/config-provider.d.ts +5 -0
- package/lib/src/config-provider/css-var.d.ts +5 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/index.d.ts +30 -0
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/package.json +2 -2
|
@@ -61,13 +61,14 @@ declare function __VLS_template(): {
|
|
|
61
61
|
readonly tabindex?: number | undefined;
|
|
62
62
|
readonly prefix?: any;
|
|
63
63
|
readonly autofocus?: boolean | undefined;
|
|
64
|
+
'onUpdate:value'?: (((value: ValueType) => void) & ((...args: any[]) => any)) | undefined;
|
|
64
65
|
readonly defaultValue?: ValueType | undefined;
|
|
65
66
|
readonly onPressEnter?: KeyboardEventHandler | undefined;
|
|
66
|
-
'onUpdate:value'?: (((value: ValueType) => void) & ((...args: any[]) => any)) | undefined;
|
|
67
67
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
68
68
|
readonly readonly?: boolean | undefined;
|
|
69
69
|
readonly addonBefore?: any;
|
|
70
70
|
readonly addonAfter?: any;
|
|
71
|
+
readonly suffix?: any;
|
|
71
72
|
readonly stringMode?: boolean | undefined;
|
|
72
73
|
readonly parser?: ((displayValue: string) => ValueType) | undefined;
|
|
73
74
|
readonly formatter?: ((value: ValueType, info: {
|
|
@@ -147,6 +148,9 @@ declare function __VLS_template(): {
|
|
|
147
148
|
autofocus: {
|
|
148
149
|
type: PropType<boolean>;
|
|
149
150
|
};
|
|
151
|
+
'onUpdate:value': {
|
|
152
|
+
type: PropType<(value: ValueType) => void>;
|
|
153
|
+
};
|
|
150
154
|
max: {
|
|
151
155
|
type: PropType<ValueType>;
|
|
152
156
|
default: number;
|
|
@@ -161,9 +165,6 @@ declare function __VLS_template(): {
|
|
|
161
165
|
onPressEnter: {
|
|
162
166
|
type: PropType<KeyboardEventHandler>;
|
|
163
167
|
};
|
|
164
|
-
'onUpdate:value': {
|
|
165
|
-
type: PropType<(value: ValueType) => void>;
|
|
166
|
-
};
|
|
167
168
|
valueModifiers: {
|
|
168
169
|
type: PropType<Record<string, any>>;
|
|
169
170
|
};
|
|
@@ -176,6 +177,9 @@ declare function __VLS_template(): {
|
|
|
176
177
|
addonAfter: {
|
|
177
178
|
type: PropType<any>;
|
|
178
179
|
};
|
|
180
|
+
suffix: {
|
|
181
|
+
type: PropType<any>;
|
|
182
|
+
};
|
|
179
183
|
stringMode: {
|
|
180
184
|
type: PropType<boolean>;
|
|
181
185
|
};
|
|
@@ -301,6 +305,9 @@ declare function __VLS_template(): {
|
|
|
301
305
|
autofocus: {
|
|
302
306
|
type: PropType<boolean>;
|
|
303
307
|
};
|
|
308
|
+
'onUpdate:value': {
|
|
309
|
+
type: PropType<(value: ValueType) => void>;
|
|
310
|
+
};
|
|
304
311
|
max: {
|
|
305
312
|
type: PropType<ValueType>;
|
|
306
313
|
default: number;
|
|
@@ -315,9 +322,6 @@ declare function __VLS_template(): {
|
|
|
315
322
|
onPressEnter: {
|
|
316
323
|
type: PropType<KeyboardEventHandler>;
|
|
317
324
|
};
|
|
318
|
-
'onUpdate:value': {
|
|
319
|
-
type: PropType<(value: ValueType) => void>;
|
|
320
|
-
};
|
|
321
325
|
valueModifiers: {
|
|
322
326
|
type: PropType<Record<string, any>>;
|
|
323
327
|
};
|
|
@@ -330,6 +334,9 @@ declare function __VLS_template(): {
|
|
|
330
334
|
addonAfter: {
|
|
331
335
|
type: PropType<any>;
|
|
332
336
|
};
|
|
337
|
+
suffix: {
|
|
338
|
+
type: PropType<any>;
|
|
339
|
+
};
|
|
333
340
|
stringMode: {
|
|
334
341
|
type: PropType<boolean>;
|
|
335
342
|
};
|
|
@@ -475,6 +482,9 @@ declare function __VLS_template(): {
|
|
|
475
482
|
autofocus: {
|
|
476
483
|
type: PropType<boolean>;
|
|
477
484
|
};
|
|
485
|
+
'onUpdate:value': {
|
|
486
|
+
type: PropType<(value: ValueType) => void>;
|
|
487
|
+
};
|
|
478
488
|
max: {
|
|
479
489
|
type: PropType<ValueType>;
|
|
480
490
|
default: number;
|
|
@@ -489,9 +499,6 @@ declare function __VLS_template(): {
|
|
|
489
499
|
onPressEnter: {
|
|
490
500
|
type: PropType<KeyboardEventHandler>;
|
|
491
501
|
};
|
|
492
|
-
'onUpdate:value': {
|
|
493
|
-
type: PropType<(value: ValueType) => void>;
|
|
494
|
-
};
|
|
495
502
|
valueModifiers: {
|
|
496
503
|
type: PropType<Record<string, any>>;
|
|
497
504
|
};
|
|
@@ -504,6 +511,9 @@ declare function __VLS_template(): {
|
|
|
504
511
|
addonAfter: {
|
|
505
512
|
type: PropType<any>;
|
|
506
513
|
};
|
|
514
|
+
suffix: {
|
|
515
|
+
type: PropType<any>;
|
|
516
|
+
};
|
|
507
517
|
stringMode: {
|
|
508
518
|
type: PropType<boolean>;
|
|
509
519
|
};
|
|
@@ -45,6 +45,7 @@ declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypeProp
|
|
|
45
45
|
}>, {
|
|
46
46
|
focus: () => void;
|
|
47
47
|
blur: () => void;
|
|
48
|
+
request: () => void;
|
|
48
49
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormItemSelectProps>, {
|
|
49
50
|
hasFeedback: boolean;
|
|
50
51
|
colon: undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../item/index.vue2.js");require("../../../ap-field/index.js");const o=require("lodash-unified"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../item/index.vue2.js");require("../../../ap-field/index.js");const o=require("lodash-unified"),d=require("../../constant.js"),m=require("../../item/index.vue.js"),_=require("../../../ap-field/select/index.vue.js"),v=e.defineComponent({name:"ApFormItemSelect",__name:"index",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean},valuePropName:{},initialValue:{},_signal:{},transform:{},field:{default:()=>({})},placeholder:{},disabled:{type:Boolean,default:!1}},setup(i,{expose:p}){const t=i,a=e.ref();p({focus:()=>{var r;(r=a.value)==null||r.focus()},blur:()=>{var r;(r=a.value)==null||r.blur()},request:()=>{var r;(r=a.value)==null||r.request()}});const u=e.useSlots(),c=e.computed(()=>{var r,s;return{placeholder:t.placeholder,disabled:t.disabled,...t.field||{},bordered:t.bordered?!1:o.isUndefined((r=t.field)==null?void 0:r.bordered)?!0:(s=t.field)==null?void 0:s.bordered}});return(r,s)=>(e.openBlock(),e.createBlock(m.default,e.normalizeProps(e.guardReactiveProps(e.unref(o.omit)(t,["field","placeholder","disabled"]))),e.createSlots({default:e.withCtx(()=>[e.createVNode(e.unref(_.default),e.normalizeProps(e.guardReactiveProps(c.value)),e.createSlots({_:2},[e.renderList(e.unref(o.omit)(u,e.unref(d.apFormItemSlotNames)),(f,l)=>({name:l,fn:e.withCtx(n=>[e.renderSlot(r.$slots,l,e.normalizeProps(e.guardReactiveProps(n||{})))])}))]),1040)]),_:2},[e.renderList(e.unref(o.pick)(u,e.unref(d.apFormItemSlotNames)),(f,l)=>({name:l,fn:e.withCtx(n=>[e.renderSlot(r.$slots,l,e.normalizeProps(e.guardReactiveProps(n||{})))])}))]),1040))}});exports.default=v;
|
|
@@ -60,13 +60,13 @@ declare function __VLS_template(): {
|
|
|
60
60
|
readonly prefix?: any;
|
|
61
61
|
readonly loading?: boolean | undefined;
|
|
62
62
|
readonly autofocus?: boolean | undefined;
|
|
63
|
+
'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
63
64
|
readonly focused?: boolean | undefined;
|
|
64
65
|
readonly defaultValue?: string | number | undefined;
|
|
65
66
|
readonly maxlength?: number | undefined;
|
|
66
67
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
67
68
|
readonly htmlSize?: number | undefined;
|
|
68
69
|
readonly onPressEnter?: KeyboardEventHandler | undefined;
|
|
69
|
-
'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
70
70
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
71
71
|
readonly inputElement?: any;
|
|
72
72
|
readonly triggerFocus?: (() => void) | undefined;
|
|
@@ -158,6 +158,9 @@ declare function __VLS_template(): {
|
|
|
158
158
|
autofocus: {
|
|
159
159
|
type: PropType<boolean>;
|
|
160
160
|
};
|
|
161
|
+
'onUpdate:value': {
|
|
162
|
+
type: PropType<(val: string) => void>;
|
|
163
|
+
};
|
|
161
164
|
focused: {
|
|
162
165
|
type: PropType<boolean>;
|
|
163
166
|
};
|
|
@@ -180,9 +183,6 @@ declare function __VLS_template(): {
|
|
|
180
183
|
onPressEnter: {
|
|
181
184
|
type: PropType<KeyboardEventHandler>;
|
|
182
185
|
};
|
|
183
|
-
'onUpdate:value': {
|
|
184
|
-
type: PropType<(val: string) => void>;
|
|
185
|
-
};
|
|
186
186
|
valueModifiers: {
|
|
187
187
|
type: PropType<Record<string, any>>;
|
|
188
188
|
};
|
|
@@ -316,6 +316,9 @@ declare function __VLS_template(): {
|
|
|
316
316
|
autofocus: {
|
|
317
317
|
type: PropType<boolean>;
|
|
318
318
|
};
|
|
319
|
+
'onUpdate:value': {
|
|
320
|
+
type: PropType<(val: string) => void>;
|
|
321
|
+
};
|
|
319
322
|
focused: {
|
|
320
323
|
type: PropType<boolean>;
|
|
321
324
|
};
|
|
@@ -338,9 +341,6 @@ declare function __VLS_template(): {
|
|
|
338
341
|
onPressEnter: {
|
|
339
342
|
type: PropType<KeyboardEventHandler>;
|
|
340
343
|
};
|
|
341
|
-
'onUpdate:value': {
|
|
342
|
-
type: PropType<(val: string) => void>;
|
|
343
|
-
};
|
|
344
344
|
valueModifiers: {
|
|
345
345
|
type: PropType<Record<string, any>>;
|
|
346
346
|
};
|
|
@@ -495,6 +495,9 @@ declare function __VLS_template(): {
|
|
|
495
495
|
autofocus: {
|
|
496
496
|
type: PropType<boolean>;
|
|
497
497
|
};
|
|
498
|
+
'onUpdate:value': {
|
|
499
|
+
type: PropType<(val: string) => void>;
|
|
500
|
+
};
|
|
498
501
|
focused: {
|
|
499
502
|
type: PropType<boolean>;
|
|
500
503
|
};
|
|
@@ -517,9 +520,6 @@ declare function __VLS_template(): {
|
|
|
517
520
|
onPressEnter: {
|
|
518
521
|
type: PropType<KeyboardEventHandler>;
|
|
519
522
|
};
|
|
520
|
-
'onUpdate:value': {
|
|
521
|
-
type: PropType<(val: string) => void>;
|
|
522
|
-
};
|
|
523
523
|
valueModifiers: {
|
|
524
524
|
type: PropType<Record<string, any>>;
|
|
525
525
|
};
|
|
@@ -68,13 +68,13 @@ declare function __VLS_template(): {
|
|
|
68
68
|
readonly prefix?: any;
|
|
69
69
|
readonly loading?: boolean | undefined;
|
|
70
70
|
readonly autofocus?: boolean | undefined;
|
|
71
|
+
'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
71
72
|
readonly focused?: boolean | undefined;
|
|
72
73
|
readonly defaultValue?: string | number | undefined;
|
|
73
74
|
readonly maxlength?: number | undefined;
|
|
74
75
|
readonly showCount?: boolean | ShowCountProps | undefined;
|
|
75
76
|
readonly htmlSize?: number | undefined;
|
|
76
77
|
readonly onPressEnter?: KeyboardEventHandler | undefined;
|
|
77
|
-
'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
78
78
|
readonly valueModifiers?: Record<string, any> | undefined;
|
|
79
79
|
readonly inputElement?: any;
|
|
80
80
|
readonly triggerFocus?: (() => void) | undefined;
|
|
@@ -174,6 +174,9 @@ declare function __VLS_template(): {
|
|
|
174
174
|
autofocus: {
|
|
175
175
|
type: PropType<boolean>;
|
|
176
176
|
};
|
|
177
|
+
'onUpdate:value': {
|
|
178
|
+
type: PropType<(val: string) => void>;
|
|
179
|
+
};
|
|
177
180
|
focused: {
|
|
178
181
|
type: PropType<boolean>;
|
|
179
182
|
};
|
|
@@ -196,9 +199,6 @@ declare function __VLS_template(): {
|
|
|
196
199
|
onPressEnter: {
|
|
197
200
|
type: PropType<KeyboardEventHandler>;
|
|
198
201
|
};
|
|
199
|
-
'onUpdate:value': {
|
|
200
|
-
type: PropType<(val: string) => void>;
|
|
201
|
-
};
|
|
202
202
|
valueModifiers: {
|
|
203
203
|
type: PropType<Record<string, any>>;
|
|
204
204
|
};
|
|
@@ -351,6 +351,9 @@ declare function __VLS_template(): {
|
|
|
351
351
|
autofocus: {
|
|
352
352
|
type: PropType<boolean>;
|
|
353
353
|
};
|
|
354
|
+
'onUpdate:value': {
|
|
355
|
+
type: PropType<(val: string) => void>;
|
|
356
|
+
};
|
|
354
357
|
focused: {
|
|
355
358
|
type: PropType<boolean>;
|
|
356
359
|
};
|
|
@@ -373,9 +376,6 @@ declare function __VLS_template(): {
|
|
|
373
376
|
onPressEnter: {
|
|
374
377
|
type: PropType<KeyboardEventHandler>;
|
|
375
378
|
};
|
|
376
|
-
'onUpdate:value': {
|
|
377
|
-
type: PropType<(val: string) => void>;
|
|
378
|
-
};
|
|
379
379
|
valueModifiers: {
|
|
380
380
|
type: PropType<Record<string, any>>;
|
|
381
381
|
};
|
|
@@ -550,6 +550,9 @@ declare function __VLS_template(): {
|
|
|
550
550
|
autofocus: {
|
|
551
551
|
type: PropType<boolean>;
|
|
552
552
|
};
|
|
553
|
+
'onUpdate:value': {
|
|
554
|
+
type: PropType<(val: string) => void>;
|
|
555
|
+
};
|
|
553
556
|
focused: {
|
|
554
557
|
type: PropType<boolean>;
|
|
555
558
|
};
|
|
@@ -572,9 +575,6 @@ declare function __VLS_template(): {
|
|
|
572
575
|
onPressEnter: {
|
|
573
576
|
type: PropType<KeyboardEventHandler>;
|
|
574
577
|
};
|
|
575
|
-
'onUpdate:value': {
|
|
576
|
-
type: PropType<(val: string) => void>;
|
|
577
|
-
};
|
|
578
578
|
valueModifiers: {
|
|
579
579
|
type: PropType<Record<string, any>>;
|
|
580
580
|
};
|
|
@@ -95,6 +95,9 @@ declare function __VLS_template(): {
|
|
|
95
95
|
autofocus: {
|
|
96
96
|
type: PropType<boolean>;
|
|
97
97
|
};
|
|
98
|
+
'onUpdate:value': {
|
|
99
|
+
type: PropType<(val: string) => void>;
|
|
100
|
+
};
|
|
98
101
|
focused: {
|
|
99
102
|
type: PropType<boolean>;
|
|
100
103
|
};
|
|
@@ -117,9 +120,6 @@ declare function __VLS_template(): {
|
|
|
117
120
|
onPressEnter: {
|
|
118
121
|
type: PropType<KeyboardEventHandler>;
|
|
119
122
|
};
|
|
120
|
-
'onUpdate:value': {
|
|
121
|
-
type: PropType<(val: string) => void>;
|
|
122
|
-
};
|
|
123
123
|
valueModifiers: {
|
|
124
124
|
type: PropType<Record<string, any>>;
|
|
125
125
|
};
|
|
@@ -245,6 +245,9 @@ declare function __VLS_template(): {
|
|
|
245
245
|
autofocus: {
|
|
246
246
|
type: PropType<boolean>;
|
|
247
247
|
};
|
|
248
|
+
'onUpdate:value': {
|
|
249
|
+
type: PropType<(val: string) => void>;
|
|
250
|
+
};
|
|
248
251
|
focused: {
|
|
249
252
|
type: PropType<boolean>;
|
|
250
253
|
};
|
|
@@ -267,9 +270,6 @@ declare function __VLS_template(): {
|
|
|
267
270
|
onPressEnter: {
|
|
268
271
|
type: PropType<KeyboardEventHandler>;
|
|
269
272
|
};
|
|
270
|
-
'onUpdate:value': {
|
|
271
|
-
type: PropType<(val: string) => void>;
|
|
272
|
-
};
|
|
273
273
|
valueModifiers: {
|
|
274
274
|
type: PropType<Record<string, any>>;
|
|
275
275
|
};
|
|
@@ -403,6 +403,9 @@ declare function __VLS_template(): {
|
|
|
403
403
|
autofocus: {
|
|
404
404
|
type: PropType<boolean>;
|
|
405
405
|
};
|
|
406
|
+
'onUpdate:value': {
|
|
407
|
+
type: PropType<(val: string) => void>;
|
|
408
|
+
};
|
|
406
409
|
focused: {
|
|
407
410
|
type: PropType<boolean>;
|
|
408
411
|
};
|
|
@@ -425,9 +428,6 @@ declare function __VLS_template(): {
|
|
|
425
428
|
onPressEnter: {
|
|
426
429
|
type: PropType<KeyboardEventHandler>;
|
|
427
430
|
};
|
|
428
|
-
'onUpdate:value': {
|
|
429
|
-
type: PropType<(val: string) => void>;
|
|
430
|
-
};
|
|
431
431
|
valueModifiers: {
|
|
432
432
|
type: PropType<Record<string, any>>;
|
|
433
433
|
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FormItemStatusContextProps } from '@aplus-frontend/antdv/es/form/FormItemContext';
|
|
2
|
+
import { ApFormControlRenderProps } from '../interface';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
type SlotsType = {
|
|
5
|
+
default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
|
|
6
|
+
};
|
|
7
|
+
declare function __VLS_template(): {
|
|
8
|
+
slots: Readonly<SlotsType> & SlotsType;
|
|
9
|
+
refs: {};
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: DefineComponent<__VLS_TypePropsToOption<ApFormControlRenderProps>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToOption<ApFormControlRenderProps>>>, {}, {}>;
|
|
14
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
+
type __VLS_TypePropsToOption<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
+
} : {
|
|
21
|
+
type: PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("@aplus-frontend/antdv/es/form/FormItemContext"),c=e.defineComponent({name:"ApFormControlRender",__name:"control",props:{value:{},"onUpdate:value":{type:Function},bordered:{type:Boolean},onFocus:{type:Function},onBlur:{type:Function}},setup(t){const n=t,r=s.FormItemInputContext.useInject(),o=e.computed(()=>({...r,...n}));return console.log("getMergedProps",o.value),(u,l)=>e.renderSlot(u.$slots,"default",e.normalizeProps(e.guardReactiveProps(o.value)))}});exports.default=c;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./control.vue.js");exports.default=e.default;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { FormItemStatusContextProps } from '@aplus-frontend/antdv/es/form/FormItemContext';
|
|
2
|
+
import { ApFormControlRenderProps } from '../interface';
|
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
4
|
+
import { ApFormItemProps } from '..';
|
|
5
|
+
type SlotsType = {
|
|
6
|
+
default: (props: FormItemStatusContextProps & NonNullable<ApFormControlRenderProps>) => any;
|
|
7
|
+
};
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
slots: Readonly<SlotsType> & SlotsType;
|
|
10
|
+
refs: {};
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption< ApFormItemProps>, {
|
|
15
|
+
hasFeedback: boolean;
|
|
16
|
+
colon: undefined;
|
|
17
|
+
autoLink: boolean;
|
|
18
|
+
required: undefined;
|
|
19
|
+
validateFirst: undefined;
|
|
20
|
+
bordered: boolean;
|
|
21
|
+
valuePropName: string;
|
|
22
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption< ApFormItemProps>, {
|
|
23
|
+
hasFeedback: boolean;
|
|
24
|
+
colon: undefined;
|
|
25
|
+
autoLink: boolean;
|
|
26
|
+
required: undefined;
|
|
27
|
+
validateFirst: undefined;
|
|
28
|
+
bordered: boolean;
|
|
29
|
+
valuePropName: string;
|
|
30
|
+
}>>>, {
|
|
31
|
+
bordered: boolean;
|
|
32
|
+
colon: boolean;
|
|
33
|
+
required: boolean;
|
|
34
|
+
hasFeedback: boolean;
|
|
35
|
+
autoLink: boolean;
|
|
36
|
+
validateFirst: boolean;
|
|
37
|
+
valuePropName: string;
|
|
38
|
+
}, {}>;
|
|
39
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_WithDefaults<P, D> = {
|
|
42
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
43
|
+
default: D[K];
|
|
44
|
+
}> : P[K];
|
|
45
|
+
};
|
|
46
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
47
|
+
type __VLS_TypePropsToOption<T> = {
|
|
48
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
50
|
+
} : {
|
|
51
|
+
type: PropType<T[K]>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
type __VLS_PrettifyLocal<T> = {
|
|
61
|
+
[K in keyof T]: T[K];
|
|
62
|
+
} & {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../index.js"),n=e.defineComponent({name:"ApFormItemRender",__name:"item",props:{htmlFor:{},prefixCls:{},label:{},help:{},extra:{},labelCol:{},wrapperCol:{},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:{},prop:{},name:{},rules:{},autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:{},validateTrigger:{},messageVariables:{},hidden:{type:Boolean},noStyle:{type:Boolean},tooltip:{},span:{},order:{},offset:{},push:{},pull:{},xs:{},sm:{},md:{},lg:{},xl:{},xxl:{},flex:{},bordered:{type:Boolean,default:!1},valuePropName:{default:"value"},initialValue:{},_signal:{},transform:{}},setup(t){const o=t;return console.log("props",o),(a,u)=>(e.openBlock(),e.createBlock(e.unref(l.ApForm).FormItem,e.normalizeProps(e.guardReactiveProps(o)),{default:e.withCtx(()=>[e.createVNode(e.unref(l.ApForm).ControlRender,null,{default:e.withCtx(r=>[e.renderSlot(a.$slots,"default",e.normalizeProps(e.guardReactiveProps(r)))]),_:3})]),_:3},16))}});exports.default=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./item.vue.js");exports.default=e.default;
|