Feature: Ability to customise widget color (#903)
- Use Chrome style color-picker
This commit is contained in:
parent
ec197b077d
commit
47ec7ad7c9
10 changed files with 124 additions and 68 deletions
|
@ -1,3 +1,5 @@
|
|||
import Vue from 'vue';
|
||||
|
||||
export const set = (state, data) => {
|
||||
state.records = data;
|
||||
};
|
||||
|
@ -18,7 +20,7 @@ export const setSingleRecord = (state, data) => {
|
|||
export const update = (state, data) => {
|
||||
state.records.forEach((element, index) => {
|
||||
if (element.id === data.id) {
|
||||
state.records[index] = data;
|
||||
Vue.set(state.records, index, data);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue