<el-table :row-style="rowStyle"> methods: { <!-- 返回为一个对象 --> rowStyle() { return { height: "20px" }; }, }