diff --git a/src/Button/src/Button.vue b/src/Button/src/Button.vue index e690874ac..9a5dcd86b 100644 --- a/src/Button/src/Button.vue +++ b/src/Button/src/Button.vue @@ -211,13 +211,14 @@ export default { return this.circle || !this.$slots.default }, avoidHollowOut () { - return ( - this.text || - this.ghost || - !['primary', 'link', 'info', 'success', 'warning', 'error'].includes( - this.type - ) - ) + return true + // return ( + // this.text || + // this.ghost || + // !['primary', 'link', 'info', 'success', 'warning', 'error'].includes( + // this.type + // ) + // ) }, simulateHollowOut () { if (this.ghost) return false diff --git a/src/_mixins/hollowoutable.js b/src/_mixins/hollowoutable.js index 926faf1cc..fbd0cc90a 100644 --- a/src/_mixins/hollowoutable.js +++ b/src/_mixins/hollowoutable.js @@ -32,6 +32,9 @@ function getNextBackgroundColorOf (el) { for (const key of Object.keys(diffedStyle)) { if (~key.indexOf('ransition')) continue memorizedInlineStyle[key] = el.style[key] + } + for (const key of Object.keys(diffedStyle)) { + if (~key.indexOf('ransition')) continue el.style[key] = diffedStyle[key] } void (el.offsetHeight)