sealday
ede7ead8b1
Co-authored-by: sealday <sealday@gmail.com> Reviewed-on: daoyoucloud/tachybase#1045
19 lines
357 B
TypeScript
19 lines
357 B
TypeScript
import { faker } from '@faker-js/faker';
|
|
|
|
export const number = {
|
|
options: () => ({
|
|
type: 'double',
|
|
// name,
|
|
uiSchema: {
|
|
type: 'number',
|
|
// title,
|
|
'x-component': 'InputNumber',
|
|
'x-component-props': {
|
|
stringMode: true,
|
|
step: '1',
|
|
},
|
|
},
|
|
}),
|
|
mock: () => faker.number.float({ max: 1000 }),
|
|
};
|