“cb7d7186119020ce0a57a19cf22a206d4d2f9234”上不存在“...design/ops/git@gitcode.net:s920243400/PaddleDetection.git”
提交 66cadd8a 编写于 作者: Y yanjin1122

add effectcomponent doc

Signed-off-by: Nyanjin1122 <976819878@qq.com>
上级 fff75385
...@@ -39,38 +39,47 @@ struct Index { ...@@ -39,38 +39,47 @@ struct Index {
Stack() { Stack() {
Image("pages/test1.png") Image("pages/test1.png")
.autoResize(true) .autoResize(true)
Column(){ EffectComponent() {
Text("Normal text with backgroundBlurStyle") Column({ space: 20 }) {
.fontSize(30) Text("Normal text with backgroundBlurStyle")
.fontWeight(FontWeight.Bold) .textAlign(TextAlign.Center)
.backgroundBlurStyle(BlurStyle.Thin) .fontSize(16)
.borderRadius(30) .fontWeight(FontWeight.Medium)
.backgroundBlurStyle(BlurStyle.Thin)
EffectComponent() { .borderRadius(16)
Column() { .width('90%')
.height('48')
Text("Normal text without blur effect")
.fontSize(30) Text("Normal text without blur effect")
.fontWeight(FontWeight.Bold) .textAlign(TextAlign.Center)
.borderRadius(20) .fontSize(16)
.fontWeight(FontWeight.Medium)
Text("Normal text with useeffcet blur 1") .border({ width: 1 })
.useEffect(true) .borderRadius(16)
.fontSize(30) .width('90%')
.fontWeight(FontWeight.Bold) .height('48')
.borderRadius(20)
Text("Normal text with useeffcet blur 1")
Text("Normal text with useeffcet blur 2") .textAlign(TextAlign.Center)
.useEffect(true) .useEffect(true)
.fontSize(30) .fontSize(16)
.fontWeight(FontWeight.Bold) .fontWeight(FontWeight.Medium)
.borderRadius(40) .borderRadius(16)
} .width('90%')
.borderWidth(5) .height('48')
.borderColor(Color.Green)
Text("Normal text with useeffcet blur 2")
.textAlign(TextAlign.Center)
.useEffect(true)
.fontSize(16)
.fontWeight(FontWeight.Medium)
.borderRadius(16)
.width('90%')
.height('48')
} }
.backgroundBlurStyle(BlurStyle.Thin) .width('100%')
} }
.backgroundBlurStyle(BlurStyle.Thin)
} }
.backgroundColor(Color.Black) .backgroundColor(Color.Black)
.width('100%') .width('100%')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册