@hw-component/table 1.2.6 → 1.2.8

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.
Files changed (38) hide show
  1. package/.eslintcache +1 -1
  2. package/es/HTableBody/Options/utils.d.ts +1 -0
  3. package/es/HTableBody/RowSelection.js +3 -3
  4. package/es/HTableBody/hooks.js +5 -7
  5. package/es/TableConfig.d.ts +4 -2
  6. package/es/TableConfig.js +5 -2
  7. package/es/modal.d.ts +4 -3
  8. package/es/render/TagsComponent.d.ts +20 -0
  9. package/es/render/TagsComponent.js +123 -0
  10. package/es/render/config.d.ts +11 -0
  11. package/es/render/config.js +137 -0
  12. package/es/render/index.d.ts +5 -0
  13. package/es/render/index.js +25 -0
  14. package/lib/HTableBody/Options/utils.d.ts +1 -0
  15. package/lib/HTableBody/RowSelection.js +3 -3
  16. package/lib/HTableBody/hooks.js +5 -7
  17. package/lib/TableConfig.d.ts +4 -2
  18. package/lib/TableConfig.js +5 -2
  19. package/lib/modal.d.ts +4 -3
  20. package/lib/render/TagsComponent.d.ts +20 -0
  21. package/lib/render/TagsComponent.js +126 -0
  22. package/lib/render/config.d.ts +11 -0
  23. package/lib/render/config.js +140 -0
  24. package/lib/render/index.d.ts +5 -0
  25. package/lib/render/index.js +28 -0
  26. package/package.json +2 -1
  27. package/src/components/HTableBody/RowSelection.tsx +10 -8
  28. package/src/components/HTableBody/hooks.tsx +5 -8
  29. package/src/components/HTableBody/index.tsx +64 -67
  30. package/src/components/HTableHeader/index.tsx +4 -2
  31. package/src/components/HTablePagination/index.tsx +4 -2
  32. package/src/components/Table.tsx +9 -4
  33. package/src/components/TableConfig.tsx +19 -12
  34. package/src/components/modal.ts +11 -3
  35. package/src/components/render/TagsComponent.tsx +122 -0
  36. package/src/components/render/config.tsx +110 -0
  37. package/src/components/render/index.tsx +25 -0
  38. package/src/pages/Table/index.tsx +160 -80
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","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/utils.ts":"40","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/HeaderTitle/index.tsx":"41","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/RangePickerSearch.tsx":"42","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/defaultFormRender.tsx":"43","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/hooks.ts":"44","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/Context.tsx":"45","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/utils.ts":"46"},{"size":1541,"mtime":1709541397429,"results":"47","hashOfConfig":"48"},{"size":741,"mtime":1713518829815,"results":"49","hashOfConfig":"48"},{"size":370,"mtime":1718160488742,"results":"50","hashOfConfig":"48"},{"size":769,"mtime":1710811861083,"results":"51","hashOfConfig":"48"},{"size":608,"mtime":1716085382302,"results":"52","hashOfConfig":"48"},{"size":2637,"mtime":1720086914268,"results":"53","hashOfConfig":"48"},{"size":971,"mtime":1716085382228,"results":"54","hashOfConfig":"48"},{"size":1411,"mtime":1718183242682,"results":"55","hashOfConfig":"48"},{"size":839,"mtime":1720086914276,"results":"56","hashOfConfig":"48"},{"size":739,"mtime":1716085382298,"results":"57","hashOfConfig":"48"},{"size":4558,"mtime":1720174044541,"results":"58","hashOfConfig":"48"},{"size":945,"mtime":1716085371836,"results":"59","hashOfConfig":"48"},{"size":5681,"mtime":1720174044524,"results":"60","hashOfConfig":"48"},{"size":2163,"mtime":1716085382140,"results":"61","hashOfConfig":"48"},{"size":2004,"mtime":1720086914257,"results":"62","hashOfConfig":"48"},{"size":1892,"mtime":1718183240251,"results":"63","hashOfConfig":"48"},{"size":209,"mtime":1713781957255,"results":"64","hashOfConfig":"48"},{"size":1487,"mtime":1718182954096,"results":"65","hashOfConfig":"48"},{"size":3785,"mtime":1720174044562,"results":"66","hashOfConfig":"48"},{"size":2113,"mtime":1720086914315,"results":"67","hashOfConfig":"48"},{"size":3149,"mtime":1716085382191,"results":"68","hashOfConfig":"48"},{"size":498,"mtime":1709893919938,"results":"69","hashOfConfig":"48"},{"size":1503,"mtime":1716085382199,"results":"70","hashOfConfig":"48"},{"size":2083,"mtime":1716085382206,"results":"71","hashOfConfig":"48"},{"size":2830,"mtime":1716085382332,"results":"72","hashOfConfig":"48"},{"size":1080,"mtime":1716085371834,"results":"73","hashOfConfig":"48"},{"size":3603,"mtime":1713782094969,"results":"74","hashOfConfig":"48"},{"size":4054,"mtime":1720086917041,"results":"75","hashOfConfig":"48"},{"size":1102,"mtime":1710829302576,"results":"76","hashOfConfig":"48"},{"size":1162,"mtime":1710829299926,"results":"77","hashOfConfig":"48"},{"size":2302,"mtime":1711102156682,"results":"78","hashOfConfig":"48"},{"size":1677,"mtime":1716085381973,"results":"79","hashOfConfig":"48"},{"size":4897,"mtime":1718183843897,"results":"80","hashOfConfig":"48"},{"size":2119,"mtime":1720086914249,"results":"81","hashOfConfig":"48"},{"size":696,"mtime":1720086914261,"results":"82","hashOfConfig":"48"},{"size":1684,"mtime":1720086914112,"results":"83","hashOfConfig":"48"},{"size":1437,"mtime":1720086914134,"results":"84","hashOfConfig":"48"},{"size":2987,"mtime":1720174044485,"results":"85","hashOfConfig":"48"},{"size":777,"mtime":1720174044500,"results":"86","hashOfConfig":"48"},{"size":479,"mtime":1720086914169,"results":"87","hashOfConfig":"48"},{"size":1049,"mtime":1716085371834,"results":"88","hashOfConfig":"48"},{"size":1208,"mtime":1716085371834,"results":"89","hashOfConfig":"48"},{"size":365,"mtime":1716085371835,"results":"90","hashOfConfig":"48"},{"size":665,"mtime":1720086917041,"results":"91","hashOfConfig":"48"},{"size":266,"mtime":1720086917041,"results":"92","hashOfConfig":"48"},{"size":2253,"mtime":1720086917041,"results":"93","hashOfConfig":"48"},{"filePath":"94","messages":"95","suppressedMessages":"96","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1mh59l9",{"filePath":"97","messages":"98","suppressedMessages":"99","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"109","messages":"110","suppressedMessages":"111","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"124","messages":"125","suppressedMessages":"126","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"133","messages":"134","suppressedMessages":"135","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"151","messages":"152","suppressedMessages":"153","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":4,"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":4,"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":5,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"178","messages":"179","suppressedMessages":"180","errorCount":0,"fatalErrorCount":0,"warningCount":2,"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"190","messages":"191","suppressedMessages":"192","errorCount":0,"fatalErrorCount":0,"warningCount":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"193","messages":"194","suppressedMessages":"195","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"202","messages":"203","suppressedMessages":"204","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"205","messages":"206","suppressedMessages":"207","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"208","messages":"209","suppressedMessages":"210","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"211","messages":"212","suppressedMessages":"213","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"214","messages":"215","suppressedMessages":"216","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"217","messages":"218","suppressedMessages":"219","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"220","messages":"221","suppressedMessages":"222","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"223","messages":"224","suppressedMessages":"225","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"226","messages":"227","suppressedMessages":"228","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"229","messages":"230","suppressedMessages":"231","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/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",["232","233"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/context.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useCurrentTable.ts",["234"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useHTable.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useRowObj.ts",["235"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/modal.ts",["236"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/TableConfig.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/index.tsx",["237","238"],[],"/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",["239"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/Table/index.tsx",["240","241"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/TableCustomize/index.tsx",["242","243","244","245"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTablePagination/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/index.ts",["246"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/hooks.ts",["247","248","249","250"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/ModalTable/index.tsx",["251","252","253","254"],[],"/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",["255","256","257","258","259"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/GoTop/index.tsx",["260","261"],[],"/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",["262","263","264","265","266","267"],[],"/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",["268"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/Title.tsx",["269"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/index.tsx",[],[],"/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",["270","271"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/HeaderTitle/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/RangePickerSearch.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/defaultFormRender.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/hooks.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/Context.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/utils.ts",["272","273"],[],{"ruleId":"274","severity":1,"message":"275","line":20,"column":3,"nodeType":"276","messageId":"277","endLine":20,"endColumn":12},{"ruleId":"274","severity":1,"message":"278","line":21,"column":3,"nodeType":"276","messageId":"277","endLine":21,"endColumn":12},{"ruleId":"279","severity":1,"message":"280","line":43,"column":6,"nodeType":"281","endLine":43,"endColumn":42,"suggestions":"282"},{"ruleId":"274","severity":1,"message":"283","line":8,"column":9,"nodeType":"276","messageId":"277","endLine":8,"endColumn":30},{"ruleId":"274","severity":1,"message":"284","line":65,"column":6,"nodeType":"276","messageId":"277","endLine":65,"endColumn":20},{"ruleId":"274","severity":1,"message":"285","line":82,"column":5,"nodeType":"276","messageId":"277","endLine":82,"endColumn":16},{"ruleId":"274","severity":1,"message":"286","line":85,"column":5,"nodeType":"276","messageId":"277","endLine":85,"endColumn":20},{"ruleId":"279","severity":1,"message":"287","line":52,"column":6,"nodeType":"281","endLine":52,"endColumn":8,"suggestions":"288"},{"ruleId":"274","severity":1,"message":"289","line":63,"column":7,"nodeType":"276","messageId":"277","endLine":63,"endColumn":11},{"ruleId":"274","severity":1,"message":"290","line":133,"column":42,"nodeType":"276","messageId":"277","endLine":133,"endColumn":48},{"ruleId":"274","severity":1,"message":"291","line":5,"column":3,"nodeType":"276","messageId":"277","endLine":5,"endColumn":15},{"ruleId":"274","severity":1,"message":"292","line":6,"column":3,"nodeType":"276","messageId":"277","endLine":6,"endColumn":19},{"ruleId":"274","severity":1,"message":"293","line":27,"column":7,"nodeType":"276","messageId":"277","endLine":27,"endColumn":13},{"ruleId":"274","severity":1,"message":"290","line":43,"column":36,"nodeType":"276","messageId":"277","endLine":43,"endColumn":42},{"ruleId":"279","severity":1,"message":"294","line":13,"column":6,"nodeType":"281","endLine":13,"endColumn":17,"suggestions":"295"},{"ruleId":"274","severity":1,"message":"296","line":9,"column":10,"nodeType":"276","messageId":"277","endLine":9,"endColumn":21},{"ruleId":"274","severity":1,"message":"297","line":16,"column":14,"nodeType":"276","messageId":"277","endLine":16,"endColumn":39},{"ruleId":"279","severity":1,"message":"298","line":20,"column":6,"nodeType":"281","endLine":20,"endColumn":8,"suggestions":"299"},{"ruleId":"279","severity":1,"message":"300","line":48,"column":6,"nodeType":"281","endLine":48,"endColumn":8,"suggestions":"301"},{"ruleId":"274","severity":1,"message":"302","line":24,"column":7,"nodeType":"276","messageId":"277","endLine":24,"endColumn":11},{"ruleId":"274","severity":1,"message":"290","line":27,"column":32,"nodeType":"276","messageId":"277","endLine":27,"endColumn":38},{"ruleId":"274","severity":1,"message":"290","line":47,"column":32,"nodeType":"276","messageId":"277","endLine":47,"endColumn":38},{"ruleId":"274","severity":1,"message":"303","line":114,"column":9,"nodeType":"276","messageId":"277","endLine":114,"endColumn":21},{"ruleId":"279","severity":1,"message":"304","line":63,"column":6,"nodeType":"281","endLine":63,"endColumn":39,"suggestions":"305"},{"ruleId":"279","severity":1,"message":"306","line":88,"column":6,"nodeType":"281","endLine":88,"endColumn":40,"suggestions":"307"},{"ruleId":"279","severity":1,"message":"308","line":117,"column":6,"nodeType":"281","endLine":117,"endColumn":8,"suggestions":"309"},{"ruleId":"279","severity":1,"message":"310","line":122,"column":6,"nodeType":"281","endLine":122,"endColumn":17,"suggestions":"311"},{"ruleId":"279","severity":1,"message":"312","line":125,"column":6,"nodeType":"281","endLine":125,"endColumn":13,"suggestions":"313"},{"ruleId":"279","severity":1,"message":"314","line":26,"column":6,"nodeType":"281","endLine":26,"endColumn":11,"suggestions":"315"},{"ruleId":"279","severity":1,"message":"314","line":34,"column":6,"nodeType":"281","endLine":34,"endColumn":8,"suggestions":"316"},{"ruleId":"274","severity":1,"message":"317","line":68,"column":5,"nodeType":"276","messageId":"277","endLine":68,"endColumn":22},{"ruleId":"274","severity":1,"message":"318","line":69,"column":5,"nodeType":"276","messageId":"277","endLine":69,"endColumn":15},{"ruleId":"274","severity":1,"message":"319","line":70,"column":5,"nodeType":"276","messageId":"277","endLine":70,"endColumn":16},{"ruleId":"274","severity":1,"message":"320","line":71,"column":5,"nodeType":"276","messageId":"277","endLine":71,"endColumn":10},{"ruleId":"279","severity":1,"message":"321","line":188,"column":6,"nodeType":"281","endLine":188,"endColumn":42,"suggestions":"322"},{"ruleId":"279","severity":1,"message":"321","line":194,"column":6,"nodeType":"281","endLine":194,"endColumn":42,"suggestions":"323"},{"ruleId":"279","severity":1,"message":"324","line":31,"column":6,"nodeType":"281","endLine":31,"endColumn":15,"suggestions":"325"},{"ruleId":"274","severity":1,"message":"326","line":20,"column":9,"nodeType":"276","messageId":"277","endLine":20,"endColumn":16},{"ruleId":"274","severity":1,"message":"327","line":1,"column":15,"nodeType":"276","messageId":"277","endLine":1,"endColumn":30},{"ruleId":"274","severity":1,"message":"328","line":3,"column":10,"nodeType":"276","messageId":"277","endLine":3,"endColumn":22},{"ruleId":"274","severity":1,"message":"329","line":22,"column":51,"nodeType":"276","messageId":"277","endLine":22,"endColumn":63},{"ruleId":"274","severity":1,"message":"330","line":22,"column":65,"nodeType":"276","messageId":"277","endLine":22,"endColumn":73},"@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",["331"],"'selectedRowDataSource' is assigned a value but never used.","'FooterRenderFn' is defined but never used.","'rowOnChange' is assigned a value but never used.","'allSelectChange' is assigned a value but never used.","React Hook useEffect has missing dependencies: 'formInitValues', 'manual', 'reloadFn', 'request', and 'resultAction'. Either include them or remove the dependency array.",["332"],"'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.","'AddBtn' is assigned a value but never used.","React Hook useMemo has a missing dependency: 'config'. Either include it or remove the dependency array.",["333"],"'HTableProps' is defined but never used.","'params' is defined but never used.","React Hook useMemo has a missing dependency: 'tableInstance'. Either include it or remove the dependency array.",["334"],"React Hook useEffect has missing dependencies: 'dialogTableInstance', 'hide', and 'show'. Either include them or remove the dependency array.",["335"],"'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.",["336"],"React Hook useEffect has a missing dependency: 'rowOnChange'. Either include it or remove the dependency array.",["337"],"React Hook useMemo has a missing dependency: 'selfValue'. Either include it or remove the dependency array.",["338"],"React Hook useEffect has missing dependencies: 'columns' and 'tableInstance.table'. Either include them or remove the dependency array.",["339"],"React Hook useEffect has a missing dependency: 'columnsState'. Either include it or remove the dependency array. If 'setSelfValue' needs the current value of 'columnsState', you can also switch to useReducer instead of useState and read 'columnsState' in the reducer.",["340"],"React Hook useEffect has a missing dependency: 'cuDom'. Either include it or remove the dependency array.",["341"],["342"],"'childrenDataIndex' is defined but never used.","'showSearch' is defined but never used.","'hideInTable' is defined but never used.","'align' is defined but never used.","React Hook useEffect has a missing dependency: 'mkNewFn'. Either include it or remove the dependency array.",["343"],["344"],"React Hook useMemo has a missing dependency: 'titleClass'. Either include it or remove the dependency array.",["345"],"'allKeys' is assigned a value but never used.","'ConfigDataModal' is defined but never used.","'ColumnsState' is defined but never used.","'defaultValue' is assigned a value but never used.","'onChange' is assigned a value but never used.",{"desc":"346","fix":"347"},{"desc":"348","fix":"349"},{"desc":"350","fix":"351"},{"desc":"352","fix":"353"},{"desc":"354","fix":"355"},{"desc":"356","fix":"357"},{"desc":"358","fix":"359"},{"desc":"360","fix":"361"},{"desc":"362","fix":"363"},{"desc":"364","fix":"365"},{"desc":"366","fix":"367"},{"desc":"368","fix":"369"},{"desc":"370","fix":"371"},{"desc":"370","fix":"372"},{"desc":"373","fix":"374"},"Update the dependencies array to be: [table, useCurrentTable, reload, changeRowData, dispatch, reloadWithParams, getTableParams, selectedRowData, dataSource?.records]",{"range":"375","text":"376"},"Update the dependencies array to be: [formInitValues, manual, reloadFn, request, resultAction]",{"range":"377","text":"378"},"Update the dependencies array to be: [className, config]",{"range":"379","text":"380"},"Update the dependencies array to be: [tableInstance]",{"range":"381","text":"382"},"Update the dependencies array to be: [dialogTableInstance, hide, show]",{"range":"383","text":"384"},"Update the dependencies array to be: [configData, table, rowSelection, changeConfigData]",{"range":"385","text":"386"},"Update the dependencies array to be: [selectedRowKeys, records, rowKey, rowOnChange]",{"range":"387","text":"388"},"Update the dependencies array to be: [selfValue]",{"range":"389","text":"390"},"Update the dependencies array to be: [columns, selfValue, tableInstance.table]",{"range":"391","text":"392"},"Update the dependencies array to be: [columnsState, value]",{"range":"393","text":"394"},"Update the dependencies array to be: [cuDom, dom]",{"range":"395","text":"396"},"Update the dependencies array to be: [cuDom]",{"range":"397","text":"398"},"Update the dependencies array to be: [configData, searchSpan, headerOpen, mkNewFn]",{"range":"399","text":"400"},{"range":"401","text":"400"},"Update the dependencies array to be: [columns, titleClass]",{"range":"402","text":"403"},[1369,1405],"[table, useCurrentTable, reload, changeRowData, dispatch, reloadWithParams, getTableParams, selectedRowData, dataSource?.records]",[1299,1301],"[formInitValues, manual, reloadFn, request, resultAction]",[481,492],"[className, config]",[523,525],"[tableInstance]",[1229,1231],"[dialogTableInstance, hide, show]",[1974,2007],"[configData, table, rowSelection, changeConfigData]",[2648,2682],"[selectedRowKeys, records, rowKey, rowOnChange]",[3411,3413],"[selfValue]",[3548,3559],"[columns, selfValue, tableInstance.table]",[3634,3641],"[columnsState, value]",[825,830],"[cuDom, dom]",[1021,1023],"[cuDom]",[4625,4661],"[configData, searchSpan, headerOpen, mkNewFn]",[4816,4852],[995,1004],"[columns, titleClass]"]
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","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/HeaderTitle/index.tsx":"41","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/RangePickerSearch.tsx":"42","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/defaultFormRender.tsx":"43","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/hooks.ts":"44","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/Context.tsx":"45","/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/utils.ts":"46","/Users/hedongjie/Desktop/web/hw-component-table/src/components/render/TagsComponent.tsx":"47","/Users/hedongjie/Desktop/web/hw-component-table/src/components/render/config.tsx":"48","/Users/hedongjie/Desktop/web/hw-component-table/src/components/render/index.tsx":"49"},{"size":1541,"mtime":1709541397429,"results":"50","hashOfConfig":"51"},{"size":741,"mtime":1713518829815,"results":"52","hashOfConfig":"51"},{"size":370,"mtime":1718160488742,"results":"53","hashOfConfig":"51"},{"size":769,"mtime":1710811861083,"results":"54","hashOfConfig":"51"},{"size":608,"mtime":1716085382302,"results":"55","hashOfConfig":"51"},{"size":2796,"mtime":1721801545272,"results":"56","hashOfConfig":"51"},{"size":952,"mtime":1721801509391,"results":"57","hashOfConfig":"51"},{"size":1411,"mtime":1718183242682,"results":"58","hashOfConfig":"51"},{"size":839,"mtime":1720086914276,"results":"59","hashOfConfig":"51"},{"size":739,"mtime":1716085382298,"results":"60","hashOfConfig":"51"},{"size":4857,"mtime":1721801545302,"results":"61","hashOfConfig":"51"},{"size":1488,"mtime":1721801545279,"results":"62","hashOfConfig":"51"},{"size":5759,"mtime":1721801545228,"results":"63","hashOfConfig":"51"},{"size":2163,"mtime":1716085382140,"results":"64","hashOfConfig":"51"},{"size":2069,"mtime":1721801545237,"results":"65","hashOfConfig":"51"},{"size":1892,"mtime":1718183240251,"results":"66","hashOfConfig":"51"},{"size":209,"mtime":1713781957255,"results":"67","hashOfConfig":"51"},{"size":1487,"mtime":1718182954096,"results":"68","hashOfConfig":"51"},{"size":5532,"mtime":1721801545344,"results":"69","hashOfConfig":"51"},{"size":2113,"mtime":1720086914315,"results":"70","hashOfConfig":"51"},{"size":3337,"mtime":1721801545257,"results":"71","hashOfConfig":"51"},{"size":498,"mtime":1709893919938,"results":"72","hashOfConfig":"51"},{"size":1503,"mtime":1716085382199,"results":"73","hashOfConfig":"51"},{"size":2083,"mtime":1716085382206,"results":"74","hashOfConfig":"51"},{"size":2830,"mtime":1716085382332,"results":"75","hashOfConfig":"51"},{"size":1080,"mtime":1716085371834,"results":"76","hashOfConfig":"51"},{"size":3777,"mtime":1721801545176,"results":"77","hashOfConfig":"51"},{"size":4077,"mtime":1721801545207,"results":"78","hashOfConfig":"51"},{"size":1102,"mtime":1710829302576,"results":"79","hashOfConfig":"51"},{"size":1162,"mtime":1710829299926,"results":"80","hashOfConfig":"51"},{"size":2302,"mtime":1711102156682,"results":"81","hashOfConfig":"51"},{"size":1677,"mtime":1716085381973,"results":"82","hashOfConfig":"51"},{"size":4897,"mtime":1718183843897,"results":"83","hashOfConfig":"51"},{"size":2119,"mtime":1720086914249,"results":"84","hashOfConfig":"51"},{"size":696,"mtime":1720086914261,"results":"85","hashOfConfig":"51"},{"size":1684,"mtime":1720086914112,"results":"86","hashOfConfig":"51"},{"size":1437,"mtime":1720086914134,"results":"87","hashOfConfig":"51"},{"size":2987,"mtime":1720174044485,"results":"88","hashOfConfig":"51"},{"size":782,"mtime":1720174047079,"results":"89","hashOfConfig":"51"},{"size":479,"mtime":1720086914169,"results":"90","hashOfConfig":"51"},{"size":1049,"mtime":1716085371834,"results":"91","hashOfConfig":"51"},{"size":1208,"mtime":1716085371834,"results":"92","hashOfConfig":"51"},{"size":365,"mtime":1716085371835,"results":"93","hashOfConfig":"51"},{"size":665,"mtime":1720086917041,"results":"94","hashOfConfig":"51"},{"size":266,"mtime":1720086917041,"results":"95","hashOfConfig":"51"},{"size":2253,"mtime":1720086917041,"results":"96","hashOfConfig":"51"},{"size":3013,"mtime":1721801545313},{"size":2666,"mtime":1721801545325},{"size":776,"mtime":1721801545330},{"filePath":"97","messages":"98","suppressedMessages":"99","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1mh59l9",{"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":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":2,"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"133","messages":"134","suppressedMessages":"135","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"148","messages":"149","suppressedMessages":"150","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"151","messages":"152","suppressedMessages":"153","errorCount":0,"fatalErrorCount":0,"warningCount":2,"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"163","messages":"164","suppressedMessages":"165","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":6,"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},{"filePath":"202","messages":"203","suppressedMessages":"204","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"205","messages":"206","suppressedMessages":"207","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"208","messages":"209","suppressedMessages":"210","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"211","messages":"212","suppressedMessages":"213","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"214","messages":"215","suppressedMessages":"216","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"217","messages":"218","suppressedMessages":"219","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"220","messages":"221","suppressedMessages":"222","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"223","messages":"224","suppressedMessages":"225","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"226","messages":"227","suppressedMessages":"228","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"229","messages":"230","suppressedMessages":"231","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"232","messages":"233","suppressedMessages":"234","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/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",["235","236"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/context.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useCurrentTable.ts",["237"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useHTable.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useRowObj.ts",["238"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/modal.ts",["239"],[],"/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",["240"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/Table/index.tsx",["241","242"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/TableCustomize/index.tsx",["243","244","245","246"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTablePagination/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/index.ts",["247"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/hooks.ts",["248","249","250","251"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/ModalTable/index.tsx",["252","253","254","255"],[],"/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",["256","257","258","259","260"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/GoTop/index.tsx",["261","262"],[],"/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",["263","264","265","266","267","268"],[],"/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",["269"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/Title.tsx",["270"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/index.tsx",[],[],"/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",["271","272"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/HeaderTitle/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/RangePickerSearch.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/defaultFormRender.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/hooks.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableHeader/Context.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/utils.ts",["273","274"],[],{"ruleId":"275","severity":1,"message":"276","line":21,"column":3,"nodeType":"277","messageId":"278","endLine":21,"endColumn":12},{"ruleId":"275","severity":1,"message":"279","line":22,"column":3,"nodeType":"277","messageId":"278","endLine":22,"endColumn":12},{"ruleId":"280","severity":1,"message":"281","line":43,"column":6,"nodeType":"282","endLine":43,"endColumn":42,"suggestions":"283"},{"ruleId":"275","severity":1,"message":"284","line":8,"column":9,"nodeType":"277","messageId":"278","endLine":8,"endColumn":30},{"ruleId":"275","severity":1,"message":"285","line":13,"column":10,"nodeType":"277","messageId":"278","endLine":13,"endColumn":19},{"ruleId":"280","severity":1,"message":"286","line":52,"column":6,"nodeType":"282","endLine":52,"endColumn":8,"suggestions":"287"},{"ruleId":"275","severity":1,"message":"288","line":118,"column":7,"nodeType":"277","messageId":"278","endLine":118,"endColumn":11},{"ruleId":"275","severity":1,"message":"289","line":206,"column":44,"nodeType":"277","messageId":"278","endLine":206,"endColumn":50},{"ruleId":"275","severity":1,"message":"290","line":5,"column":3,"nodeType":"277","messageId":"278","endLine":5,"endColumn":15},{"ruleId":"275","severity":1,"message":"291","line":6,"column":3,"nodeType":"277","messageId":"278","endLine":6,"endColumn":19},{"ruleId":"275","severity":1,"message":"292","line":27,"column":7,"nodeType":"277","messageId":"278","endLine":27,"endColumn":13},{"ruleId":"275","severity":1,"message":"289","line":43,"column":36,"nodeType":"277","messageId":"278","endLine":43,"endColumn":42},{"ruleId":"280","severity":1,"message":"293","line":13,"column":6,"nodeType":"282","endLine":13,"endColumn":17,"suggestions":"294"},{"ruleId":"275","severity":1,"message":"295","line":9,"column":10,"nodeType":"277","messageId":"278","endLine":9,"endColumn":21},{"ruleId":"275","severity":1,"message":"296","line":16,"column":14,"nodeType":"277","messageId":"278","endLine":16,"endColumn":39},{"ruleId":"280","severity":1,"message":"297","line":20,"column":6,"nodeType":"282","endLine":20,"endColumn":8,"suggestions":"298"},{"ruleId":"280","severity":1,"message":"299","line":48,"column":6,"nodeType":"282","endLine":48,"endColumn":8,"suggestions":"300"},{"ruleId":"275","severity":1,"message":"301","line":24,"column":7,"nodeType":"277","messageId":"278","endLine":24,"endColumn":11},{"ruleId":"275","severity":1,"message":"289","line":27,"column":32,"nodeType":"277","messageId":"278","endLine":27,"endColumn":38},{"ruleId":"275","severity":1,"message":"289","line":47,"column":32,"nodeType":"277","messageId":"278","endLine":47,"endColumn":38},{"ruleId":"275","severity":1,"message":"302","line":114,"column":9,"nodeType":"277","messageId":"278","endLine":114,"endColumn":21},{"ruleId":"280","severity":1,"message":"303","line":61,"column":6,"nodeType":"282","endLine":61,"endColumn":39,"suggestions":"304"},{"ruleId":"280","severity":1,"message":"305","line":86,"column":6,"nodeType":"282","endLine":86,"endColumn":40,"suggestions":"306"},{"ruleId":"280","severity":1,"message":"307","line":115,"column":6,"nodeType":"282","endLine":115,"endColumn":8,"suggestions":"308"},{"ruleId":"280","severity":1,"message":"309","line":120,"column":6,"nodeType":"282","endLine":120,"endColumn":17,"suggestions":"310"},{"ruleId":"280","severity":1,"message":"311","line":123,"column":6,"nodeType":"282","endLine":123,"endColumn":13,"suggestions":"312"},{"ruleId":"280","severity":1,"message":"313","line":26,"column":6,"nodeType":"282","endLine":26,"endColumn":11,"suggestions":"314"},{"ruleId":"280","severity":1,"message":"313","line":34,"column":6,"nodeType":"282","endLine":34,"endColumn":8,"suggestions":"315"},{"ruleId":"275","severity":1,"message":"316","line":68,"column":5,"nodeType":"277","messageId":"278","endLine":68,"endColumn":22},{"ruleId":"275","severity":1,"message":"317","line":69,"column":5,"nodeType":"277","messageId":"278","endLine":69,"endColumn":15},{"ruleId":"275","severity":1,"message":"318","line":70,"column":5,"nodeType":"277","messageId":"278","endLine":70,"endColumn":16},{"ruleId":"275","severity":1,"message":"319","line":71,"column":5,"nodeType":"277","messageId":"278","endLine":71,"endColumn":10},{"ruleId":"280","severity":1,"message":"320","line":188,"column":6,"nodeType":"282","endLine":188,"endColumn":42,"suggestions":"321"},{"ruleId":"280","severity":1,"message":"320","line":194,"column":6,"nodeType":"282","endLine":194,"endColumn":42,"suggestions":"322"},{"ruleId":"280","severity":1,"message":"323","line":31,"column":6,"nodeType":"282","endLine":31,"endColumn":15,"suggestions":"324"},{"ruleId":"275","severity":1,"message":"325","line":20,"column":9,"nodeType":"277","messageId":"278","endLine":20,"endColumn":16},{"ruleId":"275","severity":1,"message":"326","line":1,"column":15,"nodeType":"277","messageId":"278","endLine":1,"endColumn":30},{"ruleId":"275","severity":1,"message":"327","line":3,"column":10,"nodeType":"277","messageId":"278","endLine":3,"endColumn":22},{"ruleId":"275","severity":1,"message":"328","line":22,"column":51,"nodeType":"277","messageId":"278","endLine":22,"endColumn":63},{"ruleId":"275","severity":1,"message":"329","line":22,"column":65,"nodeType":"277","messageId":"278","endLine":22,"endColumn":73},"@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",["330"],"'selectedRowDataSource' is assigned a value but never used.","'GetRowKey' is defined but never used.","React Hook useEffect has missing dependencies: 'formInitValues', 'manual', 'reloadFn', 'request', and 'resultAction'. Either include them or remove the dependency array.",["331"],"'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.","'AddBtn' is assigned a value but never used.","React Hook useMemo has a missing dependency: 'config'. Either include it or remove the dependency array.",["332"],"'HTableProps' is defined but never used.","'params' is defined but never used.","React Hook useMemo has a missing dependency: 'tableInstance'. Either include it or remove the dependency array.",["333"],"React Hook useEffect has missing dependencies: 'dialogTableInstance', 'hide', and 'show'. Either include them or remove the dependency array.",["334"],"'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.",["335"],"React Hook useEffect has a missing dependency: 'rowOnChange'. Either include it or remove the dependency array.",["336"],"React Hook useMemo has a missing dependency: 'selfValue'. Either include it or remove the dependency array.",["337"],"React Hook useEffect has missing dependencies: 'columns' and 'tableInstance.table'. Either include them or remove the dependency array.",["338"],"React Hook useEffect has a missing dependency: 'columnsState'. Either include it or remove the dependency array. If 'setSelfValue' needs the current value of 'columnsState', you can also switch to useReducer instead of useState and read 'columnsState' in the reducer.",["339"],"React Hook useEffect has a missing dependency: 'cuDom'. Either include it or remove the dependency array.",["340"],["341"],"'childrenDataIndex' is defined but never used.","'showSearch' is defined but never used.","'hideInTable' is defined but never used.","'align' is defined but never used.","React Hook useEffect has a missing dependency: 'mkNewFn'. Either include it or remove the dependency array.",["342"],["343"],"React Hook useMemo has a missing dependency: 'titleClass'. Either include it or remove the dependency array.",["344"],"'allKeys' is assigned a value but never used.","'ConfigDataModal' is defined but never used.","'ColumnsState' is defined but never used.","'defaultValue' is assigned a value but never used.","'onChange' is assigned a value but never used.",{"desc":"345","fix":"346"},{"desc":"347","fix":"348"},{"desc":"349","fix":"350"},{"desc":"351","fix":"352"},{"desc":"353","fix":"354"},{"desc":"355","fix":"356"},{"desc":"357","fix":"358"},{"desc":"359","fix":"360"},{"desc":"361","fix":"362"},{"desc":"363","fix":"364"},{"desc":"365","fix":"366"},{"desc":"367","fix":"368"},{"desc":"369","fix":"370"},{"desc":"369","fix":"371"},{"desc":"372","fix":"373"},"Update the dependencies array to be: [table, useCurrentTable, reload, changeRowData, dispatch, reloadWithParams, getTableParams, selectedRowData, dataSource?.records]",{"range":"374","text":"375"},"Update the dependencies array to be: [formInitValues, manual, reloadFn, request, resultAction]",{"range":"376","text":"377"},"Update the dependencies array to be: [className, config]",{"range":"378","text":"379"},"Update the dependencies array to be: [tableInstance]",{"range":"380","text":"381"},"Update the dependencies array to be: [dialogTableInstance, hide, show]",{"range":"382","text":"383"},"Update the dependencies array to be: [configData, table, rowSelection, changeConfigData]",{"range":"384","text":"385"},"Update the dependencies array to be: [selectedRowKeys, records, rowKey, rowOnChange]",{"range":"386","text":"387"},"Update the dependencies array to be: [selfValue]",{"range":"388","text":"389"},"Update the dependencies array to be: [columns, selfValue, tableInstance.table]",{"range":"390","text":"391"},"Update the dependencies array to be: [columnsState, value]",{"range":"392","text":"393"},"Update the dependencies array to be: [cuDom, dom]",{"range":"394","text":"395"},"Update the dependencies array to be: [cuDom]",{"range":"396","text":"397"},"Update the dependencies array to be: [configData, searchSpan, headerOpen, mkNewFn]",{"range":"398","text":"399"},{"range":"400","text":"399"},"Update the dependencies array to be: [columns, titleClass]",{"range":"401","text":"402"},[1369,1405],"[table, useCurrentTable, reload, changeRowData, dispatch, reloadWithParams, getTableParams, selectedRowData, dataSource?.records]",[1299,1301],"[formInitValues, manual, reloadFn, request, resultAction]",[481,492],"[className, config]",[523,525],"[tableInstance]",[1229,1231],"[dialogTableInstance, hide, show]",[1997,2030],"[configData, table, rowSelection, changeConfigData]",[2671,2705],"[selectedRowKeys, records, rowKey, rowOnChange]",[3434,3436],"[selfValue]",[3571,3582],"[columns, selfValue, tableInstance.table]",[3657,3664],"[columnsState, value]",[825,830],"[cuDom, dom]",[1021,1023],"[cuDom]",[4625,4661],"[configData, searchSpan, headerOpen, mkNewFn]",[4816,4852],[995,1004],"[columns, titleClass]"]
@@ -57,6 +57,7 @@ export declare const getItemValue: (data: ConfigItemModal) => {
57
57
  searchType?: string | undefined;
58
58
  searchRender?: ((item: import("@hw-component/form/es/Form/modal").HItemProps, node: React.ReactNode, form: import("antd").FormInstance<any>, tableInstance: import("../../modal").HTableInstance) => React.ReactNode) | undefined;
59
59
  rowSelectionTitle?: boolean | undefined;
60
+ valueTypeProps?: Record<string, any> | undefined;
60
61
  index?: number | undefined;
61
62
  filters?: boolean | import("antd/lib/table/interface").ColumnFilterItem[] | undefined;
62
63
  onFilter?: boolean | ((value: string | number | boolean, record: any) => boolean) | undefined;
@@ -143,9 +143,9 @@ var RowSelectionBox = function RowSelectionBox(_ref5) {
143
143
  onChange === null || onChange === void 0 || onChange(newKeys, newRowData);
144
144
  return;
145
145
  }
146
- var index = _indexOfInstanceProperty(newKeys).call(newKeys, key);
147
- _spliceInstanceProperty(newKeys).call(newKeys, index, 1);
148
- _spliceInstanceProperty(newRowData).call(newRowData, index, 1);
146
+ var keyIndex = _indexOfInstanceProperty(newKeys).call(newKeys, key);
147
+ _spliceInstanceProperty(newKeys).call(newKeys, keyIndex, 1);
148
+ _spliceInstanceProperty(newRowData).call(newRowData, keyIndex, 1);
149
149
  rowOnChange(newKeys, newRowData);
150
150
  onChange === null || onChange === void 0 || onChange(newKeys, newRowData);
151
151
  };
@@ -17,6 +17,8 @@ import { useState, useEffect, useMemo } from 'react';
17
17
  import { useHTableContext } from '../context.js';
18
18
  import { RowSelectionTitle, RowSelectionBox } from './RowSelection.js';
19
19
  import { outColSetting, mkChangeValue } from './utils.js';
20
+ import configRender from '../render/index.js';
21
+ import { useHTableConfigContext } from '../TableConfig.js';
20
22
 
21
23
  function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
24
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context, _context2; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(t), !0)).call(_context, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context2 = ownKeys(Object(t))).call(_context2, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -52,6 +54,8 @@ var useCols = function useCols(_ref2) {
52
54
  _useState2 = _slicedToArray(_useState, 2),
53
55
  cols = _useState2[0],
54
56
  setCols = _useState2[1];
57
+ var _useHTableConfigConte = useHTableConfigContext({}),
58
+ valueTypeConfig = _useHTableConfigConte.valueTypeConfig;
55
59
  var changeConfigData = function changeConfigData(data) {
56
60
  var colsArray = _filterInstanceProperty(data).call(data, function (item) {
57
61
  return !item.hideInTable;
@@ -60,14 +64,8 @@ var useCols = function useCols(_ref2) {
60
64
  _spliceInstanceProperty(colsArray).call(colsArray, 0, 0, rowSelectionCol(rowSelection));
61
65
  }
62
66
  return _mapInstanceProperty(colsArray).call(colsArray, function (item) {
63
- var _render = item.render;
64
67
  return _objectSpread(_objectSpread({}, item), {}, {
65
- render: function render(dom, itemData, index) {
66
- if (!_render) {
67
- return dom;
68
- }
69
- return _render(dom, itemData, index, table);
70
- }
68
+ render: configRender(item, table, valueTypeConfig)
71
69
  });
72
70
  });
73
71
  };
@@ -1,19 +1,21 @@
1
1
  import React from "react";
2
- import type { HTableInstance } from "src/components/modal";
2
+ import type { HTableInstance, ValueTypeConfigModal } from "./modal";
3
3
  interface HTableConfigContextModal {
4
4
  emptyRender?: (table: HTableInstance) => React.ReactNode;
5
5
  errorRender?: (table: HTableInstance, error: Error) => React.ReactNode;
6
6
  headerStyle?: React.CSSProperties;
7
7
  tableStyle?: React.CSSProperties;
8
8
  paginationStyle?: React.CSSProperties;
9
+ valueTypeConfig?: ValueTypeConfigModal;
9
10
  }
10
11
  export declare const HTableConfigContext: React.Context<HTableConfigContextModal | null>;
11
- export declare const useHTableConfigContext: ({ emptyRender, errorRender, headerStyle, tableStyle, paginationStyle }: HTableConfigContextModal) => {
12
+ export declare const useHTableConfigContext: ({ emptyRender, errorRender, headerStyle, tableStyle, paginationStyle, }: HTableConfigContextModal) => {
12
13
  errorRender: ((table: HTableInstance, error: Error) => React.ReactNode) | undefined;
13
14
  emptyRender: ((table: HTableInstance) => React.ReactNode) | undefined;
14
15
  headerStyle: React.CSSProperties | undefined;
15
16
  tableStyle: React.CSSProperties | undefined;
16
17
  paginationStyle: React.CSSProperties | undefined;
18
+ valueTypeConfig: ValueTypeConfigModal;
17
19
  };
18
20
  declare const Index: React.FC<HTableConfigContextModal>;
19
21
  export default Index;
package/es/TableConfig.js CHANGED
@@ -16,13 +16,16 @@ var useHTableConfigContext = function useHTableConfigContext(_ref) {
16
16
  configEmptyRender = _ref2.emptyRender,
17
17
  configHeaderStyle = _ref2.headerStyle,
18
18
  configTableStyle = _ref2.tableStyle,
19
- configPaginationStyle = _ref2.paginationStyle;
19
+ configPaginationStyle = _ref2.paginationStyle,
20
+ _ref2$valueTypeConfig = _ref2.valueTypeConfig,
21
+ valueTypeConfig = _ref2$valueTypeConfig === void 0 ? {} : _ref2$valueTypeConfig;
20
22
  return {
21
23
  errorRender: errorRender || configErrorRender,
22
24
  emptyRender: emptyRender || configEmptyRender,
23
25
  headerStyle: headerStyle || configHeaderStyle,
24
26
  tableStyle: tableStyle || configTableStyle,
25
- paginationStyle: paginationStyle || configPaginationStyle
27
+ paginationStyle: paginationStyle || configPaginationStyle,
28
+ valueTypeConfig: valueTypeConfig
26
29
  };
27
30
  };
28
31
  var Index = function Index(_ref3) {
package/es/modal.d.ts CHANGED
@@ -29,6 +29,7 @@ interface HColumns extends Omit<ProColumns, "render" | "title"> {
29
29
  searchRender?: (item: HItemProps, node: React.ReactNode, form: FormInstance, tableInstance: HTableInstance) => React.ReactNode;
30
30
  rowSelectionTitle?: boolean;
31
31
  title?: string | React.ReactNode;
32
+ valueTypeProps?: Record<string, any>;
32
33
  }
33
34
  interface BcItemModal {
34
35
  childrenDataIndex?: ConfigItemModal[] | string[];
@@ -42,11 +43,10 @@ export type actionFn = (...arg: any[]) => void;
42
43
  export interface RowSelectionOuter {
43
44
  allPageCheck?: boolean;
44
45
  }
45
- type RowKeyFn = (data: any, index: number) => string;
46
46
  export type HRowSelection = RowSelectionOuter & (TableProps<any>["rowSelection"] & {
47
47
  alwaysShowAlert?: boolean;
48
48
  });
49
- export interface HTableProps extends Omit<ProTableProps<any, any>, "request" | "dataSource" | "rowKey" | "rowSelection"> {
49
+ export interface HTableProps extends Omit<ProTableProps<any, any>, "request" | "dataSource" | "rowSelection"> {
50
50
  request?: (params: ParamsModal) => Promise<ResultModal>;
51
51
  configData: ConfigDataModal;
52
52
  searchSpan?: ColProps;
@@ -65,7 +65,6 @@ export interface HTableProps extends Omit<ProTableProps<any, any>, "request" | "
65
65
  manual?: boolean;
66
66
  dataSource?: ResultModal;
67
67
  paginationStyle?: React.CSSProperties;
68
- rowKey?: string | RowKeyFn;
69
68
  allPageCheck?: boolean;
70
69
  rowSelection?: HRowSelection | false;
71
70
  affixProps?: AffixProps | false;
@@ -121,4 +120,6 @@ export interface ModalTableProps extends ModalProps {
121
120
  configData?: HTableProps["configData"];
122
121
  request?: HTableProps["request"];
123
122
  }
123
+ export type ValueTypeConfigRenderFn = (config: ConfigItemModal, itemData: any, index: number, tableInstance: HTableInstance) => React.ReactNode;
124
+ export type ValueTypeConfigModal = Record<string, ValueTypeConfigRenderFn>;
124
125
  export {};
@@ -0,0 +1,20 @@
1
+ import React from "react";
2
+ import type { TooltipProps } from "antd/lib/tooltip";
3
+ import type { HTableInstance } from "@/components/modal";
4
+ type CloseFn = (key: string, tableInstance?: HTableInstance) => void;
5
+ interface IProps {
6
+ data: any[];
7
+ closable?: boolean;
8
+ onClose?: CloseFn;
9
+ color?: string;
10
+ icon?: React.ReactNode;
11
+ tooltip?: boolean | TooltipProps;
12
+ fieldNames?: {
13
+ label?: string;
14
+ value?: string;
15
+ };
16
+ tableInstance?: HTableInstance;
17
+ maxLen?: number | null;
18
+ }
19
+ declare const TagsComponent: (props: IProps) => JSX.Element;
20
+ export default TagsComponent;
@@ -0,0 +1,123 @@
1
+ // welcome to hoo hoo hoo
2
+ import _Object$keys from '@babel/runtime-corejs3/core-js/object/keys';
3
+ import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js/object/get-own-property-symbols';
4
+ import _filterInstanceProperty from '@babel/runtime-corejs3/core-js/instance/filter';
5
+ import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js/object/get-own-property-descriptor';
6
+ import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js/instance/for-each';
7
+ import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js/object/get-own-property-descriptors';
8
+ import _Object$defineProperties from '@babel/runtime-corejs3/core-js/object/define-properties';
9
+ import _Object$defineProperty from '@babel/runtime-corejs3/core-js/object/define-property';
10
+ import _Symbol$toPrimitive from '@babel/runtime-corejs3/core-js/symbol/to-primitive';
11
+ import _typeof from '@babel/runtime-corejs3/helpers/typeof';
12
+ import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
13
+ import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
14
+ import 'core-js/modules/es.number.constructor.js';
15
+ import 'core-js/modules/es.object.to-string.js';
16
+ import 'core-js/modules/es.regexp.to-string.js';
17
+ import _sliceInstanceProperty from '@babel/runtime-corejs3/core-js/instance/slice';
18
+ import _mapInstanceProperty from '@babel/runtime-corejs3/core-js/instance/map';
19
+ import { jsxs, jsx } from 'react/jsx-runtime';
20
+ import { Row, Tooltip, Tag, Popover } from 'antd';
21
+ import { useMemo } from 'react';
22
+
23
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
24
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[_Symbol$toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
25
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
26
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
27
+ var getTooltipProps = function getTooltipProps(title, tooltip) {
28
+ if (!tooltip) {
29
+ return {
30
+ title: null
31
+ };
32
+ }
33
+ if (tooltip === true) {
34
+ return {
35
+ title: title
36
+ };
37
+ }
38
+ return _objectSpread(_objectSpread({}, tooltip), {}, {
39
+ title: title
40
+ });
41
+ };
42
+ var TagsComponent = function TagsComponent(props) {
43
+ var data = props.data,
44
+ closable = props.closable,
45
+ _onClose = props.onClose,
46
+ color = props.color,
47
+ icon = props.icon,
48
+ _props$fieldNames = props.fieldNames,
49
+ fieldNames = _props$fieldNames === void 0 ? {} : _props$fieldNames,
50
+ tooltip = props.tooltip,
51
+ tableInstance = props.tableInstance,
52
+ maxLen = props.maxLen;
53
+ var _fieldNames$label = fieldNames.label,
54
+ label = _fieldNames$label === void 0 ? "label" : _fieldNames$label,
55
+ _fieldNames$value = fieldNames.value,
56
+ value = _fieldNames$value === void 0 ? "value" : _fieldNames$value;
57
+ var _useMemo = useMemo(function () {
58
+ if (!maxLen || !data) {
59
+ return {
60
+ tagData: data
61
+ };
62
+ }
63
+ var resultTagData = _sliceInstanceProperty(data).call(data, 0, maxLen);
64
+ var resultMoreTag = _sliceInstanceProperty(data).call(data, maxLen);
65
+ return {
66
+ tagData: resultTagData,
67
+ moreTag: resultMoreTag
68
+ };
69
+ }, [data, maxLen]),
70
+ tagData = _useMemo.tagData,
71
+ moreTag = _useMemo.moreTag;
72
+ var moreLen = moreTag === null || moreTag === void 0 ? void 0 : moreTag.length;
73
+ return jsxs(Row, {
74
+ gutter: [8, 8],
75
+ children: [tagData === null || tagData === void 0 ? void 0 : _mapInstanceProperty(tagData).call(tagData, function (tagItem, index) {
76
+ var _context;
77
+ var tagProps = {
78
+ closable: closable,
79
+ onClose: _onClose,
80
+ color: color,
81
+ icon: icon
82
+ };
83
+ var indexKey = index.toString();
84
+ if (typeof tagItem === "string") {
85
+ var _tooltipProps = getTooltipProps(tagItem, tooltip);
86
+ return jsx(Tooltip, _objectSpread(_objectSpread({}, _tooltipProps), {}, {
87
+ children: jsx(Tag, _objectSpread(_objectSpread({}, tagProps), {}, {
88
+ onClose: function onClose(e) {
89
+ e.preventDefault();
90
+ _onClose === null || _onClose === void 0 || _onClose(indexKey, tableInstance);
91
+ },
92
+ children: tagItem
93
+ }), indexKey)
94
+ }));
95
+ }
96
+ var tagLabel = tagItem[label],
97
+ tagValue = tagItem[value],
98
+ itemProps = _objectWithoutProperties(tagItem, _mapInstanceProperty(_context = [label, value]).call(_context, _toPropertyKey));
99
+ var tooltipProps = getTooltipProps(tagLabel, tooltip);
100
+ var cuTagProps = _objectSpread(_objectSpread({}, tagProps), itemProps);
101
+ var cuKey = tagValue || indexKey;
102
+ return jsx(Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
103
+ children: jsx(Tag, _objectSpread(_objectSpread({}, cuTagProps), {}, {
104
+ onClose: function onClose(e) {
105
+ e.preventDefault();
106
+ cuTagProps === null || cuTagProps === void 0 || cuTagProps.onClose(cuKey, tableInstance);
107
+ },
108
+ children: tagLabel
109
+ }), cuKey)
110
+ }));
111
+ }), !moreLen ? null : jsx(Popover, {
112
+ content: jsx(TagsComponent, _objectSpread(_objectSpread({}, props), {}, {
113
+ maxLen: null
114
+ })),
115
+ children: jsxs(Tag, {
116
+ children: ["...\u7B49", data.length, "\u4E2A"]
117
+ })
118
+ })]
119
+ });
120
+ };
121
+
122
+ export { TagsComponent as default };
123
+ // powered by hdj
@@ -0,0 +1,11 @@
1
+ import type { ConfigItemModal, HTableInstance } from "@/components/modal";
2
+ declare const _default: {
3
+ date: (config: ConfigItemModal, itemData: any) => string;
4
+ tags: (config: ConfigItemModal, itemData: any, index: number, tableInstance: HTableInstance) => "-" | JSX.Element;
5
+ copy: (config: ConfigItemModal, itemData: any) => "-" | JSX.Element;
6
+ link: (config: ConfigItemModal, itemData: any) => JSX.Element;
7
+ text: (config: ConfigItemModal, itemData: any) => JSX.Element;
8
+ image: (config: ConfigItemModal, itemData: any) => JSX.Element;
9
+ avatar: (config: ConfigItemModal, itemData: any) => JSX.Element;
10
+ };
11
+ export default _default;