diff --git a/src/stores/dataViewerStore.ts b/src/stores/dataViewerStore.ts index 03a247b..deaa387 100644 --- a/src/stores/dataViewerStore.ts +++ b/src/stores/dataViewerStore.ts @@ -834,6 +834,39 @@ export const useDataViewerStore = defineStore('text-viewer', () => { isHexStringValid, } + interface WinProperty { + show: boolean; + width: string; + height: string; + borderSize: number; + } + + /* window layout */ + const winLeft = useStorage('winLeft',{ + show: true, + width: "100px", + height: "100px", + borderSize: 3, + }); + + /* window layout */ + const winRight = useStorage('winRight',{ + show: true, + width: "100px", + height: "100px", + borderSize: 3, + }); + + const winAutoLayout = useStorage('winAuto', true); + const winLayoutMode = useStorage('winLayout', 'row'); + + + const winLayoutRet = { + winLeft, + winRight, + winAutoLayout, + winLayoutMode, + } return { addItem, @@ -887,5 +920,6 @@ export const useDataViewerStore = defineStore('text-viewer', () => { uartBaudReal, setUartBaud, ...loopSendRet, + ...winLayoutRet, } }); diff --git a/src/views/Uart.vue b/src/views/Uart.vue index 0b374de..f863c31 100644 --- a/src/views/Uart.vue +++ b/src/views/Uart.vue @@ -1,28 +1,28 @@