@visns-studio/visns-components 3.1.14 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/crm/Field.jsx +19 -0
- package/package.json +1 -1
package/components/crm/Field.jsx
CHANGED
|
@@ -239,6 +239,7 @@ function Field({
|
|
|
239
239
|
'plainrelation',
|
|
240
240
|
'plainrelationarray',
|
|
241
241
|
'plaintext',
|
|
242
|
+
'plaintextheading',
|
|
242
243
|
'richeditor',
|
|
243
244
|
'time',
|
|
244
245
|
].includes(settings.type)
|
|
@@ -415,6 +416,23 @@ function Field({
|
|
|
415
416
|
{inputValue && inputValue !== 'null' ? inputValue : ''}
|
|
416
417
|
</div>
|
|
417
418
|
);
|
|
419
|
+
case 'plaintextheading':
|
|
420
|
+
return (
|
|
421
|
+
<div
|
|
422
|
+
className="fi__div"
|
|
423
|
+
style={
|
|
424
|
+
settings.height
|
|
425
|
+
? {
|
|
426
|
+
height: settings.height,
|
|
427
|
+
}
|
|
428
|
+
: {}
|
|
429
|
+
}
|
|
430
|
+
>
|
|
431
|
+
{inputValue && inputValue !== 'null'
|
|
432
|
+
? `<h2>${inputValue}</h2>`
|
|
433
|
+
: ''}
|
|
434
|
+
</div>
|
|
435
|
+
);
|
|
418
436
|
case 'plainrelation':
|
|
419
437
|
return (
|
|
420
438
|
<div
|
|
@@ -766,6 +784,7 @@ function Field({
|
|
|
766
784
|
'plainrelation',
|
|
767
785
|
'plainrelationarray',
|
|
768
786
|
'plaintext',
|
|
787
|
+
'plaintextheading',
|
|
769
788
|
'richeditor',
|
|
770
789
|
'time',
|
|
771
790
|
'toggle',
|
package/package.json
CHANGED