style:table组件得修改
Showing
3 changed files
with
9 additions
and
6 deletions
| ... | @@ -24,7 +24,7 @@ | ... | @@ -24,7 +24,7 @@ |
| 24 | </lb-column> | 24 | </lb-column> |
| 25 | </el-table> | 25 | </el-table> |
| 26 | 26 | ||
| 27 | <el-table v-else ref="elTable" id="heightNumSetting" class="table-fixed" :row-style="{ height: '50px' }" | 27 | <el-table v-else ref="elTable" class="table-fixed heightNumSetting" :row-style="{ height: '50px' }" |
| 28 | :border='border' :row-class-name="tableRowClassName" :show-header='showHeader' @row-click="singleElection" v-bind="$attrs" | 28 | :border='border' :row-class-name="tableRowClassName" :show-header='showHeader' @row-click="singleElection" v-bind="$attrs" |
| 29 | :max-height="maxHeight" :height="tableHeight" v-on="$listeners" :data="data" style="width: 100%" | 29 | :max-height="maxHeight" :height="tableHeight" v-on="$listeners" :data="data" style="width: 100%" |
| 30 | :span-method="this.merge ? this.mergeMethod : this.spanMethod"> | 30 | :span-method="this.merge ? this.mergeMethod : this.spanMethod"> |
| ... | @@ -47,6 +47,7 @@ | ... | @@ -47,6 +47,7 @@ |
| 47 | </template> | 47 | </template> |
| 48 | 48 | ||
| 49 | <script> | 49 | <script> |
| 50 | import { log } from 'bpmn-js-token-simulation' | ||
| 50 | import LbColumn from './lb-column' | 51 | import LbColumn from './lb-column' |
| 51 | export default { | 52 | export default { |
| 52 | props: { | 53 | props: { |
| ... | @@ -185,9 +186,11 @@ | ... | @@ -185,9 +186,11 @@ |
| 185 | _this.tableHeight = window.innerHeight - _this.heightNum | 186 | _this.tableHeight = window.innerHeight - _this.heightNum |
| 186 | } | 187 | } |
| 187 | } else { | 188 | } else { |
| 188 | // this.tableHeight = this.heightNum | ||
| 189 | this.$nextTick(() => { | 189 | this.$nextTick(() => { |
| 190 | this.minHeight && (document.getElementById('heightNumSetting').style.minHeight = this.minHeight + 'px') | 190 | let arr = document.getElementsByClassName('heightNumSetting'); |
| 191 | [...arr].forEach(item => { | ||
| 192 | this.minHeight && (item.style.minHeight = this.minHeight + 'px') | ||
| 193 | }) | ||
| 191 | }) | 194 | }) |
| 192 | } | 195 | } |
| 193 | }, | 196 | }, | ... | ... |
| ... | @@ -5,7 +5,7 @@ | ... | @@ -5,7 +5,7 @@ |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <div> | 7 | <div> |
| 8 | <lb-table :column="column" :pagination="false" :key="key" :heightNumSetting="true" :minHeight="150" | 8 | <lb-table :column="column" :pagination="false" :key="key" :heightNumSetting="true" |
| 9 | :data="tableDataList"> | 9 | :data="tableDataList"> |
| 10 | </lb-table> | 10 | </lb-table> |
| 11 | <addQlr v-model="dialog" :details="details" :showButton="!isDisabled" @updateDetail="handleupdateDetail" /> | 11 | <addQlr v-model="dialog" :details="details" :showButton="!isDisabled" @updateDetail="handleupdateDetail" /> | ... | ... |
| 1 | <!-- | 1 | <!-- |
| 2 | * @Description: | 2 | * @Description: |
| 3 | * @Autor: renchao | 3 | * @Autor: renchao |
| 4 | * @LastEditTime: 2023-07-31 09:15:01 | 4 | * @LastEditTime: 2023-08-02 09:03:45 |
| 5 | --> | 5 | --> |
| 6 | <template> | 6 | <template> |
| 7 | <!-- 抵押权利信息查询 --> | 7 | <!-- 抵押权利信息查询 --> |
| ... | @@ -39,7 +39,7 @@ | ... | @@ -39,7 +39,7 @@ |
| 39 | <el-col :span="2" class="btnColRight"> | 39 | <el-col :span="2" class="btnColRight"> |
| 40 | <el-form-item> | 40 | <el-form-item> |
| 41 | <el-button type="primary" @click="handleSearch" :loading="loading">查询</el-button> | 41 | <el-button type="primary" @click="handleSearch" :loading="loading">查询</el-button> |
| 42 | <el-button type="primary" @click="resetForm(true)">重置</el-button> | 42 | <!-- <el-button type="primary" @click="resetForm(true)">重置</el-button> --> |
| 43 | </el-form-item> | 43 | </el-form-item> |
| 44 | </el-col> | 44 | </el-col> |
| 45 | </el-row> | 45 | </el-row> | ... | ... |
-
Please register or sign in to post a comment