Skip to content

Commit d15b778

Browse files
CarterLiisland205
authored andcommitted
Cascader: fix TypeScript 3.7 compatibility (ElemeFE#17881)
Fix error: 导入声明与“CascaderOption”的局部声明冲突
1 parent 5558398 commit d15b778

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

types/cascader.d.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ import { VNode } from 'vue';
22
import { ElementUIComponent, ElementUIComponentSize } from './component'
33
import { CascaderOption, CascaderProps, CascaderNode } from './cascader-panel';
44

5-
export type CascaderOption = CascaderOption
6-
7-
export type CascaderProps<V, D> = CascaderProps<V, D>
8-
9-
export type CascaderNode<V, D> = CascaderNode<V, D>
5+
export { CascaderOption, CascaderProps, CascaderNode };
106

117
export interface CascaderSlots {
128
/** Custom label content */

0 commit comments

Comments
 (0)