Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
bca7c145
U
uni-app
项目概览
DCloud
/
uni-app
2 个月 前同步成功
通知
717
Star
38705
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
7
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
7
Issue
7
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bca7c145
编写于
4月 08, 2020
作者:
fxy060608
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build:quickapp-vue
上级
5e248e50
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
187 addition
and
187 deletion
+187
-187
packages/uni-quickapp-vue/components/button/button.vue
packages/uni-quickapp-vue/components/button/button.vue
+187
-187
未找到文件。
packages/uni-quickapp-vue/components/button/button.vue
浏览文件 @
bca7c145
<
template
>
<
template
>
<div
:class=
"viewClass"
class=
"uni-button"
v-on=
"$listeners"
>
v-on=
"$listeners"
>
<text
:class=
"textClass"
class=
"uni-button-t"
>
<slot
/>
</text>
</div>
</
template
>
class=
"uni-button-t"
>
<slot
/>
</text>
</div>
</
template
>
<
script
>
const
BUTTON_TYPES
=
{
default
:
'
d
'
,
primary
:
'
p
'
,
warn
:
'
w
'
}
export
default
{
}
export
default
{
name
:
'
Button
'
,
props
:
{
hoverClass
:
{
...
...
@@ -116,183 +116,183 @@ export default {
}
return
cl
}
}
}
</
script
>
}
}
</
script
>
<
style
>
.uni-button
{
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
position
:
relative
;
padding-left
:
5px
;
padding-right
:
5px
;
overflow
:
hidden
;
color
:
#000000
;
background-color
:
#f8f8f8
;
border-radius
:
5
px
;
border-style
:
solid
;
border-width
:
1px
;
border-color
:
#dbdbdb
;
}
.uni-button-t
{
color
:
#000000
;
font-size
:
18px
;
text-decoration
:
none
;
line-height
:
46px
;
}
.uni-button-d
{
background-color
:
#f8f8f8
;
}
.uni-button-p
{
background-color
:
#007aff
;
border-color
:
#0062cc
;
}
.uni-button-w
{
background-color
:
#e64340
;
border-color
:
#b83633
;
}
.uni-button-d-t
{
color
:
#000000
;
}
.uni-button-p-t
{
color
:
#ffffff
;
}
.uni-button-w-t
{
color
:
#ffffff
;
}
.uni-button-d-d
{
background-color
:
#f7f7f7
;
}
.uni-button-p-d
{
background-color
:
#63acfc
;
border-color
:
#4f8aca
;
}
.uni-button-w-d
{
background-color
:
#ec8b89
;
border-color
:
#bd6f6e
;
}
.uni-button-d-t-d
{
color
:
#cccccc
;
}
.uni-button-p-t-d
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
}
.uni-button-w-t-d
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
}
.uni-button-d-plain
{
border-color
:
#353535
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-p-plain
{
border-color
:
#007aff
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-w-plain
{
border-color
:
#e64340
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-d-t-plain
{
color
:
#353535
;
}
.uni-button-p-t-plain
{
color
:
#007aff
;
}
.uni-button-w-t-plain
{
color
:
#e64340
;
}
.uni-button-d-d-plain
{
border-color
:
#c6c6c6
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-p-d-plain
{
border-color
:
#c6c6c6
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-w-d-plain
{
border-color
:
#c6c6c6
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-d-t-d-plain
{
color
:
rgba
(
0
,
0
,
0
,
0.2
);
}
.uni-button-p-t-d-plain
{
color
:
rgba
(
0
,
0
,
0
,
0.2
);
}
.uni-button-w-t-d-plain
{
color
:
rgba
(
0
,
0
,
0
,
0.2
);
}
.uni-button-mini
{
line-height
:
30px
;
font-size
:
13px
;
padding-top
:
0
;
padding-right
:
17.5px
;
padding-bottom
:
0
;
padding-left
:
17.5px
;
}
.uni-button-loading
{
width
:
18px
;
height
:
18px
;
margin-right
:
10px
;
}
.uni-button-d-loading
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-p-loading
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-w-loading
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
background-color
:
#ce3c39
;
}
.uni-button-d-loading-plain
{
color
:
#353535
;
}
.uni-button-p-loading-plain
{
color
:
#007aff
;
background-color
:
#0062cc
;
}
.uni-button-w-loading-plain
{
color
:
#e64340
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-d-hover
{
opacity
:
0.8
;
background-color
:
#dedede
;
}
.uni-button-p-hover
{
opacity
:
0.8
;
background-color
:
#0062cc
;
}
.uni-button-w-hover
{
opacity
:
0.8
;
backgroundColor
:
#ce3c39
;
}
.uni-button-d-t-hover
{
color
:
rgba
(
0
,
0
,
0
,
0.6
);
}
.uni-button-p-t-hover
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
}
.uni-button-w-t-hover
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
}
.uni-button-d-hover-plain
{
color
:
rgba
(
53
,
53
,
53
,
0.6
);
border-color
:
rgba
(
53
,
53
,
53
,
0.6
);
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-p-hover-plain
{
color
:
rgba
(
26
,
173
,
25
,
0.6
);
border-color
:
rgba
(
0
,
122
,
255
,
0.6
);
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-w-hover-plain
{
color
:
rgba
(
230
,
67
,
64
,
0.6
);
border-color
:
rgba
(
230
,
67
,
64
,
0.6
);
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button
{
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
;
position
:
relative
;
padding-left
:
30
rpx
;
padding-right
:
30
rpx
;
overflow
:
hidden
;
color
:
#000000
;
background-color
:
#f8f8f8
;
border-radius
:
5
rpx
;
border-style
:
solid
;
border-width
:
1px
;
border-color
:
#dbdbdb
;
}
.uni-button-t
{
color
:
#000000
;
font-size
:
32
rpx
;
text-decoration
:
none
;
line-height
:
88
rpx
;
}
.uni-button-d
{
background-color
:
#f8f8f8
;
}
.uni-button-p
{
background-color
:
#007aff
;
border-color
:
#0062cc
;
}
.uni-button-w
{
background-color
:
#e64340
;
border-color
:
#b83633
;
}
.uni-button-d-t
{
color
:
#000000
;
}
.uni-button-p-t
{
color
:
#ffffff
;
}
.uni-button-w-t
{
color
:
#ffffff
;
}
.uni-button-d-d
{
background-color
:
#f7f7f7
;
}
.uni-button-p-d
{
background-color
:
#63acfc
;
border-color
:
#4f8aca
;
}
.uni-button-w-d
{
background-color
:
#ec8b89
;
border-color
:
#bd6f6e
;
}
.uni-button-d-t-d
{
color
:
#cccccc
;
}
.uni-button-p-t-d
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
}
.uni-button-w-t-d
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
}
.uni-button-d-plain
{
border-color
:
#353535
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-p-plain
{
border-color
:
#007aff
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-w-plain
{
border-color
:
#e64340
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-d-t-plain
{
color
:
#353535
;
}
.uni-button-p-t-plain
{
color
:
#007aff
;
}
.uni-button-w-t-plain
{
color
:
#e64340
;
}
.uni-button-d-d-plain
{
border-color
:
#c6c6c6
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-p-d-plain
{
border-color
:
#c6c6c6
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-w-d-plain
{
border-color
:
#c6c6c6
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-d-t-d-plain
{
color
:
rgba
(
0
,
0
,
0
,
0.2
);
}
.uni-button-p-t-d-plain
{
color
:
rgba
(
0
,
0
,
0
,
0.2
);
}
.uni-button-w-t-d-plain
{
color
:
rgba
(
0
,
0
,
0
,
0.2
);
}
.uni-button-mini
{
line-height
:
50
rpx
;
font-size
:
28
rpx
;
padding-top
:
0
;
padding-right
:
30
rpx
;
padding-bottom
:
0
;
padding-left
:
30
rpx
;
}
.uni-button-loading
{
width
:
18px
;
height
:
18px
;
margin-right
:
10px
;
}
.uni-button-d-loading
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-p-loading
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-w-loading
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
background-color
:
#ce3c39
;
}
.uni-button-d-loading-plain
{
color
:
#353535
;
}
.uni-button-p-loading-plain
{
color
:
#007aff
;
background-color
:
#0062cc
;
}
.uni-button-w-loading-plain
{
color
:
#e64340
;
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-d-hover
{
opacity
:
0.8
;
background-color
:
#dedede
;
}
.uni-button-p-hover
{
opacity
:
0.8
;
background-color
:
#0062cc
;
}
.uni-button-w-hover
{
opacity
:
0.8
;
backgroundColor
:
#ce3c39
;
}
.uni-button-d-t-hover
{
color
:
rgba
(
0
,
0
,
0
,
0.6
);
}
.uni-button-p-t-hover
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
}
.uni-button-w-t-hover
{
color
:
rgba
(
255
,
255
,
255
,
0.6
);
}
.uni-button-d-hover-plain
{
color
:
rgba
(
53
,
53
,
53
,
0.6
);
border-color
:
rgba
(
53
,
53
,
53
,
0.6
);
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-p-hover-plain
{
color
:
rgba
(
26
,
173
,
25
,
0.6
);
border-color
:
rgba
(
0
,
122
,
255
,
0.6
);
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
.uni-button-w-hover-plain
{
color
:
rgba
(
230
,
67
,
64
,
0.6
);
border-color
:
rgba
(
230
,
67
,
64
,
0.6
);
background-color
:
rgba
(
0
,
0
,
0
,
0
);
}
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录