element-plus
Advanced tools
Comparing version 1.0.1-alpha.10 to 1.0.1-alpha.11
{ | ||
"name": "element-plus", | ||
"version": "1.0.1-alpha.10", | ||
"version": "1.0.1-alpha.11", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "cz": "npx git-cz", |
@@ -163,9 +163,2 @@ import { mount } from '@vue/test-utils' | ||
test('should add tab index to referrer', async () => { | ||
const wrapper = _mount({ | ||
appendToBody: false, | ||
}) | ||
expect(wrapper.find(`.${TEST_TRIGGER}`).attributes('tabindex')).toBe('0') | ||
}) | ||
test('should initialize a new popper when component mounted', async () => { | ||
@@ -172,0 +165,0 @@ _mount({ |
@@ -1,4 +0,3 @@ | ||
export { default as Mask } from './mask' | ||
export { default as renderPopper } from './popper' | ||
export { default as renderTrigger } from './trigger' | ||
export { default as renderArrow } from './arrow' |
@@ -60,4 +60,4 @@ import { withDirectives, Transition, vShow, withCtx, createVNode } from 'vue' | ||
name, | ||
onAfterEnter, | ||
onAfterLeave, | ||
'onAfter-enter': onAfterEnter, | ||
'onAfter-leave': onAfterLeave, | ||
}, | ||
@@ -78,2 +78,4 @@ { | ||
onClick: stop, | ||
onMouseDown: stop, | ||
onMouseUp: stop, | ||
}, | ||
@@ -86,2 +88,4 @@ children, | ||
'onMouseleave', | ||
'onMousedown', | ||
'onMouseup', | ||
'onClick', | ||
@@ -88,0 +92,0 @@ 'id', |
@@ -34,3 +34,2 @@ import type { PropType } from 'vue' | ||
strategy: PositioningStrategy | ||
tabIndex: string | ||
trigger: Trigger | ||
@@ -134,6 +133,2 @@ visible: boolean | ||
}, | ||
tabIndex: { | ||
type: String, | ||
default: '0', | ||
}, | ||
visible: { | ||
@@ -140,0 +135,0 @@ type: Boolean, |
@@ -32,3 +32,3 @@ import { mount } from '@vue/test-utils' | ||
return [...document.querySelectorAll<HTMLElement>( | ||
'.el-popper__mask:last-child .el-select-dropdown__item', | ||
'body > div:last-child .el-select-dropdown__item', | ||
)] | ||
@@ -35,0 +35,0 @@ } |
@@ -324,29 +324,24 @@ import { mount } from '@vue/test-utils' | ||
// TODO: waiting for InputNumber refactored. | ||
it('show input', done => { | ||
const wrapper = mount({ | ||
template: ` | ||
<div> | ||
<slider v-model="value" show-input></slider> | ||
</div> | ||
`, | ||
components: { Slider }, | ||
data() { | ||
return { | ||
value: 0, | ||
} | ||
}, | ||
}) | ||
const increaseButton = wrapper.find('.el-input-number__increase') | ||
increaseButton.trigger('mousedown') | ||
setTimeout(() => { | ||
expect(wrapper.vm.value > 0).toBeTruthy() | ||
done() | ||
}, 200) | ||
}) | ||
// it('show input', done => { | ||
// const wrapper = mount({ | ||
// template: ` | ||
// <div> | ||
// <slider v-model="value" show-input></slider> | ||
// </div> | ||
// `, | ||
// components: { Slider }, | ||
// data() { | ||
// return { | ||
// value: 0, | ||
// } | ||
// }, | ||
// }) | ||
// setTimeout(() => { | ||
// wrapper.find('.el-input-number').trigger('keyup') | ||
// const inputNumber = wrapper.getComponent('ElInputNumber') | ||
// inputNumber.vm.setCurrentValue(40) | ||
// setTimeout(() => { | ||
// expect(wrapper.vm.value).toBe(40) | ||
// done() | ||
// }, 10) | ||
// }, 10) | ||
// }) | ||
it('show stops', () => { | ||
@@ -353,0 +348,0 @@ const wrapper = mount(Slider, { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3805063
799
37568