1.1.25 • Published 7 months ago

nvue3 v1.1.25

Weekly downloads
-
License
ISC
Repository
-
Last release
7 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

9 months ago

1.1.18

9 months ago

1.1.17

9 months ago

1.1.23

7 months ago

1.1.22

7 months ago

1.1.21

8 months ago

1.1.20

8 months ago

1.1.16

9 months ago

1.1.25

7 months ago

1.1.15

9 months ago

1.1.13

9 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.1.12

10 months ago

1.1.11

10 months ago

1.1.10

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.0.0

4 years ago