| | |
| | | |
| | | <div class="footer"> |
| | | <div class="cancel-dialog" @click="show = false" v-if="showCancelButton"> |
| | | {{ cancelButtonText }} |
| | | {{ $t(cancelButtonText) }} |
| | | </div> |
| | | <div class="confirm-dialog" v-if="showConfirmButton"> |
| | | {{ confirmButtonText }} |
| | | <div class="confirm-dialog" v-if="showConfirmButton" @click="confirm"> |
| | | {{ $t(confirmButtonText) }} |
| | | </div> |
| | | </div> |
| | | </van-dialog> |
| | |
| | | }, |
| | | "confirm-button-text": { |
| | | type: String, |
| | | default: "确定", |
| | | default: "hj161", |
| | | }, |
| | | "cancel-button-text": { |
| | | type: String, |
| | | default: "取消", |
| | | default: "qx", |
| | | }, |
| | | "show-cancel-button": { |
| | | type: Boolean, |
| | |
| | | "show-confirm-button": { |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | confirm: { |
| | | type: Function, |
| | | default: () => {}, |
| | | }, |
| | | }, |
| | | components: { |
| | |
| | | show: false, |
| | | }; |
| | | }, |
| | | closeAll() {}, |
| | | methods: {}, |
| | | }; |
| | | </script> |
| | | |