From d2d23a132080580040726bec2fcf49079231a10f Mon Sep 17 00:00:00 2001 From: Cheng JIANG Date: Mon, 10 Sep 2018 13:30:36 +0200 Subject: [PATCH] [FIX]: clear d3-grouped-area data when save the config --- src/store/LayoutGridStore.js | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/store/LayoutGridStore.js b/src/store/LayoutGridStore.js index 8477860..8ee2a2a 100644 --- a/src/store/LayoutGridStore.js +++ b/src/store/LayoutGridStore.js @@ -66,24 +66,6 @@ const mutations = { for (let i = 0, l = layout.length; i < l; i += 1) { state.layout.push(layout[i]); } - }, - SEARCH_LAYOUT_ITEM(state, searchString) { - const re = new RegExp(searchString, 'i'); - const layout = state.layout; - - for (let i = 0, l = layout.length; i < l; i += 1) { - const layoutItem = layout[i]; - - if (re.test(layoutItem.title) || re.test(layoutItem.is) || re.test(layoutItem.i)) { - Object.assign(layoutItem, { - show: true - }); - } else { - Object.assign(layoutItem, { - show: false - }); - } - } } }; @@ -112,6 +94,7 @@ const getters = { case 'd3-timeline': case 'd3-timelion': case 'd3-multi-line': + case 'd3-grouped-area': case 'd3-area': layoutItem.data.data = []; break;