宋成林 7 年之前
父节点
当前提交
f595471abe
共有 2 个文件被更改,包括 49 次插入6 次删除
  1. 1 5
      types/index.d.ts
  2. 48 1
      types/nutui.d.ts

+ 1 - 5
types/index.d.ts

@@ -1,7 +1,3 @@
 import * as NutUI from './nutui'
 export default NutUI
-
-
-
-
-
+export * from './nutui'

+ 48 - 1
types/nutui.d.ts

@@ -1,4 +1,50 @@
 import Vue  from 'vue';
+
+declare class UIComponent extends Vue {
+    static install (vue: typeof Vue): void
+}
+
+export declare class ActionSheet extends UIComponent {}
+export declare class Badge extends UIComponent {}
+export declare class Button extends UIComponent {}
+export declare class ButtonGroup extends UIComponent {}
+export declare class Calendar extends UIComponent {}
+export declare class Cell extends UIComponent {}
+export declare class CheckBox extends UIComponent {}
+export declare class CheckBoxGroup extends UIComponent {}
+export declare class Col extends UIComponent {}
+export declare class DatePicker extends UIComponent {}
+export declare class Dialog extends UIComponent {}
+export declare class Flex extends UIComponent {}
+export declare class Grid extends UIComponent {}
+export declare class GridCol extends UIComponent {}
+export declare class GridRow extends UIComponent {}
+export declare class Icon extends UIComponent {}
+export declare class ImagePicker extends UIComponent {}
+export declare class Menu extends UIComponent {}
+export declare class Navbar extends UIComponent {}
+export declare class NoticeBar extends UIComponent {}
+export declare class Picker extends UIComponent {}
+export declare class Price extends UIComponent {}
+export declare class Progress extends UIComponent {}
+export declare class Radio extends UIComponent {}
+export declare class RadioGroup extends UIComponent {}
+export declare class Range extends UIComponent {}
+export declare class Rating extends UIComponent {}
+export declare class Row extends UIComponent {}
+export declare class SearchBar extends UIComponent {}
+export declare class ShortPassword extends UIComponent {}
+export declare class Skeleton extends UIComponent {}
+export declare class Slider extends UIComponent {}
+export declare class Stepper extends UIComponent {}
+export declare class Steps extends UIComponent {}
+export declare class Swiper extends UIComponent {}
+export declare class Switch extends UIComponent {}
+export declare class Tab extends UIComponent {}
+export declare class Tabbar extends UIComponent {}
+export declare class TabPanel extends UIComponent {}
+export declare class Toast extends UIComponent {}
+
 export interface InstallationOptions {
     locale?: any
     lang?: any
@@ -8,4 +54,5 @@ export const version: string
 
 export const locale: (l:any) => void
 
-export function install (vue: typeof Vue, options: InstallationOptions): void
+export function install (vue: typeof Vue, options: InstallationOptions): void
+