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
3b6d9a36
Commit
3b6d9a36
authored
Jun 19, 2020
by
wlxuqu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将全局样式,抽离给内部组件专用,避免暴露全局污染的样式
parent
4e77b883
Changes
90
Hide whitespace changes
Inline
Side-by-side
Showing
90 changed files
with
229 additions
and
54 deletions
+229
-54
index.vue
pages/componentsC/test/index.vue
+43
-19
u-action-sheet.vue
uview-ui/components/u-action-sheet/u-action-sheet.vue
+2
-0
u-alert-tips.vue
uview-ui/components/u-alert-tips/u-alert-tips.vue
+2
-0
u-avatar-cropper.vue
uview-ui/components/u-avatar-cropper/u-avatar-cropper.vue
+2
-0
u-avatar.vue
uview-ui/components/u-avatar/u-avatar.vue
+2
-0
u-back-top.vue
uview-ui/components/u-back-top/u-back-top.vue
+2
-0
u-badge.vue
uview-ui/components/u-badge/u-badge.vue
+2
-0
u-button.vue
uview-ui/components/u-button/u-button.vue
+1
-0
u-calendar.vue
uview-ui/components/u-calendar/u-calendar.vue
+2
-0
u-car-keyboard.vue
uview-ui/components/u-car-keyboard/u-car-keyboard.vue
+2
-0
u-card.vue
uview-ui/components/u-card/u-card.vue
+2
-0
u-cell-group.vue
uview-ui/components/u-cell-group/u-cell-group.vue
+2
-0
u-cell-item.vue
uview-ui/components/u-cell-item/u-cell-item.vue
+1
-0
u-checkbox-group.vue
uview-ui/components/u-checkbox-group/u-checkbox-group.vue
+2
-0
u-checkbox.vue
uview-ui/components/u-checkbox/u-checkbox.vue
+2
-0
u-circle-progress.vue
uview-ui/components/u-circle-progress/u-circle-progress.vue
+1
-0
u-col.vue
uview-ui/components/u-col/u-col.vue
+1
-0
u-collapse-item.vue
uview-ui/components/u-collapse-item/u-collapse-item.vue
+2
-0
u-collapse.vue
uview-ui/components/u-collapse/u-collapse.vue
+1
-1
u-column-notice.vue
uview-ui/components/u-column-notice/u-column-notice.vue
+2
-0
u-count-down.vue
uview-ui/components/u-count-down/u-count-down.vue
+2
-0
u-count-to.vue
uview-ui/components/u-count-to/u-count-to.vue
+2
-0
u-divider.vue
uview-ui/components/u-divider/u-divider.vue
+1
-0
u-dropdown-list.vue
uview-ui/components/u-dropdown-list/u-dropdown-list.vue
+1
-0
u-empty.vue
uview-ui/components/u-empty/u-empty.vue
+2
-0
u-field.vue
uview-ui/components/u-field/u-field.vue
+2
-0
u-form-item.vue
uview-ui/components/u-form-item/u-form-item.vue
+2
-0
u-form.vue
uview-ui/components/u-form/u-form.vue
+3
-1
u-full-screen.vue
uview-ui/components/u-full-screen/u-full-screen.vue
+2
-0
u-gap.vue
uview-ui/components/u-gap/u-gap.vue
+3
-1
u-grid-item.vue
uview-ui/components/u-grid-item/u-grid-item.vue
+2
-0
u-grid.vue
uview-ui/components/u-grid/u-grid.vue
+2
-0
u-icon.vue
uview-ui/components/u-icon/u-icon.vue
+1
-0
u-index-anchor.vue
uview-ui/components/u-index-anchor/u-index-anchor.vue
+2
-0
u-index-list.vue
uview-ui/components/u-index-list/u-index-list.vue
+2
-0
u-input.vue
uview-ui/components/u-input/u-input.vue
+0
-4
u-keyboard.vue
uview-ui/components/u-keyboard/u-keyboard.vue
+2
-0
u-lazy-load.vue
uview-ui/components/u-lazy-load/u-lazy-load.vue
+2
-0
u-line-progress.vue
uview-ui/components/u-line-progress/u-line-progress.vue
+2
-0
u-line.vue
uview-ui/components/u-line/u-line.vue
+2
-0
u-link.vue
uview-ui/components/u-link/u-link.vue
+2
-0
u-loading.vue
uview-ui/components/u-loading/u-loading.vue
+2
-0
u-loadmore.vue
uview-ui/components/u-loadmore/u-loadmore.vue
+2
-0
u-mask.vue
uview-ui/components/u-mask/u-mask.vue
+2
-0
u-message-input.vue
uview-ui/components/u-message-input/u-message-input.vue
+2
-0
u-modal.vue
uview-ui/components/u-modal/u-modal.vue
+3
-1
u-navbar.vue
uview-ui/components/u-navbar/u-navbar.vue
+2
-0
u-no-network.vue
uview-ui/components/u-no-network/u-no-network.vue
+2
-0
u-notice-bar.vue
uview-ui/components/u-notice-bar/u-notice-bar.vue
+2
-0
u-number-box.vue
uview-ui/components/u-number-box/u-number-box.vue
+2
-0
u-number-keyboard.vue
uview-ui/components/u-number-keyboard/u-number-keyboard.vue
+2
-0
u-picker.vue
uview-ui/components/u-picker/u-picker.vue
+2
-0
u-popup.vue
uview-ui/components/u-popup/u-popup.vue
+2
-0
u-radio-group.vue
uview-ui/components/u-radio-group/u-radio-group.vue
+2
-0
u-radio.vue
uview-ui/components/u-radio/u-radio.vue
+2
-0
u-rate.vue
uview-ui/components/u-rate/u-rate.vue
+2
-0
u-read-more.vue
uview-ui/components/u-read-more/u-read-more.vue
+2
-0
u-row-notice.vue
uview-ui/components/u-row-notice/u-row-notice.vue
+2
-0
u-row.vue
uview-ui/components/u-row/u-row.vue
+2
-0
u-search.vue
uview-ui/components/u-search/u-search.vue
+2
-0
u-section.vue
uview-ui/components/u-section/u-section.vue
+2
-0
u-select.vue
uview-ui/components/u-select/u-select.vue
+2
-0
u-skeleton.vue
uview-ui/components/u-skeleton/u-skeleton.vue
+2
-0
u-slider.vue
uview-ui/components/u-slider/u-slider.vue
+2
-0
u-steps.vue
uview-ui/components/u-steps/u-steps.vue
+2
-0
u-sticky.vue
uview-ui/components/u-sticky/u-sticky.vue
+2
-0
u-subsection.vue
uview-ui/components/u-subsection/u-subsection.vue
+2
-0
u-swipe-action.vue
uview-ui/components/u-swipe-action/u-swipe-action.vue
+2
-0
u-swiper.vue
uview-ui/components/u-swiper/u-swiper.vue
+4
-2
u-switch.vue
uview-ui/components/u-switch/u-switch.vue
+2
-0
u-table.vue
uview-ui/components/u-table/u-table.vue
+2
-0
u-tabs-swiper.vue
uview-ui/components/u-tabs-swiper/u-tabs-swiper.vue
+2
-0
u-tabs.vue
uview-ui/components/u-tabs/u-tabs.vue
+3
-1
u-tag.vue
uview-ui/components/u-tag/u-tag.vue
+2
-0
u-td.vue
uview-ui/components/u-td/u-td.vue
+2
-0
u-th.vue
uview-ui/components/u-th/u-th.vue
+2
-0
u-time-line-item.vue
uview-ui/components/u-time-line-item/u-time-line-item.vue
+2
-0
u-time-line.vue
uview-ui/components/u-time-line/u-time-line.vue
+2
-0
u-toast.vue
uview-ui/components/u-toast/u-toast.vue
+2
-0
u-top-tips.vue
uview-ui/components/u-top-tips/u-top-tips.vue
+2
-0
u-tr.vue
uview-ui/components/u-tr/u-tr.vue
+2
-0
u-upload.vue
uview-ui/components/u-upload/u-upload.vue
+2
-0
u-verification-code.vue
...ui/components/u-verification-code/u-verification-code.vue
+2
-0
u-waterfall.vue
uview-ui/components/u-waterfall/u-waterfall.vue
+2
-0
index.scss
uview-ui/index.scss
+1
-1
style.components.scss
uview-ui/libs/css/style.components.scss
+14
-0
style.h5.scss
uview-ui/libs/css/style.h5.scss
+7
-9
style.vue.scss
uview-ui/libs/css/style.vue.scss
+0
-12
queryParams.js
uview-ui/libs/function/queryParams.js
+1
-1
timeFormat.js
uview-ui/libs/function/timeFormat.js
+1
-1
No files found.
pages/componentsC/test/index.vue
View file @
3b6d9a36
<
template
>
<view>
</view>
<u-card
:title=
"title"
:sub-title=
"subTitle"
:thumb=
"thumb"
>
<view
class=
""
slot=
"body"
>
<view
class=
"u-body-item u-flex u-border-bottom u-col-between u-p-t-0"
>
<view
class=
"u-body-item-title u-line-2"
>
瓶身描绘的牡丹一如你初妆,冉冉檀香透过窗心事我了然,宣纸上走笔至此搁一半
</view>
<image
src=
"https://img11.360buyimg.com/n7/jfs/t1/94448/29/2734/524808/5dd4cc16E990dfb6b/59c256f85a8c3757.jpg"
mode=
"aspectFill"
></image>
</view>
<view
class=
"u-body-item u-flex u-row-between u-p-b-0"
>
<view
class=
"u-body-item-title u-line-2"
>
釉色渲染仕女图韵味被私藏,而你嫣然的一笑如含苞待放
</view>
<image
src=
"https://img12.360buyimg.com/n7/jfs/t1/102191/19/9072/330688/5e0af7cfE17698872/c91c00d713bf729a.jpg"
mode=
"aspectFill"
></image>
</view>
</view>
<view
class=
""
slot=
"foot"
><u-icon
name=
"chat-fill"
size=
"34"
color=
""
label=
"30评论"
></u-icon></view>
</u-card>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
list
:
[{
text
:
'
点赞
'
,
color
:
'
blue
'
,
fontSize
:
28
},
{
text
:
'
分享
'
},
{
text
:
'
评论
'
}],
show
:
false
}
}
export
default
{
data
()
{
return
{
title
:
'
素胚勾勒出青花,笔锋浓转淡
'
,
subTitle
:
'
2020-05-15
'
,
thumb
:
'
http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg
'
,
};
}
};
</
script
>
<
style
scoped
lang=
"scss"
>
.u-card-wrap
{
background-color
:
$u-bg-color
;
padding
:
1px
;
}
.u-body-item
{
font-size
:
32rpx
;
color
:
#333
;
padding
:
20rpx
10rpx
;
}
.u-body-item
image
{
width
:
120rpx
;
flex
:
0
0
120rpx
;
height
:
120rpx
;
border-radius
:
8rpx
;
margin-left
:
12rpx
;
}
</
script
>
\ No newline at end of file
</
style
>
\ No newline at end of file
uview-ui/components/u-action-sheet/u-action-sheet.vue
View file @
3b6d9a36
...
...
@@ -142,6 +142,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-tips
{
font-size
:
26rpx
;
text-align
:
center
;
...
...
uview-ui/components/u-alert-tips/u-alert-tips.vue
View file @
3b6d9a36
...
...
@@ -128,6 +128,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-alert-tips
{
display
:
flex
;
align-items
:
center
;
...
...
uview-ui/components/u-avatar-cropper/u-avatar-cropper.vue
View file @
3b6d9a36
...
...
@@ -225,6 +225,8 @@ export default {
</
script
>
<
style
scoped
>
@import
'../../libs/css/style.components.scss'
;
.content
{
background
:
rgba
(
255
,
255
,
255
,
1
);
}
...
...
uview-ui/components/u-avatar/u-avatar.vue
View file @
3b6d9a36
...
...
@@ -103,6 +103,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-avatar
{
display
:
inline-flex
;
align-items
:
center
;
...
...
uview-ui/components/u-back-top/u-back-top.vue
View file @
3b6d9a36
...
...
@@ -123,6 +123,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-back-top
{
width
:
80rpx
;
height
:
80rpx
;
...
...
uview-ui/components/u-badge/u-badge.vue
View file @
3b6d9a36
...
...
@@ -137,6 +137,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-badge-box
{
display
:
inline-flex
;
justify-content
:
center
;
...
...
uview-ui/components/u-button/u-button.vue
View file @
3b6d9a36
...
...
@@ -350,6 +350,7 @@ export default {
</
script
>
<
style
scoped
lang=
"scss"
>
@import
'../../libs/css/style.components.scss'
;
.
u-btn
:
:
after
{
border
:
none
;
}
...
...
uview-ui/components/u-calendar/u-calendar.vue
View file @
3b6d9a36
...
...
@@ -456,6 +456,8 @@
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-calendar
{
color
:
$u-content-color
;
...
...
uview-ui/components/u-car-keyboard/u-car-keyboard.vue
View file @
3b6d9a36
...
...
@@ -165,6 +165,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-keyboard-grids
{
background
:
rgb
(
215
,
215
,
217
);
padding
:
24rpx
0
;
...
...
uview-ui/components/u-card/u-card.vue
View file @
3b6d9a36
...
...
@@ -242,6 +242,8 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-card
{
position
:
relative
;
overflow
:
hidden
;
...
...
uview-ui/components/u-cell-group/u-cell-group.vue
View file @
3b6d9a36
...
...
@@ -55,6 +55,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-cell-box
{
width
:
100%
;
}
...
...
uview-ui/components/u-cell-item/u-cell-item.vue
View file @
3b6d9a36
...
...
@@ -207,6 +207,7 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-cell
{
position
:
relative
;
display
:
flex
;
...
...
uview-ui/components/u-checkbox-group/u-checkbox-group.vue
View file @
3b6d9a36
...
...
@@ -97,6 +97,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-checkbox-group
{
/* #ifndef MP */
display
:
inline-flex
;
...
...
uview-ui/components/u-checkbox/u-checkbox.vue
View file @
3b6d9a36
...
...
@@ -198,6 +198,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-checkbox
{
display
:
-
webkit-flex
;
display
:
flex
;
...
...
uview-ui/components/u-circle-progress/u-circle-progress.vue
View file @
3b6d9a36
...
...
@@ -197,6 +197,7 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-circle-progress
{
position
:
relative
;
display
:
inline-flex
;
...
...
uview-ui/components/u-col/u-col.vue
View file @
3b6d9a36
...
...
@@ -38,6 +38,7 @@
</
script
>
<
style
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-col
{
/* #ifdef MP-WEIXIN */
float
:
left
;
...
...
uview-ui/components/u-collapse-item/u-collapse-item.vue
View file @
3b6d9a36
...
...
@@ -159,6 +159,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-collapse-head
{
position
:
relative
;
display
:
flex
;
...
...
uview-ui/components/u-collapse/u-collapse.vue
View file @
3b6d9a36
...
...
@@ -94,5 +94,5 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
</
style
>
uview-ui/components/u-column-notice/u-column-notice.vue
View file @
3b6d9a36
...
...
@@ -180,6 +180,8 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-notice-bar
{
width
:
100%
;
display
:
flex
;
...
...
uview-ui/components/u-count-down/u-count-down.vue
View file @
3b6d9a36
...
...
@@ -262,6 +262,8 @@ export default {
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-countdown
{
display
:
inline-flex
;
align-items
:
center
;
...
...
uview-ui/components/u-count-to/u-count-to.vue
View file @
3b6d9a36
...
...
@@ -230,6 +230,8 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-count-num
{
display
:
inline-block
;
text-align
:
center
;
...
...
uview-ui/components/u-divider/u-divider.vue
View file @
3b6d9a36
...
...
@@ -106,6 +106,7 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-divider
{
width
:
100%
;
position
:
relative
;
...
...
uview-ui/components/u-dropdown-list/u-dropdown-list.vue
View file @
3b6d9a36
...
...
@@ -187,6 +187,7 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.dropdown-list-wapper
{
position
:
relative
;
}
...
...
uview-ui/components/u-empty/u-empty.vue
View file @
3b6d9a36
...
...
@@ -95,6 +95,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-empty
{
display
:
flex
;
flex-direction
:
column
;
...
...
uview-ui/components/u-field/u-field.vue
View file @
3b6d9a36
...
...
@@ -255,6 +255,8 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-field
{
font-size
:
28rpx
;
padding
:
20rpx
28rpx
;
...
...
uview-ui/components/u-form-item/u-form-item.vue
View file @
3b6d9a36
...
...
@@ -270,6 +270,8 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-form-item
{
display
:
flex
;
// align-items: flex-start;
...
...
uview-ui/components/u-form/u-form.vue
View file @
3b6d9a36
...
...
@@ -102,4 +102,6 @@ export default {
};
</
script
>
<
style
></
style
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
</
style
>
uview-ui/components/u-full-screen/u-full-screen.vue
View file @
3b6d9a36
...
...
@@ -37,6 +37,8 @@
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-full-content
{
background-color
:
#00C777
;
}
...
...
uview-ui/components/u-gap/u-gap.vue
View file @
3b6d9a36
...
...
@@ -49,4 +49,6 @@ export default {
};
</
script
>
<
style
></
style
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
</
style
>
uview-ui/components/u-grid-item/u-grid-item.vue
View file @
3b6d9a36
...
...
@@ -69,6 +69,8 @@
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-grid-item
{
box-sizing
:
border-box
;
background
:
#fff
;
...
...
uview-ui/components/u-grid/u-grid.vue
View file @
3b6d9a36
...
...
@@ -76,6 +76,8 @@ export default {
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-grid
{
width
:
100%
;
/* #ifdef MP */
...
...
uview-ui/components/u-icon/u-icon.vue
View file @
3b6d9a36
...
...
@@ -160,6 +160,7 @@ export default {
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
@import
'../../iconfont.css'
;
.u-icon
{
...
...
uview-ui/components/u-index-anchor/u-index-anchor.vue
View file @
3b6d9a36
...
...
@@ -59,6 +59,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-index-anchor
{
box-sizing
:
border-box
;
padding
:
14rpx
24rpx
;
...
...
uview-ui/components/u-index-list/u-index-list.vue
View file @
3b6d9a36
...
...
@@ -269,6 +269,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-index-bar
{
position
:
relative
}
...
...
uview-ui/components/u-input/u-input.vue
View file @
3b6d9a36
...
...
@@ -78,10 +78,6 @@ export default {
type
:
String
,
default
:
'
text
'
},
clearable
:
{
type
:
Boolean
,
default
:
true
},
inputAlign
:
{
type
:
String
,
default
:
'
left
'
...
...
uview-ui/components/u-keyboard/u-keyboard.vue
View file @
3b6d9a36
...
...
@@ -159,6 +159,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-keyboard
{
position
:
relative
;
z-index
:
1003
;
...
...
uview-ui/components/u-lazy-load/u-lazy-load.vue
View file @
3b6d9a36
...
...
@@ -209,6 +209,8 @@
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-wrap
{
background-color
:
#eee
;
overflow
:
hidden
;
...
...
uview-ui/components/u-line-progress/u-line-progress.vue
View file @
3b6d9a36
...
...
@@ -94,6 +94,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-progress
{
overflow
:
hidden
;
height
:
15px
;
...
...
uview-ui/components/u-line/u-line.vue
View file @
3b6d9a36
...
...
@@ -76,6 +76,8 @@
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-line
{
vertical-align
:
middle
;
}
...
...
uview-ui/components/u-link/u-link.vue
View file @
3b6d9a36
...
...
@@ -81,6 +81,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-link
{
line-height
:
1
;
}
...
...
uview-ui/components/u-loading/u-loading.vue
View file @
3b6d9a36
...
...
@@ -52,6 +52,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-loading-circle
{
display
:
inline-block
;
vertical-align
:
middle
;
...
...
uview-ui/components/u-loadmore/u-loadmore.vue
View file @
3b6d9a36
...
...
@@ -148,6 +148,8 @@
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-load-more-wrap
{
width
:
100%
;
display
:
flex
;
...
...
uview-ui/components/u-mask/u-mask.vue
View file @
3b6d9a36
...
...
@@ -100,6 +100,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-mask
{
position
:
fixed
;
top
:
0
;
...
...
uview-ui/components/u-message-input/u-message-input.vue
View file @
3b6d9a36
...
...
@@ -175,6 +175,8 @@
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
@keyframes
breathe
{
0
%
{
opacity
:
0
.3
;
...
...
uview-ui/components/u-modal/u-modal.vue
View file @
3b6d9a36
...
...
@@ -241,7 +241,9 @@ export default {
};
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.btn-hover
{
background-color
:
rgb
(
230
,
230
,
230
);
}
...
...
uview-ui/components/u-navbar/u-navbar.vue
View file @
3b6d9a36
...
...
@@ -219,6 +219,8 @@ export default {
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-navbar
{
width
:
100%
;
}
...
...
uview-ui/components/u-no-network/u-no-network.vue
View file @
3b6d9a36
...
...
@@ -177,6 +177,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-no-network
{
background-color
:
#fff
;
position
:
fixed
;
...
...
uview-ui/components/u-notice-bar/u-notice-bar.vue
View file @
3b6d9a36
...
...
@@ -215,6 +215,8 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-notice-bar-wrap
{
overflow
:
hidden
;
}
...
...
uview-ui/components/u-number-box/u-number-box.vue
View file @
3b6d9a36
...
...
@@ -243,6 +243,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-numberbox
{
display
:
inline-flex
;
align-items
:
center
;
...
...
uview-ui/components/u-number-keyboard/u-number-keyboard.vue
View file @
3b6d9a36
...
...
@@ -116,6 +116,8 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-keyboard
{
position
:
relative
;
z-index
:
1003
;
...
...
uview-ui/components/u-picker/u-picker.vue
View file @
3b6d9a36
...
...
@@ -541,6 +541,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-datetime-picker
{
position
:
relative
;
z-index
:
999
;
...
...
uview-ui/components/u-popup/u-popup.vue
View file @
3b6d9a36
...
...
@@ -283,6 +283,8 @@ export default {
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-drawer
{
/* #ifndef APP-NVUE */
display
:
block
;
...
...
uview-ui/components/u-radio-group/u-radio-group.vue
View file @
3b6d9a36
...
...
@@ -75,6 +75,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-radio-group
{
/* #ifndef MP */
display
:
inline-flex
;
...
...
uview-ui/components/u-radio/u-radio.vue
View file @
3b6d9a36
...
...
@@ -147,6 +147,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-radio
{
display
:
-
webkit-flex
;
display
:
flex
;
...
...
uview-ui/components/u-rate/u-rate.vue
View file @
3b6d9a36
...
...
@@ -178,6 +178,8 @@ export default {
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-rate
{
display
:
-
webkit-inline-flex
;
display
:
inline-flex
;
...
...
uview-ui/components/u-read-more/u-read-more.vue
View file @
3b6d9a36
...
...
@@ -121,6 +121,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-content
{
font-size
:
30rpx
;
color
:
$u-content-color
;
...
...
uview-ui/components/u-row-notice/u-row-notice.vue
View file @
3b6d9a36
...
...
@@ -200,6 +200,8 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-notice-bar
{
padding
:
18rpx
24rpx
;
overflow
:
hidden
;
...
...
uview-ui/components/u-row/u-row.vue
View file @
3b6d9a36
...
...
@@ -59,6 +59,8 @@
</
script
>
<
style
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-row
{
// 由于微信小程序编译后奇怪的页面结构,只能使用float布局实现,flex无法实现
/* #ifndef MP-WEIXIN */
...
...
uview-ui/components/u-search/u-search.vue
View file @
3b6d9a36
...
...
@@ -276,6 +276,8 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-search
{
display
:
flex
;
align-items
:
center
;
...
...
uview-ui/components/u-section/u-section.vue
View file @
3b6d9a36
...
...
@@ -93,6 +93,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-section
{
display
:
flex
;
justify-content
:
space-between
;
...
...
uview-ui/components/u-select/u-select.vue
View file @
3b6d9a36
...
...
@@ -292,6 +292,8 @@ export default {
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-select
{
&
__action
{
position
:
relative
;
...
...
uview-ui/components/u-skeleton/u-skeleton.vue
View file @
3b6d9a36
...
...
@@ -139,6 +139,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.skeleton-fade
{
width
:
100%
;
height
:
100%
;
...
...
uview-ui/components/u-slider/u-slider.vue
View file @
3b6d9a36
...
...
@@ -205,6 +205,8 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-slider
{
position
:
relative
;
border-radius
:
999px
;
...
...
uview-ui/components/u-steps/u-steps.vue
View file @
3b6d9a36
...
...
@@ -79,6 +79,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-steps
{
display
:
flex
;
}
...
...
uview-ui/components/u-sticky/u-sticky.vue
View file @
3b6d9a36
...
...
@@ -144,6 +144,8 @@
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-sticky
{
z-index
:
9999999999
;
}
...
...
uview-ui/components/u-subsection/u-subsection.vue
View file @
3b6d9a36
...
...
@@ -302,6 +302,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-subsection
{
display
:
flex
;
align-items
:
center
;
...
...
uview-ui/components/u-swipe-action/u-swipe-action.vue
View file @
3b6d9a36
...
...
@@ -218,6 +218,8 @@ export default {
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
.u-swipe-action
{
width
:
auto
;
height
:
initial
;
...
...
uview-ui/components/u-swiper/u-swiper.vue
View file @
3b6d9a36
...
...
@@ -7,8 +7,8 @@
:style=
"
{
height: height + 'rpx'
}">
<swiper-item
class=
"u-swiper-item"
v-for=
"(item, index) in list"
:key=
"index"
@
tap=
"listClick(index)"
>
<view
class=
"u-list-image-wrap"
:class=
"[current != index ? 'u-list-scale' : '']"
:style=
"
{
<swiper-item
class=
"u-swiper-item"
v-for=
"(item, index) in list"
:key=
"index"
>
<view
class=
"u-list-image-wrap"
@
tap.stop.prevent=
"listClick(index)"
:class=
"[current != index ? 'u-list-scale' : '']"
:style=
"
{
borderRadius: `${borderRadius}rpx`,
transform: effect3d
&&
current != index ? 'scaleY(0.9)' : 'scaleY(1)',
margin: effect3d
&&
current != index ? '0 20rpx' : 0,
...
...
@@ -210,6 +210,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-swiper-wrap
{
position
:
relative
;
overflow
:
hidden
;
...
...
uview-ui/components/u-switch/u-switch.vue
View file @
3b6d9a36
...
...
@@ -104,6 +104,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-switch
{
position
:
relative
;
display
:
inline-block
;
...
...
uview-ui/components/u-table/u-table.vue
View file @
3b6d9a36
...
...
@@ -81,6 +81,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-table
{
width
:
100%
;
box-sizing
:
border-box
;
...
...
uview-ui/components/u-tabs-swiper/u-tabs-swiper.vue
View file @
3b6d9a36
...
...
@@ -371,6 +371,8 @@
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"../../libs/css/style.components.scss"
;
view
,
scroll-view
{
box-sizing
:
border-box
;
...
...
uview-ui/components/u-tabs/u-tabs.vue
View file @
3b6d9a36
...
...
@@ -278,7 +278,9 @@
};
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
view
,
scroll-view
{
box-sizing
:
border-box
;
...
...
uview-ui/components/u-tag/u-tag.vue
View file @
3b6d9a36
...
...
@@ -146,6 +146,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-tag
{
box-sizing
:
border-box
;
align-items
:
center
;
...
...
uview-ui/components/u-td/u-td.vue
View file @
3b6d9a36
...
...
@@ -52,6 +52,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-td
{
display
:
flex
;
flex-direction
:
column
;
...
...
uview-ui/components/u-th/u-th.vue
View file @
3b6d9a36
...
...
@@ -43,6 +43,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-th
{
display
:
flex
;
flex-direction
:
column
;
...
...
uview-ui/components/u-time-line-item/u-time-line-item.vue
View file @
3b6d9a36
...
...
@@ -51,6 +51,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-time-axis-item
{
display
:
flex
;
flex-direction
:
column
;
...
...
uview-ui/components/u-time-line/u-time-line.vue
View file @
3b6d9a36
...
...
@@ -22,6 +22,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-time-axis
{
padding-left
:
40rpx
;
position
:
relative
;
...
...
uview-ui/components/u-toast/u-toast.vue
View file @
3b6d9a36
...
...
@@ -124,6 +124,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-toast
{
position
:
fixed
;
z-index
:
-1
;
...
...
uview-ui/components/u-top-tips/u-top-tips.vue
View file @
3b6d9a36
...
...
@@ -68,6 +68,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
view
{
box-sizing
:
border-box
;
}
...
...
uview-ui/components/u-tr/u-tr.vue
View file @
3b6d9a36
...
...
@@ -28,6 +28,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-tr
{
display
:
flex
;
}
...
...
uview-ui/components/u-upload/u-upload.vue
View file @
3b6d9a36
...
...
@@ -426,6 +426,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-upload
{
display
:
flex
;
flex-wrap
:
wrap
;
...
...
uview-ui/components/u-verification-code/u-verification-code.vue
View file @
3b6d9a36
...
...
@@ -153,6 +153,8 @@
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-code-wrap
{
width
:
0
;
height
:
0
;
...
...
uview-ui/components/u-waterfall/u-waterfall.vue
View file @
3b6d9a36
...
...
@@ -159,6 +159,8 @@ export default {
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../libs/css/style.components.scss"
;
.u-waterfall
{
display
:
flex
;
flex-direction
:
row
;
...
...
uview-ui/index.scss
View file @
3b6d9a36
...
...
@@ -18,6 +18,6 @@
/* #endif */
// H5特有的样式
/* #ifdef
MP
*/
/* #ifdef
H5
*/
@import
"./libs/css/style.h5.scss"
;
/* #endif */
\ No newline at end of file
uview-ui/libs/css/style.components.scss
0 → 100644
View file @
3b6d9a36
// nvue不能用标签命名样式
/* #ifndef APP-NVUE */
image
{
display
:
inline-block
;
// 解决图片加载时可能会瞬间变形的问题
will-change
:
transform
;
}
view
,
text
{
box-sizing
:
border-box
;
flex-direction
:
row
;
}
/* #endif */
\ No newline at end of file
uview-ui/libs/css/style.h5.scss
View file @
3b6d9a36
/* H5的时候,隐藏滚动条 */
/* #ifdef H5 */
::-webkit-scrollbar
{
display
:
none
;
width
:
0
!
important
;
height
:
0
!
important
;
-webkit-appearance
:
none
;
background
:
transparent
;
}
/* #endif */
\ No newline at end of file
::-webkit-scrollbar
{
display
:
none
;
width
:
0
!
important
;
height
:
0
!
important
;
-webkit-appearance
:
none
;
background
:
transparent
;
}
uview-ui/libs/css/style.vue.scss
View file @
3b6d9a36
...
...
@@ -3,18 +3,6 @@ page {
font-size
:
28rpx
;
}
image
{
display
:
inline-block
;
// 解决图片加载时可能会瞬间变形的问题
will-change
:
transform
;
}
view
,
text
{
box-sizing
:
border-box
;
flex-direction
:
row
;
}
/* start--去除webkit的默认样式--start */
.u-fix-ios-appearance
{
-webkit-appearance
:none
;
...
...
uview-ui/libs/function/queryParams.js
View file @
3b6d9a36
...
...
@@ -19,7 +19,7 @@ function queryParams(data = {}, isPrefix = true, arrayFormat = 'brackets') {
switch
(
arrayFormat
)
{
case
'
indices
'
:
// 结果: ids[0]=1&ids[1]=2&ids[2]=3
for
(
i
=
0
;
i
<
value
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
value
.
length
;
i
++
)
{
_result
.
push
(
key
+
'
[
'
+
i
+
'
]=
'
+
value
[
i
])
}
break
;
...
...
uview-ui/libs/function/timeFormat.js
View file @
3b6d9a36
...
...
@@ -3,7 +3,7 @@ function timeFormat(timestamp = null, fmt = 'yyyy-mm-dd') {
// yyyy:mm:dd|yyyy:mm|yyyy年mm月dd日|yyyy年mm月dd日 hh时MM分等,可自定义组合
timestamp
=
parseInt
(
timestamp
);
// 如果为null,则格式化当前时间
if
(
timestamp
==
null
)
timestamp
=
Number
(
new
Date
());
if
(
!
timestamp
)
timestamp
=
Number
(
new
Date
());
// 判断用户输入的时间戳是秒还是毫秒,一般前端js获取的时间戳是毫秒(13位),后端传过来的为秒(10位)
if
(
timestamp
.
toString
().
length
==
10
)
timestamp
*=
1000
;
let
date
=
new
Date
(
timestamp
);
...
...
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