mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 11:07:52 +08:00
fix: 修复 CRUD 多选模式表头初始 checkbox 展现错误 (#3747)
* fix: 修复 CRUD 多选模式表头初始 checkbox 展现错误 * 换一下实现方式
This commit is contained in:
parent
60d58d23eb
commit
efe4e6c885
@ -502,7 +502,10 @@ export function render(
|
||||
} as any;
|
||||
|
||||
if (options.enableAMISDebug) {
|
||||
enableDebug();
|
||||
// 因为里面还有 render
|
||||
setTimeout(() => {
|
||||
enableDebug();
|
||||
}, 10);
|
||||
}
|
||||
|
||||
store = RendererStore.create({}, options);
|
||||
|
@ -1662,7 +1662,7 @@ export default class Table extends React.Component<TableProps, object> {
|
||||
{store.rows.length && multiple ? (
|
||||
<Checkbox
|
||||
classPrefix={ns}
|
||||
partial={!store.allChecked}
|
||||
partial={store.someChecked && !store.allChecked}
|
||||
checked={store.someChecked}
|
||||
disabled={store.disabledHeadCheckbox}
|
||||
onChange={this.handleCheckAll}
|
||||
|
Loading…
Reference in New Issue
Block a user