UNPKG

winbox-ui-next

Version:

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

85 lines (84 loc) 3.09 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: "IconLarkColor", 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}-lark-color`, { [`${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: "M996.51 28.744 752.955 291.958a7.764 7.764 0 0 0-1.928 6.828 47.632 47.632 0 0 1-80.946 42.73L475.975 535.569l19.163 256.386 217.95 217.894L996.51 28.744z", fill: "#007FFF" }, null, -1); const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("path", { d: "M993.591 35.352 752.68 295.702a7.82 7.82 0 0 0-1.927 6.884 47.081 47.081 0 0 1-80.12 42.18L479.884 535.513a3.855 3.855 0 0 0-1.101 2.974l18.832 251.815 485.79-732.869 10.186-22.026z", fill: "#0069FF" }, null, -1); const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("path", { d: "m986.653 18.888-263.213 243.5a7.764 7.764 0 0 1-6.884 1.982 47.632 47.632 0 0 0-42.676 80.946L479.774 539.423l-256.33-19.273L5.494 302.255l981.16-283.367z", fill: "#00EED4" }, null, -1); const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("path", { d: "m980.045 21.806-260.46 240.912a7.764 7.764 0 0 1-6.773 1.927 47.081 47.081 0 0 0-42.18 80.12L479.829 535.514a3.855 3.855 0 0 1-3.028 1.101l-251.815-18.832L957.909 31.993l22.026-10.187z", fill: "#00D3B4" }, null, -1); const _hoisted_6 = [ _hoisted_2, _hoisted_3, _hoisted_4, _hoisted_5 ]; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return vue.openBlock(), vue.createElementBlock("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", class: vue.normalizeClass(_ctx.cls), style: vue.normalizeStyle(_ctx.innerStyle), "stroke-width": _ctx.strokeWidth, "stroke-linecap": _ctx.strokeLinecap, "stroke-linejoin": _ctx.strokeLinejoin }, _hoisted_6, 14, _hoisted_1); } var _IconLarkColor = /* @__PURE__ */ pluginVue_exportHelper(_sfc_main, [["render", _sfc_render]]); module.exports = _IconLarkColor;