UNPKG

hongluan-ui

Version:
78 lines (73 loc) 2.23 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); var vue = require('vue'); var useCustom = require('./use-custom.js'); var pluginVue_exportHelper = require('../../../_virtual/plugin-vue_export-helper.js'); const _sfc_main = vue.defineComponent({ name: "SystemAdd", props: { gradient: { type: Boolean }, borderWidth: { type: [Number, String], default: "" }, opacity: { type: [Number, String], default: "" }, startColor: { type: String, default: "" } }, setup() { const { CustomIcon } = useCustom.useCustomIcon("SystemAdd"); return { CustomIcon }; } }); function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return _ctx.CustomIcon ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.CustomIcon), { key: 0 })) : (vue.openBlock(), vue.createElementBlock("svg", { key: 1, viewBox: "0 0 22 22", version: "1.1", xmlns: "http://www.w3.org/2000/svg", class: "icon-system", name: "SystemAdd", style: vue.normalizeStyle({ "--stroke-width": _ctx.borderWidth, "--fill-opacity": _ctx.opacity }) }, [ _ctx.gradient ? (vue.openBlock(), vue.createElementBlock("defs", { key: 0 }, [ vue.createElementVNode("linearGradient", { id: "add", x1: "50%", y1: "0%", x2: "50%", y2: "100%", gradientUnits: "userSpaceOnUse" }, [ vue.createElementVNode("stop", { style: vue.normalizeStyle({ stopColor: _ctx.startColor ? _ctx.startColor : "var(--icon-start-color)" }), offset: "0%" }, null, 4), vue.createElementVNode("stop", { "stop-color": "currentColor", offset: "100%" }) ]) ])) : vue.createCommentVNode("v-if", true), vue.createElementVNode("g", { stroke: _ctx.gradient ? "url(#add)" : "currentColor" }, [ vue.createElementVNode("path", { d: "M4,11 L18,11 M11,4 L11,18" }) ], 8, ["stroke"]) ], 4)); } var SystemAdd = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render]]); exports["default"] = SystemAdd; //# sourceMappingURL=add.js.map