From ff55eea61b60ea56d5b13e03a93a9dc56737f828 Mon Sep 17 00:00:00 2001 From: Jerome Lin Date: Thu, 24 Aug 2017 17:42:23 +0800 Subject: [PATCH] docs --- components/ActionSheet/ActionSheet.jsx | 10 +-- components/Checkbox/Checkbox.jsx | 2 + components/Checkbox/CheckboxGroup.jsx | 8 ++- components/Input/Input.jsx | 4 ++ components/Stepper/Stepper.jsx | 2 +- components/Switch/Switch.jsx | 5 +- docs/zh-cn/SUMMARY.md | 7 +++ docs/zh-cn/components/ActionSheet.md | 85 +++++++++++++++++++++++++ docs/zh-cn/components/Button.md | 87 ++++++++++++++++++++++++++ docs/zh-cn/components/Checkbox.md | 46 ++++++-------- docs/zh-cn/components/Input.md | 23 ++----- docs/zh-cn/components/Picker.md | 64 ++++++++----------- docs/zh-cn/components/Radio.md | 22 +++---- docs/zh-cn/components/Stepper.md | 76 ++++++++++++++++++++++ docs/zh-cn/components/Switch.md | 50 +++++++++++++++ docs/zh-cn/components/Uploader.md | 63 +++++++++++++++++++ examples/pages/ActionSheetPage.jsx | 14 ++--- examples/pages/ButtonPage.jsx | 2 +- examples/pages/StepperPage.jsx | 46 +++----------- examples/pages/SwitchPage.jsx | 9 ++- 20 files changed, 467 insertions(+), 158 deletions(-) create mode 100644 docs/zh-cn/components/ActionSheet.md create mode 100644 docs/zh-cn/components/Button.md create mode 100644 docs/zh-cn/components/Stepper.md create mode 100644 docs/zh-cn/components/Switch.md create mode 100644 docs/zh-cn/components/Uploader.md diff --git a/components/ActionSheet/ActionSheet.jsx b/components/ActionSheet/ActionSheet.jsx index 97df0bbc3..f41f41d81 100644 --- a/components/ActionSheet/ActionSheet.jsx +++ b/components/ActionSheet/ActionSheet.jsx @@ -46,20 +46,22 @@ ActionSheet.propTypes = { prefixCls: PropTypes.string, className: PropTypes.string, shape: PropTypes.oneOf(['radius']), + visible: PropTypes.bool, actions: PropTypes.arrayOf(PropTypes.object), - cancelText: PropTypes.string, - onCancel: PropTypes.func, onMaskClick: Popup.propTypes.onMaskClick, + onCancel: PropTypes.func, + cancelText: PropTypes.string, }; ActionSheet.defaultProps = { prefixCls: 'za-actionsheet', className: null, shape: 'radius', + visible: false, actions: [], - cancelText: '取消', - onCancel: null, onMaskClick: Popup.defaultProps.onMaskClick, + onCancel: null, + cancelText: '取消', }; export default ActionSheet; diff --git a/components/Checkbox/Checkbox.jsx b/components/Checkbox/Checkbox.jsx index 4341c70b8..225b1c52c 100644 --- a/components/Checkbox/Checkbox.jsx +++ b/components/Checkbox/Checkbox.jsx @@ -84,6 +84,7 @@ Checkbox.propTypes = { className: PropTypes.string, theme: PropTypes.oneOf(['default', 'primary', 'info', 'success', 'warning', 'error']), type: PropTypes.oneOf(['button', 'cell']), + checked: PropTypes.bool, defaultChecked: PropTypes.bool, disabled: PropTypes.bool, onChange: PropTypes.func, @@ -94,6 +95,7 @@ Checkbox.defaultProps = { className: null, theme: 'primary', type: null, + checked: false, defaultChecked: false, disabled: false, onChange() {}, diff --git a/components/Checkbox/CheckboxGroup.jsx b/components/Checkbox/CheckboxGroup.jsx index 7923a6a33..4ce1a92a9 100644 --- a/components/Checkbox/CheckboxGroup.jsx +++ b/components/Checkbox/CheckboxGroup.jsx @@ -80,8 +80,10 @@ CheckboxGroup.propTypes = { prefixCls: PropTypes.string, className: PropTypes.string, theme: PropTypes.oneOf(['default', 'primary', 'info', 'success', 'warning', 'error']), - type: PropTypes.oneOf(['button', 'cell']), shape: PropTypes.oneOf(['radius', 'round']), + type: PropTypes.oneOf(['button', 'cell']), + value: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), + defaultValue: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), block: PropTypes.bool, disabled: PropTypes.bool, compact: PropTypes.bool, @@ -92,8 +94,10 @@ CheckboxGroup.defaultProps = { prefixCls: 'za-checkbox-group', className: null, theme: 'primary', - type: null, shape: null, + type: null, + value: null, + defaultValue: null, block: false, disabled: false, compact: false, diff --git a/components/Input/Input.jsx b/components/Input/Input.jsx index 6547da892..2aa57a35c 100644 --- a/components/Input/Input.jsx +++ b/components/Input/Input.jsx @@ -114,8 +114,10 @@ Input.propTypes = { className: PropTypes.string, type: PropTypes.string, disabled: PropTypes.bool, + rows: PropTypes.oneOfType([PropTypes.number, PropTypes.string]), autosize: PropTypes.bool, showLength: PropTypes.bool, + onChange: PropTypes.func, }; Input.defaultProps = { @@ -123,8 +125,10 @@ Input.defaultProps = { className: null, type: 'text', disabled: false, + rows: null, autosize: false, showLength: false, + onChange() {}, }; export default Input; diff --git a/components/Stepper/Stepper.jsx b/components/Stepper/Stepper.jsx index ae58d83d7..f345ddde1 100644 --- a/components/Stepper/Stepper.jsx +++ b/components/Stepper/Stepper.jsx @@ -112,7 +112,7 @@ Stepper.propTypes = { className: PropTypes.string, theme: PropTypes.oneOf(['default', 'primary', 'info', 'success', 'warning', 'error']), size: PropTypes.oneOf(['xl', 'lg', 'sm', 'xs']), - shape: PropTypes.oneOf(['radius', 'round', 'circle']), + shape: PropTypes.oneOf(['radius', 'circle']), disabled: PropTypes.bool, step: PropTypes.number, min: PropTypes.number, diff --git a/components/Switch/Switch.jsx b/components/Switch/Switch.jsx index 84f7c442d..6ade9b82f 100644 --- a/components/Switch/Switch.jsx +++ b/components/Switch/Switch.jsx @@ -38,7 +38,7 @@ class Switch extends PureComponent { } render() { - const { prefixCls, className, theme, size, shape, disabled } = this.props; + const { prefixCls, className, theme, size, disabled } = this.props; const { checked } = this.state; const cls = classnames({ @@ -46,7 +46,6 @@ class Switch extends PureComponent { [className]: !!className, [`theme-${theme}`]: !!theme, [`size-${size}`]: !!size, - [`shape-${shape}`]: !!shape, checked, disabled, }); @@ -63,7 +62,6 @@ Switch.propTypes = { prefixCls: PropTypes.string, className: PropTypes.string, theme: PropTypes.oneOf(['default', 'primary', 'info', 'success', 'warning', 'error']), - shape: PropTypes.oneOf(['radius', 'round', 'circle']), disabled: PropTypes.bool, onChange: PropTypes.func, }; @@ -73,7 +71,6 @@ Switch.defaultProps = { className: null, theme: 'primary', size: null, - shape: null, disabled: false, onChange() {}, }; diff --git a/docs/zh-cn/SUMMARY.md b/docs/zh-cn/SUMMARY.md index 490d32cbf..fdc481950 100644 --- a/docs/zh-cn/SUMMARY.md +++ b/docs/zh-cn/SUMMARY.md @@ -12,4 +12,11 @@ * [文本框 Input](components/Input.md) * [选择器 Picker](components/Picker.md) * [单选框 Radio](components/Radio.md) + * [步进器 Stepper](components/Stepper.md) + * [开关 Switch](components/Switch.md) + * [上传组件 Uploader](components/Uploader.md) + +* 操作反馈 + * [动作面板 ActionSheet](components/ActionSheet.md) + * [按钮 Button](components/Button.md) diff --git a/docs/zh-cn/components/ActionSheet.md b/docs/zh-cn/components/ActionSheet.md new file mode 100644 index 000000000..b673c3edc --- /dev/null +++ b/docs/zh-cn/components/ActionSheet.md @@ -0,0 +1,85 @@ +# 动作面板 ActionSheet + +[demo页面](https://zhongantecheng.github.io/zarm/#/actionsheet) + +### 引入 + +```js +import { ActionSheet } from 'zarm'; +``` + +### 代码演示 + +#### 基本用法 + +###### 普通 +```jsx + { + this.setState({ + visible: false, + }); + }} + actions={[ + { + text: '操作一', + onClick: () => console.log('点击操作一'), + }, + { + text: '操作二', + onClick: () => console.log('点击操作二'), + }, + ]} + /> +``` + +###### 带取消操作 +```jsx + { + this.setState({ + visible: false, + }); + }} + actions={[ + { + text: '操作一', + onClick: () => console.log('点击操作一'), + }, + { + text: '操作二', + onClick: () => console.log('点击操作二'), + }, + { + theme: 'error', + text: '操作三', + onClick: () => console.log('点击操作三'), + }, + ]} + onCancel={() => { + this.setState({ + visible: false, + }); + }} + /> +``` + + +### API + +| 属性 | 类型 | 默认值 | 可选值/参数 | 说明 | +| :--- | :--- | :--- | :--- | :--- | +| prefixCls | string | za-switch | | 类名前缀 | +| className | string | null | | 追加类名 | +| shape | string | null | 'radius' | 形状 | +| visible | bool | false | | 是否显示 | +| actions | arrayOf(object) | [ ] | object: { theme, text, onClick } | 动作列表 | +| onMaskClick | func | noop | | 点击遮罩层时触发的回调函数 | +| onCancel | func | null | void | 显示取消菜单,点击时触发的回调函数 | +| cancelText | string | '取消' | | 取消菜单的文案 | + + + + diff --git a/docs/zh-cn/components/Button.md b/docs/zh-cn/components/Button.md new file mode 100644 index 000000000..76b248e3f --- /dev/null +++ b/docs/zh-cn/components/Button.md @@ -0,0 +1,87 @@ +# 按钮 Button + +[demo页面](https://zhongantecheng.github.io/zarm/#/button) + +### 引入 + +```js +import { Button } from 'zarm'; +``` + +### 代码演示 + +#### 基本用法 + +###### 普通 +```jsx + +``` + +###### 幽灵按钮 +```jsx + +``` + +###### 块级按钮 +```jsx + +``` + +###### 禁用状态 +```jsx + +``` + +#### 多主题 +```jsx + + + + + + +``` + +#### 按钮大小 +```jsx + + + + + +``` + +#### 多形状 +```jsx + + + +``` + +#### 带icon的按钮 +```jsx + + + +``` + + +### API + +| 属性 | 类型 | 默认值 | 可选值/参数 | 说明 | +| :--- | :--- | :--- | :--- | :--- | +| prefixCls | string | za-button | | 类名前缀 | +| className | string | null | | 追加类名 | +| theme | string | primary | 'default', 'primary', 'info', 'success', 'warning', 'error' | 主题 | +| size | string | null | 'xl', 'lg', 'sm', 'xs' | 大小 | +| shape | string | null | 'radius', 'round', 'circle' | 形状 | +| block | bool | false | | 是否为块级元素 | +| bordered | bool | false | | 是否是幽灵按钮 | +| disabled | bool | false | | 是否禁用 | +| loading | bool | false | | 是否显示加载中 | +| icon | React.element | null | | icon | +| onChange | func | noop | \(value: bool\) | 值变化时触发的回调函数 | + + + + diff --git a/docs/zh-cn/components/Checkbox.md b/docs/zh-cn/components/Checkbox.md index 1f0633c8f..621bccdea 100644 --- a/docs/zh-cn/components/Checkbox.md +++ b/docs/zh-cn/components/Checkbox.md @@ -12,14 +12,12 @@ import { Checkbox } from 'zarm'; #### 基本用法 -单独使用 - +###### 单独使用 ```jsx console.log(`checkbox to ${checked}`)}>同意条款 ``` -组合使用 - +###### 组合使用 ```jsx 选项一 @@ -46,8 +43,7 @@ import { Checkbox } from 'zarm'; ``` -指定默认值 - +###### 指定默认值 ```jsx 选项一 @@ -56,8 +52,7 @@ import { Checkbox } from 'zarm'; ``` -禁用指定项 - +###### 禁用指定项 ```jsx 选项一 @@ -66,8 +61,7 @@ import { Checkbox } from 'zarm'; ``` -圆角 - +###### 圆角 ```jsx 选项一 @@ -76,8 +70,7 @@ import { Checkbox } from 'zarm'; ``` -椭圆角 - +###### 椭圆角 ```jsx 选项一 @@ -87,9 +80,8 @@ import { Checkbox } from 'zarm'; ``` #### 块级样式 - ```jsx - + 选项一 选项二 选项三 @@ -98,8 +90,7 @@ import { Checkbox } from 'zarm'; #### 列表样式 -普通 - +###### 普通 ```jsx 选项一 @@ -108,8 +99,7 @@ import { Checkbox } from 'zarm'; ``` -禁用状态 - +###### 禁用状态 ```jsx 选项一 @@ -126,12 +116,11 @@ import { Checkbox } from 'zarm'; | 属性 | 类型 | 默认值 | 可选值/参数 | 说明 | | :--- | :--- | :--- | :--- | :--- | | prefixCls | string | za-checkbox | | 类名前缀 | -| className | string | 无 | | 追加类名 | +| className | string | null | | 追加类名 | | theme | string | primary | 'default', 'primary', 'info', 'success', 'warning', 'error' | 主题 | -| type | string | 无 | 'button', 'cell' | 显示类型 | -| value | string, number | 无 | | 值 | +| type | string | null | 'button', 'cell' | 显示类型 | +| checked | bool | false | | 是否选中 | | defaultChecked | bool | false | | 初始是否选中 | -| checked | bool | false | | 当前是否选中 | | disabled | bool | false | | 是否禁用 | | onChange | func | noop | \(checked: bool\) | 值变化时触发的回调函数 | @@ -140,11 +129,12 @@ import { Checkbox } from 'zarm'; | 属性 | 类型 | 默认值 | 可选值/参数 | 说明 | | :--- | :--- | :--- | :--- | :--- | | prefixCls | string | za-checkbox | | 类名前缀 | -| className | string | 无 | | 追加类名 | +| className | string | null | | 追加类名 | | theme | string | primary | 'default', 'primary', 'info', 'success', 'warning', 'error' | 主题 | -| type | string | 无 | 'button', 'cell' | 显示类型 | -| value | array | [] | | 选中值 | -| shape | string | 无 | 'radius', 'round' | 形状 | +| shape | string | null | 'radius', 'round' | 形状 | +| type | string | null | 'button', 'cell' | 显示类型 | +| value | array | [ ] | | 选中值 | +| defaultValue | array | [ ] | | 初始选中值 | | block | bool | false | | 是否为块级元素 | | disabled | bool | false | | 是否禁用 | | onChange | func | noop | \(value: array\) | 值变化时触发的回调函数 | diff --git a/docs/zh-cn/components/Input.md b/docs/zh-cn/components/Input.md index 995caecc6..d9e2dc1ae 100644 --- a/docs/zh-cn/components/Input.md +++ b/docs/zh-cn/components/Input.md @@ -12,33 +12,22 @@ import { Input } from 'zarm'; #### 基本用法 -单行文本 - +###### 单行文本 ```jsx ``` -多行文本 - +###### 多行文本 ```jsx ``` #### 高度自适应 - ```jsx ``` -#### 无标签栏 - -```jsx - - -``` - #### 显示输入字数 - ```jsx ``` @@ -49,12 +38,12 @@ import { Input } from 'zarm'; | 属性 | 类型 | 默认值 | 可选值/参数 | 说明 | | :--- | :--- | :--- | :--- | :--- | | prefixCls | string | za-input | | 类名前缀 | -| className | string | 无 | | 追加类名 | +| className | string | null | | 追加类名 | | type | string | text | | 显示类型 | -| value | string | 无 | | 值 | -| defaultValue | string | 无 | | 初始值 | +| value | string | | | 值 | +| defaultValue | string | | | 初始值 | | disabled | bool | false | | 是否禁用 | -| rows | string, number | 无 | | 多行文本时的显示行数 | +| rows | string, number | null | | 多行文本时的显示行数 | | autosize | bool | false | | 是否高度自适应 | | showLength | bool | false | | 是否显示输入字数 | | onChange | func | noop | \(value: string\) | 值变化时触发的回调函数 | diff --git a/docs/zh-cn/components/Picker.md b/docs/zh-cn/components/Picker.md index 72de6c127..068675ebf 100644 --- a/docs/zh-cn/components/Picker.md +++ b/docs/zh-cn/components/Picker.md @@ -13,8 +13,7 @@ import { Picker } from 'zarm'; #### 基本用法 -单列 - +###### 单列 ```jsx ``` -多列联动 - +###### 多列联动 ```jsx ``` -指定默认值 - +###### 指定默认值 ```jsx ``` -禁止修改 - +###### 禁止修改 ```jsx ``` -自定义格式 - +###### 自定义格式 ```jsx ``` -省市区选择 - +###### 省市区选择 ```jsx ``` #### 日期选择器 -年份选择 - +###### 年份选择 ```jsx ``` -日期选择 - +###### 日期选择 ```jsx ``` -时间选择 - +###### 时间选择 ```jsx ``` -日期&时间 - +###### 日期&时间 ```jsx ``` -自定义格式 - +###### 自定义格式 ```jsx 年:`YYYY`, 月:`MM`, 日:`DD`, 时:`hh`, 分:`mm`, 秒:`ss`。| 格式化显示值 | +| format | string | null | 例:YYYY年MM月DD日
年:`YYYY`, 月:`MM`, 日:`DD`, 时:`hh`, 分:`mm`, 秒:`ss`。| 格式化显示值 | | minuteStep | number | 1 | | 分钟步长 | | wheelDefaultValue | array, string | | | 滚轮默认值 | diff --git a/docs/zh-cn/components/Radio.md b/docs/zh-cn/components/Radio.md index cd0dffa5c..2adaa0a10 100644 --- a/docs/zh-cn/components/Radio.md +++ b/docs/zh-cn/components/Radio.md @@ -12,8 +12,7 @@ import { Radio } from 'zarm'; #### 基本用法 -普通 - +###### 普通 ```jsx ``` -指定默认值 - +###### 指定默认值 ```jsx 选项一 @@ -34,8 +32,7 @@ import { Radio } from 'zarm'; ``` -禁用指定项 - +###### 禁用指定项 ```jsx 选项一 @@ -44,8 +41,7 @@ import { Radio } from 'zarm'; ``` -圆角 - +###### 圆角 ```jsx 选项一 @@ -54,8 +50,7 @@ import { Radio } from 'zarm'; ``` -椭圆角 - +###### 椭圆角 ```jsx 选项一 @@ -65,7 +60,6 @@ import { Radio } from 'zarm'; ``` #### 块级样式 - ```jsx 选项一 @@ -76,8 +70,7 @@ import { Radio } from 'zarm'; #### 列表样式 -普通 - +###### 普通 ```jsx 选项一 @@ -86,8 +79,7 @@ import { Radio } from 'zarm'; ``` -禁用状态 - +###### 禁用状态 ```jsx 选项一 diff --git a/docs/zh-cn/components/Stepper.md b/docs/zh-cn/components/Stepper.md new file mode 100644 index 000000000..dc5722ea4 --- /dev/null +++ b/docs/zh-cn/components/Stepper.md @@ -0,0 +1,76 @@ +# 步进器 Stepper + +[demo页面](https://zhongantecheng.github.io/zarm/#/stepper) + +### 引入 + +```js +import { Stepper } from 'zarm'; +``` + +### 代码演示 + +#### 基本用法 + +###### 普通 +```jsx + { + this.setState({ value }); + }} + /> +``` + +###### 设置默认值 +```jsx + +``` + +###### 设置上下限 +```jsx + +``` + +###### 设置步长 +```jsx + +``` + +###### 禁用状态 +```jsx + +``` + +#### 多形状 + +###### 圆角 +```jsx + +``` + +###### 圆形 +```jsx + +``` + + +### API + +| 属性 | 类型 | 默认值 | 可选值/参数 | 说明 | +| :--- | :--- | :--- | :--- | :--- | +| prefixCls | string | za-stepper | | 类名前缀 | +| className | string | 无 | | 追加类名 | +| theme | string | primary | 'default', 'primary', 'info', 'success', 'warning', 'error' | 主题 | +| shape | string | 无 | 'radius', 'circle' | 形状 | +| value | string | 无 | | 值 | +| defaultValue | string | 无 | | 初始值 | +| disabled | bool | false | | 是否禁用 | +| min | number | 无 | | 最小值 | +| max | number | 无 | | 最大值 | +| step | number | 1 | | 步长 | +| onChange | func | noop | \(value: number\) | 值变化时触发的回调函数 | + + + + diff --git a/docs/zh-cn/components/Switch.md b/docs/zh-cn/components/Switch.md new file mode 100644 index 000000000..741d296d3 --- /dev/null +++ b/docs/zh-cn/components/Switch.md @@ -0,0 +1,50 @@ +# 开关 Switch + +[demo页面](https://zhongantecheng.github.io/zarm/#/switch) + +### 引入 + +```js +import { Switch } from 'zarm'; +``` + +### 代码演示 + +#### 基本用法 + +###### 普通 +```jsx + { + this.setState({ value }); + }} + /> +``` + +###### 设置默认值(开启) +```jsx + +``` + +###### 禁用状态 +```jsx + +``` + + +### API + +| 属性 | 类型 | 默认值 | 可选值/参数 | 说明 | +| :--- | :--- | :--- | :--- | :--- | +| prefixCls | string | za-switch | | 类名前缀 | +| className | string | 无 | | 追加类名 | +| theme | string | primary | 'default', 'primary', 'info', 'success', 'warning', 'error' | 主题 | +| checked | bool | false | | 值 | +| defaultChecked | bool | false | | 初始值 | +| disabled | bool | false | | 是否禁用 | +| onChange | func | noop | \(value: bool\) | 值变化时触发的回调函数 | + + + + diff --git a/docs/zh-cn/components/Uploader.md b/docs/zh-cn/components/Uploader.md new file mode 100644 index 000000000..af5f83be8 --- /dev/null +++ b/docs/zh-cn/components/Uploader.md @@ -0,0 +1,63 @@ +# 上传组件 Uploader + +[demo页面](https://zhongantecheng.github.io/zarm/#/uploader) + +### 引入 + +```js +import { Uploader } from 'zarm'; +``` + +### 代码演示 + +#### 基本用法 + +###### 普通 +```jsx + { + console.log(file); + }}> + 选择文件 + +``` + +###### 设置允许上传的附件格式 +```jsx + + 选择文件 + +``` + +###### 允许多选 +```jsx +选择文件 +``` + +###### 选择前的触发事件 +```jsx + alert('执行 onBeforeSelect 方法')}>选择文件 +``` + +###### 禁用状态 +```jsx +选择文件 +``` + + +### API + +| 属性 | 类型 | 默认值 | 可选值/参数 | 说明 | +| :--- | :--- | :--- | :--- | :--- | +| prefixCls | string | za-uploader | | 类名前缀 | +| className | string | 无 | | 追加类名 | +| accept | string | 无 | | 允许上传的附件格式 | +| multiple | bool | false | | 是否多选 | +| capture | string | 无 | 照相机`camera`, 摄像机`camcorder`, 录音`microphone`| 唤起的原生应用 | +| disabled | bool | false | | 是否禁用 | +| onBeforeSelect | func | noop | | 选择前触发的事件 | +| onChange | func | noop | \(value: bool\) | 值变化时触发的回调函数 | + + + + diff --git a/examples/pages/ActionSheetPage.jsx b/examples/pages/ActionSheetPage.jsx index 9dd620581..d8815444b 100644 --- a/examples/pages/ActionSheetPage.jsx +++ b/examples/pages/ActionSheetPage.jsx @@ -39,7 +39,7 @@ class Page extends Component { this.toggle('visible2')}>开启 - }>无取消操作 + }>带取消操作 @@ -55,13 +55,7 @@ class Page extends Component { text: '操作二', onClick: () => console.log('点击操作二'), }, - { - theme: 'error', - text: '操作三', - onClick: () => console.log('点击操作三'), - }, ]} - onCancel={() => this.toggle('visible1')} /> console.log('点击操作二'), }, + { + theme: 'error', + text: '操作三', + onClick: () => console.log('点击操作三'), + }, ]} + onCancel={() => this.toggle('visible2')} />