Skip to content

Commit

Permalink
fix: 填充字段 默认值联动问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yxh01132861 committed Sep 20, 2023
1 parent 8c968d1 commit b802b91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default (options: AttributeSchemaOptions) => {
dependencies: ['aggregateMethod'],
fulfill: {
run:
"$form.setFieldState('fillColorField',state=>{ state.dataSource = $form.getFieldState( 'aggregateMethod' ,state => { return [{value:'count',label:'count'},{label:state.value,value:state.value}] } ) })",
"$form.setFieldState('fillColorField',state=>{ state.dataSource = $form.getFieldState( 'aggregateMethod' ,state => { return [{value:'count',label:'count'},{label:state.value,value:state.value}] } ),state.value = state.value === 'count' ? 'count' : undefined })",
},
},
],
Expand Down

0 comments on commit b802b91

Please sign in to comment.