[new feature] ActionSheet: add round prop (#3874)
This commit is contained in:
@@ -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>
|
||||
`;
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user