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

zan-choose-dialog

Package Overview
Dependencies
Maintainers
7
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zan-choose-dialog - npm Package Compare versions

Comparing version 4.5.10 to 4.5.11

27

lib/dialogs/custom-link.js

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

var _get = require('lodash/get');
var _get2 = _interopRequireDefault(_get);
var _classnames = require('classnames');

@@ -103,3 +107,18 @@

// 判断是否展示提示内容
// config.show_custom_link_notice_content 字段:是否展示
// noticeComponent:展示的组件
_createClass(Content, [{
key: 'isShowNoticeContent',
value: function isShowNoticeContent() {
var isShow = (0, _get2['default'])(this.props, 'config.show_custom_link_notice_content', false);
var noticeComponent = this.props.noticeComponent;
if (isShow && noticeComponent) return noticeComponent;
return null;
}
}, {
key: 'render',

@@ -147,2 +166,3 @@ value: function render() {

),
this.isShowNoticeContent(),
_react2['default'].createElement(

@@ -200,5 +220,10 @@ 'div',

title: '自定义链接',
children: _react2['default'].createElement(Content, { id: id, onChoose: options.onChoose })
children: _react2['default'].createElement(Content, {
id: id,
onChoose: options.onChoose,
noticeComponent: options.noticeComponent,
config: options.config
})
});
}
module.exports = exports['default'];

2

package.json
{
"name": "zan-choose-dialog",
"version": "4.5.10",
"version": "4.5.11",
"description": "这是一个React组件",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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