|
@@ -102,6 +102,23 @@ export default function () {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ _.each(newConfig.columns, c => {
|
|
|
|
+ const {renderer} = c
|
|
|
|
+ if (typeof renderer === 'string' && (
|
|
|
|
+ _.startsWith(renderer, "scope.") ||
|
|
|
|
+ _.startsWith(renderer, "system."))
|
|
|
|
+ ) {
|
|
|
|
+ if (newConfig.$initParent) {
|
|
|
|
+ // 在面板上的组件
|
|
|
|
+ const scope = newConfig.$initParent.lookupReferenceHolder().yvanScope;
|
|
|
|
+ if (scope) {
|
|
|
|
+ const rendererFn = lookupFn(scope, renderer)
|
|
|
|
+ c.renderer = rendererFn
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
this.superclass.constructor.call(this, newConfig)
|
|
this.superclass.constructor.call(this, newConfig)
|
|
},
|
|
},
|
|
|
|
|