<template>
  <view>
    <u-action-sheet :actions="actionsOptions" :show="show" cancelText="取消" safeAreaInsetBottom round="32rpx" @close="onActionSheetClose" @select="onActionSheetSelect" />
  </view>
</template>

<script>
export default {
  name: 'UploadActionSheet',
  props: {
    actionsOptions: Array,
    success: {
      type: Function,
      default: (item) => {},
    },
  },
  data() {
    return {
      show: false,
      // actionsOptions,
    }
  },
  methods: {
    async onActionSheetClose() {
      this.show = false
    },

    async onActionSheetSelect(item) {
      this.success(item)
    },
  },
}
</script>

<style scoped lang="scss">
@import 'UploadActionSheet.scss';
</style>
