16 lines
294 B
XML
16 lines
294 B
XML
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,
|
|
};
|