Open xianyinchen opened 1 year ago
3.6.3
web-mobile
set type function has logical expression
typescript code
@property({ visible: true }) set type(val: __private._cocos_ui_layout__Type) { super.type = val; } get type() { return super.type; }
javascript code
_createClass(test, [{ key: "type", get: function get() { return _Layout.prototype.type; }, set: function set(val) { this.type = val; } }]);
No response
import { __private, _decorator,, Layout, Node } from 'cc'; const { ccclass, property } = _decorator; @ccclass('test') export class test extends Layout { @property(Animation) anim: Animation = null!; @property({ visible: true, serializable: false }) set type(val: __private._cocos_ui_layout__Type) { super.type = val; } get type() { return super.type; } }
@PPpro
Cocos Creator version
3.6.3
System information
web-mobile
Issue description
set type function has logical expression
typescript code
javascript code
Relevant error log output
No response
Steps to reproduce
Minimal reproduction project
No response