1.1.25 • Published 5 months ago

nvue3 v1.1.25

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

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

8 months ago

1.1.18

8 months ago

1.1.17

8 months ago

1.1.23

5 months ago

1.1.22

5 months ago

1.1.21

6 months ago

1.1.20

6 months ago

1.1.16

8 months ago

1.1.25

5 months ago

1.1.15

8 months ago

1.1.13

8 months ago

1.1.1

8 months ago

1.1.0

8 months ago

1.1.12

8 months ago

1.1.11

8 months ago

1.1.10

8 months ago

1.1.3

8 months ago

1.1.2

8 months ago

1.0.0

4 years ago