mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
style: delete extra spaces (#6903)
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
This commit is contained in:
@@ -1332,7 +1332,7 @@ describe('Select', () => {
|
||||
selectVm.onKeyboardNavigate('forward')
|
||||
await nextTick()
|
||||
expect(selectVm.states.hoveringIndex).toBe(3)
|
||||
// should skip the group option
|
||||
// should skip the group option
|
||||
selectVm.onKeyboardNavigate('backward')
|
||||
selectVm.onKeyboardNavigate('backward')
|
||||
selectVm.onKeyboardNavigate('backward')
|
||||
|
||||
@@ -330,10 +330,10 @@ describe('<fixed-size-list />', () => {
|
||||
// also we have 3 cache items.
|
||||
// so that we get the first item: 10 - 2 - 3 = 5th item
|
||||
expect(wrapper.find(ITEM_SELECTOR).text()).toContain(5)
|
||||
// centered alignment nearing the left boundary
|
||||
// centered alignment nearing the left boundary
|
||||
listRef.scrollToItem(1, CENTERED_ALIGNMENT)
|
||||
await nextTick()
|
||||
// centered alignment nearing the right boundary
|
||||
// centered alignment nearing the right boundary
|
||||
listRef.scrollToItem(101, CENTERED_ALIGNMENT)
|
||||
await nextTick()
|
||||
expect(wrapper.find(ITEM_SELECTOR).text()).toContain(93)
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
/* Transition
|
||||
-------------------------- */
|
||||
// refer to this website to get the bezier motion function detail
|
||||
// https://cubic-bezier.com/#p1,p2,p3,p4 (change px as your function parameter)
|
||||
// https://cubic-bezier.com/#p1,p2,p3,p4 (change px as your function parameter)
|
||||
@include set-component-css-var('transition-duration', $transition-duration);
|
||||
|
||||
@include set-component-css-var('transition-function', $transition-function);
|
||||
|
||||
@@ -23,7 +23,7 @@ describe('dom style', () => {
|
||||
canvas.className = 'canvas-a canvas-b cc'
|
||||
expect(hasClass(canvas, 'a')).toBe(false)
|
||||
expect(hasClass(canvas, 'canvas-a')).toBe(true)
|
||||
// remove classList
|
||||
// remove classList
|
||||
canvas.setAttribute('classList', '')
|
||||
expect(hasClass(canvas, 'b')).toBe(false)
|
||||
expect(hasClass(canvas, 'canvas-b')).toBe(true)
|
||||
@@ -32,7 +32,7 @@ describe('dom style', () => {
|
||||
svg.setAttribute('class', 'svg-a svg-b')
|
||||
expect(hasClass(svg, 'a')).toBe(false)
|
||||
expect(hasClass(svg, 'svg-a')).toBe(true)
|
||||
// remove classList
|
||||
// remove classList
|
||||
svg.setAttribute('classList', '')
|
||||
expect(hasClass(svg, 'b')).toBe(false)
|
||||
expect(hasClass(svg, 'svg-b')).toBe(true)
|
||||
@@ -44,7 +44,7 @@ describe('dom style', () => {
|
||||
path.setAttribute('class', 'path-a path-b')
|
||||
expect(hasClass(path, 'a')).toBe(false)
|
||||
expect(hasClass(path, 'path-a')).toBe(true)
|
||||
// remove classList
|
||||
// remove classList
|
||||
path.setAttribute('classList', '')
|
||||
expect(hasClass(path, 'b')).toBe(false)
|
||||
expect(hasClass(path, 'path-b')).toBe(true)
|
||||
@@ -60,7 +60,7 @@ describe('dom style', () => {
|
||||
expect(hasClass(div, 'div')).toBe(false)
|
||||
addClass(div, 'abc')
|
||||
expect(getClass(div)).toEqual('div-abc abc')
|
||||
// remove classList
|
||||
// remove classList
|
||||
div.setAttribute('classList', '')
|
||||
addClass(div, 'div-box con')
|
||||
expect(hasClass(div, 'con')).toBe(true)
|
||||
@@ -79,7 +79,7 @@ describe('dom style', () => {
|
||||
expect(getClass(svg)).toEqual('svg-abc svg')
|
||||
addClass(svg, 'svg-aa space')
|
||||
expect(getClass(svg)).toEqual('svg-abc svg svg-aa space')
|
||||
// remove classList
|
||||
// remove classList
|
||||
svg.setAttribute('classList', '')
|
||||
addClass(svg, 'svg-abc-a svg-b')
|
||||
expect(hasClass(svg, 'svg')).toBe(true)
|
||||
@@ -101,7 +101,7 @@ describe('dom style', () => {
|
||||
expect(hasClass(path, 'pa')).toBe(false)
|
||||
addClass(path, 'path')
|
||||
expect(getClass(path)).toEqual('path-abc path')
|
||||
// remove classList
|
||||
// remove classList
|
||||
path.setAttribute('classList', '')
|
||||
expect(hasClass(path, 'path')).toBe(true)
|
||||
expect(hasClass(path, 'path-abc')).toBe(true)
|
||||
@@ -126,7 +126,7 @@ describe('dom style', () => {
|
||||
expect(hasClass(div, 'cc')).toBe(false)
|
||||
expect(getClass(div)).toEqual('div-abc ab')
|
||||
|
||||
// remove classList
|
||||
// remove classList
|
||||
div.setAttribute('classList', '')
|
||||
addClass(div, 'div-box con')
|
||||
removeClass(div, 'div-box con')
|
||||
@@ -166,7 +166,7 @@ describe('dom style', () => {
|
||||
removeClass(path, 'path')
|
||||
expect(hasClass(path, 'path')).toBe(false)
|
||||
expect(hasClass(path, 'path-abc')).toBe(true)
|
||||
// remove classList
|
||||
// remove classList
|
||||
path.setAttribute('classList', '')
|
||||
addClass(path, 'path path-1 path2')
|
||||
expect(hasClass(path, 'path')).toBe(true)
|
||||
|
||||
Reference in New Issue
Block a user