shineout 3.7.4-beta.5 → 3.7.4-beta.7
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 +13 -29
- 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
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.7.4-beta.
|
|
525
|
+
version: '3.7.4-beta.7'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12234
12234
|
};
|
|
12235
12235
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12236
12236
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12237
|
-
/* harmony default export */ var version = ('3.7.4-beta.
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.4-beta.7');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -47703,15 +47703,8 @@ var DatePicker = function DatePicker(props0) {
|
|
|
47703
47703
|
setFocused(false);
|
|
47704
47704
|
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e, index);
|
|
47705
47705
|
if (props.needConfirm) return;
|
|
47706
|
-
if (props.inputable && index !== undefined) {
|
|
47707
|
-
|
|
47708
|
-
// why: 快速选择时,需要加上timeout,否则e.target.value 获取不到最新的值
|
|
47709
|
-
setTimeout(function () {
|
|
47710
|
-
func.handleInputBlur(e.target.value, index);
|
|
47711
|
-
});
|
|
47712
|
-
} else {
|
|
47713
|
-
func.handleInputBlur(e.target.value, index);
|
|
47714
|
-
}
|
|
47706
|
+
if (props.inputable && !props.quickSelect && index !== undefined) {
|
|
47707
|
+
func.handleInputBlur(e.target.value, index);
|
|
47715
47708
|
}
|
|
47716
47709
|
|
|
47717
47710
|
// 当输入框有值时,失焦时需要立即触发 onChange,否则触控板的轻触模拟出来的click事件就获取不到最新的值
|
|
@@ -50959,13 +50952,14 @@ var useForm = function useForm(props) {
|
|
|
50959
50952
|
/* harmony default export */ var use_form = (useForm);
|
|
50960
50953
|
;// CONCATENATED MODULE: ../hooks/src/components/use-form/use-form-context.ts
|
|
50961
50954
|
|
|
50955
|
+
|
|
50962
50956
|
var FormContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({});
|
|
50963
50957
|
function useFormRef() {
|
|
50964
|
-
var
|
|
50965
|
-
|
|
50966
|
-
|
|
50967
|
-
|
|
50968
|
-
return [
|
|
50958
|
+
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState({}),
|
|
50959
|
+
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
50960
|
+
formRef = _React$useState2[0],
|
|
50961
|
+
setFormRef = _React$useState2[1];
|
|
50962
|
+
return [formRef, setFormRef];
|
|
50969
50963
|
}
|
|
50970
50964
|
function useFormInstance() {
|
|
50971
50965
|
var formCtx = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useContext(FormContext);
|
|
@@ -63907,18 +63901,8 @@ function useComponentMemo(getValue, condition, shouldUpdate) {
|
|
|
63907
63901
|
|
|
63908
63902
|
|
|
63909
63903
|
|
|
63910
|
-
|
|
63911
63904
|
function Td(props) {
|
|
63912
|
-
var
|
|
63913
|
-
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
63914
|
-
style = _React$useState2[0],
|
|
63915
|
-
setStyle = _React$useState2[1];
|
|
63916
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
63917
|
-
if (shallowEqual(props.style, style)) {
|
|
63918
|
-
return;
|
|
63919
|
-
}
|
|
63920
|
-
setStyle(props.style);
|
|
63921
|
-
}, [props.style]);
|
|
63905
|
+
var _props$style, _props$style2;
|
|
63922
63906
|
var col = props.col,
|
|
63923
63907
|
colSpan = props.colSpan,
|
|
63924
63908
|
rowSpan = props.rowSpan,
|
|
@@ -63938,13 +63922,13 @@ function Td(props) {
|
|
|
63938
63922
|
onMouseEnter: onMouseEnter,
|
|
63939
63923
|
onMouseLeave: onMouseLeave,
|
|
63940
63924
|
className: className,
|
|
63941
|
-
style: style,
|
|
63925
|
+
style: props.style,
|
|
63942
63926
|
dir: direction,
|
|
63943
63927
|
"data-role": role,
|
|
63944
63928
|
onClick: onClick,
|
|
63945
63929
|
children: content
|
|
63946
63930
|
}, col.key);
|
|
63947
|
-
}, [data, className, style, col.type, col.treeColumnsName], props.virtual === 'lazy' ? function (prev, next) {
|
|
63931
|
+
}, [data, className, (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.left, (_props$style2 = props.style) === null || _props$style2 === void 0 ? void 0 : _props$style2.right, col.type, col.treeColumnsName], props.virtual === 'lazy' ? function (prev, next) {
|
|
63948
63932
|
if (col.type || col.treeColumnsName) {
|
|
63949
63933
|
return true;
|
|
63950
63934
|
}
|
|
@@ -71621,7 +71605,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71621
71605
|
|
|
71622
71606
|
|
|
71623
71607
|
/* harmony default export */ var src_0 = ({
|
|
71624
|
-
version: '3.7.4-beta.
|
|
71608
|
+
version: '3.7.4-beta.7'
|
|
71625
71609
|
});
|
|
71626
71610
|
}();
|
|
71627
71611
|
/******/ return __webpack_exports__;
|