Socket
Socket
Sign inDemoInstall

@hi-ui/badge

Package Overview
Dependencies
18
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.5 to 4.0.6

6

CHANGELOG.md
# @hi-ui/badge
## 4.0.6
### Patch Changes
- [#2620](https://github.com/XiaoMi/hiui/pull/2620) [`863bcde00`](https://github.com/XiaoMi/hiui/commit/863bcde0033f8bb4c9866e6f975e52726e4a5825) Thanks [@aqiusen](https://github.com/aqiusen)! - Badge 支持字符串和数字 hover 时显示完整内容
## 4.0.5

@@ -4,0 +10,0 @@

12

lib/cjs/Badge.js

@@ -38,3 +38,9 @@ /** @LICENSE

var _prefix = classname.getPrefixCls('badge');
var _prefix = classname.getPrefixCls('badge'); // 支持字符串和 number hover 显示,其他过滤
var getShowContent = function getShowContent(content) {
if (!['number', 'string'].includes(_typeof(content))) return "";
return "" + content;
};
/**

@@ -112,2 +118,3 @@ * 红点 / 徽标

style: badgeStyle,
title: getShowContent(content),
children: count

@@ -120,4 +127,3 @@ });

className: cls,
style: style,
title: count
style: style
}, rest), children, visible ? badgeNode : null);

@@ -124,0 +130,0 @@ });

@@ -0,1 +1,3 @@

import _typeof from "@babel/runtime/helpers/esm/typeof";
/** @LICENSE

@@ -17,3 +19,9 @@ * @hi-ui/badge

var _prefix = getPrefixCls('badge');
var _prefix = getPrefixCls('badge'); // 支持字符串和 number hover 显示,其他过滤
var getShowContent = function getShowContent(content) {
if (!['number', 'string'].includes(_typeof(content))) return "";
return "" + content;
};
/**

@@ -91,2 +99,3 @@ * 红点 / 徽标

style: badgeStyle,
title: getShowContent(content),
children: count

@@ -99,4 +108,3 @@ });

className: cls,
style: style,
title: count
style: style
}, rest), children, visible ? badgeNode : null);

@@ -103,0 +111,0 @@ });

{
"name": "@hi-ui/badge",
"version": "4.0.5",
"version": "4.0.6",
"description": "A sub-package for @hi-ui/hiui.",

@@ -5,0 +5,0 @@ "keywords": [],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc