测试运行环境

This commit is contained in:
EL 2025-12-18 18:11:37 +08:00
parent 83160e0a87
commit 3207e497c7
2 changed files with 11 additions and 47 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
unpackage

View File

@ -1,52 +1,15 @@
<template> <script setup>
<view class="content"> import { ref } from 'vue';
<image class="logo" src="/static/logo.png"></image>
<view class="text-area">
<text class="title">{{title}}</text>
</view>
</view>
</template>
<script> const a = ref("hello world")
export default {
data() {
return {
title: 'Hello'
}
},
onLoad() {
}, function change(){
methods: { a.value = "lsp"
}
}
}
</script> </script>
<style>
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.logo { <template>
height: 200rpx; {{ a }}
width: 200rpx; <button @click="change">测试</button>
margin-top: 200rpx; </template>
margin-left: auto;
margin-right: auto;
margin-bottom: 50rpx;
}
.text-area {
display: flex;
justify-content: center;
}
.title {
font-size: 36rpx;
color: #8f8f94;
}
</style>