@gyenno/nutui-taro
Version:
京东风格的轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)
49 lines (48 loc) • 2.84 kB
JavaScript
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, unref, normalizeStyle, createElementVNode } from "vue";
const g = ["aria-labelledby"], z = /* @__PURE__ */ createElementVNode("path", {
d: "M784 902.4c9.6 19.2 6.4 41.6-12.8 54.4-19.2 9.6-41.6 3.2-51.2-12.8-9.6-19.2-6.4-41.6 12.8-54.4 16-12.8 38.4-8 51.2 12.8zM550.4 984c0 22.4-16 38.4-38.4 38.4s-38.4-16-38.4-38.4v-24c0-22.4 19.2-38.4 41.6-38.4 19.2 0 35.2 16 38.4 38.4v25.6h-3.2zm-240-43.2c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-16-51.2l28.8-51.2c9.6-19.2 35.2-25.6 54.4-16s25.6 35.2 12.8 54.4l-25.6 48zM121.6 784c-19.2 9.6-41.6 3.2-54.4-16-9.6-19.2-6.4-41.6 12.8-54.4l76.8-44.8c19.2-9.6 41.6-3.2 54.4 16 9.6 19.2 3.2 41.6-16 54.4L121.6 784zM38.4 552C16 552 0 536 0 513.6s16-38.4 38.4-38.4H160c22.4 0 38.4 19.2 38.4 38.4 0 22.4-16 38.4-38.4 38.4H38.4zm44.8-241.6c-19.2-9.6-25.6-35.2-16-51.2 9.6-19.2 35.2-25.6 54.4-16L256 320c19.2 9.6 25.6 35.2 16 54.4s-35.2 25.6-54.4 16l-134.4-80zm160-185.6 92.8 160c9.6 19.2 35.2 25.6 54.4 12.8s25.6-35.2 12.8-54.4l-92.8-160C297.6 64 275.2 60.8 256 70.4c-16 12.8-22.4 33.6-12.8 54.4zM473.6 40c0-22.4 16-38.4 38.4-38.4s38.4 19.2 38.4 38.4v184c0 22.4-19.2 38.4-38.4 38.4-22.4 0-38.4-19.2-38.4-38.4V40zm240 43.2c9.6-19.2 35.2-25.6 54.4-16 19.2 9.6 25.6 35.2 16 51.2l-92.8 160c-9.6 19.2-35.2 25.6-54.4 16-19.2-9.6-25.6-35.2-12.8-54.4l89.6-156.8zm188.8 160-160 92.8c-19.2 9.6-25.6 35.2-16 54.4 12.8 19.2 35.2 25.6 54.4 12.8l160-92.8c19.2-9.6 25.6-35.2 12.8-54.4-9.6-16-32-25.6-51.2-12.8zM985.6 472c22.4 0 38.4 16 38.4 38.4s-16 38.4-38.4 38.4H800c-22.4 0-38.4-19.2-38.4-38.4 0-22.4 19.2-38.4 38.4-38.4h185.6z",
fill: "currentColor",
"fill-opacity": "0.9"
}, null, -1), y = [
z
], C = /* @__PURE__ */ defineComponent({
__name: "Loading",
props: {
class: { type: String, default: "" },
name: { type: String, default: "" },
color: { type: String, default: "" },
width: { type: [String, Number], default: "" },
height: { type: [String, Number], default: "" }
},
emits: ["click"],
setup(c, { emit: o }) {
const t = c, r = (e) => {
o("click", e);
}, l = (e) => {
if (e)
return isNaN(Number(e)) ? String(e) : e + "px";
}, i = computed(() => {
const e = "nut-icon";
return {
[t.class]: t.class,
[e]: true,
[e + "-" + t.name]: t.name
};
}), a = computed(() => {
const e = {};
return e.height = l(t.height), e.width = l(t.width), e.color = t.color, e;
});
return (e, _) => (openBlock(), createElementBlock("svg", {
class: normalizeClass(unref(i)),
style: normalizeStyle(unref(a)),
onClick: r,
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 1024 1024",
"aria-labelledby": c.name,
role: "presentation"
}, y, 14, g));
}
});
export {
C
};