From bad46c697e3116e80d6427ee89a93553d2eded58 Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期二, 29 七月 2025 11:15:37 +0800
Subject: [PATCH] 修改扫码问题
---
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