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!)

Аўтар
inDarkness
Версія
v3.4.37
Створаны
09.08.2024
Абноўлены
09.08.2024
Памер
513.6 КБ
Ліцэнзія
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;
...