From 8fc0246231815ba4b16f1bce6a19ee59696ba872 Mon Sep 17 00:00:00 2001 From: xwenliang Date: Thu, 22 Sep 2016 15:02:19 +0800 Subject: [PATCH] v4.0.2 --- README.md | 43 +++++++++++++++++++++++++------------------ package.json | 2 +- 2 files changed, 26 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index a6dd56f..cd6c117 100644 --- a/README.md +++ b/README.md @@ -8,26 +8,33 @@ ###Documentation -####Props -- pickerConfirmBtnText(string), 确认按钮文字 -- pickerCancelBtnText(string), 取消按钮文字 -- pickerTitleText(string), 标题文字 -- pickerConfirmBtnColor([1, 186, 245, 1]), 确认按钮字体颜色 -- pickerCancelBtnColor([1, 186, 245, 1]), 取消按钮字体颜色 -- pickerTitleColor([20, 20, 20, 1]), 标题字体颜色 -- pickerToolBarBg([232, 232, 232, 1]), 工具栏背景颜色 -- pickerBg([196, 199, 206, 1]), picker背景颜色 -- pickerData(array), picker数据 -- selectedValue(string),默认选中数据 -- onPickerConfirm(function),确认按钮回调 -- onPickerCancel(function),取消按钮回调 -- onPickerSelect(function),滚轮滚动时回调 +####Params + +|Key | Description | Type | Default| +| -- | ----------- | ---- | ------ | +|pickerConfirmBtnText | |string |确认 | +|pickerCancelBtnText | |string |取消 | +|pickerTitleText | |string |请选择 | +|pickerConfirmBtnColor | |array |[1, 186, 245, 1] | +|pickerCancelBtnColor | |array |[1, 186, 245, 1] | +|pickerTitleColor | |array |[20, 20, 20, 1]) | +|pickerToolBarBg | |array |[232, 232, 232, 1] | +|pickerBg | |array |[196, 199, 206, 1] | +|pickerData | |array | | +|selectedValue | |string | | +|onPickerConfirm | |function| | +|onPickerCancel | |function| | +|onPickerSelect | |function| | ####Methods -- toggle show or hide picker, default to be hiden -- show show picker -- hide hide picker -- isPickerShow get status of picker, return a boolean + +|Name | Description | Type | Default| +| --- | ----------- | ---- | ------ | +|toggle |show or hide picker | | | +|show |show picker | | | +|hide |hide picker | | | +|isPickerShow |get status of picker, return a boolean | | | + ###Usage diff --git a/package.json b/package.json index ad11076..7b288e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-picker", - "version": "4.0.1", + "version": "4.0.2", "description": "", "main": "index.js", "scripts": { -- 2.26.2