nuke-switch
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -14,3 +14,3 @@ # Switch Demo | ||
import View from 'nuke-view'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
import Switch from 'nuke-switch'; | ||
@@ -40,4 +40,4 @@ | ||
return ( | ||
<BizPage title="Switch"> | ||
<BizPage.Intro main="受控,状态自行控制"></BizPage.Intro> | ||
<Page title="Switch"> | ||
<Page.Intro main="受控,状态自行控制"></Page.Intro> | ||
<View style={styles.row}> | ||
@@ -59,3 +59,3 @@ <View style={styles.cellItem}> | ||
</View> | ||
<BizPage.Intro main="非受控,组件checked 状态更新后,返回结果"></BizPage.Intro> | ||
<Page.Intro main="非受控,组件checked 状态更新后,返回结果"></Page.Intro> | ||
<View style={styles.row}> | ||
@@ -77,3 +77,3 @@ <View style={styles.cellItem}> | ||
</View> | ||
<BizPage.Intro main="disabled"></BizPage.Intro> | ||
<Page.Intro main="disabled"></Page.Intro> | ||
<View style={styles.row}> | ||
@@ -89,3 +89,3 @@ <View style={styles.cellItem}> | ||
</View> | ||
</BizPage> | ||
</Page> | ||
); | ||
@@ -92,0 +92,0 @@ } |
# Changelog | ||
## 0.1.2 / 2017-07-28 | ||
* [[908970b](http://gitlab.alibaba-inc.com/nuke/switch/commit/908970b99c69ba7877e7763ee8e9d9a64a496865)] - `docs` biz-page changed to page | ||
## 0.1.1 / 2017-06-16 | ||
@@ -5,0 +9,0 @@ |
@@ -88,3 +88,4 @@ /* @jsx createElement */ | ||
disabled = _props$disabled === undefined ? false : _props$disabled, | ||
onValueChange = _props.onValueChange; | ||
_props$onValueChange = _props.onValueChange, | ||
onValueChange = _props$onValueChange === undefined ? function () {} : _props$onValueChange; | ||
@@ -91,0 +92,0 @@ if (disabled) { |
{ | ||
"name": "nuke-switch", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "开关", | ||
@@ -51,3 +51,3 @@ "main": "lib/index", | ||
"devDependencies": { | ||
"nuke-biz-page": "^0.0.7", | ||
"nuke-page": "^0.x.x", | ||
"nuke-text": "^0.x.x", | ||
@@ -54,0 +54,0 @@ "nuke-view": "^0.x.x" |
import {createElement, Component,render} from 'rax'; | ||
import Text from 'nuke-text'; | ||
import View from 'nuke-view'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
import Switch from 'nuke-switch'; | ||
@@ -29,4 +29,4 @@ | ||
return ( | ||
<BizPage title="Switch"> | ||
<BizPage.Intro main="受控,状态自行控制"></BizPage.Intro> | ||
<Page title="Switch"> | ||
<Page.Intro main="受控,状态自行控制"></Page.Intro> | ||
<View style={styles.row}> | ||
@@ -48,3 +48,3 @@ <View style={styles.cellItem}> | ||
</View> | ||
<BizPage.Intro main="非受控,组件checked 状态更新后,返回结果"></BizPage.Intro> | ||
<Page.Intro main="非受控,组件checked 状态更新后,返回结果"></Page.Intro> | ||
<View style={styles.row}> | ||
@@ -66,3 +66,3 @@ <View style={styles.cellItem}> | ||
</View> | ||
<BizPage.Intro main="disabled"></BizPage.Intro> | ||
<Page.Intro main="disabled"></Page.Intro> | ||
<View style={styles.row}> | ||
@@ -78,3 +78,3 @@ <View style={styles.cellItem}> | ||
</View> | ||
</BizPage> | ||
</Page> | ||
); | ||
@@ -81,0 +81,0 @@ } |
14925
178