@fastkit/vue-color-scheme
Advanced tools
Comparing version
@@ -172,3 +172,2 @@ 'use strict'; | ||
class VueColorSchemePlugin { | ||
installedApps = new Set(); | ||
settings; | ||
@@ -186,13 +185,4 @@ constructor(settings) { | ||
install(app) { | ||
const { installedApps } = this; | ||
if (installedApps.has(app)) | ||
return; | ||
const unmountApp = app.unmount; | ||
installedApps.add(app); | ||
const $color = new VueColorSchemeService(this.settings); | ||
$color.provide(app); | ||
app.unmount = function () { | ||
installedApps.delete(app); | ||
unmountApp(); | ||
}; | ||
} | ||
@@ -199,0 +189,0 @@ } |
@@ -172,3 +172,2 @@ 'use strict'; | ||
class VueColorSchemePlugin { | ||
installedApps = new Set(); | ||
settings; | ||
@@ -186,13 +185,4 @@ constructor(settings) { | ||
install(app) { | ||
const { installedApps } = this; | ||
if (installedApps.has(app)) | ||
return; | ||
const unmountApp = app.unmount; | ||
installedApps.add(app); | ||
const $color = new VueColorSchemeService(this.settings); | ||
$color.provide(app); | ||
app.unmount = function () { | ||
installedApps.delete(app); | ||
unmountApp(); | ||
}; | ||
} | ||
@@ -199,0 +189,0 @@ } |
@@ -114,3 +114,2 @@ import { App } from 'vue'; | ||
export declare class VueColorSchemePlugin { | ||
readonly installedApps: Set<App<any>>; | ||
readonly settings: VueColorSchemeServiceSettings; | ||
@@ -117,0 +116,0 @@ constructor(settings: VueColorSchemePluginSettings); |
{ | ||
"name": "@fastkit/vue-color-scheme", | ||
"version": "0.8.10", | ||
"version": "0.8.11", | ||
"description": "@fastkit/vue-color-scheme", | ||
@@ -33,6 +33,6 @@ "buildOptions": { | ||
"dependencies": { | ||
"@fastkit/color-scheme": "0.8.10", | ||
"@fastkit/tiny-logger": "0.8.10", | ||
"@fastkit/vue-utils": "0.8.10" | ||
"@fastkit/color-scheme": "0.8.11", | ||
"@fastkit/tiny-logger": "0.8.11", | ||
"@fastkit/vue-utils": "0.8.11" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
23211
-4.16%689
-4.31%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated