1.1.25 • Published 10 months ago
nvue3 v1.1.25
main.js
import App from './App';
import { createSSRApp } from 'vue';
import kernel from 'nvue3';
import config from '@/common/config';
import variables from '@/common/variables';
import processor from '@/library/processor';
import library from '@/library/library';
import user from '@/library/user';
export function createApp() {
const app = createSSRApp(App);
app.use(kernel, config, processor, { library, user, variables });
return { app }
}app.use(……)
app.use(kernel, config, processor, { library, user, variables });
前三个元素是固定的,最后{ library, variables }可以插入任意多个可以被new的class
调用:
在<script>中
this.$http.post(…………);
this.$pages.open(…………);
等等在<script setup>中
const { open, jump } = inject('$pages');
const user = inject('$user');
等等1.1.19
1 year ago
1.1.18
1 year ago
1.1.17
1 year ago
1.1.23
10 months ago
1.1.22
10 months ago
1.1.21
11 months ago
1.1.20
11 months ago
1.1.16
1 year ago
1.1.25
10 months ago
1.1.15
1 year ago
1.1.13
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.1.12
1 year ago
1.1.11
1 year ago
1.1.10
1 year ago
1.1.3
1 year ago
1.1.2
1 year ago
1.0.0
4 years ago