init Avatar component
This commit is contained in:
parent
9823357382
commit
2c5faf30f4
9 changed files with 66 additions and 14 deletions
26
src/components/avatar/avatar.vue
Normal file
26
src/components/avatar/avatar.vue
Normal file
|
@ -0,0 +1,26 @@
|
|||
<template>
|
||||
<span>
|
||||
|
||||
</span>
|
||||
</template>
|
||||
<script>
|
||||
const prefixCls = 'ivu-avatar';
|
||||
|
||||
export default {
|
||||
name: 'Avatar',
|
||||
props: {
|
||||
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
};
|
||||
</script>
|
2
src/components/avatar/index.js
Normal file
2
src/components/avatar/index.js
Normal file
|
@ -0,0 +1,2 @@
|
|||
import Avatar from './avatar.vue';
|
||||
export default Avatar;
|
|
@ -3,6 +3,7 @@ import 'core-js/fn/array/find-index';
|
|||
|
||||
import Affix from './components/affix';
|
||||
import Alert from './components/alert';
|
||||
import Avatar from './components/avatar';
|
||||
import BackTop from './components/back-top';
|
||||
import Badge from './components/badge';
|
||||
import Breadcrumb from './components/breadcrumb';
|
||||
|
@ -49,6 +50,7 @@ import locale from './locale';
|
|||
const iview = {
|
||||
Affix,
|
||||
Alert,
|
||||
Avatar,
|
||||
BackTop,
|
||||
Badge,
|
||||
Breadcrumb,
|
||||
|
|
5
src/styles/components/avatar.less
Normal file
5
src/styles/components/avatar.less
Normal file
|
@ -0,0 +1,5 @@
|
|||
@avatar-prefix-cls: ~"@{css-prefix}avatar";
|
||||
|
||||
.@{avatar-prefix-cls} {
|
||||
|
||||
}
|
|
@ -38,4 +38,5 @@
|
|||
@import "carousel";
|
||||
@import "rate";
|
||||
@import "upload";
|
||||
@import "tree";
|
||||
@import "tree";
|
||||
@import "avatar";
|
Loading…
Add table
Add a link
Reference in a new issue