linysProgressInfo.ets 813 B

123456789101112131415161718192021222324252627282930
  1. import { animation_default, click_effect_default } from '../hosts/bunch_of_defaults';
  2. import linysText from './texts/linysText';
  3. @Component
  4. struct linysProgressInfo {
  5. @Prop progress: string = "qwq";
  6. @Prop notification: ResourceStr = "The task desc.";
  7. build() {
  8. Row({ space: 10 }) {
  9. linysText({ text: this.notification, max_lines: 3 })
  10. .layoutWeight(1)
  11. linysText({ text: this.progress })
  12. } // Reindexing indicator
  13. .padding({
  14. left: 15,
  15. right: 15,
  16. top: 8,
  17. bottom: 8
  18. })
  19. .alignItems(VerticalAlign.Center)
  20. .borderRadius(12)
  21. .backgroundColor($r('sys.color.comp_background_tertiary'))
  22. .animation(animation_default())
  23. .clickEffect(click_effect_default())
  24. .constraintSize({ maxWidth: 500 })
  25. }
  26. }
  27. export default linysProgressInfo;