@hw-component/table 0.0.8-beta-v2 → 0.0.8-beta-v3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintcache CHANGED
@@ -1 +1 @@
1
- [{"/Users/hedongjie/Desktop/web/hw-component-table/src/Layout.tsx":"1","/Users/hedongjie/Desktop/web/hw-component-table/src/app.tsx":"2","/Users/hedongjie/Desktop/web/hw-component-table/src/index.tsx":"3","/Users/hedongjie/Desktop/web/hw-component-table/src/routes.tsx":"4","/Users/hedongjie/Desktop/web/hw-component-table/src/components/index.tsx":"5","/Users/hedongjie/Desktop/web/hw-component-table/src/components/Table.tsx":"6","/Users/hedongjie/Desktop/web/hw-component-table/src/components/context.ts":"7","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useCurrentTable.ts":"8","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useHTable.tsx":"9","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useRowObj.ts":"10","/Users/hedongjie/Desktop/web/hw-component-table/src/components/modal.ts":"11","/Users/hedongjie/Desktop/web/hw-component-table/src/components/TableConfig.tsx":"12","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/index.tsx":"13","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableFooter/index.tsx":"14","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/index.tsx":"15","/Users/hedongjie/Desktop/web/hw-component-table/src/components/TableCustomize.tsx":"16","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useDispatch.ts":"17","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useReq.ts":"18","/Users/hedongjie/Desktop/web/hw-component-table/src/pages/Table/index.tsx":"19","/Users/hedongjie/Desktop/web/hw-component-table/src/pages/TableCustomize/index.tsx":"20","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTablePagination/index.tsx":"21","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/index.ts":"22","/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/hooks.ts":"23","/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/index.tsx":"24","/Users/hedongjie/Desktop/web/hw-component-table/src/pages/ModalTable/index.tsx":"25","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/AlertMsg.tsx":"26","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/RowSelection.tsx":"27","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/hooks.tsx":"28","/Users/hedongjie/Desktop/web/hw-component-table/src/components/GoTop/index.tsx":"29","/Users/hedongjie/Desktop/web/hw-component-table/src/typings.d.ts":"30","/Users/hedongjie/Desktop/web/hw-component-table/scripts/rollup.config.js":"31","/Users/hedongjie/Desktop/web/hw-component-table/scripts/webpack.config.js":"32","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/hooks.tsx":"33","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/defaultSubComponent.tsx":"34","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/modal.ts":"35","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/Content.tsx":"36","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/Title.tsx":"37","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/index.tsx":"38","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/modal.d.ts":"39"},{"size":1541,"mtime":1709541397429,"results":"40","hashOfConfig":"41"},{"size":741,"mtime":1709541397429,"results":"42","hashOfConfig":"41"},{"size":308,"mtime":1709541397430,"results":"43","hashOfConfig":"41"},{"size":769,"mtime":1710811861083,"results":"44","hashOfConfig":"41"},{"size":590,"mtime":1710764754366,"results":"45","hashOfConfig":"41"},{"size":2264,"mtime":1711371966406,"results":"46","hashOfConfig":"41"},{"size":1001,"mtime":1711095487545,"results":"47","hashOfConfig":"41"},{"size":1011,"mtime":1710420049825,"results":"48","hashOfConfig":"41"},{"size":615,"mtime":1711372222024,"results":"49","hashOfConfig":"41"},{"size":676,"mtime":1710420049843,"results":"50","hashOfConfig":"41"},{"size":3895,"mtime":1711372222039,"results":"51","hashOfConfig":"41"},{"size":932,"mtime":1709620303143,"results":"52","hashOfConfig":"41"},{"size":4425,"mtime":1711372221997,"results":"53","hashOfConfig":"41"},{"size":2216,"mtime":1710420049765,"results":"54","hashOfConfig":"41"},{"size":1396,"mtime":1711159046327,"results":"55","hashOfConfig":"41"},{"size":1811,"mtime":1711095484422,"results":"56","hashOfConfig":"41"},{"size":209,"mtime":1711180552221,"results":"57","hashOfConfig":"41"},{"size":1410,"mtime":1711180552221,"results":"58","hashOfConfig":"41"},{"size":2409,"mtime":1711372222053,"results":"59","hashOfConfig":"41"},{"size":1711,"mtime":1711018011830,"results":"60","hashOfConfig":"41"},{"size":2815,"mtime":1711180552221,"results":"61","hashOfConfig":"41"},{"size":498,"mtime":1709893919938,"results":"62","hashOfConfig":"41"},{"size":1477,"mtime":1711018011772,"results":"63","hashOfConfig":"41"},{"size":1989,"mtime":1711018011783,"results":"64","hashOfConfig":"41"},{"size":2065,"mtime":1711018011810,"results":"65","hashOfConfig":"41"},{"size":1068,"mtime":1710763360964,"results":"66","hashOfConfig":"41"},{"size":3603,"mtime":1711017972577,"results":"67","hashOfConfig":"41"},{"size":2803,"mtime":1711372221978,"results":"68","hashOfConfig":"41"},{"size":1102,"mtime":1710829302576,"results":"69","hashOfConfig":"41"},{"size":1162,"mtime":1710829299926,"results":"70","hashOfConfig":"41"},{"size":2302,"mtime":1711102156682,"results":"71","hashOfConfig":"41"},{"size":1688,"mtime":1710827401948,"results":"72","hashOfConfig":"41"},{"size":4365,"mtime":1711372222017,"results":"73","hashOfConfig":"41"},{"size":1908,"mtime":1711102159240,"results":"74","hashOfConfig":"41"},{"size":445,"mtime":1711180552220,"results":"75","hashOfConfig":"41"},{"size":1561,"mtime":1711372221921},{"size":1345,"mtime":1711372221942},{"size":3464,"mtime":1711372221962},{"size":467,"mtime":1711372221967},{"filePath":"76","messages":"77","suppressedMessages":"78","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1mh59l9",{"filePath":"79","messages":"80","suppressedMessages":"81","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"82","messages":"83","suppressedMessages":"84","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"85","messages":"86","suppressedMessages":"87","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"88","messages":"89","suppressedMessages":"90","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"91","messages":"92","suppressedMessages":"93","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"94","messages":"95","suppressedMessages":"96","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"97","messages":"98","suppressedMessages":"99","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"100","messages":"101","suppressedMessages":"102","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"103","messages":"104","suppressedMessages":"105","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"106","messages":"107","suppressedMessages":"108","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"109","messages":"110","suppressedMessages":"111","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"112","messages":"113","suppressedMessages":"114","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"115","messages":"116","suppressedMessages":"117","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","suppressedMessages":"120","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"121","messages":"122","suppressedMessages":"123","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","suppressedMessages":"126","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"127","messages":"128","suppressedMessages":"129","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"130","messages":"131","suppressedMessages":"132","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"133","messages":"134","suppressedMessages":"135","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"136","messages":"137","suppressedMessages":"138","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"139","messages":"140","suppressedMessages":"141","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"142","messages":"143","suppressedMessages":"144","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"145","messages":"146","suppressedMessages":"147","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"148","messages":"149","suppressedMessages":"150","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"151","messages":"152","suppressedMessages":"153","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"154","messages":"155","suppressedMessages":"156","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"157","messages":"158","suppressedMessages":"159","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"160","messages":"161","suppressedMessages":"162","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"163","messages":"164","suppressedMessages":"165","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"166","messages":"167","suppressedMessages":"168","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"169","messages":"170","suppressedMessages":"171","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","suppressedMessages":"174","errorCount":0,"fatalErrorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"175","messages":"176","suppressedMessages":"177","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","suppressedMessages":"180","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/hedongjie/Desktop/web/hw-component-table/src/Layout.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/app.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/routes.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/Table.tsx",["181","182"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/context.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useCurrentTable.ts",["183"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useHTable.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useRowObj.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/modal.ts",["184"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/TableConfig.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableFooter/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/TableCustomize.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useDispatch.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useReq.ts",["185"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/Table/index.tsx",["186","187"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/TableCustomize/index.tsx",["188","189","190"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTablePagination/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/index.ts",["191"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/hooks.ts",["192","193","194"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/ModalTable/index.tsx",["195","196","197","198"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/AlertMsg.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/RowSelection.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/hooks.tsx",["199"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/GoTop/index.tsx",["200","201"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/typings.d.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/scripts/rollup.config.js",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/scripts/webpack.config.js",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/hooks.tsx",["202","203","204","205","206"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/defaultSubComponent.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/modal.ts",[],[],{"ruleId":"207","severity":1,"message":"208","line":20,"column":3,"nodeType":"209","messageId":"210","endLine":20,"endColumn":12},{"ruleId":"207","severity":1,"message":"211","line":21,"column":3,"nodeType":"209","messageId":"210","endLine":21,"endColumn":12},{"ruleId":"212","severity":1,"message":"213","line":31,"column":6,"nodeType":"214","endLine":31,"endColumn":13,"suggestions":"215"},{"ruleId":"207","severity":1,"message":"216","line":58,"column":6,"nodeType":"209","messageId":"210","endLine":58,"endColumn":20},{"ruleId":"212","severity":1,"message":"217","line":50,"column":6,"nodeType":"214","endLine":50,"endColumn":8,"suggestions":"218"},{"ruleId":"207","severity":1,"message":"219","line":44,"column":7,"nodeType":"209","messageId":"210","endLine":44,"endColumn":11},{"ruleId":"207","severity":1,"message":"220","line":85,"column":42,"nodeType":"209","messageId":"210","endLine":85,"endColumn":48},{"ruleId":"207","severity":1,"message":"221","line":5,"column":3,"nodeType":"209","messageId":"210","endLine":5,"endColumn":15},{"ruleId":"207","severity":1,"message":"222","line":6,"column":3,"nodeType":"209","messageId":"210","endLine":6,"endColumn":19},{"ruleId":"207","severity":1,"message":"220","line":41,"column":36,"nodeType":"209","messageId":"210","endLine":41,"endColumn":42},{"ruleId":"212","severity":1,"message":"223","line":13,"column":6,"nodeType":"214","endLine":13,"endColumn":17,"suggestions":"224"},{"ruleId":"207","severity":1,"message":"225","line":15,"column":14,"nodeType":"209","messageId":"210","endLine":15,"endColumn":39},{"ruleId":"212","severity":1,"message":"226","line":18,"column":6,"nodeType":"214","endLine":18,"endColumn":8,"suggestions":"227"},{"ruleId":"212","severity":1,"message":"228","line":46,"column":6,"nodeType":"214","endLine":46,"endColumn":8,"suggestions":"229"},{"ruleId":"207","severity":1,"message":"230","line":24,"column":7,"nodeType":"209","messageId":"210","endLine":24,"endColumn":11},{"ruleId":"207","severity":1,"message":"220","line":27,"column":32,"nodeType":"209","messageId":"210","endLine":27,"endColumn":38},{"ruleId":"207","severity":1,"message":"220","line":48,"column":32,"nodeType":"209","messageId":"210","endLine":48,"endColumn":38},{"ruleId":"207","severity":1,"message":"231","line":87,"column":9,"nodeType":"209","messageId":"210","endLine":87,"endColumn":21},{"ruleId":"212","severity":1,"message":"232","line":71,"column":6,"nodeType":"214","endLine":71,"endColumn":40,"suggestions":"233"},{"ruleId":"212","severity":1,"message":"234","line":26,"column":6,"nodeType":"214","endLine":26,"endColumn":11,"suggestions":"235"},{"ruleId":"212","severity":1,"message":"234","line":34,"column":6,"nodeType":"214","endLine":34,"endColumn":8,"suggestions":"236"},{"ruleId":"207","severity":1,"message":"237","line":66,"column":3,"nodeType":"209","messageId":"210","endLine":66,"endColumn":20},{"ruleId":"207","severity":1,"message":"238","line":67,"column":3,"nodeType":"209","messageId":"210","endLine":67,"endColumn":13},{"ruleId":"207","severity":1,"message":"239","line":68,"column":3,"nodeType":"209","messageId":"210","endLine":68,"endColumn":14},{"ruleId":"212","severity":1,"message":"240","line":164,"column":6,"nodeType":"214","endLine":164,"endColumn":42,"suggestions":"241"},{"ruleId":"212","severity":1,"message":"240","line":170,"column":6,"nodeType":"214","endLine":170,"endColumn":42,"suggestions":"242"},"@typescript-eslint/no-unused-vars","'spaceSize' is assigned a value but never used.","Identifier","unusedVar","'className' is defined but never used.","react-hooks/exhaustive-deps","React Hook useMemo has missing dependencies: 'changeRowData', 'dispatch', 'getTableParams', 'reload', 'reloadWithParams', and 'useCurrentTable'. Either include them or remove the dependency array.","ArrayExpression",["243"],"'FooterRenderFn' is defined but never used.","React Hook useEffect has missing dependencies: 'manual', 'reloadFn', 'request', and 'resultAction'. Either include them or remove the dependency array.",["244"],"'Test' is assigned a value but never used.","'reject' is defined but never used.","'HTableFooter' is defined but never used.","'HTablePagination' is defined but never used.","React Hook useMemo has a missing dependency: 'config'. Either include it or remove the dependency array.",["245"],"'params' is defined but never used.","React Hook useMemo has a missing dependency: 'tableInstance'. Either include it or remove the dependency array.",["246"],"React Hook useEffect has missing dependencies: 'dialogTableInstance', 'hide', and 'show'. Either include them or remove the dependency array.",["247"],"'req1' is assigned a value but never used.","'dialogTable1' is assigned a value but never used.","React Hook useEffect has a missing dependency: 'rowOnChange'. Either include it or remove the dependency array.",["248"],"React Hook useEffect has a missing dependency: 'cuDom'. Either include it or remove the dependency array.",["249"],["250"],"'childrenDataIndex' is defined but never used.","'showSearch' is defined but never used.","'hideInTable' is defined but never used.","React Hook useEffect has a missing dependency: 'mkNewFn'. Either include it or remove the dependency array.",["251"],["252"],{"desc":"253","fix":"254"},{"desc":"255","fix":"256"},{"desc":"257","fix":"258"},{"desc":"259","fix":"260"},{"desc":"261","fix":"262"},{"desc":"263","fix":"264"},{"desc":"265","fix":"266"},{"desc":"267","fix":"268"},{"desc":"269","fix":"270"},{"desc":"269","fix":"271"},"Update the dependencies array to be: [changeRowData, dispatch, getTableParams, reload, reloadWithParams, table, useCurrentTable]",{"range":"272","text":"273"},"Update the dependencies array to be: [manual, reloadFn, request, resultAction]",{"range":"274","text":"275"},"Update the dependencies array to be: [className, config]",{"range":"276","text":"277"},"Update the dependencies array to be: [tableInstance]",{"range":"278","text":"279"},"Update the dependencies array to be: [dialogTableInstance, hide, show]",{"range":"280","text":"281"},"Update the dependencies array to be: [selectedRowKeys, records, rowKey, rowOnChange]",{"range":"282","text":"283"},"Update the dependencies array to be: [cuDom, dom]",{"range":"284","text":"285"},"Update the dependencies array to be: [cuDom]",{"range":"286","text":"287"},"Update the dependencies array to be: [configData, searchSpan, headerOpen, mkNewFn]",{"range":"288","text":"289"},{"range":"290","text":"289"},[998,1005],"[changeRowData, dispatch, getTableParams, reload, reloadWithParams, table, useCurrentTable]",[1222,1224],"[manual, reloadFn, request, resultAction]",[481,492],"[className, config]",[495,497],"[tableInstance]",[1201,1203],"[dialogTableInstance, hide, show]",[2137,2171],"[selectedRowKeys, records, rowKey, rowOnChange]",[825,830],"[cuDom, dom]",[1021,1023],"[cuDom]",[4093,4129],"[configData, searchSpan, headerOpen, mkNewFn]",[4284,4320]]
1
+ [{"/Users/hedongjie/Desktop/web/hw-component-table/src/Layout.tsx":"1","/Users/hedongjie/Desktop/web/hw-component-table/src/app.tsx":"2","/Users/hedongjie/Desktop/web/hw-component-table/src/index.tsx":"3","/Users/hedongjie/Desktop/web/hw-component-table/src/routes.tsx":"4","/Users/hedongjie/Desktop/web/hw-component-table/src/components/index.tsx":"5","/Users/hedongjie/Desktop/web/hw-component-table/src/components/Table.tsx":"6","/Users/hedongjie/Desktop/web/hw-component-table/src/components/context.ts":"7","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useCurrentTable.ts":"8","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useHTable.tsx":"9","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useRowObj.ts":"10","/Users/hedongjie/Desktop/web/hw-component-table/src/components/modal.ts":"11","/Users/hedongjie/Desktop/web/hw-component-table/src/components/TableConfig.tsx":"12","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/index.tsx":"13","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableFooter/index.tsx":"14","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/index.tsx":"15","/Users/hedongjie/Desktop/web/hw-component-table/src/components/TableCustomize.tsx":"16","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useDispatch.ts":"17","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useReq.ts":"18","/Users/hedongjie/Desktop/web/hw-component-table/src/pages/Table/index.tsx":"19","/Users/hedongjie/Desktop/web/hw-component-table/src/pages/TableCustomize/index.tsx":"20","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTablePagination/index.tsx":"21","/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/index.ts":"22","/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/hooks.ts":"23","/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/index.tsx":"24","/Users/hedongjie/Desktop/web/hw-component-table/src/pages/ModalTable/index.tsx":"25","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/AlertMsg.tsx":"26","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/RowSelection.tsx":"27","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/hooks.tsx":"28","/Users/hedongjie/Desktop/web/hw-component-table/src/components/GoTop/index.tsx":"29","/Users/hedongjie/Desktop/web/hw-component-table/src/typings.d.ts":"30","/Users/hedongjie/Desktop/web/hw-component-table/scripts/rollup.config.js":"31","/Users/hedongjie/Desktop/web/hw-component-table/scripts/webpack.config.js":"32","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/hooks.tsx":"33","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/defaultSubComponent.tsx":"34","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/modal.ts":"35","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/Content.tsx":"36","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/Title.tsx":"37","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/index.tsx":"38","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/modal.d.ts":"39","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/utils.ts":"40"},{"size":1541,"mtime":1709541397429,"results":"41","hashOfConfig":"42"},{"size":741,"mtime":1709541397429,"results":"43","hashOfConfig":"42"},{"size":308,"mtime":1709541397430,"results":"44","hashOfConfig":"42"},{"size":769,"mtime":1710811861083,"results":"45","hashOfConfig":"42"},{"size":590,"mtime":1710764754366,"results":"46","hashOfConfig":"42"},{"size":2391,"mtime":1711680603085,"results":"47","hashOfConfig":"42"},{"size":1001,"mtime":1711095487545,"results":"48","hashOfConfig":"42"},{"size":1029,"mtime":1711679923592,"results":"49","hashOfConfig":"42"},{"size":709,"mtime":1711680386755,"results":"50","hashOfConfig":"42"},{"size":676,"mtime":1710420049843,"results":"51","hashOfConfig":"42"},{"size":4150,"mtime":1711680603116,"results":"52","hashOfConfig":"42"},{"size":932,"mtime":1709620303143,"results":"53","hashOfConfig":"42"},{"size":4580,"mtime":1711679783882,"results":"54","hashOfConfig":"42"},{"size":2216,"mtime":1710420049765,"results":"55","hashOfConfig":"42"},{"size":1396,"mtime":1711159046327,"results":"56","hashOfConfig":"42"},{"size":1811,"mtime":1711095484422,"results":"57","hashOfConfig":"42"},{"size":209,"mtime":1711180552221,"results":"58","hashOfConfig":"42"},{"size":1410,"mtime":1711180552221,"results":"59","hashOfConfig":"42"},{"size":2556,"mtime":1711679783962,"results":"60","hashOfConfig":"42"},{"size":1711,"mtime":1711018011830,"results":"61","hashOfConfig":"42"},{"size":2815,"mtime":1711180552221,"results":"62","hashOfConfig":"42"},{"size":498,"mtime":1709893919938,"results":"63","hashOfConfig":"42"},{"size":1493,"mtime":1711679783897,"results":"64","hashOfConfig":"42"},{"size":2063,"mtime":1711679783908,"results":"65","hashOfConfig":"42"},{"size":2361,"mtime":1711679783952,"results":"66","hashOfConfig":"42"},{"size":1068,"mtime":1710763360964,"results":"67","hashOfConfig":"42"},{"size":3603,"mtime":1711017972577,"results":"68","hashOfConfig":"42"},{"size":2820,"mtime":1711679783860,"results":"69","hashOfConfig":"42"},{"size":1102,"mtime":1710829302576,"results":"70","hashOfConfig":"42"},{"size":1162,"mtime":1710829299926,"results":"71","hashOfConfig":"42"},{"size":2302,"mtime":1711102156682,"results":"72","hashOfConfig":"42"},{"size":1688,"mtime":1710827401948,"results":"73","hashOfConfig":"42"},{"size":4365,"mtime":1711372222017,"results":"74","hashOfConfig":"42"},{"size":1908,"mtime":1711102159240,"results":"75","hashOfConfig":"42"},{"size":445,"mtime":1711180552220,"results":"76","hashOfConfig":"42"},{"size":1624,"mtime":1711679783797,"results":"77","hashOfConfig":"42"},{"size":1349,"mtime":1711679772700,"results":"78","hashOfConfig":"42"},{"size":3172,"mtime":1711679783837,"results":"79","hashOfConfig":"42"},{"size":482,"mtime":1711372224438,"results":"80","hashOfConfig":"42"},{"size":1232,"mtime":1711679786298,"results":"81","hashOfConfig":"42"},{"filePath":"82","messages":"83","suppressedMessages":"84","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1mh59l9",{"filePath":"85","messages":"86","suppressedMessages":"87","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"88","messages":"89","suppressedMessages":"90","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"91","messages":"92","suppressedMessages":"93","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"94","messages":"95","suppressedMessages":"96","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"97","messages":"98","suppressedMessages":"99","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"100","messages":"101","suppressedMessages":"102","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"103","messages":"104","suppressedMessages":"105","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"106","messages":"107","suppressedMessages":"108","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"109","messages":"110","suppressedMessages":"111","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"112","messages":"113","suppressedMessages":"114","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"115","messages":"116","suppressedMessages":"117","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","suppressedMessages":"120","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"121","messages":"122","suppressedMessages":"123","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","suppressedMessages":"126","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"127","messages":"128","suppressedMessages":"129","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"130","messages":"131","suppressedMessages":"132","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"133","messages":"134","suppressedMessages":"135","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"136","messages":"137","suppressedMessages":"138","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"139","messages":"140","suppressedMessages":"141","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"142","messages":"143","suppressedMessages":"144","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"145","messages":"146","suppressedMessages":"147","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"148","messages":"149","suppressedMessages":"150","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"151","messages":"152","suppressedMessages":"153","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"154","messages":"155","suppressedMessages":"156","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"157","messages":"158","suppressedMessages":"159","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"160","messages":"161","suppressedMessages":"162","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"163","messages":"164","suppressedMessages":"165","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"166","messages":"167","suppressedMessages":"168","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"169","messages":"170","suppressedMessages":"171","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","suppressedMessages":"174","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"175","messages":"176","suppressedMessages":"177","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","suppressedMessages":"180","errorCount":0,"fatalErrorCount":0,"warningCount":5,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"181","messages":"182","suppressedMessages":"183","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","suppressedMessages":"186","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"187","messages":"188","suppressedMessages":"189","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"190","messages":"191","suppressedMessages":"192","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"193","messages":"194","suppressedMessages":"195","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"196","messages":"197","suppressedMessages":"198","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"199","messages":"200","suppressedMessages":"201","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/hedongjie/Desktop/web/hw-component-table/src/Layout.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/app.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/routes.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/Table.tsx",["202","203"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/context.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useCurrentTable.ts",["204"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useHTable.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useRowObj.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/modal.ts",["205"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/TableConfig.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableFooter/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/TableCustomize.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useDispatch.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useReq.ts",["206"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/Table/index.tsx",["207","208"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/TableCustomize/index.tsx",["209","210","211"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTablePagination/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/index.ts",["212"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/hooks.ts",["213","214","215"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/index.tsx",["216"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/ModalTable/index.tsx",["217","218","219","220"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/AlertMsg.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/RowSelection.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/hooks.tsx",["221","222"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/GoTop/index.tsx",["223","224"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/typings.d.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/scripts/rollup.config.js",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/scripts/webpack.config.js",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/hooks.tsx",["225","226","227","228","229"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/defaultSubComponent.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/modal.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/Content.tsx",["230"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/Title.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/index.tsx",["231"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/modal.d.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/utils.ts",[],[],{"ruleId":"232","severity":1,"message":"233","line":20,"column":3,"nodeType":"234","messageId":"235","endLine":20,"endColumn":12},{"ruleId":"232","severity":1,"message":"236","line":21,"column":3,"nodeType":"234","messageId":"235","endLine":21,"endColumn":12},{"ruleId":"237","severity":1,"message":"238","line":31,"column":6,"nodeType":"239","endLine":31,"endColumn":13,"suggestions":"240"},{"ruleId":"232","severity":1,"message":"241","line":59,"column":6,"nodeType":"234","messageId":"235","endLine":59,"endColumn":20},{"ruleId":"237","severity":1,"message":"242","line":50,"column":6,"nodeType":"239","endLine":50,"endColumn":8,"suggestions":"243"},{"ruleId":"232","severity":1,"message":"244","line":44,"column":7,"nodeType":"234","messageId":"235","endLine":44,"endColumn":11},{"ruleId":"232","severity":1,"message":"245","line":90,"column":42,"nodeType":"234","messageId":"235","endLine":90,"endColumn":48},{"ruleId":"232","severity":1,"message":"246","line":5,"column":3,"nodeType":"234","messageId":"235","endLine":5,"endColumn":15},{"ruleId":"232","severity":1,"message":"247","line":6,"column":3,"nodeType":"234","messageId":"235","endLine":6,"endColumn":19},{"ruleId":"232","severity":1,"message":"245","line":41,"column":36,"nodeType":"234","messageId":"235","endLine":41,"endColumn":42},{"ruleId":"237","severity":1,"message":"248","line":13,"column":6,"nodeType":"239","endLine":13,"endColumn":17,"suggestions":"249"},{"ruleId":"232","severity":1,"message":"250","line":15,"column":14,"nodeType":"234","messageId":"235","endLine":15,"endColumn":39},{"ruleId":"237","severity":1,"message":"251","line":19,"column":6,"nodeType":"239","endLine":19,"endColumn":8,"suggestions":"252"},{"ruleId":"237","severity":1,"message":"253","line":47,"column":6,"nodeType":"239","endLine":47,"endColumn":8,"suggestions":"254"},{"ruleId":"232","severity":1,"message":"255","line":3,"column":32,"nodeType":"234","messageId":"235","endLine":3,"endColumn":43},{"ruleId":"232","severity":1,"message":"256","line":24,"column":7,"nodeType":"234","messageId":"235","endLine":24,"endColumn":11},{"ruleId":"232","severity":1,"message":"245","line":27,"column":32,"nodeType":"234","messageId":"235","endLine":27,"endColumn":38},{"ruleId":"232","severity":1,"message":"245","line":48,"column":32,"nodeType":"234","messageId":"235","endLine":48,"endColumn":38},{"ruleId":"232","severity":1,"message":"257","line":87,"column":9,"nodeType":"234","messageId":"235","endLine":87,"endColumn":21},{"ruleId":"237","severity":1,"message":"258","line":57,"column":6,"nodeType":"239","endLine":57,"endColumn":39,"suggestions":"259"},{"ruleId":"237","severity":1,"message":"260","line":86,"column":6,"nodeType":"239","endLine":86,"endColumn":40,"suggestions":"261"},{"ruleId":"237","severity":1,"message":"262","line":26,"column":6,"nodeType":"239","endLine":26,"endColumn":11,"suggestions":"263"},{"ruleId":"237","severity":1,"message":"262","line":34,"column":6,"nodeType":"239","endLine":34,"endColumn":8,"suggestions":"264"},{"ruleId":"232","severity":1,"message":"265","line":66,"column":3,"nodeType":"234","messageId":"235","endLine":66,"endColumn":20},{"ruleId":"232","severity":1,"message":"266","line":67,"column":3,"nodeType":"234","messageId":"235","endLine":67,"endColumn":13},{"ruleId":"232","severity":1,"message":"267","line":68,"column":3,"nodeType":"234","messageId":"235","endLine":68,"endColumn":14},{"ruleId":"237","severity":1,"message":"268","line":164,"column":6,"nodeType":"239","endLine":164,"endColumn":42,"suggestions":"269"},{"ruleId":"237","severity":1,"message":"268","line":170,"column":6,"nodeType":"239","endLine":170,"endColumn":42,"suggestions":"270"},{"ruleId":"237","severity":1,"message":"271","line":26,"column":6,"nodeType":"239","endLine":26,"endColumn":15,"suggestions":"272"},{"ruleId":"237","severity":1,"message":"273","line":38,"column":6,"nodeType":"239","endLine":38,"endColumn":15,"suggestions":"274"},"@typescript-eslint/no-unused-vars","'spaceSize' is assigned a value but never used.","Identifier","unusedVar","'className' is defined but never used.","react-hooks/exhaustive-deps","React Hook useMemo has missing dependencies: 'changeRowData', 'dispatch', 'getTableParams', 'reload', 'reloadWithParams', and 'useCurrentTable'. Either include them or remove the dependency array.","ArrayExpression",["275"],"'FooterRenderFn' is defined but never used.","React Hook useEffect has missing dependencies: 'manual', 'reloadFn', 'request', and 'resultAction'. Either include them or remove the dependency array.",["276"],"'Test' is assigned a value but never used.","'reject' is defined but never used.","'HTableFooter' is defined but never used.","'HTablePagination' is defined but never used.","React Hook useMemo has a missing dependency: 'config'. Either include it or remove the dependency array.",["277"],"'params' is defined but never used.","React Hook useMemo has a missing dependency: 'tableInstance'. Either include it or remove the dependency array.",["278"],"React Hook useEffect has missing dependencies: 'dialogTableInstance', 'hide', and 'show'. Either include them or remove the dependency array.",["279"],"'ParamsModal' is defined but never used.","'req1' is assigned a value but never used.","'dialogTable1' is assigned a value but never used.","React Hook useEffect has a missing dependency: 'changeConfigData'. Either include it or remove the dependency array.",["280"],"React Hook useEffect has a missing dependency: 'rowOnChange'. Either include it or remove the dependency array.",["281"],"React Hook useEffect has a missing dependency: 'cuDom'. Either include it or remove the dependency array.",["282"],["283"],"'childrenDataIndex' is defined but never used.","'showSearch' is defined but never used.","'hideInTable' is defined but never used.","React Hook useEffect has a missing dependency: 'mkNewFn'. Either include it or remove the dependency array.",["284"],["285"],"React Hook useMemo has a missing dependency: 'titleClass'. Either include it or remove the dependency array.",["286"],"React Hook useEffect has a missing dependency: 'tableInstance.table'. Either include it or remove the dependency array.",["287"],{"desc":"288","fix":"289"},{"desc":"290","fix":"291"},{"desc":"292","fix":"293"},{"desc":"294","fix":"295"},{"desc":"296","fix":"297"},{"desc":"298","fix":"299"},{"desc":"300","fix":"301"},{"desc":"302","fix":"303"},{"desc":"304","fix":"305"},{"desc":"306","fix":"307"},{"desc":"306","fix":"308"},{"desc":"309","fix":"310"},{"desc":"311","fix":"312"},"Update the dependencies array to be: [changeRowData, dispatch, getTableParams, reload, reloadWithParams, table, useCurrentTable]",{"range":"313","text":"314"},"Update the dependencies array to be: [manual, reloadFn, request, resultAction]",{"range":"315","text":"316"},"Update the dependencies array to be: [className, config]",{"range":"317","text":"318"},"Update the dependencies array to be: [tableInstance]",{"range":"319","text":"320"},"Update the dependencies array to be: [dialogTableInstance, hide, show]",{"range":"321","text":"322"},"Update the dependencies array to be: [configData, table, rowSelection, changeConfigData]",{"range":"323","text":"324"},"Update the dependencies array to be: [selectedRowKeys, records, rowKey, rowOnChange]",{"range":"325","text":"326"},"Update the dependencies array to be: [cuDom, dom]",{"range":"327","text":"328"},"Update the dependencies array to be: [cuDom]",{"range":"329","text":"330"},"Update the dependencies array to be: [configData, searchSpan, headerOpen, mkNewFn]",{"range":"331","text":"332"},{"range":"333","text":"332"},"Update the dependencies array to be: [columns, titleClass]",{"range":"334","text":"335"},"Update the dependencies array to be: [columns, tableInstance.table]",{"range":"336","text":"337"},[1016,1023],"[changeRowData, dispatch, getTableParams, reload, reloadWithParams, table, useCurrentTable]",[1222,1224],"[manual, reloadFn, request, resultAction]",[481,492],"[className, config]",[513,515],"[tableInstance]",[1219,1221],"[dialogTableInstance, hide, show]",[1819,1852],"[configData, table, rowSelection, changeConfigData]",[2587,2621],"[selectedRowKeys, records, rowKey, rowOnChange]",[825,830],"[cuDom, dom]",[1021,1023],"[cuDom]",[4093,4129],"[configData, searchSpan, headerOpen, mkNewFn]",[4284,4320],[839,848],"[columns, titleClass]",[1181,1190],"[columns, tableInstance.table]"]
@@ -1,4 +1,4 @@
1
- import { ConfigDataModal } from "../../modal";
1
+ import type { ConfigDataModal } from "../../modal";
2
2
  export declare const defaultKeys: (cols: ConfigDataModal) => {
3
3
  keys: string[];
4
4
  allKeys: string[];
@@ -4,21 +4,32 @@ import 'core-js/modules/es.object.to-string.js';
4
4
  import 'core-js/modules/es.regexp.to-string.js';
5
5
  import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js/instance/for-each';
6
6
  import _keysInstanceProperty from '@babel/runtime-corejs3/core-js/instance/keys';
7
+ import React from 'react';
7
8
 
9
+ var getTitle = function getTitle(title) {
10
+ return /*#__PURE__*/React.isValidElement(title) ? title.props.children : title;
11
+ };
8
12
  var childDataIndexProvider = function childDataIndexProvider(data, title) {
9
13
  var keys = [];
10
14
  var cols = [];
15
+ var titleStr = getTitle(title);
11
16
  _forEachInstanceProperty(data).call(data, function (value) {
12
17
  if (typeof value === "string") {
13
18
  keys.push(value);
14
19
  cols.push({
15
- title: title,
20
+ title: titleStr,
16
21
  dataIndex: value
17
22
  });
18
23
  return;
19
24
  }
20
- keys.push(value.dataIndex);
21
- cols.push(value);
25
+ var dataIndex = value.dataIndex,
26
+ title = value.title,
27
+ cuTitleStr = value.titleStr;
28
+ keys.push(dataIndex);
29
+ cols.push({
30
+ title: getTitle(cuTitleStr || title),
31
+ dataIndex: dataIndex
32
+ });
22
33
  });
23
34
  return {
24
35
  keys: keys,
@@ -31,6 +42,7 @@ var defaultKeys = function defaultKeys(cols) {
31
42
  var checkCols = [];
32
43
  _forEachInstanceProperty(cols).call(cols, function (value) {
33
44
  var title = value.title,
45
+ titleStr = value.titleStr,
34
46
  dataIndex = value.dataIndex,
35
47
  hideInTable = value.hideInTable,
36
48
  childrenDataIndex = value.childrenDataIndex;
@@ -39,7 +51,7 @@ var defaultKeys = function defaultKeys(cols) {
39
51
  }
40
52
  keys.push(dataIndex.toString());
41
53
  if (childrenDataIndex) {
42
- var _childDataIndexProvid = childDataIndexProvider(childrenDataIndex, title),
54
+ var _childDataIndexProvid = childDataIndexProvider(childrenDataIndex, titleStr || title),
43
55
  childKeys = _keysInstanceProperty(_childDataIndexProvid),
44
56
  childCols = _childDataIndexProvid.cols;
45
57
  allKeys.push.apply(allKeys, _toConsumableArray(childKeys));
@@ -47,7 +59,10 @@ var defaultKeys = function defaultKeys(cols) {
47
59
  return;
48
60
  }
49
61
  allKeys.push(dataIndex.toString());
50
- checkCols.push(value);
62
+ checkCols.push({
63
+ title: getTitle(titleStr || title),
64
+ dataIndex: dataIndex
65
+ });
51
66
  });
52
67
  return {
53
68
  keys: keys,
@@ -1,13 +1,3 @@
1
- import type { ParamsModal } from "../modal";
2
- declare const _default: () => {
3
- form: import("@hw-component/form/lib/Form/modal").HFormInstance;
4
- table: {
5
- reload: (params?: ParamsModal) => Promise<ParamsModal | undefined>;
6
- setSelectedRowData: () => void;
7
- dispatch: () => void;
8
- reloadWithParams: (params?: ParamsModal) => Promise<ParamsModal | undefined>;
9
- getParams: () => any;
10
- settingKeys: never[];
11
- };
12
- };
1
+ import type { HTableInstance } from "../modal";
2
+ declare const _default: () => HTableInstance;
13
3
  export default _default;
@@ -18,7 +18,7 @@ var useHTable = (function () {
18
18
  getParams: function getParams() {
19
19
  return {};
20
20
  },
21
- settingKeys: []
21
+ settingKeys: {}
22
22
  };
23
23
  }, []);
24
24
  return {
package/es/modal.d.ts CHANGED
@@ -27,10 +27,11 @@ interface HColumns extends Omit<ProColumns, "render" | "title"> {
27
27
  searchType?: HItemProps["type"];
28
28
  searchRender?: HItemProps["render"];
29
29
  rowSelectionTitle?: boolean;
30
- title?: string;
30
+ title?: string | React.ReactNode;
31
31
  }
32
32
  interface BcItemModal {
33
33
  childrenDataIndex?: ConfigItemModal[] | string[];
34
+ titleStr?: string;
34
35
  }
35
36
  export type ConfigItemModal = Omit<HItemProps, "render" | "type"> & HColumns & BcItemModal;
36
37
  export type ConfigDataModal = ConfigItemModal[];
@@ -89,7 +90,7 @@ export interface DialogParamsModal {
89
90
  configData?: HTableProps["configData"];
90
91
  request?: HTableProps["request"];
91
92
  params?: Record<string, any>;
92
- title?: string;
93
+ title?: string | React.ReactNode;
93
94
  }
94
95
  export interface HOnDiaLogTableInstance {
95
96
  show: (params?: DialogParamsModal) => void;
@@ -1,4 +1,4 @@
1
- import { ConfigDataModal } from "../../modal";
1
+ import type { ConfigDataModal } from "../../modal";
2
2
  export declare const defaultKeys: (cols: ConfigDataModal) => {
3
3
  keys: string[];
4
4
  allKeys: string[];
@@ -5,21 +5,32 @@ require('core-js/modules/es.object.to-string.js');
5
5
  require('core-js/modules/es.regexp.to-string.js');
6
6
  var _forEachInstanceProperty = require('@babel/runtime-corejs3/core-js/instance/for-each');
7
7
  var _keysInstanceProperty = require('@babel/runtime-corejs3/core-js/instance/keys');
8
+ var React = require('react');
8
9
 
10
+ var getTitle = function getTitle(title) {
11
+ return /*#__PURE__*/React.isValidElement(title) ? title.props.children : title;
12
+ };
9
13
  var childDataIndexProvider = function childDataIndexProvider(data, title) {
10
14
  var keys = [];
11
15
  var cols = [];
16
+ var titleStr = getTitle(title);
12
17
  _forEachInstanceProperty(data).call(data, function (value) {
13
18
  if (typeof value === "string") {
14
19
  keys.push(value);
15
20
  cols.push({
16
- title: title,
21
+ title: titleStr,
17
22
  dataIndex: value
18
23
  });
19
24
  return;
20
25
  }
21
- keys.push(value.dataIndex);
22
- cols.push(value);
26
+ var dataIndex = value.dataIndex,
27
+ title = value.title,
28
+ cuTitleStr = value.titleStr;
29
+ keys.push(dataIndex);
30
+ cols.push({
31
+ title: getTitle(cuTitleStr || title),
32
+ dataIndex: dataIndex
33
+ });
23
34
  });
24
35
  return {
25
36
  keys: keys,
@@ -32,6 +43,7 @@ var defaultKeys = function defaultKeys(cols) {
32
43
  var checkCols = [];
33
44
  _forEachInstanceProperty(cols).call(cols, function (value) {
34
45
  var title = value.title,
46
+ titleStr = value.titleStr,
35
47
  dataIndex = value.dataIndex,
36
48
  hideInTable = value.hideInTable,
37
49
  childrenDataIndex = value.childrenDataIndex;
@@ -40,7 +52,7 @@ var defaultKeys = function defaultKeys(cols) {
40
52
  }
41
53
  keys.push(dataIndex.toString());
42
54
  if (childrenDataIndex) {
43
- var _childDataIndexProvid = childDataIndexProvider(childrenDataIndex, title),
55
+ var _childDataIndexProvid = childDataIndexProvider(childrenDataIndex, titleStr || title),
44
56
  childKeys = _keysInstanceProperty(_childDataIndexProvid),
45
57
  childCols = _childDataIndexProvid.cols;
46
58
  allKeys.push.apply(allKeys, _toConsumableArray(childKeys));
@@ -48,7 +60,10 @@ var defaultKeys = function defaultKeys(cols) {
48
60
  return;
49
61
  }
50
62
  allKeys.push(dataIndex.toString());
51
- checkCols.push(value);
63
+ checkCols.push({
64
+ title: getTitle(titleStr || title),
65
+ dataIndex: dataIndex
66
+ });
52
67
  });
53
68
  return {
54
69
  keys: keys,
@@ -1,13 +1,3 @@
1
- import type { ParamsModal } from "../modal";
2
- declare const _default: () => {
3
- form: import("@hw-component/form/lib/Form/modal").HFormInstance;
4
- table: {
5
- reload: (params?: ParamsModal) => Promise<ParamsModal | undefined>;
6
- setSelectedRowData: () => void;
7
- dispatch: () => void;
8
- reloadWithParams: (params?: ParamsModal) => Promise<ParamsModal | undefined>;
9
- getParams: () => any;
10
- settingKeys: never[];
11
- };
12
- };
1
+ import type { HTableInstance } from "../modal";
2
+ declare const _default: () => HTableInstance;
13
3
  export default _default;
@@ -21,7 +21,7 @@ var useHTable = (function () {
21
21
  getParams: function getParams() {
22
22
  return {};
23
23
  },
24
- settingKeys: []
24
+ settingKeys: {}
25
25
  };
26
26
  }, []);
27
27
  return {
package/lib/modal.d.ts CHANGED
@@ -27,10 +27,11 @@ interface HColumns extends Omit<ProColumns, "render" | "title"> {
27
27
  searchType?: HItemProps["type"];
28
28
  searchRender?: HItemProps["render"];
29
29
  rowSelectionTitle?: boolean;
30
- title?: string;
30
+ title?: string | React.ReactNode;
31
31
  }
32
32
  interface BcItemModal {
33
33
  childrenDataIndex?: ConfigItemModal[] | string[];
34
+ titleStr?: string;
34
35
  }
35
36
  export type ConfigItemModal = Omit<HItemProps, "render" | "type"> & HColumns & BcItemModal;
36
37
  export type ConfigDataModal = ConfigItemModal[];
@@ -89,7 +90,7 @@ export interface DialogParamsModal {
89
90
  configData?: HTableProps["configData"];
90
91
  request?: HTableProps["request"];
91
92
  params?: Record<string, any>;
92
- title?: string;
93
+ title?: string | React.ReactNode;
93
94
  }
94
95
  export interface HOnDiaLogTableInstance {
95
96
  show: (params?: DialogParamsModal) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "0.0.8-beta-v2",
3
+ "version": "0.0.8-beta-v3",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -46,8 +46,8 @@ export const ColsSettingContent = ({
46
46
  checkable
47
47
  className={treeClass}
48
48
  checkedKeys={checkKeys}
49
- onCheck={(key)=>{
50
- change((key as string[]))
49
+ onCheck={(key) => {
50
+ change(key as string[]);
51
51
  }}
52
52
  height={268}
53
53
  treeData={contentTreeData}
@@ -11,7 +11,7 @@ import { ColsSettingContent } from "./Content";
11
11
  import { Title } from "./Title";
12
12
  import type { IProps } from "./modal";
13
13
  import { useHTableContext } from "../../context";
14
- import {defaultKeys} from "./utils";
14
+ import { defaultKeys } from "./utils";
15
15
  export default ({
16
16
  reload,
17
17
  size = "middle",
@@ -29,16 +29,16 @@ export default ({
29
29
  const [keys, setKeys] = useState<string[]>([]);
30
30
  const { tableInstance } = useHTableContext();
31
31
  useEffect(() => {
32
- const { keys: changeKeys, allKeys,checkCols } = defaultKeys(columns);
33
- tableInstance.table.settingKeys ={
34
- keys:allKeys,
35
- checkCols:checkCols
32
+ const { keys: changeKeys, allKeys, checkCols } = defaultKeys(columns);
33
+ tableInstance.table.settingKeys = {
34
+ keys: allKeys,
35
+ checkCols: checkCols,
36
36
  };
37
37
  setKeys(changeKeys);
38
- }, [columns]);//同步改变
38
+ }, [columns]); //同步改变
39
39
  const SizeItem = () => {
40
- const MenuComponent=(Menu as any);
41
- const MenuItem=(Menu.Item as any);
40
+ const MenuComponent = Menu as any;
41
+ const MenuItem = Menu.Item as any;
42
42
  return (
43
43
  <MenuComponent
44
44
  selectedKeys={[size]}
@@ -99,7 +99,7 @@ export default ({
99
99
  <Title columns={columns} checkKeys={keys} onChange={onChange} />
100
100
  }
101
101
  placement="bottomLeft"
102
- getPopupContainer={() => ref.current||document.body}
102
+ getPopupContainer={() => ref.current || document.body}
103
103
  trigger="click"
104
104
  >
105
105
  <SettingOutlined className={pointer} width={24} />
@@ -1,46 +1,64 @@
1
- import {ConfigDataModal, ConfigItemModal} from "../../modal";
2
- const childDataIndexProvider = (data: ConfigItemModal[]|string[],title?:string) => {
3
- const keys:string[]=[];
4
- const cols:ConfigDataModal=[];
5
- data.forEach((value)=>{
6
- if (typeof value==="string"){
7
- keys.push(value);
8
- cols.push({
9
- title,
10
- dataIndex:value
11
- });
12
- return;
13
- }
14
- keys.push(value.dataIndex);
15
- cols.push(value);
16
- });
17
- return {
18
- keys,
19
- cols
20
- }
1
+ import type { ConfigDataModal, ConfigItemModal } from "../../modal";
2
+ import React from "react";
3
+ const getTitle= ( title?: string|React.ReactNode) => {
4
+ return React.isValidElement(title)?title.props.children:title;
21
5
  }
6
+ const childDataIndexProvider = (
7
+ data: ConfigItemModal[] | string[],
8
+ title?: string|React.ReactNode
9
+ ) => {
10
+ const keys: string[] = [];
11
+ const cols: ConfigDataModal = [];
12
+ const titleStr=getTitle(title);
13
+ data.forEach((value) => {
14
+ if (typeof value === "string") {
15
+ keys.push(value);
16
+ cols.push({
17
+ title:titleStr,
18
+ dataIndex: value,
19
+ });
20
+ return;
21
+ }
22
+ const {dataIndex,title,titleStr:cuTitleStr}=value;
23
+ keys.push(dataIndex);
24
+ cols.push({
25
+ title:getTitle(cuTitleStr||title),
26
+ dataIndex
27
+ });
28
+ });
29
+ return {
30
+ keys,
31
+ cols,
32
+ };
33
+ };
22
34
  export const defaultKeys = (cols: ConfigDataModal) => {
23
- const keys: string[] = [];
24
- const allKeys: string[] = [];
25
- const checkCols:ConfigDataModal=[]
26
- cols.forEach((value) => {
27
- const {title, dataIndex, hideInTable, childrenDataIndex } = value;
28
- if (hideInTable || !dataIndex) {
29
- return;
30
- }
31
- keys.push(dataIndex.toString());
32
- if (childrenDataIndex) {
33
- const {keys:childKeys,cols:childCols}=childDataIndexProvider(childrenDataIndex,title);
34
- allKeys.push(...childKeys);
35
- checkCols.push(...childCols);
36
- return;
37
- }
38
- allKeys.push(dataIndex.toString());
39
- checkCols.push(value);
35
+ const keys: string[] = [];
36
+ const allKeys: string[] = [];
37
+ const checkCols: ConfigDataModal = [];
38
+ cols.forEach((value) => {
39
+ const { title,titleStr, dataIndex, hideInTable, childrenDataIndex } = value;
40
+ if (hideInTable || !dataIndex) {
41
+ return;
42
+ }
43
+ keys.push(dataIndex.toString());
44
+ if (childrenDataIndex) {
45
+ const { keys: childKeys, cols: childCols } = childDataIndexProvider(
46
+ childrenDataIndex,
47
+ titleStr||title
48
+ );
49
+ allKeys.push(...childKeys);
50
+ checkCols.push(...childCols);
51
+ return;
52
+ }
53
+ allKeys.push(dataIndex.toString());
54
+ checkCols.push({
55
+ title:getTitle(titleStr||title),
56
+ dataIndex
40
57
  });
41
- return {
42
- keys,
43
- allKeys,
44
- checkCols
45
- };
46
- };
58
+ });
59
+ return {
60
+ keys,
61
+ allKeys,
62
+ checkCols,
63
+ };
64
+ };
@@ -37,7 +37,7 @@ export const useCols = ({ configData, rowSelection, table }: HTableProps) => {
37
37
  return !item.hideInTable;
38
38
  });
39
39
  if (rowSelection !== false) {
40
- colsArray.splice(0, 0, (rowSelectionCol(rowSelection) as any));
40
+ colsArray.splice(0, 0, rowSelectionCol(rowSelection) as any);
41
41
  }
42
42
  return colsArray.map((item) => {
43
43
  const { render } = item;
@@ -29,7 +29,7 @@ export interface HTableBodyProps
29
29
  rowSelection?: HRowSelection | false;
30
30
  affixProps?: AffixProps | false;
31
31
  goTop?: boolean;
32
- optionsRender?:(node:React.ReactNode)=>React.ReactNode;
32
+ optionsRender?: (node: React.ReactNode) => React.ReactNode;
33
33
  }
34
34
  const defaultRender = () => {
35
35
  return <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />;
@@ -55,11 +55,11 @@ export default ({
55
55
  affixProps,
56
56
  goTop = true,
57
57
  size,
58
- optionsRender,
58
+ optionsRender,
59
59
  ...props
60
60
  }: HTableBodyProps) => {
61
61
  // @ts-ignore
62
- const { selectedRowKeys } = rowSelection||{};
62
+ const { selectedRowKeys } = rowSelection || {};
63
63
  const {
64
64
  tableInstance,
65
65
  configData: contextConfigData,
@@ -80,20 +80,20 @@ export default ({
80
80
  const { cols, changeCols } = useCols({
81
81
  configData: bodyConfigData,
82
82
  table: tableInstance,
83
- rowSelection
83
+ rowSelection,
84
84
  });
85
85
  useSynchronousKeys({ selectedRowKeys, records, rowKey });
86
- const optionsNode=options && (
87
- <Options
88
- reload={() => {
89
- tableInstance.table.reloadWithParams();
90
- }}
91
- {...options}
92
- size={cuSize}
93
- columns={cols}
94
- setSizeChange={setCuSize}
95
- onChange={changeCols}
96
- />
86
+ const optionsNode = options && (
87
+ <Options
88
+ reload={() => {
89
+ tableInstance.table.reloadWithParams();
90
+ }}
91
+ {...options}
92
+ size={cuSize}
93
+ columns={cols}
94
+ setSizeChange={setCuSize}
95
+ onChange={changeCols}
96
+ />
97
97
  );
98
98
  const { keys = [], selectAll } = selectedRowData;
99
99
 
@@ -105,7 +105,7 @@ export default ({
105
105
  <Row gutter={[0, 8]} style={contentStyle}>
106
106
  {React.cloneElement(
107
107
  headerTitle as DetailedReactHTMLElement<any, any>,
108
- { selectedRowData, allSelectChange, rowOnChange ,tableInstance}
108
+ { selectedRowData, allSelectChange, rowOnChange, tableInstance }
109
109
  )}
110
110
  </Row>
111
111
  )}
@@ -117,7 +117,7 @@ export default ({
117
117
  />
118
118
  </div>
119
119
  )}
120
- {optionsRender?optionsRender(optionsNode):optionsNode}
120
+ {optionsRender ? optionsRender(optionsNode) : optionsNode}
121
121
  <ConfigProvider
122
122
  renderEmpty={() => {
123
123
  if (error) {
@@ -128,7 +128,7 @@ export default ({
128
128
  >
129
129
  <ProTable
130
130
  {...props}
131
- columns={(cols as any)}
131
+ columns={cols as any}
132
132
  size={cuSize}
133
133
  search={false}
134
134
  options={false}
@@ -14,7 +14,7 @@ export const useHDialogTable = () => {
14
14
  ...tableInstance,
15
15
  show: (params: DialogParamsModal) => {},
16
16
  hide: () => {},
17
- params:{}
17
+ params: {},
18
18
  } as HDiaLogTableInstance;
19
19
  }, []);
20
20
  };
@@ -44,7 +44,6 @@ export const useCurrentTable = ({ show, hide, dialogTable }: ParamsModal) => {
44
44
  useEffect(() => {
45
45
  dialogTableInstance.show = show;
46
46
  dialogTableInstance.hide = hide;
47
-
48
47
  }, []);
49
48
  return dialogTableInstance;
50
49
  };
@@ -1,6 +1,6 @@
1
1
  import { Modal } from "antd";
2
2
  import Table from "../Table";
3
- import type {ModalTableProps, ParamsModal} from "../modal";
3
+ import type { ModalTableProps, ParamsModal } from "../modal";
4
4
  import { useCurrentTable, useTableProps, useVisible } from "./hooks";
5
5
  export default ({
6
6
  configData: configDataProps,
@@ -23,14 +23,14 @@ export default ({
23
23
  show: (showParams) => {
24
24
  if (showParams) {
25
25
  setModalTableParams((oldParams) => {
26
- const { configData, request, title,params:oldP } = oldParams;
26
+ const { configData, request, title, params: oldP } = oldParams;
27
27
  const {
28
28
  title: showTitle = title,
29
29
  configData: showConfigData = configData,
30
- request: showReq=request,
31
- params=oldP ,
30
+ request: showReq = request,
31
+ params = oldP,
32
32
  } = showParams;
33
- currentTable.params=params;
33
+ currentTable.params = params;
34
34
  return {
35
35
  title: showTitle,
36
36
  request: showReq,
@@ -47,9 +47,11 @@ export default ({
47
47
  dialogTable,
48
48
  });
49
49
  const { configData, request, title, params } = modalTableParams;
50
- const req=request?(reqParams)=>{
51
- return request({ ...params, ...reqParams });
52
- }:undefined;
50
+ const req = request
51
+ ? (reqParams) => {
52
+ return request({ ...params, ...reqParams });
53
+ }
54
+ : undefined;
53
55
  return (
54
56
  <Modal
55
57
  {...props}
@@ -4,7 +4,7 @@ import useCurrentTable from "./hooks/useCurrentTable";
4
4
  import useRowObj from "./hooks/useRowObj";
5
5
  import { HTableContext } from "./context";
6
6
  import { Space } from "antd";
7
- import type { HTableProps } from "./modal";
7
+ import type { HTableInstance, HTableProps } from "./modal";
8
8
  import useReq from "./hooks/useReq";
9
9
  import useDispatch from "./hooks/useDispatch";
10
10
  import { useState } from "react";
@@ -21,12 +21,13 @@ export default ({
21
21
  className,
22
22
  paginationStyle,
23
23
  rowKey = "id",
24
- onFinish,
24
+ onFinish,
25
25
  ...props
26
26
  }: HTableProps) => {
27
27
  const { run, loading, data, error, saveParams } = useReq({ request });
28
28
  const dispatch = useDispatch(action);
29
- const { selectedRowData, rowOnChange, allSelectChange, setSelectedRowData } = useRowObj();
29
+ const { selectedRowData, rowOnChange, allSelectChange, setSelectedRowData } =
30
+ useRowObj();
30
31
  const [open, setOpen] = useState<boolean | undefined>();
31
32
  const tableInstance = useCurrentTable({
32
33
  table,
@@ -69,7 +70,11 @@ export default ({
69
70
  >
70
71
  <Space direction={"vertical"} size={0} style={{ width: "100%" }}>
71
72
  {!hideHeader && (
72
- <Header searchSpan={searchSpan} headerStyle={headerStyle} onFinish={onFinish}/>
73
+ <Header
74
+ searchSpan={searchSpan}
75
+ headerStyle={headerStyle}
76
+ onFinish={onFinish}
77
+ />
73
78
  )}
74
79
  <Body
75
80
  tableStyle={
@@ -27,6 +27,6 @@ export default ({
27
27
  resultTable.table.dispatch = dispatch;
28
28
  resultTable.table.reloadWithParams = reloadWithParams;
29
29
  resultTable.table.getParams = getTableParams;
30
- return resultTable;
30
+ return resultTable as HTableInstance;
31
31
  }, [table]);
32
32
  };
@@ -1,10 +1,11 @@
1
1
  import { useMemo } from "react";
2
- import type { ParamsModal } from "../modal";
2
+ import type { HTableInstance, ParamsModal } from "../modal";
3
3
  import { useHForm } from "@hw-component/form";
4
+ import type { TableInstance } from "../modal";
4
5
 
5
- export default () => {
6
+ export default (): HTableInstance => {
6
7
  const form = useHForm();
7
- const table = useMemo(() => {
8
+ const table = useMemo<TableInstance>(() => {
8
9
  return {
9
10
  reload: (params?: ParamsModal) => {
10
11
  return Promise.resolve(params);
@@ -17,7 +18,7 @@ export default () => {
17
18
  getParams: () => {
18
19
  return {} as any;
19
20
  },
20
- settingKeys: [],
21
+ settingKeys: {},
21
22
  };
22
23
  }, []);
23
24
  return {
@@ -25,7 +25,7 @@ export interface ParamsModal extends Record<string, any> {
25
25
  size?: number;
26
26
  current?: number;
27
27
  }
28
- interface HColumns extends Omit<ProColumns, "render"|"title"> {
28
+ interface HColumns extends Omit<ProColumns, "render" | "title"> {
29
29
  render?: (
30
30
  dom: React.ReactNode,
31
31
  data: any,
@@ -36,10 +36,11 @@ interface HColumns extends Omit<ProColumns, "render"|"title"> {
36
36
  searchType?: HItemProps["type"];
37
37
  searchRender?: HItemProps["render"];
38
38
  rowSelectionTitle?: boolean;
39
- title?:string;
39
+ title?: string | React.ReactNode;
40
40
  }
41
41
  interface BcItemModal {
42
- childrenDataIndex?: ConfigItemModal[]|string[];
42
+ childrenDataIndex?: ConfigItemModal[] | string[];
43
+ titleStr?:string;
43
44
  }
44
45
  export type ConfigItemModal = Omit<HItemProps, "render" | "type"> &
45
46
  HColumns &
@@ -100,8 +101,8 @@ export interface HTableProps
100
101
  rowSelection?: HRowSelection | false;
101
102
  affixProps?: AffixProps | false;
102
103
  goTop?: boolean;
103
- optionsRender?:(node:React.ReactNode)=>React.ReactNode;
104
- onFinish?:(value:any)=>Promise<any>;
104
+ optionsRender?: (node: React.ReactNode) => React.ReactNode;
105
+ onFinish?: (value: any) => Promise<any>;
105
106
  }
106
107
  export interface TableInstance {
107
108
  reload: (params?: ParamsModal) => Promise<any>;
@@ -109,9 +110,9 @@ export interface TableInstance {
109
110
  dispatch: (key: string, params: any) => void;
110
111
  reloadWithParams: (params?: ParamsModal) => Promise<any>;
111
112
  getParams: () => any;
112
- settingKeys:{
113
- keys?:string[],
114
- checkCols?:ConfigDataModal
113
+ settingKeys: {
114
+ keys?: string[];
115
+ checkCols?: ConfigDataModal;
115
116
  };
116
117
  }
117
118
  export interface HTableInstance {
@@ -122,7 +123,7 @@ export interface DialogParamsModal {
122
123
  configData?: HTableProps["configData"];
123
124
  request?: HTableProps["request"];
124
125
  params?: Record<string, any>;
125
- title?: string;
126
+ title?: string | React.ReactNode;
126
127
  }
127
128
  export interface HOnDiaLogTableInstance {
128
129
  show: (params?: DialogParamsModal) => void;
@@ -133,7 +134,7 @@ export interface HDiaLogTableInstance {
133
134
  table: TableInstance;
134
135
  show: (params?: DialogParamsModal) => void;
135
136
  hide: () => void;
136
- params:any;
137
+ params: any;
137
138
  }
138
139
  export interface ModalTableProps extends ModalProps {
139
140
  tableProps?: Omit<HTableProps, "configData" | "request">;
@@ -89,18 +89,26 @@ export default () => {
89
89
  <>
90
90
  <Button
91
91
  onClick={() => {
92
- dialogTable.show({ title: "3333",params:{id:1}});
92
+ dialogTable.show({ title: "3333", params: { id: 1 } });
93
93
  }}
94
94
  >
95
95
  点我333
96
96
  </Button>
97
97
  <HModalTable
98
- dialogTable={dialogTable}
99
- request={req2}
100
- configData={configData}
101
- tableProps={{
102
- headerTitle:<div onClick={()=>{console.log(dialogTable.params)}}>点我</div>
103
- }}
98
+ dialogTable={dialogTable}
99
+ request={req2}
100
+ configData={configData}
101
+ tableProps={{
102
+ headerTitle: (
103
+ <div
104
+ onClick={() => {
105
+ console.log(dialogTable.params);
106
+ }}
107
+ >
108
+ 点我
109
+ </div>
110
+ ),
111
+ }}
104
112
  />
105
113
  <HTable configData={configData} headerTitle={<Test />} />
106
114
  </>
@@ -1,5 +1,5 @@
1
1
  import { HTable, useHTable } from "../../components";
2
- import {Button, Space} from "antd";
2
+ import { Button, Space } from "antd";
3
3
  import { HFormConfigProvider } from "@hw-component/form";
4
4
 
5
5
  const configData = [
@@ -23,7 +23,8 @@ const configData = [
23
23
  },
24
24
  },
25
25
  {
26
- title: "座位",
26
+ title:<div>座位</div>,
27
+ titleStr:"座位",
27
28
  showSearch: true,
28
29
  dataIndex: "name2",
29
30
  itemProps: {
@@ -54,13 +55,11 @@ export default () => {
54
55
  configData={configData}
55
56
  rowKey={"id"}
56
57
  table={hTable}
57
- optionsRender={(node )=>{
58
- return <Space>
59
- ffff{node}
60
- </Space>
58
+ optionsRender={(node) => {
59
+ return <Space>ffff{node}</Space>;
61
60
  }}
62
61
  rowSelection={{
63
- allPageCheck:false
62
+ allPageCheck: false,
64
63
  }}
65
64
  affixProps={{
66
65
  target: () => document.querySelector(".body"),