mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 01:20:12 +01:00
This commit is contained in:
parent
9f64cbf5a8
commit
228da65358
3 changed files with 13 additions and 4 deletions
|
|
@ -91,6 +91,7 @@ const updateDock = (dockItem: IDockTab[], index: number, plugin: Plugin, type: s
|
|||
plugin.docks[tabItem.type].config.position = index === 0 ? "BottomLeft" : "BottomRight";
|
||||
}
|
||||
plugin.docks[tabItem.type].config.index = tabIndex;
|
||||
plugin.docks[tabItem.type].config.show = tabItem.show;
|
||||
plugin.docks[tabItem.type].config.size = tabItem.size;
|
||||
}
|
||||
})
|
||||
|
|
@ -126,7 +127,7 @@ export const afterLoadPlugin = (plugin: Plugin) => {
|
|||
window.siyuan.layout.leftDock.genButton([{
|
||||
type: key,
|
||||
size: dock.config.size,
|
||||
show: false,
|
||||
show: dock.config.show,
|
||||
icon: dock.config.icon,
|
||||
title: dock.config.title,
|
||||
hotkey: dock.config.hotkey
|
||||
|
|
@ -135,7 +136,7 @@ export const afterLoadPlugin = (plugin: Plugin) => {
|
|||
window.siyuan.layout.bottomDock.genButton([{
|
||||
type: key,
|
||||
size: dock.config.size,
|
||||
show: false,
|
||||
show: dock.config.show,
|
||||
icon: dock.config.icon,
|
||||
title: dock.config.title,
|
||||
hotkey: dock.config.hotkey
|
||||
|
|
@ -144,7 +145,7 @@ export const afterLoadPlugin = (plugin: Plugin) => {
|
|||
window.siyuan.layout.rightDock.genButton([{
|
||||
type: key,
|
||||
size: dock.config.size,
|
||||
show: false,
|
||||
show: dock.config.show,
|
||||
icon: dock.config.icon,
|
||||
title: dock.config.title,
|
||||
hotkey: dock.config.hotkey
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue