Comparing version 0.1.5 to 0.1.6
@@ -47,10 +47,9 @@ 'use strict'; | ||
Badge.prototype.render = function render() { | ||
var _props = this.props; | ||
var colors = _props.colors; | ||
var className = _props.className; | ||
var children = _props.children; | ||
var clsPrefix = _props.clsPrefix; | ||
var _props = this.props, | ||
colors = _props.colors, | ||
className = _props.className, | ||
children = _props.children, | ||
clsPrefix = _props.clsPrefix, | ||
others = _objectWithoutProperties(_props, ['colors', 'className', 'children', 'clsPrefix']); | ||
var others = _objectWithoutProperties(_props, ['colors', 'className', 'children', 'clsPrefix']); | ||
var clsObj = {}; | ||
@@ -57,0 +56,0 @@ if (className) { |
@@ -40,19 +40,7 @@ | ||
); | ||
const header = ( | ||
<Row> | ||
<Col md={11}> | ||
{ example } | ||
</Col> | ||
<Col md={1}> | ||
<Button shape="icon" onClick={ this.handleClick }> | ||
{ caret } | ||
</Button> | ||
</Col> | ||
</Row> | ||
); | ||
return ( | ||
<Col md={10} mdOffset={1} sm={12} smOffset={0}> | ||
<Col md={12}> | ||
<h3>{ title }</h3> | ||
<p>{ desc }</p> | ||
<Panel collapsible expanded={ this.state.open } colors='bordered' header={ header } footer={footer} footerStyle = {{padding: 0}}> | ||
<Panel collapsible expanded={ this.state.open } colors='bordered' header={ example } footer={footer} footerStyle = {{padding: 0,borderColor: "transparent"}} > | ||
<pre><code className="hljs javascript">{ code }</code></pre> | ||
@@ -59,0 +47,0 @@ </Panel> |
@@ -63,19 +63,7 @@ | ||
); | ||
const header = ( | ||
<Row> | ||
<Col md={11}> | ||
{ example } | ||
</Col> | ||
<Col md={1}> | ||
<Button shape="icon" onClick={ this.handleClick }> | ||
{ caret } | ||
</Button> | ||
</Col> | ||
</Row> | ||
); | ||
return ( | ||
<Col md={10} mdOffset={1} sm={12} smOffset={0}> | ||
<Col md={12}> | ||
<h3>{ title }</h3> | ||
<p>{ desc }</p> | ||
<Panel collapsible expanded={ this.state.open } colors='bordered' header={ header } footer={footer} footerStyle = {{padding: 0}}> | ||
<Panel collapsible expanded={ this.state.open } colors='bordered' header={ example } footer={footer} footerStyle = {{padding: 0,borderColor: "transparent"}} > | ||
<pre><code className="hljs javascript">{ code }</code></pre> | ||
@@ -82,0 +70,0 @@ </Panel> |
@@ -5,3 +5,3 @@ ## Badge | ||
## 代码展示 | ||
## 代码演示 | ||
@@ -11,3 +11,3 @@ ### API | ||
|参数|说明|类型|默认值| | ||
|:--|:---:|:--:|---:| | ||
|:--|:---|:--|:---| | ||
|colors|one of: `primary` `success` `info` `error` `warning` `dark`|string|''| | ||
@@ -14,0 +14,0 @@ |className|增加额外的class|string|''| |
{ | ||
"name": "bee-badge", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "bee-badge ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
896231
9964