Skip to content

Commit 1aace9d

Browse files
author
shangbin
committed
feat: 优化属性输入框快速属性标签样式
1 parent 4957b67 commit 1aace9d

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/components/AttributeInput.vue

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
<div style="margin-top: 5px;">
2323
<transition name="el-zoom-in-center">
2424
<el-tag v-if="attributeKeys.indexOf('class') == -1" size="small" type="success" @click="onClassClick"
25-
effect="dark">Class
25+
effect="dark" class="tag">Class
2626
</el-tag>
2727
</transition>
2828
<transition name="el-zoom-in-center">
2929
<el-tag v-if="attributeKeys.indexOf('@click') == -1" size="small" type="success" @click="onEventClick"
30-
effect="dark">点击事件</el-tag>
30+
effect="dark" class="tag">点击事件</el-tag>
3131
</transition>
3232
<transition name="el-zoom-in-center">
3333
<el-tag v-if="!attributeKeys.includes('__text__')" size="small" type="success" @click="onTextClick"
34-
effect="dark">文本内容</el-tag>
34+
effect="dark" class="tag">文本内容</el-tag>
3535
</transition>
3636
</div>
3737
</div>
@@ -262,7 +262,7 @@ export default {
262262
};
263263
</script>
264264

265-
<style scoped>
265+
<style scoped lang="scss">
266266
.container {
267267
padding: 10px;
268268
width: 50%;
@@ -291,6 +291,14 @@ export default {
291291
border-radius: 5px;
292292
font-size: 12px;
293293
color: gray;
294+
295+
.tag {
296+
margin-right: 5px;
297+
}
298+
299+
.tag:last-child{
300+
margin-right: 0;
301+
}
294302
}
295303
296304
.split {

0 commit comments

Comments
 (0)