@hw-component/table 1.10.36 → 1.10.39

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.
@@ -142,7 +142,7 @@ var TagsComponent = function TagsComponent(props) {
142
142
  });
143
143
  return jsx(Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
144
144
  children: jsx(Tag, _objectSpread(_objectSpread({
145
- className: "tagClassName",
145
+ className: tagClassName,
146
146
  style: tagStyle
147
147
  }, cuTagProps), {}, {
148
148
  onClose: function onClose(e) {
@@ -156,10 +156,15 @@ var TagsComponent = function TagsComponent(props) {
156
156
  content: popoverContentRender ? popoverContentRender(jsx(TagsComponent, _objectSpread(_objectSpread({}, childProps), {}, {
157
157
  maxLen: null,
158
158
  extra: null
159
- }))) : jsx(TagsComponent, _objectSpread(_objectSpread({}, childProps), {}, {
160
- maxLen: null,
161
- extra: null
162
- })),
159
+ }))) : jsx("div", {
160
+ style: {
161
+ maxWidth: 368
162
+ },
163
+ children: jsx(TagsComponent, _objectSpread(_objectSpread({}, childProps), {}, {
164
+ maxLen: null,
165
+ extra: null
166
+ }))
167
+ }),
163
168
  children: jsxs(Tag, {
164
169
  children: ["...\u7B49", data.length, "\u4E2A"]
165
170
  })
@@ -145,7 +145,7 @@ var TagsComponent = function TagsComponent(props) {
145
145
  });
146
146
  return jsxRuntime.jsx(antd.Tooltip, _objectSpread(_objectSpread({}, tooltipProps), {}, {
147
147
  children: jsxRuntime.jsx(antd.Tag, _objectSpread(_objectSpread({
148
- className: "tagClassName",
148
+ className: tagClassName,
149
149
  style: tagStyle
150
150
  }, cuTagProps), {}, {
151
151
  onClose: function onClose(e) {
@@ -159,10 +159,15 @@ var TagsComponent = function TagsComponent(props) {
159
159
  content: popoverContentRender ? popoverContentRender(jsxRuntime.jsx(TagsComponent, _objectSpread(_objectSpread({}, childProps), {}, {
160
160
  maxLen: null,
161
161
  extra: null
162
- }))) : jsxRuntime.jsx(TagsComponent, _objectSpread(_objectSpread({}, childProps), {}, {
163
- maxLen: null,
164
- extra: null
165
- })),
162
+ }))) : jsxRuntime.jsx("div", {
163
+ style: {
164
+ maxWidth: 368
165
+ },
166
+ children: jsxRuntime.jsx(TagsComponent, _objectSpread(_objectSpread({}, childProps), {}, {
167
+ maxLen: null,
168
+ extra: null
169
+ }))
170
+ }),
166
171
  children: jsxRuntime.jsxs(antd.Tag, {
167
172
  children: ["...\u7B49", data.length, "\u4E2A"]
168
173
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hw-component/table",
3
- "version": "1.10.36",
3
+ "version": "1.10.39",
4
4
  "description": "基于antd二次开发table组件",
5
5
  "keywords": [
6
6
  "table"
@@ -128,7 +128,7 @@ const TagsComponent = (props: IProps) => {
128
128
  <Tooltip {...tooltipProps}>
129
129
  <Tag
130
130
  key={cuKey}
131
- className="tagClassName"
131
+ className={tagClassName}
132
132
  style={tagStyle}
133
133
  {...cuTagProps}
134
134
  onClose={(e) => {
@@ -149,7 +149,9 @@ const TagsComponent = (props: IProps) => {
149
149
  <TagsComponent {...childProps} maxLen={null} extra={null} />
150
150
  )
151
151
  ) : (
152
- <TagsComponent {...childProps} maxLen={null} extra={null} />
152
+ <div style={{maxWidth:368}}>
153
+ <TagsComponent {...childProps} maxLen={null} extra={null} />
154
+ </div>
153
155
  )
154
156
  }
155
157
  >
@@ -256,9 +256,9 @@ export default () => {
256
256
  rowSelection={{
257
257
  preserveSelectedRowKeys: true,
258
258
  allPageCheck: false,
259
- // onChange: (keys, data)=>{
260
- // console.log(keys, data);
261
- // },
259
+ onChange: (keys, data)=>{
260
+ console.log(keys, data);
261
+ },
262
262
  allCheckType: "batch",
263
263
  }}
264
264
  affixProps={{