From 36b71142347dc524e18fa24c5ffdffff0d02287a Mon Sep 17 00:00:00 2001 From: long <515897141@qq.com> Date: 星期二, 02 二月 2021 18:56:28 +0800 Subject: [PATCH] 优化列表、回到顶部组件、优化样式 --- src/pages/demo/index.vue | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pages/demo/index.vue b/src/pages/demo/index.vue index b10bcf5..91decb3 100644 --- a/src/pages/demo/index.vue +++ b/src/pages/demo/index.vue @@ -9,6 +9,7 @@ clearable size="small" style="width: 240px" + maxlength="50" @keyup.enter.native="reGetList" /> </el-form-item> @@ -33,7 +34,7 @@ </el-row> <!-- 鎿嶄綔鍖� 鈫戔啈鈫戔啈鈫戔啈鈫戔啈鈫戔啈 --> - <el-table :data="list"> + <el-table :data="list" max-height="500px" stripe> <el-table-column type="index" label="搴忓彿" align="center" width="60" /> <el-table-column label="瑙掕壊鍚嶇О" prop="name" align="center" min-width="120" /> <el-table-column label="鏄惁涓婃灦" prop="isUp" align="center" min-width="100"> @@ -47,7 +48,7 @@ </template> </el-table-column> <el-table-column label="鍒涘缓鏃堕棿" prop="createTime" align="center" min-width="160" /> - <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" min-width="100"> + <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width" width="120"> <template slot-scope="scope"> <el-button size="mini" @@ -66,10 +67,10 @@ </el-table> <!-- 鏂板&缂栬緫 --> - <el-dialog :title="dialogData.type=='add'?'鏂板鍖婚櫌绉戝':'缂栬緫鍖婚櫌绉戝'" width="500px" :visible.sync="dialogVisible" append-to-body :before-close="hideDialog"> + <el-dialog v-el-drag-dialog :title="dialogData.type=='add'?'鏂板鍖婚櫌绉戝':'缂栬緫鍖婚櫌绉戝'" width="500px" :visible.sync="dialogVisible" append-to-body :before-close="hideDialog"> <el-form ref="refDialog" :model="dialogData" label-width="110px" :rules="rules" size="small"> <el-form-item label="鍚嶇О" prop="name"> - <el-input v-model="dialogData.name" placeholder="璇疯緭鍏ュ悕绉�" /> + <el-input v-model="dialogData.name" placeholder="璇疯緭鍏ュ悕绉�" maxlength="50" /> </el-form-item> <el-form-item label="鏄惁涓婃灦" prop="isUp"> <el-switch -- Gitblit v1.8.0