UNPKG

hongluan-ui

Version:
74 lines (71 loc) 2.67 kB
import { defineComponent, openBlock, createBlock, resolveDynamicComponent, createElementBlock, normalizeStyle, createElementVNode, createCommentVNode } from 'vue'; import { useCustomIcon } from './use-custom.mjs'; import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs'; const _sfc_main = defineComponent({ name: "SystemWarning", props: { gradient: { type: Boolean }, borderWidth: { type: [Number, String], default: "" }, opacity: { type: [Number, String], default: "" }, startColor: { type: String, default: "" } }, setup() { const { CustomIcon } = useCustomIcon("SystemWarning"); return { CustomIcon }; } }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return _ctx.CustomIcon ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.CustomIcon), { key: 0 })) : (openBlock(), createElementBlock("svg", { key: 1, viewBox: "0 0 22 22", version: "1.1", xmlns: "http://www.w3.org/2000/svg", class: "icon-system", name: "SystemWarning", style: normalizeStyle({ "--stroke-width": _ctx.borderWidth, "--fill-opacity": _ctx.opacity }) }, [ _ctx.gradient ? (openBlock(), createElementBlock("defs", { key: 0 }, [ createElementVNode("linearGradient", { id: "warning", x1: "50%", y1: "0%", x2: "50%", y2: "100%", gradientUnits: "userSpaceOnUse" }, [ createElementVNode("stop", { style: normalizeStyle({ stopColor: _ctx.startColor ? _ctx.startColor : "var(--icon-start-color)" }), offset: "0%" }, null, 4), createElementVNode("stop", { "stop-color": "currentColor", offset: "100%" }) ]) ])) : createCommentVNode("v-if", true), createElementVNode("g", { stroke: _ctx.gradient ? "url(#warning)" : "currentColor" }, [ createElementVNode("path", { d: "M10.135496,2.98793701 L1.1413783,17.9928438 C0.857533791,18.4663823 1.01451889,19.0784556 1.49201433,19.3599479 C1.64751279,19.4516171 1.82506242,19.5 2.00596028,19.5 L19.9941956,19.5 C20.549686,19.5 21,19.0534178 21,18.5025307 C21,18.323132 20.9512128,18.1470537 20.8587776,17.9928438 L11.8646599,2.98793701 C11.5808154,2.51439857 10.9636274,2.35871441 10.486132,2.6402067 C10.3418221,2.72528002 10.2212802,2.84482302 10.135496,2.98793701 Z M11,9 L11,12 M11,15.5 L11.01,15.5" }) ], 8, ["stroke"]) ], 4)); } var SystemWarning = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { SystemWarning as default }; //# sourceMappingURL=warning.mjs.map