Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

m-balloon

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

m-balloon - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

12

index.js

@@ -18,2 +18,6 @@ 'use strict';

var _PropTypes = require('prop-types');
var _PropTypes2 = _interopRequireDefault(_PropTypes);
var _classnames = require('classnames');

@@ -268,9 +272,9 @@

// balloon的内容,可以是一个字符串,也可以是任意的html内容
content: _react.PropTypes.oneOfType([_react.PropTypes.object, _react.PropTypes.string]).isRequired,
content: _PropTypes2.oneOfType([_PropTypes2.object, _PropTypes2.string]).isRequired,
// balloon的展示位置
placement: _react.PropTypes.oneOf(['top', 'bottom', 'left', 'right', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'rightTop', 'leftBottom', 'rightBottom']),
placement: _PropTypes2.oneOf(['top', 'bottom', 'left', 'right', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight', 'leftTop', 'rightTop', 'leftBottom', 'rightBottom']),
// 提供让调用容器直接改变显隐的属性
visible: _react.PropTypes.bool,
onVisibleChange: _react.PropTypes.func
visible: _PropTypes2.bool,
onVisibleChange: _PropTypes2.func
};

@@ -277,0 +281,0 @@

{
"name": "m-balloon",
"version": "1.0.1",
"version": "1.1.0",
"description": "m-balloon - simulate 'title' pop layer",

@@ -29,7 +29,8 @@ "main": "index.js",

"dependencies": {
"react": "~15.2.0",
"react-dom": "~15.2.0",
"classnames": "~2.2.3",
"m-base": "^1.0.0",
"prop-types": "^15.5.8",
"r-trigger": "^1.0.1",
"classnames": "~2.2.3"
"react": "^15.5.4",
"react-dom": "^15.5.4"
},

@@ -36,0 +37,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc