@hw-component/table 1.6.7 → 1.6.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.
Files changed (49) hide show
  1. package/es/DialogTable/Content.d.ts +3 -0
  2. package/es/DialogTable/Content.js +34 -0
  3. package/es/DialogTable/DwTable.d.ts +3 -0
  4. package/es/DialogTable/DwTable.js +121 -0
  5. package/{lib/ModalTable/index.d.ts → es/DialogTable/ModalTable.d.ts} +1 -1
  6. package/es/{ModalTable/index.js → DialogTable/ModalTable.js} +14 -9
  7. package/es/HTableBody/Options/utils.d.ts +1 -1
  8. package/es/index.css +11 -0
  9. package/es/index.d.ts +3 -2
  10. package/es/index.js +3 -2
  11. package/es/modal.d.ts +10 -0
  12. package/es/render/CopyComponent.d.ts +9 -0
  13. package/es/render/CopyComponent.js +26 -0
  14. package/es/render/Text.d.ts +2 -0
  15. package/es/render/config.js +9 -12
  16. package/lib/DialogTable/Content.d.ts +3 -0
  17. package/lib/DialogTable/Content.js +37 -0
  18. package/lib/DialogTable/DwTable.d.ts +3 -0
  19. package/lib/DialogTable/DwTable.js +124 -0
  20. package/{es/ModalTable/index.d.ts → lib/DialogTable/ModalTable.d.ts} +1 -1
  21. package/lib/{ModalTable/index.js → DialogTable/ModalTable.js} +14 -9
  22. package/lib/HTableBody/Options/utils.d.ts +1 -1
  23. package/lib/index.css +11 -0
  24. package/lib/index.d.ts +3 -2
  25. package/lib/index.js +5 -3
  26. package/lib/modal.d.ts +10 -0
  27. package/lib/render/CopyComponent.d.ts +9 -0
  28. package/lib/render/CopyComponent.js +29 -0
  29. package/lib/render/Text.d.ts +2 -0
  30. package/lib/render/config.js +8 -11
  31. package/package.json +1 -1
  32. package/src/components/DialogTable/Content.tsx +15 -0
  33. package/src/components/DialogTable/DwTable.tsx +90 -0
  34. package/src/components/{ModalTable/index.tsx → DialogTable/ModalTable.tsx} +10 -7
  35. package/src/components/{ModalTable → DialogTable}/hooks.ts +0 -1
  36. package/src/components/index.less +14 -0
  37. package/src/components/index.tsx +3 -2
  38. package/src/components/modal.ts +11 -0
  39. package/src/components/render/CopyComponent.tsx +24 -0
  40. package/src/components/render/Text.tsx +8 -0
  41. package/src/components/render/config.tsx +9 -14
  42. package/src/pages/DwTable/index.tsx +152 -0
  43. package/src/pages/ModalTable/index.tsx +8 -0
  44. package/src/pages/Table/index.tsx +15 -3
  45. package/src/routes.tsx +7 -0
  46. /package/es/{ModalTable → DialogTable}/hooks.d.ts +0 -0
  47. /package/es/{ModalTable → DialogTable}/hooks.js +0 -0
  48. /package/lib/{ModalTable → DialogTable}/hooks.d.ts +0 -0
  49. /package/lib/{ModalTable → DialogTable}/hooks.js +0 -0
@@ -31,12 +31,24 @@ export const configData =[
31
31
  title: '报警联系人名称',
32
32
  width: 120,
33
33
  dataIndex: 'name',
34
+ valueType: "copy",
35
+ valueTypeProps: {
36
+ ellipsis:{
37
+ rows:1,
38
+ tooltip:true
39
+ }
40
+ }
34
41
  },
35
42
  {
36
43
  title:"短信接收手机号",
37
44
  dataIndex: 'mobileList',
38
45
  width: 120,
39
46
  valueType:"tags",
47
+ valueTypeProps:{
48
+ fieldNames:{
49
+ label:"name"
50
+ }
51
+ }
40
52
  },
41
53
  {
42
54
  title:"邮箱",
@@ -86,7 +98,7 @@ export default () => {
86
98
  for (let i = 0; i < 1; i = i + 1) {
87
99
  arrayData.push({
88
100
  "id": i,
89
- "name": "仙人",
101
+ "name": "仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人",
90
102
  "mobileList": null,
91
103
  "mailList": null,
92
104
  "openidList": [
@@ -176,8 +188,8 @@ export default () => {
176
188
  for (let i = 0; i < 1; i = i + 1) {
177
189
  arrayData.push({
178
190
  "id": i,
179
- "name": "仙人",
180
- "mobileList": null,
191
+ "name": "仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人仙人",
192
+ "mobileList": [{name:"1"},{name:"2"}],
181
193
  "mailList": null,
182
194
  "openidList": [
183
195
  "okSMy58P_PE9sQkAG03gkpiTk-hs"
package/src/routes.tsx CHANGED
@@ -3,6 +3,8 @@ import { Navigate } from "react-router-dom";
3
3
  import Table from "./pages/Table";
4
4
  import ModalTable from "./pages/ModalTable";
5
5
  import TableCustomize from "./pages/TableCustomize";
6
+ import DwTable from "./pages/DwTable";
7
+
6
8
  export interface RouteModal {
7
9
  path?: string;
8
10
  name?: string;
@@ -32,6 +34,11 @@ const routes: RouteModal[] = [
32
34
  name: "ModalTable",
33
35
  element: <ModalTable />,
34
36
  },
37
+ {
38
+ path: "/dwTable",
39
+ name: "dwTable",
40
+ element: <DwTable />,
41
+ },
35
42
  ];
36
43
 
37
44
  export default routes;
File without changes
File without changes
File without changes
File without changes