@visns-studio/visns-components 3.8.9 → 3.8.11
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 +13 -2
- package/components/crm/Form.jsx +1 -0
- package/package.json +1 -1
package/components/crm/Field.jsx
CHANGED
|
@@ -928,17 +928,28 @@ function Field({
|
|
|
928
928
|
cursor: 'pointer',
|
|
929
929
|
}}
|
|
930
930
|
>
|
|
931
|
-
{inputValue
|
|
931
|
+
{console.info(inputValue)}
|
|
932
|
+
{inputValue?.filename
|
|
933
|
+
? 'Replace File...'
|
|
934
|
+
: 'Choose file...'}
|
|
932
935
|
</label>
|
|
933
936
|
<input
|
|
934
937
|
id={settings.id}
|
|
938
|
+
data-name={settings.id}
|
|
939
|
+
name={settings.id}
|
|
935
940
|
type="file"
|
|
936
941
|
className={inputClass[settings.id]} // Ensure inputClass is defined or passed
|
|
937
942
|
onChange={onChange}
|
|
938
943
|
style={{ display: 'none' }}
|
|
939
944
|
/>
|
|
940
945
|
<span style={{ marginLeft: '10px' }}>
|
|
941
|
-
{inputValue
|
|
946
|
+
{inputValue
|
|
947
|
+
? inputValue.filename
|
|
948
|
+
? inputValue.filename
|
|
949
|
+
: inputValue.name
|
|
950
|
+
? inputValue.name
|
|
951
|
+
: ''
|
|
952
|
+
: ''}
|
|
942
953
|
</span>
|
|
943
954
|
{inputValue &&
|
|
944
955
|
inputValue.key &&
|
package/components/crm/Form.jsx
CHANGED
package/package.json
CHANGED