iglooform 2.4.9 → 2.4.13
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/admin-upload/index.d.ts +2 -0
- package/es/admin-upload/index.js +25 -11
- package/es/admin-upload/job-list.js +2 -2
- package/es/alert-message/index.js +2 -2
- package/es/amount/index.js +2 -2
- package/es/back-top/index.js +2 -2
- package/es/button/index.js +2 -2
- package/es/button/style/index.less +23 -19
- package/es/card-detail/card-item.js +1 -1
- package/es/card-detail/card.js +2 -2
- package/es/card-detail/utils.js +3 -3
- package/es/checkbox/index.js +2 -2
- package/es/claim-list/index.js +2 -2
- package/es/confirmation/index.js +2 -2
- package/es/date-picker/buddhist.js +2 -2
- package/es/date-picker/index.js +2 -2
- package/es/declaration/index.js +2 -2
- package/es/detail-panel/index.js +2 -2
- package/es/example/index.js +6 -7
- package/es/filter/index.d.ts +1 -0
- package/es/filter/index.js +10 -6
- package/es/form/addable-section/index.d.ts +19 -0
- package/es/form/addable-section/index.js +211 -0
- package/es/form/addable-section/style/index.d.ts +1 -0
- package/es/form/addable-section/style/index.js +1 -0
- package/es/form/addable-section/style/index.less +22 -0
- package/es/form/divider/index.js +2 -2
- package/es/form/element/index.js +30 -11
- package/es/form/element/style/index.less +5 -0
- package/es/form/index.js +7 -5
- package/es/form/login/index.js +1 -1
- package/es/form/page/index.js +1 -1
- package/es/form/page/style/index.less +1 -1
- package/es/form/pages/index.js +2 -3
- package/es/form/pages/style/index.less +3 -1
- package/es/form/render/index.js +1 -1
- package/es/form/section/index.js +4 -4
- package/es/form/step/index.js +1 -1
- package/es/form/steps/index.js +2 -3
- package/es/{form/context.d.ts → form-context.d.ts} +1 -0
- package/es/{form/context.js → form-context.js} +0 -0
- package/es/free-form/addable-section/index.d.ts +18 -0
- package/es/free-form/addable-section/index.js +286 -0
- package/es/free-form/addable-section/style/index.d.ts +1 -0
- package/es/free-form/addable-section/style/index.js +1 -0
- package/es/free-form/addable-section/style/index.less +22 -0
- package/es/free-form/element/index.js +22 -14
- package/es/free-form/element/style/index.less +8 -2
- package/es/free-form/index.d.ts +5 -1
- package/es/free-form/index.js +8 -5
- package/es/free-form/page/index.js +8 -7
- package/es/free-form/page/style/index.less +3 -1
- package/es/free-form/pages/index.js +2 -2
- package/es/free-form/section/index.js +10 -9
- package/es/free-form/section/style/index.less +4 -0
- package/es/free-form/step/index.js +7 -6
- package/es/free-form/steps/index.js +2 -2
- package/es/global-message/index.js +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/input/amount.js +2 -2
- package/es/input/credit-card.js +2 -2
- package/es/input/email.js +2 -2
- package/es/input/expiry-date.js +2 -2
- package/es/input/input-number.js +2 -2
- package/es/input/input.js +2 -2
- package/es/input/otp.js +2 -2
- package/es/input/password.js +2 -2
- package/es/input/style/index.less +9 -1
- package/es/input/text-area.js +2 -2
- package/es/layout/header.js +3 -3
- package/es/layout/index.js +2 -2
- package/es/locale/en-US/messages.json +2 -0
- package/es/locale/id-ID/messages.json +2 -0
- package/es/locale/locale-provider.js +2 -2
- package/es/locale/th-TH/messages.json +2 -0
- package/es/locale/vi-VN/messages.json +2 -0
- package/es/locale/zh-CN/messages.json +2 -0
- package/es/media/preview.js +2 -2
- package/es/mobile-insurer-detail/index.js +2 -2
- package/es/mobile-insurer-list/index.js +2 -2
- package/es/modal/index.d.ts +4 -3
- package/es/modal/index.js +6 -3
- package/es/modal/style/index.less +24 -5
- package/es/policy-list/index.js +2 -2
- package/es/policy-list/policy-card.js +2 -2
- package/es/radio/index.js +2 -2
- package/es/select/attached-select.js +2 -2
- package/es/select/select.js +2 -2
- package/es/select/style/index.less +1 -1
- package/es/status-box/index.js +2 -2
- package/es/table/index.js +3 -3
- package/es/tabs/index.js +2 -2
- package/es/tabs/style/index.less +1 -1
- package/es/types.d.ts +5 -2
- package/es/upload/index.d.ts +2 -1
- package/es/upload/index.js +121 -77
- package/es/upload-photo/index.d.ts +2 -1
- package/es/upload-photo/index.js +123 -79
- package/es/utils/form-utils.d.ts +1 -0
- package/es/utils/form-utils.js +34 -12
- package/lib/admin-upload/index.d.ts +2 -0
- package/lib/admin-upload/index.js +25 -11
- package/lib/admin-upload/job-list.js +2 -2
- package/lib/alert-message/index.js +2 -2
- package/lib/amount/index.js +2 -2
- package/lib/back-top/index.js +2 -2
- package/lib/button/index.js +2 -2
- package/lib/button/style/index.less +23 -19
- package/lib/card-detail/card-item.js +1 -1
- package/lib/card-detail/card.js +2 -2
- package/lib/card-detail/utils.js +3 -3
- package/lib/checkbox/index.js +2 -2
- package/lib/claim-list/index.js +2 -2
- package/lib/confirmation/index.js +2 -2
- package/lib/date-picker/buddhist.js +2 -2
- package/lib/date-picker/index.js +2 -2
- package/lib/declaration/index.js +2 -2
- package/lib/detail-panel/index.js +2 -2
- package/lib/example/index.js +7 -8
- package/lib/filter/index.d.ts +1 -0
- package/lib/filter/index.js +10 -6
- package/lib/form/addable-section/index.d.ts +19 -0
- package/lib/form/addable-section/index.js +232 -0
- package/lib/form/addable-section/style/index.d.ts +1 -0
- package/lib/form/addable-section/style/index.js +3 -0
- package/lib/form/addable-section/style/index.less +22 -0
- package/lib/form/divider/index.js +2 -2
- package/lib/form/element/index.js +32 -12
- package/lib/form/element/style/index.less +5 -0
- package/lib/form/elements.js +1 -1
- package/lib/form/index.js +8 -6
- package/lib/form/login/index.js +2 -2
- package/lib/form/page/index.js +2 -2
- package/lib/form/page/style/index.less +1 -1
- package/lib/form/pages/index.js +3 -4
- package/lib/form/pages/style/index.less +3 -1
- package/lib/form/render/index.js +2 -2
- package/lib/form/section/index.js +5 -5
- package/lib/form/step/index.js +2 -2
- package/lib/form/steps/index.js +3 -4
- package/lib/{form/context.d.ts → form-context.d.ts} +1 -0
- package/lib/{form/context.js → form-context.js} +0 -0
- package/lib/free-form/addable-section/index.d.ts +18 -0
- package/lib/free-form/addable-section/index.js +306 -0
- package/lib/free-form/addable-section/style/index.d.ts +1 -0
- package/lib/free-form/addable-section/style/index.js +3 -0
- package/lib/free-form/addable-section/style/index.less +22 -0
- package/lib/free-form/element/index.js +23 -15
- package/lib/free-form/element/style/index.less +8 -2
- package/lib/free-form/index.d.ts +5 -1
- package/lib/free-form/index.js +9 -6
- package/lib/free-form/page/index.js +9 -8
- package/lib/free-form/page/style/index.less +3 -1
- package/lib/free-form/pages/index.js +2 -2
- package/lib/free-form/section/index.js +11 -10
- package/lib/free-form/section/style/index.less +4 -0
- package/lib/free-form/step/index.js +8 -7
- package/lib/free-form/steps/index.js +3 -3
- package/lib/global-message/index.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +11 -2
- package/lib/input/amount.js +2 -2
- package/lib/input/credit-card.js +2 -2
- package/lib/input/email.js +2 -2
- package/lib/input/expiry-date.js +2 -2
- package/lib/input/input-number.js +2 -2
- package/lib/input/input.js +2 -2
- package/lib/input/otp.js +2 -2
- package/lib/input/password.js +2 -2
- package/lib/input/style/index.less +9 -1
- package/lib/input/text-area.js +2 -2
- package/lib/layout/header.js +3 -3
- package/lib/layout/index.js +2 -2
- package/lib/locale/en-US/messages.json +2 -0
- package/lib/locale/id-ID/messages.json +2 -0
- package/lib/locale/locale-provider.js +2 -2
- package/lib/locale/th-TH/messages.json +2 -0
- package/lib/locale/vi-VN/messages.json +2 -0
- package/lib/locale/zh-CN/messages.json +2 -0
- package/lib/media/preview.js +2 -2
- package/lib/mobile-insurer-detail/index.js +2 -2
- package/lib/mobile-insurer-list/index.js +2 -2
- package/lib/modal/index.d.ts +4 -3
- package/lib/modal/index.js +6 -3
- package/lib/modal/style/index.less +24 -5
- package/lib/policy-list/index.js +2 -2
- package/lib/policy-list/policy-card.js +2 -2
- package/lib/radio/index.js +2 -2
- package/lib/select/attached-select.js +2 -2
- package/lib/select/select.js +2 -2
- package/lib/select/style/index.less +1 -1
- package/lib/status-box/index.js +2 -2
- package/lib/table/index.js +3 -3
- package/lib/tabs/index.js +2 -2
- package/lib/tabs/style/index.less +1 -1
- package/lib/types.d.ts +5 -2
- package/lib/upload/index.d.ts +2 -1
- package/lib/upload/index.js +122 -77
- package/lib/upload-photo/index.d.ts +2 -1
- package/lib/upload-photo/index.js +124 -79
- package/lib/utils/form-utils.d.ts +1 -0
- package/lib/utils/form-utils.js +33 -12
- package/package.json +1 -1
- package/es/free-form/context.d.ts +0 -19
- package/es/free-form/context.js +0 -7
- package/lib/free-form/context.d.ts +0 -19
- package/lib/free-form/context.js +0 -19
|
@@ -2,9 +2,9 @@ import "antd/es/select/style";
|
|
|
2
2
|
import _Select from "antd/es/select";
|
|
3
3
|
var _excluded = ["options", "getOptions", "value", "className", "placeholder", "onDropdownVisibleChange", "children", "showSearch", "filterOption", "optionFilterProp", "multiple", "clearWhenOptionsUpdated"];
|
|
4
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
|
|
9
9
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
10
|
|
package/es/select/select.js
CHANGED
|
@@ -2,9 +2,9 @@ import "antd/es/select/style";
|
|
|
2
2
|
import _Select from "antd/es/select";
|
|
3
3
|
var _excluded = ["options", "value", "className", "placeholder", "children", "onDropdownVisibleChange", "showSearch", "filterOption", "optionFilterProp"];
|
|
4
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
|
|
9
9
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
10
|
|
package/es/status-box/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
2
|
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
package/es/table/index.js
CHANGED
|
@@ -32,13 +32,13 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
32
32
|
|
|
33
33
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
34
34
|
|
|
35
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
35
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
36
36
|
|
|
37
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
37
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
38
38
|
|
|
39
39
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
40
40
|
|
|
41
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
41
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
42
42
|
|
|
43
43
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
44
44
|
import React from 'react';
|
package/es/tabs/index.js
CHANGED
|
@@ -2,9 +2,9 @@ import "antd/es/tabs/style";
|
|
|
2
2
|
import _Tabs from "antd/es/tabs";
|
|
3
3
|
var _excluded = ["className"];
|
|
4
4
|
|
|
5
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
|
|
7
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8
8
|
|
|
9
9
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
10
|
|
package/es/tabs/style/index.less
CHANGED
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
transition: 0s !important;
|
|
80
80
|
border-radius: 0px !important;
|
|
81
81
|
border: 1px solid #eeeeee !important;
|
|
82
|
+
font-weight: 500;
|
|
82
83
|
&:hover {
|
|
83
84
|
color: @primary-color;
|
|
84
85
|
}
|
|
@@ -86,7 +87,6 @@
|
|
|
86
87
|
.ant-tabs-tab-active {
|
|
87
88
|
border: 0px !important;
|
|
88
89
|
background-color: white !important;
|
|
89
|
-
font-weight: 500;
|
|
90
90
|
&::after {
|
|
91
91
|
position: absolute;
|
|
92
92
|
width: 100%;
|
package/es/types.d.ts
CHANGED
|
@@ -24,11 +24,12 @@ export interface FormBasicConfig {
|
|
|
24
24
|
showSubmitButton?: boolean;
|
|
25
25
|
getScrollContainer?: () => HTMLElement | null;
|
|
26
26
|
onFirstModified?: () => any;
|
|
27
|
+
uploadApi?: string;
|
|
27
28
|
}
|
|
28
29
|
export declare type FormItemAssert = {
|
|
29
30
|
field: NamePath;
|
|
30
|
-
value
|
|
31
|
-
operation?: 'eq' | 'ne' | 'in' | 'ni' | 'lt' | 'le' | 'gt' | 'ge' | 'co' | 'nc';
|
|
31
|
+
value?: any;
|
|
32
|
+
operation?: 'eq' | 'ne' | 'in' | 'ni' | 'lt' | 'le' | 'gt' | 'ge' | 'co' | 'nc' | 'filled';
|
|
32
33
|
};
|
|
33
34
|
export declare type FormItemCopyValue = {
|
|
34
35
|
assert: FormItemAssert;
|
|
@@ -43,6 +44,7 @@ export declare type FormItemSelectValue = {
|
|
|
43
44
|
export interface FormItemExtraConfig extends FormItemProps {
|
|
44
45
|
elements?: FormItemConfig[];
|
|
45
46
|
required?: boolean;
|
|
47
|
+
requiredAsserts?: FormItemAssert[];
|
|
46
48
|
extraLabel?: any;
|
|
47
49
|
xl?: number;
|
|
48
50
|
md?: number;
|
|
@@ -52,6 +54,7 @@ export interface FormItemExtraConfig extends FormItemProps {
|
|
|
52
54
|
phoneNumber?: number | string;
|
|
53
55
|
mergeRules?: boolean;
|
|
54
56
|
dependencies?: NamePath[];
|
|
57
|
+
antdDependencies?: NamePath[];
|
|
55
58
|
asserts?: FormItemAssert[];
|
|
56
59
|
shouldRender?: (form?: FormInstance) => boolean;
|
|
57
60
|
ignore?: boolean;
|
package/es/upload/index.d.ts
CHANGED
|
@@ -3,13 +3,14 @@ import { FC, IglooComponentProps } from '../types';
|
|
|
3
3
|
import './style/index.less';
|
|
4
4
|
export interface IglooUploadProps extends UploadProps, IglooComponentProps {
|
|
5
5
|
placeholder?: string;
|
|
6
|
-
handleUpload(file: RcFile): PromiseLike<string>;
|
|
6
|
+
handleUpload?(file: RcFile): PromiseLike<string>;
|
|
7
7
|
value?: string[];
|
|
8
8
|
onChange?: (value: any) => void;
|
|
9
9
|
limit?: number;
|
|
10
10
|
limitErrorMessage?: Function | string;
|
|
11
11
|
containerRef?: any;
|
|
12
12
|
descriptions?: any;
|
|
13
|
+
bizKey?: string;
|
|
13
14
|
}
|
|
14
15
|
declare const IglooUpload: FC<IglooUploadProps>;
|
|
15
16
|
export default IglooUpload;
|
package/es/upload/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "antd/es/upload/style";
|
|
2
2
|
import _Upload from "antd/es/upload";
|
|
3
|
-
var _excluded = ["
|
|
3
|
+
var _excluded = ["value", "limit", "limitErrorMessage", "descriptions", "onChange", "bizKey", "handleUpload", "setFieldError", "className", "validateField", "containerRef", "placeholder"];
|
|
4
4
|
|
|
5
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
5
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
6
6
|
|
|
7
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
7
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8
8
|
|
|
9
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
10
|
|
|
11
11
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
12
|
|
|
@@ -18,10 +18,6 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
|
|
|
18
18
|
|
|
19
19
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
20
20
|
|
|
21
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
22
|
-
|
|
23
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
24
|
-
|
|
25
21
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
26
22
|
|
|
27
23
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -34,6 +30,10 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
34
30
|
|
|
35
31
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
36
32
|
|
|
33
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
34
|
+
|
|
35
|
+
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
36
|
+
|
|
37
37
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
38
38
|
|
|
39
39
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -53,27 +53,72 @@ import { parseFileSize } from '../utils/tools';
|
|
|
53
53
|
import { LocaleContext } from '../locale';
|
|
54
54
|
import Preview from '../upload-preview/media';
|
|
55
55
|
import { classifyType } from '../utils/tools';
|
|
56
|
+
import FormContext from '../form-context';
|
|
56
57
|
var Dragger = _Upload.Dragger;
|
|
57
58
|
|
|
58
|
-
var IglooUpload = function IglooUpload(
|
|
59
|
-
var className = _ref.className,
|
|
60
|
-
placeholder = _ref.placeholder,
|
|
61
|
-
handleUpload = _ref.handleUpload,
|
|
62
|
-
_ref$value = _ref.value,
|
|
63
|
-
value = _ref$value === void 0 ? [] : _ref$value,
|
|
64
|
-
onChange = _ref.onChange,
|
|
65
|
-
limit = _ref.limit,
|
|
66
|
-
limitErrorMessage = _ref.limitErrorMessage,
|
|
67
|
-
containerRef = _ref.containerRef,
|
|
68
|
-
setFieldError = _ref.setFieldError,
|
|
69
|
-
descriptions = _ref.descriptions,
|
|
70
|
-
validateField = _ref.validateField,
|
|
71
|
-
rest = _objectWithoutProperties(_ref, _excluded);
|
|
72
|
-
|
|
59
|
+
var IglooUpload = function IglooUpload(props) {
|
|
73
60
|
var limitNumError = useRef();
|
|
74
61
|
var DomRef = useRef();
|
|
75
62
|
var dataUrlRef = useRef([]);
|
|
76
63
|
|
|
64
|
+
var _useContext = useContext(FormContext),
|
|
65
|
+
uploadApi = _useContext.uploadApi;
|
|
66
|
+
|
|
67
|
+
invariant(typeof props.handleUpload === 'function' || uploadApi, '"handleUpload" should be a function. Or uploadApi should be set at Form/FreeForm');
|
|
68
|
+
invariant(!uploadApi || props.bizKey, '"bizKey" should be set if Upload is used with uploadApi');
|
|
69
|
+
|
|
70
|
+
var _props$value = props.value,
|
|
71
|
+
value = _props$value === void 0 ? [] : _props$value,
|
|
72
|
+
limit = props.limit,
|
|
73
|
+
limitErrorMessage = props.limitErrorMessage,
|
|
74
|
+
descriptions = props.descriptions,
|
|
75
|
+
onChange = props.onChange,
|
|
76
|
+
bizKey = props.bizKey,
|
|
77
|
+
_props$handleUpload = props.handleUpload,
|
|
78
|
+
handleUpload = _props$handleUpload === void 0 ? /*#__PURE__*/function () {
|
|
79
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(file) {
|
|
80
|
+
var formData, response, rst;
|
|
81
|
+
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
82
|
+
while (1) {
|
|
83
|
+
switch (_context.prev = _context.next) {
|
|
84
|
+
case 0:
|
|
85
|
+
formData = new FormData();
|
|
86
|
+
formData.append('file', file);
|
|
87
|
+
formData.append('biz_key', bizKey);
|
|
88
|
+
_context.next = 5;
|
|
89
|
+
return fetch(uploadApi, {
|
|
90
|
+
method: 'post',
|
|
91
|
+
body: formData
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
case 5:
|
|
95
|
+
response = _context.sent;
|
|
96
|
+
_context.next = 8;
|
|
97
|
+
return response.json();
|
|
98
|
+
|
|
99
|
+
case 8:
|
|
100
|
+
rst = _context.sent;
|
|
101
|
+
return _context.abrupt("return", rst.url);
|
|
102
|
+
|
|
103
|
+
case 10:
|
|
104
|
+
case "end":
|
|
105
|
+
return _context.stop();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}, _callee);
|
|
109
|
+
}));
|
|
110
|
+
|
|
111
|
+
return function (_x) {
|
|
112
|
+
return _ref.apply(this, arguments);
|
|
113
|
+
};
|
|
114
|
+
}() : _props$handleUpload,
|
|
115
|
+
setFieldError = props.setFieldError,
|
|
116
|
+
className = props.className,
|
|
117
|
+
validateField = props.validateField,
|
|
118
|
+
containerRef = props.containerRef,
|
|
119
|
+
placeholder = props.placeholder,
|
|
120
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
121
|
+
|
|
77
122
|
var _useState = useState(value.map(function (url, index) {
|
|
78
123
|
return {
|
|
79
124
|
url: url,
|
|
@@ -95,7 +140,7 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
95
140
|
return;
|
|
96
141
|
}
|
|
97
142
|
|
|
98
|
-
if (!DomRef.current.contains(e.target) && limitNumError.current) {
|
|
143
|
+
if (DomRef.current && !DomRef.current.contains(e.target) && limitNumError.current) {
|
|
99
144
|
validateField && validateField();
|
|
100
145
|
limitNumError.current = undefined;
|
|
101
146
|
}
|
|
@@ -113,8 +158,8 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
113
158
|
}
|
|
114
159
|
});
|
|
115
160
|
|
|
116
|
-
var
|
|
117
|
-
formatMessage =
|
|
161
|
+
var _useContext2 = useContext(LocaleContext),
|
|
162
|
+
formatMessage = _useContext2.formatMessage;
|
|
118
163
|
|
|
119
164
|
useEffect(function () {
|
|
120
165
|
return function () {
|
|
@@ -123,22 +168,21 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
123
168
|
});
|
|
124
169
|
};
|
|
125
170
|
}, []);
|
|
126
|
-
invariant(typeof handleUpload === 'function', '"handleUpload" should be a function.');
|
|
127
171
|
invariant(limit === undefined || limit > 0, "\"limit\" should be a pasitive number.");
|
|
128
172
|
|
|
129
173
|
var onUpload = /*#__PURE__*/function () {
|
|
130
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
174
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(file) {
|
|
131
175
|
var dataUrl, name, size, type, uid, errorMsg;
|
|
132
|
-
return regeneratorRuntime.wrap(function
|
|
176
|
+
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
133
177
|
while (1) {
|
|
134
|
-
switch (
|
|
178
|
+
switch (_context2.prev = _context2.next) {
|
|
135
179
|
case 0:
|
|
136
180
|
dataUrl = URL.createObjectURL(file);
|
|
137
181
|
dataUrlRef.current.push(dataUrl);
|
|
138
182
|
name = file.name, size = file.size, type = file.type, uid = file.uid;
|
|
139
183
|
|
|
140
184
|
if (!(limit && files.length >= limit)) {
|
|
141
|
-
|
|
185
|
+
_context2.next = 8;
|
|
142
186
|
break;
|
|
143
187
|
}
|
|
144
188
|
|
|
@@ -150,7 +194,7 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
150
194
|
});
|
|
151
195
|
limitNumError.current = errorMsg;
|
|
152
196
|
setFieldError && setFieldError(errorMsg);
|
|
153
|
-
return
|
|
197
|
+
return _context2.abrupt("return", Promise.reject(errorMsg));
|
|
154
198
|
|
|
155
199
|
case 8:
|
|
156
200
|
limitNumError.current = undefined;
|
|
@@ -166,7 +210,7 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
166
210
|
}]);
|
|
167
211
|
}); // 符合文件个数限制之后 上传时的错误处理
|
|
168
212
|
|
|
169
|
-
return
|
|
213
|
+
return _context2.abrupt("return", handleUploadPromise(file, function (url) {
|
|
170
214
|
var urls = [];
|
|
171
215
|
setFiles(function (files) {
|
|
172
216
|
return files.map(function (f) {
|
|
@@ -230,64 +274,64 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
230
274
|
|
|
231
275
|
case 11:
|
|
232
276
|
case "end":
|
|
233
|
-
return
|
|
277
|
+
return _context2.stop();
|
|
234
278
|
}
|
|
235
279
|
}
|
|
236
|
-
},
|
|
280
|
+
}, _callee2);
|
|
237
281
|
}));
|
|
238
282
|
|
|
239
|
-
return function onUpload(
|
|
283
|
+
return function onUpload(_x2) {
|
|
240
284
|
return _ref2.apply(this, arguments);
|
|
241
285
|
};
|
|
242
286
|
}();
|
|
243
287
|
|
|
244
288
|
var handleUploadPromise = /*#__PURE__*/function () {
|
|
245
|
-
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
289
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(file, onSuccess, onFailed) {
|
|
246
290
|
var rst, errorMsg;
|
|
247
|
-
return regeneratorRuntime.wrap(function
|
|
291
|
+
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
248
292
|
while (1) {
|
|
249
|
-
switch (
|
|
293
|
+
switch (_context3.prev = _context3.next) {
|
|
250
294
|
case 0:
|
|
251
|
-
|
|
252
|
-
|
|
295
|
+
_context3.prev = 0;
|
|
296
|
+
_context3.next = 3;
|
|
253
297
|
return handleUpload(file);
|
|
254
298
|
|
|
255
299
|
case 3:
|
|
256
|
-
rst =
|
|
300
|
+
rst = _context3.sent;
|
|
257
301
|
onSuccess(rst);
|
|
258
|
-
return
|
|
302
|
+
return _context3.abrupt("return", Promise.resolve(rst));
|
|
259
303
|
|
|
260
304
|
case 8:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
errorMsg = _typeof(
|
|
305
|
+
_context3.prev = 8;
|
|
306
|
+
_context3.t0 = _context3["catch"](0);
|
|
307
|
+
errorMsg = _typeof(_context3.t0) === 'object' ? _context3.t0.message : _context3.t0;
|
|
264
308
|
onFailed(errorMsg);
|
|
265
|
-
return
|
|
309
|
+
return _context3.abrupt("return", Promise.reject(errorMsg));
|
|
266
310
|
|
|
267
311
|
case 13:
|
|
268
312
|
case "end":
|
|
269
|
-
return
|
|
313
|
+
return _context3.stop();
|
|
270
314
|
}
|
|
271
315
|
}
|
|
272
|
-
},
|
|
316
|
+
}, _callee3, null, [[0, 8]]);
|
|
273
317
|
}));
|
|
274
318
|
|
|
275
|
-
return function handleUploadPromise(
|
|
319
|
+
return function handleUploadPromise(_x3, _x4, _x5) {
|
|
276
320
|
return _ref3.apply(this, arguments);
|
|
277
321
|
};
|
|
278
322
|
}(); // 错误提示的优先级,上传报错 > 'quantity of files should be less than {limit}' > 'Please re-upload this file:{name}'
|
|
279
323
|
|
|
280
324
|
|
|
281
325
|
var handleDelete = /*#__PURE__*/function () {
|
|
282
|
-
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
326
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4(index) {
|
|
283
327
|
var arr, hasError, rst;
|
|
284
|
-
return regeneratorRuntime.wrap(function
|
|
328
|
+
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
285
329
|
while (1) {
|
|
286
|
-
switch (
|
|
330
|
+
switch (_context4.prev = _context4.next) {
|
|
287
331
|
case 0:
|
|
288
332
|
limitNumError.current = null;
|
|
289
333
|
arr = files;
|
|
290
|
-
|
|
334
|
+
_context4.next = 4;
|
|
291
335
|
return setFiles(function (files) {
|
|
292
336
|
var newArr = files.filter(function (_, i) {
|
|
293
337
|
return i !== index;
|
|
@@ -303,7 +347,7 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
303
347
|
});
|
|
304
348
|
|
|
305
349
|
if (!hasError) {
|
|
306
|
-
|
|
350
|
+
_context4.next = 8;
|
|
307
351
|
break;
|
|
308
352
|
}
|
|
309
353
|
|
|
@@ -316,7 +360,7 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
316
360
|
|
|
317
361
|
return f.url;
|
|
318
362
|
});
|
|
319
|
-
return
|
|
363
|
+
return _context4.abrupt("return", typeof onChange === 'function' && onChange(rst));
|
|
320
364
|
|
|
321
365
|
case 8:
|
|
322
366
|
typeof onChange === 'function' && onChange(arr.map(function (_ref5) {
|
|
@@ -326,36 +370,36 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
326
370
|
|
|
327
371
|
case 9:
|
|
328
372
|
case "end":
|
|
329
|
-
return
|
|
373
|
+
return _context4.stop();
|
|
330
374
|
}
|
|
331
375
|
}
|
|
332
|
-
},
|
|
376
|
+
}, _callee4);
|
|
333
377
|
}));
|
|
334
378
|
|
|
335
|
-
return function handleDelete(
|
|
379
|
+
return function handleDelete(_x6) {
|
|
336
380
|
return _ref4.apply(this, arguments);
|
|
337
381
|
};
|
|
338
382
|
}();
|
|
339
383
|
|
|
340
384
|
var handleReUpload = /*#__PURE__*/function () {
|
|
341
|
-
var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function
|
|
385
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5(index) {
|
|
342
386
|
var _files$index, originFile, reUpUid, rst, latestFiles, fileListWithError, newList, _rst;
|
|
343
387
|
|
|
344
|
-
return regeneratorRuntime.wrap(function
|
|
388
|
+
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
345
389
|
while (1) {
|
|
346
|
-
switch (
|
|
390
|
+
switch (_context5.prev = _context5.next) {
|
|
347
391
|
case 0:
|
|
348
392
|
_files$index = files[index], originFile = _files$index.originFile, reUpUid = _files$index.uid;
|
|
349
393
|
|
|
350
394
|
if (originFile) {
|
|
351
|
-
|
|
395
|
+
_context5.next = 3;
|
|
352
396
|
break;
|
|
353
397
|
}
|
|
354
398
|
|
|
355
|
-
return
|
|
399
|
+
return _context5.abrupt("return");
|
|
356
400
|
|
|
357
401
|
case 3:
|
|
358
|
-
|
|
402
|
+
_context5.next = 5;
|
|
359
403
|
return setFiles(function (files) {
|
|
360
404
|
var newFiles = _toConsumableArray(files);
|
|
361
405
|
|
|
@@ -364,14 +408,14 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
364
408
|
});
|
|
365
409
|
|
|
366
410
|
case 5:
|
|
367
|
-
|
|
368
|
-
|
|
411
|
+
_context5.prev = 5;
|
|
412
|
+
_context5.next = 8;
|
|
369
413
|
return handleUpload(originFile);
|
|
370
414
|
|
|
371
415
|
case 8:
|
|
372
|
-
rst =
|
|
416
|
+
rst = _context5.sent;
|
|
373
417
|
latestFiles = [];
|
|
374
|
-
|
|
418
|
+
_context5.next = 12;
|
|
375
419
|
return setFiles(function (files) {
|
|
376
420
|
var newFiles = _toConsumableArray(files);
|
|
377
421
|
|
|
@@ -399,19 +443,19 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
399
443
|
return url;
|
|
400
444
|
});
|
|
401
445
|
onChange && onChange(fileListWithError);
|
|
402
|
-
|
|
446
|
+
_context5.next = 23;
|
|
403
447
|
break;
|
|
404
448
|
|
|
405
449
|
case 16:
|
|
406
|
-
|
|
407
|
-
|
|
450
|
+
_context5.prev = 16;
|
|
451
|
+
_context5.t0 = _context5["catch"](5);
|
|
408
452
|
newList = [];
|
|
409
|
-
|
|
453
|
+
_context5.next = 21;
|
|
410
454
|
return setFiles(function (files) {
|
|
411
455
|
var newFiles = _toConsumableArray(files);
|
|
412
456
|
|
|
413
457
|
newFiles[index].status = 'failed';
|
|
414
|
-
newFiles[index].errorMsg =
|
|
458
|
+
newFiles[index].errorMsg = _context5.t0;
|
|
415
459
|
newList = newFiles;
|
|
416
460
|
return newFiles;
|
|
417
461
|
});
|
|
@@ -437,13 +481,13 @@ var IglooUpload = function IglooUpload(_ref) {
|
|
|
437
481
|
|
|
438
482
|
case 23:
|
|
439
483
|
case "end":
|
|
440
|
-
return
|
|
484
|
+
return _context5.stop();
|
|
441
485
|
}
|
|
442
486
|
}
|
|
443
|
-
},
|
|
487
|
+
}, _callee5, null, [[5, 16]]);
|
|
444
488
|
}));
|
|
445
489
|
|
|
446
|
-
return function handleReUpload(
|
|
490
|
+
return function handleReUpload(_x7) {
|
|
447
491
|
return _ref6.apply(this, arguments);
|
|
448
492
|
};
|
|
449
493
|
}();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC, IglooComponentProps } from '../types';
|
|
2
2
|
import './style/index.less';
|
|
3
3
|
export interface Props extends IglooComponentProps {
|
|
4
|
-
handleUpload(file: File): PromiseLike<string>;
|
|
4
|
+
handleUpload?(file: File): PromiseLike<string>;
|
|
5
5
|
value?: (string | {
|
|
6
6
|
name: string;
|
|
7
7
|
status: 'failed';
|
|
@@ -15,6 +15,7 @@ export interface Props extends IglooComponentProps {
|
|
|
15
15
|
samples?: Sample[];
|
|
16
16
|
className?: any;
|
|
17
17
|
id?: string;
|
|
18
|
+
bizKey?: string;
|
|
18
19
|
}
|
|
19
20
|
export declare type Sample = {
|
|
20
21
|
src: string;
|