mixin.js 204 B

12345678910
  1. export const carousel = {
  2. computed: {
  3. isIE () {
  4. return /(MSIE)|(Trident)/.test(this.$store.state.option.userAgent)
  5. },
  6. effect () {
  7. return this.isIE ? 'slide' : 'fade'
  8. }
  9. }
  10. }