Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@antdp/hooks

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antdp/hooks - npm Package Compare versions

Comparing version
2.0.0-bate.4.0
to
2.0.0-bate.5
+1
-2
esm/index.js

@@ -1,2 +0,1 @@

export { default as useTable } from './useTable';
//# sourceMappingURL=index.js.map
export { default as useTable } from './useTable';
import { useAntdTable } from 'ahooks';
declare type UseTableType = Parameters<typeof useAntdTable>;
type UseTableType = Parameters<typeof useAntdTable>;
declare function useTable(service: UseTableType[0], options: UseTableType[1]): {

@@ -4,0 +4,0 @@ tableProps: {

@@ -19,3 +19,2 @@ import _extends from "@babel/runtime/helpers/extends";

}
export default useTable;
//# sourceMappingURL=index.js.map
export default useTable;

@@ -13,3 +13,2 @@ "use strict";

});
var _useTable = _interopRequireDefault(require("./useTable"));
//# sourceMappingURL=index.js.map
var _useTable = _interopRequireDefault(require("./useTable"));
import { useAntdTable } from 'ahooks';
declare type UseTableType = Parameters<typeof useAntdTable>;
type UseTableType = Parameters<typeof useAntdTable>;
declare function useTable(service: UseTableType[0], options: UseTableType[1]): {

@@ -4,0 +4,0 @@ tableProps: {

@@ -29,3 +29,2 @@ "use strict";

exports["default"] = _default;
module.exports = exports.default;
//# sourceMappingURL=index.js.map
module.exports = exports.default;
{
"name": "@antdp/hooks",
"version": "2.0.0-bate.4.0",
"version": "2.0.0-bate.5",
"description": "@/antdp-hooks",

@@ -5,0 +5,0 @@ "homepage": "https://antdpro.github.io/antdp",

{
"version": 3,
"names": [
"default",
"useTable"
],
"sources": [
"../src/index.ts"
],
"sourcesContent": [
"export { default as useTable } from './useTable';"
],
"mappings": "AAAA,SAASA,OAAO,IAAIC,QAAQ,QAAQ,YAAY"
}
{
"version": 3,
"names": [
"useAntdTable",
"useTable",
"service",
"options",
"tableProps",
"search",
"_extends",
"defaultPageSize",
"pagination",
"showTotal",
"total"
],
"sources": [
"../../src/useTable/index.ts"
],
"sourcesContent": [
"import { useAntdTable } from 'ahooks';\n\n\ntype UseTableType = Parameters<typeof useAntdTable>\n\n\nfunction useTable(service: UseTableType[0], options: UseTableType[1]) {\n\n const { tableProps, search } = useAntdTable(service, {\n defaultPageSize: 20,\n ...options,\n\n });\n\n return {\n tableProps: {\n ...tableProps,\n pagination: {\n ...tableProps.pagination,\n showTotal: (total: number) => `总共: ${total} 条`,\n }\n },\n search\n }\n \n}\n\n\nexport default useTable"
],
"mappings": ";AAAA,SAASA,YAAY,QAAQ,QAAQ;AAMrC,SAASC,QAAQA,CAACC,OAAwB,EAAEC,OAAwB,EAAE;EAEpE,IAAM;IAAEC,UAAU;IAAEC;EAAO,CAAC,GAAGL,YAAY,CAACE,OAAO,EAAAI,QAAA;IACjDC,eAAe,EAAE;EAAE,GAChBJ,OAAO,EAEV;EAEF,OAAO;IACLC,UAAU,EAAAE,QAAA,KACLF,UAAU;MACbI,UAAU,EAAAF,QAAA,KACLF,UAAU,CAACI,UAAU;QACxBC,SAAS,EAAGC,KAAa,uBAAYA,KAAK;MAAI;IAC/C,EACF;IACDL;EACF,CAAC;AAEH;AAGA,eAAeJ,QAAQ"
}
{
"version": 3,
"names": [
"_useTable",
"_interopRequireDefault",
"require"
],
"sources": [
"../src/index.ts"
],
"sourcesContent": [
"export { default as useTable } from './useTable';"
],
"mappings": ";;;;;;;;;;;;AAAA,IAAAA,SAAA,GAAAC,sBAAA,CAAAC,OAAA"
}
{
"version": 3,
"names": [
"_ahooks",
"require",
"useTable",
"service",
"options",
"_useAntdTable",
"useAntdTable",
"_objectSpread2",
"defaultPageSize",
"tableProps",
"search",
"pagination",
"showTotal",
"total",
"concat",
"_default",
"exports",
"module",
"default"
],
"sources": [
"../../src/useTable/index.ts"
],
"sourcesContent": [
"import { useAntdTable } from 'ahooks';\n\n\ntype UseTableType = Parameters<typeof useAntdTable>\n\n\nfunction useTable(service: UseTableType[0], options: UseTableType[1]) {\n\n const { tableProps, search } = useAntdTable(service, {\n defaultPageSize: 20,\n ...options,\n\n });\n\n return {\n tableProps: {\n ...tableProps,\n pagination: {\n ...tableProps.pagination,\n showTotal: (total: number) => `总共: ${total} 条`,\n }\n },\n search\n }\n \n}\n\n\nexport default useTable"
],
"mappings": ";;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAMA,SAASC,QAAQA,CAACC,OAAwB,EAAEC,OAAwB,EAAE;EAEpE,IAAAC,aAAA,GAA+B,IAAAC,oBAAY,EAACH,OAAO,MAAAI,cAAA;MACjDC,eAAe,EAAE;IAAE,GAChBJ,OAAO,EAEV;IAJMK,UAAU,GAAAJ,aAAA,CAAVI,UAAU;IAAEC,MAAM,GAAAL,aAAA,CAANK,MAAM;EAM1B,OAAO;IACLD,UAAU,MAAAF,cAAA,iBAAAA,cAAA,iBACLE,UAAU;MACbE,UAAU,MAAAJ,cAAA,iBAAAA,cAAA,iBACLE,UAAU,CAACE,UAAU;QACxBC,SAAS,EAAE,SAAAA,UAACC,KAAa;UAAA,wBAAAC,MAAA,CAAYD,KAAK;QAAA;MAAI;IAC/C,EACF;IACDH,MAAM,EAANA;EACF,CAAC;AAEH;AAAC,IAAAK,QAAA,GAGcb,QAAQ;AAAAc,OAAA,cAAAD,QAAA;AAAAE,MAAA,CAAAD,OAAA,GAAAA,OAAA,CAAAE,OAAA"
}