shineout 3.9.13 → 3.9.14-beta.2
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 +17 -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
|
@@ -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.9.
|
|
525
|
+
version: '3.9.14-beta.2'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12332,7 +12332,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12332
12332
|
};
|
|
12333
12333
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12334
12334
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12335
|
-
/* harmony default export */ var version = ('3.9.
|
|
12335
|
+
/* harmony default export */ var version = ('3.9.14-beta.2');
|
|
12336
12336
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12337
12337
|
|
|
12338
12338
|
|
|
@@ -17339,7 +17339,7 @@ var supportsHas = function supportsHas() {
|
|
|
17339
17339
|
borderRadius: 0,
|
|
17340
17340
|
boxShadow: 'none',
|
|
17341
17341
|
backgroundColor: 'transparent',
|
|
17342
|
-
flex: 1,
|
|
17342
|
+
flex: '1 1 auto',
|
|
17343
17343
|
minWidth: 0
|
|
17344
17344
|
},
|
|
17345
17345
|
'[data-soui-role="input-group"]:not([data-soui-border="false"]) [data-soui-input-border] + &&&': {
|
|
@@ -21458,7 +21458,7 @@ var menuStyle = {
|
|
|
21458
21458
|
}
|
|
21459
21459
|
},
|
|
21460
21460
|
// 一级菜单展不展开都是fill-9,一级展开后的子级都是fill-10
|
|
21461
|
-
'[data-soui-theme=dark] $root > $item:not($itemActive) > &': {
|
|
21461
|
+
'[data-soui-theme=dark] $root > $item:not($itemActive):not($itemDisabled) > &': {
|
|
21462
21462
|
backgroundColor: src.menuDarkItemBackgroundColor,
|
|
21463
21463
|
'&:hover': {
|
|
21464
21464
|
backgroundColor: src.menuDarkItemHoverBackgroundColor
|
|
@@ -53158,6 +53158,7 @@ var SchemaBuilder = /*#__PURE__*/function () {
|
|
|
53158
53158
|
|
|
53159
53159
|
var globalKey = '__global__&&@@';
|
|
53160
53160
|
var SUBMIT_TIMEOUT = 10;
|
|
53161
|
+
var RESET_TIMEOUT = 500;
|
|
53161
53162
|
|
|
53162
53163
|
|
|
53163
53164
|
var emptyObj = {};
|
|
@@ -53456,6 +53457,8 @@ var useForm = function useForm(props) {
|
|
|
53456
53457
|
var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
53457
53458
|
validate: false
|
|
53458
53459
|
};
|
|
53460
|
+
// 重置保护期内(500ms),忽略子组件延迟 onChange 写回的旧值
|
|
53461
|
+
if (context.resetTime && Date.now() - context.resetTime < RESET_TIMEOUT) return;
|
|
53459
53462
|
onChange(function (draft) {
|
|
53460
53463
|
var values = Object.keys(vals);
|
|
53461
53464
|
// 针对 name 为数组模式,如 datepicker 的 name={['startTime', 'endTime']} 时,前者校验可能需要依赖后者,因此需要提前将后者数据整合至 draft 用于多字段整合校验
|
|
@@ -53623,7 +53626,7 @@ var useForm = function useForm(props) {
|
|
|
53623
53626
|
onChange(getDefaultValue());
|
|
53624
53627
|
clearValidate();
|
|
53625
53628
|
update();
|
|
53626
|
-
context.resetTime =
|
|
53629
|
+
context.resetTime = Date.now();
|
|
53627
53630
|
(_props$onReset = props.onReset) === null || _props$onReset === void 0 || _props$onReset.call(props);
|
|
53628
53631
|
other === null || other === void 0 || (_other$onReset = other.onReset) === null || _other$onReset === void 0 || _other$onReset.call(other, e);
|
|
53629
53632
|
};
|
|
@@ -65762,7 +65765,14 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
65762
65765
|
if (cols && cols.every(function (v) {
|
|
65763
65766
|
return v === 0;
|
|
65764
65767
|
})) return;
|
|
65765
|
-
|
|
65768
|
+
var shifted = shiftDecimalToLastColumn(cols);
|
|
65769
|
+
// 值未变化时跳过,避免触发不必要的 useLayoutEffect
|
|
65770
|
+
if (colgroup && shifted.length === colgroup.length && shifted.every(function (v, i) {
|
|
65771
|
+
return v === colgroup[i];
|
|
65772
|
+
})) {
|
|
65773
|
+
return;
|
|
65774
|
+
}
|
|
65775
|
+
setColgroup(shifted);
|
|
65766
65776
|
setAdjust(adjust);
|
|
65767
65777
|
if (!adjust) {
|
|
65768
65778
|
updateResizeFlag();
|
|
@@ -65816,8 +65826,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
65816
65826
|
var index = 0;
|
|
65817
65827
|
var sum = 0;
|
|
65818
65828
|
var _loop = function _loop() {
|
|
65819
|
-
var
|
|
65820
|
-
width = _items$i$getBoundingC.width;
|
|
65829
|
+
var width = items[i].offsetWidth;
|
|
65821
65830
|
sum += width;
|
|
65822
65831
|
var colspan = items[i].getAttribute('colspan');
|
|
65823
65832
|
var colspanNum = parseInt(colspan || '1', 10);
|
|
@@ -75704,7 +75713,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
75704
75713
|
|
|
75705
75714
|
|
|
75706
75715
|
/* harmony default export */ var src_0 = ({
|
|
75707
|
-
version: '3.9.
|
|
75716
|
+
version: '3.9.14-beta.2'
|
|
75708
75717
|
});
|
|
75709
75718
|
}();
|
|
75710
75719
|
/******/ return __webpack_exports__;
|