Commit 8e2afca3c4fd0ca5036331b5090ead4f979c3a1b
Committed by
GitHub
Merge pull request #4483 from kangkai124/2.0
fix: unknow custom element <i-button> when use babel-plugin-import
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/components/color-picker/color-picker.vue
| ... | ... | @@ -125,6 +125,7 @@ import Saturation from './saturation.vue'; |
| 125 | 125 | import Hue from './hue.vue'; |
| 126 | 126 | import Alpha from './alpha.vue'; |
| 127 | 127 | import iInput from '../input/input.vue'; |
| 128 | +import iButton from '../button/button.vue'; | |
| 128 | 129 | import Locale from '../../mixins/locale'; |
| 129 | 130 | import {oneOf} from '../../utils/assist'; |
| 130 | 131 | import Emitter from '../../mixins/emitter'; |
| ... | ... | @@ -134,7 +135,7 @@ import {changeColor, toRGBAString} from './utils'; |
| 134 | 135 | export default { |
| 135 | 136 | name: 'ColorPicker', |
| 136 | 137 | |
| 137 | - components: {Drop, RecommendColors, Saturation, Hue, Alpha, iInput}, | |
| 138 | + components: {Drop, RecommendColors, Saturation, Hue, Alpha, iInput, iButton}, | |
| 138 | 139 | |
| 139 | 140 | directives: {clickOutside, TransferDom}, |
| 140 | 141 | ... | ... |