mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 18:43:42 +08:00
fix(@angular/cli): support default options for multiselect list x-prompt
This commit is contained in:
parent
02fea146b8
commit
af14769245
@ -204,7 +204,7 @@ export abstract class SchematicsCommandModule
|
||||
|
||||
return definition.validator(Object.values(values).map(({ value }) => value));
|
||||
},
|
||||
default: definition.default,
|
||||
default: definition.multiselect ? undefined : definition.default,
|
||||
choices: definition.items?.map((item) =>
|
||||
typeof item == 'string'
|
||||
? {
|
||||
@ -212,6 +212,7 @@ export abstract class SchematicsCommandModule
|
||||
value: item,
|
||||
}
|
||||
: {
|
||||
...item,
|
||||
name: item.label,
|
||||
value: item.value,
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user