@hw-component/table 1.1.7 → 1.1.9
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 +1 -1
- package/es/HTableBody/Options/Content.d.ts +1 -1
- package/es/HTableBody/Options/Content.js +11 -25
- package/es/HTableBody/Options/Title.d.ts +1 -1
- package/es/HTableBody/Options/Title.js +25 -32
- package/es/HTableBody/Options/hooks.d.ts +2 -0
- package/es/HTableBody/Options/hooks.js +32 -0
- package/es/HTableBody/Options/index.d.ts +1 -1
- package/es/HTableBody/Options/index.js +31 -43
- package/es/HTableBody/Options/utils.d.ts +2 -7
- package/es/HTableBody/Options/utils.js +2 -57
- package/es/HTableBody/hooks.d.ts +13 -1
- package/es/HTableBody/hooks.js +52 -8
- package/es/HTableBody/index.d.ts +7 -2
- package/es/HTableBody/index.js +20 -6
- package/es/HTableBody/utils.d.ts +7 -0
- package/es/HTableBody/utils.js +99 -0
- package/es/HTableHeader/Context.d.ts +1 -1
- package/es/HTableHeader/defaultSubComponent.js +5 -1
- package/es/HTableHeader/index.d.ts +1 -1
- package/es/hooks/useHTable.js +3 -1
- package/es/modal.d.ts +7 -4
- package/lib/HTableBody/Options/Content.d.ts +1 -1
- package/lib/HTableBody/Options/Content.js +11 -25
- package/lib/HTableBody/Options/Title.d.ts +1 -1
- package/lib/HTableBody/Options/Title.js +25 -32
- package/lib/HTableBody/Options/hooks.d.ts +2 -0
- package/lib/HTableBody/Options/hooks.js +33 -0
- package/lib/HTableBody/Options/index.d.ts +1 -1
- package/lib/HTableBody/Options/index.js +30 -42
- package/lib/HTableBody/Options/utils.d.ts +2 -7
- package/lib/HTableBody/Options/utils.js +1 -57
- package/lib/HTableBody/hooks.d.ts +13 -1
- package/lib/HTableBody/hooks.js +51 -6
- package/lib/HTableBody/index.d.ts +7 -2
- package/lib/HTableBody/index.js +19 -5
- package/lib/HTableBody/utils.d.ts +7 -0
- package/lib/HTableBody/utils.js +101 -0
- package/lib/HTableHeader/Context.d.ts +1 -1
- package/lib/HTableHeader/defaultSubComponent.js +5 -1
- package/lib/HTableHeader/index.d.ts +1 -1
- package/lib/hooks/useHTable.js +3 -1
- package/lib/modal.d.ts +7 -4
- package/package.json +1 -1
- package/src/components/HTableBody/Options/Content.tsx +10 -14
- package/src/components/HTableBody/Options/Title.tsx +21 -20
- package/src/components/HTableBody/Options/hooks.ts +24 -0
- package/src/components/HTableBody/Options/index.tsx +23 -26
- package/src/components/HTableBody/Options/modal.d.ts +10 -2
- package/src/components/HTableBody/Options/utils.ts +1 -54
- package/src/components/HTableBody/hooks.tsx +49 -5
- package/src/components/HTableBody/index.tsx +29 -6
- package/src/components/HTableBody/utils.ts +93 -0
- package/src/components/HTableHeader/Context.tsx +7 -7
- package/src/components/HTableHeader/defaultSubComponent.tsx +7 -3
- package/src/components/HTableHeader/index.tsx +15 -15
- package/src/components/HTableHeader/modal.ts +1 -1
- package/src/components/hooks/useHTable.tsx +5 -3
- package/src/components/modal.ts +7 -10
- package/src/pages/Table/index.tsx +27 -9
- package/src/pages/TableCustomize/index.tsx +16 -2
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"},{"size":1541,"mtime":1709541397429,"results":"44","hashOfConfig":"45"},{"size":741,"mtime":1713518829815,"results":"46","hashOfConfig":"45"},{"size":370,"mtime":1718160488742,"results":"47","hashOfConfig":"45"},{"size":769,"mtime":1710811861083,"results":"48","hashOfConfig":"45"},{"size":608,"mtime":1716085382302,"results":"49","hashOfConfig":"45"},{"size":2596,"mtime":1718183240242,"results":"50","hashOfConfig":"45"},{"size":971,"mtime":1716085382228,"results":"51","hashOfConfig":"45"},{"size":1406,"mtime":1718183240259,"results":"52","hashOfConfig":"45"},{"size":739,"mtime":1718160488723,"results":"53","hashOfConfig":"45"},{"size":739,"mtime":1716085382298,"results":"54","hashOfConfig":"45"},{"size":4555,"mtime":1718183240278,"results":"55","hashOfConfig":"45"},{"size":945,"mtime":1716085371836,"results":"56","hashOfConfig":"45"},{"size":5171,"mtime":1718183240221,"results":"57","hashOfConfig":"45"},{"size":2163,"mtime":1716085382140,"results":"58","hashOfConfig":"45"},{"size":1855,"mtime":1718160488697,"results":"59","hashOfConfig":"45"},{"size":1892,"mtime":1718183240251,"results":"60","hashOfConfig":"45"},{"size":209,"mtime":1713781957255,"results":"61","hashOfConfig":"45"},{"size":1487,"mtime":1718182954096,"results":"62","hashOfConfig":"45"},{"size":3092,"mtime":1718183173271,"results":"63","hashOfConfig":"45"},{"size":1762,"mtime":1716085371838,"results":"64","hashOfConfig":"45"},{"size":3149,"mtime":1716085382191,"results":"65","hashOfConfig":"45"},{"size":498,"mtime":1709893919938,"results":"66","hashOfConfig":"45"},{"size":1503,"mtime":1716085382199,"results":"67","hashOfConfig":"45"},{"size":2083,"mtime":1716085382206,"results":"68","hashOfConfig":"45"},{"size":2830,"mtime":1716085382332,"results":"69","hashOfConfig":"45"},{"size":1080,"mtime":1716085371834,"results":"70","hashOfConfig":"45"},{"size":3603,"mtime":1713782094969,"results":"71","hashOfConfig":"45"},{"size":2765,"mtime":1716085382106,"results":"72","hashOfConfig":"45"},{"size":1102,"mtime":1710829302576,"results":"73","hashOfConfig":"45"},{"size":1162,"mtime":1710829299926,"results":"74","hashOfConfig":"45"},{"size":2302,"mtime":1711102156682,"results":"75","hashOfConfig":"45"},{"size":1677,"mtime":1716085381973,"results":"76","hashOfConfig":"45"},{"size":4897,"mtime":1718160488688,"results":"77","hashOfConfig":"45"},{"size":1943,"mtime":1712056204827,"results":"78","hashOfConfig":"45"},{"size":670,"mtime":1718160488706,"results":"79","hashOfConfig":"45"},{"size":1781,"mtime":1713782021632,"results":"80","hashOfConfig":"45"},{"size":1349,"mtime":1711679772700,"results":"81","hashOfConfig":"45"},{"size":3092,"mtime":1713518816733,"results":"82","hashOfConfig":"45"},{"size":482,"mtime":1713782042608,"results":"83","hashOfConfig":"45"},{"size":1685,"mtime":1713782074355,"results":"84","hashOfConfig":"45"},{"size":1049,"mtime":1716085371834,"results":"85","hashOfConfig":"45"},{"size":1208,"mtime":1716085371834,"results":"86","hashOfConfig":"45"},{"size":365,"mtime":1716085371835,"results":"87","hashOfConfig":"45"},{"filePath":"88","messages":"89","suppressedMessages":"90","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1mh59l9",{"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":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":2,"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":1,"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":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":2,"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":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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"142","messages":"143","suppressedMessages":"144","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"145","messages":"146","suppressedMessages":"147","errorCount":0,"fatalErrorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"148","messages":"149","suppressedMessages":"150","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"169","messages":"170","suppressedMessages":"171","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"172","messages":"173","suppressedMessages":"174","errorCount":0,"fatalErrorCount":0,"warningCount":2,"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},{"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":6,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"202","messages":"203","suppressedMessages":"204","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"214","messages":"215","suppressedMessages":"216","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",["217","218"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/context.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useCurrentTable.ts",["219"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useHTable.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useRowObj.ts",["220"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/modal.ts",["221"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/TableConfig.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/index.tsx",["222","223"],[],"/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",["224"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/Table/index.tsx",["225","226"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/TableCustomize/index.tsx",["227","228","229"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTablePagination/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/index.ts",["230"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/hooks.ts",["231","232","233","234"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/ModalTable/index.tsx",["235","236","237","238"],[],"/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",["239","240"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/GoTop/index.tsx",["241","242"],[],"/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",["243","244","245","246","247","248"],[],"/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",["249"],[],"/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",["250"],[],"/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",[],[],"/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",[],[],{"ruleId":"251","severity":1,"message":"252","line":20,"column":3,"nodeType":"253","messageId":"254","endLine":20,"endColumn":12},{"ruleId":"251","severity":1,"message":"255","line":21,"column":3,"nodeType":"253","messageId":"254","endLine":21,"endColumn":12},{"ruleId":"256","severity":1,"message":"257","line":37,"column":6,"nodeType":"258","endLine":37,"endColumn":30,"suggestions":"259"},{"ruleId":"251","severity":1,"message":"260","line":8,"column":9,"nodeType":"253","messageId":"254","endLine":8,"endColumn":30},{"ruleId":"251","severity":1,"message":"261","line":65,"column":6,"nodeType":"253","messageId":"254","endLine":65,"endColumn":20},{"ruleId":"251","severity":1,"message":"262","line":77,"column":5,"nodeType":"253","messageId":"254","endLine":77,"endColumn":16},{"ruleId":"251","severity":1,"message":"263","line":80,"column":5,"nodeType":"253","messageId":"254","endLine":80,"endColumn":20},{"ruleId":"256","severity":1,"message":"264","line":52,"column":6,"nodeType":"258","endLine":52,"endColumn":8,"suggestions":"265"},{"ruleId":"251","severity":1,"message":"266","line":62,"column":7,"nodeType":"253","messageId":"254","endLine":62,"endColumn":11},{"ruleId":"251","severity":1,"message":"267","line":116,"column":42,"nodeType":"253","messageId":"254","endLine":116,"endColumn":48},{"ruleId":"251","severity":1,"message":"268","line":5,"column":3,"nodeType":"253","messageId":"254","endLine":5,"endColumn":15},{"ruleId":"251","severity":1,"message":"269","line":6,"column":3,"nodeType":"253","messageId":"254","endLine":6,"endColumn":19},{"ruleId":"251","severity":1,"message":"267","line":41,"column":36,"nodeType":"253","messageId":"254","endLine":41,"endColumn":42},{"ruleId":"256","severity":1,"message":"270","line":13,"column":6,"nodeType":"258","endLine":13,"endColumn":17,"suggestions":"271"},{"ruleId":"251","severity":1,"message":"272","line":9,"column":10,"nodeType":"253","messageId":"254","endLine":9,"endColumn":21},{"ruleId":"251","severity":1,"message":"273","line":16,"column":14,"nodeType":"253","messageId":"254","endLine":16,"endColumn":39},{"ruleId":"256","severity":1,"message":"274","line":20,"column":6,"nodeType":"258","endLine":20,"endColumn":8,"suggestions":"275"},{"ruleId":"256","severity":1,"message":"276","line":48,"column":6,"nodeType":"258","endLine":48,"endColumn":8,"suggestions":"277"},{"ruleId":"251","severity":1,"message":"278","line":24,"column":7,"nodeType":"253","messageId":"254","endLine":24,"endColumn":11},{"ruleId":"251","severity":1,"message":"267","line":27,"column":32,"nodeType":"253","messageId":"254","endLine":27,"endColumn":38},{"ruleId":"251","severity":1,"message":"267","line":47,"column":32,"nodeType":"253","messageId":"254","endLine":47,"endColumn":38},{"ruleId":"251","severity":1,"message":"279","line":114,"column":9,"nodeType":"253","messageId":"254","endLine":114,"endColumn":21},{"ruleId":"256","severity":1,"message":"280","line":60,"column":6,"nodeType":"258","endLine":60,"endColumn":39,"suggestions":"281"},{"ruleId":"256","severity":1,"message":"282","line":89,"column":6,"nodeType":"258","endLine":89,"endColumn":40,"suggestions":"283"},{"ruleId":"256","severity":1,"message":"284","line":26,"column":6,"nodeType":"258","endLine":26,"endColumn":11,"suggestions":"285"},{"ruleId":"256","severity":1,"message":"284","line":34,"column":6,"nodeType":"258","endLine":34,"endColumn":8,"suggestions":"286"},{"ruleId":"251","severity":1,"message":"287","line":68,"column":5,"nodeType":"253","messageId":"254","endLine":68,"endColumn":22},{"ruleId":"251","severity":1,"message":"288","line":69,"column":5,"nodeType":"253","messageId":"254","endLine":69,"endColumn":15},{"ruleId":"251","severity":1,"message":"289","line":70,"column":5,"nodeType":"253","messageId":"254","endLine":70,"endColumn":16},{"ruleId":"251","severity":1,"message":"290","line":71,"column":5,"nodeType":"253","messageId":"254","endLine":71,"endColumn":10},{"ruleId":"256","severity":1,"message":"291","line":188,"column":6,"nodeType":"258","endLine":188,"endColumn":42,"suggestions":"292"},{"ruleId":"256","severity":1,"message":"291","line":194,"column":6,"nodeType":"258","endLine":194,"endColumn":42,"suggestions":"293"},{"ruleId":"256","severity":1,"message":"294","line":31,"column":6,"nodeType":"258","endLine":31,"endColumn":15,"suggestions":"295"},{"ruleId":"256","severity":1,"message":"296","line":37,"column":6,"nodeType":"258","endLine":37,"endColumn":15,"suggestions":"297"},"@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",["298"],"'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.",["299"],"'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.",["300"],"'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.",["301"],"React Hook useEffect has missing dependencies: 'dialogTableInstance', 'hide', and 'show'. Either include them or remove the dependency array.",["302"],"'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.",["303"],"React Hook useEffect has a missing dependency: 'rowOnChange'. Either include it or remove the dependency array.",["304"],"React Hook useEffect has a missing dependency: 'cuDom'. Either include it or remove the dependency array.",["305"],["306"],"'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.",["307"],["308"],"React Hook useMemo has a missing dependency: 'titleClass'. Either include it or remove the dependency array.",["309"],"React Hook useEffect has a missing dependency: 'tableInstance.table'. Either include it or remove the dependency array.",["310"],{"desc":"311","fix":"312"},{"desc":"313","fix":"314"},{"desc":"315","fix":"316"},{"desc":"317","fix":"318"},{"desc":"319","fix":"320"},{"desc":"321","fix":"322"},{"desc":"323","fix":"324"},{"desc":"325","fix":"326"},{"desc":"327","fix":"328"},{"desc":"329","fix":"330"},{"desc":"329","fix":"331"},{"desc":"332","fix":"333"},{"desc":"334","fix":"335"},"Update the dependencies array to be: [table, useCurrentTable, reload, changeRowData, dispatch, reloadWithParams, getTableParams, selectedRowData]",{"range":"336","text":"337"},"Update the dependencies array to be: [formInitValues, manual, reloadFn, request, resultAction]",{"range":"338","text":"339"},"Update the dependencies array to be: [className, config]",{"range":"340","text":"341"},"Update the dependencies array to be: [tableInstance]",{"range":"342","text":"343"},"Update the dependencies array to be: [dialogTableInstance, hide, show]",{"range":"344","text":"345"},"Update the dependencies array to be: [configData, table, rowSelection, changeConfigData]",{"range":"346","text":"347"},"Update the dependencies array to be: [selectedRowKeys, records, rowKey, rowOnChange]",{"range":"348","text":"349"},"Update the dependencies array to be: [cuDom, dom]",{"range":"350","text":"351"},"Update the dependencies array to be: [cuDom]",{"range":"352","text":"353"},"Update the dependencies array to be: [configData, searchSpan, headerOpen, mkNewFn]",{"range":"354","text":"355"},{"range":"356","text":"355"},"Update the dependencies array to be: [columns, titleClass]",{"range":"357","text":"358"},"Update the dependencies array to be: [columns, tableInstance.table]",{"range":"359","text":"360"},[1190,1214],"[table, useCurrentTable, reload, changeRowData, dispatch, reloadWithParams, getTableParams, selectedRowData]",[1299,1301],"[formInitValues, manual, reloadFn, request, resultAction]",[481,492],"[className, config]",[523,525],"[tableInstance]",[1229,1231],"[dialogTableInstance, hide, show]",[1764,1797],"[configData, table, rowSelection, changeConfigData]",[2532,2566],"[selectedRowKeys, records, rowKey, rowOnChange]",[825,830],"[cuDom, dom]",[1021,1023],"[cuDom]",[4625,4661],"[configData, searchSpan, headerOpen, mkNewFn]",[4816,4852],[996,1005],"[columns, titleClass]",[1123,1132],"[columns, tableInstance.table]"]
|
|
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":4609,"mtime":1720086914293,"results":"58","hashOfConfig":"48"},{"size":945,"mtime":1716085371836,"results":"59","hashOfConfig":"48"},{"size":5451,"mtime":1720086914216,"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":3473,"mtime":1720086914306,"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":4044,"mtime":1720086914190,"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":2896,"mtime":1720086914159,"results":"85","hashOfConfig":"48"},{"size":704,"mtime":1720086914164,"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":660,"mtime":1720086914141},{"size":261,"mtime":1720086914236},{"size":2238,"mtime":1720086914232},{"filePath":"91","messages":"92","suppressedMessages":"93","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1mh59l9",{"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":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":2,"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":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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"127","messages":"128","suppressedMessages":"129","errorCount":0,"fatalErrorCount":0,"warningCount":2,"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"145","messages":"146","suppressedMessages":"147","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"157","messages":"158","suppressedMessages":"159","errorCount":0,"fatalErrorCount":0,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","suppressedMessages":"174","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"175","messages":"176","suppressedMessages":"177","errorCount":0,"fatalErrorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"178","messages":"179","suppressedMessages":"180","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":6,"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"196","messages":"197","suppressedMessages":"198","errorCount":0,"fatalErrorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"217","messages":"218","suppressedMessages":"219","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",["220","221"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/context.ts",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useCurrentTable.ts",["222"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useHTable.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/useRowObj.ts",["223"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/modal.ts",["224"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/TableConfig.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/index.tsx",["225","226"],[],"/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",["227"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/Table/index.tsx",["228","229"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/TableCustomize/index.tsx",["230","231","232","233"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTablePagination/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/hooks/index.ts",["234"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/hooks.ts",["235","236","237","238"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/ModalTable/index.tsx",[],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/pages/ModalTable/index.tsx",["239","240","241","242"],[],"/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",["243","244"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/GoTop/index.tsx",["245","246"],[],"/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",["247","248","249","250","251","252"],[],"/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",["253"],[],"/Users/hedongjie/Desktop/web/hw-component-table/src/components/HTableBody/Options/Title.tsx",["254"],[],"/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",["255","256"],[],"/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",[],[],{"ruleId":"257","severity":1,"message":"258","line":20,"column":3,"nodeType":"259","messageId":"260","endLine":20,"endColumn":12},{"ruleId":"257","severity":1,"message":"261","line":21,"column":3,"nodeType":"259","messageId":"260","endLine":21,"endColumn":12},{"ruleId":"262","severity":1,"message":"263","line":43,"column":6,"nodeType":"264","endLine":43,"endColumn":42,"suggestions":"265"},{"ruleId":"257","severity":1,"message":"266","line":8,"column":9,"nodeType":"259","messageId":"260","endLine":8,"endColumn":30},{"ruleId":"257","severity":1,"message":"267","line":65,"column":6,"nodeType":"259","messageId":"260","endLine":65,"endColumn":20},{"ruleId":"257","severity":1,"message":"268","line":82,"column":5,"nodeType":"259","messageId":"260","endLine":82,"endColumn":16},{"ruleId":"257","severity":1,"message":"269","line":85,"column":5,"nodeType":"259","messageId":"260","endLine":85,"endColumn":20},{"ruleId":"262","severity":1,"message":"270","line":52,"column":6,"nodeType":"264","endLine":52,"endColumn":8,"suggestions":"271"},{"ruleId":"257","severity":1,"message":"272","line":62,"column":7,"nodeType":"259","messageId":"260","endLine":62,"endColumn":11},{"ruleId":"257","severity":1,"message":"273","line":132,"column":42,"nodeType":"259","messageId":"260","endLine":132,"endColumn":48},{"ruleId":"257","severity":1,"message":"274","line":5,"column":3,"nodeType":"259","messageId":"260","endLine":5,"endColumn":15},{"ruleId":"257","severity":1,"message":"275","line":6,"column":3,"nodeType":"259","messageId":"260","endLine":6,"endColumn":19},{"ruleId":"257","severity":1,"message":"276","line":27,"column":7,"nodeType":"259","messageId":"260","endLine":27,"endColumn":13},{"ruleId":"257","severity":1,"message":"273","line":43,"column":36,"nodeType":"259","messageId":"260","endLine":43,"endColumn":42},{"ruleId":"262","severity":1,"message":"277","line":13,"column":6,"nodeType":"264","endLine":13,"endColumn":17,"suggestions":"278"},{"ruleId":"257","severity":1,"message":"279","line":9,"column":10,"nodeType":"259","messageId":"260","endLine":9,"endColumn":21},{"ruleId":"257","severity":1,"message":"280","line":16,"column":14,"nodeType":"259","messageId":"260","endLine":16,"endColumn":39},{"ruleId":"262","severity":1,"message":"281","line":20,"column":6,"nodeType":"264","endLine":20,"endColumn":8,"suggestions":"282"},{"ruleId":"262","severity":1,"message":"283","line":48,"column":6,"nodeType":"264","endLine":48,"endColumn":8,"suggestions":"284"},{"ruleId":"257","severity":1,"message":"285","line":24,"column":7,"nodeType":"259","messageId":"260","endLine":24,"endColumn":11},{"ruleId":"257","severity":1,"message":"273","line":27,"column":32,"nodeType":"259","messageId":"260","endLine":27,"endColumn":38},{"ruleId":"257","severity":1,"message":"273","line":47,"column":32,"nodeType":"259","messageId":"260","endLine":47,"endColumn":38},{"ruleId":"257","severity":1,"message":"286","line":114,"column":9,"nodeType":"259","messageId":"260","endLine":114,"endColumn":21},{"ruleId":"262","severity":1,"message":"287","line":60,"column":6,"nodeType":"264","endLine":60,"endColumn":39,"suggestions":"288"},{"ruleId":"262","severity":1,"message":"289","line":89,"column":6,"nodeType":"264","endLine":89,"endColumn":40,"suggestions":"290"},{"ruleId":"262","severity":1,"message":"291","line":26,"column":6,"nodeType":"264","endLine":26,"endColumn":11,"suggestions":"292"},{"ruleId":"262","severity":1,"message":"291","line":34,"column":6,"nodeType":"264","endLine":34,"endColumn":8,"suggestions":"293"},{"ruleId":"257","severity":1,"message":"294","line":68,"column":5,"nodeType":"259","messageId":"260","endLine":68,"endColumn":22},{"ruleId":"257","severity":1,"message":"295","line":69,"column":5,"nodeType":"259","messageId":"260","endLine":69,"endColumn":15},{"ruleId":"257","severity":1,"message":"296","line":70,"column":5,"nodeType":"259","messageId":"260","endLine":70,"endColumn":16},{"ruleId":"257","severity":1,"message":"297","line":71,"column":5,"nodeType":"259","messageId":"260","endLine":71,"endColumn":10},{"ruleId":"262","severity":1,"message":"298","line":188,"column":6,"nodeType":"264","endLine":188,"endColumn":42,"suggestions":"299"},{"ruleId":"262","severity":1,"message":"298","line":194,"column":6,"nodeType":"264","endLine":194,"endColumn":42,"suggestions":"300"},{"ruleId":"262","severity":1,"message":"301","line":31,"column":6,"nodeType":"264","endLine":31,"endColumn":15,"suggestions":"302"},{"ruleId":"257","severity":1,"message":"303","line":20,"column":9,"nodeType":"259","messageId":"260","endLine":20,"endColumn":16},{"ruleId":"257","severity":1,"message":"304","line":1,"column":15,"nodeType":"259","messageId":"260","endLine":1,"endColumn":30},{"ruleId":"257","severity":1,"message":"305","line":3,"column":10,"nodeType":"259","messageId":"260","endLine":3,"endColumn":22},"@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",["306"],"'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.",["307"],"'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.",["308"],"'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.",["309"],"React Hook useEffect has missing dependencies: 'dialogTableInstance', 'hide', and 'show'. Either include them or remove the dependency array.",["310"],"'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.",["311"],"React Hook useEffect has a missing dependency: 'rowOnChange'. Either include it or remove the dependency array.",["312"],"React Hook useEffect has a missing dependency: 'cuDom'. Either include it or remove the dependency array.",["313"],["314"],"'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.",["315"],["316"],"React Hook useMemo has a missing dependency: 'titleClass'. Either include it or remove the dependency array.",["317"],"'allKeys' is assigned a value but never used.","'ConfigDataModal' is defined but never used.","'ColumnsState' is defined but never used.",{"desc":"318","fix":"319"},{"desc":"320","fix":"321"},{"desc":"322","fix":"323"},{"desc":"324","fix":"325"},{"desc":"326","fix":"327"},{"desc":"328","fix":"329"},{"desc":"330","fix":"331"},{"desc":"332","fix":"333"},{"desc":"334","fix":"335"},{"desc":"336","fix":"337"},{"desc":"336","fix":"338"},{"desc":"339","fix":"340"},"Update the dependencies array to be: [table, useCurrentTable, reload, changeRowData, dispatch, reloadWithParams, getTableParams, selectedRowData, dataSource?.records]",{"range":"341","text":"342"},"Update the dependencies array to be: [formInitValues, manual, reloadFn, request, resultAction]",{"range":"343","text":"344"},"Update the dependencies array to be: [className, config]",{"range":"345","text":"346"},"Update the dependencies array to be: [tableInstance]",{"range":"347","text":"348"},"Update the dependencies array to be: [dialogTableInstance, hide, show]",{"range":"349","text":"350"},"Update the dependencies array to be: [configData, table, rowSelection, changeConfigData]",{"range":"351","text":"352"},"Update the dependencies array to be: [selectedRowKeys, records, rowKey, rowOnChange]",{"range":"353","text":"354"},"Update the dependencies array to be: [cuDom, dom]",{"range":"355","text":"356"},"Update the dependencies array to be: [cuDom]",{"range":"357","text":"358"},"Update the dependencies array to be: [configData, searchSpan, headerOpen, mkNewFn]",{"range":"359","text":"360"},{"range":"361","text":"360"},"Update the dependencies array to be: [columns, titleClass]",{"range":"362","text":"363"},[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]",[1764,1797],"[configData, table, rowSelection, changeConfigData]",[2532,2566],"[selectedRowKeys, records, rowKey, rowOnChange]",[825,830],"[cuDom, dom]",[1021,1023],"[cuDom]",[4625,4661],"[configData, searchSpan, headerOpen, mkNewFn]",[4816,4852],[995,1004],"[columns, titleClass]"]
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ItemProps } from "./modal";
|
|
2
|
-
export declare const ColsSettingContent: ({ columns,
|
|
2
|
+
export declare const ColsSettingContent: ({ columns, onCheck, checkKeys, }: ItemProps) => JSX.Element;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
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 _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js/object/get-own-property-descriptors';
|
|
7
|
-
import _Object$defineProperties from '@babel/runtime-corejs3/core-js/object/define-properties';
|
|
8
|
-
import _Object$defineProperty from '@babel/runtime-corejs3/core-js/object/define-property';
|
|
9
|
-
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
10
|
-
import _toConsumableArray from '@babel/runtime-corejs3/helpers/toConsumableArray';
|
|
11
2
|
import 'core-js/modules/es.object.to-string.js';
|
|
12
3
|
import 'core-js/modules/es.regexp.to-string.js';
|
|
13
4
|
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js/instance/for-each';
|
|
@@ -18,11 +9,9 @@ import { useMemo } from 'react';
|
|
|
18
9
|
import { Tree } from 'antd';
|
|
19
10
|
import { getItemValue } from './utils.js';
|
|
20
11
|
|
|
21
|
-
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
|
-
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; }
|
|
23
12
|
var ColsSettingContent = function ColsSettingContent(_ref) {
|
|
24
13
|
var columns = _ref.columns,
|
|
25
|
-
|
|
14
|
+
onCheck = _ref.onCheck,
|
|
26
15
|
checkKeys = _ref.checkKeys;
|
|
27
16
|
var content = useClassName("hw-table-body-option-setting-content");
|
|
28
17
|
var titleClass = useClassName("hw-table-body-option-setting-content-title");
|
|
@@ -50,20 +39,17 @@ var ColsSettingContent = function ColsSettingContent(_ref) {
|
|
|
50
39
|
});
|
|
51
40
|
return treeData;
|
|
52
41
|
}, [columns]);
|
|
53
|
-
var
|
|
54
|
-
var
|
|
55
|
-
_forEachInstanceProperty(
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
|
|
42
|
+
var check = function check(keys) {
|
|
43
|
+
var notCheck = [];
|
|
44
|
+
_forEachInstanceProperty(contentTreeData).call(contentTreeData, function (_ref3) {
|
|
45
|
+
var key = _ref3.key;
|
|
46
|
+
var cuKey = key;
|
|
47
|
+
var index = _indexOfInstanceProperty(keys).call(keys, cuKey);
|
|
48
|
+
if (index === -1) {
|
|
49
|
+
notCheck.push(cuKey);
|
|
59
50
|
}
|
|
60
|
-
var strDataIndex = dataIndex.toString();
|
|
61
|
-
var item = newCols[index];
|
|
62
|
-
newCols[index] = _objectSpread(_objectSpread({}, item), {}, {
|
|
63
|
-
hideInTable: _indexOfInstanceProperty(key).call(key, strDataIndex) == -1
|
|
64
|
-
});
|
|
65
51
|
});
|
|
66
|
-
|
|
52
|
+
onCheck(keys, notCheck);
|
|
67
53
|
};
|
|
68
54
|
return jsx("div", {
|
|
69
55
|
className: content,
|
|
@@ -77,7 +63,7 @@ var ColsSettingContent = function ColsSettingContent(_ref) {
|
|
|
77
63
|
className: treeClass,
|
|
78
64
|
checkedKeys: checkKeys,
|
|
79
65
|
onCheck: function onCheck(key) {
|
|
80
|
-
|
|
66
|
+
check(key);
|
|
81
67
|
},
|
|
82
68
|
height: 268,
|
|
83
69
|
treeData: contentTreeData
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { ItemProps } from "./modal";
|
|
2
|
-
export declare const Title: ({ columns,
|
|
2
|
+
export declare const Title: ({ columns, onCheck, checkKeys, reset }: ItemProps) => JSX.Element;
|
|
@@ -1,50 +1,39 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js/instance/filter';
|
|
2
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
3
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
|
5
4
|
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js/instance/for-each';
|
|
6
|
-
import _Object$keys from '@babel/runtime-corejs3/core-js/object/keys';
|
|
7
|
-
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js/object/get-own-property-symbols';
|
|
8
|
-
import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js/object/get-own-property-descriptor';
|
|
9
|
-
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js/object/get-own-property-descriptors';
|
|
10
|
-
import _Object$defineProperties from '@babel/runtime-corejs3/core-js/object/define-properties';
|
|
11
|
-
import _Object$defineProperty from '@babel/runtime-corejs3/core-js/object/define-property';
|
|
12
5
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
13
6
|
import { useClassName } from '../../hooks/index.js';
|
|
14
7
|
import { Typography, Row, Space, Checkbox } from 'antd';
|
|
15
8
|
import { useMemo } from 'react';
|
|
16
9
|
|
|
17
|
-
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; }
|
|
18
|
-
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; }
|
|
19
10
|
var Link = Typography.Link;
|
|
20
11
|
var Title = function Title(_ref) {
|
|
21
12
|
var columns = _ref.columns,
|
|
22
|
-
|
|
23
|
-
checkKeys = _ref.checkKeys
|
|
13
|
+
onCheck = _ref.onCheck,
|
|
14
|
+
checkKeys = _ref.checkKeys,
|
|
15
|
+
reset = _ref.reset;
|
|
24
16
|
var title = useClassName("hw-table-body-option-setting-title");
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}, [columns]);
|
|
32
|
-
var allChange = function allChange(hideInTable) {
|
|
33
|
-
var newCols = _toConsumableArray(columns);
|
|
34
|
-
_forEachInstanceProperty(columns).call(columns, function (item, index) {
|
|
35
|
-
var dataIndex = item.dataIndex;
|
|
36
|
-
if (!dataIndex) {
|
|
17
|
+
var relArrayKeys = useMemo(function () {
|
|
18
|
+
var keys = [];
|
|
19
|
+
_forEachInstanceProperty(columns).call(columns, function (value) {
|
|
20
|
+
var dataIndex = value.dataIndex,
|
|
21
|
+
hideInTable = value.hideInTable;
|
|
22
|
+
if (hideInTable || !dataIndex) {
|
|
37
23
|
return;
|
|
38
24
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
});
|
|
25
|
+
var dataIndexStr = dataIndex.toString();
|
|
26
|
+
keys.push(dataIndexStr);
|
|
42
27
|
});
|
|
43
|
-
|
|
28
|
+
return keys;
|
|
29
|
+
}, [columns]);
|
|
30
|
+
var allCheck = function allCheck() {
|
|
31
|
+
onCheck(relArrayKeys, []);
|
|
44
32
|
};
|
|
45
|
-
var
|
|
46
|
-
|
|
33
|
+
var allNotCheck = function allNotCheck() {
|
|
34
|
+
onCheck([], relArrayKeys);
|
|
47
35
|
};
|
|
36
|
+
var relLen = relArrayKeys.length;
|
|
48
37
|
var indeterminate = relLen !== checkKeys.length && checkKeys.length > 0;
|
|
49
38
|
return jsxs(Row, {
|
|
50
39
|
className: title,
|
|
@@ -55,7 +44,11 @@ var Title = function Title(_ref) {
|
|
|
55
44
|
checked: relLen === checkKeys.length,
|
|
56
45
|
indeterminate: indeterminate,
|
|
57
46
|
onChange: function onChange(e) {
|
|
58
|
-
|
|
47
|
+
if (e.target.checked) {
|
|
48
|
+
allCheck();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
allNotCheck();
|
|
59
52
|
}
|
|
60
53
|
}), jsx("span", {
|
|
61
54
|
children: "\u5217\u5C55\u793A"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// welcome to hoo hoo hoo
|
|
2
|
+
import 'core-js/modules/es.object.to-string.js';
|
|
3
|
+
import 'core-js/modules/es.regexp.to-string.js';
|
|
4
|
+
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js/instance/for-each';
|
|
5
|
+
import { useMemo } from 'react';
|
|
6
|
+
|
|
7
|
+
var useCheckKeys = function useCheckKeys(_ref) {
|
|
8
|
+
var columns = _ref.columns,
|
|
9
|
+
colStatusValue = _ref.colStatusValue;
|
|
10
|
+
return useMemo(function () {
|
|
11
|
+
var keys = [];
|
|
12
|
+
_forEachInstanceProperty(columns).call(columns, function (value) {
|
|
13
|
+
var dataIndex = value.dataIndex,
|
|
14
|
+
hideInTable = value.hideInTable;
|
|
15
|
+
if (hideInTable || !dataIndex) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
var dataIndexStr = dataIndex.toString();
|
|
19
|
+
var _ref2 = colStatusValue[dataIndexStr] || {},
|
|
20
|
+
_ref2$show = _ref2.show,
|
|
21
|
+
show = _ref2$show === void 0 ? true : _ref2$show;
|
|
22
|
+
if (!show) {
|
|
23
|
+
return;
|
|
24
|
+
}
|
|
25
|
+
keys.push(dataIndexStr);
|
|
26
|
+
});
|
|
27
|
+
return keys;
|
|
28
|
+
}, [colStatusValue, columns]);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export { useCheckKeys };
|
|
32
|
+
// powered by hdj
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { IProps } from "./modal";
|
|
2
|
-
declare const _default: ({ reload, size, density, setSizeChange, columns, onChange, }: IProps) => JSX.Element;
|
|
2
|
+
declare const _default: ({ reload, size, density, setSizeChange, columns, onChange, colStatusValue, reset, settingRender, }: IProps) => JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
// welcome to hoo hoo hoo
|
|
2
|
-
import _slicedToArray from '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
3
|
-
import _keysInstanceProperty from '@babel/runtime-corejs3/core-js/instance/keys';
|
|
4
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
5
3
|
import { useClassName } from '../../hooks/index.js';
|
|
6
4
|
import { Row, Space, Tooltip, Dropdown, Popover, Menu } from 'antd';
|
|
7
5
|
import { ReloadOutlined, ColumnHeightOutlined, SettingOutlined } from '@ant-design/icons';
|
|
8
|
-
import { useRef
|
|
6
|
+
import { useRef } from 'react';
|
|
9
7
|
import { ColsSettingContent } from './Content.js';
|
|
10
8
|
import { Title } from './Title.js';
|
|
11
|
-
import {
|
|
12
|
-
import { defaultKeys } from './utils.js';
|
|
9
|
+
import { useCheckKeys } from './hooks.js';
|
|
13
10
|
|
|
14
11
|
var Options = (function (_ref) {
|
|
15
12
|
var reload = _ref.reload,
|
|
@@ -19,26 +16,16 @@ var Options = (function (_ref) {
|
|
|
19
16
|
density = _ref$density === void 0 ? true : _ref$density,
|
|
20
17
|
setSizeChange = _ref.setSizeChange,
|
|
21
18
|
columns = _ref.columns,
|
|
22
|
-
onChange = _ref.onChange
|
|
19
|
+
onChange = _ref.onChange,
|
|
20
|
+
colStatusValue = _ref.colStatusValue,
|
|
21
|
+
reset = _ref.reset,
|
|
22
|
+
settingRender = _ref.settingRender;
|
|
23
23
|
var pointer = useClassName(["hw-table-pointer", "hw-table-body-option-icon"]);
|
|
24
24
|
var ref = useRef(null);
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
var _useHTableContext = useHTableContext(),
|
|
30
|
-
tableInstance = _useHTableContext.tableInstance;
|
|
31
|
-
useEffect(function () {
|
|
32
|
-
var _defaultKeys = defaultKeys(columns),
|
|
33
|
-
changeKeys = _keysInstanceProperty(_defaultKeys),
|
|
34
|
-
allKeys = _defaultKeys.allKeys,
|
|
35
|
-
checkCols = _defaultKeys.checkCols;
|
|
36
|
-
tableInstance.table.settingKeys = {
|
|
37
|
-
keys: allKeys,
|
|
38
|
-
checkCols: checkCols
|
|
39
|
-
};
|
|
40
|
-
setKeys(changeKeys);
|
|
41
|
-
}, [columns]);
|
|
25
|
+
var checkKeys = useCheckKeys({
|
|
26
|
+
columns: columns,
|
|
27
|
+
colStatusValue: colStatusValue
|
|
28
|
+
});
|
|
42
29
|
var SizeItem = function SizeItem() {
|
|
43
30
|
var MenuComponent = Menu;
|
|
44
31
|
var MenuItem = Menu.Item;
|
|
@@ -68,9 +55,8 @@ var Options = (function (_ref) {
|
|
|
68
55
|
};
|
|
69
56
|
return jsx(Row, {
|
|
70
57
|
justify: "end",
|
|
71
|
-
ref: ref,
|
|
72
58
|
children: jsxs(Space, {
|
|
73
|
-
size:
|
|
59
|
+
size: 15,
|
|
74
60
|
children: [reload && jsx(Tooltip, {
|
|
75
61
|
title: "\u5237\u65B0",
|
|
76
62
|
children: jsx(ReloadOutlined, {
|
|
@@ -94,24 +80,26 @@ var Options = (function (_ref) {
|
|
|
94
80
|
width: 24
|
|
95
81
|
})
|
|
96
82
|
})
|
|
97
|
-
}), jsx(
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
83
|
+
}), jsx(Popover, {
|
|
84
|
+
content: jsx(ColsSettingContent, {
|
|
85
|
+
columns: columns,
|
|
86
|
+
checkKeys: checkKeys,
|
|
87
|
+
onCheck: onChange
|
|
88
|
+
}),
|
|
89
|
+
title: jsx(Title, {
|
|
90
|
+
columns: columns,
|
|
91
|
+
reset: reset,
|
|
92
|
+
checkKeys: checkKeys,
|
|
93
|
+
onCheck: onChange
|
|
94
|
+
}),
|
|
95
|
+
placement: "bottomRight",
|
|
96
|
+
getPopupContainer: function getPopupContainer() {
|
|
97
|
+
return ref.current || document.body;
|
|
98
|
+
},
|
|
99
|
+
arrowPointAtCenter: true,
|
|
100
|
+
trigger: "click",
|
|
101
|
+
children: settingRender ? settingRender() : jsx(Tooltip, {
|
|
102
|
+
title: "\u5217\u8BBE\u7F6E",
|
|
115
103
|
children: jsx(SettingOutlined, {
|
|
116
104
|
className: pointer,
|
|
117
105
|
width: 24
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ConfigItemModal } from "../../modal";
|
|
2
2
|
import React from "react";
|
|
3
3
|
export declare const getItemValue: (data: ConfigItemModal) => {
|
|
4
4
|
name?: string | undefined;
|
|
@@ -1124,12 +1124,7 @@ export declare const getItemValue: (data: ConfigItemModal) => {
|
|
|
1124
1124
|
onChange?: ((color: string) => void) | undefined;
|
|
1125
1125
|
colors?: string[] | undefined;
|
|
1126
1126
|
}))) | undefined;
|
|
1127
|
-
childrenDataIndex?:
|
|
1127
|
+
childrenDataIndex?: string[] | ConfigItemModal[] | undefined;
|
|
1128
1128
|
title: any;
|
|
1129
1129
|
dataIndex: ((string | number | (string | number)[]) & import("rc-table/lib/interface").DataIndex) | undefined;
|
|
1130
1130
|
};
|
|
1131
|
-
export declare const defaultKeys: (cols: ConfigDataModal) => {
|
|
1132
|
-
keys: string[];
|
|
1133
|
-
allKeys: string[];
|
|
1134
|
-
checkCols: ConfigDataModal;
|
|
1135
|
-
};
|
|
@@ -3,16 +3,12 @@ import _Object$keys from '@babel/runtime-corejs3/core-js/object/keys';
|
|
|
3
3
|
import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js/object/get-own-property-symbols';
|
|
4
4
|
import _filterInstanceProperty from '@babel/runtime-corejs3/core-js/instance/filter';
|
|
5
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';
|
|
6
7
|
import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js/object/get-own-property-descriptors';
|
|
7
8
|
import _Object$defineProperties from '@babel/runtime-corejs3/core-js/object/define-properties';
|
|
8
9
|
import _Object$defineProperty from '@babel/runtime-corejs3/core-js/object/define-property';
|
|
9
|
-
import _toConsumableArray from '@babel/runtime-corejs3/helpers/toConsumableArray';
|
|
10
10
|
import _defineProperty from '@babel/runtime-corejs3/helpers/defineProperty';
|
|
11
11
|
import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/objectWithoutProperties';
|
|
12
|
-
import 'core-js/modules/es.object.to-string.js';
|
|
13
|
-
import 'core-js/modules/es.regexp.to-string.js';
|
|
14
|
-
import _forEachInstanceProperty from '@babel/runtime-corejs3/core-js/instance/for-each';
|
|
15
|
-
import _keysInstanceProperty from '@babel/runtime-corejs3/core-js/instance/keys';
|
|
16
12
|
import React from 'react';
|
|
17
13
|
|
|
18
14
|
var _excluded = ["dataIndex", "title", "titleStr"];
|
|
@@ -32,57 +28,6 @@ var getItemValue = function getItemValue(data) {
|
|
|
32
28
|
dataIndex: dataIndex
|
|
33
29
|
}, oData);
|
|
34
30
|
};
|
|
35
|
-
var childDataIndexProvider = function childDataIndexProvider(data, title) {
|
|
36
|
-
var keys = [];
|
|
37
|
-
var cols = [];
|
|
38
|
-
_forEachInstanceProperty(data).call(data, function (value) {
|
|
39
|
-
if (typeof value === "string") {
|
|
40
|
-
keys.push(value);
|
|
41
|
-
cols.push(getItemValue({
|
|
42
|
-
title: title,
|
|
43
|
-
dataIndex: value
|
|
44
|
-
}));
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
keys.push(value.dataIndex);
|
|
48
|
-
cols.push(getItemValue(value));
|
|
49
|
-
});
|
|
50
|
-
return {
|
|
51
|
-
keys: keys,
|
|
52
|
-
cols: cols
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
var defaultKeys = function defaultKeys(cols) {
|
|
56
|
-
var keys = [];
|
|
57
|
-
var allKeys = [];
|
|
58
|
-
var checkCols = [];
|
|
59
|
-
_forEachInstanceProperty(cols).call(cols, function (value) {
|
|
60
|
-
var title = value.title,
|
|
61
|
-
titleStr = value.titleStr,
|
|
62
|
-
dataIndex = value.dataIndex,
|
|
63
|
-
hideInTable = value.hideInTable,
|
|
64
|
-
childrenDataIndex = value.childrenDataIndex;
|
|
65
|
-
if (hideInTable || !dataIndex) {
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
keys.push(dataIndex.toString());
|
|
69
|
-
if (childrenDataIndex) {
|
|
70
|
-
var _childDataIndexProvid = childDataIndexProvider(childrenDataIndex, titleStr || title),
|
|
71
|
-
childKeys = _keysInstanceProperty(_childDataIndexProvid),
|
|
72
|
-
childCols = _childDataIndexProvid.cols;
|
|
73
|
-
allKeys.push.apply(allKeys, _toConsumableArray(childKeys));
|
|
74
|
-
checkCols.push.apply(checkCols, _toConsumableArray(childCols));
|
|
75
|
-
return;
|
|
76
|
-
}
|
|
77
|
-
allKeys.push(dataIndex.toString());
|
|
78
|
-
checkCols.push(getItemValue(value));
|
|
79
|
-
});
|
|
80
|
-
return {
|
|
81
|
-
keys: keys,
|
|
82
|
-
allKeys: allKeys,
|
|
83
|
-
checkCols: checkCols
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
31
|
|
|
87
|
-
export {
|
|
32
|
+
export { getItemValue };
|
|
88
33
|
// powered by hdj
|