| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import { a as useScopeId } from "./use-scope-id-0b5b8615.js";
- import { c as createNamespace, t as truthProp, B as BORDER_TOP_BOTTOM, w as withInstall } from "./index-487cde8c.js";
- import { d as defineComponent, c as createVNode, F as Fragment, m as mergeProps } from "./index-5e4623ce.js";
- const [name, bem] = createNamespace("cell-group");
- const cellGroupProps = {
- title: String,
- inset: Boolean,
- border: truthProp
- };
- var stdin_default = defineComponent({
- name,
- inheritAttrs: false,
- props: cellGroupProps,
- setup(props, {
- slots,
- attrs
- }) {
- const renderGroup = () => {
- var _a;
- return createVNode("div", mergeProps({
- "class": [bem({
- inset: props.inset
- }), {
- [BORDER_TOP_BOTTOM]: props.border && !props.inset
- }]
- }, attrs, useScopeId()), [(_a = slots.default) == null ? void 0 : _a.call(slots)]);
- };
- const renderTitle = () => createVNode("div", {
- "class": bem("title", {
- inset: props.inset
- })
- }, [slots.title ? slots.title() : props.title]);
- return () => {
- if (props.title || slots.title) {
- return createVNode(Fragment, null, [renderTitle(), renderGroup()]);
- }
- return renderGroup();
- };
- }
- });
- const CellGroup = withInstall(stdin_default);
- const index = "";
- export {
- CellGroup as C
- };
|