mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 03:52:07 +08:00
example addon
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
/**
|
||||
* test插件
|
||||
* example插件
|
||||
* @class
|
||||
*/
|
||||
class TestAddon {
|
||||
class ExampleAddon {
|
||||
|
||||
constructor(app) {
|
||||
this.app = app;
|
||||
}
|
||||
|
||||
/**
|
||||
* 销毁窗口Contents id
|
||||
* hello
|
||||
*
|
||||
* @function
|
||||
* @since 1.0.0
|
||||
@@ -19,5 +19,5 @@ class TestAddon {
|
||||
}
|
||||
}
|
||||
|
||||
TestAddon.toString = () => '[class TestAddon]';
|
||||
module.exports = TestAddon;
|
||||
ExampleAddon.toString = () => '[class ExampleAddon]';
|
||||
module.exports = ExampleAddon;
|
||||
@@ -175,13 +175,13 @@ module.exports = (appInfo) => {
|
||||
/**
|
||||
* 插件功能
|
||||
* window 官方内置插件
|
||||
* test demo插件
|
||||
* example demo插件
|
||||
*/
|
||||
config.addons = {
|
||||
window: {
|
||||
enable: true,
|
||||
},
|
||||
test: {
|
||||
example: {
|
||||
enable: true,
|
||||
}
|
||||
};
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
"dependencies": {
|
||||
"better-sqlite3": "^7.6.0",
|
||||
"dayjs": "^1.10.7",
|
||||
"ee-core": "^1.3.4-beta.2",
|
||||
"ee-core": "^1.3.4-beta.3",
|
||||
"electron-is": "^3.0.0",
|
||||
"lodash": "^4.17.21"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user