update 菜单功能样式

This commit is contained in:
2021-06-24 15:49:20 +08:00
parent fa229a3802
commit a828a62d20
5 changed files with 272 additions and 243 deletions

View File

@@ -277,7 +277,7 @@ export default class QueryTable extends Component {
const { loading, dataSource, type } = this.state
const { query, operator, columns } = this.props
const { query, operator, columns, expandable, expandedRowRender } = this.props
const attrs = {}
Object.keys(this.props).forEach(key => {
@@ -292,7 +292,7 @@ export default class QueryTable extends Component {
dataSource,
columns: (() => {
const c = []
if (type !== 'tree' && rowNumber) {
if (type !== 'tree' && rowNumber & !expandable & !expandedRowRender) {
c.push(rowNoColumn)
}
c.push(...(columns || []))