Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vap

Package Overview
Dependencies
Maintainers
1
Versions
568
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vap - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

Documents.d.ts

4

index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc