Commit 4504bd9ceaf0240b567e618e8f4a0644cc72a857

Authored by kk
Committed by GitHub
1 parent 16c2b8d2

unknow custom element <i-button>

unknow custom element <i-button> when use  babel-plugin-import
Showing 1 changed file with 5 additions and 4 deletions   Show diff stats
src/components/color-picker/color-picker.vue
@@ -88,15 +88,15 @@ @@ -88,15 +88,15 @@
88 </template> 88 </template>
89 <template v-else>{{formatColor}}</template> 89 <template v-else>{{formatColor}}</template>
90 </span> 90 </span>
91 - <i-button 91 + <iButton
92 ref="clear" 92 ref="clear"
93 :tabindex="0" 93 :tabindex="0"
94 size="small" 94 size="small"
95 @click.native="handleClear" 95 @click.native="handleClear"
96 @keydown.enter="handleClear" 96 @keydown.enter="handleClear"
97 @keydown.native.esc="closer" 97 @keydown.native.esc="closer"
98 - >{{t('i.datepicker.clear')}}</i-button>  
99 - <i-button 98 + >{{t('i.datepicker.clear')}}</iButton>
  99 + <iButton
100 ref="ok" 100 ref="ok"
101 :tabindex="0" 101 :tabindex="0"
102 size="small" 102 size="small"
@@ -105,7 +105,7 @@ @@ -105,7 +105,7 @@
105 @keydown.native.tab="handleLastTab" 105 @keydown.native.tab="handleLastTab"
106 @keydown.enter="handleSuccess" 106 @keydown.enter="handleSuccess"
107 @keydown.native.esc="closer" 107 @keydown.native.esc="closer"
108 - >{{t('i.datepicker.ok')}}</i-button> 108 + >{{t('i.datepicker.ok')}}</iButton>
109 </div> 109 </div>
110 </div> 110 </div>
111 </transition> 111 </transition>
@@ -124,6 +124,7 @@ import Saturation from &#39;./saturation.vue&#39;; @@ -124,6 +124,7 @@ import Saturation from &#39;./saturation.vue&#39;;
124 import Hue from './hue.vue'; 124 import Hue from './hue.vue';
125 import Alpha from './alpha.vue'; 125 import Alpha from './alpha.vue';
126 import iInput from '../input/input.vue'; 126 import iInput from '../input/input.vue';
  127 +import iButton from '../button/button.vue';
127 import Locale from '../../mixins/locale'; 128 import Locale from '../../mixins/locale';
128 import {oneOf} from '../../utils/assist'; 129 import {oneOf} from '../../utils/assist';
129 import Emitter from '../../mixins/emitter'; 130 import Emitter from '../../mixins/emitter';