云消息服务 KooMessage
云消息服务 KooMessage
- 最新动态
- 功能总览
- 产品介绍
- 计费说明
- 快速入门
- 用户指南
- 最佳实践
- 开发指南
- API参考
- 常见问题
- 视频帮助
- 文档下载
- 通用参考
更新时间:2023-02-09 GMT+08:00
链接复制成功!
app-preview-button组件
HTML
<div> <p [style]="item.style" (click)="PreviewService.emit(item.event)" class="preview-element" > {{ item.text }} </p> </div>
CSS
.preview-element { display: flex; justify-content: center; align-items: center; &.XiaoMi { color: rgb(0, 0, 0) !important; background-color: rgb(255, 255, 255) !important; } &.VIVO { color: rgb(59, 158, 255) !important; background-color: initial !important; } }
JavaScript
// 引入PreviewService,用来触发事件 import { PreviewService } ;
父主题: 子组件代码示例