File tree Expand file tree Collapse file tree
packages/materials/angular-opentiny-ng/src/meta/examples Expand file tree Collapse file tree Original file line number Diff line number Diff line change 221221 "title" : " 操作"
222222 }
223223 ],
224- "srcData" : [
225- {
226- "name" : " 李四" ,
227- "id" : " 2" ,
228- "sex" : " 女" ,
229- "department" : " 技术部" ,
230- "protocolStart" : " 2019-05-15" ,
231- "email" : " lisi@test.com"
232- },
233- {
234- "name" : " 王五" ,
235- "id" : " 3" ,
236- "sex" : " 男" ,
237- "department" : " 市场部" ,
238- "protocolStart" : " 2020-03-20" ,
239- "email" : " wangwu@test.com"
240- }
241- ],
224+ "srcData" : {
225+ "data" : [
226+ {
227+ "name" : " 李四" ,
228+ "id" : " 2" ,
229+ "sex" : " 女" ,
230+ "department" : " 技术部" ,
231+ "protocolStart" : " 2019-05-15" ,
232+ "email" : " lisi@test.com"
233+ },
234+ {
235+ "name" : " 王五" ,
236+ "id" : " 3" ,
237+ "sex" : " 男" ,
238+ "department" : " 市场部" ,
239+ "protocolStart" : " 2020-03-20" ,
240+ "email" : " wangwu@test.com"
241+ }
242+ ]
243+ },
242244 "displayedData" : []
243245 },
244246 "methods" : {
245247 "deleteRow" : {
246248 "type" : " JSFunction" ,
247- "value" : " function(row) { this.state.srcData = this.state.srcData.filter(item => item.id !== row.id) }"
249+ "value" : " function(row) { this.state.srcData.data = this.state.srcData.data .filter(item => item.id !== row.id) }"
248250 }
249251 },
250252 "dataSource" : {
You can’t perform that action at this time.
0 commit comments