mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-09 14:40:27 +08:00
chore:更换到主分支
This commit is contained in:
16
node_modules/vue/dist/vue.cjs.js
generated
vendored
16
node_modules/vue/dist/vue.cjs.js
generated
vendored
@@ -27,7 +27,9 @@ function initDev() {
|
||||
}
|
||||
|
||||
// This entry is the "full-build" that includes both the runtime
|
||||
initDev();
|
||||
{
|
||||
initDev();
|
||||
}
|
||||
const compileCache = Object.create(null);
|
||||
function compileToFunction(template, options) {
|
||||
if (!shared.isString(template)) {
|
||||
@@ -35,7 +37,7 @@ function compileToFunction(template, options) {
|
||||
template = template.innerHTML;
|
||||
}
|
||||
else {
|
||||
runtimeDom.warn(`invalid template option: `, template);
|
||||
runtimeDom.warn(`invalid template option: `, template);
|
||||
return shared.NOOP;
|
||||
}
|
||||
}
|
||||
@@ -46,7 +48,7 @@ function compileToFunction(template, options) {
|
||||
}
|
||||
if (template[0] === '#') {
|
||||
const el = document.querySelector(template);
|
||||
if ( !el) {
|
||||
if (!el) {
|
||||
runtimeDom.warn(`Template element not found or is empty: ${template}`);
|
||||
}
|
||||
// __UNSAFE__
|
||||
@@ -70,13 +72,13 @@ function compileToFunction(template, options) {
|
||||
// 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));
|
||||
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;
|
||||
Object.keys(runtimeDom).forEach(function (k) {
|
||||
if (k !== 'default' && !exports.hasOwnProperty(k)) exports[k] = runtimeDom[k];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user