Created by elly on 2017/4/8.
function getMatchData(value, matchCase, data, strict) {
    var output = [];
    value = matchCase ? value : ('' + value).toLowerCase();
    for (var i = 0; i < data.length; i++) {
        var item = data[i];
        var label = matchCase ? item.label : ('' + item.label).toLowerCase();
        if (!strict && ~label.indexOf(value)) {
            output.push((0, _util.extend)({}, item));
        } else if (strict && label === value) {
            output.push((0, _util.extend)({}, item));
        }
    }
    return output;
}