UNPKG

@cqmcui/cqmcui

Version:

轻量级移动端 Vue2、Vue3 组件库(支持小程序开发)

47 lines (46 loc) 1.67 kB
import { computed, openBlock, createElementBlock, normalizeClass, renderSlot, toDisplayString, createCommentVNode, createElementVNode } from "vue"; import { c as createComponent } from "./component-81a4c1d0.js"; import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js"; import "../locale/lang"; const { componentName, create } = createComponent("cell-group"); const _sfc_main = create({ props: { title: { type: String, default: "" }, desc: { type: String, default: "" } }, setup() { const classes = computed(() => { const prefixCls = componentName; return { [prefixCls]: true }; }); return { classes }; } }); const _hoisted_1 = { key: 1, class: "cqmc-cell-group__title" }; const _hoisted_2 = { key: 3, class: "cqmc-cell-group__desc" }; const _hoisted_3 = { class: "cqmc-cell-group__wrap" }; function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return openBlock(), createElementBlock("view", { class: normalizeClass(_ctx.classes) }, [ _ctx.$slots.title ? renderSlot(_ctx.$slots, "title", { key: 0 }) : _ctx.title ? (openBlock(), createElementBlock("view", _hoisted_1, toDisplayString(_ctx.title), 1)) : createCommentVNode("", true), _ctx.$slots.desc ? renderSlot(_ctx.$slots, "desc", { key: 2 }) : _ctx.desc ? (openBlock(), createElementBlock("view", _hoisted_2, toDisplayString(_ctx.desc), 1)) : createCommentVNode("", true), createElementVNode("view", _hoisted_3, [ renderSlot(_ctx.$slots, "default") ]) ], 2); } const CellGroup = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); export { CellGroup as default };