uni-ui 整合
This commit is contained in:
parent
a06a017aa3
commit
645f8531ca
@ -57,6 +57,7 @@
|
|||||||
"@dcloudio/uni-mp-weixin": "3.0.0-4020920240930001",
|
"@dcloudio/uni-mp-weixin": "3.0.0-4020920240930001",
|
||||||
"@dcloudio/uni-mp-xhs": "3.0.0-4020920240930001",
|
"@dcloudio/uni-mp-xhs": "3.0.0-4020920240930001",
|
||||||
"@dcloudio/uni-quickapp-webview": "3.0.0-4020920240930001",
|
"@dcloudio/uni-quickapp-webview": "3.0.0-4020920240930001",
|
||||||
|
"@dcloudio/uni-ui": "^1.5.6",
|
||||||
"vue": "^3.4.21",
|
"vue": "^3.4.21",
|
||||||
"vue-i18n": "^9.1.9"
|
"vue-i18n": "^9.1.9"
|
||||||
},
|
},
|
||||||
@ -67,6 +68,8 @@
|
|||||||
"@dcloudio/uni-stacktracey": "3.0.0-4020920240930001",
|
"@dcloudio/uni-stacktracey": "3.0.0-4020920240930001",
|
||||||
"@dcloudio/vite-plugin-uni": "3.0.0-4020920240930001",
|
"@dcloudio/vite-plugin-uni": "3.0.0-4020920240930001",
|
||||||
"@vue/runtime-core": "^3.4.21",
|
"@vue/runtime-core": "^3.4.21",
|
||||||
|
"sass": "^1.79.5",
|
||||||
|
"sass-loader": "10.1.1",
|
||||||
"vite": "5.2.8"
|
"vite": "5.2.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
828
pnpm-lock.yaml
828
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,11 @@
|
|||||||
{
|
{
|
||||||
|
"easycom": {
|
||||||
|
"autoscan": true,
|
||||||
|
"custom": {
|
||||||
|
// uni-ui 规则如下配置
|
||||||
|
"^uni-(.*)": "@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue"
|
||||||
|
}
|
||||||
|
},
|
||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||||
{
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
|
@ -2,8 +2,9 @@
|
|||||||
<view>
|
<view>
|
||||||
页面内容
|
页面内容
|
||||||
</view>
|
</view>
|
||||||
|
<view class="warp">
|
||||||
<button @click="toTestPage">进入测试页面</button>
|
<button class="button" type="primary" @click="toTestPage">进入测试页面</button>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
@ -16,5 +17,10 @@ function toTestPage(){
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
.warp {
|
||||||
|
padding: 5rpx;
|
||||||
|
}
|
||||||
|
.button {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -2,6 +2,13 @@
|
|||||||
<view>
|
<view>
|
||||||
测试
|
测试
|
||||||
</view>
|
</view>
|
||||||
|
<uni-badge text="1"></uni-badge>
|
||||||
|
<uni-badge text="2" type="success"></uni-badge>
|
||||||
|
<uni-badge text="3" type="primary" :inverted="true"></uni-badge>
|
||||||
|
<uni-card>
|
||||||
|
<text>这是一个基础卡片示例,内容较少,此示例展示了一个没有任何属性不带阴影的卡片。</text>
|
||||||
|
</uni-card>
|
||||||
|
|
||||||
<button @tap="back">返回上一页</button>
|
<button @tap="back">返回上一页</button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@ import { defineConfig } from 'vite'
|
|||||||
import uni from '@dcloudio/vite-plugin-uni'
|
import uni from '@dcloudio/vite-plugin-uni'
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
build:{
|
||||||
|
|
||||||
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
uni(),
|
uni(),
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user