fix: configure openSize for table action is only immediately valid for one row (#3752)
* fix: opensize for table action is only immediately valid for that row * fix: opensize for table action is only immediately valid for that row
This commit is contained in:
		
							parent
							
								
									682c17cc63
								
							
						
					
					
						commit
						23c6e146e2
					
				@ -41,7 +41,7 @@ export const Action: ComposedAction = observer(
 | 
				
			|||||||
      title,
 | 
					      title,
 | 
				
			||||||
      onClick,
 | 
					      onClick,
 | 
				
			||||||
      style,
 | 
					      style,
 | 
				
			||||||
      openSize,
 | 
					      openSize: os,
 | 
				
			||||||
      disabled: propsDisabled,
 | 
					      disabled: propsDisabled,
 | 
				
			||||||
      actionCallback,
 | 
					      actionCallback,
 | 
				
			||||||
      /** 如果为 true 则说明该按钮是树表格的 Add child 按钮 */
 | 
					      /** 如果为 true 则说明该按钮是树表格的 Add child 按钮 */
 | 
				
			||||||
@ -62,6 +62,8 @@ export const Action: ComposedAction = observer(
 | 
				
			|||||||
    const record = useRecord();
 | 
					    const record = useRecord();
 | 
				
			||||||
    const designerProps = fieldSchema['x-designer-props'];
 | 
					    const designerProps = fieldSchema['x-designer-props'];
 | 
				
			||||||
    const openMode = fieldSchema?.['x-component-props']?.['openMode'];
 | 
					    const openMode = fieldSchema?.['x-component-props']?.['openMode'];
 | 
				
			||||||
 | 
					    const openSize = fieldSchema?.['x-component-props']?.['openSize'];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const disabled = form.disabled || field.disabled || field.data?.disabled || propsDisabled;
 | 
					    const disabled = form.disabled || field.disabled || field.data?.disabled || propsDisabled;
 | 
				
			||||||
    const linkageRules = fieldSchema?.['x-linkage-rules'] || [];
 | 
					    const linkageRules = fieldSchema?.['x-linkage-rules'] || [];
 | 
				
			||||||
    const { designable } = useDesignable();
 | 
					    const { designable } = useDesignable();
 | 
				
			||||||
@ -150,7 +152,6 @@ export const Action: ComposedAction = observer(
 | 
				
			|||||||
        </SortableItem>
 | 
					        </SortableItem>
 | 
				
			||||||
      );
 | 
					      );
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					 | 
				
			||||||
    const result = (
 | 
					    const result = (
 | 
				
			||||||
      <ActionContextProvider
 | 
					      <ActionContextProvider
 | 
				
			||||||
        button={renderButton()}
 | 
					        button={renderButton()}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user