tiddy 2.0.0 → 2.0.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.
- package/dist/index.d.ts +67 -57
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { AllowedComponentProps, CSSProperties, Component, ComputedRef, ExtractPublicPropTypes, PropType, Raw, Slot } from "vue";
|
|
1
|
+
import * as vue14 from "vue";
|
|
2
|
+
import { AllowedComponentProps, CSSProperties, Component, ComputedRef, DefineComponent, ExtractPublicPropTypes, PropType, Raw, Slot } from "vue";
|
|
3
3
|
import * as element_plus0 from "element-plus";
|
|
4
4
|
import { DialogInstance, FormInstance, FormItemProps, FormItemRule, FormProps, TableColumnInstance, TableInstance, dialogProps } from "element-plus";
|
|
5
5
|
|
|
@@ -124,6 +124,9 @@ declare const widgetFieldPropsDef: {
|
|
|
124
124
|
default: undefined;
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
|
+
type PropsOf<C> = C extends DefineComponent<infer P, any, any, any, any> ? P : C extends (new (...args: any) => any) ? InstanceType<C> extends {
|
|
128
|
+
$props: infer P;
|
|
129
|
+
} ? P : Record<string, any> : Record<string, any>;
|
|
127
130
|
type TdWidgetFieldProps = ExtractPublicPropTypes<typeof widgetFieldPropsDef> & AllowedComponentProps & Record<PropertyKey, any>;
|
|
128
131
|
declare const arrayFieldPropsDef: {
|
|
129
132
|
prop: {
|
|
@@ -237,12 +240,19 @@ declare const tdformItemProps: {
|
|
|
237
240
|
};
|
|
238
241
|
};
|
|
239
242
|
type TdFormItemProps = ExtractPublicPropTypes<typeof tdformItemProps> & Partial<FormItemProps>;
|
|
243
|
+
declare function widget<T>(p: {
|
|
244
|
+
component: T;
|
|
245
|
+
widget?: PropsOf<T>;
|
|
246
|
+
}): {
|
|
247
|
+
component: T;
|
|
248
|
+
widget?: PropsOf<T>;
|
|
249
|
+
};
|
|
240
250
|
//#endregion
|
|
241
251
|
//#region src/form/form.vue.d.ts
|
|
242
252
|
declare function reValidateErrorFields(): void;
|
|
243
253
|
declare const expose$1: {
|
|
244
254
|
reValidateErrorFields: typeof reValidateErrorFields;
|
|
245
|
-
model:
|
|
255
|
+
model: vue14.ComputedRef<unknown>;
|
|
246
256
|
};
|
|
247
257
|
type __TdFormExpose = typeof expose$1 & FormInstance;
|
|
248
258
|
declare var __VLS_11$1: {}, __VLS_13$1: {}, __VLS_19$1: {};
|
|
@@ -253,25 +263,25 @@ type __VLS_Slots$3 = {} & {
|
|
|
253
263
|
} & {
|
|
254
264
|
suffix?: (props: typeof __VLS_19$1) => any;
|
|
255
265
|
};
|
|
256
|
-
declare const __VLS_base$3:
|
|
266
|
+
declare const __VLS_base$3: vue14.DefineComponent<vue14.ExtractPropTypes<{
|
|
257
267
|
fields: {
|
|
258
|
-
type:
|
|
268
|
+
type: vue14.PropType<TdFormFieldProps[]>;
|
|
259
269
|
default: () => never[];
|
|
260
270
|
};
|
|
261
271
|
item: {
|
|
262
|
-
type:
|
|
272
|
+
type: vue14.PropType<element_plus0.FormItemProps>;
|
|
263
273
|
default: () => {};
|
|
264
274
|
};
|
|
265
|
-
}>, __TdFormExpose, {}, {}, {},
|
|
275
|
+
}>, __TdFormExpose, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {
|
|
266
276
|
validate: () => any;
|
|
267
277
|
submit: (data: any) => any;
|
|
268
|
-
}, string,
|
|
278
|
+
}, string, vue14.PublicProps, Readonly<vue14.ExtractPropTypes<{
|
|
269
279
|
fields: {
|
|
270
|
-
type:
|
|
280
|
+
type: vue14.PropType<TdFormFieldProps[]>;
|
|
271
281
|
default: () => never[];
|
|
272
282
|
};
|
|
273
283
|
item: {
|
|
274
|
-
type:
|
|
284
|
+
type: vue14.PropType<element_plus0.FormItemProps>;
|
|
275
285
|
default: () => {};
|
|
276
286
|
};
|
|
277
287
|
}>> & Readonly<{
|
|
@@ -280,7 +290,7 @@ declare const __VLS_base$3: vue35.DefineComponent<vue35.ExtractPropTypes<{
|
|
|
280
290
|
}>, {
|
|
281
291
|
fields: TdFormFieldProps[];
|
|
282
292
|
item: element_plus0.FormItemProps;
|
|
283
|
-
}, {}, {}, {}, string,
|
|
293
|
+
}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
|
|
284
294
|
declare const __VLS_export$5: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
285
295
|
declare const _default$1: typeof __VLS_export$5;
|
|
286
296
|
type __VLS_WithSlots$3<T, S> = T & {
|
|
@@ -292,37 +302,37 @@ type __VLS_WithSlots$3<T, S> = T & {
|
|
|
292
302
|
//#region src/form/form-item.vue.d.ts
|
|
293
303
|
declare var __VLS_10: string | number, __VLS_11: any;
|
|
294
304
|
type __VLS_Slots$2 = {} & { [K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any };
|
|
295
|
-
declare const __VLS_base$2:
|
|
305
|
+
declare const __VLS_base$2: vue14.DefineComponent<vue14.ExtractPropTypes<{
|
|
296
306
|
messageLabel: {
|
|
297
|
-
type:
|
|
307
|
+
type: vue14.PropType<string | vue14.ComputedRef<string>>;
|
|
298
308
|
default: string;
|
|
299
309
|
};
|
|
300
310
|
formatMessage: {
|
|
301
|
-
type:
|
|
311
|
+
type: vue14.PropType<AnyFunction>;
|
|
302
312
|
default: null;
|
|
303
313
|
};
|
|
304
314
|
hideRequiredAsterisk: {
|
|
305
|
-
type:
|
|
315
|
+
type: vue14.PropType<boolean>;
|
|
306
316
|
default: boolean;
|
|
307
317
|
};
|
|
308
|
-
}>, {}, {}, {}, {},
|
|
318
|
+
}>, {}, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<vue14.ExtractPropTypes<{
|
|
309
319
|
messageLabel: {
|
|
310
|
-
type:
|
|
320
|
+
type: vue14.PropType<string | vue14.ComputedRef<string>>;
|
|
311
321
|
default: string;
|
|
312
322
|
};
|
|
313
323
|
formatMessage: {
|
|
314
|
-
type:
|
|
324
|
+
type: vue14.PropType<AnyFunction>;
|
|
315
325
|
default: null;
|
|
316
326
|
};
|
|
317
327
|
hideRequiredAsterisk: {
|
|
318
|
-
type:
|
|
328
|
+
type: vue14.PropType<boolean>;
|
|
319
329
|
default: boolean;
|
|
320
330
|
};
|
|
321
331
|
}>> & Readonly<{}>, {
|
|
322
|
-
messageLabel: string |
|
|
332
|
+
messageLabel: string | vue14.ComputedRef<string>;
|
|
323
333
|
formatMessage: AnyFunction;
|
|
324
334
|
hideRequiredAsterisk: boolean;
|
|
325
|
-
}, {}, {}, {}, string,
|
|
335
|
+
}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
|
|
326
336
|
declare const __VLS_export$4: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
327
337
|
declare const _default$3: typeof __VLS_export$4;
|
|
328
338
|
type __VLS_WithSlots$2<T, S> = T & {
|
|
@@ -332,7 +342,7 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
332
342
|
};
|
|
333
343
|
//#endregion
|
|
334
344
|
//#region src/form/form-field.vue.d.ts
|
|
335
|
-
declare const __VLS_export$3:
|
|
345
|
+
declare const __VLS_export$3: vue14.DefineComponent<{}, {}, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
|
|
336
346
|
declare const _default$2: typeof __VLS_export$3;
|
|
337
347
|
//#endregion
|
|
338
348
|
//#region src/form/index.d.ts
|
|
@@ -372,19 +382,19 @@ type __VLS_Slots$1 = {} & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof
|
|
|
372
382
|
} & {
|
|
373
383
|
after?: (props: typeof __VLS_19) => any;
|
|
374
384
|
};
|
|
375
|
-
declare const __VLS_base$1:
|
|
385
|
+
declare const __VLS_base$1: vue14.DefineComponent<vue14.ExtractPropTypes<{
|
|
376
386
|
columns: {
|
|
377
|
-
type:
|
|
387
|
+
type: vue14.PropType<TdTableColumnProps[]>;
|
|
378
388
|
default: () => never[];
|
|
379
389
|
};
|
|
380
|
-
}>, TableInstance, {}, {}, {},
|
|
390
|
+
}>, TableInstance, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<vue14.ExtractPropTypes<{
|
|
381
391
|
columns: {
|
|
382
|
-
type:
|
|
392
|
+
type: vue14.PropType<TdTableColumnProps[]>;
|
|
383
393
|
default: () => never[];
|
|
384
394
|
};
|
|
385
395
|
}>> & Readonly<{}>, {
|
|
386
396
|
columns: TdTableColumnProps[];
|
|
387
|
-
}, {}, {}, {}, string,
|
|
397
|
+
}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
|
|
388
398
|
declare const __VLS_export$2: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
389
399
|
declare const _default$4: typeof __VLS_export$2;
|
|
390
400
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
@@ -394,37 +404,37 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
394
404
|
};
|
|
395
405
|
//#endregion
|
|
396
406
|
//#region src/table/table-col.vue.d.ts
|
|
397
|
-
declare const __VLS_export$1:
|
|
407
|
+
declare const __VLS_export$1: vue14.DefineComponent<vue14.ExtractPropTypes<{
|
|
398
408
|
slots: {
|
|
399
|
-
type:
|
|
409
|
+
type: vue14.PropType<OrArray<SlotDef>>;
|
|
400
410
|
default: () => null;
|
|
401
411
|
};
|
|
402
412
|
columns: {
|
|
403
|
-
type:
|
|
413
|
+
type: vue14.PropType<any[]>;
|
|
404
414
|
default: () => never[];
|
|
405
415
|
};
|
|
406
416
|
transform: {
|
|
407
|
-
type:
|
|
417
|
+
type: vue14.PropType<AnyFunction[]>;
|
|
408
418
|
default: () => never[];
|
|
409
419
|
};
|
|
410
|
-
}>, {}, {}, {}, {},
|
|
420
|
+
}>, {}, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<vue14.ExtractPropTypes<{
|
|
411
421
|
slots: {
|
|
412
|
-
type:
|
|
422
|
+
type: vue14.PropType<OrArray<SlotDef>>;
|
|
413
423
|
default: () => null;
|
|
414
424
|
};
|
|
415
425
|
columns: {
|
|
416
|
-
type:
|
|
426
|
+
type: vue14.PropType<any[]>;
|
|
417
427
|
default: () => never[];
|
|
418
428
|
};
|
|
419
429
|
transform: {
|
|
420
|
-
type:
|
|
430
|
+
type: vue14.PropType<AnyFunction[]>;
|
|
421
431
|
default: () => never[];
|
|
422
432
|
};
|
|
423
433
|
}>> & Readonly<{}>, {
|
|
424
434
|
slots: OrArray<SlotDef>;
|
|
425
435
|
columns: any[];
|
|
426
436
|
transform: AnyFunction[];
|
|
427
|
-
}, {}, {}, {}, string,
|
|
437
|
+
}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
|
|
428
438
|
declare const _default$5: typeof __VLS_export$1;
|
|
429
439
|
//#endregion
|
|
430
440
|
//#region src/table/index.d.ts
|
|
@@ -435,7 +445,7 @@ type TdTableInstance = Instance$1 & Omit<TableInstance, keyof Instance$1>;
|
|
|
435
445
|
declare const dialogPropsDef: {
|
|
436
446
|
appendToBody?: BooleanConstructor | undefined;
|
|
437
447
|
appendTo?: ({
|
|
438
|
-
readonly type:
|
|
448
|
+
readonly type: vue14.PropType<string | HTMLElement>;
|
|
439
449
|
readonly required: false;
|
|
440
450
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
441
451
|
__epPropKey: true;
|
|
@@ -443,14 +453,14 @@ declare const dialogPropsDef: {
|
|
|
443
453
|
readonly default: "body";
|
|
444
454
|
}) | undefined;
|
|
445
455
|
beforeClose?: {
|
|
446
|
-
readonly type:
|
|
456
|
+
readonly type: vue14.PropType<element_plus0.DialogBeforeCloseFn>;
|
|
447
457
|
readonly required: false;
|
|
448
458
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
449
459
|
__epPropKey: true;
|
|
450
460
|
} | undefined;
|
|
451
461
|
destroyOnClose?: BooleanConstructor | undefined;
|
|
452
462
|
closeOnClickModal?: ({
|
|
453
|
-
readonly type:
|
|
463
|
+
readonly type: vue14.PropType<boolean>;
|
|
454
464
|
readonly required: false;
|
|
455
465
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
456
466
|
__epPropKey: true;
|
|
@@ -458,7 +468,7 @@ declare const dialogPropsDef: {
|
|
|
458
468
|
readonly default: true;
|
|
459
469
|
}) | undefined;
|
|
460
470
|
closeOnPressEscape?: ({
|
|
461
|
-
readonly type:
|
|
471
|
+
readonly type: vue14.PropType<boolean>;
|
|
462
472
|
readonly required: false;
|
|
463
473
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
464
474
|
__epPropKey: true;
|
|
@@ -466,7 +476,7 @@ declare const dialogPropsDef: {
|
|
|
466
476
|
readonly default: true;
|
|
467
477
|
}) | undefined;
|
|
468
478
|
lockScroll?: ({
|
|
469
|
-
readonly type:
|
|
479
|
+
readonly type: vue14.PropType<boolean>;
|
|
470
480
|
readonly required: false;
|
|
471
481
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
472
482
|
__epPropKey: true;
|
|
@@ -474,7 +484,7 @@ declare const dialogPropsDef: {
|
|
|
474
484
|
readonly default: true;
|
|
475
485
|
}) | undefined;
|
|
476
486
|
modal?: ({
|
|
477
|
-
readonly type:
|
|
487
|
+
readonly type: vue14.PropType<boolean>;
|
|
478
488
|
readonly required: false;
|
|
479
489
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
480
490
|
__epPropKey: true;
|
|
@@ -482,7 +492,7 @@ declare const dialogPropsDef: {
|
|
|
482
492
|
readonly default: true;
|
|
483
493
|
}) | undefined;
|
|
484
494
|
openDelay?: ({
|
|
485
|
-
readonly type:
|
|
495
|
+
readonly type: vue14.PropType<number>;
|
|
486
496
|
readonly required: false;
|
|
487
497
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
488
498
|
__epPropKey: true;
|
|
@@ -490,7 +500,7 @@ declare const dialogPropsDef: {
|
|
|
490
500
|
readonly default: 0;
|
|
491
501
|
}) | undefined;
|
|
492
502
|
closeDelay?: ({
|
|
493
|
-
readonly type:
|
|
503
|
+
readonly type: vue14.PropType<number>;
|
|
494
504
|
readonly required: false;
|
|
495
505
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
496
506
|
__epPropKey: true;
|
|
@@ -498,7 +508,7 @@ declare const dialogPropsDef: {
|
|
|
498
508
|
readonly default: 0;
|
|
499
509
|
}) | undefined;
|
|
500
510
|
top?: {
|
|
501
|
-
readonly type:
|
|
511
|
+
readonly type: vue14.PropType<string>;
|
|
502
512
|
readonly required: false;
|
|
503
513
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
504
514
|
__epPropKey: true;
|
|
@@ -509,20 +519,20 @@ declare const dialogPropsDef: {
|
|
|
509
519
|
bodyClass?: StringConstructor | undefined;
|
|
510
520
|
footerClass?: StringConstructor | undefined;
|
|
511
521
|
width?: {
|
|
512
|
-
readonly type:
|
|
522
|
+
readonly type: vue14.PropType<string | number>;
|
|
513
523
|
readonly required: false;
|
|
514
524
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
515
525
|
__epPropKey: true;
|
|
516
526
|
} | undefined;
|
|
517
527
|
zIndex?: {
|
|
518
|
-
readonly type:
|
|
528
|
+
readonly type: vue14.PropType<number>;
|
|
519
529
|
readonly required: false;
|
|
520
530
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
521
531
|
__epPropKey: true;
|
|
522
532
|
} | undefined;
|
|
523
533
|
trapFocus?: BooleanConstructor | undefined;
|
|
524
534
|
headerAriaLevel?: ({
|
|
525
|
-
readonly type:
|
|
535
|
+
readonly type: vue14.PropType<string>;
|
|
526
536
|
readonly required: false;
|
|
527
537
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
528
538
|
__epPropKey: true;
|
|
@@ -532,7 +542,7 @@ declare const dialogPropsDef: {
|
|
|
532
542
|
center?: BooleanConstructor | undefined;
|
|
533
543
|
alignCenter?: BooleanConstructor | undefined;
|
|
534
544
|
closeIcon?: {
|
|
535
|
-
readonly type:
|
|
545
|
+
readonly type: vue14.PropType<string | vue14.Component>;
|
|
536
546
|
readonly required: false;
|
|
537
547
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
538
548
|
__epPropKey: true;
|
|
@@ -541,7 +551,7 @@ declare const dialogPropsDef: {
|
|
|
541
551
|
overflow?: BooleanConstructor | undefined;
|
|
542
552
|
fullscreen?: BooleanConstructor | undefined;
|
|
543
553
|
showClose?: ({
|
|
544
|
-
readonly type:
|
|
554
|
+
readonly type: vue14.PropType<boolean>;
|
|
545
555
|
readonly required: false;
|
|
546
556
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
547
557
|
__epPropKey: true;
|
|
@@ -549,7 +559,7 @@ declare const dialogPropsDef: {
|
|
|
549
559
|
readonly default: true;
|
|
550
560
|
}) | undefined;
|
|
551
561
|
title?: ({
|
|
552
|
-
readonly type:
|
|
562
|
+
readonly type: vue14.PropType<string>;
|
|
553
563
|
readonly required: false;
|
|
554
564
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
555
565
|
__epPropKey: true;
|
|
@@ -557,7 +567,7 @@ declare const dialogPropsDef: {
|
|
|
557
567
|
readonly default: "";
|
|
558
568
|
}) | undefined;
|
|
559
569
|
ariaLevel?: ({
|
|
560
|
-
readonly type:
|
|
570
|
+
readonly type: vue14.PropType<string>;
|
|
561
571
|
readonly required: false;
|
|
562
572
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
563
573
|
__epPropKey: true;
|
|
@@ -590,7 +600,7 @@ declare var __VLS_13: "default" | "title" | "header" | "footer", __VLS_14: {
|
|
|
590
600
|
titleClass?: string | undefined;
|
|
591
601
|
};
|
|
592
602
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any };
|
|
593
|
-
declare const __VLS_base:
|
|
603
|
+
declare const __VLS_base: vue14.DefineComponent<{}, __TdDialogExpose, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any>;
|
|
594
604
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
595
605
|
declare const _default: typeof __VLS_export;
|
|
596
606
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -604,13 +614,13 @@ type Instance = InstanceType<typeof _default>;
|
|
|
604
614
|
type TdDialogInstance = Instance & Omit<DialogInstance, keyof Instance & string>;
|
|
605
615
|
//#endregion
|
|
606
616
|
//#region src/hooks/use-reuse.d.ts
|
|
607
|
-
declare function useReuse(): (
|
|
617
|
+
declare function useReuse(): (vue14.DefineComponent<{}, () => null, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any> | vue14.DefineComponent<{}, () => vue14.VNode<vue14.RendererNode, vue14.RendererElement, {
|
|
608
618
|
[key: string]: any;
|
|
609
|
-
}>[] | undefined, {}, {}, {},
|
|
610
|
-
[name: string]:
|
|
619
|
+
}>[] | undefined, {}, {}, {}, vue14.ComponentOptionsMixin, vue14.ComponentOptionsMixin, {}, string, vue14.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue14.ComponentProvideOptions, true, {}, any> | vue14.ComputedRef<Readonly<{
|
|
620
|
+
[name: string]: vue14.Slot<any> | undefined;
|
|
611
621
|
}>>)[];
|
|
612
622
|
//#endregion
|
|
613
623
|
//#region src/utils/index.d.ts
|
|
614
624
|
declare function getKey(obj: any): string;
|
|
615
625
|
//#endregion
|
|
616
|
-
export { _default as TdDialog, TdDialogInstance, type TdDialogProps, _default$1 as TdForm, _default$2 as TdFormField, type TdFormFieldProps, TdFormInstance, _default$3 as TdFormItem, TdFormItemInstance, type TdFormProps, _default$4 as TdTable, _default$5 as TdTableCol, type TdTableColumnProps, TdTableInstance, type TdTableProps, dialogPropsDef, formPropsDef, getKey, tableColumnPropsDef, tablePropsDef, useReuse };
|
|
626
|
+
export { _default as TdDialog, TdDialogInstance, type TdDialogProps, _default$1 as TdForm, _default$2 as TdFormField, type TdFormFieldProps, TdFormInstance, _default$3 as TdFormItem, TdFormItemInstance, type TdFormProps, _default$4 as TdTable, _default$5 as TdTableCol, type TdTableColumnProps, TdTableInstance, type TdTableProps, dialogPropsDef, formPropsDef, getKey, tableColumnPropsDef, tablePropsDef, useReuse, widget };
|
package/dist/index.js
CHANGED
|
@@ -213,6 +213,9 @@ const tdformItemProps = {
|
|
|
213
213
|
default: false
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
|
+
function widget(p) {
|
|
217
|
+
return p;
|
|
218
|
+
}
|
|
216
219
|
|
|
217
220
|
//#endregion
|
|
218
221
|
//#region src/form/form-item.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -226,7 +229,7 @@ var form_item_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
|
|
|
226
229
|
const formCtx = inject(formCtxKey);
|
|
227
230
|
const attrs = useAttrs();
|
|
228
231
|
const itemAttr = computed(() => {
|
|
229
|
-
const res = { ...formCtx
|
|
232
|
+
const res = { ...formCtx?.itemOption };
|
|
230
233
|
for (const [k, v] of Object.entries(attrs)) Reflect.set(res, k, isRef(v) ? v.value : v);
|
|
231
234
|
return res;
|
|
232
235
|
});
|
|
@@ -977,4 +980,4 @@ function useReuse() {
|
|
|
977
980
|
}
|
|
978
981
|
|
|
979
982
|
//#endregion
|
|
980
|
-
export { dialog_default as TdDialog, form_default as TdForm, form_field_default as TdFormField, form_item_default as TdFormItem, table_default as TdTable, table_col_default as TdTableCol, dialogPropsDef, formPropsDef, getKey, tableColumnPropsDef, tablePropsDef, useReuse };
|
|
983
|
+
export { dialog_default as TdDialog, form_default as TdForm, form_field_default as TdFormField, form_item_default as TdFormItem, table_default as TdTable, table_col_default as TdTableCol, dialogPropsDef, formPropsDef, getKey, tableColumnPropsDef, tablePropsDef, useReuse, widget };
|