Comparing version 1.0.26 to 1.0.27
@@ -24,3 +24,2 @@ import React, {Component} from 'react'; | ||
: 'car-select-option-select' | ||
console.log() | ||
return (<li onClick={this.handleActive} className={`${styles['car-select-option-item']} ${styles[activeCls]}`}>{this.props.children}</li>) | ||
@@ -27,0 +26,0 @@ } |
@@ -16,3 +16,7 @@ import React, {Component} from 'react' | ||
handleClick(key) { | ||
this.setState({activeKey: key}) | ||
this.setState({activeKey: key}); | ||
if (this.props.onChange) { | ||
this.props.onChange(key); | ||
} | ||
} | ||
@@ -19,0 +23,0 @@ componentDidMount() { |
@@ -36,3 +36,5 @@ import Button from './components/Button/Button'; | ||
} | ||
function testTabsChange() { | ||
console.log('------testTabsChange-----'); | ||
} | ||
return (<div className='main'> | ||
@@ -179,5 +181,5 @@ | ||
<div className='item tab-con'> | ||
<Tabs > | ||
<Pane title={'基础属性'} value={1}> | ||
<Tabs size={'small'}> | ||
<Tabs onChange={testTabsChange}> | ||
<Pane title={'基础属性'} value={'111'}> | ||
<Tabs size={'small'} onChange={testTabsChange}> | ||
<Pane title={'国别偏好'} value={1}></Pane> | ||
@@ -188,4 +190,4 @@ <Pane title={'品牌偏好'} value={9}></Pane> | ||
</Pane> | ||
<Pane title={'行为偏好'} value={2}>行为偏好</Pane> | ||
<Pane title={'购车因素'} value={3}>购车因素</Pane> | ||
<Pane title={'行为偏好'} value={'222'}>行为偏好</Pane> | ||
<Pane title={'购车因素'} value={'3333'}>购车因素</Pane> | ||
@@ -192,0 +194,0 @@ </Tabs> |
{ | ||
"name": "carhome", | ||
"version": "1.0.26", | ||
"version": "1.0.27", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/vi.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
3092820
2505