Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

vitarn/riot-weui

Repository files navigation

riot-weui

weui for riot

Action Sheet

weui-action-sheet

opts:

  • show: Control if action sheet opening.
  • onclose: Event fire on action sheet closed.

weui-action-sheet-cell

pay attention parent.

<main>
    <weui-action-sheet show={ isShow }
        onclose={ close }>
        <weui-action-sheet-cell onclick={ parent.clickmenu }>
            <b>菜单项</b>
        </weui-action-sheet-cell>
    </weui-action-sheet>

    <script type="babel">
    this.isShow = true
    this.close = e => console.log('close')
    this.clickmenu = e => console.log('click')
    </script>
</main>