File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed
Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 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 >
88export 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 ;
Original file line number Diff line number Diff line change 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 >
10099import timeFormat from ' ./../../methods/time' ;
101100import apiurl from ' ./../../apiurl' ;
102101import MarkdownContainer from ' ./../lib/MarkdownContainer.vue' ;
103- import SegmentTag from ' ./../lib/tag.vue' ;
102+ import Tag from ' ./../lib/tag.vue' ;
104103
105104export default {
106105 name: ' ProblemView' ,
@@ -174,7 +173,7 @@ export default {
174173 },
175174 components: {
176175 MarkdownContainer,
177- SegmentTag
176+ Tag
178177 }
179178};
180179 </script >
Original file line number Diff line number Diff line change 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"
1515</template >
1616
1717<script >
18- import SegmentTag from ' ./../lib/tag.vue' ;
18+ import Tag from ' ./../lib/tag.vue' ;
1919import apiurl from ' ./../../apiurl' ;
2020
2121export default {
@@ -55,7 +55,7 @@ export default {
5555 this .loadTag ();
5656 },
5757 components: {
58- SegmentTag
58+ Tag
5959 }
6060};
6161 </script >
You can’t perform that action at this time.
0 commit comments