mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
fix(project): fix beta 49 build issue (#2310)
- Fix the build issue caused by internal objects Co-authored-by: jeremywuuuuu <jeremywuuuuu@no-reply.github.com>
This commit is contained in:
parent
74ec002d23
commit
7d39b37f00
@ -20,7 +20,7 @@ const inputs = getPackagesSync()
|
||||
.map(pkg => pkg.name)
|
||||
.filter(name =>
|
||||
name.includes('@element-plus') &&
|
||||
!name.includes('utils'),
|
||||
!name.includes('utils') && !name.includes('internal'),
|
||||
)
|
||||
|
||||
export default inputs.map(name => ({
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
import { DEFAULT_TRIGGER, DEFAULT_FALLBACK_PLACEMENTS } from '@element-plus/constants/popper.constants'
|
||||
import { DEFAULT_TRIGGER, DEFAULT_FALLBACK_PLACEMENTS } from '../../constants/popper.constants'
|
||||
|
||||
import type { PropType, ExtractPropTypes } from 'vue'
|
||||
import type { Placement, PositioningStrategy, Instance as PopperInstance, Options } from '@popperjs/core'
|
||||
|
@ -4,14 +4,14 @@ import ElPopper from '@element-plus/popper'
|
||||
import { renderPopper, renderTrigger, renderArrow } from '@element-plus/popper'
|
||||
import { ClickOutside } from '@element-plus/directives'
|
||||
import { warn } from '@element-plus/utils/error'
|
||||
import defaultProps from '@element-plus/internal/props/use-popper-props'
|
||||
import { LIGHT_EFFECT } from '@element-plus/constants/popper.constants'
|
||||
import { renderIf, PatchFlags } from '@element-plus/utils/vnode'
|
||||
import { LIGHT_EFFECT } from '../../constants/popper.constants'
|
||||
import defaultProps from '../../internal/props/use-popper-props'
|
||||
|
||||
import usePopover, { SHOW_EVENT, HIDE_EVENT } from './usePopover'
|
||||
|
||||
import type { PropType } from 'vue'
|
||||
import type { TriggerType } from '@element-plus/internal/props/use-popper-props'
|
||||
import type { TriggerType } from '../../internal/props/use-popper-props'
|
||||
|
||||
const emits = ['update:visible', 'after-enter', 'after-leave', SHOW_EVENT, HIDE_EVENT]
|
||||
const NAME = 'ElPopover'
|
||||
|
@ -5,7 +5,7 @@ import PopupManager from '@element-plus/utils/popup-manager'
|
||||
|
||||
import type { SetupContext } from 'vue'
|
||||
import type { EmitType } from '@element-plus/popper/src/use-popper'
|
||||
import type { IPopperOptions } from '@element-plus/internal/props/use-popper-props'
|
||||
import type { IPopperOptions } from '../../internal/props/use-popper-props'
|
||||
|
||||
export interface IUsePopover extends IPopperOptions {
|
||||
width: number | string
|
||||
|
@ -14,9 +14,9 @@ import {
|
||||
} from 'vue'
|
||||
|
||||
import throwError from '@element-plus/utils/error'
|
||||
import defaultProps from '@element-plus/internal/props/use-popper-props'
|
||||
|
||||
import usePopper from './use-popper/index'
|
||||
import defaultProps from '../../internal/props/use-popper-props'
|
||||
|
||||
import { renderPopper, renderTrigger, renderArrow } from './renderers'
|
||||
import { ClickOutside } from '@element-plus/directives'
|
||||
|
@ -3,7 +3,7 @@ import { NOOP } from '@vue/shared'
|
||||
import { stop } from '@element-plus/utils/dom'
|
||||
|
||||
import type { VNode, Ref } from 'vue'
|
||||
import type { Effect } from '@element-plus/internal/props/use-popper-props'
|
||||
import type { Effect } from '../../../internal/props/use-popper-props'
|
||||
|
||||
interface IRenderPopperProps {
|
||||
effect: Effect
|
||||
|
@ -19,7 +19,7 @@ import type {
|
||||
IPopperOptions,
|
||||
TriggerType,
|
||||
PopperInstance,
|
||||
} from '@element-plus/internal/props/use-popper-props'
|
||||
} from '../../../internal/props/use-popper-props'
|
||||
|
||||
export type ElementType = ComponentPublicInstance | HTMLElement
|
||||
export type EmitType = 'update:visible' | 'after-enter' | 'after-leave' | 'before-enter' | 'before-leave'
|
||||
|
@ -2,7 +2,7 @@ import { computed } from 'vue'
|
||||
import buildModifiers from './build-modifiers'
|
||||
|
||||
import type { Ref } from 'vue'
|
||||
import type { IPopperOptions } from '@element-plus/internal/props/use-popper-props'
|
||||
import type { IPopperOptions } from '../../../internal/props/use-popper-props'
|
||||
|
||||
interface IUsePopperState {
|
||||
arrow: Ref<HTMLElement>
|
||||
|
@ -2,7 +2,7 @@ import { defineComponent, h, ref, cloneVNode } from 'vue'
|
||||
import ElPopper from '@element-plus/popper'
|
||||
import { UPDATE_MODEL_EVENT } from '@element-plus/utils/constants'
|
||||
import throwError from '@element-plus/utils/error'
|
||||
import defaultProps from '@element-plus/internal/props/use-popper-props'
|
||||
import defaultProps from '../../internal/props/use-popper-props'
|
||||
import { getFirstValidNode } from '@element-plus/utils/vnode'
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user