Skip to content

Commit

Permalink
fix(types):add default export (didi#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyan0205 authored and moyus committed Feb 15, 2019
1 parent 6910e83 commit 463c54c
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 78 deletions.
81 changes: 3 additions & 78 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,79 +1,4 @@
import Vue from 'vue'
import { MandComponent } from './component'
import { Toast } from './toast'
import { Dialog } from './dialog'
import { ActionSheet } from './action-sheet'
export * from './mand-mobile'

export function install(vue: typeof Vue): void

export class ActionBar extends MandComponent { }
export class ActivityIndicator extends MandComponent { }
export class Agree extends MandComponent { }
export class Amount extends MandComponent { }
export class Bill extends MandComponent { }
export class Button extends MandComponent { }
export class Captcha extends MandComponent { }
export class Cashier extends MandComponent { }
export class CellItem extends MandComponent { }
export class Chart extends MandComponent { }
export class Check extends MandComponent { }
export class CheckBox extends MandComponent { }
export class CheckGroup extends MandComponent { }
export class CheckList extends MandComponent { }
export class Codebox extends MandComponent { }
export class DatePicker extends MandComponent { }
export class DetailItem extends MandComponent { }
export class DropMenu extends MandComponent { }
export class Field extends MandComponent { }
export class FieldItem extends MandComponent { }
export class Icon extends MandComponent { }
export class ImageReader extends MandComponent { }
export class ImageViewer extends MandComponent { }
export class InputItem extends MandComponent { }
export class Landscape extends MandComponent { }
export class NoticeBar extends MandComponent { }
export class NumberKeyboard extends MandComponent { }
export class Picker extends MandComponent { }
export class Popup extends MandComponent { }
export class PopupTitleBar extends MandComponent { }
export class Progress extends MandComponent { }
export class Radio extends MandComponent { }
export class RadioList extends MandComponent { }
export class ResultPage extends MandComponent { }
export class Ruler extends MandComponent { }
export class ScrollView extends MandComponent { }
export class ScrollViewMore extends MandComponent { }
export class ScrollViewRefresh extends MandComponent { }
export class Selector extends MandComponent { }
export class Slider extends MandComponent { }
export class Stepper extends MandComponent { }
export class Steps extends MandComponent { }
export class Swiper extends MandComponent { }
export class SwiperItem extends MandComponent { }
export class Switch extends MandComponent { }
export class TabBar extends MandComponent { }
export class TabPane extends MandComponent { }
export class TabPicker extends MandComponent { }
export class Tabs extends MandComponent { }
export class Tag extends MandComponent { }
export class Tip extends MandComponent { }
export class Transition extends MandComponent { }
export class WaterMark extends MandComponent { }
/* @init<%export class ${componentNameUpper} extends MandComponent { }%> */



// declare module 'mand-mobile/lib/image-reader/image-processor' {
// export = imageProcessor
// /**
// * export image processor options
// */
// export interface ImageProcessorOptions extends imageProcessor.ImageProcessorOptions { }
// export interface ImageProcessorData extends imageProcessor.ImageProcessorData { }
// }

export {
Toast,
Dialog,
ActionSheet
}
import * as mandMobile from './mand-mobile'
export default mandMobile
86 changes: 86 additions & 0 deletions types/mand-mobile.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
import Vue from 'vue'
import { MandComponent } from './component'
import { Toast } from './toast'
import { Dialog } from './dialog'
import { ActionSheet } from './action-sheet'

export function install(vue: typeof Vue): void

export const version: string

export class ActionBar extends MandComponent { }
export class ActivityIndicator extends MandComponent { }
export class Agree extends MandComponent { }
export class Amount extends MandComponent { }
export class Bill extends MandComponent { }
export class Button extends MandComponent { }
export class Captcha extends MandComponent { }
export class Cashier extends MandComponent { }
export class CellItem extends MandComponent { }
export class Chart extends MandComponent { }
export class Check extends MandComponent { }
export class CheckBox extends MandComponent { }
export class CheckGroup extends MandComponent { }
export class CheckList extends MandComponent { }
export class Codebox extends MandComponent { }
export class DatePicker extends MandComponent { }
export class DetailItem extends MandComponent { }
export class DropMenu extends MandComponent { }
export class Field extends MandComponent { }
export class FieldItem extends MandComponent { }
export class Icon extends MandComponent { }
export class ImageReader extends MandComponent { }
export class ImageViewer extends MandComponent { }
export class InputItem extends MandComponent { }
export class Landscape extends MandComponent { }
export class NoticeBar extends MandComponent { }
export class NumberKeyboard extends MandComponent { }
export class Picker extends MandComponent { }
export class Popup extends MandComponent { }
export class PopupTitleBar extends MandComponent { }
export class Progress extends MandComponent { }
export class Radio extends MandComponent { }
export class RadioList extends MandComponent { }
export class ResultPage extends MandComponent { }
export class Ruler extends MandComponent { }
export class ScrollView extends MandComponent { }
export class ScrollViewMore extends MandComponent { }
export class ScrollViewRefresh extends MandComponent { }
export class Selector extends MandComponent { }
export class Slider extends MandComponent { }
export class Stepper extends MandComponent { }
export class Steps extends MandComponent { }
export class Swiper extends MandComponent { }
export class SwiperItem extends MandComponent { }
export class Switch extends MandComponent { }
export class TabBar extends MandComponent { }
export class TabPane extends MandComponent { }
export class TabPicker extends MandComponent { }
export class Tabs extends MandComponent { }
export class Tag extends MandComponent { }
export class Tip extends MandComponent { }
export class Transition extends MandComponent { }
export class WaterMark extends MandComponent { }
/* @init<%export class ${componentNameUpper} extends MandComponent { }%> */



// declare module 'mand-mobile/lib/image-reader/image-processor' {
// export = imageProcessor
// /**
// * export image processor options
// */
// export interface ImageProcessorOptions extends imageProcessor.ImageProcessorOptions { }
// export interface ImageProcessorData extends imageProcessor.ImageProcessorData { }
// }

export {
Toast,
Dialog,
ActionSheet
}

export default {
install,
version
}

0 comments on commit 463c54c

Please sign in to comment.