第一次提交
This commit is contained in:
14
miniprogram/@vant/weapp/dist/share-sheet/options.js
vendored
Normal file
14
miniprogram/@vant/weapp/dist/share-sheet/options.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
import { VantComponent } from '../common/component';
|
||||
VantComponent({
|
||||
props: {
|
||||
options: Array,
|
||||
showBorder: Boolean,
|
||||
},
|
||||
methods: {
|
||||
onSelect(event) {
|
||||
const { index } = event.currentTarget.dataset;
|
||||
const option = this.data.options[index];
|
||||
this.$emit('select', Object.assign(Object.assign({}, option), { index }));
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user