UNPKG

winbox-ui-next

Version:

We Design Vue 2.0: A Vue.js 3 UI Library

80 lines (79 loc) 2.72 kB
"use strict"; var vue = require("vue"); var globalConfig = require("../../_utils/global-config.js"); var is = require("../../_utils/is.js"); var pluginVue_exportHelper = require("../../_virtual/plugin-vue_export-helper"); const _sfc_main = vue.defineComponent({ name: "IconImageClose", props: { size: { type: [Number, String] }, strokeWidth: { type: Number, default: 4 }, strokeLinecap: { type: String, default: "butt", validator: (value) => { return ["butt", "round", "square"].includes(value); } }, strokeLinejoin: { type: String, default: "miter", validator: (value) => { return ["arcs", "bevel", "miter", "miter-clip", "round"].includes(value); } }, spin: Boolean }, setup(props) { const prefixCls = globalConfig.getPrefixCls("icon"); const cls = vue.computed(() => [prefixCls, `${prefixCls}-image-close`, { [`${prefixCls}-spin`]: props.spin }]); const innerStyle = vue.computed(() => { if (props.size) { return { fontSize: is.isNumber(props.size) ? `${props.size}px` : props.size }; } return void 0; }); return { cls, innerStyle }; } }); const _hoisted_1 = ["stroke-width", "stroke-linecap", "stroke-linejoin"]; const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("path", { d: "m24 33 9-8.5V27s-2 1-3.5 2.5C27.841 31.159 27 33 27 33h-3Zm0 0-3.5-4.5L17 33h7Zm17-7V9a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2v30a2 2 0 0 0 2 2h17M15 15h2v2h-2v-2Z" }, null, -1); const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M20.5 28.5 17 33h7l-3.5-4.5ZM33 24.5 24 33h3s.841-1.841 2.5-3.5C31 28 33 27 33 27v-2.5ZM15 15h2v2h-2zM46 38a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z", fill: "currentColor", stroke: "none" }, null, -1); const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", { d: "m34.088 34.088 3.916 3.916m0 0 3.916 3.916m-3.916-3.916 3.916-3.916m-3.916 3.916-3.916 3.916", stroke: "#fff" }, null, -1); const _hoisted_5 = [ _hoisted_2, _hoisted_3, _hoisted_4 ]; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("svg", { viewBox: "0 0 48 48", fill: "none", xmlns: "http://www.w3.org/2000/svg", stroke: "currentColor", class: vue.normalizeClass(_ctx.cls), style: vue.normalizeStyle(_ctx.innerStyle), "stroke-width": _ctx.strokeWidth, "stroke-linecap": _ctx.strokeLinecap, "stroke-linejoin": _ctx.strokeLinejoin }, _hoisted_5, 14, _hoisted_1); } var _IconImageClose = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["render", _sfc_render]]); module.exports = _IconImageClose;