Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uview-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李晖
uview-ui
Commits
6da64e23
Commit
6da64e23
authored
Aug 25, 2020
by
wlxuqu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nvue样式调整
parent
a32cd0f6
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
37 additions
and
15 deletions
+37
-15
page-nav.vue
components/page-nav/page-nav.vue
+5
-3
manifest.json
manifest.json
+4
-0
index.nvue
pages/componentsC/test/index.nvue
+0
-0
components.nvue
pages/example/components.nvue
+0
-0
u-cell-group.vue
uview-ui/components/u-cell-group/u-cell-group.vue
+1
-0
u-cell-item.vue
uview-ui/components/u-cell-item/u-cell-item.vue
+2
-1
u-dropdown.vue
uview-ui/components/u-dropdown/u-dropdown.vue
+3
-3
u-icon.vue
uview-ui/components/u-icon/u-icon.vue
+5
-0
u-tabbar.vue
uview-ui/components/u-tabbar/u-tabbar.vue
+4
-3
common.scss
uview-ui/libs/css/common.scss
+6
-2
style.components.scss
uview-ui/libs/css/style.components.scss
+6
-2
vue.config.js
vue.config.js
+1
-1
No files found.
components/page-nav/page-nav.vue
View file @
6da64e23
...
...
@@ -46,6 +46,7 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"@/uview-ui/libs/css/style.components.scss"
;
.nav-wrap
{
padding
:
30rpx
;
position
:
relative
;
...
...
@@ -58,7 +59,8 @@
}
.nav-title
{
display
:
flex
;
@include
vue-flex
;
flex-direction
:
row
;
align-items
:
center
;
}
...
...
@@ -67,7 +69,7 @@
}
.nav-title__text
{
display
:
flex
;
@include
vue-
flex
;
color
:
$u-main-color
;
font-size
:
50rpx
;
font-weight
:
bold
;
...
...
manifest.json
View file @
6da64e23
...
...
@@ -6,6 +6,10 @@
"versionCode"
:
"100"
,
"transformPx"
:
false
,
"app-plus"
:
{
//
定义nvue页面的flex布局默认为row排列
"nvue "
:
{
"flex-direction"
:
"row"
},
//
APP-VUE分包,可提APP升启动速度,
2.7
.
12
开始支持,兼容微信小程序分包方案,默认关闭
"optimization"
:
{
"subPackages"
:
true
...
...
pages/componentsC/test/index.vue
→
pages/componentsC/test/index.
n
vue
View file @
6da64e23
File moved
pages/example/components.vue
→
pages/example/components.
n
vue
View file @
6da64e23
File moved
uview-ui/components/u-cell-group/u-cell-group.vue
View file @
6da64e23
...
...
@@ -65,5 +65,6 @@
.u-cell-item-box
{
background-color
:
#FFFFFF
;
flex-direction
:
center
;
}
</
style
>
uview-ui/components/u-cell-item/u-cell-item.vue
View file @
6da64e23
...
...
@@ -211,8 +211,9 @@ export default {
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-cell
{
@include
vue-flex
;
align-items
:
center
;
position
:
relative
;
display
:
flex
;
box-sizing
:
border-box
;
width
:
100%
;
padding
:
26rpx
32rpx
;
...
...
uview-ui/components/u-dropdown/u-dropdown.vue
View file @
6da64e23
...
...
@@ -181,14 +181,14 @@
width
:
100%
;
&
__menu
{
display
:
flex
;
@include
vue-
flex
;
position
:
relative
;
z-index
:
11
;
height
:
80rpx
;
&
__item
{
flex
:
1
;
display
:
flex
;
@include
vue-
flex
;
justify-content
:
center
;
align-items
:
center
;
...
...
@@ -201,7 +201,7 @@
margin-left
:
6rpx
;
transition
:
transform
.3s
;
align-items
:
center
;
display
:
flex
;
@include
vue-
flex
;
&
--rotate
{
transform
:
rotate
(
180deg
);
...
...
uview-ui/components/u-icon/u-icon.vue
View file @
6da64e23
...
...
@@ -203,7 +203,10 @@ export default {
@import
'../../iconfont.css'
;
.u-icon
{
/* #ifndef APP-NVUE */
display
:
inline-flex
;
/* #endif */
flex-direction
:
row
;
align-items
:
center
;
&
--left
{
...
...
@@ -251,8 +254,10 @@ export default {
}
&
__img
{
/* #ifndef APP-PLUS */
height
:
auto
;
will-change
:
transform
;
/* #endif */
}
&
__label
{
...
...
uview-ui/components/u-tabbar/u-tabbar.vue
View file @
6da64e23
...
...
@@ -230,6 +230,7 @@
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-fixed-placeholder
{
box-sizing
:
content-box
;
}
...
...
@@ -237,7 +238,7 @@
.u-tabbar
{
&
__content
{
display
:
flex
;
@include
vue-
flex
;
align-items
:
center
;
position
:
relative
;
position
:
fixed
;
...
...
@@ -277,7 +278,7 @@
&
__button
{
position
:
absolute
;
top
:
1
0
rpx
;
top
:
1
4
rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
...
...
@@ -287,7 +288,7 @@
font-size
:
26rpx
;
line-height
:
28rpx
;
position
:
absolute
;
bottom
:
1
2
rpx
;
bottom
:
1
4
rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
);
}
...
...
uview-ui/libs/css/common.scss
View file @
6da64e23
...
...
@@ -45,7 +45,7 @@ text {
/* #ifndef APP-NVUE */
display
:
flex
;
/* #endif */
flex-direction
:
row
;
flex-direction
:
row
!
important
;
align-items
:
center
;
}
...
...
@@ -169,4 +169,8 @@ text {
}
}
// 重置nvue的默认关于flex的样式
.u-reset-nvue
{
flex-direction
:
row
;
align-items
:
center
;
}
\ No newline at end of file
uview-ui/libs/css/style.components.scss
View file @
6da64e23
.demo
{
// 定义混入指令,用于在非nvue环境下的flex定义,因为nvue没有display属性,会报错
@mixin
vue-flex
(
$direction
:
row
)
{
/* #ifndef APP-NVUE */
display
:
flex
;
flex-direction
:
$direction
;
/* #endif */
}
\ No newline at end of file
vue.config.js
View file @
6da64e23
...
...
@@ -6,5 +6,5 @@ module.exports = {
disableHostCheck
:
true
}
},
//productionSourceMap: false
//productionSourceMap: false
,
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment