From 79210c2f29c65499e5ff8e4abc0c802b7b1c4065 Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期四, 24 四月 2025 16:43:07 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/yuanwang-mes-uniapp
---
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