From 95b85a1942d41541025ec781f16b229108f75e65 Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期三, 02 七月 2025 09:38:00 +0800
Subject: [PATCH] feat: PDA添加增量更新
---
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