提交 51536987 编写于 作者: Y yamila

update shili1028

Signed-off-by: Nyamila <tianyu55@huawei.com>
上级 91ea7a7a
......@@ -73,3 +73,5 @@ struct AttrAnimationExample {
}
}
```
![animation](figures/animation.gif)
\ No newline at end of file
......@@ -30,10 +30,10 @@
**参数:**
| 参数名 | 参数类型 | 必填 | 参数描述 |
| ------- | ----------------------------------- | ---- | ------------- |
| label | [ResourceStr](ts-types.md#resourcestr) | 否 | 按钮文本内容。 |
| options | { type?: ButtonType, stateEffect?: boolean } | 否 | 见方法1参数说明。 |
| 参数名 | 参数类型 | 必填 | 参数描述 |
| ------- | ----------------------------------- | ---- | ------------- |
| label | [ResourceStr](ts-types.md#resourcestr) | 否 | 按钮文本内容。 |
| options | { type?: ButtonType, stateEffect?: boolean } | 否 | 见方法1参数说明。 |
## 属性
......@@ -89,9 +89,6 @@ struct ButtonExample {
Text('loading').fontSize(12).fontColor(0xffffff).margin({ left: 5, right: 12 })
}.alignItems(VerticalAlign.Center).width(90).height(40)
}.backgroundColor(0x317aff)
.onClick((event: ClickEvent) => {
AlertDialog.show({ message: 'The login is successful' })
})
Button('Disable', { type: ButtonType.Capsule, stateEffect: false }).opacity(0.4)
.backgroundColor(0x317aff).width(90)
......@@ -112,3 +109,4 @@ struct ButtonExample {
}
```
![button](figures/button.gif)
\ No newline at end of file
......@@ -162,3 +162,4 @@ struct AlphabetIndexerSample {
}
```
![alphabet](figures/alphabet.gif)
\ No newline at end of file
......@@ -180,3 +180,5 @@ struct SwiperExample {
}
}
```
![swiper](figures/swiper.gif)
\ No newline at end of file
......@@ -113,3 +113,4 @@ struct TabContentExample {
}
```
![tabContent](figures/tabContent.gif)
\ No newline at end of file
......@@ -88,3 +88,11 @@ struct AnimateToExample {
}
}
```
示意图:
![animation](figures/animation.PNG)
点击第一个按钮播放改变按钮大小的动画,点击第二个按钮播放按钮顺时针旋转90度的动画。
![animation1](figures/animation1.PNG)
\ No newline at end of file
......@@ -59,3 +59,5 @@ struct TransitionExample {
}
}
```
![animateTo](figures/animateTo.gif)
\ No newline at end of file
......@@ -53,3 +53,4 @@ struct pageBExample {
}
```
![shared](figures/shared.gif)
\ No newline at end of file
......@@ -105,4 +105,4 @@ struct FlexExample {
}
```
![flex](figures/flex.PNG)
......@@ -53,3 +53,4 @@ struct ClipAndMaskExample {
}
```
![clipAndMask](figures/clipAndMask.PNG)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册