曹睿
2025-04-21 1e5646aadae902d9f9043cc0d79395bf6b06a38c
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">
@@ -13,6 +13,10 @@
</template>
<script setup lang="ts">
defineProps({
  full: {
    type: Boolean,
    default: true,
  },
  title: String,
  hideAction: Boolean,
});
@@ -26,7 +30,6 @@
<style lang="scss" scoped>
.page {
  padding: 10px 0;
  margin: 0 10px;
  .title {
    position: relative;
    margin-left: 10px;