@wg-song/bare 0.1.1 → 0.1.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/index.cjs +5 -5
- package/index.css +1 -1
- package/index.mjs +1166 -1140
- package/index.umd.js +5 -5
- package/package.json +1 -1
- package/types.d.ts +19 -12
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -2523,6 +2523,7 @@ interface ModalContext {
|
|
|
2523
2523
|
cancel: () => void;
|
|
2524
2524
|
}
|
|
2525
2525
|
interface CommonModalProps {
|
|
2526
|
+
open?: boolean;
|
|
2526
2527
|
title?: string;
|
|
2527
2528
|
width?: number | string;
|
|
2528
2529
|
maskClosable?: boolean;
|
|
@@ -2542,18 +2543,18 @@ interface DrawerProps extends CommonModalProps {
|
|
|
2542
2543
|
showFooter?: boolean;
|
|
2543
2544
|
}
|
|
2544
2545
|
|
|
2545
|
-
declare var
|
|
2546
|
-
declare var
|
|
2547
|
-
declare var
|
|
2546
|
+
declare var __VLS_13$1: {};
|
|
2547
|
+
declare var __VLS_15: {};
|
|
2548
|
+
declare var __VLS_18: {
|
|
2548
2549
|
close: (result?: any) => void;
|
|
2549
2550
|
cancel: () => void;
|
|
2550
2551
|
};
|
|
2551
2552
|
type __VLS_Slots$k = {} & {
|
|
2552
|
-
title?: (props: typeof
|
|
2553
|
+
title?: (props: typeof __VLS_13$1) => any;
|
|
2553
2554
|
} & {
|
|
2554
|
-
default?: (props: typeof
|
|
2555
|
+
default?: (props: typeof __VLS_15) => any;
|
|
2555
2556
|
} & {
|
|
2556
|
-
footer?: (props: typeof
|
|
2557
|
+
footer?: (props: typeof __VLS_18) => any;
|
|
2557
2558
|
};
|
|
2558
2559
|
declare const __VLS_base$k: vue.DefineComponent<ModalProps, {
|
|
2559
2560
|
open: () => void;
|
|
@@ -2561,14 +2562,17 @@ declare const __VLS_base$k: vue.DefineComponent<ModalProps, {
|
|
|
2561
2562
|
cancel: () => void;
|
|
2562
2563
|
visible: vue.Ref<boolean, boolean>;
|
|
2563
2564
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
2565
|
+
"update:open": (value: boolean) => any;
|
|
2564
2566
|
cancel: () => any;
|
|
2565
2567
|
ok: (result?: any) => any;
|
|
2566
2568
|
}, string, vue.PublicProps, Readonly<ModalProps> & Readonly<{
|
|
2569
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
2567
2570
|
onCancel?: (() => any) | undefined;
|
|
2568
2571
|
onOk?: ((result?: any) => any) | undefined;
|
|
2569
2572
|
}>, {
|
|
2570
2573
|
title: string;
|
|
2571
2574
|
width: number | string;
|
|
2575
|
+
open: boolean;
|
|
2572
2576
|
maskClosable: boolean;
|
|
2573
2577
|
destroyOnClose: boolean;
|
|
2574
2578
|
okText: string;
|
|
@@ -2586,18 +2590,18 @@ type __VLS_WithSlots$k<T, S> = T & {
|
|
|
2586
2590
|
};
|
|
2587
2591
|
};
|
|
2588
2592
|
|
|
2589
|
-
declare var
|
|
2590
|
-
declare var
|
|
2591
|
-
declare var
|
|
2593
|
+
declare var __VLS_12$3: {};
|
|
2594
|
+
declare var __VLS_14$1: {};
|
|
2595
|
+
declare var __VLS_17: {
|
|
2592
2596
|
close: (result?: any) => void;
|
|
2593
2597
|
cancel: () => void;
|
|
2594
2598
|
};
|
|
2595
2599
|
type __VLS_Slots$j = {} & {
|
|
2596
|
-
title?: (props: typeof
|
|
2600
|
+
title?: (props: typeof __VLS_12$3) => any;
|
|
2597
2601
|
} & {
|
|
2598
|
-
default?: (props: typeof
|
|
2602
|
+
default?: (props: typeof __VLS_14$1) => any;
|
|
2599
2603
|
} & {
|
|
2600
|
-
footer?: (props: typeof
|
|
2604
|
+
footer?: (props: typeof __VLS_17) => any;
|
|
2601
2605
|
};
|
|
2602
2606
|
declare const __VLS_base$j: vue.DefineComponent<DrawerProps, {
|
|
2603
2607
|
open: () => void;
|
|
@@ -2605,15 +2609,18 @@ declare const __VLS_base$j: vue.DefineComponent<DrawerProps, {
|
|
|
2605
2609
|
cancel: () => void;
|
|
2606
2610
|
visible: vue.Ref<boolean, boolean>;
|
|
2607
2611
|
}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
2612
|
+
"update:open": (value: boolean) => any;
|
|
2608
2613
|
cancel: () => any;
|
|
2609
2614
|
ok: (result?: any) => any;
|
|
2610
2615
|
}, string, vue.PublicProps, Readonly<DrawerProps> & Readonly<{
|
|
2616
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
2611
2617
|
onCancel?: (() => any) | undefined;
|
|
2612
2618
|
onOk?: ((result?: any) => any) | undefined;
|
|
2613
2619
|
}>, {
|
|
2614
2620
|
title: string;
|
|
2615
2621
|
width: number | string;
|
|
2616
2622
|
showFooter: boolean;
|
|
2623
|
+
open: boolean;
|
|
2617
2624
|
maskClosable: boolean;
|
|
2618
2625
|
destroyOnClose: boolean;
|
|
2619
2626
|
placement: "top" | "right" | "bottom" | "left";
|