hongluan-ui
Version:
Hongluan Component Library for Vue 3
78 lines (73 loc) • 2.47 kB
JavaScript
'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: "SystemMinimize",
props: {
gradient: {
type: Boolean
},
borderWidth: {
type: [Number, String],
default: ""
},
opacity: {
type: [Number, String],
default: ""
},
startColor: {
type: String,
default: ""
}
},
setup() {
const { CustomIcon } = useCustom.useCustomIcon("SystemMinimize");
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: "SystemMinimize",
style: vue.normalizeStyle({
"--stroke-width": _ctx.borderWidth,
"--fill-opacity": _ctx.opacity
})
}, [
_ctx.gradient ? (vue.openBlock(), vue.createElementBlock("defs", { key: 0 }, [
vue.createElementVNode("linearGradient", {
id: "minimize",
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(#minimize)" : "currentColor"
}, [
vue.createElementVNode("path", { d: "M7,2 L7,5 C7,6.1045695 6.1045695,7 5,7 L2,7 L2,7 M15,2 L15,5 C15,6.1045695 15.8954305,7 17,7 L20,7 L20,7 M7,20 L7,17 C7,15.8954305 6.1045695,15 5,15 L2,15 L2,15 M15,20 L15,17 C15,15.8954305 15.8954305,15 17,15 L20,15 L20,15" })
], 8, ["stroke"])
], 4));
}
var SystemMinimize = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["render", _sfc_render]]);
exports["default"] = SystemMinimize;
//# sourceMappingURL=minimize.js.map