| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <template>
- <view class="mask_layer" @click="destroyedFunc">
- <view class="A" @click.stop="active(1)">记录</view>
- <view class="B" @click.stop="active(2)">暂停</view>
- <view class="C" @click.stop="active(3)">编辑</view>
- <view class="D" @click.stop="active(4)">删除</view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {};
- },
- methods: {
- active(int) {
- //返回操作事件
- this.$emit("moreShowActive", int)
- },
- destroyedFunc() {
- this.$emit("moreShowActive")
- },
- },
- }
- </script>
- <style lang="scss" scoped>
- .mask_layer {
- position: absolute;
- background-color: rgba(0, 0, 0, .5);
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- display: flex;
- align-items: center;
- justify-content: space-around;
- &>.A {
- background-color: #27AE60;
- }
- &>.B {
- background-color: #363C4F;
- }
- &>.C {
- background-color: #F57737;
- }
- &>.D {
- background-color: #EB5757;
- }
- &>view {
- width: 104rpx;
- height: 104rpx;
- line-height: 104rpx;
- text-align: center;
- border-radius: 50%;
- overflow: hidden;
- color: #fff;
- font-weight: 500;
- font-size: 28rpx;
- }
- }
- </style>
|