mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-26 04:27:26 +08:00
style(eslint-config): newline before import type
(#21036)
* perf: change to import-x * feat: add rules * chore: fix rule * chore: fix * chore: fix * chore: fix * style: `pnpm lint:fix` * Revert "style: `pnpm lint:fix`" This reverts commit db0116a288299c507e3cfc4d7a22e2207265d920. * Revert "chore: fix" This reverts commit 69c82a90c01525e38180be4c21e8ef5602512318. * chore: fix * style: `pnpm lint:fix` * fix: lint * chore: `pnpm format`
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { withInstall } from '@element-plus/utils'
|
||||
import CascaderPanel from './src/index.vue'
|
||||
|
||||
import type { SFCWithInstall } from '@element-plus/utils'
|
||||
|
||||
export const ElCascaderPanel: SFCWithInstall<typeof CascaderPanel> =
|
||||
|
@ -1,5 +1,6 @@
|
||||
import { computed } from 'vue'
|
||||
import { NOOP, buildProps, definePropType } from '@element-plus/utils'
|
||||
|
||||
import type {
|
||||
CascaderConfig,
|
||||
CascaderOption,
|
||||
|
@ -46,7 +46,6 @@ import {
|
||||
UPDATE_MODEL_EVENT,
|
||||
} from '@element-plus/constants'
|
||||
import { useNamespace } from '@element-plus/hooks'
|
||||
|
||||
import ElCascaderMenu from './menu.vue'
|
||||
import Store from './store'
|
||||
import Node from './node'
|
||||
@ -63,7 +62,6 @@ import type {
|
||||
CascaderValue,
|
||||
RenderLabel,
|
||||
} from './node'
|
||||
|
||||
import type { ElCascaderPanelContext } from './types'
|
||||
|
||||
export default defineComponent({
|
||||
|
@ -6,6 +6,7 @@ import {
|
||||
isFunction,
|
||||
isUndefined,
|
||||
} from '@element-plus/utils'
|
||||
|
||||
import type { VNode } from 'vue'
|
||||
|
||||
export type CascaderNodeValue = string | number
|
||||
|
@ -69,6 +69,7 @@ import { useNamespace } from '@element-plus/hooks'
|
||||
import { ArrowRight, Check, Loading } from '@element-plus/icons-vue'
|
||||
import NodeContent from './node-content'
|
||||
import { CASCADER_PANEL_INJECTION_KEY } from './types'
|
||||
|
||||
import type { default as CascaderNode } from './node'
|
||||
import type { PropType } from 'vue'
|
||||
import type { CheckboxValueType } from '@element-plus/components/checkbox'
|
||||
|
@ -1,4 +1,5 @@
|
||||
import { isLeaf } from '@element-plus/utils'
|
||||
|
||||
import type { default as CascaderNode } from './node'
|
||||
|
||||
export const getMenuIndex = (el: HTMLElement) => {
|
||||
|
Reference in New Issue
Block a user