Skip to content

Commit 686fab8

Browse files
authored
Merge pull request #62 from lxnelyclxud/main
2 parents a67a5cf + 178c887 commit 686fab8

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

index.d.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
declare module "vue3-popper" {
2+
import { DefineComponent } from "vue";
3+
4+
interface Props {
5+
placement?:
6+
| "auto"
7+
| "auto-start"
8+
| "auto-end"
9+
| "top"
10+
| "top-start"
11+
| "top-end"
12+
| "bottom"
13+
| "bottom-start"
14+
| "bottom-end"
15+
| "right"
16+
| "right-start"
17+
| "right-end"
18+
| "left"
19+
| "left-start"
20+
| "left-end";
21+
disableClickAway?: boolean;
22+
offsetSkid?: string;
23+
offsetDistance?: string;
24+
hover?: boolean;
25+
show?: boolean;
26+
disabled?: boolean;
27+
openDelay?: number | string;
28+
closeDelay?: number | string;
29+
zIndex?: number | string;
30+
arrow?: boolean;
31+
arrowPadding?: string;
32+
interactive?: boolean;
33+
locked?: boolean;
34+
content?: string;
35+
"onOpen:popper"?: () => void;
36+
"onClose:popper"?: () => void;
37+
}
38+
39+
const Popper: DefineComponent<Props>;
40+
41+
export default Popper;
42+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
"unpkg": "dist/popper.min.js",
2525
"files": [
2626
"dist/*",
27-
"src/**/*.vue"
27+
"src/**/*.vue",
28+
"index.d.ts"
2829
],
2930
"sideEffects": false,
3031
"scripts": {

0 commit comments

Comments
 (0)