提交 4bec9015 编写于 作者: S swx1239486

排查所有const定定义值是否成功编译

Signed-off-by: Nswx1239486 <songqinqin4@huawei.com>
上级 52dec5e5
...@@ -190,7 +190,7 @@ struct FlexibleCapabilitySample2 { ...@@ -190,7 +190,7 @@ struct FlexibleCapabilitySample2 {
@Entry @Entry
@Component @Component
struct EquipartitionCapabilitySample { struct EquipartitionCapabilitySample {
const list: number [] = [0, 1, 2, 3] readonly list: number [] = [0, 1, 2, 3]
@State rate: number = 0.6 @State rate: number = 0.6
// 底部滑块,可以通过拖拽滑块改变容器尺寸 // 底部滑块,可以通过拖拽滑块改变容器尺寸
...@@ -709,7 +709,7 @@ struct HiddenCapabilitySample { ...@@ -709,7 +709,7 @@ struct HiddenCapabilitySample {
@Component @Component
struct WrapCapabilitySample { struct WrapCapabilitySample {
@State rate: number = 0.7 @State rate: number = 0.7
const imageList: Resource [] = [ readonly imageList: Resource [] = [
$r('app.media.flexWrap1'), $r('app.media.flexWrap1'),
$r('app.media.flexWrap2'), $r('app.media.flexWrap2'),
$r('app.media.flexWrap3'), $r('app.media.flexWrap3'),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册