@hw-component/table 1.9.4 → 1.9.5
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/render/CopyComponent.js +5 -0
- package/es/render/config.js +7 -3
- package/lib/render/CopyComponent.js +5 -0
- package/lib/render/config.js +7 -3
- package/package.json +1 -1
- package/src/components/render/CopyComponent.tsx +1 -0
- package/src/components/render/config.tsx +2 -2
- package/src/pages/Table/index.tsx +1 -1
|
@@ -14,6 +14,11 @@ var CopyComponent = (function (_ref) {
|
|
|
14
14
|
return jsx(Paragraph, {
|
|
15
15
|
ellipsis: ellipsis,
|
|
16
16
|
className: className,
|
|
17
|
+
style: {
|
|
18
|
+
margin: 0,
|
|
19
|
+
width: "100%",
|
|
20
|
+
padding: 0
|
|
21
|
+
},
|
|
17
22
|
onClick: function onClick() {
|
|
18
23
|
copy(cpText || text);
|
|
19
24
|
message.success(successMsg);
|
package/es/render/config.js
CHANGED
|
@@ -91,7 +91,10 @@ var linkRender = function linkRender(config, itemData) {
|
|
|
91
91
|
target: target,
|
|
92
92
|
ellipsis: ellipsis,
|
|
93
93
|
style: {
|
|
94
|
-
wordBreak: "break-all"
|
|
94
|
+
wordBreak: "break-all",
|
|
95
|
+
margin: 0,
|
|
96
|
+
width: "100%",
|
|
97
|
+
padding: 0
|
|
95
98
|
},
|
|
96
99
|
children: tableVal
|
|
97
100
|
});
|
|
@@ -108,8 +111,9 @@ var textRender = function textRender(config, itemData) {
|
|
|
108
111
|
type: type,
|
|
109
112
|
ellipsis: ellipsis,
|
|
110
113
|
style: {
|
|
111
|
-
|
|
112
|
-
|
|
114
|
+
margin: 0,
|
|
115
|
+
width: "100%",
|
|
116
|
+
padding: 0
|
|
113
117
|
},
|
|
114
118
|
children: [addonBefore, tableVal, addonAfter]
|
|
115
119
|
});
|
|
@@ -17,6 +17,11 @@ var CopyComponent = (function (_ref) {
|
|
|
17
17
|
return jsxRuntime.jsx(Paragraph, {
|
|
18
18
|
ellipsis: ellipsis,
|
|
19
19
|
className: className,
|
|
20
|
+
style: {
|
|
21
|
+
margin: 0,
|
|
22
|
+
width: "100%",
|
|
23
|
+
padding: 0
|
|
24
|
+
},
|
|
20
25
|
onClick: function onClick() {
|
|
21
26
|
copy(cpText || text);
|
|
22
27
|
antd.message.success(successMsg);
|
package/lib/render/config.js
CHANGED
|
@@ -94,7 +94,10 @@ var linkRender = function linkRender(config, itemData) {
|
|
|
94
94
|
target: target,
|
|
95
95
|
ellipsis: ellipsis,
|
|
96
96
|
style: {
|
|
97
|
-
wordBreak: "break-all"
|
|
97
|
+
wordBreak: "break-all",
|
|
98
|
+
margin: 0,
|
|
99
|
+
width: "100%",
|
|
100
|
+
padding: 0
|
|
98
101
|
},
|
|
99
102
|
children: tableVal
|
|
100
103
|
});
|
|
@@ -111,8 +114,9 @@ var textRender = function textRender(config, itemData) {
|
|
|
111
114
|
type: type,
|
|
112
115
|
ellipsis: ellipsis,
|
|
113
116
|
style: {
|
|
114
|
-
|
|
115
|
-
|
|
117
|
+
margin: 0,
|
|
118
|
+
width: "100%",
|
|
119
|
+
padding: 0
|
|
116
120
|
},
|
|
117
121
|
children: [addonBefore, tableVal, addonAfter]
|
|
118
122
|
});
|
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@ const linkRender = (config: ConfigItemModal, itemData: any) => {
|
|
|
74
74
|
href={hrefUrl || tableVal}
|
|
75
75
|
target={target}
|
|
76
76
|
ellipsis={ellipsis}
|
|
77
|
-
style={{ wordBreak: "break-all" }}
|
|
77
|
+
style={{ wordBreak: "break-all" , margin: 0 ,width:"100%",padding:0}}
|
|
78
78
|
>
|
|
79
79
|
{tableVal}
|
|
80
80
|
</Link>
|
|
@@ -85,7 +85,7 @@ const textRender = (config: ConfigItemModal, itemData: any) => {
|
|
|
85
85
|
const { addonBefore, addonAfter, type, ellipsis } = valueTypeProps;
|
|
86
86
|
const tableVal = getTableVal(config, itemData);
|
|
87
87
|
return (
|
|
88
|
-
<Paragraph type={type} ellipsis={ellipsis} style={{
|
|
88
|
+
<Paragraph type={type} ellipsis={ellipsis} style={{ margin: 0 ,width:"100%",padding:0}}>
|
|
89
89
|
{addonBefore}
|
|
90
90
|
{tableVal}
|
|
91
91
|
{addonAfter}
|