Browse Source

fix: no ConfigProvider's TypeScript definition (#1143)

pull/1236/head
singlebyte 5 years ago committed by tangjinzhou
parent
commit
1ad01d23be
  1. 2
      types/ant-design-vue.d.ts
  2. 5
      types/config-provider.d.ts

2
types/ant-design-vue.d.ts vendored

@ -20,6 +20,7 @@ import { Carousel } from './carousel';
import { Cascader } from './cascader';
import { Checkbox } from './checkbox/checkbox';
import { Col } from './grid/col';
import { ConfigProvider } from './config-provider';
import { DatePicker } from './date-picker/date-picker';
import { Divider } from './divider';
import { Drawer } from './drawer';
@ -86,6 +87,7 @@ export {
Cascader,
Checkbox,
Col,
ConfigProvider,
DatePicker,
Divider,
Dropdown,

5
types/config-provider.d.ts vendored

@ -0,0 +1,5 @@
import { AntdComponent } from './component';
export declare class ConfigProvider extends AntdComponent {
getPopupContainer?: (triggerNode: HTMLElement) => HTMLElement;
}
Loading…
Cancel
Save