[new feature] GoodsActionIcon: add icon slot (#3705)

This commit is contained in:
neverland
2019-07-01 14:55:18 +08:00
committed by GitHub
parent a7b4b4c219
commit bb43ff270d
5 changed files with 63 additions and 8 deletions
+15
View File
@@ -49,3 +49,18 @@ test('Icon render default slot', () => {
expect(wrapper).toMatchSnapshot();
});
test('Icon render icon slot', () => {
const wrapper = mount({
render(h) {
return h(Icon, {
scopedSlots: {
default: () => 'Text',
icon: () => 'Custom Icon'
}
});
}
});
expect(wrapper).toMatchSnapshot();
});