shineout 3.5.4-beta.9 → 3.5.4-fix.1
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.d.ts +1 -1
- package/cjs/index.js +8 -1
- package/dist/shineout.js +89 -66
- 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.d.ts +1 -1
- package/esm/index.js +2 -2
- package/package.json +5 -5
package/cjs/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export { default as Upload } from './upload';
|
|
|
51
51
|
export { setConfig, config, setLocale, setIcons } from '@sheinx/base';
|
|
52
52
|
export type { ConfigOption } from '@sheinx/base';
|
|
53
53
|
export { setToken, useToken } from '@sheinx/theme';
|
|
54
|
-
export { JssProvider, SheetsRegistry, setJssConfig } from '@sheinx/shineout-style';
|
|
54
|
+
export { JssProvider, SheetsRegistry, setJssConfig, scopeNormalizeStyle, } from '@sheinx/shineout-style';
|
|
55
55
|
export * as utls from './utils';
|
|
56
56
|
export * from './deprecated';
|
|
57
57
|
export * as TYPE from './type';
|
package/cjs/index.js
CHANGED
|
@@ -65,6 +65,7 @@ var _exportNames = {
|
|
|
65
65
|
JssProvider: true,
|
|
66
66
|
SheetsRegistry: true,
|
|
67
67
|
setJssConfig: true,
|
|
68
|
+
scopeNormalizeStyle: true,
|
|
68
69
|
utls: true,
|
|
69
70
|
TYPE: true
|
|
70
71
|
};
|
|
@@ -388,6 +389,12 @@ Object.defineProperty(exports, "config", {
|
|
|
388
389
|
}
|
|
389
390
|
});
|
|
390
391
|
exports.default = void 0;
|
|
392
|
+
Object.defineProperty(exports, "scopeNormalizeStyle", {
|
|
393
|
+
enumerable: true,
|
|
394
|
+
get: function get() {
|
|
395
|
+
return _shineoutStyle.scopeNormalizeStyle;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
391
398
|
Object.defineProperty(exports, "setConfig", {
|
|
392
399
|
enumerable: true,
|
|
393
400
|
get: function get() {
|
|
@@ -500,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
500
507
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
501
508
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
502
509
|
var _default = exports.default = {
|
|
503
|
-
version: '3.5.4-
|
|
510
|
+
version: '3.5.4-fix.1'
|
|
504
511
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -6378,6 +6378,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
6378
6378
|
color: function() { return /* reexport */ color; },
|
|
6379
6379
|
config: function() { return /* reexport */ src_config_config; },
|
|
6380
6380
|
"default": function() { return /* binding */ src_0; },
|
|
6381
|
+
scopeNormalizeStyle: function() { return /* reexport */ scopeNormalizeStyle; },
|
|
6381
6382
|
setConfig: function() { return /* reexport */ config_setConfig; },
|
|
6382
6383
|
setIcons: function() { return /* reexport */ setIcons; },
|
|
6383
6384
|
setJssConfig: function() { return /* reexport */ setJssConfig; },
|
|
@@ -7052,20 +7053,29 @@ var AlertIcon = function AlertIcon(props) {
|
|
|
7052
7053
|
var AlertIconMap = alert_icon_icons;
|
|
7053
7054
|
/* harmony default export */ var alert_icon = (AlertIcon);
|
|
7054
7055
|
;// CONCATENATED MODULE: ../hooks/src/utils/warning.ts
|
|
7056
|
+
var shownMessages = new Set();
|
|
7057
|
+
var shouldShowMessage = function shouldShowMessage(message) {
|
|
7058
|
+
if (shownMessages.has(message)) {
|
|
7059
|
+
return false;
|
|
7060
|
+
}
|
|
7061
|
+
shownMessages.add(message);
|
|
7062
|
+
return true;
|
|
7063
|
+
};
|
|
7055
7064
|
var deprecated = function deprecated(prop, newProp, component, extraMessage) {
|
|
7056
|
-
if (false) {}
|
|
7065
|
+
if (false) { var msg; }
|
|
7057
7066
|
};
|
|
7058
7067
|
var breakingChange = function breakingChange(message) {
|
|
7059
|
-
if (false) {}
|
|
7068
|
+
if (false) { var msg; }
|
|
7060
7069
|
};
|
|
7061
7070
|
var devWarn = function devWarn(message) {
|
|
7062
7071
|
if (false) {}
|
|
7063
7072
|
};
|
|
7064
7073
|
var conflictWarning = function conflictWarning(component, prop1, prop2) {
|
|
7065
|
-
if (false) {}
|
|
7074
|
+
if (false) { var msg; }
|
|
7066
7075
|
};
|
|
7067
7076
|
var error = function error(message) {
|
|
7068
|
-
|
|
7077
|
+
var msg = new Error("[shineout] ".concat(message));
|
|
7078
|
+
shouldShowMessage(msg.message) && console.error(msg);
|
|
7069
7079
|
};
|
|
7070
7080
|
var devUseWarning = {
|
|
7071
7081
|
error: error,
|
|
@@ -12030,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12030
12040
|
};
|
|
12031
12041
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12032
12042
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12033
|
-
/* harmony default export */ var version = ('3.5.4-
|
|
12043
|
+
/* harmony default export */ var version = ('3.5.4-fix.1');
|
|
12034
12044
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12035
12045
|
|
|
12036
12046
|
|
|
@@ -33436,19 +33446,18 @@ function useInputAble(props) {
|
|
|
33436
33446
|
var render = useRender(syncValue);
|
|
33437
33447
|
var shouldUseState = delay || !control;
|
|
33438
33448
|
var value = shouldUseState ? stateValue : valuePo;
|
|
33439
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
33440
|
-
if (context.timer) {
|
|
33441
|
-
clearTimeout(context.timer);
|
|
33442
|
-
context.timer = null;
|
|
33443
|
-
}
|
|
33449
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
33444
33450
|
if (delay && control && props.value !== stateValue) {
|
|
33445
33451
|
changeStateValue(props.value);
|
|
33452
|
+
} else if (context.timer) {
|
|
33453
|
+
clearTimeout(context.timer);
|
|
33454
|
+
context.timer = null;
|
|
33446
33455
|
}
|
|
33447
33456
|
}, [props.value, delay, control]);
|
|
33448
33457
|
var forceDelayChange = use_persist_fn(function () {
|
|
33449
|
-
if (context.
|
|
33458
|
+
if (context.delayChange) context.delayChange();
|
|
33459
|
+
if (context.timer) {
|
|
33450
33460
|
clearTimeout(context.timer);
|
|
33451
|
-
context.delayChange();
|
|
33452
33461
|
context.timer = null;
|
|
33453
33462
|
context.delayChange = null;
|
|
33454
33463
|
}
|
|
@@ -33909,6 +33918,7 @@ var useInputFormat = function useInputFormat(props) {
|
|
|
33909
33918
|
|
|
33910
33919
|
|
|
33911
33920
|
|
|
33921
|
+
|
|
33912
33922
|
function insertPoint(name) {
|
|
33913
33923
|
var reg = /(\[\d+\])/gi;
|
|
33914
33924
|
return name.replace(reg, function (s, m, i) {
|
|
@@ -34162,12 +34172,31 @@ var removeProps = function removeProps(target, remove) {
|
|
|
34162
34172
|
}
|
|
34163
34173
|
return a;
|
|
34164
34174
|
};
|
|
34175
|
+
|
|
34176
|
+
/**
|
|
34177
|
+
* 获取数据对象的全量key路径
|
|
34178
|
+
* @param obj 数据对象
|
|
34179
|
+
* @param parentKey 父级key
|
|
34180
|
+
* @returns 全量key路径
|
|
34181
|
+
* @example
|
|
34182
|
+
* const obj = { a: { b: { c: 1 } } };
|
|
34183
|
+
* const keys = getAllKeyPaths(obj);
|
|
34184
|
+
* console.log(keys); // ['a.b.c', 'a.b', 'a']
|
|
34185
|
+
*/
|
|
34165
34186
|
var getAllKeyPaths = function getAllKeyPaths(obj) {
|
|
34166
34187
|
var parentKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
34167
34188
|
return Object.keys(obj).reduce(function (keys, key) {
|
|
34168
34189
|
var newKey = parentKey ? "".concat(parentKey, ".").concat(key) : key;
|
|
34169
34190
|
if (Array.isArray(obj[key])) {
|
|
34170
|
-
|
|
34191
|
+
var childrenKeys = obj[key].map(function (item, index) {
|
|
34192
|
+
if (item !== null && typeof_default()(item) === 'object') {
|
|
34193
|
+
return getAllKeyPaths(item, "".concat(newKey, "[").concat(index, "]"));
|
|
34194
|
+
}
|
|
34195
|
+
return null;
|
|
34196
|
+
}).filter(function (item) {
|
|
34197
|
+
return item !== null;
|
|
34198
|
+
});
|
|
34199
|
+
return keys.concat.apply(keys, toConsumableArray_default()(childrenKeys)).concat(newKey);
|
|
34171
34200
|
}
|
|
34172
34201
|
return keys.concat(obj[key] !== null && typeof_default()(obj[key]) === 'object' ? getAllKeyPaths(obj[key], newKey) : newKey);
|
|
34173
34202
|
}, []);
|
|
@@ -37276,7 +37305,7 @@ var Scroll = function Scroll(props) {
|
|
|
37276
37305
|
defaultHeight = _props$defaultHeight === void 0 ? 0 : _props$defaultHeight;
|
|
37277
37306
|
var _useResize = useResize({
|
|
37278
37307
|
targetRef: containerRef,
|
|
37279
|
-
timer:
|
|
37308
|
+
timer: 100
|
|
37280
37309
|
}),
|
|
37281
37310
|
width = _useResize.width,
|
|
37282
37311
|
h = _useResize.height;
|
|
@@ -37562,10 +37591,10 @@ var VirtualList = function VirtualList(props) {
|
|
|
37562
37591
|
height: height,
|
|
37563
37592
|
scrollWidth: 0,
|
|
37564
37593
|
scrollHeight: scrollHeight,
|
|
37565
|
-
wrapperRef: wrapperRef,
|
|
37566
37594
|
childrenStyle: {
|
|
37567
37595
|
width: '100%'
|
|
37568
37596
|
},
|
|
37597
|
+
wrapperRef: wrapperRef,
|
|
37569
37598
|
onScroll: handleScroll,
|
|
37570
37599
|
onMouseMove: handleMouseMove,
|
|
37571
37600
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Tag, {
|
|
@@ -48174,14 +48203,12 @@ function useFormInstance() {
|
|
|
48174
48203
|
;// CONCATENATED MODULE: ../base/src/form/form.tsx
|
|
48175
48204
|
|
|
48176
48205
|
|
|
48177
|
-
|
|
48178
48206
|
var form_excluded = ["jssStyle", "className", "style", "children", "formRef"];
|
|
48179
48207
|
|
|
48180
48208
|
|
|
48181
48209
|
|
|
48182
48210
|
|
|
48183
48211
|
|
|
48184
|
-
|
|
48185
48212
|
var Form = function Form(props) {
|
|
48186
48213
|
var _jssStyle$form;
|
|
48187
48214
|
var jssStyle = props.jssStyle,
|
|
@@ -48222,16 +48249,6 @@ var Form = function Form(props) {
|
|
|
48222
48249
|
type: 'withValue'
|
|
48223
48250
|
});
|
|
48224
48251
|
});
|
|
48225
|
-
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
48226
|
-
_useState2 = slicedToArray_default()(_useState, 2),
|
|
48227
|
-
renderKey = _useState2[0],
|
|
48228
|
-
setRenderKey = _useState2[1];
|
|
48229
|
-
var handleOuterSet = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (vals) {
|
|
48230
|
-
formFunc.setValue(vals);
|
|
48231
|
-
setRenderKey(function (prev) {
|
|
48232
|
-
return prev + 1;
|
|
48233
|
-
});
|
|
48234
|
-
}, [formFunc]);
|
|
48235
48252
|
var formRefObj = useLatestObj({
|
|
48236
48253
|
clearValidate: formFunc.clearValidate,
|
|
48237
48254
|
getValue: formFunc.getValue,
|
|
@@ -48241,7 +48258,7 @@ var Form = function Form(props) {
|
|
|
48241
48258
|
validateFields: validateFields,
|
|
48242
48259
|
validateFieldsWithValue: validateFieldsWithValue,
|
|
48243
48260
|
validateFieldsWithError: formFunc.validateFields,
|
|
48244
|
-
set:
|
|
48261
|
+
set: formFunc.setValue,
|
|
48245
48262
|
scrollToField: formFunc.scrollToField
|
|
48246
48263
|
});
|
|
48247
48264
|
external_root_React_commonjs2_react_commonjs_react_amd_react_default().useEffect(function () {
|
|
@@ -48290,17 +48307,17 @@ var Form = function Form(props) {
|
|
|
48290
48307
|
}
|
|
48291
48308
|
};
|
|
48292
48309
|
}, [formProps.onSubmit]);
|
|
48293
|
-
return /*#__PURE__*/(0,
|
|
48310
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("form", objectSpread2_default()(objectSpread2_default()({}, removeProps(formProps, {
|
|
48294
48311
|
onSubmit: true
|
|
48295
48312
|
})), {}, {
|
|
48296
48313
|
ref: formElRef,
|
|
48297
|
-
|
|
48298
|
-
|
|
48299
|
-
|
|
48300
|
-
|
|
48301
|
-
|
|
48302
|
-
})
|
|
48303
|
-
}))
|
|
48314
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, objectSpread2_default()(objectSpread2_default()({}, ProviderProps), {}, {
|
|
48315
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(FormContext.Provider, {
|
|
48316
|
+
value: formRefObj,
|
|
48317
|
+
children: children
|
|
48318
|
+
})
|
|
48319
|
+
}))
|
|
48320
|
+
}));
|
|
48304
48321
|
};
|
|
48305
48322
|
/* harmony default export */ var base_src_form_form = (Form);
|
|
48306
48323
|
;// CONCATENATED MODULE: ./src/form/form.tsx
|
|
@@ -48670,14 +48687,12 @@ var useFormFieldSet = function useFormFieldSet(props) {
|
|
|
48670
48687
|
|
|
48671
48688
|
|
|
48672
48689
|
|
|
48673
|
-
|
|
48674
48690
|
var form_fieldset_produce = utils_immer_produce;
|
|
48675
48691
|
var FormFieldSet = function FormFieldSet(props) {
|
|
48676
48692
|
var children = props.children,
|
|
48677
48693
|
empty = props.empty;
|
|
48678
48694
|
var _React$useRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef({
|
|
48679
|
-
ids: []
|
|
48680
|
-
lastValues: []
|
|
48695
|
+
ids: []
|
|
48681
48696
|
}),
|
|
48682
48697
|
context = _React$useRef.current;
|
|
48683
48698
|
var formFunc = useFormFunc();
|
|
@@ -48712,9 +48727,8 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
48712
48727
|
}
|
|
48713
48728
|
var valueArr = (formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name)) || [];
|
|
48714
48729
|
valueArr = Array.isArray(valueArr) ? valueArr : [valueArr];
|
|
48715
|
-
var result = [];
|
|
48716
48730
|
if (valueArr.length === 0 && valueArr && empty) {
|
|
48717
|
-
|
|
48731
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
48718
48732
|
children: empty(function (val) {
|
|
48719
48733
|
var newValue = form_fieldset_produce(valueArr, function (draft) {
|
|
48720
48734
|
draft.push(val);
|
|
@@ -48723,7 +48737,7 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
48723
48737
|
context.ids.push(generateUUID());
|
|
48724
48738
|
formFunc === null || formFunc === void 0 || formFunc.insertError(name, 0);
|
|
48725
48739
|
})
|
|
48726
|
-
}, 'empty')
|
|
48740
|
+
}, 'empty');
|
|
48727
48741
|
}
|
|
48728
48742
|
var errorList = (Array.isArray(error) ? error : [error]).filter(Boolean);
|
|
48729
48743
|
if (context.ids.length !== valueArr.length) {
|
|
@@ -48731,11 +48745,9 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
48731
48745
|
return generateUUID();
|
|
48732
48746
|
});
|
|
48733
48747
|
}
|
|
48734
|
-
valueArr.
|
|
48735
|
-
|
|
48736
|
-
|
|
48737
|
-
}
|
|
48738
|
-
result.push( /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
|
|
48748
|
+
return valueArr.map(function (v, i) {
|
|
48749
|
+
var _context$ids$i;
|
|
48750
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
|
|
48739
48751
|
value: {
|
|
48740
48752
|
path: "".concat(ProviderValue.path, "[").concat(i, "]"),
|
|
48741
48753
|
validateFieldSet: validateFieldSet
|
|
@@ -48781,13 +48793,7 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
48781
48793
|
formFunc === null || formFunc === void 0 || formFunc.spliceError(name, i);
|
|
48782
48794
|
}
|
|
48783
48795
|
})
|
|
48784
|
-
}, context.ids[i]));
|
|
48785
|
-
});
|
|
48786
|
-
|
|
48787
|
-
// 更新 lastValues
|
|
48788
|
-
context.lastValues = valueArr;
|
|
48789
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
48790
|
-
children: result
|
|
48796
|
+
}, (_context$ids$i = context.ids[i]) !== null && _context$ids$i !== void 0 ? _context$ids$i : i);
|
|
48791
48797
|
});
|
|
48792
48798
|
};
|
|
48793
48799
|
/* harmony default export */ var form_fieldset = (FormFieldSet);
|
|
@@ -57303,6 +57309,7 @@ var Step = function Step(props) {
|
|
|
57303
57309
|
onChange = props.onChange;
|
|
57304
57310
|
var config = useConfig();
|
|
57305
57311
|
var styles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$steps = jssStyle.steps) === null || _jssStyle$steps === void 0 ? void 0 : _jssStyle$steps.call(jssStyle)) || {};
|
|
57312
|
+
var isDisabled = typeof disabled === 'function' ? disabled(index, id) : disabled;
|
|
57306
57313
|
var getLabelPlacement = function getLabelPlacement() {
|
|
57307
57314
|
// dot 类型只支持 vertical labelPlacement
|
|
57308
57315
|
if (type === 'dot') {
|
|
@@ -57321,9 +57328,9 @@ var Step = function Step(props) {
|
|
|
57321
57328
|
};
|
|
57322
57329
|
var status = getStatus();
|
|
57323
57330
|
var labelPlacement = getLabelPlacement();
|
|
57324
|
-
var rootClass = classnames_default()(styles.step, className, styles[status], defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, styles.disabled,
|
|
57331
|
+
var rootClass = classnames_default()(styles.step, className, styles[status], defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, styles.disabled, isDisabled), styles.finish, current > index), styles.horizontalLabel, labelPlacement === 'horizontal'), styles.verticalLabel, labelPlacement === 'vertical'), styles.widthDescription, !!description));
|
|
57325
57332
|
var handleChange = function handleChange(e) {
|
|
57326
|
-
if (
|
|
57333
|
+
if (isDisabled) return;
|
|
57327
57334
|
onClick === null || onClick === void 0 || onClick(e, index, id);
|
|
57328
57335
|
onChange === null || onChange === void 0 || onChange(index);
|
|
57329
57336
|
};
|
|
@@ -57364,7 +57371,10 @@ var Step = function Step(props) {
|
|
|
57364
57371
|
var StepWidthContext = function StepWidthContext(props) {
|
|
57365
57372
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(steps_context.Consumer, {
|
|
57366
57373
|
children: function children(value) {
|
|
57367
|
-
|
|
57374
|
+
var disabled = 'disabled' in props ? props.disabled : value.disabled;
|
|
57375
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Step, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, props), value), {}, {
|
|
57376
|
+
disabled: disabled
|
|
57377
|
+
}));
|
|
57368
57378
|
}
|
|
57369
57379
|
});
|
|
57370
57380
|
};
|
|
@@ -57385,6 +57395,7 @@ var Steps = function Steps(props) {
|
|
|
57385
57395
|
_props$type = props.type,
|
|
57386
57396
|
type = _props$type === void 0 ? 'default' : _props$type,
|
|
57387
57397
|
size = props.size,
|
|
57398
|
+
disabled = props.disabled,
|
|
57388
57399
|
status = props.status,
|
|
57389
57400
|
_props$direction = props.direction,
|
|
57390
57401
|
directionProp = _props$direction === void 0 ? 'horizontal' : _props$direction,
|
|
@@ -57430,6 +57441,7 @@ var Steps = function Steps(props) {
|
|
|
57430
57441
|
labelPlacement: labelPlacement,
|
|
57431
57442
|
size: size,
|
|
57432
57443
|
type: type,
|
|
57444
|
+
disabled: disabled,
|
|
57433
57445
|
onChange: onChange
|
|
57434
57446
|
},
|
|
57435
57447
|
children: renderStep()
|
|
@@ -58918,7 +58930,8 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
58918
58930
|
var scrollContainerHeight = Math.max(((_props$scrollRef$curr = props.scrollRef.current) === null || _props$scrollRef$curr === void 0 ? void 0 : _props$scrollRef$curr.clientHeight) || 0, 200);
|
|
58919
58931
|
for (var i = 0; i <= maxIndex; i++) {
|
|
58920
58932
|
context.rowSpanRows = 0;
|
|
58921
|
-
|
|
58933
|
+
var currentRowHeight = context.cachedHeight[i] || props.rowHeight;
|
|
58934
|
+
sum += currentRowHeight;
|
|
58922
58935
|
var rowSpanHeight = 0;
|
|
58923
58936
|
if (rowSpanInfo) {
|
|
58924
58937
|
var siblingsIndexs = [];
|
|
@@ -58945,6 +58958,14 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
58945
58958
|
}
|
|
58946
58959
|
if (currentIndex !== startIndex) {
|
|
58947
58960
|
setStartIndex(currentIndex);
|
|
58961
|
+
|
|
58962
|
+
// startIndex处于上方某个合并行的中间一行时,可能引起translate闪烁
|
|
58963
|
+
if (startIndex < currentIndex) {
|
|
58964
|
+
context.autoAddRows = currentIndex - startIndex;
|
|
58965
|
+
setTimeout(function () {
|
|
58966
|
+
context.autoAddRows = 0;
|
|
58967
|
+
}, 300);
|
|
58968
|
+
}
|
|
58948
58969
|
}
|
|
58949
58970
|
setTop(top);
|
|
58950
58971
|
};
|
|
@@ -60071,7 +60092,7 @@ var Tr = function Tr(props) {
|
|
|
60071
60092
|
var clickEvent = col.type === 'expand' ? function () {
|
|
60072
60093
|
props.handleExpandClick(col, props.rawData, props.rowIndex);
|
|
60073
60094
|
} : undefined;
|
|
60074
|
-
|
|
60095
|
+
var expandInstance = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
60075
60096
|
className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.iconWrapper, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.expandIconWrapper),
|
|
60076
60097
|
onClick: clickEvent,
|
|
60077
60098
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
@@ -60080,6 +60101,11 @@ var Tr = function Tr(props) {
|
|
|
60080
60101
|
children: props.expanded ? icons_config.table.Expand : icons_config.table.Collapse
|
|
60081
60102
|
})
|
|
60082
60103
|
});
|
|
60104
|
+
if (props.expandIcon && typeof props.expandIcon === 'function') {
|
|
60105
|
+
var result = props.expandIcon(props.rawData, props.rowIndex, props.expanded, expandInstance, clickEvent);
|
|
60106
|
+
return result;
|
|
60107
|
+
}
|
|
60108
|
+
return expandInstance;
|
|
60083
60109
|
}
|
|
60084
60110
|
if (col.type === 'checkbox') {
|
|
60085
60111
|
var instance = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
@@ -60159,12 +60185,7 @@ var Tr = function Tr(props) {
|
|
|
60159
60185
|
onClick: props.onCellClick ? function () {
|
|
60160
60186
|
return handleCellClick(data[i].data, i);
|
|
60161
60187
|
} : undefined,
|
|
60162
|
-
children:
|
|
60163
|
-
style: {
|
|
60164
|
-
height: 0
|
|
60165
|
-
},
|
|
60166
|
-
children: $tdContent
|
|
60167
|
-
}) : $tdContent
|
|
60188
|
+
children: $tdContent
|
|
60168
60189
|
}, col.key);
|
|
60169
60190
|
tds.push(td);
|
|
60170
60191
|
if (data[i].colSpan) skip = data[i].colSpan - 1;
|
|
@@ -60303,6 +60324,7 @@ var Tr = function Tr(props) {
|
|
|
60303
60324
|
treeFunc: props.treeFunc,
|
|
60304
60325
|
treeExpandLevel: props.treeExpandLevel,
|
|
60305
60326
|
treeEmptyExpand: props.treeEmptyExpand,
|
|
60327
|
+
expandIcon: props.expandIcon,
|
|
60306
60328
|
treeExpandIcon: props.treeExpandIcon,
|
|
60307
60329
|
loader: props.loader,
|
|
60308
60330
|
isEmptyTree: props.isEmptyTree,
|
|
@@ -60730,6 +60752,7 @@ var emptyRef = {
|
|
|
60730
60752
|
expandKeys: props.expandKeys,
|
|
60731
60753
|
datum: datum,
|
|
60732
60754
|
treeEmptyExpand: props.treeEmptyExpand,
|
|
60755
|
+
expandIcon: props.expandIcon,
|
|
60733
60756
|
treeExpandIcon: props.treeExpandIcon,
|
|
60734
60757
|
loader: props.loader,
|
|
60735
60758
|
isEmptyTree: isEmptyTree,
|
|
@@ -67144,7 +67167,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
67144
67167
|
|
|
67145
67168
|
|
|
67146
67169
|
/* harmony default export */ var src_0 = ({
|
|
67147
|
-
version: '3.5.4-
|
|
67170
|
+
version: '3.5.4-fix.1'
|
|
67148
67171
|
});
|
|
67149
67172
|
}();
|
|
67150
67173
|
/******/ return __webpack_exports__;
|