<template>
  <u-modal
    :show="updateVersion.modalShow"
    title="温馨提示"
    :show-confirm-button="updateVersion.showConfirmButton"
    :show-cancel-button="updateVersion.showCancelButton"
    :confirm-text="updateVersion.confirmText"
    :cancel-text="updateVersion.cancelText"
    @cancel="modalCancel"
    @confirm="modalConfirm"
  >
    <view style="text-align: center; color: #606266">
      <rich-text :nodes="updateVersion.modalContent"></rich-text>
    </view>
  </u-modal>
</template>

<script>
import updateVersion from "../../utils/updateVersion";

export default {
  mixins: [updateVersion],
  props: {
    toast: {
      type: Boolean,
      default: false,
    },
  },
  created() {
    !this.toast && this.fnUpdateVersion(this.toast);
  },
};
</script>

<style scoped lang="scss"></style>
