UNPKG

tyh-ui2

Version:

The next generation ui component library of tyh-ui is based on vue3 Version, fully embrace vue3.

100 lines (99 loc) 3.03 kB
import { defineComponent as m, openBlock as t, createElementBlock as i, createElementVNode as r, renderSlot as s, createCommentVNode as e, createBlock as n, unref as l, withCtx as d, toDisplayString as p } from "vue"; import { Props as h } from "./index2.js"; import "../../button/index.js"; import "../../list/index.js"; import "../../card/index.js"; import "../../tag/index.js"; import "../../link/index.js"; import "../../menu/index.js"; import "../../menu-item/index.js"; import "../../division/index.js"; import "../../icon/index.js"; import "../../crumbs/index.js"; import "../../crumbs-item/index.js"; import "../../input/index.js"; import "../../back-top/index.js"; import "../../skeleton/index.js"; import "../../alert/index.js"; import "../../rate/index.js"; import "../../image/index.js"; import "../../avatar/index.js"; import "../../aside/index.js"; import "../../container/index.js"; import "../../footer/index.js"; import "../../header/index.js"; import "../../main/index.js"; import "../../text/index.js"; import "../../table/index.js"; import "../../button-group/index.js"; import "../../calendar/index.js"; import "../../switch/index.js"; import "../../radio/index.js"; import "../../tree/index.js"; import "../../page-header/index.js"; import "../index.js"; import "../../textarea/index.js"; import "../../select/index.js"; import "../../option/index.js"; import "../../tagging/index.js"; import "../../drawer/index.js"; import "../../dialog/index.js"; import "../../message/src/index.js"; import "../../notification/src/index.js"; import a from "../../link/src/index.js"; const f = { class: "tyh-info" }, c = { class: "tyh-info-header" }, y = { class: "tyh-info-left" }, _ = { key: 0, class: "tyh-info-photo" }, u = { class: "tyh-info-data" }, k = { class: "tyh-info-userInfo" }, $ = { key: 1, class: "tyh-info-userInfo" }, v = { class: "tyh-info-describe" }, b = { key: 0, class: "tyh-info-right" }, I = { key: 0, class: "tyh-info-body" }, g = { key: 1, class: "tyh-info-footer" }, B = m({ name: "TyhInfo" }), uo = /* @__PURE__ */ m({ ...B, props: h, setup(C) { return (o, E) => (t(), i("div", f, [ r("div", c, [ r("div", y, [ o.$slots.photo ? (t(), i("div", _, [ s(o.$slots, "photo") ])) : e("", !0), r("div", u, [ o.linkUrl ? (t(), n(l(a), { key: 0, url: o.linkUrl }, { default: d(() => [ r("span", k, p(o.userInfo), 1) ]), _: 1 }, 8, ["url"])) : (t(), i("span", $, p(o.userInfo), 1)), r("span", v, p(o.describe), 1) ]) ]), o.$slots.right ? (t(), i("div", b, [ s(o.$slots, "right") ])) : e("", !0) ]), o.$slots.body ? (t(), i("div", I, [ s(o.$slots, "body") ])) : e("", !0), o.$slots.footer ? (t(), i("div", g, [ s(o.$slots, "footer") ])) : e("", !0) ])); } }); export { uo as default };