@destyler/popover 0.0.1-beta.5 → 0.0.1-beta.6
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.cjs +13 -2
- package/dist/index.d.cts +10 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.mjs +13 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -581,6 +581,11 @@ const DestylerFocusTrap = vue.defineComponent({
|
|
|
581
581
|
});
|
|
582
582
|
|
|
583
583
|
const popoverBodyProps = {
|
|
584
|
+
name: {
|
|
585
|
+
type: String,
|
|
586
|
+
required: false,
|
|
587
|
+
default: "popover"
|
|
588
|
+
},
|
|
584
589
|
show: {
|
|
585
590
|
type: Boolean
|
|
586
591
|
},
|
|
@@ -727,13 +732,13 @@ const DestylerPopoverBody = vue.defineComponent({
|
|
|
727
732
|
return children ? vue.h("div", null, children) : null;
|
|
728
733
|
})
|
|
729
734
|
] : vue.h("div", {
|
|
730
|
-
destyler:
|
|
735
|
+
destyler: `${props.name}-body-content`
|
|
731
736
|
}, slots);
|
|
732
737
|
return [body2];
|
|
733
738
|
};
|
|
734
739
|
contentNode = vue.h("div", vue.mergeProps({
|
|
735
740
|
ref: body,
|
|
736
|
-
destyler:
|
|
741
|
+
destyler: `${props.name}-body-toggle`,
|
|
737
742
|
onMouseenter: handleMouseEnter,
|
|
738
743
|
onMouseleave: handleMouseLeave
|
|
739
744
|
}, attrs), internalTrapFocus ? vue.h(DestylerFocusTrap, {
|
|
@@ -796,6 +801,11 @@ function appendEvents(vNode, trigger, events) {
|
|
|
796
801
|
});
|
|
797
802
|
}
|
|
798
803
|
const destylerPopoverProps = {
|
|
804
|
+
"name": {
|
|
805
|
+
type: String,
|
|
806
|
+
required: false,
|
|
807
|
+
default: "popover"
|
|
808
|
+
},
|
|
799
809
|
"show": {
|
|
800
810
|
type: Boolean,
|
|
801
811
|
default: void 0
|
|
@@ -1131,6 +1141,7 @@ const DestylerPopover = vue.defineComponent({
|
|
|
1131
1141
|
}),
|
|
1132
1142
|
vue.h(DestylerPopoverBody, shared.keep(this.$props, bodyPropKeys, {
|
|
1133
1143
|
...this.$attrs,
|
|
1144
|
+
name: this.$props.name,
|
|
1134
1145
|
show: this.getMergedShow()
|
|
1135
1146
|
}), {
|
|
1136
1147
|
default: () => this.$slots.default?.(),
|
package/dist/index.d.cts
CHANGED
|
@@ -32,6 +32,11 @@ interface PopoverInjection {
|
|
|
32
32
|
internalRenderBody: Ref<InternalRenderBody | undefined>;
|
|
33
33
|
}
|
|
34
34
|
declare const destylerPopoverProps: {
|
|
35
|
+
name: {
|
|
36
|
+
type: PropType<string>;
|
|
37
|
+
required: boolean;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
35
40
|
show: {
|
|
36
41
|
type: PropType<boolean | undefined>;
|
|
37
42
|
default: undefined;
|
|
@@ -107,6 +112,11 @@ interface BodyInstance {
|
|
|
107
112
|
declare const DestylerPopover: any;
|
|
108
113
|
|
|
109
114
|
declare const popoverBodyProps: {
|
|
115
|
+
name: {
|
|
116
|
+
type: PropType<string>;
|
|
117
|
+
required: boolean;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
110
120
|
show: {
|
|
111
121
|
type: PropType<boolean>;
|
|
112
122
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -32,6 +32,11 @@ interface PopoverInjection {
|
|
|
32
32
|
internalRenderBody: Ref<InternalRenderBody | undefined>;
|
|
33
33
|
}
|
|
34
34
|
declare const destylerPopoverProps: {
|
|
35
|
+
name: {
|
|
36
|
+
type: PropType<string>;
|
|
37
|
+
required: boolean;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
35
40
|
show: {
|
|
36
41
|
type: PropType<boolean | undefined>;
|
|
37
42
|
default: undefined;
|
|
@@ -107,6 +112,11 @@ interface BodyInstance {
|
|
|
107
112
|
declare const DestylerPopover: any;
|
|
108
113
|
|
|
109
114
|
declare const popoverBodyProps: {
|
|
115
|
+
name: {
|
|
116
|
+
type: PropType<string>;
|
|
117
|
+
required: boolean;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
110
120
|
show: {
|
|
111
121
|
type: PropType<boolean>;
|
|
112
122
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,11 @@ interface PopoverInjection {
|
|
|
32
32
|
internalRenderBody: Ref<InternalRenderBody | undefined>;
|
|
33
33
|
}
|
|
34
34
|
declare const destylerPopoverProps: {
|
|
35
|
+
name: {
|
|
36
|
+
type: PropType<string>;
|
|
37
|
+
required: boolean;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
35
40
|
show: {
|
|
36
41
|
type: PropType<boolean | undefined>;
|
|
37
42
|
default: undefined;
|
|
@@ -107,6 +112,11 @@ interface BodyInstance {
|
|
|
107
112
|
declare const DestylerPopover: any;
|
|
108
113
|
|
|
109
114
|
declare const popoverBodyProps: {
|
|
115
|
+
name: {
|
|
116
|
+
type: PropType<string>;
|
|
117
|
+
required: boolean;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
110
120
|
show: {
|
|
111
121
|
type: PropType<boolean>;
|
|
112
122
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -579,6 +579,11 @@ const DestylerFocusTrap = defineComponent({
|
|
|
579
579
|
});
|
|
580
580
|
|
|
581
581
|
const popoverBodyProps = {
|
|
582
|
+
name: {
|
|
583
|
+
type: String,
|
|
584
|
+
required: false,
|
|
585
|
+
default: "popover"
|
|
586
|
+
},
|
|
582
587
|
show: {
|
|
583
588
|
type: Boolean
|
|
584
589
|
},
|
|
@@ -725,13 +730,13 @@ const DestylerPopoverBody = defineComponent({
|
|
|
725
730
|
return children ? h("div", null, children) : null;
|
|
726
731
|
})
|
|
727
732
|
] : h("div", {
|
|
728
|
-
destyler:
|
|
733
|
+
destyler: `${props.name}-body-content`
|
|
729
734
|
}, slots);
|
|
730
735
|
return [body2];
|
|
731
736
|
};
|
|
732
737
|
contentNode = h("div", mergeProps({
|
|
733
738
|
ref: body,
|
|
734
|
-
destyler:
|
|
739
|
+
destyler: `${props.name}-body-toggle`,
|
|
735
740
|
onMouseenter: handleMouseEnter,
|
|
736
741
|
onMouseleave: handleMouseLeave
|
|
737
742
|
}, attrs), internalTrapFocus ? h(DestylerFocusTrap, {
|
|
@@ -794,6 +799,11 @@ function appendEvents(vNode, trigger, events) {
|
|
|
794
799
|
});
|
|
795
800
|
}
|
|
796
801
|
const destylerPopoverProps = {
|
|
802
|
+
"name": {
|
|
803
|
+
type: String,
|
|
804
|
+
required: false,
|
|
805
|
+
default: "popover"
|
|
806
|
+
},
|
|
797
807
|
"show": {
|
|
798
808
|
type: Boolean,
|
|
799
809
|
default: void 0
|
|
@@ -1129,6 +1139,7 @@ const DestylerPopover = defineComponent({
|
|
|
1129
1139
|
}),
|
|
1130
1140
|
h(DestylerPopoverBody, keep(this.$props, bodyPropKeys, {
|
|
1131
1141
|
...this.$attrs,
|
|
1142
|
+
name: this.$props.name,
|
|
1132
1143
|
show: this.getMergedShow()
|
|
1133
1144
|
}), {
|
|
1134
1145
|
default: () => this.$slots.default?.(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@destyler/popover",
|
|
3
|
-
"version": "0.0.1-beta.
|
|
3
|
+
"version": "0.0.1-beta.6",
|
|
4
4
|
"description": "unstyled popover component for vue",
|
|
5
5
|
"author": "Elone Hoo <elonehoo@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"vue": "^3.3.4"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@destyler/composition": "0.0.1-beta.
|
|
27
|
-
"@destyler/
|
|
28
|
-
"@destyler/
|
|
26
|
+
"@destyler/composition": "0.0.1-beta.6",
|
|
27
|
+
"@destyler/shared": "0.0.1-beta.6",
|
|
28
|
+
"@destyler/directives": "0.0.1-beta.6"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"clear": "rimraf ./dist",
|