shineout 3.6.5-beta.3 → 3.6.5-beta.4
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/cjs/index.js +1 -1
- package/dist/shineout.js +8 -8
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
514
514
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
515
515
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
516
516
|
var _default = exports.default = {
|
|
517
|
-
version: '3.6.5-beta.
|
|
517
|
+
version: '3.6.5-beta.4'
|
|
518
518
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12217,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12217
12217
|
};
|
|
12218
12218
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12219
12219
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12220
|
-
/* harmony default export */ var version = ('3.6.5-beta.
|
|
12220
|
+
/* harmony default export */ var version = ('3.6.5-beta.4');
|
|
12221
12221
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12222
12222
|
|
|
12223
12223
|
|
|
@@ -34961,11 +34961,11 @@ function useInputAble(props) {
|
|
|
34961
34961
|
context.delayChange = function () {
|
|
34962
34962
|
context.timer = null;
|
|
34963
34963
|
context.delayChange = null;
|
|
34964
|
-
onChange.apply(void 0, [vv].concat(other));
|
|
34964
|
+
onChange.apply(void 0, [isFunc(vv) ? vv() : vv].concat(other));
|
|
34965
34965
|
render();
|
|
34966
34966
|
};
|
|
34967
34967
|
if (!delay) {
|
|
34968
|
-
onChange.apply(void 0, [vv].concat(other));
|
|
34968
|
+
onChange.apply(void 0, [isFunc(vv) ? vv() : vv].concat(other));
|
|
34969
34969
|
} else {
|
|
34970
34970
|
if (context.timer) clearTimeout(context.timer);
|
|
34971
34971
|
context.timer = setTimeout(context.delayChange, delay);
|
|
@@ -66525,11 +66525,12 @@ var promised = function promised(action) {
|
|
|
66525
66525
|
resolve(true);
|
|
66526
66526
|
});
|
|
66527
66527
|
};
|
|
66528
|
+
var defaultValue = [];
|
|
66528
66529
|
var useUpload = function useUpload(props) {
|
|
66529
66530
|
var _props$limit = props.limit,
|
|
66530
66531
|
limit = _props$limit === void 0 ? 100 : _props$limit,
|
|
66531
66532
|
_props$value = props.value,
|
|
66532
|
-
value = _props$value === void 0 ?
|
|
66533
|
+
value = _props$value === void 0 ? defaultValue : _props$value;
|
|
66533
66534
|
var accept = props.forceAccept || props.accept;
|
|
66534
66535
|
var forceAccept = !!props.forceAccept;
|
|
66535
66536
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
|
|
@@ -66692,10 +66693,9 @@ var useUpload = function useUpload(props) {
|
|
|
66692
66693
|
});
|
|
66693
66694
|
});
|
|
66694
66695
|
// add value
|
|
66695
|
-
|
|
66696
|
-
|
|
66696
|
+
props.onChange(function (prev) {
|
|
66697
|
+
return [].concat(toConsumableArray_default()(prev || []), [result]);
|
|
66697
66698
|
});
|
|
66698
|
-
props.onChange(values);
|
|
66699
66699
|
}
|
|
66700
66700
|
},
|
|
66701
66701
|
onError: function onError(xhr) {
|
|
@@ -70036,7 +70036,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
70036
70036
|
|
|
70037
70037
|
|
|
70038
70038
|
/* harmony default export */ var src_0 = ({
|
|
70039
|
-
version: '3.6.5-beta.
|
|
70039
|
+
version: '3.6.5-beta.4'
|
|
70040
70040
|
});
|
|
70041
70041
|
}();
|
|
70042
70042
|
/******/ return __webpack_exports__;
|