汪钰 3 лет назад
Родитель
Сommit
8c939a0fc7
1 измененных файлов с 11 добавлено и 2 удалено
  1. 11 2
      src/components/header-title/index.vue

+ 11 - 2
src/components/header-title/index.vue

@@ -2,7 +2,7 @@
   <div class="divider">
     <div class="title">
       <div class="ele-bg-primary"></div>
-      <span>{{ title }}</span>
+      <span :style="{ 'font-size': size }">{{ title }}</span>
     </div>
     <div class="ele-bg-primary" style="width: 100%; height: 2px"></div>
   </div>
@@ -10,7 +10,16 @@
 
 <script>
   export default {
-    props: ['title']
+    props: {
+      title: {
+        typeof: String,
+        default: '信息'
+      },
+      size: {
+        typeof: String,
+        default: '16px'
+      }
+    }
   };
 </script>
 <style lang="scss" scoped>