mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-13 23:37:30 +08:00
Inline attributes semantics and tests
This commit is contained in:
29
cypress/fixtures/Entity4.js
Normal file
29
cypress/fixtures/Entity4.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import Entity1 from "./Entity1.js"
|
||||
import Entity3 from "./Entity3.js"
|
||||
import IEntity from "../../js/entity/IEntity.js"
|
||||
|
||||
export default class Entity4 extends IEntity {
|
||||
|
||||
static attributes = {
|
||||
first: {
|
||||
type: Entity3,
|
||||
inlined: true,
|
||||
},
|
||||
second: {
|
||||
default: [new Entity1({ a: 1, b: 2 }), new Entity1({ a: 11, b: 22 })],
|
||||
inlined: true,
|
||||
},
|
||||
third: {
|
||||
type: [{
|
||||
type: Entity1,
|
||||
inlined: true,
|
||||
}],
|
||||
default: [new Entity1({ a: -1, b: -2 })],
|
||||
inlined: true,
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
this.cleanupAttributes(this.attributes)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user