This commit is contained in:
syuilo 2021-01-13 21:43:06 +09:00
parent 60c838f86f
commit f81ea06d2c
2 changed files with 8 additions and 2 deletions

View file

@ -70,7 +70,6 @@ export default defineComponent({
data() {
return {
deckStore,
active: true,
dragging: false,
draghover: false,
dropready: false,
@ -83,6 +82,10 @@ export default defineComponent({
return this.column.type === 'main';
},
active(): boolean {
return this.column.active !== false;
},
keymap(): any {
return {
'shift+up': () => this.$parent.$emit('parent-focus', 'up'),
@ -124,7 +127,9 @@ export default defineComponent({
toggleActive() {
if (!this.isStacked) return;
this.active = !this.active;
updateColumn(this.column.id, {
active: !this.column.active
});
},
getMenu() {

View file

@ -16,6 +16,7 @@ type Column = {
name: string | null;
width: number;
widgets?: ColumnWidget[];
active?: boolean;
};
function copy<T>(x: T): T {