[new feature] NoticeBar: add right-icon prop

This commit is contained in:
陈嘉涵
2019-04-30 14:59:51 +08:00
parent 152ee6a90d
commit dec1e4cee8
5 changed files with 36 additions and 26 deletions
+2 -1
View File
@@ -13,12 +13,13 @@ test('close event', () => {
expect(wrapper.emitted('close')).toBeTruthy();
});
test('left-icon slot', () => {
test('icon slot', () => {
const wrapper = mount({
template: `
<notice-bar>
Content
<template v-slot:left-icon>Custom Left Icon</template>
<template v-slot:right-icon>Custom Right Icon</template>
</notice-bar>
`,
components: {