Skip to content

Commit

Permalink
修改查询form下拉框value值为布尔类型时标签值展示错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
monkey committed Aug 31, 2022
1 parent 6cb5932 commit e45741f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/sula/src/template-query-table/QueryTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,11 @@ export default class QueryTable extends React.Component<Props> {
const clientHeight = document.documentElement.clientHeight;
const outerHeight = window.screen.height;
let newHeight = 500;
let cancelHeight = window.top == window ? 142 : 62;
if (isFullScreen) {
newHeight = outerHeight - 142;
newHeight = outerHeight - cancelHeight;
} else {
newHeight = clientHeight - 142;
newHeight = clientHeight - cancelHeight;
}
this.setState({
sliderFormHeight: newHeight
Expand Down Expand Up @@ -513,7 +514,7 @@ export default class QueryTable extends React.Component<Props> {
}
//当筛选条件项存在
if (source) {
if (typeof(value) === 'number' || typeof(value) === 'string') {
if (typeof(value) === 'number' || typeof(value) === 'string' || typeof(value) === 'boolean') {
return this.getSourceName(source, value);
}
if (Array.isArray(value)) {
Expand Down

0 comments on commit e45741f

Please sign in to comment.