tiddy 2.6.0 → 2.6.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 +52 -52
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue47 from "vue";
|
|
2
2
|
import { AllowedComponentProps, CSSProperties, Component, ComputedRef, DefineComponent, Directive, ExtractPublicPropTypes, HTMLAttributes, PropType, Raw, Ref, Slot } from "vue";
|
|
3
3
|
import * as element_plus0 from "element-plus";
|
|
4
4
|
import { DialogInstance, DialogProps, FormInstance, FormItemProp, FormItemProps, FormItemRule, FormProps, SelectInstance, TableColumnInstance, TableInstance } from "element-plus";
|
|
@@ -260,7 +260,7 @@ declare function isValidateError(prop: string): boolean;
|
|
|
260
260
|
declare const expose$1: {
|
|
261
261
|
reValidateErrorFields: typeof reValidateErrorFields;
|
|
262
262
|
isValidateError: typeof isValidateError;
|
|
263
|
-
model:
|
|
263
|
+
model: vue47.ComputedRef<unknown>;
|
|
264
264
|
};
|
|
265
265
|
type __TdFormExpose = typeof expose$1 & FormInstance;
|
|
266
266
|
declare var __VLS_11$2: {}, __VLS_13$1: {}, __VLS_19$1: {};
|
|
@@ -271,24 +271,24 @@ type __VLS_Slots$4 = {} & {
|
|
|
271
271
|
} & {
|
|
272
272
|
suffix?: (props: typeof __VLS_19$1) => any;
|
|
273
273
|
};
|
|
274
|
-
declare const __VLS_base$4:
|
|
274
|
+
declare const __VLS_base$4: vue47.DefineComponent<vue47.ExtractPropTypes<{
|
|
275
275
|
fields: {
|
|
276
|
-
type:
|
|
276
|
+
type: vue47.PropType<TdFormFieldProps[]>;
|
|
277
277
|
default: () => never[];
|
|
278
278
|
};
|
|
279
279
|
item: {
|
|
280
|
-
type:
|
|
280
|
+
type: vue47.PropType<element_plus0.FormItemProps>;
|
|
281
281
|
default: () => {};
|
|
282
282
|
};
|
|
283
|
-
}>, __TdFormExpose, {}, {}, {},
|
|
283
|
+
}>, __TdFormExpose, {}, {}, {}, vue47.ComponentOptionsMixin, vue47.ComponentOptionsMixin, {
|
|
284
284
|
submit: (data: any) => any;
|
|
285
|
-
}, string,
|
|
285
|
+
}, string, vue47.PublicProps, Readonly<vue47.ExtractPropTypes<{
|
|
286
286
|
fields: {
|
|
287
|
-
type:
|
|
287
|
+
type: vue47.PropType<TdFormFieldProps[]>;
|
|
288
288
|
default: () => never[];
|
|
289
289
|
};
|
|
290
290
|
item: {
|
|
291
|
-
type:
|
|
291
|
+
type: vue47.PropType<element_plus0.FormItemProps>;
|
|
292
292
|
default: () => {};
|
|
293
293
|
};
|
|
294
294
|
}>> & Readonly<{
|
|
@@ -296,7 +296,7 @@ declare const __VLS_base$4: vue27.DefineComponent<vue27.ExtractPropTypes<{
|
|
|
296
296
|
}>, {
|
|
297
297
|
fields: TdFormFieldProps[];
|
|
298
298
|
item: element_plus0.FormItemProps;
|
|
299
|
-
}, {}, {}, {}, string,
|
|
299
|
+
}, {}, {}, {}, string, vue47.ComponentProvideOptions, true, {}, any>;
|
|
300
300
|
declare const __VLS_export$6: __VLS_WithSlots$4<typeof __VLS_base$4, __VLS_Slots$4>;
|
|
301
301
|
declare const _default$3: typeof __VLS_export$6;
|
|
302
302
|
type __VLS_WithSlots$4<T, S> = T & {
|
|
@@ -308,38 +308,38 @@ type __VLS_WithSlots$4<T, S> = T & {
|
|
|
308
308
|
//#region src/form/form-item.vue.d.ts
|
|
309
309
|
declare var __VLS_10$1: string | number, __VLS_11$1: any;
|
|
310
310
|
type __VLS_Slots$3 = {} & { [K in NonNullable<typeof __VLS_10$1>]?: (props: typeof __VLS_11$1) => any };
|
|
311
|
-
declare const __VLS_base$3:
|
|
311
|
+
declare const __VLS_base$3: vue47.DefineComponent<vue47.ExtractPropTypes<{
|
|
312
312
|
messageLabel: {
|
|
313
|
-
type:
|
|
313
|
+
type: vue47.PropType<OrRef<string>>;
|
|
314
314
|
default: string;
|
|
315
315
|
};
|
|
316
316
|
formatMessage: {
|
|
317
|
-
type:
|
|
317
|
+
type: vue47.PropType<AnyFunction>;
|
|
318
318
|
default: null;
|
|
319
319
|
};
|
|
320
320
|
hideRequiredAsterisk: {
|
|
321
|
-
type:
|
|
321
|
+
type: vue47.PropType<boolean>;
|
|
322
322
|
default: boolean;
|
|
323
323
|
};
|
|
324
324
|
errorLayout: {
|
|
325
|
-
type:
|
|
325
|
+
type: vue47.PropType<"nowrap" | "wrap" | "expand">;
|
|
326
326
|
default: string;
|
|
327
327
|
};
|
|
328
|
-
}>, {}, {}, {}, {},
|
|
328
|
+
}>, {}, {}, {}, {}, vue47.ComponentOptionsMixin, vue47.ComponentOptionsMixin, {}, string, vue47.PublicProps, Readonly<vue47.ExtractPropTypes<{
|
|
329
329
|
messageLabel: {
|
|
330
|
-
type:
|
|
330
|
+
type: vue47.PropType<OrRef<string>>;
|
|
331
331
|
default: string;
|
|
332
332
|
};
|
|
333
333
|
formatMessage: {
|
|
334
|
-
type:
|
|
334
|
+
type: vue47.PropType<AnyFunction>;
|
|
335
335
|
default: null;
|
|
336
336
|
};
|
|
337
337
|
hideRequiredAsterisk: {
|
|
338
|
-
type:
|
|
338
|
+
type: vue47.PropType<boolean>;
|
|
339
339
|
default: boolean;
|
|
340
340
|
};
|
|
341
341
|
errorLayout: {
|
|
342
|
-
type:
|
|
342
|
+
type: vue47.PropType<"nowrap" | "wrap" | "expand">;
|
|
343
343
|
default: string;
|
|
344
344
|
};
|
|
345
345
|
}>> & Readonly<{}>, {
|
|
@@ -347,7 +347,7 @@ declare const __VLS_base$3: vue27.DefineComponent<vue27.ExtractPropTypes<{
|
|
|
347
347
|
messageLabel: OrRef<string>;
|
|
348
348
|
formatMessage: AnyFunction;
|
|
349
349
|
errorLayout: "wrap" | "nowrap" | "expand";
|
|
350
|
-
}, {}, {}, {}, string,
|
|
350
|
+
}, {}, {}, {}, string, vue47.ComponentProvideOptions, true, {}, any>;
|
|
351
351
|
declare const __VLS_export$5: __VLS_WithSlots$3<typeof __VLS_base$3, __VLS_Slots$3>;
|
|
352
352
|
declare const _default$5: typeof __VLS_export$5;
|
|
353
353
|
type __VLS_WithSlots$3<T, S> = T & {
|
|
@@ -357,7 +357,7 @@ type __VLS_WithSlots$3<T, S> = T & {
|
|
|
357
357
|
};
|
|
358
358
|
//#endregion
|
|
359
359
|
//#region src/form/form-field.vue.d.ts
|
|
360
|
-
declare const __VLS_export$4:
|
|
360
|
+
declare const __VLS_export$4: vue47.DefineComponent<{}, {}, {}, {}, {}, vue47.ComponentOptionsMixin, vue47.ComponentOptionsMixin, {}, string, vue47.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue47.ComponentProvideOptions, true, {}, any>;
|
|
361
361
|
declare const _default$4: typeof __VLS_export$4;
|
|
362
362
|
//#endregion
|
|
363
363
|
//#region src/form/index.d.ts
|
|
@@ -405,19 +405,19 @@ type __VLS_Slots$2 = {} & { [K in NonNullable<typeof __VLS_16>]?: (props: typeof
|
|
|
405
405
|
} & {
|
|
406
406
|
after?: (props: typeof __VLS_19) => any;
|
|
407
407
|
};
|
|
408
|
-
declare const __VLS_base$2:
|
|
408
|
+
declare const __VLS_base$2: vue47.DefineComponent<vue47.ExtractPropTypes<{
|
|
409
409
|
columns: {
|
|
410
|
-
type:
|
|
410
|
+
type: vue47.PropType<TdTableColumnProps[]>;
|
|
411
411
|
default: () => never[];
|
|
412
412
|
};
|
|
413
|
-
}>, TableInstance, {}, {}, {},
|
|
413
|
+
}>, TableInstance, {}, {}, {}, vue47.ComponentOptionsMixin, vue47.ComponentOptionsMixin, {}, string, vue47.PublicProps, Readonly<vue47.ExtractPropTypes<{
|
|
414
414
|
columns: {
|
|
415
|
-
type:
|
|
415
|
+
type: vue47.PropType<TdTableColumnProps[]>;
|
|
416
416
|
default: () => never[];
|
|
417
417
|
};
|
|
418
418
|
}>> & Readonly<{}>, {
|
|
419
419
|
columns: TdTableColumnProps[];
|
|
420
|
-
}, {}, {}, {}, string,
|
|
420
|
+
}, {}, {}, {}, string, vue47.ComponentProvideOptions, true, {}, any>;
|
|
421
421
|
declare const __VLS_export$3: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
422
422
|
declare const _default$6: typeof __VLS_export$3;
|
|
423
423
|
type __VLS_WithSlots$2<T, S> = T & {
|
|
@@ -427,55 +427,55 @@ type __VLS_WithSlots$2<T, S> = T & {
|
|
|
427
427
|
};
|
|
428
428
|
//#endregion
|
|
429
429
|
//#region src/table/table-col.vue.d.ts
|
|
430
|
-
declare const __VLS_export$2:
|
|
430
|
+
declare const __VLS_export$2: vue47.DefineComponent<vue47.ExtractPropTypes<{
|
|
431
431
|
slots: {
|
|
432
|
-
type:
|
|
432
|
+
type: vue47.PropType<OrArray<SlotDef>>;
|
|
433
433
|
default: null;
|
|
434
434
|
};
|
|
435
435
|
columns: {
|
|
436
|
-
type:
|
|
436
|
+
type: vue47.PropType<TdTableColumnProps[]>;
|
|
437
437
|
default: () => never[];
|
|
438
438
|
};
|
|
439
439
|
transform: {
|
|
440
|
-
type:
|
|
440
|
+
type: vue47.PropType<AnyFunction[]>;
|
|
441
441
|
default: () => never[];
|
|
442
442
|
};
|
|
443
443
|
hide: {
|
|
444
|
-
type:
|
|
444
|
+
type: vue47.PropType<boolean | vue47.Ref<boolean>>;
|
|
445
445
|
default: false;
|
|
446
446
|
};
|
|
447
447
|
dangerouslyUseHTMLString: {
|
|
448
|
-
type:
|
|
448
|
+
type: vue47.PropType<boolean | vue47.Ref<boolean>>;
|
|
449
449
|
default: false;
|
|
450
450
|
};
|
|
451
|
-
}>, {}, {}, {}, {},
|
|
451
|
+
}>, {}, {}, {}, {}, vue47.ComponentOptionsMixin, vue47.ComponentOptionsMixin, {}, string, vue47.PublicProps, Readonly<vue47.ExtractPropTypes<{
|
|
452
452
|
slots: {
|
|
453
|
-
type:
|
|
453
|
+
type: vue47.PropType<OrArray<SlotDef>>;
|
|
454
454
|
default: null;
|
|
455
455
|
};
|
|
456
456
|
columns: {
|
|
457
|
-
type:
|
|
457
|
+
type: vue47.PropType<TdTableColumnProps[]>;
|
|
458
458
|
default: () => never[];
|
|
459
459
|
};
|
|
460
460
|
transform: {
|
|
461
|
-
type:
|
|
461
|
+
type: vue47.PropType<AnyFunction[]>;
|
|
462
462
|
default: () => never[];
|
|
463
463
|
};
|
|
464
464
|
hide: {
|
|
465
|
-
type:
|
|
465
|
+
type: vue47.PropType<boolean | vue47.Ref<boolean>>;
|
|
466
466
|
default: false;
|
|
467
467
|
};
|
|
468
468
|
dangerouslyUseHTMLString: {
|
|
469
|
-
type:
|
|
469
|
+
type: vue47.PropType<boolean | vue47.Ref<boolean>>;
|
|
470
470
|
default: false;
|
|
471
471
|
};
|
|
472
472
|
}>> & Readonly<{}>, {
|
|
473
473
|
slots: OrArray<SlotDef>;
|
|
474
|
-
hide: boolean |
|
|
474
|
+
hide: boolean | vue47.Ref<boolean, boolean>;
|
|
475
475
|
columns: TdTableColumnProps[];
|
|
476
476
|
transform: AnyFunction[];
|
|
477
|
-
dangerouslyUseHTMLString: boolean |
|
|
478
|
-
}, {}, {}, {}, string,
|
|
477
|
+
dangerouslyUseHTMLString: boolean | vue47.Ref<boolean, boolean>;
|
|
478
|
+
}, {}, {}, {}, string, vue47.ComponentProvideOptions, true, {}, any>;
|
|
479
479
|
declare const _default$7: typeof __VLS_export$2;
|
|
480
480
|
//#endregion
|
|
481
481
|
//#region src/table/index.d.ts
|
|
@@ -508,7 +508,7 @@ declare var __VLS_13: "default" | "footer" | "header" | "title", __VLS_14: {
|
|
|
508
508
|
titleClass?: string | undefined;
|
|
509
509
|
};
|
|
510
510
|
type __VLS_Slots$1 = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof __VLS_14) => any };
|
|
511
|
-
declare const __VLS_base$1:
|
|
511
|
+
declare const __VLS_base$1: vue47.DefineComponent<{}, __TdDialogExpose, {}, {}, {}, vue47.ComponentOptionsMixin, vue47.ComponentOptionsMixin, {}, string, vue47.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue47.ComponentProvideOptions, true, {}, any>;
|
|
512
512
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
513
513
|
declare const _default: typeof __VLS_export$1;
|
|
514
514
|
type __VLS_WithSlots$1<T, S> = T & {
|
|
@@ -547,7 +547,7 @@ type __VLS_Props = {
|
|
|
547
547
|
};
|
|
548
548
|
declare var __VLS_10: string | number, __VLS_11: any;
|
|
549
549
|
type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_10>]?: (props: typeof __VLS_11) => any };
|
|
550
|
-
declare const __VLS_base:
|
|
550
|
+
declare const __VLS_base: vue47.DefineComponent<__VLS_Props, SelectInstance, {}, {}, {}, vue47.ComponentOptionsMixin, vue47.ComponentOptionsMixin, {}, string, vue47.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue47.ComponentProvideOptions, false, {}, any>;
|
|
551
551
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
552
552
|
declare const _default$2: typeof __VLS_export;
|
|
553
553
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -567,7 +567,7 @@ interface DirectiveConfig {
|
|
|
567
567
|
modifiers?: Record<string, boolean>;
|
|
568
568
|
enable?: boolean;
|
|
569
569
|
}
|
|
570
|
-
declare const _default$1:
|
|
570
|
+
declare const _default$1: vue47.DefineComponent<vue47.ExtractPropTypes<{
|
|
571
571
|
directives: {
|
|
572
572
|
type: () => DirectiveConfig[];
|
|
573
573
|
default: () => never[];
|
|
@@ -580,11 +580,11 @@ declare const _default$1: vue27.DefineComponent<vue27.ExtractPropTypes<{
|
|
|
580
580
|
type: StringConstructor;
|
|
581
581
|
default: string;
|
|
582
582
|
};
|
|
583
|
-
}>, () =>
|
|
583
|
+
}>, () => vue47.VNode<vue47.RendererNode, vue47.RendererElement, {
|
|
584
584
|
[key: string]: any;
|
|
585
|
-
}> |
|
|
585
|
+
}> | vue47.VNode<vue47.RendererNode, vue47.RendererElement, {
|
|
586
586
|
[key: string]: any;
|
|
587
|
-
}>[], {}, {}, {},
|
|
587
|
+
}>[], {}, {}, {}, vue47.ComponentOptionsMixin, vue47.ComponentOptionsMixin, {}, string, vue47.PublicProps, Readonly<vue47.ExtractPropTypes<{
|
|
588
588
|
directives: {
|
|
589
589
|
type: () => DirectiveConfig[];
|
|
590
590
|
default: () => never[];
|
|
@@ -601,13 +601,13 @@ declare const _default$1: vue27.DefineComponent<vue27.ExtractPropTypes<{
|
|
|
601
601
|
directives: DirectiveConfig[];
|
|
602
602
|
wrap: boolean;
|
|
603
603
|
tag: string;
|
|
604
|
-
}, {}, {}, {}, string,
|
|
604
|
+
}, {}, {}, {}, string, vue47.ComponentProvideOptions, true, {}, any>;
|
|
605
605
|
//#endregion
|
|
606
606
|
//#region src/hooks/use-reuse.d.ts
|
|
607
|
-
declare function useReuse(): (
|
|
607
|
+
declare function useReuse(): (vue47.DefineComponent<{}, () => null, {}, {}, {}, vue47.ComponentOptionsMixin, vue47.ComponentOptionsMixin, {}, string, vue47.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue47.ComponentProvideOptions, true, {}, any> | vue47.DefineComponent<{}, () => vue47.VNode<vue47.RendererNode, vue47.RendererElement, {
|
|
608
608
|
[key: string]: any;
|
|
609
|
-
}>[] | undefined, {}, {}, {},
|
|
610
|
-
[name: string]:
|
|
609
|
+
}>[] | undefined, {}, {}, {}, vue47.ComponentOptionsMixin, vue47.ComponentOptionsMixin, {}, string, vue47.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue47.ComponentProvideOptions, true, {}, any> | vue47.ComputedRef<Readonly<{
|
|
610
|
+
[name: string]: vue47.Slot<any> | undefined;
|
|
611
611
|
}>>)[];
|
|
612
612
|
//#endregion
|
|
613
613
|
//#region src/utils/index.d.ts
|
package/dist/index.js
CHANGED
|
@@ -327,13 +327,16 @@ var form_item_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defi
|
|
|
327
327
|
}
|
|
328
328
|
}));
|
|
329
329
|
function setFormItemMarginBottom(el) {
|
|
330
|
-
const height = Number.parseFloat(window.getComputedStyle(el).getPropertyValue("height")
|
|
330
|
+
const height = Number.parseFloat(window.getComputedStyle(el).getPropertyValue("height"));
|
|
331
331
|
const marginBottom = `${Math.max(height + 6, 18)}px`;
|
|
332
332
|
el.closest(".td-form-item").style.marginBottom = marginBottom;
|
|
333
333
|
}
|
|
334
334
|
const vErrorLayout = {
|
|
335
335
|
mounted: setFormItemMarginBottom,
|
|
336
|
-
updated: setFormItemMarginBottom
|
|
336
|
+
updated: setFormItemMarginBottom,
|
|
337
|
+
beforeUnmount(el) {
|
|
338
|
+
el.closest(".td-form-item").style.removeProperty("margin-bottom");
|
|
339
|
+
}
|
|
337
340
|
};
|
|
338
341
|
const directives = computed(() => [{
|
|
339
342
|
dir: vErrorLayout,
|