mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 08:42:43 +08:00
@@ -1857,6 +1857,7 @@ Invalid type of %s.%s
|
||||
|
||||
### 5509
|
||||
|
||||
<!-- DEPRECATED -->
|
||||
The 'type' attribute of '%s.%s' must be child class of cc.Asset, otherwise you should use 'url: %s' instead
|
||||
|
||||
### 5510
|
||||
|
||||
@@ -318,7 +318,6 @@ var ccclass = checkCtorArgument(function (ctor, name) {
|
||||
* @method property
|
||||
* @param {Object} [options] - an object with some property attributes
|
||||
* @param {Any} [options.type]
|
||||
* @param {Function} [options.url]
|
||||
* @param {Boolean|Function} [options.visible]
|
||||
* @param {String} [options.displayName]
|
||||
* @param {String} [options.tooltip]
|
||||
@@ -417,7 +416,7 @@ var ccclass = checkCtorArgument(function (ctor, name) {
|
||||
* }
|
||||
* });
|
||||
* @typescript
|
||||
* property(options?: {type?: any; url?: typeof cc.RawAsset; visible?: boolean|(() => boolean); displayName?: string; tooltip?: string; multiline?: boolean; readonly?: boolean; min?: number; max?: number; step?: number; range?: number[]; slide?: boolean; serializable?: boolean; formerlySerializedAs?: string; editorOnly?: boolean; override?: boolean; animatable?: boolean} | any[]|Function|cc.ValueType|number|string|boolean): Function
|
||||
* property(options?: {type?: any; visible?: boolean|(() => boolean); displayName?: string; tooltip?: string; multiline?: boolean; readonly?: boolean; min?: number; max?: number; step?: number; range?: number[]; slide?: boolean; serializable?: boolean; formerlySerializedAs?: string; editorOnly?: boolean; override?: boolean; animatable?: boolean} | any[]|Function|cc.ValueType|number|string|boolean): Function
|
||||
* property(_target: Object, _key: any, _desc?: any): void
|
||||
*/
|
||||
function property (ctorProtoOrOptions, propName, desc) {
|
||||
|
||||
Reference in New Issue
Block a user