Skip to content

Commit

Permalink
增加图片模版
Browse files Browse the repository at this point in the history
  • Loading branch information
hulinNeil committed Aug 28, 2018
1 parent e04c00e commit b7c2b80
Show file tree
Hide file tree
Showing 23 changed files with 1,484 additions and 0 deletions.
31 changes: 31 additions & 0 deletions examples/image-template/App.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<script>
export default {
onLaunch: function () {
console.log('App Launch')
},
onShow: function () {
console.log('App Show')
},
onHide: function () {
console.log('App Hide')
}
}
</script>

<style>
@import './common/common.css';
page,
view {
display: flex;
/* uni-app默认使用flex布局。因为flex布局有利于跨更多平台,尤其是采用原生渲染的平台。如不了解flex布局,请参考http://www.w3.org/TR/css3-flexbox/。若不需要flex布局可删除本行*/
}
page {
min-height: 100%;
}
page {
background-color: #EFEFEF;
}
</style>
4 changes: 4 additions & 0 deletions examples/image-template/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# UNI-APP 图片模板

## 运行方式
将项目拖入[HbuildX](http://www.dcloud.io/hbuilderx.html),直接运行即可
Loading

0 comments on commit b7c2b80

Please sign in to comment.