nomore.js 582 B

123456789101112131415161718192021222324252627282930
  1. //为了可重用性强,这里做了修改,和thorui.css里的略有不同
  2. Component({
  3. externalClasses: ['tui-nomore-class'],
  4. properties: {
  5. //是否可见
  6. visible: {
  7. type: Boolean,
  8. value: false
  9. },
  10. //当前页面背景颜色
  11. bgcolor: {
  12. type: String,
  13. value: "#fafafa"
  14. },
  15. //是否以圆点代替 "没有更多了"
  16. isDot: {
  17. type: Boolean,
  18. value: false
  19. },
  20. //isDot为false时生效
  21. text:{
  22. type:String,
  23. value:"没有更多了"
  24. }
  25. },
  26. data: {
  27. dotText:"●"
  28. },
  29. methods: {}
  30. })