项目搭建

This commit is contained in:
kron
2025-04-10 11:11:46 +08:00
commit fcb7ef0f35
18 changed files with 4354 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<script setup>
function handleClickGithub() {
if (typeof window !== 'undefined' && window.open) {
window.open('https://github.com/uni-helper/create-uni')
}
else {
uni.showToast({
icon: 'none',
title: '请使用浏览器打开',
})
}
}
</script>
<template>
<view class="footer" @click="handleClickGithub">
<image class="uni-helper-github__image" src="/static/github.svg" />
</view>
</template>
<style>
.footer{
position: absolute;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
color: #888;
}
.uni-helper-github__image {
display: inline-block;
height: 1em;
width: 1em;
}
</style>