2019-12-23 14:13:27 +08:00
|
|
|
/* 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;
|