mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-30 11:47:55 +01:00
feat(InputMenu/RadioGroup/Select/SelectMenu): handle labelKey and use get to support dot notation
This commit is contained in:
@@ -20,6 +20,9 @@ describe('RadioGroup', () => {
|
||||
it.each([
|
||||
['with items', { props }],
|
||||
['with defaultValue', { props: { ...props, defaultValue: '1' } }],
|
||||
['with valueKey', { props: { ...props, valueKey: 'label' } }],
|
||||
['with labelKey', { props: { ...props, labelKey: 'value' } }],
|
||||
['with descriptionKey', { props: { ...props, descriptionKey: 'value' } }],
|
||||
['with disabled', { props: { ...props, disabled: true } }],
|
||||
['with description', { props: { items: items.map((opt, count) => ({ ...opt, description: `Description ${count}` })) } }],
|
||||
['with required', { props: { ...props, legend: 'Legend', required: true } }],
|
||||
|
||||
Reference in New Issue
Block a user