File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/setter/expression-setter Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @alilc/lowcode-engine-ext" ,
3- "version" : " 1.0.2-beta.1 " ,
3+ "version" : " 1.0.2-beta.2 " ,
44 "description" : " " ,
55 "files" : [
66 " dist" ,
Original file line number Diff line number Diff line change @@ -132,10 +132,19 @@ export default class ExpressionView extends PureComponent {
132132 const stateMap = schema . componentsTree [ 0 ] . state ;
133133 const dataSource = [ ] ;
134134
135+ const datasourceMap = schema . componentsTree [ 0 ] ?. dataSource ;
136+ const list = datasourceMap ?. list || [ ] ;
137+
135138 for ( const key in stateMap ) {
136139 dataSource . push ( `this.state.${ key } ` ) ;
137140 }
138141
142+ for ( const item of list ) {
143+ if ( item && item . id ) {
144+ dataSource . push ( `this.state.${ item . id } ` ) ;
145+ }
146+ }
147+
139148 return dataSource ;
140149 }
141150
You can’t perform that action at this time.
0 commit comments