{{ item.type !== 'filter' ? displayValues[index] : item.label }}
{{ p.label }}
{{ displayValues[index] && displayValues[index][pIndex] }}
{{ g.label }} {{ g.label }}
{{ cancelText }} {{ confirmText }}
{{ cancelText }} {{ confirmText }}
module.exports = { getOptions: function(options) { return options.map(function(option) { if (option.constructor === 'String') { return { title: option, value: option } } return { title: option.label, value: option.value } }) }, getChecked: function(values, value) { if (!values || !values.length) return false if (values.constructor === 'Array') { return values.indexOf(value) !== -1 } return values === value }, getItemCls: function(prefixCls, item) { var itemCls = [] if (item.type !== 'text') { itemCls.push(prefixCls + '__item--has-icon') } if (item.checked) { itemCls.push(prefixCls + '__item--checked') } return itemCls.join(' ') }, getIconCls: function(prefixCls, icon) { var iconCls = [prefixCls + '__icon--' + icon.type] if (icon.type === 'sort') { if (icon.sort === 1) { iconCls.push(prefixCls + '__icon--sort-asc') } else if (icon.sort === -1) { iconCls.push(prefixCls + '__icon--sort-desc') } } return iconCls.join(' ') }, }