@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.
- package/es/DialogTable/Content.d.ts +3 -0
- package/es/DialogTable/Content.js +34 -0
- package/es/DialogTable/DwTable.d.ts +3 -0
- package/es/DialogTable/DwTable.js +121 -0
- package/{lib/ModalTable/index.d.ts → es/DialogTable/ModalTable.d.ts} +1 -1
- package/es/{ModalTable/index.js → DialogTable/ModalTable.js} +14 -9
- package/es/HTableBody/Options/utils.d.ts +1 -1
- package/es/index.css +11 -0
- package/es/index.d.ts +3 -2
- package/es/index.js +3 -2
- package/es/modal.d.ts +10 -0
- package/es/render/CopyComponent.d.ts +9 -0
- package/es/render/CopyComponent.js +26 -0
- package/es/render/Text.d.ts +2 -0
- package/es/render/config.js +9 -12
- package/lib/DialogTable/Content.d.ts +3 -0
- package/lib/DialogTable/Content.js +37 -0
- package/lib/DialogTable/DwTable.d.ts +3 -0
- package/lib/DialogTable/DwTable.js +124 -0
- package/{es/ModalTable/index.d.ts → lib/DialogTable/ModalTable.d.ts} +1 -1
- package/lib/{ModalTable/index.js → DialogTable/ModalTable.js} +14 -9
- package/lib/HTableBody/Options/utils.d.ts +1 -1
- package/lib/index.css +11 -0
- package/lib/index.d.ts +3 -2
- package/lib/index.js +5 -3
- package/lib/modal.d.ts +10 -0
- package/lib/render/CopyComponent.d.ts +9 -0
- package/lib/render/CopyComponent.js +29 -0
- package/lib/render/Text.d.ts +2 -0
- package/lib/render/config.js +8 -11
- package/package.json +1 -1
- package/src/components/DialogTable/Content.tsx +15 -0
- package/src/components/DialogTable/DwTable.tsx +90 -0
- package/src/components/{ModalTable/index.tsx → DialogTable/ModalTable.tsx} +10 -7
- package/src/components/{ModalTable → DialogTable}/hooks.ts +0 -1
- package/src/components/index.less +14 -0
- package/src/components/index.tsx +3 -2
- package/src/components/modal.ts +11 -0
- package/src/components/render/CopyComponent.tsx +24 -0
- package/src/components/render/Text.tsx +8 -0
- package/src/components/render/config.tsx +9 -14
- package/src/pages/DwTable/index.tsx +152 -0
- package/src/pages/ModalTable/index.tsx +8 -0
- package/src/pages/Table/index.tsx +15 -3
- package/src/routes.tsx +7 -0
- /package/es/{ModalTable → DialogTable}/hooks.d.ts +0 -0
- /package/es/{ModalTable → DialogTable}/hooks.js +0 -0
- /package/lib/{ModalTable → DialogTable}/hooks.d.ts +0 -0
- /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":
|
|
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
|