refactor: register ant-design-vue components in main.js #28

This commit is contained in:
iczer
2018-09-20 11:41:28 +08:00
committed by chenghx
parent 2137ccd4b3
commit f8f0294c58
56 changed files with 30 additions and 520 deletions

View File

@@ -10,8 +10,6 @@
</template>
<script>
import AIcon from 'ant-design-vue/es/icon/icon'
const Group = {
name: 'AStepItemGroup',
render (h) {
@@ -26,7 +24,6 @@ const Group = {
export default {
name: 'AStepItem',
Group: Group,
components: {AIcon},
props: ['title', 'icon', 'link', 'titleStyle', 'iconStyle'],
methods: {
go () {

View File

@@ -43,7 +43,6 @@ const Item = {
}
export default {
name: 'AvatarList',
components: {ATooltip},
Item: Item
}
</script>

View File

@@ -9,7 +9,6 @@
<script>
import ACol from 'ant-design-vue/es/grid/Col'
import ARow from 'ant-design-vue/es/grid/Row'
const Item = {
name: 'DetailListItem',
props: {
@@ -91,7 +90,6 @@ export default {
default: 'horizontal'
}
},
components: {ARow, ACol},
provide () {
return {
col: this.col > 4 ? 4 : this.col

View File

@@ -16,10 +16,8 @@
</template>
<script>
import AIcon from 'ant-design-vue/es/icon/icon'
export default {
name: 'Drawer',
components: {AIcon},
data () {
return {
drawerWidth: 0

View File

@@ -7,14 +7,11 @@
</template>
<script>
import ASelect from 'ant-design-vue/es/select/index'
import ACheckableTag from 'ant-design-vue/es/tag/CheckableTag'
import TagSelectOption from './TagSelectOption'
import AIcon from 'ant-design-vue/es/icon/icon'
export default {
name: 'TagSelect',
Option: TagSelectOption,
components: {AIcon, TagSelectOption, ACheckableTag, ASelect},
components: {TagSelectOption},
data () {
return {
showTrigger: false,

View File

@@ -5,10 +5,8 @@
</template>
<script>
import ACheckableTag from 'ant-design-vue/es/tag/CheckableTag'
export default {
name: 'TagSelectOption',
components: {ACheckableTag},
props: {
size: {
type: String,