@nextcloud/vue
Version:
Nextcloud vue components
19 lines (18 loc) • 793 B
JavaScript
import "../assets/index11.css";
import { sanitizeSVG as n } from "@skjnldsv/sanitize-svg";
import { n as e } from "../chunks/_plugin-vue2_normalizer-5b4c43a4.mjs";
const s = { name: "NcIconSvgWrapper", props: { svg: { type: String, default: "" }, name: { type: String, default: "" } }, data() {
return { cleanSvg: "" };
}, async beforeMount() {
await this.sanitizeSVG();
}, methods: { async sanitizeSVG() {
this.svg && (this.cleanSvg = await n(this.svg));
} } };
var i = function() {
var a = this, t = a._self._c;
return t("span", { staticClass: "icon-vue", attrs: { role: "img", "aria-hidden": !a.name, "aria-label": a.name }, domProps: { innerHTML: a._s(a.cleanSvg) } });
}, r = [], o = e(s, i, r, !1, null, "f1518988", null, null);
const m = o.exports;
export {
m as default
};