mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-22 14:55:12 +00:00
Resolve #7074
This commit is contained in:
parent
114a9fbdb2
commit
52c12f96d5
2 changed files with 8 additions and 2 deletions
|
@ -70,7 +70,6 @@ export default defineComponent({
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
deckStore,
|
deckStore,
|
||||||
active: true,
|
|
||||||
dragging: false,
|
dragging: false,
|
||||||
draghover: false,
|
draghover: false,
|
||||||
dropready: false,
|
dropready: false,
|
||||||
|
@ -83,6 +82,10 @@ export default defineComponent({
|
||||||
return this.column.type === 'main';
|
return this.column.type === 'main';
|
||||||
},
|
},
|
||||||
|
|
||||||
|
active(): boolean {
|
||||||
|
return this.column.active !== false;
|
||||||
|
},
|
||||||
|
|
||||||
keymap(): any {
|
keymap(): any {
|
||||||
return {
|
return {
|
||||||
'shift+up': () => this.$parent.$emit('parent-focus', 'up'),
|
'shift+up': () => this.$parent.$emit('parent-focus', 'up'),
|
||||||
|
@ -124,7 +127,9 @@ export default defineComponent({
|
||||||
|
|
||||||
toggleActive() {
|
toggleActive() {
|
||||||
if (!this.isStacked) return;
|
if (!this.isStacked) return;
|
||||||
this.active = !this.active;
|
updateColumn(this.column.id, {
|
||||||
|
active: !this.column.active
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
getMenu() {
|
getMenu() {
|
||||||
|
|
|
@ -16,6 +16,7 @@ type Column = {
|
||||||
name: string | null;
|
name: string | null;
|
||||||
width: number;
|
width: number;
|
||||||
widgets?: ColumnWidget[];
|
widgets?: ColumnWidget[];
|
||||||
|
active?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
function copy<T>(x: T): T {
|
function copy<T>(x: T): T {
|
||||||
|
|
Loading…
Reference in a new issue