fix(number-fields): избегаем потери точности длинных чисел
- number-поля теперь рендерятся как text + inputMode=numeric, чтобы браузер не округлял значения через input type=number - пробелы при вставке в number-поля удаляются - бэкенд нормализует значения number-полей в строку перед сохранением - добавлен хелпер normalizeFieldValueForStorage Closes: искажение расчётного счёта и других длинных числовых полей
This commit is contained in:
37
attached_assets/1_module_1767958951103.json
Normal file
37
attached_assets/1_module_1767958951103.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"type": "1",
|
||||
"label": "гугля",
|
||||
"config": {
|
||||
"title": "Google Таблица",
|
||||
"hideTitle": true,
|
||||
"componentType": "embed",
|
||||
"embedFullHeight": true,
|
||||
"embedStyle": {
|
||||
"margin": "0",
|
||||
"padding": "0",
|
||||
"border": "none",
|
||||
"width": "100%",
|
||||
"height": "100%"
|
||||
},
|
||||
"containerStyle": {
|
||||
"margin": "0",
|
||||
"padding": "0",
|
||||
"overflow": "hidden"
|
||||
}
|
||||
},
|
||||
"inputSchema": [
|
||||
{
|
||||
"name": "embedUrl",
|
||||
"type": "url",
|
||||
"label": "URL таблицы",
|
||||
"required": true,
|
||||
"placeholder": "https://docs.google.com/spreadsheets/d/..."
|
||||
},
|
||||
{
|
||||
"name": "embedHeight",
|
||||
"type": "number",
|
||||
"label": "Высота (px)",
|
||||
"default": 500
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user