vue-icon-packs
Version:
Vue SVG icon components.
147 lines (136 loc) • 5.17 kB
JavaScript
//
//
var script = { name: 'SFileMd'};
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
if (typeof shadowMode !== 'boolean') {
createInjectorSSR = createInjector;
createInjector = shadowMode;
shadowMode = false;
}
// Vue.extend constructor export interop.
const options = typeof script === 'function' ? script.options : script;
// render functions
if (template && template.render) {
options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
options._compiled = true;
// functional template
if (isFunctionalTemplate) {
options.functional = true;
}
}
// scopedId
if (scopeId) {
options._scopeId = scopeId;
}
let hook;
if (moduleIdentifier) {
// server build
hook = function (context) {
// 2.3 injection
context =
context || // cached call
(this.$vnode && this.$vnode.ssrContext) || // stateful
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
context = __VUE_SSR_CONTEXT__;
}
// inject component styles
if (style) {
style.call(this, createInjectorSSR(context));
}
// register component module identifier for async chunk inference
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
};
// used by ssr in case component is cached and beforeCreate
// never gets called
options._ssrRegister = hook;
}
else if (style) {
hook = shadowMode
? function (context) {
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
}
: function (context) {
style.call(this, createInjector(context));
};
}
if (hook) {
if (options.functional) {
// register for functional component in vue file
const originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {
hook.call(context);
return originalRender(h, context);
};
}
else {
// inject component registration as beforeCreate hook
const existing = options.beforeCreate;
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
}
}
return script;
}
/* script */
const __vue_script__ = script;
/* template */
var __vue_render__ = function() {
var _vm = this;
var _h = _vm.$createElement;
var _c = _vm._self._c || _h;
return _c(
"svg",
{
attrs: {
width: "1em",
height: "1em",
viewBox: "0 0 24 24",
fill: "currentColor"
}
},
[
_c("path", {
attrs: {
d:
"M14.481,14.015c-0.238,0-0.393,0.021-0.483,0.042v3.089c0.091,0.021,0.237,0.021,0.371,0.021 c0.966,0.007,1.597-0.525,1.597-1.653C15.973,14.533,15.398,14.015,14.481,14.015z"
}
}),
_c("path", {
attrs: {
d:
"M14,2H6C4.896,2,4,2.896,4,4v16c0,1.104,0.896,2,2,2h12c1.104,0,2-0.896,2-2V8L14,2z M11.066,17.951 l-0.07-1.807c-0.021-0.567-0.042-1.254-0.042-1.94h-0.021c-0.147,0.603-0.344,1.274-0.525,1.828l-0.574,1.842H9l-0.504-1.828 c-0.154-0.553-0.315-1.226-0.428-1.842H8.055c-0.028,0.638-0.049,1.366-0.084,1.954l-0.084,1.793H6.899L7.2,13.23h1.422 l0.462,1.576c0.147,0.546,0.295,1.135,0.399,1.688h0.021c0.133-0.546,0.294-1.169,0.448-1.694l0.504-1.569h1.394l0.26,4.721H11.066 z M16.316,17.391C15.818,17.804,15.063,18,14.138,18c-0.553,0-0.945-0.035-1.212-0.07v-4.636c0.393-0.063,0.904-0.099,1.443-0.099 c0.896,0,1.478,0.161,1.933,0.505c0.49,0.364,0.799,0.945,0.799,1.778C17.101,16.382,16.771,17.006,16.316,17.391z M14,9 c-0.553,0-1,0-1,0V4l5,5H14z"
}
})
]
)
};
var __vue_staticRenderFns__ = [];
__vue_render__._withStripped = true;
/* style */
const __vue_inject_styles__ = undefined;
/* scoped */
const __vue_scope_id__ = undefined;
/* module identifier */
const __vue_module_identifier__ = undefined;
/* functional template */
const __vue_is_functional_template__ = false;
/* style inject */
/* style inject SSR */
/* style inject shadow dom */
const __vue_component__ = /*#__PURE__*/normalizeComponent(
{ render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
__vue_inject_styles__,
__vue_script__,
__vue_scope_id__,
__vue_is_functional_template__,
__vue_module_identifier__,
false,
undefined,
undefined,
undefined
);
export default __vue_component__;