封装一个tauri多窗口,传入配置参数,即可快速创建一个新窗体,简化调用方式。 createWin({label:'manage',title:'管理页面',url:'/manage',width:960,height:750,center:false,x:320,y:500,resizable:false,alwaysOnTop:true,}) /*** @desc Tauri2多窗口封装管理* @author: Andy QQ:282310962* @time 2024.9...
decorations: false, // 窗口是否无边框及导航条 alwaysOnTop: false, // 置顶窗口 } class Windows { constructor() { this.mainWin = null } // 获取窗口 getWin(label) { return WebviewWindow.getByLabel(label) } // 获取全部窗口 getAllWin() { return getAll() } // 创建新窗口 async create...
decorations: true, // 窗口是否无边框及导航条 alwaysOnTop: false, // 置顶窗口 }; class Windows { constructor() { this.mainWin = null; } // 获取窗口 getWin(label) { return WebviewWindow.getByLabel(label); } // 获取全部窗口 getAllWin() { return getAll(); } // 创建新窗口 async ...
//窗口最小高度x:null,//窗口相对于屏幕左侧坐标y:null,//窗口相对于屏幕顶端坐标center:true,//窗口居中显示resizable:true,//是否支持缩放maximized:false,//最大化窗口decorations:false,//窗口是否无边框及导航条alwaysOnTop:false
// 窗口是否装饰边框及导航条alwaysOnTop:false,// 置顶窗口dragDropEnabled:false,// 禁止系统拖放visible:false,// 隐藏窗口// ...}classWindows{constructor(){// 主窗口this.mainWin=null}// 创建新窗口asynccreateWin(options){console.log('-=-=-=-=-=开始创建窗口')constargs=Object.assign({},...
// 窗口是否无边框及导航条 alwaysOnTop: false, // 置顶窗口 }; class Windows { constructor() { this.mainWin = null; } // 获取窗口 getWin(label) { return WebviewWindow.getByLabel(label); } // 获取全部窗口 getAllWin() { return getAll(); } // 创建新窗口 async createWin(options)...
null,//窗口最小高度x:null,//窗口相对于屏幕左侧坐标y:null,//窗口相对于屏幕顶端坐标center:true,//窗口居中显示resizable:true,//是否支持缩放maximized:false,//最大化窗口decorations:false,//窗口是否无边框及导航条alwaysOnTop:false,//置顶窗口fileDropEnabled:false,//禁止系统拖放visible:false,//隐藏...
Edit tauri.conf.json to make window always-on-top(or make window on-top by PowerToy later) pnpm tauri dev Input something using Weasel,then window get stuck Contributor Author Pylogmon commented May 30, 2023 This problem has been fixed by Weasel, It seems that this is not a problem with...
alwaysOnTop: false, transparent:true, hiddenTitle:true, decorations:false, } ) // 窗口创建完毕/失败 win.once('tauri://created', async() => { console.log('window create success!') }) win.once('tauri://error', async() => { console.log('window create error!') }) await invoke('...
//窗口是否无边框及导航条alwaysOnTop:false,//置顶窗口} class Windows { constructor() {this.mainWin =null}//获取窗口getWin(label) {returnWebviewWindow.getByLabel(label) }//获取全部窗口getAllWin() {returngetAll() }//创建新窗口async createWin(options) { const args=Object.assign({}, ...