[new feature] ActionSheet: add round prop (#3874)

This commit is contained in:
neverland
2019-07-17 13:56:23 +08:00
committed by GitHub
parent 1c09a44751
commit e6a13e8887
5 changed files with 23 additions and 0 deletions
@@ -21,3 +21,9 @@ exports[`disable lazy-render 1`] = `
`;
exports[`render title and default slot 1`] = ``;
exports[`round prop 1`] = `
<div class="van-popup van-popup--round van-popup--bottom van-action-sheet" name="van-popup-slide-bottom">
<div class="van-action-sheet__item van-hairline--top"><span class="van-action-sheet__name">Option</span></div>
</div>
`;
+12
View File
@@ -137,3 +137,15 @@ test('close-on-click-action prop', () => {
expect(onInput).toHaveBeenCalledWith(false);
});
test('round prop', () => {
const wrapper = mount(ActionSheet, {
propsData: {
value: true,
round: true,
actions: [{ name: 'Option' }]
}
});
expect(wrapper).toMatchSnapshot();
});