调整分享部分方法,修改点餐页分享
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="relative">
|
||||
<slot v-if="$slots.default" name="default"></slot>
|
||||
<up-icon v-else name="share-square" bold color="#333" size="36rpx"></up-icon>
|
||||
<up-icon v-else name="share-square" bold :color="color" :size="size"></up-icon>
|
||||
<view class="absolute share-box">
|
||||
<button open-type="share" @click="shareClick">分享</button>
|
||||
</view>
|
||||
@@ -10,6 +10,16 @@
|
||||
|
||||
<script setup>
|
||||
const emits = defineEmits(['shareClick'])
|
||||
const props = defineProps({
|
||||
size: {
|
||||
type: String,
|
||||
default: '36rpx'
|
||||
},
|
||||
color:{
|
||||
type: String,
|
||||
default: '#333'
|
||||
}
|
||||
})
|
||||
|
||||
function shareClick() {
|
||||
emits('shareClick')
|
||||
|
||||
Reference in New Issue
Block a user