parent
137d79ea11
commit
8a1015f85e
@ -1,46 +1,42 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="bottom-btn">
|
<view class="bottom-btn">
|
||||||
<u-button :type="type" @click="handlerClick()">{{title}}</u-button>
|
<u-button :type="type" @click="handlerClick()">{{ title }}</u-button>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
title: {
|
title: {
|
||||||
type: String,
|
type: String,
|
||||||
default: ''
|
default: "",
|
||||||
},
|
},
|
||||||
type: {
|
type: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'success'
|
default: "success",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
name: "bottomBtn",
|
name: "bottomBtn",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {};
|
||||||
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handlerClick() {
|
handlerClick() {
|
||||||
this.$emit('handlerClick')
|
this.$emit("handlerClick");
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.bottom-btn {
|
.bottom-btn {
|
||||||
border-top: 1px solid #e4e7ed;
|
border-top: 1px solid #e4e7ed;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 20rpx 20rpx;
|
padding: 20rpx 20rpx;
|
||||||
padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
|
|
||||||
background: #fff;
|
background: #fff;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0%;
|
bottom: 0%;
|
||||||
left: 0%;
|
left: 0%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"id": "xycoder-threeStageSlidingPanel",
|
||||||
|
"name": "高性能三段式滑动面板",
|
||||||
|
"displayName": "高性能三段式滑动面板",
|
||||||
|
"version": "2.0",
|
||||||
|
"description": "仿高德三段式滑动操作面板",
|
||||||
|
"keywords": [
|
||||||
|
"滑动面板",
|
||||||
|
"滑动",
|
||||||
|
"操作面板"
|
||||||
|
],
|
||||||
|
"dcloudext": {
|
||||||
|
"category": [
|
||||||
|
"前端组件",
|
||||||
|
"通用组件"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue