Browse Source

Pull request #3521: BI-125589 fix:this改坏了

Merge in VISUAL/fineui from ~TREECAT/fineui:es6 to es6

* commit '3252815d9d87ada4b62c5333b360a3ed532b4b6a':
  BI-125589 fix:this改坏了
es6
treecat-罗群 2 years ago
parent
commit
a9581e2999
  1. 6
      packages/fineui/package.json
  2. 2
      packages/fineui/src/case/loader/sort.list.js

6
packages/fineui/package.json

@ -47,11 +47,9 @@
"dependencies": { "dependencies": {
"@juggle/resize-observer": "^3.4.0", "@juggle/resize-observer": "^3.4.0",
"@popperjs/core": "2.11.6", "@popperjs/core": "2.11.6",
"jquery": "3.6.3", "jquery": "3.6.3"
"yargs": "17.6.2"
}, },
"devDependencies": { "devDependencies": {
"cross-env": "^7.0.3", "cross-env": "^7.0.3"
"@types/yargs": "17.0.13"
} }
} }

2
packages/fineui/src/case/loader/sort.list.js

@ -43,7 +43,7 @@ export class SortList extends Widget {
isDefaultInit: o.isDefaultInit, isDefaultInit: o.isDefaultInit,
el: o.el, el: o.el,
items: this._formatItems(o.items), items: this._formatItems(o.items),
itemsCreator(op, callback) { itemsCreator: (op, callback) => {
o.itemsCreator(op, items => { o.itemsCreator(op, items => {
callback(this._formatItems(items)); callback(this._formatItems(items));
}); });

Loading…
Cancel
Save