提交 53faccf2 编写于 作者: M mehaotian

update : actionsheet 添加title 属性

上级 d7f1d055
此差异已折叠。
......@@ -9,7 +9,12 @@
<div
:class="{'uni-actionsheet_toggle':visible}"
class="uni-actionsheet">
<div class="uni-actionsheet__menu">
<div
v-if="title"
class="uni-actionsheet__title"
>{{ title }}</div>
<div
v-for="(title,index) in itemList"
:key="index"
......@@ -30,6 +35,10 @@
export default {
name: 'ActionSheet',
props: {
title: {
type: String,
default: ''
},
itemList: {
type: Array,
default () {
......@@ -90,13 +99,13 @@ export default {
background-color: #fcfcfd;
}
uni-actionsheet .uni-actionsheet__cell {
uni-actionsheet .uni-actionsheet__cell ,
uni-actionsheet .uni-actionsheet__title {
position: relative;
padding: 10px 0;
text-align: center;
font-size: 18px;
}
uni-actionsheet .uni-actionsheet__cell:before {
content: " ";
position: absolute;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册