123456789101112131415161718192021222324252627282930313233 |
- <script>
- export default {
- onLaunch: function() {
- console.log('App Launch')
- },
- onShow: function() {
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- }
- }
- </script>
- <style lang="scss">
- /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
- @import "uview-ui/index.scss";
- page{
- background-color: #f7f7f7;
- }
- .overflow1{
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .overflow2{
- overflow : hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- }
- </style>
|