12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <template>
- <van-action-sheet
- :show="show"
- :actions="actions"
- cancel-text="取消"
- :close-on-click-overlay="true"
- @select="onSelect"
- @close="onCancel"
- @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: '分享好友',
- 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>
|