iglooform 2.4.17 → 2.4.18
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/es/upload-photo/index.js
CHANGED
|
@@ -123,7 +123,9 @@ var UploadPhoto = function UploadPhoto(props) {
|
|
|
123
123
|
setFieldError = props.setFieldError,
|
|
124
124
|
className = props.className,
|
|
125
125
|
id = props.id,
|
|
126
|
-
validateField = props.validateField
|
|
126
|
+
validateField = props.validateField,
|
|
127
|
+
_props$capture = props.capture,
|
|
128
|
+
capture = _props$capture === void 0 ? true : _props$capture;
|
|
127
129
|
|
|
128
130
|
var _useContext2 = useContext(LocaleContext),
|
|
129
131
|
formatMessage = _useContext2.formatMessage;
|
|
@@ -708,7 +710,7 @@ var UploadPhoto = function UploadPhoto(props) {
|
|
|
708
710
|
accept: "image/*,video/*,application/pdf",
|
|
709
711
|
value: [],
|
|
710
712
|
multiple: true,
|
|
711
|
-
capture:
|
|
713
|
+
capture: capture
|
|
712
714
|
}, void 0), _jsxs(_Space, {
|
|
713
715
|
className: "".concat(prefix, "-content"),
|
|
714
716
|
size: [16, 16],
|
|
@@ -156,7 +156,9 @@ var UploadPhoto = function UploadPhoto(props) {
|
|
|
156
156
|
setFieldError = props.setFieldError,
|
|
157
157
|
className = props.className,
|
|
158
158
|
id = props.id,
|
|
159
|
-
validateField = props.validateField
|
|
159
|
+
validateField = props.validateField,
|
|
160
|
+
_props$capture = props.capture,
|
|
161
|
+
capture = _props$capture === void 0 ? true : _props$capture;
|
|
160
162
|
|
|
161
163
|
var _useContext2 = (0, _react.useContext)(_locale.LocaleContext),
|
|
162
164
|
formatMessage = _useContext2.formatMessage;
|
|
@@ -742,7 +744,7 @@ var UploadPhoto = function UploadPhoto(props) {
|
|
|
742
744
|
accept: "image/*,video/*,application/pdf",
|
|
743
745
|
value: [],
|
|
744
746
|
multiple: true,
|
|
745
|
-
capture:
|
|
747
|
+
capture: capture
|
|
746
748
|
}, void 0), (0, _jsxRuntime.jsxs)(_space.default, {
|
|
747
749
|
className: "".concat(prefix, "-content"),
|
|
748
750
|
size: [16, 16],
|