Единый интерфейс элементов
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Input } from '@/component/ui/input'
|
||||
import { ElementDefinition } from '@/lib/element-registry'
|
||||
import { ElementDefinition } from '@/entitiy/element/model/interface'
|
||||
import { Hash } from 'lucide-react'
|
||||
|
||||
interface NumberConfig {
|
||||
@@ -12,11 +12,13 @@ export const numberDefinition: ElementDefinition<NumberConfig, number> = {
|
||||
type: 'number',
|
||||
label: 'Число',
|
||||
icon: <Hash className="h-4 w-4" />,
|
||||
version: 1,
|
||||
defaultConfig: {
|
||||
placeholder: '',
|
||||
required: false,
|
||||
targetCells: [],
|
||||
},
|
||||
mapToCells: config => config.targetCells || [],
|
||||
Editor: () => (
|
||||
<div className="text-sm text-gray-600">
|
||||
Дополнительные настройки отсутствуют
|
||||
|
||||
Reference in New Issue
Block a user