dcc
2024-05-17 b8f6f514b675fa6a006dfafbc99303b3c5c8ba85
src/components/Dialog/index.vue
@@ -11,10 +11,10 @@
    <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>
@@ -30,11 +30,11 @@
    },
    "confirm-button-text": {
      type: String,
      default: "确定",
      default: "hj161",
    },
    "cancel-button-text": {
      type: String,
      default: "取消",
      default: "qx",
    },
    "show-cancel-button": {
      type: Boolean,
@@ -43,6 +43,10 @@
    "show-confirm-button": {
      type: Boolean,
      default: true,
    },
    confirm: {
      type: Function,
      default: () => {},
    },
  },
  components: {
@@ -53,7 +57,7 @@
      show: false,
    };
  },
  closeAll() {},
  methods: {},
};
</script>