Explorar o código

新增dialog自定义宽度

noob %!s(int64=3) %!d(string=hai) anos
pai
achega
71b76c41dc
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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("我被初始化了");