VueEntry

vue 3.4.37_vue.global.js fix to component

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/503097/1424938/VueEntry.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Aŭtoro
inDarkness
Versio
v3.4.37
Kreita
2024/08/09
Ĝisdatigita
2024/08/09
Size
514 kb
Licenco
MIT

功能描述

  1. 为兼容require的写法
  2. 为不影响原有页面的Vue版本,甚至原有页面可能是Vue2,当前插入的是Vue3
  3. 暴露出来的对象为VueEntry

使用方法

方法一:

window.VueEntry.createApp({template: '<div>{{message}}</div>', setup: () => ({message: 'hello world'})}).mount('body')

方法二:

// @require https://update.greasyfork.org/scripts/503097/1424931/VueEntry.js

const {reative} = window.VueEntry;
...