我有一个Base
继承自[_WidgetBase, _TemplatedMixin]
. Base
工作正常。现在我Base
在另一个不起作用的类中继承了它
define([
"dojo/_base/declare", "dojo/parser", ...
], function(declare, parser, ...){
return declare("mc.widgets.Base", [_WidgetBase, _TemplatedMixin], {
templateString:
'<div class="mc-note-base">'+
'</div>',
constructor: function(argv){
var self = this.inherited(arguments);
return self;
},
data: function(){
},
postCreate: function(){
...
}
})
});
派生类
define([
"dojo/_base/declare", "mc/base/path", "mc/widgets/Base"
], function(declare, path, Base){
return declare("mc.widgets.Derived", [Base], {});
})
派生类抛出
错误:声明 mc.widgets.Derived:使用继承调用链式构造函数