From 1e5646aadae902d9f9043cc0d79395bf6b06a38c Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期一, 21 四月 2025 14:46:59 +0800
Subject: [PATCH] feat: 完成框架

---
 src/components/card-title/index.vue |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/components/card-title/index.vue b/src/components/card-title/index.vue
index 2430b16..c2ef243 100644
--- a/src/components/card-title/index.vue
+++ b/src/components/card-title/index.vue
@@ -1,6 +1,6 @@
 <template>
-  <view class="flex items-center justify-between page">
-    <view class="ml-3">
+  <view :class="['flex', 'items-center', 'justify-between', 'page', full ? 'mx-3' : '']">
+    <view>
       <text class="title">{{ title }}</text>
     </view>
     <view v-if="hideAction" class="flex justify-center">
@@ -8,10 +8,15 @@
         鏂板
       </wd-button>
     </view>
+    <slot v-else name="action"></slot>
   </view>
 </template>
 <script setup lang="ts">
 defineProps({
+  full: {
+    type: Boolean,
+    default: true,
+  },
   title: String,
   hideAction: Boolean,
 });
@@ -25,7 +30,6 @@
 <style lang="scss" scoped>
 .page {
   padding: 10px 0;
-  margin: 0 10px;
   .title {
     position: relative;
     margin-left: 10px;

--
Gitblit v1.9.3