build(project): fix-build-error (#1638)

- Fix type caused build error which stops the type generator producing type files
This commit is contained in:
jeremywu 2021-03-15 11:22:34 +08:00 committed by GitHub
parent f2091973c1
commit ea9aa0df24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 8 additions and 9 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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