Procházet zdrojové kódy

弹窗标题文字大小自定义

lifanagju_citu před 10 měsíci
rodič
revize
864da81526
1 změnil soubory, kde provedl 6 přidání a 1 odebrání
  1. 6 1
      src/components/CtDialog/index.vue

+ 6 - 1
src/components/CtDialog/index.vue

@@ -11,7 +11,8 @@
   >
     <v-card max-height="90vh" class="d-flex flex-column">
       <v-card-title :class="{'drawer': props.showDrawer}">
-        <span class="text-h6 d-flex align-center justify-space-between">
+        <!-- text-h6  h5 -->
+        <span class="d-flex align-center justify-space-between" :class="[props.titleClass]">
           {{ props.title }}
           <v-btn
             icon
@@ -61,6 +62,10 @@ defineOptions({ name: 'components-ct-dialog' })
 const emits = defineEmits(['update:visible', 'close', 'submit'])
 
 const props = defineProps({
+  titleClass: {
+    type: String,
+    default: 'text-h5'
+  },
   bodyStyle: {
     type: String,
     default: ''