1
jhzh
2026-02-27 5dfb843c29fdcc1693961b70a36ddee3fea85a4a
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>
@@ -87,8 +91,8 @@
      flex: 1;
      height: 100%;
      padding: 0 15px;
      background-color: #1989fa;
      border: 1px solid #1989fa;
      background-color: #185546;
      border: 1px solid #185546;
      color: #fff;
      margin-left: 20px;
    }