4.1.3 • Published 6 months ago

qiao-x-window v4.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

qiao-x-window

npm version npm downloads

Electron 中 Window 相关的操作封装,Electron-开发实践:创建 Window

install

安装

npm i qiao-x-window

use

使用

// cjs
const { openWindowByFile } = require('qiao-x-window');

// mjs
import { openWindowByFile } from 'qiao-x-window';

api

getWindowByEvent

通过本地文件打开窗口

  • event
  • return
    • 类型: BrowserWindow
    • 说明: 创建成功则返回 BrowserWindow 的实例
const win = getWindowByEvent(event);

openWindowByFile

通过本地文件打开窗口

const win = await openWindowByFile(filePath, options);

openWindowByUrl

通过本地文件打开窗口

const win = await openWindowByUrl(url, options);
4.1.3

6 months ago

4.1.1

6 months ago

4.0.7

10 months ago

4.0.0

10 months ago

3.5.9

1 year ago

3.5.3

2 years ago

3.4.3

2 years ago

3.4.2

2 years ago

3.3.1

2 years ago