未验证 提交 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 {
@Entry
@Component
struct CollapseAndExpandDemo {
Provide("flag") flag: boolean = false
@Provide("flag") flag: boolean = false
private onFlagChange = () => {
animateTo({
duration: 650,
......@@ -247,7 +247,7 @@ struct CollapseAndExpandDemo {
@Component
struct RowItem {
private props: IRowItem;
Consume("flag") flag: boolean
@Consume("flag") flag: boolean
build() {
Flex() {
......@@ -286,7 +286,7 @@ struct RowItem {
@Component
struct CollapseAndExpand {
private items: IRowItem[] = [];
Consume("flag") flag: boolean;
@Consume("flag") flag: boolean;
build() {
Column() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册