AT-UI / at-ui

A fresh and flat UI-Kit specially for desktop application, made with ♥ by Vue.js 2.0 (DEPRECATED)
https://at.aotu.io
MIT License
2.34k stars 229 forks source link

At-modal property showClose=false not working #59

Open andrzejkrawczyk opened 6 years ago

andrzejkrawczyk commented 6 years ago

Customizable modal have a property showClose which have default value true. After passing value false is still showing cancel button.

Copied just example from the documentation.

Steps to reproduce

Which browser?

Google Chrome "at-ui": "^1.3.0", "at-ui-style": "^1.5.0", "vue": "^2.5.8", "vue-router": "^2.8.1", "vuex": "^3.0.1"

What is expected?

After passing showClose=False, close button shouldn't be visible in modal

Best Regards, Andrzej

koppthe commented 6 years ago

i test with the code below, it works.

this.$Modal.alert({
      title: 'Here is Title',
      content: 'Here is Content',
      showClose: false,
      callback: function (action) {
          this.$Message(action)
      }
})
andrzejkrawczyk commented 6 years ago

Hello,

Im using it in Vue2 in Vue components with vue loader in