Resolve #7074
This commit is contained in:
parent
60c838f86f
commit
f81ea06d2c
2 changed files with 8 additions and 2 deletions
|
@ -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() {
|
||||
|
|
|
@ -16,6 +16,7 @@ type Column = {
|
|||
name: string | null;
|
||||
width: number;
|
||||
widgets?: ColumnWidget[];
|
||||
active?: boolean;
|
||||
};
|
||||
|
||||
function copy<T>(x: T): T {
|
||||
|
|
Loading…
Reference in a new issue