mirror of
https://gitee.com/dcloud/uni-preset-vue
synced 2026-04-22 00:00:04 +08:00
feat: 增加 TypeScript 默认模板
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<image class="logo" src="../../static/logo.png"></image>
|
||||
<view>
|
||||
<text class="title">{{title}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
export default Vue.extend({
|
||||
data() {
|
||||
return {
|
||||
title: 'Hello'
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.content {
|
||||
text-align: center;
|
||||
height: 400upx;
|
||||
}
|
||||
.logo{
|
||||
height: 200upx;
|
||||
width: 200upx;
|
||||
margin-top: 200upx;
|
||||
}
|
||||
.title {
|
||||
font-size: 36upx;
|
||||
color: #8f8f94;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user