Comparing version 1.0.3 to 1.0.4
@@ -1,3 +0,3 @@ | ||
import'./utils'; | ||
import './utils'; | ||
import './layouts/admin'; | ||
import './Documents'; | ||
import './Documents'; |
@@ -1,18 +0,10 @@ | ||
import { ModalProps } from 'antd/lib/modal/Modal'; | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
export interface BaseModalStates { | ||
data?: any; | ||
[propName: string]: any; | ||
import { BaseModalProps, BaseModalStates } from './interface'; | ||
export default class BaseModal extends React.Component<BaseModalProps, BaseModalStates> { | ||
private LAST_SHOW; | ||
state: { | ||
data: {}; | ||
}; | ||
protected _didRender(initalObj?: any): void; | ||
} | ||
export interface BaseModalProps extends ModalProps { | ||
show: boolean; | ||
isEdit?: boolean; | ||
data?: any; | ||
dispatch?:any; | ||
[propName: string]: any; | ||
} | ||
export class BaseModal extends React.Component<BaseModalProps, BaseModalStates> {} |
@@ -1,4 +0,2 @@ | ||
/// <reference types="react" /> | ||
import { ModalProps } from 'antd/lib/modal/Modal'; | ||
export interface Column { | ||
@@ -10,3 +8,3 @@ /** | ||
/** | ||
* 列字段 | ||
* 列字段 | ||
*/ | ||
@@ -26,22 +24,25 @@ field: string; | ||
disabled?: boolean; | ||
// 默认为 : "text" | ||
type?: "text" | "number" | 'select' | 'radio' | 'checkbox' | 'date' | 'switch' | 'daterange' | 'icon' ; | ||
type?: "text" | "number" | 'select' | 'radio' | 'checkbox' | 'date' | 'switch' | 'daterange' | 'icon'; | ||
options?: any[]; | ||
inline?: boolean; | ||
// rule 用法: https://github.com/yiminghe/async-validator | ||
rule?: any[]; | ||
link?: { | ||
field:string, | ||
type?: "change"|"blur", | ||
callback:{Function(txt: string):any[]}, | ||
name:string, | ||
value:string, | ||
field: string; | ||
type?: "change" | "blur"; | ||
callback: { | ||
Function(txt: string): any[]; | ||
}; | ||
name: string; | ||
value: string; | ||
}; | ||
//说明:目前onChange,onFocus,onBlur 仅在 type 为 "text" 时有效 | ||
onChange?: { Function(txt: string): void }; | ||
onFocus?: { Function(txt: string): void }; | ||
onBlur?: { Function(txt: string): void }; | ||
onChange?: { | ||
Function(txt: string): void; | ||
}; | ||
onFocus?: { | ||
Function(txt: string): void; | ||
}; | ||
onBlur?: { | ||
Function(txt: string): void; | ||
}; | ||
} | ||
export interface FromModalProps extends ModalProps { | ||
@@ -51,2 +52,2 @@ isEdit?: boolean; | ||
columns: Column[]; | ||
} | ||
} |
import { ModalProps } from 'antd/lib/modal/Modal'; | ||
export interface Column { | ||
title: string; | ||
field: string; | ||
map?:any; | ||
list?:any[]; | ||
key?:string; | ||
map?: any; | ||
list?: any[]; | ||
key?: string; | ||
} | ||
export interface InfoModalProps extends ModalProps { | ||
data: any; | ||
columns: Column[]; | ||
} | ||
} |
@@ -1,7 +0,2 @@ | ||
/// <reference types="react" /> | ||
import * as React from 'react'; | ||
import { TableProps } from 'antd/lib/table/interface'; | ||
export as namespace TableLayout; | ||
/** | ||
@@ -18,7 +13,8 @@ * @param {string} name 过滤器名 | ||
const filters = [] | ||
``` | ||
``` | ||
*/ | ||
export interface Option{ | ||
name: string, value: string | number,checked?:boolean | ||
export interface Option { | ||
name: string; | ||
value: string | number; | ||
checked?: boolean; | ||
} | ||
@@ -29,8 +25,8 @@ /** | ||
export interface Filter { | ||
name: string, | ||
field: string, | ||
options?: Option[], | ||
muti?: boolean, | ||
mutisplit?: string, | ||
inline?: boolean | ||
name: string; | ||
field: string; | ||
options?: Option[]; | ||
muti?: boolean; | ||
mutisplit?: string; | ||
inline?: boolean; | ||
} | ||
@@ -41,4 +37,4 @@ /** | ||
export interface Search { | ||
name: string, | ||
field: string, | ||
name: string; | ||
field: string; | ||
} | ||
@@ -48,25 +44,20 @@ /** | ||
*/ | ||
interface Action{ | ||
name:string, | ||
icon?: string, | ||
mustSelect?: boolean, | ||
action?: Function, | ||
export interface Action { | ||
name: string; | ||
icon?: string; | ||
mustSelect?: boolean; | ||
action?: Function; | ||
} | ||
export interface DataTableProps<T> extends TableProps<T> { | ||
total: number, | ||
fetch: string, | ||
dispatch: Function, | ||
select?: boolean, | ||
filters?: Filter[], | ||
searchs?: Search[], | ||
actions?: Action[], | ||
order?:{ | ||
by:string, | ||
desc:boolean, | ||
}, | ||
total: number; | ||
fetch: string; | ||
dispatch: Function; | ||
select?: boolean; | ||
filters?: Filter[]; | ||
searchs?: Search[]; | ||
actions?: Action[]; | ||
order?: { | ||
by: string; | ||
desc: boolean; | ||
}; | ||
} | ||
// enum Validate{ | ||
// } |
{ | ||
"name": "vap", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "vap", | ||
"main": "lib/index.js", | ||
"main": "index.js", | ||
"scripts": { | ||
@@ -7,0 +7,0 @@ "test": "echo \"Error: no test specified\" && exit 1" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99925
54
2614
2