tiddy 2.0.1 → 2.0.2
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 +43 -176
- package/dist/index.js +3 -8
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue30 from "vue";
|
|
2
2
|
import { AllowedComponentProps, CSSProperties, Component, ComputedRef, DefineComponent, ExtractPublicPropTypes, PropType, Raw, Slot } from "vue";
|
|
3
3
|
import * as element_plus0 from "element-plus";
|
|
4
|
-
import { DialogInstance, FormInstance, FormItemProps, FormItemRule, FormProps, TableColumnInstance, TableInstance
|
|
4
|
+
import { DialogInstance, DialogProps, FormInstance, FormItemProps, FormItemRule, FormProps, TableColumnInstance, TableInstance } from "element-plus";
|
|
5
5
|
|
|
6
6
|
//#region src/types.d.ts
|
|
7
7
|
type OrArray<T> = T | T[];
|
|
@@ -252,7 +252,7 @@ declare function widget<T>(p: {
|
|
|
252
252
|
declare function reValidateErrorFields(): void;
|
|
253
253
|
declare const expose$1: {
|
|
254
254
|
reValidateErrorFields: typeof reValidateErrorFields;
|
|
255
|
-
model:
|
|
255
|
+
model: vue30.ComputedRef<unknown>;
|
|
256
256
|
};
|
|
257
257
|
type __TdFormExpose = typeof expose$1 & FormInstance;
|
|
258
258
|
declare var __VLS_11$1: {}, __VLS_13$1: {}, __VLS_19$1: {};
|
|
@@ -263,25 +263,25 @@ type __VLS_Slots$3 = {} & {
|
|
|
263
263
|
} & {
|
|
264
264
|
suffix?: (props: typeof __VLS_19$1) => any;
|
|
265
265
|
};
|
|
266
|
-
declare const __VLS_base$3:
|
|
266
|
+
declare const __VLS_base$3: vue30.DefineComponent<vue30.ExtractPropTypes<{
|
|
267
267
|
fields: {
|
|
268
|
-
type:
|
|
268
|
+
type: vue30.PropType<TdFormFieldProps[]>;
|
|
269
269
|
default: () => never[];
|
|
270
270
|
};
|
|
271
271
|
item: {
|
|
272
|
-
type:
|
|
272
|
+
type: vue30.PropType<element_plus0.FormItemProps>;
|
|
273
273
|
default: () => {};
|
|
274
274
|
};
|
|
275
|
-
}>, __TdFormExpose, {}, {}, {},
|
|
275
|
+
}>, __TdFormExpose, {}, {}, {}, vue30.ComponentOptionsMixin, vue30.ComponentOptionsMixin, {
|
|
276
276
|
validate: () => any;
|
|
277
277
|
submit: (data: any) => any;
|
|
278
|
-
}, string,
|
|
278
|
+
}, string, vue30.PublicProps, Readonly<vue30.ExtractPropTypes<{
|
|
279
279
|
fields: {
|
|
280
|
-
type:
|
|
280
|
+
type: vue30.PropType<TdFormFieldProps[]>;
|
|
281
281
|
default: () => never[];
|
|
282
282
|
};
|
|
283
283
|
item: {
|
|
284
|
-
type:
|
|
284
|
+
type: vue30.PropType<element_plus0.FormItemProps>;
|
|
285
285
|
default: () => {};
|
|
286
286
|
};
|
|
287
287
|
}>> & Readonly<{
|
|
@@ -290,7 +290,7 @@ declare const __VLS_base$3: vue14.DefineComponent<vue14.ExtractPropTypes<{
|
|
|
290
290
|
}>, {
|
|
291
291
|
fields: TdFormFieldProps[];
|
|
292
292
|
item: element_plus0.FormItemProps;
|
|
293
|
-
}, {}, {}, {}, string,
|
|
293
|
+
}, {}, {}, {}, string, vue30.ComponentProvideOptions, true, {}, any>;
|
|
294
294
|
declare const __VLS_export$5: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
295
295
|
declare const _default$1: typeof __VLS_export$5;
|
|
296
296
|
type __VLS_WithSlots$3<T, S> = T & {
|
|
@@ -302,37 +302,37 @@ type __VLS_WithSlots$3<T, S> = T & {
|
|
|
302
302
|
//#region src/form/form-item.vue.d.ts
|
|
303
303
|
declare var __VLS_10: string | number, __VLS_11: any;
|
|
304
304
|
type __VLS_Slots$2 = {} & { [K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any };
|
|
305
|
-
declare const __VLS_base$2:
|
|
305
|
+
declare const __VLS_base$2: vue30.DefineComponent<vue30.ExtractPropTypes<{
|
|
306
306
|
messageLabel: {
|
|
307
|
-
type:
|
|
307
|
+
type: vue30.PropType<string | vue30.ComputedRef<string>>;
|
|
308
308
|
default: string;
|
|
309
309
|
};
|
|
310
310
|
formatMessage: {
|
|
311
|
-
type:
|
|
311
|
+
type: vue30.PropType<AnyFunction>;
|
|
312
312
|
default: null;
|
|
313
313
|
};
|
|
314
314
|
hideRequiredAsterisk: {
|
|
315
|
-
type:
|
|
315
|
+
type: vue30.PropType<boolean>;
|
|
316
316
|
default: boolean;
|
|
317
317
|
};
|
|
318
|
-
}>, {}, {}, {}, {},
|
|
318
|
+
}>, {}, {}, {}, {}, vue30.ComponentOptionsMixin, vue30.ComponentOptionsMixin, {}, string, vue30.PublicProps, Readonly<vue30.ExtractPropTypes<{
|
|
319
319
|
messageLabel: {
|
|
320
|
-
type:
|
|
320
|
+
type: vue30.PropType<string | vue30.ComputedRef<string>>;
|
|
321
321
|
default: string;
|
|
322
322
|
};
|
|
323
323
|
formatMessage: {
|
|
324
|
-
type:
|
|
324
|
+
type: vue30.PropType<AnyFunction>;
|
|
325
325
|
default: null;
|
|
326
326
|
};
|
|
327
327
|
hideRequiredAsterisk: {
|
|
328
|
-
type:
|
|
328
|
+
type: vue30.PropType<boolean>;
|
|
329
329
|
default: boolean;
|
|
330
330
|
};
|
|
331
331
|
}>> & Readonly<{}>, {
|
|
332
|
-
messageLabel: string |
|
|
332
|
+
messageLabel: string | vue30.ComputedRef<string>;
|
|
333
333
|
formatMessage: AnyFunction;
|
|
334
334
|
hideRequiredAsterisk: boolean;
|
|
335
|
-
}, {}, {}, {}, string,
|
|
335
|
+
}, {}, {}, {}, string, vue30.ComponentProvideOptions, true, {}, any>;
|
|
336
336
|
declare const __VLS_export$4: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
337
337
|
declare const _default$3: typeof __VLS_export$4;
|
|
338
338
|
type __VLS_WithSlots$2<T, S> = T & {
|
|
@@ -342,7 +342,7 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
342
342
|
};
|
|
343
343
|
//#endregion
|
|
344
344
|
//#region src/form/form-field.vue.d.ts
|
|
345
|
-
declare const __VLS_export$3:
|
|
345
|
+
declare const __VLS_export$3: vue30.DefineComponent<{}, {}, {}, {}, {}, vue30.ComponentOptionsMixin, vue30.ComponentOptionsMixin, {}, string, vue30.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue30.ComponentProvideOptions, true, {}, any>;
|
|
346
346
|
declare const _default$2: typeof __VLS_export$3;
|
|
347
347
|
//#endregion
|
|
348
348
|
//#region src/form/index.d.ts
|
|
@@ -382,19 +382,19 @@ type __VLS_Slots$1 = {} & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof
|
|
|
382
382
|
} & {
|
|
383
383
|
after?: (props: typeof __VLS_19) => any;
|
|
384
384
|
};
|
|
385
|
-
declare const __VLS_base$1:
|
|
385
|
+
declare const __VLS_base$1: vue30.DefineComponent<vue30.ExtractPropTypes<{
|
|
386
386
|
columns: {
|
|
387
|
-
type:
|
|
387
|
+
type: vue30.PropType<TdTableColumnProps[]>;
|
|
388
388
|
default: () => never[];
|
|
389
389
|
};
|
|
390
|
-
}>, TableInstance, {}, {}, {},
|
|
390
|
+
}>, TableInstance, {}, {}, {}, vue30.ComponentOptionsMixin, vue30.ComponentOptionsMixin, {}, string, vue30.PublicProps, Readonly<vue30.ExtractPropTypes<{
|
|
391
391
|
columns: {
|
|
392
|
-
type:
|
|
392
|
+
type: vue30.PropType<TdTableColumnProps[]>;
|
|
393
393
|
default: () => never[];
|
|
394
394
|
};
|
|
395
395
|
}>> & Readonly<{}>, {
|
|
396
396
|
columns: TdTableColumnProps[];
|
|
397
|
-
}, {}, {}, {}, string,
|
|
397
|
+
}, {}, {}, {}, string, vue30.ComponentProvideOptions, true, {}, any>;
|
|
398
398
|
declare const __VLS_export$2: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
399
399
|
declare const _default$4: typeof __VLS_export$2;
|
|
400
400
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
@@ -404,37 +404,37 @@ type __VLS_WithSlots$1<T, S> = T & {
|
|
|
404
404
|
};
|
|
405
405
|
//#endregion
|
|
406
406
|
//#region src/table/table-col.vue.d.ts
|
|
407
|
-
declare const __VLS_export$1:
|
|
407
|
+
declare const __VLS_export$1: vue30.DefineComponent<vue30.ExtractPropTypes<{
|
|
408
408
|
slots: {
|
|
409
|
-
type:
|
|
409
|
+
type: vue30.PropType<OrArray<SlotDef>>;
|
|
410
410
|
default: () => null;
|
|
411
411
|
};
|
|
412
412
|
columns: {
|
|
413
|
-
type:
|
|
413
|
+
type: vue30.PropType<any[]>;
|
|
414
414
|
default: () => never[];
|
|
415
415
|
};
|
|
416
416
|
transform: {
|
|
417
|
-
type:
|
|
417
|
+
type: vue30.PropType<AnyFunction[]>;
|
|
418
418
|
default: () => never[];
|
|
419
419
|
};
|
|
420
|
-
}>, {}, {}, {}, {},
|
|
420
|
+
}>, {}, {}, {}, {}, vue30.ComponentOptionsMixin, vue30.ComponentOptionsMixin, {}, string, vue30.PublicProps, Readonly<vue30.ExtractPropTypes<{
|
|
421
421
|
slots: {
|
|
422
|
-
type:
|
|
422
|
+
type: vue30.PropType<OrArray<SlotDef>>;
|
|
423
423
|
default: () => null;
|
|
424
424
|
};
|
|
425
425
|
columns: {
|
|
426
|
-
type:
|
|
426
|
+
type: vue30.PropType<any[]>;
|
|
427
427
|
default: () => never[];
|
|
428
428
|
};
|
|
429
429
|
transform: {
|
|
430
|
-
type:
|
|
430
|
+
type: vue30.PropType<AnyFunction[]>;
|
|
431
431
|
default: () => never[];
|
|
432
432
|
};
|
|
433
433
|
}>> & Readonly<{}>, {
|
|
434
434
|
slots: OrArray<SlotDef>;
|
|
435
435
|
columns: any[];
|
|
436
436
|
transform: AnyFunction[];
|
|
437
|
-
}, {}, {}, {}, string,
|
|
437
|
+
}, {}, {}, {}, string, vue30.ComponentProvideOptions, true, {}, any>;
|
|
438
438
|
declare const _default$5: typeof __VLS_export$1;
|
|
439
439
|
//#endregion
|
|
440
440
|
//#region src/table/index.d.ts
|
|
@@ -442,143 +442,10 @@ type Instance$1 = InstanceType<typeof _default$4>;
|
|
|
442
442
|
type TdTableInstance = Instance$1 & Omit<TableInstance, keyof Instance$1>;
|
|
443
443
|
//#endregion
|
|
444
444
|
//#region src/dialog/utils.d.ts
|
|
445
|
-
|
|
446
|
-
appendToBody?: BooleanConstructor | undefined;
|
|
447
|
-
appendTo?: ({
|
|
448
|
-
readonly type: vue14.PropType<string | HTMLElement>;
|
|
449
|
-
readonly required: false;
|
|
450
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
451
|
-
__epPropKey: true;
|
|
452
|
-
} & {
|
|
453
|
-
readonly default: "body";
|
|
454
|
-
}) | undefined;
|
|
455
|
-
beforeClose?: {
|
|
456
|
-
readonly type: vue14.PropType<element_plus0.DialogBeforeCloseFn>;
|
|
457
|
-
readonly required: false;
|
|
458
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
459
|
-
__epPropKey: true;
|
|
460
|
-
} | undefined;
|
|
461
|
-
destroyOnClose?: BooleanConstructor | undefined;
|
|
462
|
-
closeOnClickModal?: ({
|
|
463
|
-
readonly type: vue14.PropType<boolean>;
|
|
464
|
-
readonly required: false;
|
|
465
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
466
|
-
__epPropKey: true;
|
|
467
|
-
} & {
|
|
468
|
-
readonly default: true;
|
|
469
|
-
}) | undefined;
|
|
470
|
-
closeOnPressEscape?: ({
|
|
471
|
-
readonly type: vue14.PropType<boolean>;
|
|
472
|
-
readonly required: false;
|
|
473
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
474
|
-
__epPropKey: true;
|
|
475
|
-
} & {
|
|
476
|
-
readonly default: true;
|
|
477
|
-
}) | undefined;
|
|
478
|
-
lockScroll?: ({
|
|
479
|
-
readonly type: vue14.PropType<boolean>;
|
|
480
|
-
readonly required: false;
|
|
481
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
482
|
-
__epPropKey: true;
|
|
483
|
-
} & {
|
|
484
|
-
readonly default: true;
|
|
485
|
-
}) | undefined;
|
|
486
|
-
modal?: ({
|
|
487
|
-
readonly type: vue14.PropType<boolean>;
|
|
488
|
-
readonly required: false;
|
|
489
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
490
|
-
__epPropKey: true;
|
|
491
|
-
} & {
|
|
492
|
-
readonly default: true;
|
|
493
|
-
}) | undefined;
|
|
494
|
-
openDelay?: ({
|
|
495
|
-
readonly type: vue14.PropType<number>;
|
|
496
|
-
readonly required: false;
|
|
497
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
498
|
-
__epPropKey: true;
|
|
499
|
-
} & {
|
|
500
|
-
readonly default: 0;
|
|
501
|
-
}) | undefined;
|
|
502
|
-
closeDelay?: ({
|
|
503
|
-
readonly type: vue14.PropType<number>;
|
|
504
|
-
readonly required: false;
|
|
505
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
506
|
-
__epPropKey: true;
|
|
507
|
-
} & {
|
|
508
|
-
readonly default: 0;
|
|
509
|
-
}) | undefined;
|
|
510
|
-
top?: {
|
|
511
|
-
readonly type: vue14.PropType<string>;
|
|
512
|
-
readonly required: false;
|
|
513
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
514
|
-
__epPropKey: true;
|
|
515
|
-
} | undefined;
|
|
516
|
-
modelValue?: BooleanConstructor | undefined;
|
|
517
|
-
modalClass?: StringConstructor | undefined;
|
|
518
|
-
headerClass?: StringConstructor | undefined;
|
|
519
|
-
bodyClass?: StringConstructor | undefined;
|
|
520
|
-
footerClass?: StringConstructor | undefined;
|
|
521
|
-
width?: {
|
|
522
|
-
readonly type: vue14.PropType<string | number>;
|
|
523
|
-
readonly required: false;
|
|
524
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
525
|
-
__epPropKey: true;
|
|
526
|
-
} | undefined;
|
|
527
|
-
zIndex?: {
|
|
528
|
-
readonly type: vue14.PropType<number>;
|
|
529
|
-
readonly required: false;
|
|
530
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
531
|
-
__epPropKey: true;
|
|
532
|
-
} | undefined;
|
|
533
|
-
trapFocus?: BooleanConstructor | undefined;
|
|
534
|
-
headerAriaLevel?: ({
|
|
535
|
-
readonly type: vue14.PropType<string>;
|
|
536
|
-
readonly required: false;
|
|
537
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
538
|
-
__epPropKey: true;
|
|
539
|
-
} & {
|
|
540
|
-
readonly default: "2";
|
|
541
|
-
}) | undefined;
|
|
542
|
-
center?: BooleanConstructor | undefined;
|
|
543
|
-
alignCenter?: BooleanConstructor | undefined;
|
|
544
|
-
closeIcon?: {
|
|
545
|
-
readonly type: vue14.PropType<string | vue14.Component>;
|
|
546
|
-
readonly required: false;
|
|
547
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
548
|
-
__epPropKey: true;
|
|
549
|
-
} | undefined;
|
|
550
|
-
draggable?: BooleanConstructor | undefined;
|
|
551
|
-
overflow?: BooleanConstructor | undefined;
|
|
552
|
-
fullscreen?: BooleanConstructor | undefined;
|
|
553
|
-
showClose?: ({
|
|
554
|
-
readonly type: vue14.PropType<boolean>;
|
|
555
|
-
readonly required: false;
|
|
556
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
557
|
-
__epPropKey: true;
|
|
558
|
-
} & {
|
|
559
|
-
readonly default: true;
|
|
560
|
-
}) | undefined;
|
|
561
|
-
title?: ({
|
|
562
|
-
readonly type: vue14.PropType<string>;
|
|
563
|
-
readonly required: false;
|
|
564
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
565
|
-
__epPropKey: true;
|
|
566
|
-
} & {
|
|
567
|
-
readonly default: "";
|
|
568
|
-
}) | undefined;
|
|
569
|
-
ariaLevel?: ({
|
|
570
|
-
readonly type: vue14.PropType<string>;
|
|
571
|
-
readonly required: false;
|
|
572
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
573
|
-
__epPropKey: true;
|
|
574
|
-
} & {
|
|
575
|
-
readonly default: "2";
|
|
576
|
-
}) | undefined;
|
|
577
|
-
};
|
|
578
|
-
type TdDialogProps = ExtractPublicPropTypes<Omit<typeof dialogProps, "modelValue">>;
|
|
445
|
+
type TdDialogProps = Omit<DialogProps, "modelValue">;
|
|
579
446
|
//#endregion
|
|
580
447
|
//#region src/dialog/dialog.vue.d.ts
|
|
581
|
-
declare function open(options?: TdDialogProps): {
|
|
448
|
+
declare function open(options?: Partial<TdDialogProps>): {
|
|
582
449
|
promise: Promise<any>;
|
|
583
450
|
close: typeof close;
|
|
584
451
|
};
|
|
@@ -600,7 +467,7 @@ declare var __VLS_13: "default" | "title" | "header" | "footer", __VLS_14: {
|
|
|
600
467
|
titleClass?: string | undefined;
|
|
601
468
|
};
|
|
602
469
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any };
|
|
603
|
-
declare const __VLS_base:
|
|
470
|
+
declare const __VLS_base: vue30.DefineComponent<{}, __TdDialogExpose, {}, {}, {}, vue30.ComponentOptionsMixin, vue30.ComponentOptionsMixin, {}, string, vue30.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue30.ComponentProvideOptions, true, {}, any>;
|
|
604
471
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
605
472
|
declare const _default: typeof __VLS_export;
|
|
606
473
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -614,13 +481,13 @@ type Instance = InstanceType<typeof _default>;
|
|
|
614
481
|
type TdDialogInstance = Instance & Omit<DialogInstance, keyof Instance & string>;
|
|
615
482
|
//#endregion
|
|
616
483
|
//#region src/hooks/use-reuse.d.ts
|
|
617
|
-
declare function useReuse(): (
|
|
484
|
+
declare function useReuse(): (vue30.DefineComponent<{}, () => null, {}, {}, {}, vue30.ComponentOptionsMixin, vue30.ComponentOptionsMixin, {}, string, vue30.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue30.ComponentProvideOptions, true, {}, any> | vue30.DefineComponent<{}, () => vue30.VNode<vue30.RendererNode, vue30.RendererElement, {
|
|
618
485
|
[key: string]: any;
|
|
619
|
-
}>[] | undefined, {}, {}, {},
|
|
620
|
-
[name: string]:
|
|
486
|
+
}>[] | undefined, {}, {}, {}, vue30.ComponentOptionsMixin, vue30.ComponentOptionsMixin, {}, string, vue30.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue30.ComponentProvideOptions, true, {}, any> | vue30.ComputedRef<Readonly<{
|
|
487
|
+
[name: string]: vue30.Slot<any> | undefined;
|
|
621
488
|
}>>)[];
|
|
622
489
|
//#endregion
|
|
623
490
|
//#region src/utils/index.d.ts
|
|
624
491
|
declare function getKey(obj: any): string;
|
|
625
492
|
//#endregion
|
|
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,
|
|
493
|
+
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, formPropsDef, getKey, tableColumnPropsDef, tablePropsDef, useReuse, widget };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, inject, isRef, markRaw, mergeProps, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, provide, reactive, ref, renderList, renderSlot, resolveComponent, resolveDynamicComponent, shallowRef, toDisplayString, toHandlers, toRaw, toRef, unref, useAttrs, useSlots, useTemplateRef, withCtx, withModifiers } from "vue";
|
|
2
|
-
import { ElDialog, ElForm, ElFormItem, ElTable, ElTableColumn,
|
|
2
|
+
import { ElDialog, ElForm, ElFormItem, ElTable, ElTableColumn, useNamespace } from "element-plus";
|
|
3
3
|
import { cut, ensureArray, getDeepValue, groupBy, isFunction, isNullOrUndef, isObject, isString, pick, setDeepValue, toCamelCase, toKebabCase, uid } from "yatter";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/index.ts
|
|
@@ -861,16 +861,11 @@ var table_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
861
861
|
//#region src/table/table.vue
|
|
862
862
|
var table_default = table_vue_vue_type_script_setup_true_lang_default;
|
|
863
863
|
|
|
864
|
-
//#endregion
|
|
865
|
-
//#region src/dialog/utils.ts
|
|
866
|
-
const dialogPropsDef = { ...cut(dialogProps, ["modelValue"]) };
|
|
867
|
-
|
|
868
864
|
//#endregion
|
|
869
865
|
//#region src/dialog/dialog.vue?vue&type=script&setup=true&lang.ts
|
|
870
866
|
var dialog_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
871
867
|
name: "TdDialog",
|
|
872
868
|
__name: "dialog",
|
|
873
|
-
props: dialogPropsDef,
|
|
874
869
|
setup(__props, { expose: __expose }) {
|
|
875
870
|
const propsFromApi = ref({});
|
|
876
871
|
const visible = ref(false);
|
|
@@ -878,7 +873,7 @@ var dialog_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
|
|
|
878
873
|
const dialogRef = useTemplateRef("dialog");
|
|
879
874
|
const attrs = useAttrs();
|
|
880
875
|
const subProps = computed(() => ({
|
|
881
|
-
...attrs,
|
|
876
|
+
...cut(attrs, ["model-value"]),
|
|
882
877
|
...propsFromApi.value
|
|
883
878
|
}));
|
|
884
879
|
const slots = useSlots();
|
|
@@ -980,4 +975,4 @@ function useReuse() {
|
|
|
980
975
|
}
|
|
981
976
|
|
|
982
977
|
//#endregion
|
|
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,
|
|
978
|
+
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, formPropsDef, getKey, tableColumnPropsDef, tablePropsDef, useReuse, widget };
|