| | |
| | | :span-method="objectSpanMethod" |
| | | :header-cell-style="tableHeaderStyle" |
| | | v-adaptive="{ bottomOffset: bottomOffset, fixedHeight: fixedHeight }" |
| | | height="100px" |
| | | height="300px" |
| | | :class="[ |
| | | 'commonTable', |
| | | isGeneralSearch && !isEdit |
| | |
| | | return 'id' |
| | | } |
| | | }, |
| | | toolbarMaxLength: { |
| | | type: Number, |
| | | default: 5, |
| | | }, |
| | | // 表格型号:mini,medium,small |
| | | tableSize: { type: String, default: 'small' }, |
| | | // 数据请求方法 |
| | |
| | | return colList |
| | | }, |
| | | getToolBarBtn() { |
| | | return this.table.toolbar ? this.table.toolbar.slice(0, 5) : [] |
| | | return this.table.toolbar ? this.table.toolbar.slice(0, this.toolbarMaxLength) : [] |
| | | }, |
| | | getToolbarDown() { |
| | | return this.getToolBarBtn.length === 5 |
| | | ? this.table.toolbar.slice(5, this.table.toolbar.length) |
| | | return this.getToolBarBtn.length == this.toolbarMaxLength |
| | | ? this.table.toolbar.slice(this.toolbarMaxLength, this.table.toolbar.length) |
| | | : [] |
| | | }, |
| | | isRefreshBtn() { |