Skip to content

Commit

Permalink
refactor: 统一修改组件目录名称
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Aug 20, 2024
1 parent 3c3210f commit 75db637
Show file tree
Hide file tree
Showing 321 changed files with 139 additions and 141 deletions.
66 changes: 33 additions & 33 deletions src/components/page-nav/page-nav.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<template>
<view class="nav-wrap">
<view class="nav-title">
<u--image :showLoading="true" src="https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png" width="70px"
<up-image :showLoading="true" src="https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png" width="70px"
height="70px" />
<view class="nav-info">
<view class="nav-info__title" @tap="jumpToWx">
<text class="nav-info__title__text">uview-plus3</text>
<!-- #ifdef MP-WEIXIN -->
<!-- uni-app不支持text内部的text组件的tap事件,所以放到外部响应tap -->
<text class="nav-info__title__jump">查看演示</text>
<!-- #endif -->
<view class="nav-info__title" @tap="jumpToWx">
<text class="nav-info__title__text">uview-plus</text>
<!-- #ifdef MP-WEIXIN -->
<!-- uni-app不支持text内部的text组件的tap事件,所以放到外部响应tap -->
<text class="nav-info__title__jump">查看演示</text>
<!-- #endif -->
</view>
<text class="nav-slogan">多平台快速开发的UI框架</text>
</view>
Expand All @@ -23,11 +23,11 @@
props: {
desc: String,
title: String,
},
data() {
return {
version: uni.$u.config.v
}
},
data() {
return {
version: uni.$u.config.v
}
},
methods: {
jumpToWx() {
Expand Down Expand Up @@ -63,31 +63,31 @@
}
.nav-info {
margin-left: 15px;
&__title {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
&__text {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
color: $u-main-color;
font-size: 25px;
font-weight: bold;
text-align: left;
}
margin-left: 15px;
&__title {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
flex-direction: row;
align-items: center;
&__text {
/* #ifndef APP-NVUE */
display: flex;
/* #endif */
color: $u-main-color;
font-size: 25px;
font-weight: bold;
text-align: left;
}
&__jump {
font-size: 12px;
color: $u-primary;
font-weight: normal;
margin-left: 20px;
}
}
}
}
Expand All @@ -110,4 +110,4 @@
color: $u-content-color;
line-height: 20px;
}
</style>
</style>
38 changes: 18 additions & 20 deletions src/pages.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
"easycom": {
// 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175
"custom": {
// "^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
// "^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
// "^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue",
"^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
"^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
"^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue"
// "^u-(.*)": "uview-plus/components/up-$1/up-$1.vue",
// "^up-(.*)": "uview-plus/components/up-$1/up-$1.vue",
// "^u-(.*)": "uview-plus/components/up-$1/up-$1.vue",
"^up-(.*)": "@/uni_modules/uview-plus/components/up-$1/up-$1.vue",
}
},
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
Expand Down Expand Up @@ -468,20 +466,20 @@
"style": {
"navigationBarTitleText": "复制"
}
},
{
"path" : "navbarMini/navbarMini",
"style" :
{
"navigationBarTitleText" : "迷你导航"
}
},
{
"path" : "box/box",
"style" :
{
"navigationBarTitleText" : "盒子"
}
},
{
"path" : "navbarMini/navbarMini",
"style" :
{
"navigationBarTitleText" : "迷你导航"
}
},
{
"path" : "box/box",
"style" :
{
"navigationBarTitleText" : "盒子"
}
}
]
},
Expand Down
Loading

0 comments on commit 75db637

Please sign in to comment.