Skip to content

Commit 15e3eb5

Browse files
committed
renamed SegmentTag to Tag
Signed-off-by: zhangtianli2006 <49156174+zhangtianli2006@users.noreply.github.com>
1 parent ebdd141 commit 15e3eb5

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

src/components/lib/tag.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<template>
2-
<span class="seg-tag" :style="style">
2+
<span class="tag" :style="style">
33
<i :v-if="icon" :class="'el-icon-' + icon_detail"></i>{{content}}
44
</span>
55
</template>
66

77
<script>
88
export default {
9-
name: 'SegmentTag',
9+
name: 'Tag',
1010
props: {
1111
content: {
1212
type: String,
@@ -55,7 +55,7 @@ export default {
5555
</script>
5656

5757
<style scoped>
58-
.seg-tag {
58+
.tag {
5959
display: inline-block;
6060
padding: 0 10px;
6161
font-size: 12px;

src/components/problem/content.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,14 @@
7878
</div>
7979
</div>
8080
<div class="tags" v-if="showTag">
81-
<SegmentTag
81+
<Tag
8282
v-for="item in rendertags"
8383
:key="item.content"
8484
color="#fff"
8585
:border_color="item.color"
8686
:background_color="item.color"
8787
:content="item.content"
88-
>
89-
</SegmentTag>
88+
/>
9089
</div>
9190
</el-card>
9291
</div>
@@ -100,7 +99,7 @@
10099
import timeFormat from './../../methods/time';
101100
import apiurl from './../../apiurl';
102101
import MarkdownContainer from './../lib/MarkdownContainer.vue';
103-
import SegmentTag from './../lib/tag.vue';
102+
import Tag from './../lib/tag.vue';
104103
105104
export default {
106105
name: 'ProblemView',
@@ -174,7 +173,7 @@ export default {
174173
},
175174
components: {
176175
MarkdownContainer,
177-
SegmentTag
176+
Tag
178177
}
179178
};
180179
</script>

src/components/problem/listTag.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div>
33
<div v-if="$store.state.tags.displayTags">
4-
<SegmentTag
4+
<Tag
55
v-for="item in this.rendertags"
66
:key="item.content"
77
color="#fff"
@@ -15,7 +15,7 @@
1515
</template>
1616

1717
<script>
18-
import SegmentTag from './../lib/tag.vue';
18+
import Tag from './../lib/tag.vue';
1919
import apiurl from './../../apiurl';
2020
2121
export default {
@@ -55,7 +55,7 @@ export default {
5555
this.loadTag();
5656
},
5757
components: {
58-
SegmentTag
58+
Tag
5959
}
6060
};
6161
</script>

0 commit comments

Comments
 (0)