mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-21 14:13:36 +08:00
docs:更新文档
This commit is contained in:
82
node_modules/vue/dist/vue.cjs.js
generated
vendored
Normal file
82
node_modules/vue/dist/vue.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var runtimeDom = require('@vue/runtime-dom');
|
||||
var shared = require('@vue/shared');
|
||||
var compilerDom = require('@vue/compiler-dom');
|
||||
|
||||
function _interopNamespace(e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var n = Object.create(null);
|
||||
if (e) {
|
||||
Object.keys(e).forEach(function (k) {
|
||||
n[k] = e[k];
|
||||
});
|
||||
}
|
||||
n['default'] = e;
|
||||
return Object.freeze(n);
|
||||
}
|
||||
|
||||
var runtimeDom__namespace = /*#__PURE__*/_interopNamespace(runtimeDom);
|
||||
|
||||
function initDev() {
|
||||
const target = shared.getGlobalThis();
|
||||
target.__VUE__ = true;
|
||||
runtimeDom.setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__);
|
||||
}
|
||||
|
||||
// This entry is the "full-build" that includes both the runtime
|
||||
initDev();
|
||||
const compileCache = Object.create(null);
|
||||
function compileToFunction(template, options) {
|
||||
if (!shared.isString(template)) {
|
||||
if (template.nodeType) {
|
||||
template = template.innerHTML;
|
||||
}
|
||||
else {
|
||||
runtimeDom.warn(`invalid template option: `, template);
|
||||
return shared.NOOP;
|
||||
}
|
||||
}
|
||||
const key = template;
|
||||
const cached = compileCache[key];
|
||||
if (cached) {
|
||||
return cached;
|
||||
}
|
||||
if (template[0] === '#') {
|
||||
const el = document.querySelector(template);
|
||||
if ( !el) {
|
||||
runtimeDom.warn(`Template element not found or is empty: ${template}`);
|
||||
}
|
||||
// __UNSAFE__
|
||||
// Reason: potential execution of JS expressions in in-DOM template.
|
||||
// The user must make sure the in-DOM template is trusted. If it's rendered
|
||||
// by the server, the template should not contain any user data.
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const { code } = compilerDom.compile(template, shared.extend({
|
||||
hoistStatic: true,
|
||||
onError(err) {
|
||||
{
|
||||
const message = `Template compilation error: ${err.message}`;
|
||||
const codeFrame = err.loc &&
|
||||
shared.generateCodeFrame(template, err.loc.start.offset, err.loc.end.offset);
|
||||
runtimeDom.warn(codeFrame ? `${message}\n${codeFrame}` : message);
|
||||
}
|
||||
}
|
||||
}, options));
|
||||
// The wildcard import results in a huge object with every export
|
||||
// with keys that cannot be mangled, and can be quite heavy size-wise.
|
||||
// In the global build we know `Vue` is available globally so we can avoid
|
||||
// the wildcard object.
|
||||
const render = ( new Function('Vue', code)(runtimeDom__namespace));
|
||||
render._rc = true;
|
||||
return (compileCache[key] = render);
|
||||
}
|
||||
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
||||
|
||||
Object.keys(runtimeDom).forEach(function (k) {
|
||||
if (k !== 'default') exports[k] = runtimeDom[k];
|
||||
});
|
||||
exports.compile = compileToFunction;
|
||||
69
node_modules/vue/dist/vue.cjs.prod.js
generated
vendored
Normal file
69
node_modules/vue/dist/vue.cjs.prod.js
generated
vendored
Normal file
@@ -0,0 +1,69 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var runtimeDom = require('@vue/runtime-dom');
|
||||
var shared = require('@vue/shared');
|
||||
var compilerDom = require('@vue/compiler-dom');
|
||||
|
||||
function _interopNamespace(e) {
|
||||
if (e && e.__esModule) return e;
|
||||
var n = Object.create(null);
|
||||
if (e) {
|
||||
Object.keys(e).forEach(function (k) {
|
||||
n[k] = e[k];
|
||||
});
|
||||
}
|
||||
n['default'] = e;
|
||||
return Object.freeze(n);
|
||||
}
|
||||
|
||||
var runtimeDom__namespace = /*#__PURE__*/_interopNamespace(runtimeDom);
|
||||
|
||||
// This entry is the "full-build" that includes both the runtime
|
||||
const compileCache = Object.create(null);
|
||||
function compileToFunction(template, options) {
|
||||
if (!shared.isString(template)) {
|
||||
if (template.nodeType) {
|
||||
template = template.innerHTML;
|
||||
}
|
||||
else {
|
||||
return shared.NOOP;
|
||||
}
|
||||
}
|
||||
const key = template;
|
||||
const cached = compileCache[key];
|
||||
if (cached) {
|
||||
return cached;
|
||||
}
|
||||
if (template[0] === '#') {
|
||||
const el = document.querySelector(template);
|
||||
// __UNSAFE__
|
||||
// Reason: potential execution of JS expressions in in-DOM template.
|
||||
// The user must make sure the in-DOM template is trusted. If it's rendered
|
||||
// by the server, the template should not contain any user data.
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const { code } = compilerDom.compile(template, shared.extend({
|
||||
hoistStatic: true,
|
||||
onError(err) {
|
||||
{
|
||||
/* istanbul ignore next */
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
}, options));
|
||||
// The wildcard import results in a huge object with every export
|
||||
// with keys that cannot be mangled, and can be quite heavy size-wise.
|
||||
// In the global build we know `Vue` is available globally so we can avoid
|
||||
// the wildcard object.
|
||||
const render = ( new Function('Vue', code)(runtimeDom__namespace));
|
||||
render._rc = true;
|
||||
return (compileCache[key] = render);
|
||||
}
|
||||
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
||||
|
||||
Object.keys(runtimeDom).forEach(function (k) {
|
||||
if (k !== 'default') exports[k] = runtimeDom[k];
|
||||
});
|
||||
exports.compile = compileToFunction;
|
||||
8
node_modules/vue/dist/vue.d.ts
generated
vendored
Normal file
8
node_modules/vue/dist/vue.d.ts
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import { CompilerOptions } from '@vue/compiler-dom';
|
||||
import { RenderFunction } from '@vue/runtime-dom';
|
||||
|
||||
export declare function compile(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
||||
|
||||
export * from "@vue/runtime-dom";
|
||||
|
||||
export { }
|
||||
13424
node_modules/vue/dist/vue.esm-browser.js
generated
vendored
Normal file
13424
node_modules/vue/dist/vue.esm-browser.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/vue/dist/vue.esm-browser.prod.js
generated
vendored
Normal file
1
node_modules/vue/dist/vue.esm-browser.prod.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
72
node_modules/vue/dist/vue.esm-bundler.js
generated
vendored
Normal file
72
node_modules/vue/dist/vue.esm-bundler.js
generated
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
import * as runtimeDom from '@vue/runtime-dom';
|
||||
import { setDevtoolsHook, initCustomFormatter, warn, registerRuntimeCompiler } from '@vue/runtime-dom';
|
||||
export * from '@vue/runtime-dom';
|
||||
import { getGlobalThis, isString, NOOP, extend, generateCodeFrame } from '@vue/shared';
|
||||
import { compile } from '@vue/compiler-dom';
|
||||
|
||||
function initDev() {
|
||||
const target = getGlobalThis();
|
||||
target.__VUE__ = true;
|
||||
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__);
|
||||
{
|
||||
console.info(`You are running a development build of Vue.\n` +
|
||||
`Make sure to use the production build (*.prod.js) when deploying for production.`);
|
||||
initCustomFormatter();
|
||||
}
|
||||
}
|
||||
|
||||
// This entry is the "full-build" that includes both the runtime
|
||||
(process.env.NODE_ENV !== 'production') && initDev();
|
||||
const compileCache = Object.create(null);
|
||||
function compileToFunction(template, options) {
|
||||
if (!isString(template)) {
|
||||
if (template.nodeType) {
|
||||
template = template.innerHTML;
|
||||
}
|
||||
else {
|
||||
(process.env.NODE_ENV !== 'production') && warn(`invalid template option: `, template);
|
||||
return NOOP;
|
||||
}
|
||||
}
|
||||
const key = template;
|
||||
const cached = compileCache[key];
|
||||
if (cached) {
|
||||
return cached;
|
||||
}
|
||||
if (template[0] === '#') {
|
||||
const el = document.querySelector(template);
|
||||
if ((process.env.NODE_ENV !== 'production') && !el) {
|
||||
warn(`Template element not found or is empty: ${template}`);
|
||||
}
|
||||
// __UNSAFE__
|
||||
// Reason: potential execution of JS expressions in in-DOM template.
|
||||
// The user must make sure the in-DOM template is trusted. If it's rendered
|
||||
// by the server, the template should not contain any user data.
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const { code } = compile(template, extend({
|
||||
hoistStatic: true,
|
||||
onError(err) {
|
||||
if ((process.env.NODE_ENV !== 'production')) {
|
||||
const message = `Template compilation error: ${err.message}`;
|
||||
const codeFrame = err.loc &&
|
||||
generateCodeFrame(template, err.loc.start.offset, err.loc.end.offset);
|
||||
warn(codeFrame ? `${message}\n${codeFrame}` : message);
|
||||
}
|
||||
else {
|
||||
/* istanbul ignore next */
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
}, options));
|
||||
// The wildcard import results in a huge object with every export
|
||||
// with keys that cannot be mangled, and can be quite heavy size-wise.
|
||||
// In the global build we know `Vue` is available globally so we can avoid
|
||||
// the wildcard object.
|
||||
const render = ( new Function('Vue', code)(runtimeDom));
|
||||
render._rc = true;
|
||||
return (compileCache[key] = render);
|
||||
}
|
||||
registerRuntimeCompiler(compileToFunction);
|
||||
|
||||
export { compileToFunction as compile };
|
||||
13408
node_modules/vue/dist/vue.global.js
generated
vendored
Normal file
13408
node_modules/vue/dist/vue.global.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/vue/dist/vue.global.prod.js
generated
vendored
Normal file
1
node_modules/vue/dist/vue.global.prod.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
9181
node_modules/vue/dist/vue.runtime.esm-browser.js
generated
vendored
Normal file
9181
node_modules/vue/dist/vue.runtime.esm-browser.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/vue/dist/vue.runtime.esm-browser.prod.js
generated
vendored
Normal file
1
node_modules/vue/dist/vue.runtime.esm-browser.prod.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
26
node_modules/vue/dist/vue.runtime.esm-bundler.js
generated
vendored
Normal file
26
node_modules/vue/dist/vue.runtime.esm-bundler.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import { setDevtoolsHook, initCustomFormatter, warn } from '@vue/runtime-dom';
|
||||
export * from '@vue/runtime-dom';
|
||||
import { getGlobalThis } from '@vue/shared';
|
||||
|
||||
function initDev() {
|
||||
const target = getGlobalThis();
|
||||
target.__VUE__ = true;
|
||||
setDevtoolsHook(target.__VUE_DEVTOOLS_GLOBAL_HOOK__);
|
||||
{
|
||||
console.info(`You are running a development build of Vue.\n` +
|
||||
`Make sure to use the production build (*.prod.js) when deploying for production.`);
|
||||
initCustomFormatter();
|
||||
}
|
||||
}
|
||||
|
||||
// This entry exports the runtime only, and is built as
|
||||
(process.env.NODE_ENV !== 'production') && initDev();
|
||||
const compile = () => {
|
||||
if ((process.env.NODE_ENV !== 'production')) {
|
||||
warn(`Runtime compilation is not supported in this build of Vue.` +
|
||||
( ` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
|
||||
) /* should not happen */);
|
||||
}
|
||||
};
|
||||
|
||||
export { compile };
|
||||
9277
node_modules/vue/dist/vue.runtime.global.js
generated
vendored
Normal file
9277
node_modules/vue/dist/vue.runtime.global.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1
node_modules/vue/dist/vue.runtime.global.prod.js
generated
vendored
Normal file
1
node_modules/vue/dist/vue.runtime.global.prod.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user