UNPKG

@matechat/core

Version:

前端智能化场景解决方案UI库,轻松构建你的AI应用。

98 lines (97 loc) 2.21 kB
import "./index.css"; import { defineComponent as u, createElementBlock as e, openBlock as o, normalizeClass as p, createElementVNode as d, createCommentVNode as c, renderSlot as g, toDisplayString as l, Fragment as m, renderList as f } from "vue"; const v = { logoImg: { type: String, default: "" }, title: { type: String, default: "" }, subTitle: { type: String, default: "" }, description: { type: Array, default: () => [] }, background: { type: String, default: "transparent" }, align: { type: String, default: "center" } }, y = { class: "mc-introduction-logo-container" }, _ = ["src", "alt"], k = { class: "mc-introduction-title" }, h = { key: 0, class: "mc-introduction-sub-title" }, I = { key: 1, class: "mc-introduction-description" }, S = /* @__PURE__ */ u({ __name: "Introduction", props: v, setup(n) { return (t, i) => (o(), e( "div", { class: p(["mc-introduction", [t.align, t.background]]) }, [ d("div", y, [ t.logoImg ? (o(), e("img", { key: 0, src: t.logoImg, alt: t.title }, null, 8, _)) : c("v-if", !0), d( "div", k, l(t.title), 1 /* TEXT */ ) ]), t.subTitle ? (o(), e( "div", h, l(t.subTitle), 1 /* TEXT */ )) : c("v-if", !0), t.description.length ? (o(), e("div", I, [ (o(!0), e( m, null, f(t.description, (r, s) => (o(), e( "div", { key: s }, l(r), 1 /* TEXT */ ))), 128 /* KEYED_FRAGMENT */ )) ])) : c("v-if", !0), g(t.$slots, "default", {}, void 0, !0) ], 2 /* CLASS */ )); } }), b = (n, t) => { const i = n.__vccOpts || n; for (const [r, s] of t) i[r] = s; return i; }, a = /* @__PURE__ */ b(S, [["__scopeId", "data-v-0c128c90"]]); a.install = (n) => { n.component("McIntroduction", a); }; export { a as McIntroduction };