mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2025-04-05 21:41:53 +08:00
update default template
This commit is contained in:
parent
7ba2fa0653
commit
12cd8e2caf
5
template/default/App.vue
Normal file → Executable file
5
template/default/App.vue
Normal file → Executable file
@ -14,9 +14,4 @@
|
||||
|
||||
<style>
|
||||
/*每个页面公共css */
|
||||
|
||||
page,
|
||||
view {
|
||||
display: flex;/* uni-app默认使用flex布局。因为flex布局有利于跨更多平台,尤其是采用原生渲染的平台。如不了解flex布局,请参考http://www.w3.org/TR/css3-flexbox/。若不需要flex布局可删除本行*/
|
||||
}
|
||||
</style>
|
||||
|
0
template/default/main.js
Normal file → Executable file
0
template/default/main.js
Normal file → Executable file
4
template/default/manifest.json
Normal file → Executable file
4
template/default/manifest.json
Normal file → Executable file
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name" : "test-uni-app",
|
||||
"appid" : "__UNI__058126D",
|
||||
"name": "",
|
||||
"appid": "",
|
||||
"description": "",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": "100",
|
||||
|
0
template/default/pages.json
Normal file → Executable file
0
template/default/pages.json
Normal file → Executable file
24
template/default/pages/index/index.vue
Normal file → Executable file
24
template/default/pages/index/index.vue
Normal file → Executable file
@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<text class="title">{{title}}</text>
|
||||
<image class="logo" src="../../static/logo.png"></image>
|
||||
<view>
|
||||
<text class="title">{{title}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -9,18 +12,27 @@
|
||||
data() {
|
||||
return {
|
||||
title: 'Hello'
|
||||
};
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.content {
|
||||
flex: 1;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
height: 400upx;
|
||||
}
|
||||
|
||||
.logo{
|
||||
height: 200upx;
|
||||
width: 200upx;
|
||||
margin-top: 200upx;
|
||||
}
|
||||
.title {
|
||||
font-size: 36upx;
|
||||
color: #8f8f94;
|
||||
|
BIN
template/default/static/logo.png
Executable file
BIN
template/default/static/logo.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
Loading…
x
Reference in New Issue
Block a user