Skip to content

Commit a1e9335

Browse files
authored
fix(icon): demo 复制功能优化 (jd-opensource#1773)
* fix(checkbox): 修复对齐问题 * fix(icon): demo 复制功能优化
1 parent 4af1b6a commit a1e9335

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/packages/__VUE/checkbox/index.scss

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
}
2020
}
2121
&__label {
22+
flex: 1;
2223
margin-left: $checkbox-label-margin-left;
2324
font-size: $checkbox-label-font-size;
2425
color: $checkbox-label-color;

src/packages/__VUE/icon/demo.vue

+8-4
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
<nut-cell-group v-for="item in icons.data" :title="currentLang == 'zh-CN' ? item.name : item.nameEn" :key="item">
3131
<nut-cell>
3232
<ul>
33-
<li v-for="item in item.icons" :key="item" @click="copyTag(item)">
34-
<nut-icon :name="item"></nut-icon>
33+
<li v-for="item in item.icons" :key="item">
34+
<nut-icon :name="item" @click="copyTag(item)"></nut-icon>
3535
<span>{{ item }}</span>
3636
</li>
3737
</ul>
@@ -40,8 +40,12 @@
4040
<nut-cell-group v-for="item in icons.style" :title="currentLang == 'zh-CN' ? item.name : item.nameEn" :key="item">
4141
<nut-cell>
4242
<ul>
43-
<li v-for="it in item.icons" :key="it" @click="copyTag(it['animation-name'])">
44-
<nut-icon :name="it.name" :class="`nut-icon-${it['animation-name']} nut-icon-${it['animation-time']}`">
43+
<li v-for="it in item.icons" :key="it">
44+
<nut-icon
45+
:name="it.name"
46+
:class="`nut-icon-${it['animation-name']} nut-icon-${it['animation-time']}`"
47+
@click="copyTag(it['animation-name'])"
48+
>
4549
</nut-icon>
4650
<span>{{ it['animation-name'] }}</span>
4751
</li>

0 commit comments

Comments
 (0)