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:
jeremywu 2021-06-23 19:58:02 +08:00 committed by GitHub
parent 74ec002d23
commit 7d39b37f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 11 additions and 11 deletions

View File

@ -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 => ({

View File

@ -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'

View File

@ -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'

View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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'

View File

@ -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>

View File

@ -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'
/**