@midwayjs/vue
Midway Vue API bridge component
2,100
7,760
| Install | |
|---|---|
npm install @midwayjs/vue |
|
| Latest Version: | 4.2.6 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Oct 24, 2026 |
| Links: | GitHub · npm |
Maintainer: czy88840616
@midwayjs/vue
Vue-specific integration for Midway functional API.
Install
npm i @midwayjs/vue @midwayjs/web-bridge
{
"dependencies": {
"@midwayjs/vue": "^4.0.0-beta.11",
"@midwayjs/web-bridge": "^4.0.0-beta.11"
}
}
Usage
import { createApp } from 'vue';
import { createMidwayApiPlugin } from '@midwayjs/vue';
import { api } from './api/client';
import App from './App.vue';
createApp(App).use(createMidwayApiPlugin(api)).mount('#root');
import { useMidwayApiOperation } from '@midwayjs/vue';
const callGetUser = useMidwayApiOperation<{ params: { id: string } }, { id: string }>('user.getUser');
await callGetUser({ params: { id: '1' } });
Related Packages
vue-bridge-gateway
Vue-Bridge-Gateway is a wrapper of **WebviewJavascriptBridge** (`$bridge`) to ma...
1,304
@composy/tool-ui
Vue 3 tool UI foundation for LDesign workspaces, with a reusable shell and typed...
0
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 4.2.6 | >=3 | MIT | |
| 4.2.5 | >=3 | MIT | |
| 4.2.3 | >=3 | MIT | |
| 4.0.3 | >=3 | MIT | |
| 4.0.2 | >=3 | MIT | |
| 4.0.1 | >=3 | MIT | |
| 4.0.0 | >=3 | MIT |
Pre-releases (7)
| Version | Released | Vue | License |
|---|---|---|---|
| 4.0.0-beta.17 | >=3 | MIT | |
| 4.0.0-beta.16 | >=3 | MIT | |
| 4.0.0-beta.15 | >=3 | MIT | |
| 4.0.0-beta.14 | >=3 | MIT | |
| 4.0.0-beta.13 | >=3 | MIT | |
| 4.0.0-beta.12 | >=3 | MIT | |
| 4.0.0-beta.11 | >=3 | MIT |