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.
@@ -16,6 +16,7 @@ export interface Props extends IglooComponentProps {
16
16
  className?: any;
17
17
  id?: string;
18
18
  bizKey?: string;
19
+ capture?: boolean;
19
20
  }
20
21
  export declare type Sample = {
21
22
  src: string;
@@ -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: true
713
+ capture: capture
712
714
  }, void 0), _jsxs(_Space, {
713
715
  className: "".concat(prefix, "-content"),
714
716
  size: [16, 16],
@@ -16,6 +16,7 @@ export interface Props extends IglooComponentProps {
16
16
  className?: any;
17
17
  id?: string;
18
18
  bizKey?: string;
19
+ capture?: boolean;
19
20
  }
20
21
  export declare type Sample = {
21
22
  src: string;
@@ -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: true
747
+ capture: capture
746
748
  }, void 0), (0, _jsxRuntime.jsxs)(_space.default, {
747
749
  className: "".concat(prefix, "-content"),
748
750
  size: [16, 16],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iglooform",
3
- "version": "2.4.17",
3
+ "version": "2.4.18",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "build-dev": "dumi build",