mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
25 lines
604 B
JavaScript
25 lines
604 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var component_1 = require("../common/component");
|
|
component_1.VantComponent({
|
|
relation: {
|
|
type: 'ancestor',
|
|
name: 'badge-group'
|
|
},
|
|
props: {
|
|
info: null,
|
|
title: String
|
|
},
|
|
methods: {
|
|
onClick: function () {
|
|
var group = this.getRelationNodes('../badge-group/index')[0];
|
|
if (group) {
|
|
group.setActive(this);
|
|
}
|
|
},
|
|
setActive: function (active) {
|
|
this.set({ active: active });
|
|
}
|
|
}
|
|
});
|