Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
b0603133
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
5995
Star
90
Fork
162
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b0603133
编写于
1月 20, 2024
作者:
H
hdx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
components: rpx to px; 移除不必要的display: flex;
上级
a1e825d2
变更
10
显示空白变更内容
内联
并排
Showing
10 changed file
with
488 addition
and
493 deletion
+488
-493
components/api-set-tabbar/api-set-tabbar.vue
components/api-set-tabbar/api-set-tabbar.vue
+146
-146
components/boolean-data/boolean-data.vue
components/boolean-data/boolean-data.vue
+37
-37
components/enum-data/enum-data.vue
components/enum-data/enum-data.vue
+1
-1
components/input-data/input-data.vue
components/input-data/input-data.vue
+4
-3
components/page-head/page-head.vue
components/page-head/page-head.vue
+2
-2
components/u-link/u-link.vue
components/u-link/u-link.vue
+58
-58
components/uni-collapse-item/uni-collapse-item.vue
components/uni-collapse-item/uni-collapse-item.vue
+125
-125
components/uni-collapse/uni-collapse.vue
components/uni-collapse/uni-collapse.vue
+38
-38
components/uni-navbar-lite/uni-navbar-lite.uvue
components/uni-navbar-lite/uni-navbar-lite.uvue
+0
-3
components/uni-navbar-lite/uni-navbar-lite.vue
components/uni-navbar-lite/uni-navbar-lite.vue
+77
-80
未找到文件。
components/api-set-tabbar/api-set-tabbar.vue
浏览文件 @
b0603133
...
...
@@ -62,7 +62,7 @@
this
.
$emit
(
'
unmount
'
)
},
setTabBarBadge
()
{
if
(
this
.
hasShownTabBarRedDot
)
{
if
(
this
.
hasShownTabBarRedDot
)
{
uni
.
hideTabBarRedDot
({
index
:
1
})
...
...
@@ -81,7 +81,7 @@
this
.
hasSetTabBarBadge
=
!
this
.
hasSetTabBarBadge
},
showTabBarRedDot
()
{
if
(
this
.
hasSetTabBarBadge
)
{
if
(
this
.
hasSetTabBarBadge
)
{
uni
.
removeTabBarBadge
({
index
:
1
})
...
...
@@ -145,12 +145,12 @@
<
style
>
.button
{
margin-top
:
30
r
px
;
margin-top
:
15
px
;
margin-left
:
0
;
margin-right
:
0
;
}
.btn-area
{
padding-top
:
30
r
px
;
padding-top
:
15
px
;
}
</
style
>
components/boolean-data/boolean-data.vue
浏览文件 @
b0603133
...
...
@@ -39,7 +39,7 @@
<
style
>
.button-data-main
{
justify-content
:
space-between
;
padding
:
20
r
px
;
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
.06
);
padding
:
10
px
;
border-bottom
:
1px
solid
rgba
(
0
,
0
,
0
,
.06
);
}
</
style
>
components/enum-data/enum-data.vue
浏览文件 @
b0603133
...
...
@@ -21,7 +21,7 @@
methods
:
{
// @ts-ignore
_change
(
e
:
RadioGroupChangeEvent
)
{
const
selected
=
this
.
items
.
find
((
item
:
ItemType
)
:
boolean
=>
{
const
selected
=
this
.
items
.
find
((
item
:
ItemType
)
:
boolean
=>
{
return
item
.
name
==
e
.
detail
.
value
})
if
(
selected
!=
null
)
{
...
...
components/input-data/input-data.vue
浏览文件 @
b0603133
...
...
@@ -82,7 +82,8 @@
</view>
</view>
<view
class=
"input-wrapper"
>
<input
class=
"uni-input"
:type=
"inputType"
:value=
"inputClearValue"
:placeholder=
"title"
@
input=
"input"
@
blur=
"blur"
@
focus=
"focus"
/>
<input
class=
"uni-input"
:type=
"inputType"
:value=
"inputClearValue"
:placeholder=
"title"
@
input=
"input"
@
blur=
"blur"
@
focus=
"focus"
/>
<image
class=
"input-wrapper_image"
src=
"/static/icons/clear.png"
v-if=
"showClearIcon"
@
click=
"clearIcon"
>
</image>
</view>
...
...
@@ -95,7 +96,7 @@
flex-direction
:
row
;
justify-content
:
center
;
padding
:
0
;
margin
:
0
20
r
px
;
margin
:
0
10
px
;
flex-direction
:
row
;
flex-wrap
:
nowrap
;
background-color
:
#ffffff
;
...
...
@@ -105,6 +106,6 @@
width
:
22px
;
height
:
22px
;
align-self
:
center
;
margin-right
:
10
r
px
;
margin-right
:
5
px
;
}
</
style
>
components/page-head/page-head.vue
浏览文件 @
b0603133
components/u-link/u-link.vue
浏览文件 @
b0603133
components/uni-collapse-item/uni-collapse-item.vue
浏览文件 @
b0603133
<
template
>
<view
class=
"uni-collapse-item"
>
<view
class=
"uni-collapse-item__title"
@
click=
"openCollapse(!is_open)"
>
<text
class=
"uni-collapse-item__title-text"
:class=
"
{'is-disabled':disabled,'open--active':is_open}">
{{
title
}}
</text>
<text
class=
"uni-collapse-item__title-text"
:class=
"
{'is-disabled':disabled,'open--active':is_open}">
{{
title
}}
</text>
<view
class=
"down_arrow"
:class=
"
{'down_arrow--active': is_open}">
</view>
</view>
<view
ref=
"boxRef"
class=
"uni-collapse-item__content"
>
...
...
@@ -40,7 +41,7 @@
};
},
watch
:
{
open
(
value
:
boolean
)
{
open
(
value
:
boolean
)
{
// this.is_open = value
if
(
this
.
boxNode
!=
null
)
{
this
.
openCollapse
(
value
)
...
...
@@ -57,14 +58,14 @@
},
methods
:
{
// 开启或关闭折叠面板
openCollapse
(
open
:
boolean
)
{
openCollapse
(
open
:
boolean
)
{
if
(
this
.
disabled
)
return
// 关闭其他已打开
$dispatch
(
this
,
'
UniCollapse
'
,
'
cloceAll
'
)
this
.
is_open
=
open
this
.
openOrClose
(
open
)
},
openOrClose
(
open
:
boolean
)
{
openOrClose
(
open
:
boolean
)
{
const
boxNode
=
this
.
boxNode
?.
style
!
;
const
contentNode
=
this
.
contentNode
?.
style
!
;
let
hide
=
open
?
'
flex
'
:
'
none
'
;
...
...
@@ -84,6 +85,7 @@
.uni-collapse-item
{
background-color
:
#fff
;
}
.uni-collapse-item__title
{
flex-direction
:
row
;
align-items
:
center
;
...
...
@@ -91,8 +93,6 @@
background-color
:
#fff
;
}
.down_arrow
{
width
:
8px
;
height
:
8px
;
...
...
@@ -132,7 +132,7 @@
.uni-collapse-item__content-box
{
width
:
100%
;
transition-property
:
transform
,
opacity
;
transition-property
:
transform
,
opacity
;
transition-duration
:
0.2s
;
transform
:
translateY
(
-100%
);
opacity
:
0
;
...
...
components/uni-collapse/uni-collapse.vue
浏览文件 @
b0603133
...
...
@@ -22,7 +22,7 @@
},
methods
:
{
init
(
child
:
ComponentPublicInstance
)
{
init
(
child
:
ComponentPublicInstance
)
{
this
.
child_nodes
.
push
(
child
)
},
// 关闭所有
...
...
components/uni-navbar-lite/uni-navbar-lite.uvue
浏览文件 @
b0603133
...
...
@@ -95,7 +95,6 @@
.uni-navbar-inner {
position: relative;
display: flex;
flex-direction: row;
justify-content: space-between;
height: 45px;
...
...
@@ -103,7 +102,6 @@
.left-content,
.right-content {
display: flex;
justify-content: center;
align-items: center;
width: 45px;
...
...
@@ -117,7 +115,6 @@
bottom: 0;
left: 45px;
right: 45px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
...
...
components/uni-navbar-lite/uni-navbar-lite.vue
浏览文件 @
b0603133
...
...
@@ -65,7 +65,6 @@
.uni-navbar-inner
{
position
:
relative
;
display
:
flex
;
flex-direction
:
row
;
justify-content
:
space-between
;
height
:
45px
;
...
...
@@ -73,7 +72,6 @@
.left-content
,
.right-content
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
width
:
45px
;
...
...
@@ -87,7 +85,6 @@
bottom
:
0
;
left
:
45px
;
right
:
45px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录