App.vue 626 B

123456789101112131415161718192021222324252627282930313233
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. },
  6. onShow: function() {
  7. console.log('App Show')
  8. },
  9. onHide: function() {
  10. console.log('App Hide')
  11. }
  12. }
  13. </script>
  14. <style lang="scss">
  15. /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
  16. @import "uview-ui/index.scss";
  17. page{
  18. background-color: #f7f7f7;
  19. }
  20. .overflow1{
  21. white-space: nowrap;
  22. overflow: hidden;
  23. text-overflow: ellipsis;
  24. }
  25. .overflow2{
  26. overflow : hidden;
  27. text-overflow: ellipsis;
  28. display: -webkit-box;
  29. -webkit-box-orient: vertical;
  30. -webkit-line-clamp: 2;
  31. }
  32. </style>