feat(DropdownMenu): add @dropdown-menu-title-active-text-color less var (#4208)

This commit is contained in:
neverland
2019-08-23 15:16:42 +08:00
committed by GitHub
parent 1cc6f03e6f
commit 2205285b38
5 changed files with 74 additions and 40 deletions
+9
View File
@@ -88,12 +88,21 @@ test('disable close-on-click-outside', async () => {
});
test('direction up', async () => {
const { innerHeight } = window;
window.innerHeight = 1000;
const wrapper = renderWrapper({
direction: 'up'
});
await later();
expect(wrapper).toMatchSnapshot();
const titles = wrapper.findAll('.van-dropdown-menu__title');
titles.at(0).trigger('click');
expect(wrapper).toMatchSnapshot();
window.innerHeight = innerHeight;
});
test('click option', async () => {