mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
chore(hooks): [floating] fix eslint warnigns (#6827)
- Update importing order
This commit is contained in:
parent
da992a97b2
commit
0ff293b3e9
@ -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) => {
|
||||
|
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user