From 006e8527857850dfd01371384afa532af5a001f7 Mon Sep 17 00:00:00 2001 From: zhengyiming <540361168@qq.com> Date: 星期三, 12 二月 2025 14:58:56 +0800 Subject: [PATCH] Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp --- apps/cMiniApp/src/components/Chunk/CellChunk.vue | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/apps/cMiniApp/src/components/Chunk/CellChunk.vue b/apps/cMiniApp/src/components/Chunk/CellChunk.vue new file mode 100644 index 0000000..138267f --- /dev/null +++ b/apps/cMiniApp/src/components/Chunk/CellChunk.vue @@ -0,0 +1,38 @@ +<template> + <div class="cell-chunk-wrapper"> + <div class="cell-title-wrapper"> + <slot name="title"> + <div :class="titleSize === 'normal' ? 'cell-title' : 'cell-title-large'">{{ title }}</div> + <slot name="title-right"></slot> + </slot> + </div> + <slot></slot> + </div> +</template> + +<script setup lang="ts"> +defineOptions({ + name: 'CellChunk', +}); + +type Props = { + title?: string; + titleSize?: 'large' | 'normal'; +}; + +const props = withDefaults(defineProps<Props>(), { + titleSize: 'normal', +}); +</script> + +<style lang="scss"> +@import '@/styles/common.scss'; + +.cell-chunk-wrapper { + margin-bottom: 20px; + + &:last-child { + margin-bottom: 0; + } +} +</style> -- Gitblit v1.9.1