mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-21 21:57:38 +08:00
Inline attributes semantics and tests
This commit is contained in:
36
cypress/fixtures/Entity2.js
Normal file
36
cypress/fixtures/Entity2.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import Entity1 from "./Entity1.js"
|
||||
import IEntity from "../../js/entity/IEntity"
|
||||
|
||||
export default class Entity2 extends IEntity {
|
||||
|
||||
static attributes = {
|
||||
someNumber: {
|
||||
default: 567,
|
||||
},
|
||||
someString: {
|
||||
default: "alpha",
|
||||
},
|
||||
someString2: {
|
||||
default: "beta",
|
||||
},
|
||||
someBoolean: {
|
||||
default: true,
|
||||
},
|
||||
someBoolean2: {
|
||||
default: false,
|
||||
},
|
||||
someObjectString: {
|
||||
default: new String("gamma"),
|
||||
},
|
||||
someArray: {
|
||||
default: [400, 500, 600, 700, 800],
|
||||
},
|
||||
someEntity: {
|
||||
type: Entity1,
|
||||
},
|
||||
}
|
||||
|
||||
static {
|
||||
this.cleanupAttributes(this.attributes)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user