This commit is contained in:
2022-07-21 03:28:35 +00:00
parent d7c883d6df
commit 51b34b0e1d
30103 changed files with 4152204 additions and 23 deletions
+19
View File
@@ -0,0 +1,19 @@
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
module.exports = function installComponents (component, components) {
var options = typeof component.exports === 'function'
? component.exports.extendOptions
: component.options
if (typeof component.exports === 'function') {
options.components = component.exports.options.components
}
options.components = options.components || {}
for (var i in components) {
options.components[i] = options.components[i] || components[i]
}
}
+19
View File
@@ -0,0 +1,19 @@
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.
module.exports = function installDirectives (component, directives) {
var options = typeof component.exports === 'function'
? component.exports.extendOptions
: component.options
if (typeof component.exports === 'function') {
options.directives = component.exports.options.directives
}
options.directives = options.directives || {}
for (var i in directives) {
options.directives[i] = options.directives[i] || directives[i]
}
}