parent
4afa523619
commit
3c08524e11
@ -0,0 +1,96 @@ |
|||||||
|
<template> |
||||||
|
<view> |
||||||
|
<!-- 输入框示例 --> |
||||||
|
<uni-popup ref="inputDialog" type="dialog"> |
||||||
|
<uni-popup-dialog ref="inputClose" mode="input" title="输入内容" value="对话框预置提示内容!" |
||||||
|
placeholder="请输入内容" @confirm="dialogInputConfirm"></uni-popup-dialog> |
||||||
|
</uni-popup> |
||||||
|
</view> |
||||||
|
</template> |
||||||
|
|
||||||
|
<script> |
||||||
|
export default { |
||||||
|
props: { |
||||||
|
specsInfo: { |
||||||
|
type: Object, |
||||||
|
default: () => {} |
||||||
|
}, |
||||||
|
}, |
||||||
|
data() { |
||||||
|
return {}; |
||||||
|
}, |
||||||
|
mounted() {}, |
||||||
|
methods: { |
||||||
|
closeSpecs(){ |
||||||
|
this.$emit('myevent'); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
</script> |
||||||
|
|
||||||
|
<style scoped lang="scss"> |
||||||
|
.specs{ |
||||||
|
position: fixed; |
||||||
|
bottom: 0; |
||||||
|
width: 100%; |
||||||
|
left: 0; |
||||||
|
background-color: #fff; |
||||||
|
z-index: 280; |
||||||
|
border-radius: 16rpx 16rpx 0 0; |
||||||
|
transform: translate3d(0, 100%, 0); |
||||||
|
transition: all .3s cubic-bezier(.25, .5, .5, .9); |
||||||
|
padding-bottom: 22rpx; |
||||||
|
padding-bottom: calc(22rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/ |
||||||
|
padding-bottom: calc(22rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/ |
||||||
|
.title{ |
||||||
|
font-size: 32rpx; |
||||||
|
color: #282828; |
||||||
|
text-align: center; |
||||||
|
margin: 38rpx 0 36rpx 0; |
||||||
|
position: relative; |
||||||
|
font-weight: bold; |
||||||
|
.iconfont{ |
||||||
|
position: absolute; |
||||||
|
right: 30rpx; |
||||||
|
top:0; |
||||||
|
font-size: 36rpx; |
||||||
|
font-weight: normal; |
||||||
|
color: #999999; |
||||||
|
} |
||||||
|
} |
||||||
|
.list{ |
||||||
|
height: 750rpx; |
||||||
|
margin: 0 30rpx; |
||||||
|
color: #999999; |
||||||
|
overflow-x: hidden; |
||||||
|
overflow-y: auto; |
||||||
|
.item{ |
||||||
|
padding: 30rpx 0; |
||||||
|
border-bottom: 1px solid #eee; |
||||||
|
.name{ |
||||||
|
width: 160rpx; |
||||||
|
margin-right: 10rpx; |
||||||
|
word-break: break-all; |
||||||
|
} |
||||||
|
.val{ |
||||||
|
width: 510rpx; |
||||||
|
word-break: break-all; |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
.bnt{ |
||||||
|
width: 690rpx; |
||||||
|
height: 86rpx; |
||||||
|
text-align: center; |
||||||
|
line-height: 86rpx; |
||||||
|
border-radius: 43rpx; |
||||||
|
background-color: var(--view-theme); |
||||||
|
font-size: 30rpx; |
||||||
|
color: #fff; |
||||||
|
margin: 0 auto; |
||||||
|
} |
||||||
|
} |
||||||
|
.specs.on{ |
||||||
|
transform: translate3d(0, 0, 0); |
||||||
|
} |
||||||
|
</style> |
Loading…
Reference in new issue