nuke-switch
Advanced tools
Comparing version 2.1.6 to 2.1.10
@@ -6,2 +6,32 @@ # Change Log | ||
<a name="2.1.10"></a> | ||
## [2.1.10](https://gitlab.alibaba-inc.com/nuke/switch/compare/v2.1.9...v2.1.10) (2018-08-20) | ||
**Note:** Version bump only for package nuke-switch | ||
<a name="2.1.9"></a> | ||
## [2.1.9](https://gitlab.alibaba-inc.com/nuke/switch/compare/v2.1.8...v2.1.9) (2018-08-20) | ||
**Note:** Version bump only for package nuke-switch | ||
<a name="2.1.8"></a> | ||
## [2.1.8](https://gitlab.alibaba-inc.com/nuke/switch/compare/v2.1.6...v2.1.8) (2018-08-20) | ||
### Bug Fixes | ||
* fix Slip && Mask onShow logic issue ([555ad31](https://gitlab.alibaba-inc.com/nuke/switch/commit/555ad31)) | ||
<a name="2.1.6"></a> | ||
@@ -8,0 +38,0 @@ ## [2.1.6](https://gitlab.alibaba-inc.com/nuke/switch/compare/v2.1.4...v2.1.6) (2018-08-15) |
@@ -9,4 +9,3 @@ # Switch Demo | ||
````js | ||
```js | ||
import { createElement, Component, render } from 'rax'; | ||
@@ -22,7 +21,5 @@ import Text from 'nuke-text'; | ||
Core: { | ||
[`color-brand1-6`]: '#1A9CB7', | ||
[`color-brand1-6`]: '#1A9CB7' | ||
}, | ||
Switch: { | ||
} | ||
Switch: {} | ||
}; | ||
@@ -36,4 +33,4 @@ let App = class NukeDemoIndex extends Component { | ||
switch3: null, | ||
switch4: null, | ||
} | ||
switch4: null | ||
}; | ||
} | ||
@@ -44,3 +41,3 @@ change = (item, value) => { | ||
this.setState(obj); | ||
} | ||
}; | ||
changeNotice = (item, value) => { | ||
@@ -50,3 +47,3 @@ let obj = {}; | ||
this.setState(obj); | ||
} | ||
}; | ||
render() { | ||
@@ -56,6 +53,10 @@ return ( | ||
<Page title="Switch"> | ||
<Page.Intro main="非受控,组件checked 状态更新后,返回结果"></Page.Intro> | ||
<Page.Intro main="非受控,组件checked 状态更新后,返回结果" /> | ||
<View style={styles.row}> | ||
<View style={styles.cellItem}> | ||
<Switch key="switch3" defaultChecked={true} onValueChange={(value) => this.changeNotice('switch3', value)} /> | ||
<Switch | ||
key="switch3" | ||
defaultChecked={true} | ||
onValueChange={(value) => this.changeNotice('switch3', value)} | ||
/> | ||
<View style={styles.cellResult}> | ||
@@ -67,3 +68,7 @@ <Text style={styles.label}>switch3 返回: </Text> | ||
<View style={styles.cellItem}> | ||
<Switch key="switch4" defaultChecked={false} onValueChange={(value) => this.changeNotice('switch4', value)} /> | ||
<Switch | ||
key="switch4" | ||
defaultChecked={false} | ||
onValueChange={(value) => this.changeNotice('switch4', value)} | ||
/> | ||
<View style={styles.cellResult}> | ||
@@ -75,7 +80,6 @@ <Text style={styles.label}>switch4 返回: </Text> | ||
</View> | ||
<Page.Intro main="disabled"></Page.Intro> | ||
<Page.Intro main="disabled" /> | ||
<View style={styles.row}> | ||
<View style={styles.cellItem}> | ||
<Switch disabled checked={true} /> | ||
</View> | ||
@@ -86,16 +90,30 @@ <View style={styles.cellItem}> | ||
</View> | ||
<Page.Intro main="222222" /> | ||
<View style={styles.row}> | ||
<Switch | ||
key="switch6" | ||
defaultChecked={false} | ||
onValueChange={(value) => this.changeNotice('switch6', value)} | ||
/> | ||
</View> | ||
</Page> | ||
</StyleProvider > | ||
</StyleProvider> | ||
); | ||
} | ||
} | ||
}; | ||
const styles = { | ||
row: { | ||
flexDirection: 'row', | ||
paddingLeft: 40, | ||
marginBottom: 30 | ||
width: 200, | ||
height: 100, | ||
backgroundColor: '#fff333', | ||
flexDirection: 'row' | ||
}, | ||
// row: { | ||
// flexDirection: 'row', | ||
// paddingLeft: 40, | ||
// marginBottom: 30 | ||
// }, | ||
cellItem: { | ||
flex: 1, | ||
height: 240, | ||
height: 240 | ||
}, | ||
@@ -107,3 +125,3 @@ cellResult: { | ||
marginTop: 20, | ||
fontSize: 24, | ||
fontSize: 24 | ||
}, | ||
@@ -115,6 +133,4 @@ label: { | ||
} | ||
} | ||
}; | ||
render(<App />); | ||
```` | ||
``` |
{ | ||
"name": "nuke-switch", | ||
"version": "2.1.6", | ||
"version": "2.1.10", | ||
"description": "开关", | ||
@@ -41,5 +41,5 @@ "main": "lib/index", | ||
"dependencies": { | ||
"nuke-env": "^2.1.6", | ||
"nuke-helper": "^2.1.6", | ||
"nuke-theme-provider": "^2.1.6" | ||
"nuke-env": "^2.1.10", | ||
"nuke-helper": "^2.1.10", | ||
"nuke-theme-provider": "^2.1.10" | ||
}, | ||
@@ -53,6 +53,6 @@ "devDependencies": { | ||
"eslint-plugin-react": "7.1.0", | ||
"nuke-button": "^2.1.6", | ||
"nuke-page": "^2.1.6", | ||
"nuke-text": "^2.1.6", | ||
"nuke-view": "^2.1.6" | ||
"nuke-button": "^2.1.10", | ||
"nuke-page": "^2.1.10", | ||
"nuke-text": "^2.1.10", | ||
"nuke-view": "^2.1.10" | ||
}, | ||
@@ -63,3 +63,3 @@ "publishConfig": { | ||
"license": "Apache", | ||
"gitHead": "9b72a52f7ba75032458a88b2e3beaeb29059b939" | ||
"gitHead": "3f456cd7f92241938769ceee9057f543a2034fd1" | ||
} |
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
40278
Updatednuke-env@^2.1.10
Updatednuke-helper@^2.1.10
Updatednuke-theme-provider@^2.1.10