@ahooksjs/use-async-default-plugin
Advanced tools
Comparing version 0.0.1 to 0.0.2-alpha.0
@@ -9,3 +9,2 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
import { FormPath } from '@formily/react'; | ||
import { methods } from '@ahooksjs/use-table'; | ||
@@ -41,2 +40,3 @@ var getValue = function getValue(data) { | ||
var actions = ctx.actions, | ||
methods = ctx.methods, | ||
meta = ctx.meta; | ||
@@ -43,0 +43,0 @@ var queryFrom = meta.queryFrom; |
@@ -1,2 +0,2 @@ | ||
import { FormTableNormalPlugin } from '@ahooksjs/use-table'; | ||
import { TableNormalPlugin } from '@ahooksjs/use-table'; | ||
declare type TQuery = () => Promise<any>; | ||
@@ -7,5 +7,5 @@ export interface IOptions { | ||
isDefault?: boolean; | ||
setDefaultValue?: () => void; | ||
setDefaultValue?: (data: IEnum[], name: string) => any; | ||
} | ||
export declare type TUseAsyncDefaultPlugin = (params: IOptions) => FormTableNormalPlugin; | ||
export declare type TUseAsyncDefaultPlugin = (params: IOptions) => TableNormalPlugin; | ||
interface IEnum { | ||
@@ -15,3 +15,3 @@ label: string; | ||
} | ||
export declare type IGetValue = (data: IEnum[], name?: string) => string; | ||
export declare type IGetValue = (data: IEnum[], name: string) => string; | ||
export {}; |
@@ -12,4 +12,2 @@ "use strict"; | ||
var _useTable = require("@ahooksjs/use-table"); | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
@@ -50,6 +48,7 @@ | ||
var actions = ctx.actions, | ||
methods = ctx.methods, | ||
meta = ctx.meta; | ||
var queryFrom = meta.queryFrom; | ||
if (queryFrom === _useTable.methods.ON_MOUNT) { | ||
if (queryFrom === methods.ON_MOUNT) { | ||
var queries; | ||
@@ -56,0 +55,0 @@ var fields; |
@@ -1,2 +0,2 @@ | ||
import { FormTableNormalPlugin } from '@ahooksjs/use-table'; | ||
import { TableNormalPlugin } from '@ahooksjs/use-table'; | ||
declare type TQuery = () => Promise<any>; | ||
@@ -7,5 +7,5 @@ export interface IOptions { | ||
isDefault?: boolean; | ||
setDefaultValue?: () => void; | ||
setDefaultValue?: (data: IEnum[], name: string) => any; | ||
} | ||
export declare type TUseAsyncDefaultPlugin = (params: IOptions) => FormTableNormalPlugin; | ||
export declare type TUseAsyncDefaultPlugin = (params: IOptions) => TableNormalPlugin; | ||
interface IEnum { | ||
@@ -15,3 +15,3 @@ label: string; | ||
} | ||
export declare type IGetValue = (data: IEnum[], name?: string) => string; | ||
export declare type IGetValue = (data: IEnum[], name: string) => string; | ||
export {}; |
{ | ||
"name": "@ahooksjs/use-async-default-plugin", | ||
"version": "0.0.1", | ||
"version": "0.0.2-alpha.0", | ||
"scripts": { | ||
@@ -13,3 +13,3 @@ "build:tsc": "tsc --project tsconfig.build.json --declarationDir ./lib && tsc --project tsconfig.build.json --declarationDir ./es" | ||
"dependencies": { | ||
"@ahooksjs/use-table": "^0.0.1" | ||
"@ahooksjs/use-table": "^0.0.2-alpha.0" | ||
}, | ||
@@ -20,3 +20,3 @@ "files": [ | ||
], | ||
"gitHead": "0fd0bf5f6cef648840bf37b99f604865f3930493" | ||
"gitHead": "ee471296d35000937cc6e268d5b16cb81107ea87" | ||
} |
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
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
10956
10
0
+ Added@ahooksjs/use-query-display@0.0.2(transitive)
+ Added@ahooksjs/use-table@0.0.2(transitive)
- Removed@ahooksjs/use-query-display@0.0.1(transitive)
- Removed@ahooksjs/use-table@0.0.1(transitive)