@para-ui/core 3.0.59 → 3.0.60

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/README.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 版本: 3.0.59
2
+
3
+ para-ui/core@3.0.60 发布
4
+ 【标签-tag】增加autoTips参数tipMaxWidth(提示最大高度)暴露
5
+
1
6
  ## 版本: 3.0.59
2
7
 
3
8
  para-ui/core@3.0.59 发布
package/Tag/index.d.ts CHANGED
@@ -26,6 +26,8 @@ export interface TagProps extends React.HTMLAttributes<HTMLSpanElement> {
26
26
  bordered?: boolean;
27
27
  /** 大小 */
28
28
  size?: 'small' | 'large';
29
+ /** 提示最大宽度 */
30
+ tipMaxWidth?: number | string;
29
31
  }
30
32
  export type TagPropsWithChild = PropsWithChildren<TagProps>;
31
33
  export type { TagGroupProps };
package/Tag/index.js CHANGED
@@ -194,7 +194,8 @@ var InternalTag = function InternalTag(props) {
194
194
  size = _props$size === void 0 ? 'small' : _props$size,
195
195
  style = props.style,
196
196
  visibleTag = props.visible,
197
- restProps = __rest(props, ["className", "children", "icon", "color", "onClose", "closeIcon", "closable", "bordered", "size", "style", "visible"]);
197
+ tipMaxWidth = props.tipMaxWidth,
198
+ restProps = __rest(props, ["className", "children", "icon", "color", "onClose", "closeIcon", "closable", "bordered", "size", "style", "visible", "tipMaxWidth"]);
198
199
  var _useState = useState(true),
199
200
  _useState2 = _slicedToArray(_useState, 2),
200
201
  visible = _useState2[0],
@@ -244,14 +245,18 @@ var InternalTag = function InternalTag(props) {
244
245
  style: tagStyle
245
246
  }, {
246
247
  children: [icon ? jsxs(Fragment, {
247
- children: [icon, children && jsx(AutoTips, {
248
+ children: [icon, children && jsx(AutoTips, Object.assign({
249
+ tipMaxWidth: tipMaxWidth
250
+ }, {
248
251
  children: jsx("span", {
249
252
  children: children
250
253
  })
251
- })]
252
- }) : children ? jsx(AutoTips, {
254
+ }))]
255
+ }) : children ? jsx(AutoTips, Object.assign({
256
+ tipMaxWidth: tipMaxWidth
257
+ }, {
253
258
  children: children
254
- }) : null, renderCloseIcon()]
259
+ })) : null, renderCloseIcon()]
255
260
  }));
256
261
  };
257
262
  var Tag = InternalTag;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@para-ui/core",
3
3
  "private": false,
4
- "version": "3.0.59",
4
+ "version": "3.0.60",
5
5
  "main": "./index.js",
6
6
  "typings": "./index.d.ts",
7
7
  "description": "Powered by Para FED",
@@ -16,7 +16,7 @@
16
16
  "npm:publish": "./publish.sh"
17
17
  },
18
18
  "dependencies": {
19
- "@para-ui/core": "^3.0.0",
19
+ "@para-ui/core": "^3.0.59",
20
20
  "@para-ui/icons": "^3.0.0",
21
21
  "@paraview/lib": "^2.0.3",
22
22
  "@wangeditor/editor": "^5.1.15",