Commit 25989cc7 authored by esatakpunar's avatar esatakpunar

expanded properties fixed

parent c0777a3b
...@@ -8,8 +8,6 @@ export default { ...@@ -8,8 +8,6 @@ export default {
selected: [], selected: [],
column: "all", column: "all",
search: "", search: "",
expanded: [],
singleExpand: true,
}; };
}, },
computed: { computed: {
...@@ -18,7 +16,8 @@ export default { ...@@ -18,7 +16,8 @@ export default {
"dialogHeaders", "dialogHeaders",
"productList", "productList",
"filteredProductList", "filteredProductList",
"singleExpand",
"expanded",
"dialog", "dialog",
"editedItem", "editedItem",
"editedIndex", "editedIndex",
......
...@@ -37,6 +37,12 @@ export default { ...@@ -37,6 +37,12 @@ export default {
productList(state) { productList(state) {
return state.productList; return state.productList;
}, },
singleExpand(state) {
return state.singleExpand;
},
expanded(state) {
return state.expanded;
},
editedIndex(state) { editedIndex(state) {
return state.editedIndex; return state.editedIndex;
}, },
......
...@@ -2,6 +2,9 @@ export default { ...@@ -2,6 +2,9 @@ export default {
setProductList(state, data) { setProductList(state, data) {
state.productList = data; state.productList = data;
}, },
setSingleExpand(state) {
state.singleExpand = !state.singleExpand;
},
setDialog(state, value) { setDialog(state, value) {
state.dialog = value; state.dialog = value;
}, },
...@@ -12,6 +15,6 @@ export default { ...@@ -12,6 +15,6 @@ export default {
state.editedItem = item; state.editedItem = item;
}, },
setfilteredProductList(state, data) { setfilteredProductList(state, data) {
state.filteredProductList = data; state.filteredInventoryList = data;
}, },
}; };
export default () => ({ export default () => ({
productList: [], productList: [],
expanded: [],
filteredProductList: [], filteredProductList: [],
singleExpand: true,
editedIndex: -1, editedIndex: -1,
editedItem: {}, editedItem: {},
dialog: false, dialog: false,
......
...@@ -773,6 +773,17 @@ ...@@ -773,6 +773,17 @@
"productDescription": "The automobile layout consists of a front-engine design, with transaxle-type transmissions mounted at the rear of the engine and four wheel drive", "productDescription": "The automobile layout consists of a front-engine design, with transaxle-type transmissions mounted at the rear of the engine and four wheel drive",
"productMaterial": "Plastic", "productMaterial": "Plastic",
"image": "http://loremflickr.com/640/480/food" "image": "http://loremflickr.com/640/480/food"
},
{
"productName": "Test Product",
"type": "Fantastic",
"productMaterial": "Metal",
"department": "Home",
"color": "silver",
"price": "78",
"image": "https://picsum.photos/536/354",
"productDescription": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse finibus leo eros, et sodales dui rhoncus vitae. Proin porttitor maximus maximus. Duis quis massa ",
"id": "mjBZFkk"
} }
], ],
"customers": [ "customers": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment