未验证 提交 b7c055c8 编写于 作者: D duangavin123 提交者: Gitee

update zh-cn/third-party-cases/collapse-and-expand.md.

Signed-off-by: Nduangavin123 <duanxichao@huawei.com>
Signed-off-by: Nduangavin123 <duanxichao@huawei.com>
上级 a8543e3c
...@@ -182,7 +182,7 @@ interface IRowItem { ...@@ -182,7 +182,7 @@ interface IRowItem {
@Entry @Entry
@Component @Component
struct CollapseAndExpandDemo { struct CollapseAndExpandDemo {
Provide("flag") flag: boolean = false @Provide("flag") flag: boolean = false
private onFlagChange = () => { private onFlagChange = () => {
animateTo({ animateTo({
duration: 650, duration: 650,
...@@ -247,7 +247,7 @@ struct CollapseAndExpandDemo { ...@@ -247,7 +247,7 @@ struct CollapseAndExpandDemo {
@Component @Component
struct RowItem { struct RowItem {
private props: IRowItem; private props: IRowItem;
Consume("flag") flag: boolean @Consume("flag") flag: boolean
build() { build() {
Flex() { Flex() {
...@@ -286,7 +286,7 @@ struct RowItem { ...@@ -286,7 +286,7 @@ struct RowItem {
@Component @Component
struct CollapseAndExpand { struct CollapseAndExpand {
private items: IRowItem[] = []; private items: IRowItem[] = [];
Consume("flag") flag: boolean; @Consume("flag") flag: boolean;
build() { build() {
Column() { Column() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册