doc(action-sheet): update sp event handler

This commit is contained in:
xuxiaoyan 2018-12-12 20:46:15 +08:00
parent 43d0b99cb8
commit 6852738c8b
2 changed files with 16 additions and 8 deletions

View File

@ -59,10 +59,14 @@ Static create a global ActionSheet, and return instance. You can change instance
|value|display actionsheet or not|Boolean|`true`|-|
|title|title of actionsheet|String|-|-|
|options|options of actionsheet|Array<{text, value}>| [] |-|
|default-index|default selected index|Boolean|0|-|
|invalid-index|invalid index|Number| -1|-|
|cancel-text|cancel text|String|-|-|
|max-height|the maximum height of actionsheet area|Number|`400`|unit `px`|
|defaultIndex|default selected index|Boolean|0|-|
|invalidIndex|invalid index|Number| -1|-|
|cancelText|cancel text|String|-|-|
|maxHeight|the maximum height of actionsheet area|Number|`400`|unit `px`|
|onShow|actionsheet show callback|Function|-|-|
|onHide|actionsheet hide callback|Function|-|-|
|onCancel|cancel selection callback|Function|-|-|
|onSelected|selection callback|Function(item: {text, value})|-|-|
##### closeAll()
Close all global ActionSheets

View File

@ -56,10 +56,14 @@ Vue.component(ActionSheet.name, ActionSheet)
|value|面板是否立即可见|Boolean| `true`|-|
|title|面板标题|String|-|-|
|options|面板选项| Array<{text, value}>| `[]`|-|
|default-index|默认选中项| Boolean| `0`|-|
|invalid-index|禁用选择项索引 |Number|`-1`|-|
|cancel-text|取消按钮文案 |String |-|-|
|max-height|面板最高高度, 超出后可滚动|Number|400|单位`px`|
|defaultIndex|默认选中项| Boolean| `0`|-|
|invalidIndex|禁用选择项索引 |Number|`-1`|-|
|cancelText|取消按钮文案 |String |-|-|
|maxHeight|面板最高高度, 超出后可滚动|Number|400|单位`px`|
|onShow|面板展示回调|Function|-|-|
|onHide|面板隐藏回调|Function|-|-|
|onCancel|取消选择回调|Function|-|-|
|onSelected|选择回调|Function(item: {text, value})|-|-|
##### closeAll()
关闭所有全局操作菜单