13 行
321 B
Plaintext
13 行
321 B
Plaintext
@Builder
|
|
export function buildButton(params: ESObject) {
|
|
Button(params.text, { type: ButtonType.Normal, stateEffect: true })
|
|
.borderRadius(8)
|
|
.backgroundColor(0x317aff)
|
|
.width('100%')
|
|
.height('100%')
|
|
.onClick(() => {
|
|
params.onClick()
|
|
})
|
|
.attributeModifier(params.attributeUpdater)
|
|
}
|