Skip to content

Commit bf383d2

Browse files
expose autoIncrement from OptionControl
1 parent 64dc302 commit bf383d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/packages/lowcoder/src/comps/controls/optionsControl.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ export function optionsControl<T extends OptionsControlType>(
359359
uniqField?: keyof ConstructorToView<T>;
360360
// manual mode list title
361361
title?: string;
362+
autoIncField?: keyof PickNumberFields<ConstructorToView<T>>;
362363
}
363364
) {
364365
type OptionViewType = ConstructorToView<T>;
@@ -369,6 +370,7 @@ export function optionsControl<T extends OptionsControlType>(
369370
manual: manualOptionsControl(VariantComp, {
370371
initOptions: config.initOptions,
371372
uniqField: config.uniqField,
373+
autoIncField: config.autoIncField,
372374
}),
373375
mapData: mapOptionsControl(VariantComp, config.uniqField),
374376
},

0 commit comments

Comments
 (0)