如何让继承自cc.Button的可编辑字段不显示

shishaoguang
Thu, 23 Feb 2017 05:46:01 +0000

这样写报错
Can not declare KdToggle.interactable, it is already defined in the prototype of KdToggle
at Object.cc.errorID (/Applications/CocosCreator.app/Contents/Resources/engine/CCDebugger.js:332:22)
at defineProp (/Applications/CocosCreator.app/Contents/Resources/engine/cocos2d/core/platform/CCClass.js:132:20)
at declareProperties (/Applications/CocosCreator.app/Contents/Resources/engine/cocos2d/core/platform/CCClass.js:691:17)
at Object.CCClass [as Class] (/Applications/CocosCreator.app/Contents/Resources/engine/cocos2d/core/platform/CCClass.js:816:9)
at Object.require.KdToggle (assets/script/kdui/control/KdToggle.js:1)
at s (…/…/…/…/…/…/…/…/…/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/browser-pack/_prelude.js:1)
at e (…/…/…/…/…/…/…/…/…/Applications/CocosCreator.app/Contents/Resources/app.asar/node_modules/browser-pack/_prelude.js:1)
at file:///Users/shishaoguang/work/Kingdom/kingdom/client/kingdom/library/bundle.project.js?020:1:451

阅读整个主题