| 12345678910111213141516171819202122232425262728293031 |
- import { YTHeader } from "basic"
- @Component
- export struct YTChat{
- @BuilderParam card?: () => void
- @BuilderParam cardTag?: () => void
- @BuilderParam chatTag?: () => void
- @BuilderParam chatInput?: () => void
- @BuilderParam backTop?: () => void
- title:string = ''
- cardDesc:string = ''
- chatInputTips:string = ''
- build() {
- Column(){
- YTHeader({title: this.title})
- Column() {
- this.card?.()
- Row(){
- this.chatInput?.()
- this.backTop?.()
- }
- this.chatTag?.()
- }
- .width('100%')
- .padding({left:18, right:18})
- }
- .height('100%')
- .width('100%')
- }
- }
|