[new feature] NoticeBar: support use inner icon (#2305)

This commit is contained in:
neverland
2018-12-16 16:07:40 +08:00
committed by GitHub
parent c100b045d1
commit ce225ea18b
6 changed files with 16 additions and 22 deletions
+4 -5
View File
@@ -5,12 +5,11 @@
:style="barStyle"
@click="$emit('click')"
>
<div
<icon
v-if="leftIcon"
:class="b('left-icon')"
>
<img :src="leftIcon">
</div>
:name="leftIcon"
/>
<div
ref="wrap"
:class="b('wrap')"
@@ -73,7 +72,7 @@ export default create({
computed: {
iconName() {
return this.mode === 'closeable' ? 'close' : this.mode === 'link' ? 'arrow' : '';
return this.mode === 'closeable' ? 'cross' : this.mode === 'link' ? 'arrow' : '';
},
barStyle() {