first
This commit is contained in:
8
packages/icon/index.js
Normal file
8
packages/icon/index.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import ElIcon from './src/icon.vue';
|
||||
|
||||
/* istanbul ignore next */
|
||||
ElIcon.install = function(Vue) {
|
||||
Vue.component(ElIcon.name, ElIcon);
|
||||
};
|
||||
|
||||
export default ElIcon;
|
13
packages/icon/src/icon.vue
Normal file
13
packages/icon/src/icon.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<i :class="'el-icon-' + name"></i>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'ElIcon',
|
||||
|
||||
props: {
|
||||
name: String
|
||||
}
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user