This commit is contained in:
冯辉
2025-11-12 17:42:27 +08:00
parent 73f5cb8750
commit 4953bee633
3 changed files with 129 additions and 24 deletions

View File

@@ -13,10 +13,10 @@
</view>
<text class="text-content button-click">{{ content }}</text>
<template v-if="showButton">
<button class="popup-button button-click" v-if="isTip" @click="close">{{ buttonText }}</button>
<button class="popup-button button-click reset-button" v-if="isTip" @click="close">{{ buttonText }}</button>
<view v-else class="confirm-btns">
<button class="popup-button button-click" @click="close">{{ cancelText }}</button>
<button class="popup-button button-click" @click="confirm">{{ confirmText }}</button>
<button class="popup-button button-click reset-button" @click="close">{{ cancelText }}</button>
<button class="popup-button button-click reset-button" @click="confirm">{{ confirmText }}</button>
</view>
</template>
</view>
@@ -138,8 +138,8 @@ export default {
}
}
// 重置button样式
button {
// 重置button样式,使用类选择器代替标签选择器
.reset-button {
padding: 0;
margin: 0;
border: none;
@@ -148,7 +148,7 @@ button {
line-height: inherit;
}
button::after {
.reset-button::after {
border: none;
}
</style>

View File

@@ -2,8 +2,8 @@
<view class="empty" :style="{ background: bgcolor, marginTop: mrTop + 'rpx' }">
<view class="ty_content" :style="{ paddingTop: pdTop + 'rpx' }">
<view class="content_top btn-shaky">
<image v-if="pictrue" :src="pictrue" mode=""></image>
<image v-else src="@/static/icon/empty.png" mode=""></image>
<image v-if="pictrue" :src="pictrue" mode="" class="empty-image"></image>
<image v-else src="@/static/icon/empty.png" mode="" class="empty-image"></image>
</view>
<view class="content_c">{{ content }}</view>
</view>
@@ -47,7 +47,8 @@ export default {
</script>
<style lang="scss" scoped>
image {
// 使用类选择器代替标签选择器
.empty-image {
width: 100%;
height: 100%;
}