vue-component-tree
Advanced tools
Comparing version 2.1.8 to 2.1.9
{ | ||
"name": "vue-component-tree", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"description": "Tree view for your demo components", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,13 +10,14 @@ import storage from './storage' | ||
get config (): DemoPageConfig { | ||
const data = storage.fetch(STORAGE_KEY) || new DemoPageConfig() | ||
const config: DemoPageConfig = new DemoPageConfig(data.mode, data.isFlat, data.isShowingInfo, data.searchText, data.width) | ||
this._config = config | ||
if (! this._config) { | ||
const data = storage.fetch(STORAGE_KEY) || new DemoPageConfig() | ||
console.log('data', data) | ||
const config: DemoPageConfig = new DemoPageConfig(data.mode, data.isFlat, data.isShowingInfo, data.searchText, data.width) | ||
this._config = config | ||
} | ||
return this._config | ||
}, | ||
set config (config: DemoPageConfig) { | ||
setConfig (config: DemoPageConfig) { | ||
this._config = config | ||
storage.store(STORAGE_KEY, config) | ||
}, | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
4364214
87
26447