@@ -1,6 +0,3 @@ | ||
| import { type PopOptions } from "./pop"; | ||
| import type { App } from "vue"; | ||
| declare const _default: { | ||
| install(app: App, options?: Partial<PopOptions>): void; | ||
| }; | ||
| export default _default; | ||
| import type { Plugin } from "vue"; | ||
| declare const plugin: Plugin; | ||
| export default plugin; |
| import { createPop } from "./pop"; | ||
| export default { | ||
| install(app, options) { | ||
| const configuredPopDirective = createPop(options); | ||
| app.directive("pop", configuredPopDirective); | ||
| const plugin = { | ||
| install(app, global_options) { | ||
| app.directive("pop", createPop(global_options)); | ||
| }, | ||
| }; | ||
| export default plugin; |
+1
-1
| { | ||
| "name": "toolpop", | ||
| "version": "0.4.8", | ||
| "version": "0.4.9", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
+9
-2
@@ -52,5 +52,12 @@ # 💬 Toolpop | ||
| import Toolpop from 'toolpop' | ||
| // ... | ||
| // Registers v-pop globally with default options | ||
| app.use(Toolpop) | ||
| // Registers v-pop globally with default options | ||
| // Or register with custom options | ||
| // (See the "Options" section below for the full list of available properties): | ||
| app.use(Toolpop, { | ||
| color: 'red', | ||
| fontSize: 16 | ||
| }) | ||
| ``` | ||
@@ -57,0 +64,0 @@ |
15659
0.26%149
4.93%262
-1.13%