feat: el-tag resolve conversation

This commit is contained in:
bastarder 2020-07-27 13:11:52 +08:00 committed by Herrington Darkholme
parent 1b3eadfd43
commit a26ab382e6
2 changed files with 12 additions and 12 deletions

View File

@ -1,8 +1,8 @@
<template>
<el-tag closable>默认标签</el-tag>
<el-tag size="medium" closable>中等标签</el-tag>
<el-tag size="small" closable>小型标签</el-tag>
<el-tag size="mini" closable>超小标签</el-tag>
<el-tag closable>Default Label</el-tag>
<el-tag size="medium" closable>Medium Label</el-tag>
<el-tag size="small" closable>Small Label</el-tag>
<el-tag size="mini" closable>Mini Label</el-tag>
<div class="tag-group">
<span class="tag-group__title">Dark</span>
<el-tag
@ -36,11 +36,11 @@
data() {
return {
items: [
{ type: '', label: '标签一' },
{ type: 'success', label: '标签二' },
{ type: 'info', label: '标签三' },
{ type: 'danger', label: '标签四' },
{ type: 'warning', label: '标签五' }
{ type: '', label: 'Label 1' },
{ type: 'success', label: 'Label 2' },
{ type: 'info', label: 'Label 3' },
{ type: 'danger', label: 'Label 4' },
{ type: 'warning', label: 'Label 5' }
]
}
}

View File

@ -29,12 +29,12 @@
</template>
<script lang='ts'>
import { h, computed } from 'vue';
import { computed, defineComponent } from 'vue';
const ELEMENT: {
size?: number;
} = {}
export default {
export default defineComponent({
name: "ElTag",
props: {
closable: Boolean,
@ -85,5 +85,5 @@ export default {
handleClick,
}
},
};
});
</script>