未验证 提交 58df2a1e 编写于 作者: O openharmony_ci 提交者: Gitee

!12917 文档整改 挑单--12460

Merge pull request !12917 from wangshuainan1/cherry-pick-1672036600
...@@ -82,7 +82,7 @@ struct MyComponent { ...@@ -82,7 +82,7 @@ struct MyComponent {
## @Prop ## @Prop
@Prop与@State有相同的语义,但初始化方式不同。@Prop装饰的变量必须使用其父组件提供的@State变量进行初始化,允许组件内部修改@Prop变量,但变量的更改不会通知给父组件,即@Prop属于单向数据绑定。 @Prop与@State有相同的语义,但初始化方式不同。@Prop装饰的变量必须使用其父组件提供的@State变量进行初始化,允许组件内部修改@Prop变量,但变量的更改不会通知给父组件,父组件变量的更改会同步到@prop装饰的变量,即@Prop属于单向数据绑定。
@Prop状态数据具有以下特征: @Prop状态数据具有以下特征:
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
``` ```
@font-face { @font-face {
font-family: HWfont; font-family: font;
src: url('/common/HWfont.ttf'); src: url('/common/font.ttf');
} }
``` ```
...@@ -48,10 +48,10 @@ ...@@ -48,10 +48,10 @@
```css ```css
/*xxx.css*/ /*xxx.css*/
@font-face { @font-face {
font-family: HWfont; font-family: font;
src: url("/common/HWfont.ttf"); src: url("/common/font.ttf");
} }
.demo-text { .demo-text {
font-family: HWfont; font-family: font;
} }
``` ```
...@@ -88,6 +88,8 @@ onChange(event: (index: number) => void) ...@@ -88,6 +88,8 @@ onChange(event: (index: number) => void)
当前显示的子组件索引变化时触发该事件,返回值为当前显示的子组件的索引值。 当前显示的子组件索引变化时触发该事件,返回值为当前显示的子组件的索引值。
**说明**:Swiper组件结合LazyForEach使用时,不能在onChange事件里触发子页面UI的刷新。
**返回值:** **返回值:**
| 名称 | 类型 | 参数描述 | | 名称 | 类型 | 参数描述 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册