bonus-material-app/src/App.vue

50 lines
720 B
Vue
Raw Normal View History

2024-11-18 09:05:38 +08:00
<script>
export default {
onLaunch: function () {
console.log('App Launch')
},
onShow: function () {
console.log('App Show')
},
onHide: function () {
console.log('App Hide')
},
}
</script>
2024-11-19 12:15:43 +08:00
<style lang="scss">
2024-11-18 09:05:38 +08:00
/*每个页面公共css */
2024-11-19 12:15:43 +08:00
view,
navigator,
input,
scroll-view {
box-sizing: border-box;
}
button::after {
border: none;
}
swiper,
scroll-view {
flex: 1;
height: 100%;
overflow: hidden;
}
image {
width: 100%;
height: 100%;
vertical-align: middle;
}
// 两行省略
.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
}
2024-11-18 09:05:38 +08:00
</style>