@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.
@@ -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);
@@ -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
- marginBottom: 0,
112
- maxWidth: "100%"
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);
@@ -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
- marginBottom: 0,
115
- maxWidth: "100%"
117
+ margin: 0,
118
+ width: "100%",
119
+ padding: 0
116
120
  },
117
121
  children: [addonBefore, tableVal, addonAfter]
118
122
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "1.9.4",
3
+ "version": "1.9.5",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -15,6 +15,7 @@ export default ({ cpText, text, successMsg, ellipsis }: IProps) => {
15
15
  <Paragraph
16
16
  ellipsis={ellipsis}
17
17
  className={className}
18
+ style={{ margin: 0 ,width:"100%",padding:0}}
18
19
  onClick={() => {
19
20
  copy(cpText || text);
20
21
  message.success(successMsg);
@@ -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={{ marginBottom: 0 ,maxWidth:"100%"}}>
88
+ <Paragraph type={type} ellipsis={ellipsis} style={{ margin: 0 ,width:"100%",padding:0}}>
89
89
  {addonBefore}
90
90
  {tableVal}
91
91
  {addonAfter}
@@ -33,7 +33,7 @@ export const configData = [
33
33
  title: "报警联系人名称",
34
34
  width: 120,
35
35
  dataIndex: "name",
36
- valueType: "copy",
36
+ valueType: "text",
37
37
  valueTypeProps: {
38
38
  ellipsis: {
39
39
  tooltip: true,