微信云开发插件
This commit is contained in:
25
extensions/WeChat MiniGame Cloud Template/README.md
Normal file
25
extensions/WeChat MiniGame Cloud Template/README.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# Project Title
|
||||
|
||||
An extension that shows how to open and communicate with the panel through messages and menus.
|
||||
The panel is based on Vue3.x.
|
||||
|
||||
## Development Environment
|
||||
|
||||
Node.js
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
# Install dependent modules
|
||||
npm install
|
||||
# build
|
||||
npm run build
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
After enabling the extension, click `Panel -> wx-cloud-plugin -> Default Panel` in the main menu bar to open the default panel of the extension.
|
||||
|
||||
To send a message to the default panel, click `Developer -> wx-cloud-plugin -> Send Message to Panel` at the top of the menu. If the default panel exists, the `hello` method of the panel will be called.
|
||||
|
||||
After clicking `Send Message to Panel`, a message `send-to-panel` will be sent to the extension as defined by `contributions.menu` in `package.json`. When the extension receives the `send-to-panel` message, it will cause the `default` panel to call the `hello` method as defined by `contributions.messages` in `package.json`.
|
||||
Reference in New Issue
Block a user