手写签名完成
这个提交包含在:
父节点
9426372d09
当前提交
c4f5536738
@ -39,3 +39,7 @@ export { XDialogController } from './src/main/ets/dialog/XDialogController'
|
||||
*/
|
||||
export { WindowHelper } from './src/main/ets/utils/WindowHelper'
|
||||
|
||||
/**
|
||||
* 自定义view
|
||||
*/
|
||||
export { LoadingView } from './src/main/ets/view/LoadingView'
|
||||
|
||||
@ -0,0 +1,30 @@
|
||||
@Preview
|
||||
@Component
|
||||
export struct LoadingView {
|
||||
@Link isLoading: boolean
|
||||
|
||||
@Builder
|
||||
doNothingBuilder() {
|
||||
}
|
||||
|
||||
@BuilderParam customBuilderParam: () => void = this.doNothingBuilder
|
||||
|
||||
build() {
|
||||
Stack() {
|
||||
this.customBuilderParam()
|
||||
Column() {
|
||||
LoadingProgress()
|
||||
.color(Color.White)
|
||||
.width(80).height(80)
|
||||
Text('努力加载中..')
|
||||
.fontSize(16)
|
||||
.fontColor(Color.White)
|
||||
}
|
||||
.visibility(this.isLoading ? Visibility.Visible : Visibility.None)
|
||||
.width('100%')
|
||||
.height('100%')
|
||||
.backgroundColor('#40000000')
|
||||
.justifyContent(FlexAlign.Center)
|
||||
}
|
||||
}
|
||||
}
|
||||
正在加载...
在新工单中引用
屏蔽一个用户