You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
884 B
28 lines
884 B
2 years ago
|
"use strict";
|
||
|
var __assign = (this && this.__assign) || function () {
|
||
|
__assign = Object.assign || function(t) {
|
||
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||
|
s = arguments[i];
|
||
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
||
|
t[p] = s[p];
|
||
|
}
|
||
|
return t;
|
||
|
};
|
||
|
return __assign.apply(this, arguments);
|
||
|
};
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
var component_1 = require("../common/component");
|
||
|
(0, component_1.VantComponent)({
|
||
|
props: {
|
||
|
options: Array,
|
||
|
showBorder: Boolean,
|
||
|
},
|
||
|
methods: {
|
||
|
onSelect: function (event) {
|
||
|
var index = event.currentTarget.dataset.index;
|
||
|
var option = this.data.options[index];
|
||
|
this.$emit('select', __assign(__assign({}, option), { index: index }));
|
||
|
},
|
||
|
},
|
||
|
});
|