123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <template>
- <van-action-sheet
- :show="show"
- :actions="actions"
- cancel-text="取消"
- :close-on-click-overlay="true"
- @select="onSelect"
- @cancel="onCancel"
- />
- </template>
- <script>
- import VanActionSheet from '@/wxcomponents/vant/action-sheet/index'
-
- export default {
- options: {
- styleIsolation: 'shared'
- },
- components: {
- VanActionSheet
- },
- props: {
- shareInfo: null,
- show: Boolean
- },
- computed: {
- },
- watch: {
- },
- data() {
- return {
- actions: [
-
- // {
- // name: '生成海报',
- // value: 'download'
- // },
-
- {
- name: '分享好友',
- openType: 'share'
- }]
- }
- },
- created() {},
- mounted() {},
- methods: {
- onSelect(e) {
- if (e.value === 'download') {
- this.showAlertDialog('功能未上线')
- }
- },
- onCancel(e) {
- this.$emit('update:show', false)
- }
- }
- }
- </script>
- <style lang="scss">
- </style>
|