@hw-component/table 1.10.33 → 1.10.36

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/index.css CHANGED
@@ -1,5 +1,6 @@
1
1
  .ant-hw-table-render-tag {
2
2
  position: relative;
3
+ max-width: 100%;
3
4
  }
4
5
  .ant-hw-table-render-tag .ant-tag-close-icon {
5
6
  position: absolute;
@@ -117,9 +117,7 @@ var TagsComponent = function TagsComponent(props) {
117
117
  return jsx(Tooltip, _objectSpread(_objectSpread({}, _tooltipProps), {}, {
118
118
  children: jsx(Tag, _objectSpread(_objectSpread({
119
119
  className: tagClassName,
120
- style: _objectSpread({
121
- maxWidth: "100%"
122
- }, tagStyle)
120
+ style: tagStyle
123
121
  }, tagProps), {}, {
124
122
  onClose: function onClose(e) {
125
123
  e.preventDefault();
@@ -144,9 +142,8 @@ var TagsComponent = function TagsComponent(props) {
144
142
  });
145
143
  return jsx(Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
146
144
  children: jsx(Tag, _objectSpread(_objectSpread({
147
- style: _objectSpread({
148
- maxWidth: "100%"
149
- }, tagStyle)
145
+ className: "tagClassName",
146
+ style: tagStyle
150
147
  }, cuTagProps), {}, {
151
148
  onClose: function onClose(e) {
152
149
  e.preventDefault();
package/lib/index.css CHANGED
@@ -1,5 +1,6 @@
1
1
  .ant-hw-table-render-tag {
2
2
  position: relative;
3
+ max-width: 100%;
3
4
  }
4
5
  .ant-hw-table-render-tag .ant-tag-close-icon {
5
6
  position: absolute;
@@ -120,9 +120,7 @@ var TagsComponent = function TagsComponent(props) {
120
120
  return jsxRuntime.jsx(antd.Tooltip, _objectSpread(_objectSpread({}, _tooltipProps), {}, {
121
121
  children: jsxRuntime.jsx(antd.Tag, _objectSpread(_objectSpread({
122
122
  className: tagClassName,
123
- style: _objectSpread({
124
- maxWidth: "100%"
125
- }, tagStyle)
123
+ style: tagStyle
126
124
  }, tagProps), {}, {
127
125
  onClose: function onClose(e) {
128
126
  e.preventDefault();
@@ -147,9 +145,8 @@ var TagsComponent = function TagsComponent(props) {
147
145
  });
148
146
  return jsxRuntime.jsx(antd.Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
149
147
  children: jsxRuntime.jsx(antd.Tag, _objectSpread(_objectSpread({
150
- style: _objectSpread({
151
- maxWidth: "100%"
152
- }, tagStyle)
148
+ className: "tagClassName",
149
+ style: tagStyle
153
150
  }, cuTagProps), {}, {
154
151
  onClose: function onClose(e) {
155
152
  e.preventDefault();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "1.10.33",
3
+ "version": "1.10.36",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -2,6 +2,7 @@
2
2
 
3
3
  .@{ant-prefix}-hw-table-render-tag {
4
4
  position: relative;
5
+ max-width: 100%;
5
6
  .@{ant-prefix}-tag-close-icon{
6
7
  position: absolute;
7
8
  right: 7px;
@@ -101,10 +101,7 @@ const TagsComponent = (props: IProps) => {
101
101
  <Tag
102
102
  key={indexKey}
103
103
  className={tagClassName}
104
- style={{
105
- maxWidth:"100%",
106
- ...tagStyle
107
- }}
104
+ style={tagStyle}
108
105
  {...tagProps}
109
106
  onClose={(e) => {
110
107
  e.preventDefault();
@@ -131,10 +128,8 @@ const TagsComponent = (props: IProps) => {
131
128
  <Tooltip {...tooltipProps}>
132
129
  <Tag
133
130
  key={cuKey}
134
- style={{
135
- maxWidth:"100%",
136
- ...tagStyle
137
- }}
131
+ className="tagClassName"
132
+ style={tagStyle}
138
133
  {...cuTagProps}
139
134
  onClose={(e) => {
140
135
  e.preventDefault();