mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
🎨
This commit is contained in:
parent
87a7238976
commit
393f893a2c
1 changed files with 22 additions and 3 deletions
|
@ -108,9 +108,7 @@ function getMenu() {
|
||||||
const menuItems: MenuItem[] = [];
|
const menuItems: MenuItem[] = [];
|
||||||
|
|
||||||
if (props.menu) {
|
if (props.menu) {
|
||||||
menuItems.push(...props.menu, {
|
menuItems.push(...props.menu);
|
||||||
type: 'divider',
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (props.refresher) {
|
if (props.refresher) {
|
||||||
|
@ -125,6 +123,12 @@ function getMenu() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (menuItems.length > 0) {
|
||||||
|
menuItems.push({
|
||||||
|
type: 'divider',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
menuItems.push({
|
menuItems.push({
|
||||||
icon: 'ti ti-settings',
|
icon: 'ti ti-settings',
|
||||||
text: i18n.ts._deck.configureColumn,
|
text: i18n.ts._deck.configureColumn,
|
||||||
|
@ -153,6 +157,21 @@ function getMenu() {
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const flexibleRef = ref(props.column.flexible ?? false);
|
||||||
|
|
||||||
|
watch(flexibleRef, flexible => {
|
||||||
|
updateColumn(props.column.id, {
|
||||||
|
flexible,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
menuItems.push({
|
||||||
|
type: 'switch',
|
||||||
|
icon: 'ti ti-arrows-horizontal',
|
||||||
|
text: i18n.ts._deck.flexible,
|
||||||
|
ref: flexibleRef,
|
||||||
|
});
|
||||||
|
|
||||||
const moveToMenuItems: MenuItem[] = [];
|
const moveToMenuItems: MenuItem[] = [];
|
||||||
|
|
||||||
moveToMenuItems.push({
|
moveToMenuItems.push({
|
||||||
|
|
Loading…
Add table
Reference in a new issue