chore(hooks): [floating] fix eslint warnigns (#6827)

- Update importing order
This commit is contained in:
JeremyWuuuuu 2022-03-25 17:39:01 +08:00 committed by GitHub
parent da992a97b2
commit 0ff293b3e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View File

@ -1,10 +1,10 @@
import { computed, nextTick, reactive, ref, watch } from 'vue'
import { mount } from '@vue/test-utils'
import { rAF } from '@element-plus/test-utils/tick'
import { useFloating, arrowMiddleware } from '../use-floating'
import { arrowMiddleware, useFloating } from '../use-floating'
import type { CSSProperties } from 'vue'
import type { Placement, Strategy, Middleware } from '@floating-ui/dom'
import type { Middleware, Placement, Strategy } from '@floating-ui/dom'
describe('useFloating', () => {
const createComponent = (arrow = false) => {

View File

@ -1,17 +1,17 @@
import { ref, onMounted, watch, unref } from 'vue'
import { onMounted, ref, unref, watch } from 'vue'
import { isClient, unrefElement } from '@vueuse/core'
import { isNil } from 'lodash-unified'
import { computePosition, arrow as arrowCore } from '@floating-ui/dom'
import { arrow as arrowCore, computePosition } from '@floating-ui/dom'
import { buildProps } from '@element-plus/utils'
import type { ToRefs, Ref } from 'vue'
import type { Ref, ToRefs } from 'vue'
import type {
ComputePositionReturn,
Placement,
Strategy,
Middleware,
Placement,
SideObject,
Strategy,
VirtualElement,
} from '@floating-ui/dom'