mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-30 11:16:12 +08:00
build(project): fix-build-error (#1638)
- Fix type caused build error which stops the type generator producing type files
This commit is contained in:
parent
f2091973c1
commit
ea9aa0df24
@ -20,7 +20,7 @@
|
|||||||
- Fix table fix #1591 (#1593)
|
- Fix table fix #1591 (#1593)
|
||||||
- Fix radio type order (#1554)
|
- Fix radio type order (#1554)
|
||||||
- Fix time-picker replace test `it.only` with `it` in test (#1586)
|
- Fix time-picker replace test `it.only` with `it` in test (#1586)
|
||||||
- Fix popper simplify mapEvents logic & add IEvents (#1541)
|
- Fix popper simplify mapEvents logic & add PopperEvents (#1541)
|
||||||
- Fix pagination component layout prop bug (#1576)
|
- Fix pagination component layout prop bug (#1576)
|
||||||
- Fix select disabled group not works (#1559)
|
- Fix select disabled group not works (#1559)
|
||||||
- Fix dropdown dropdown will expand when unexpected (#1569)
|
- Fix dropdown dropdown will expand when unexpected (#1569)
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
- Fix table fix #1591 (#1593)
|
- Fix table fix #1591 (#1593)
|
||||||
- Fix radio type order (#1554)
|
- Fix radio type order (#1554)
|
||||||
- Fix time-picker replace test `it.only` with `it` in test (#1586)
|
- Fix time-picker replace test `it.only` with `it` in test (#1586)
|
||||||
- Fix popper simplify mapEvents logic & add IEvents (#1541)
|
- Fix popper simplify mapEvents logic & add (#1541)
|
||||||
- Fix pagination component layout prop bug (#1576)
|
- Fix pagination component layout prop bug (#1576)
|
||||||
- Fix select disabled group not works (#1559)
|
- Fix select disabled group not works (#1559)
|
||||||
- Fix dropdown dropdown will expand when unexpected (#1569)
|
- Fix dropdown dropdown will expand when unexpected (#1569)
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
- Fix table fix #1591 (#1593)
|
- Fix table fix #1591 (#1593)
|
||||||
- Fix radio type order (#1554)
|
- Fix radio type order (#1554)
|
||||||
- Fix time-picker replace test `it.only` with `it` in test (#1586)
|
- Fix time-picker replace test `it.only` with `it` in test (#1586)
|
||||||
- Fix popper simplify mapEvents logic & add IEvents (#1541)
|
- Fix popper simplify mapEvents logic & add PopperEvents (#1541)
|
||||||
- Fix pagination component layout prop bug (#1576)
|
- Fix pagination component layout prop bug (#1576)
|
||||||
- Fix select disabled group not works (#1559)
|
- Fix select disabled group not works (#1559)
|
||||||
- Fix dropdown dropdown will expand when unexpected (#1569)
|
- Fix dropdown dropdown will expand when unexpected (#1569)
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
- Fix table fix #1591 (#1593)
|
- Fix table fix #1591 (#1593)
|
||||||
- Fix radio type order (#1554)
|
- Fix radio type order (#1554)
|
||||||
- Fix time-picker replace test `it.only` with `it` in test (#1586)
|
- Fix time-picker replace test `it.only` with `it` in test (#1586)
|
||||||
- Fix popper simplify mapEvents logic & add IEvents (#1541)
|
- Fix popper simplify mapEvents logic & add PopperEvents (#1541)
|
||||||
- Fix pagination component layout prop bug (#1576)
|
- Fix pagination component layout prop bug (#1576)
|
||||||
- Fix select disabled group not works (#1559)
|
- Fix select disabled group not works (#1559)
|
||||||
- Fix dropdown dropdown will expand when unexpected (#1569)
|
- Fix dropdown dropdown will expand when unexpected (#1569)
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
- Fix table fix #1591 (#1593)
|
- Fix table fix #1591 (#1593)
|
||||||
- Fix radio type order (#1554)
|
- Fix radio type order (#1554)
|
||||||
- Fix time-picker replace test `it.only` with `it` in test (#1586)
|
- Fix time-picker replace test `it.only` with `it` in test (#1586)
|
||||||
- Fix popper simplify mapEvents logic & add IEvents (#1541)
|
- Fix popper simplify mapEvents logic & add PopperEvents (#1541)
|
||||||
- Fix pagination component layout prop bug (#1576)
|
- Fix pagination component layout prop bug (#1576)
|
||||||
- Fix select disabled group not works (#1559)
|
- Fix select disabled group not works (#1559)
|
||||||
- Fix dropdown dropdown will expand when unexpected (#1569)
|
- Fix dropdown dropdown will expand when unexpected (#1569)
|
||||||
|
@ -4,7 +4,6 @@ import {
|
|||||||
ref,
|
ref,
|
||||||
computed,
|
computed,
|
||||||
watch,
|
watch,
|
||||||
nextTick,
|
|
||||||
provide,
|
provide,
|
||||||
} from 'vue'
|
} from 'vue'
|
||||||
import { IPagination } from './pagination'
|
import { IPagination } from './pagination'
|
||||||
|
@ -24,7 +24,7 @@ import type {
|
|||||||
export type ElementType = ComponentPublicInstance | HTMLElement
|
export type ElementType = ComponentPublicInstance | HTMLElement
|
||||||
export type EmitType = 'update:visible' | 'after-enter' | 'after-leave' | 'before-enter' | 'before-leave'
|
export type EmitType = 'update:visible' | 'after-enter' | 'after-leave' | 'before-enter' | 'before-leave'
|
||||||
|
|
||||||
interface IEvents {
|
export interface PopperEvents {
|
||||||
onClick?: (e: Event) => void
|
onClick?: (e: Event) => void
|
||||||
onMouseenter?: (e: Event) => void
|
onMouseenter?: (e: Event) => void
|
||||||
onMouseleave?: (e: Event) => void
|
onMouseleave?: (e: Event) => void
|
||||||
@ -173,7 +173,7 @@ export default function(
|
|||||||
popperInstance = null
|
popperInstance = null
|
||||||
}
|
}
|
||||||
|
|
||||||
const events = {} as IEvents
|
const events = {} as PopperEvents
|
||||||
|
|
||||||
function update() {
|
function update() {
|
||||||
if (!$(visibility)) {
|
if (!$(visibility)) {
|
||||||
@ -235,7 +235,7 @@ export default function(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const triggerEventsMap: Partial<Record<TriggerType, (keyof IEvents)[]>> = {
|
const triggerEventsMap: Partial<Record<TriggerType, (keyof PopperEvents)[]>> = {
|
||||||
click: ['onClick'],
|
click: ['onClick'],
|
||||||
hover: ['onMouseenter', 'onMouseleave'],
|
hover: ['onMouseenter', 'onMouseleave'],
|
||||||
focus: ['onFocus', 'onBlur'],
|
focus: ['onFocus', 'onBlur'],
|
||||||
|
Loading…
Reference in New Issue
Block a user