mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-23 06:37:29 +08:00
Inline attributes semantics and tests
This commit is contained in:
19
cypress/fixtures/Entity1.js
Normal file
19
cypress/fixtures/Entity1.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import IEntity from "../../js/entity/IEntity.js"
|
||||
|
||||
export default class Entity1 extends IEntity {
|
||||
|
||||
static attributes = {
|
||||
a: {
|
||||
type: Number,
|
||||
},
|
||||
b: {
|
||||
type: Number,
|
||||
},
|
||||
}
|
||||
|
||||
constructor(values = {}) {
|
||||
values.a ??= 8
|
||||
values.b ??= 9
|
||||
super(values)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user