11
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user