feat: layout & index

This commit is contained in:
菲鸽 2024-01-27 21:03:25 +08:00
parent 3e90fbcb51
commit 3c7df48838
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,7 @@
<template> <template>
<view class="default-layout"> <view class="default-layout">
<slot /> <slot />
<view class="text-gray-400 m-auto mt-8">[default layout]</view>
</view> </view>
</template> </template>

View File

@ -17,16 +17,16 @@
</view> </view>
<view class="text-center text-4xl main-title-color mt-8">unibest</view> <view class="text-center text-4xl main-title-color mt-8">unibest</view>
<view class="text-center text-2xl mt-2 mb-8">最好用的 uniapp 开发模板</view> <view class="text-center text-2xl mt-2 mb-8">最好用的 uniapp 开发模板</view>
<view class="text-justify"> <view class="text-justify max-w-100 m-auto">
unibest 是由 uniapp + Vue3 + Ts + Vite4 + UnoCss + UniUI 驱动的跨端快速启动模板使用 VS Code unibest 是由 uniapp + Vue3 + Ts + Vite4 + UnoCss + UniUI 驱动的跨端快速启动模板使用 VS Code
开发具有代码提示自动格式化统一配置代码片段等功能同时内置了大量平时开发常用的基本组件开箱即用让你编写 开发具有代码提示自动格式化统一配置代码片段等功能同时内置了大量平时开发常用的基本组件开箱即用让你编写
uniapp 拥有 best 体验</view uniapp 拥有 best 体验</view
> >
<view class="text-blue mt-12 text-center"> 详细示例 参考 hello-unibest </view> <view class="text-blue mt-8 text-center"> 详细示例 参考 hello-unibest </view>
<view class="my-2 text-center">https://github.com/codercup/hello-unibest</view> <view class="my-2 text-center">https://github.com/codercup/hello-unibest</view>
<!-- #ifndef MP-WEIXIN --> <!-- #ifndef MP-WEIXIN -->
<!-- 微信使用复制按钮需要申请权限先去掉 --> <!-- 微信使用复制按钮需要申请权限先去掉 -->
<button @click="onCopy">复制 hello-unibest github地址</button> <button @click="onCopy" class="max-w-100 m-auto">复制 hello-unibest github地址</button>
<!-- #endif --> <!-- #endif -->
</view> </view>
</template> </template>
@ -34,6 +34,10 @@
<script lang="ts" setup> <script lang="ts" setup>
// //
const { safeAreaInsets } = uni.getSystemInfoSync() const { safeAreaInsets } = uni.getSystemInfoSync()
const author = ref('菲鸽')
console.log(author)
// #ifndef MP-WEIXIN // #ifndef MP-WEIXIN
const onCopy = () => { const onCopy = () => {
uni.setClipboardData({ uni.setClipboardData({