nuke-components
Advanced tools
Comparing version 0.2.34 to 0.2.35
@@ -14,3 +14,3 @@ # 图片 | ||
import { View, Text,Image} from 'nuke-components'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
@@ -49,3 +49,3 @@ let base64Pic="data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAABQCAMAAABrs8qCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkI2Mzc2NTc5RjcxMDExRTY4MkQ2QUU4RjExRkRDQ0IyIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkI2Mzc2NTdBRjcxMDExRTY4MkQ2QUU4RjExRkR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p1NYmF35fQMiCyq70rZ75SAQFw6lbTiD4HELpz0dVNavDhNT0koLyInJ56qlmVVkJP2OyEBgcY2fhGIMKWFNvZHGdI8xaKtR05610B4M46I2HfcaQ3dE1rV0heAxC6crFFzbAzOnzDx9OvQIRJA6EsT3T0gUGulFB0nn68QomzGchlfsAwkRE6TZj8bxprzWG3Gmq89gpFZfotg/+CzHdEyraw05Bqh1RlXNQbE/2OcwHbsPHcrV7PAOZQewWAy0Lucjj7yzkfiVrWi9hq2zwAcEVRjxXDsMGI16I9dXxartW0tWOk1JJoCGbSAPPVa+uyD7/vQ1UGr6gXU5NLb2PZjbzjdkaAbQAaQAWQAGUAGkGb8J8AAlENomJySo10AAAAASUVORK5CYII="; | ||
return ( | ||
<BizPage title="Image"> | ||
<Page title="Image"> | ||
{ | ||
@@ -56,3 +56,3 @@ data.map((item,index)=>{ | ||
<View style={styles.itemWrapper}> | ||
<BizPage.Intro main="Normal" sub={item.desc}></BizPage.Intro> | ||
<Page.Intro main="Normal" sub={item.desc}></Page.Intro> | ||
<View style={styles.item}> | ||
@@ -65,3 +65,3 @@ <Image ref="testimage" source={{uri: item.src}} style={[styles.img,{quality:'original',width:item.width,height:item.height}]} onLoad={(e)=>{this.imageArrLoadHandler(index,e)}} /> | ||
} | ||
</BizPage> | ||
</Page> | ||
) | ||
@@ -68,0 +68,0 @@ } |
@@ -16,3 +16,3 @@ # 滚动视图 | ||
import Modal from 'nuke-modal'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
@@ -19,0 +19,0 @@ let App = class NukeDemoIndex extends Component { |
@@ -16,3 +16,3 @@ # 滚动视图 | ||
import Modal from 'nuke-modal'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
@@ -41,8 +41,8 @@ let arr=[ | ||
return ( | ||
<BizPage title="ScrollView"> | ||
<BizPage.Intro main="Vertical Scroll" sub="纵向滚动"></BizPage.Intro> | ||
<Page title="ScrollView"> | ||
<Page.Intro main="Vertical Scroll" sub="纵向滚动"></Page.Intro> | ||
<ScrollView ref="vscroller" style={styles.vscroller} onEndReachedThreshold={20} onEndReached={this.loadmore}> | ||
{this.getViews()} | ||
</ScrollView> | ||
<BizPage.Intro main="Horizontal Scroll" sub="横向滚动"></BizPage.Intro> | ||
<Page.Intro main="Horizontal Scroll" sub="横向滚动"></Page.Intro> | ||
<ScrollView ref="hscroller" horizontal={true} style={styles.hscroller} onEndReachedThreshold={20}> | ||
@@ -52,3 +52,3 @@ {this.getViews()} | ||
</BizPage> | ||
</Page> | ||
) | ||
@@ -55,0 +55,0 @@ } |
@@ -14,3 +14,3 @@ # 开关切换 | ||
import { View, Text, Switch } from 'nuke-components'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
import Modal from 'nuke-modal'; | ||
@@ -45,4 +45,4 @@ | ||
return ( | ||
<BizPage title="Switch"> | ||
<BizPage.Intro main="normal"></BizPage.Intro> | ||
<Page title="Switch"> | ||
<Page.Intro main="normal"></Page.Intro> | ||
<View style={styles.row}> | ||
@@ -57,3 +57,3 @@ <View style={styles.cellItem}> | ||
<BizPage.Intro main="disabled"></BizPage.Intro> | ||
<Page.Intro main="disabled"></Page.Intro> | ||
<View style={styles.row}> | ||
@@ -65,3 +65,3 @@ <View style={styles.cellItem}> | ||
</View> | ||
<BizPage.Intro main="双向绑定用于某些逻辑处理"></BizPage.Intro> | ||
<Page.Intro main="双向绑定用于某些逻辑处理"></Page.Intro> | ||
<View style={styles.row}> | ||
@@ -75,3 +75,3 @@ <View style={styles.cellItem}> | ||
</View> | ||
<BizPage.Intro main="先 disabled 再 enabled"></BizPage.Intro> | ||
<Page.Intro main="先 disabled 再 enabled"></Page.Intro> | ||
<View style={styles.row}> | ||
@@ -85,3 +85,3 @@ <View style={styles.cellItem}> | ||
</View> | ||
</BizPage> | ||
</Page> | ||
); | ||
@@ -88,0 +88,0 @@ } |
@@ -14,3 +14,3 @@ # 文字 | ||
import { View, Text} from 'nuke-components'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
@@ -34,4 +34,4 @@ const FontSizeArr=[ | ||
return ( | ||
<BizPage title="Text"> | ||
<BizPage.Intro main="Normal"></BizPage.Intro> | ||
<Page title="Text"> | ||
<Page.Intro main="Normal"></Page.Intro> | ||
{ | ||
@@ -51,3 +51,3 @@ FontSizeArr.map((item,index)=>{ | ||
} | ||
<BizPage.Intro main="固定字号" sub="仅native生效"></BizPage.Intro> | ||
<Page.Intro main="固定字号" sub="仅native生效"></Page.Intro> | ||
<View style={styles.textLine}> | ||
@@ -77,3 +77,3 @@ <View style={styles.label}> | ||
</View> | ||
</BizPage> | ||
</Page> | ||
) | ||
@@ -80,0 +80,0 @@ } |
@@ -13,3 +13,3 @@ # 输入框 | ||
import { View, Text, TextInput,TouchableHighlight } from 'nuke-components'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
@@ -26,3 +26,3 @@ | ||
return ( | ||
<BizPage title="TextInput"> | ||
<Page title="TextInput"> | ||
<TextInput | ||
@@ -32,35 +32,35 @@ style={{width: '200rem', height: '60rem', backgroundColor: '#ff0000'}} | ||
></TextInput> | ||
<BizPage.Intro main="输入框" sub="单行"></BizPage.Intro> | ||
<Page.Intro main="输入框" sub="单行"></Page.Intro> | ||
<View style={styles.singleWrap}> | ||
<TextInput ref="input" onChange={this.change} style={styles.single}/> | ||
</View> | ||
<BizPage.Intro sub="多行"></BizPage.Intro> | ||
<Page.Intro sub="多行"></Page.Intro> | ||
<View style={styles.singleWrap}> | ||
<TextInput placeholder="提示" multiple ref="input" onChange={this.change} style={styles.multiple}/> | ||
</View> | ||
<BizPage.Intro main="各种键盘类型" sub="email"></BizPage.Intro> | ||
<Page.Intro main="各种键盘类型" sub="email"></Page.Intro> | ||
<View style={styles.singleWrap}> | ||
<TextInput placeholder="email" type="email" style={styles.single} /> | ||
</View> | ||
<BizPage.Intro sub="password"></BizPage.Intro> | ||
<Page.Intro sub="password"></Page.Intro> | ||
<View style={styles.singleWrap}> | ||
<TextInput placeholder="password" type="password" style={styles.single} /> | ||
</View> | ||
<BizPage.Intro sub="url"></BizPage.Intro> | ||
<Page.Intro sub="url"></Page.Intro> | ||
<View style={styles.singleWrap}> | ||
<TextInput placeholder="url" type="url" style={styles.single} /> | ||
</View> | ||
<BizPage.Intro sub="tel"></BizPage.Intro> | ||
<Page.Intro sub="tel"></Page.Intro> | ||
<View style={styles.singleWrap}> | ||
<TextInput placeholder="tel" type="tel" style={styles.single} /> | ||
</View> | ||
<BizPage.Intro sub="date"></BizPage.Intro> | ||
<Page.Intro sub="date"></Page.Intro> | ||
<View style={styles.singleWrap}> | ||
<TextInput placeholder="date" type="date" style={styles.single} /> | ||
</View> | ||
<BizPage.Intro sub="number"></BizPage.Intro> | ||
<Page.Intro sub="number"></Page.Intro> | ||
<View style={styles.singleWrap}> | ||
<TextInput placeholder="number" type="number" style={styles.single} /> | ||
</View> | ||
<BizPage.Intro sub="time"></BizPage.Intro> | ||
<Page.Intro sub="time"></Page.Intro> | ||
<View style={styles.singleWrap}> | ||
@@ -70,3 +70,3 @@ <TextInput placeholder="time" type="time" style={styles.single} /> | ||
</BizPage> | ||
</Page> | ||
); | ||
@@ -73,0 +73,0 @@ } |
@@ -14,3 +14,3 @@ # TouchableHighlight | ||
import { View, Text, TouchableHighlight } from 'nuke-components'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
@@ -31,4 +31,4 @@ class App extends Component { | ||
return ( | ||
<BizPage title="TouchableHighlight"> | ||
<BizPage.Intro main="Normal"></BizPage.Intro> | ||
<Page title="TouchableHighlight"> | ||
<Page.Intro main="Normal"></Page.Intro> | ||
<View style={styles.result}> | ||
@@ -43,3 +43,3 @@ {this.state.count ? <Text style={styles.resultText}>点击 {this.state.count} 次</Text> :null} | ||
</BizPage> | ||
</Page> | ||
) | ||
@@ -46,0 +46,0 @@ } |
@@ -14,3 +14,3 @@ # Video | ||
import { View, Text, Video } from 'nuke-components'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
@@ -25,4 +25,4 @@ | ||
return ( | ||
<BizPage title="Video"> | ||
<BizPage.Intro main="Normal"></BizPage.Intro> | ||
<Page title="Video"> | ||
<Page.Intro main="Normal"></Page.Intro> | ||
<View style={{justifyContent:'center',alignItems:'center'}}> | ||
@@ -32,3 +32,3 @@ <Video style={{width:'600rem',height:'800rem'}} src="http://cloud.video.taobao.com/play/u/2046440196/p/1/e/6/t/1/50106183.mp4" /> | ||
</View> | ||
</BizPage> | ||
</Page> | ||
) | ||
@@ -35,0 +35,0 @@ } |
@@ -15,3 +15,3 @@ # View Demo | ||
import Layout from 'nuke-layout'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
const {Grid ,Col } = Layout; | ||
@@ -27,4 +27,4 @@ | ||
return ( | ||
<BizPage title="View"> | ||
<BizPage.Intro main="flex-direction:row" sub="横向布局"></BizPage.Intro> | ||
<Page title="View"> | ||
<Page.Intro main="flex-direction:row" sub="横向布局"></Page.Intro> | ||
<Grid style={styles.gridWrap}> | ||
@@ -35,3 +35,3 @@ <Col style={[styles.col,{backgroundColor:'#1170bc'}]}><Text style={styles.text}>A</Text></Col> | ||
</Grid> | ||
<BizPage.Intro main="flex-direction:column" sub="纵向布局"></BizPage.Intro> | ||
<Page.Intro main="flex-direction:column" sub="纵向布局"></Page.Intro> | ||
<View style={styles.columnWrap}> | ||
@@ -41,3 +41,3 @@ <View style={[styles.row,{backgroundColor:'#1170bc'}]}><Text style={styles.text}>A</Text></View> | ||
</View> | ||
</BizPage> | ||
</Page> | ||
) | ||
@@ -44,0 +44,0 @@ } |
# Changelog | ||
## 0.2.35 / 2017-07-06 | ||
* [[4937662](http://gitlab.alibaba-inc.com/nuke/components/commit/49376628bdc585b96f7b6ad172a952a4908a85ef)] - `fix` update page dependencies | ||
## 0.2.34 / 2017-06-08 | ||
@@ -5,0 +9,0 @@ |
{ | ||
"name": "nuke-components", | ||
"version": "0.2.34", | ||
"version": "0.2.35", | ||
"description": "nuke原件库", | ||
@@ -8,3 +8,2 @@ "main": "lib/index", | ||
"lib", | ||
"src", | ||
"docs", | ||
@@ -49,3 +48,3 @@ "theme", | ||
"devDependencies": { | ||
"nuke-biz-page": "^0.0.x", | ||
"nuke-page": "^0.0.x", | ||
"nuke-button": "0.x.x", | ||
@@ -52,0 +51,0 @@ "nuke-modal": "0.x.x", |
61624
25
353