Преглед изворни кода

新增dialog自定义宽度

noob пре 3 година
родитељ
комит
71b76c41dc
1 измењених фајлова са 5 додато и 1 уклоњено
  1. 5 1
      src/pages/main/performance/components/dialog.vue

+ 5 - 1
src/pages/main/performance/components/dialog.vue

@@ -5,7 +5,7 @@
             :visible.sync="visible"
             :key="reload"
             :before-close="handleCancel"
-            width="700px"
+            :width="width"
         >
             <!-- 表格主体部分 -->
             <slot></slot>
@@ -35,6 +35,10 @@ export default {
             type: Number,
             default: 0,
         },
+        width: {
+            type: Number,
+            default: 500,
+        },
     },
     mounted() {
         console.log("我被初始化了");