deguodaigou/utils/dist/tree-select/index.wxs
2019-12-14 09:20:48 +08:00

13 lines
259 B
XML

/* eslint-disable */
var array = require('../wxs/array.wxs');
function isActive (activeList, itemId) {
if (array.isArray(activeList)) {
return activeList.indexOf(itemId) > -1;
}
return activeList === itemId;
}
module.exports.isActive = isActive;