Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return []
},
process(value) {
if (value && isArray(value) && value.length !== 0) {
return JSON.stringify(value)
}
return ''
},
templates: {
chip() {
return '<div data-value="{option.value}" class="{classes.CHIP}">{option.label}<i class="{classes.CHIPUNSELECT}"></i></div>'
}
}
})
export const translations = deepMerge(Select.I18N.translations, {
en: {
reachMaxText: 'You can only select {max} items'
},
zh: {
reachMaxText: '最多只能选择 {max} 项'
}
})
export const dependencies = ['select']