Files

16 lines
294 B
Plaintext
Raw Permalink Normal View History

2023-08-30 17:27:21 +08:00
var es6 = require("./es6.wxs");
var getDictLabel = function (value, options) {
var option = es6.find(options, function (el) {
return el.value === value;
});
if (option) {
return option.label;
} else {
return null;
}
};
module.exports = {
getDictLabel: getDictLabel,
};