shineout 3.5.4-beta.9 → 3.5.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.d.ts +1 -1
- package/cjs/index.js +8 -1
- package/dist/shineout.js +83 -59
- 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'
|
|
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');
|
|
12034
12044
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12035
12045
|
|
|
12036
12046
|
|
|
@@ -33909,6 +33919,7 @@ var useInputFormat = function useInputFormat(props) {
|
|
|
33909
33919
|
|
|
33910
33920
|
|
|
33911
33921
|
|
|
33922
|
+
|
|
33912
33923
|
function insertPoint(name) {
|
|
33913
33924
|
var reg = /(\[\d+\])/gi;
|
|
33914
33925
|
return name.replace(reg, function (s, m, i) {
|
|
@@ -34162,12 +34173,31 @@ var removeProps = function removeProps(target, remove) {
|
|
|
34162
34173
|
}
|
|
34163
34174
|
return a;
|
|
34164
34175
|
};
|
|
34176
|
+
|
|
34177
|
+
/**
|
|
34178
|
+
* 获取数据对象的全量key路径
|
|
34179
|
+
* @param obj 数据对象
|
|
34180
|
+
* @param parentKey 父级key
|
|
34181
|
+
* @returns 全量key路径
|
|
34182
|
+
* @example
|
|
34183
|
+
* const obj = { a: { b: { c: 1 } } };
|
|
34184
|
+
* const keys = getAllKeyPaths(obj);
|
|
34185
|
+
* console.log(keys); // ['a.b.c', 'a.b', 'a']
|
|
34186
|
+
*/
|
|
34165
34187
|
var getAllKeyPaths = function getAllKeyPaths(obj) {
|
|
34166
34188
|
var parentKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
34167
34189
|
return Object.keys(obj).reduce(function (keys, key) {
|
|
34168
34190
|
var newKey = parentKey ? "".concat(parentKey, ".").concat(key) : key;
|
|
34169
34191
|
if (Array.isArray(obj[key])) {
|
|
34170
|
-
|
|
34192
|
+
var childrenKeys = obj[key].map(function (item, index) {
|
|
34193
|
+
if (item !== null && typeof_default()(item) === 'object') {
|
|
34194
|
+
return getAllKeyPaths(item, "".concat(newKey, "[").concat(index, "]"));
|
|
34195
|
+
}
|
|
34196
|
+
return null;
|
|
34197
|
+
}).filter(function (item) {
|
|
34198
|
+
return item !== null;
|
|
34199
|
+
});
|
|
34200
|
+
return keys.concat.apply(keys, toConsumableArray_default()(childrenKeys)).concat(newKey);
|
|
34171
34201
|
}
|
|
34172
34202
|
return keys.concat(obj[key] !== null && typeof_default()(obj[key]) === 'object' ? getAllKeyPaths(obj[key], newKey) : newKey);
|
|
34173
34203
|
}, []);
|
|
@@ -37276,7 +37306,7 @@ var Scroll = function Scroll(props) {
|
|
|
37276
37306
|
defaultHeight = _props$defaultHeight === void 0 ? 0 : _props$defaultHeight;
|
|
37277
37307
|
var _useResize = useResize({
|
|
37278
37308
|
targetRef: containerRef,
|
|
37279
|
-
timer:
|
|
37309
|
+
timer: 100
|
|
37280
37310
|
}),
|
|
37281
37311
|
width = _useResize.width,
|
|
37282
37312
|
h = _useResize.height;
|
|
@@ -37562,10 +37592,10 @@ var VirtualList = function VirtualList(props) {
|
|
|
37562
37592
|
height: height,
|
|
37563
37593
|
scrollWidth: 0,
|
|
37564
37594
|
scrollHeight: scrollHeight,
|
|
37565
|
-
wrapperRef: wrapperRef,
|
|
37566
37595
|
childrenStyle: {
|
|
37567
37596
|
width: '100%'
|
|
37568
37597
|
},
|
|
37598
|
+
wrapperRef: wrapperRef,
|
|
37569
37599
|
onScroll: handleScroll,
|
|
37570
37600
|
onMouseMove: handleMouseMove,
|
|
37571
37601
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Tag, {
|
|
@@ -48174,14 +48204,12 @@ function useFormInstance() {
|
|
|
48174
48204
|
;// CONCATENATED MODULE: ../base/src/form/form.tsx
|
|
48175
48205
|
|
|
48176
48206
|
|
|
48177
|
-
|
|
48178
48207
|
var form_excluded = ["jssStyle", "className", "style", "children", "formRef"];
|
|
48179
48208
|
|
|
48180
48209
|
|
|
48181
48210
|
|
|
48182
48211
|
|
|
48183
48212
|
|
|
48184
|
-
|
|
48185
48213
|
var Form = function Form(props) {
|
|
48186
48214
|
var _jssStyle$form;
|
|
48187
48215
|
var jssStyle = props.jssStyle,
|
|
@@ -48222,16 +48250,6 @@ var Form = function Form(props) {
|
|
|
48222
48250
|
type: 'withValue'
|
|
48223
48251
|
});
|
|
48224
48252
|
});
|
|
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
48253
|
var formRefObj = useLatestObj({
|
|
48236
48254
|
clearValidate: formFunc.clearValidate,
|
|
48237
48255
|
getValue: formFunc.getValue,
|
|
@@ -48241,7 +48259,7 @@ var Form = function Form(props) {
|
|
|
48241
48259
|
validateFields: validateFields,
|
|
48242
48260
|
validateFieldsWithValue: validateFieldsWithValue,
|
|
48243
48261
|
validateFieldsWithError: formFunc.validateFields,
|
|
48244
|
-
set:
|
|
48262
|
+
set: formFunc.setValue,
|
|
48245
48263
|
scrollToField: formFunc.scrollToField
|
|
48246
48264
|
});
|
|
48247
48265
|
external_root_React_commonjs2_react_commonjs_react_amd_react_default().useEffect(function () {
|
|
@@ -48290,17 +48308,17 @@ var Form = function Form(props) {
|
|
|
48290
48308
|
}
|
|
48291
48309
|
};
|
|
48292
48310
|
}, [formProps.onSubmit]);
|
|
48293
|
-
return /*#__PURE__*/(0,
|
|
48311
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("form", objectSpread2_default()(objectSpread2_default()({}, removeProps(formProps, {
|
|
48294
48312
|
onSubmit: true
|
|
48295
48313
|
})), {}, {
|
|
48296
48314
|
ref: formElRef,
|
|
48297
|
-
|
|
48298
|
-
|
|
48299
|
-
|
|
48300
|
-
|
|
48301
|
-
|
|
48302
|
-
})
|
|
48303
|
-
}))
|
|
48315
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, objectSpread2_default()(objectSpread2_default()({}, ProviderProps), {}, {
|
|
48316
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(FormContext.Provider, {
|
|
48317
|
+
value: formRefObj,
|
|
48318
|
+
children: children
|
|
48319
|
+
})
|
|
48320
|
+
}))
|
|
48321
|
+
}));
|
|
48304
48322
|
};
|
|
48305
48323
|
/* harmony default export */ var base_src_form_form = (Form);
|
|
48306
48324
|
;// CONCATENATED MODULE: ./src/form/form.tsx
|
|
@@ -48670,14 +48688,12 @@ var useFormFieldSet = function useFormFieldSet(props) {
|
|
|
48670
48688
|
|
|
48671
48689
|
|
|
48672
48690
|
|
|
48673
|
-
|
|
48674
48691
|
var form_fieldset_produce = utils_immer_produce;
|
|
48675
48692
|
var FormFieldSet = function FormFieldSet(props) {
|
|
48676
48693
|
var children = props.children,
|
|
48677
48694
|
empty = props.empty;
|
|
48678
48695
|
var _React$useRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef({
|
|
48679
|
-
ids: []
|
|
48680
|
-
lastValues: []
|
|
48696
|
+
ids: []
|
|
48681
48697
|
}),
|
|
48682
48698
|
context = _React$useRef.current;
|
|
48683
48699
|
var formFunc = useFormFunc();
|
|
@@ -48712,9 +48728,8 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
48712
48728
|
}
|
|
48713
48729
|
var valueArr = (formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name)) || [];
|
|
48714
48730
|
valueArr = Array.isArray(valueArr) ? valueArr : [valueArr];
|
|
48715
|
-
var result = [];
|
|
48716
48731
|
if (valueArr.length === 0 && valueArr && empty) {
|
|
48717
|
-
|
|
48732
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
48718
48733
|
children: empty(function (val) {
|
|
48719
48734
|
var newValue = form_fieldset_produce(valueArr, function (draft) {
|
|
48720
48735
|
draft.push(val);
|
|
@@ -48723,7 +48738,7 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
48723
48738
|
context.ids.push(generateUUID());
|
|
48724
48739
|
formFunc === null || formFunc === void 0 || formFunc.insertError(name, 0);
|
|
48725
48740
|
})
|
|
48726
|
-
}, 'empty')
|
|
48741
|
+
}, 'empty');
|
|
48727
48742
|
}
|
|
48728
48743
|
var errorList = (Array.isArray(error) ? error : [error]).filter(Boolean);
|
|
48729
48744
|
if (context.ids.length !== valueArr.length) {
|
|
@@ -48731,11 +48746,9 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
48731
48746
|
return generateUUID();
|
|
48732
48747
|
});
|
|
48733
48748
|
}
|
|
48734
|
-
valueArr.
|
|
48735
|
-
|
|
48736
|
-
|
|
48737
|
-
}
|
|
48738
|
-
result.push( /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
|
|
48749
|
+
return valueArr.map(function (v, i) {
|
|
48750
|
+
var _context$ids$i;
|
|
48751
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Provider, {
|
|
48739
48752
|
value: {
|
|
48740
48753
|
path: "".concat(ProviderValue.path, "[").concat(i, "]"),
|
|
48741
48754
|
validateFieldSet: validateFieldSet
|
|
@@ -48781,13 +48794,7 @@ var FormFieldSet = function FormFieldSet(props) {
|
|
|
48781
48794
|
formFunc === null || formFunc === void 0 || formFunc.spliceError(name, i);
|
|
48782
48795
|
}
|
|
48783
48796
|
})
|
|
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
|
|
48797
|
+
}, (_context$ids$i = context.ids[i]) !== null && _context$ids$i !== void 0 ? _context$ids$i : i);
|
|
48791
48798
|
});
|
|
48792
48799
|
};
|
|
48793
48800
|
/* harmony default export */ var form_fieldset = (FormFieldSet);
|
|
@@ -57303,6 +57310,7 @@ var Step = function Step(props) {
|
|
|
57303
57310
|
onChange = props.onChange;
|
|
57304
57311
|
var config = useConfig();
|
|
57305
57312
|
var styles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$steps = jssStyle.steps) === null || _jssStyle$steps === void 0 ? void 0 : _jssStyle$steps.call(jssStyle)) || {};
|
|
57313
|
+
var isDisabled = typeof disabled === 'function' ? disabled(index, id) : disabled;
|
|
57306
57314
|
var getLabelPlacement = function getLabelPlacement() {
|
|
57307
57315
|
// dot 类型只支持 vertical labelPlacement
|
|
57308
57316
|
if (type === 'dot') {
|
|
@@ -57321,9 +57329,9 @@ var Step = function Step(props) {
|
|
|
57321
57329
|
};
|
|
57322
57330
|
var status = getStatus();
|
|
57323
57331
|
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,
|
|
57332
|
+
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
57333
|
var handleChange = function handleChange(e) {
|
|
57326
|
-
if (
|
|
57334
|
+
if (isDisabled) return;
|
|
57327
57335
|
onClick === null || onClick === void 0 || onClick(e, index, id);
|
|
57328
57336
|
onChange === null || onChange === void 0 || onChange(index);
|
|
57329
57337
|
};
|
|
@@ -57364,7 +57372,10 @@ var Step = function Step(props) {
|
|
|
57364
57372
|
var StepWidthContext = function StepWidthContext(props) {
|
|
57365
57373
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(steps_context.Consumer, {
|
|
57366
57374
|
children: function children(value) {
|
|
57367
|
-
|
|
57375
|
+
var disabled = 'disabled' in props ? props.disabled : value.disabled;
|
|
57376
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Step, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, props), value), {}, {
|
|
57377
|
+
disabled: disabled
|
|
57378
|
+
}));
|
|
57368
57379
|
}
|
|
57369
57380
|
});
|
|
57370
57381
|
};
|
|
@@ -57385,6 +57396,7 @@ var Steps = function Steps(props) {
|
|
|
57385
57396
|
_props$type = props.type,
|
|
57386
57397
|
type = _props$type === void 0 ? 'default' : _props$type,
|
|
57387
57398
|
size = props.size,
|
|
57399
|
+
disabled = props.disabled,
|
|
57388
57400
|
status = props.status,
|
|
57389
57401
|
_props$direction = props.direction,
|
|
57390
57402
|
directionProp = _props$direction === void 0 ? 'horizontal' : _props$direction,
|
|
@@ -57430,6 +57442,7 @@ var Steps = function Steps(props) {
|
|
|
57430
57442
|
labelPlacement: labelPlacement,
|
|
57431
57443
|
size: size,
|
|
57432
57444
|
type: type,
|
|
57445
|
+
disabled: disabled,
|
|
57433
57446
|
onChange: onChange
|
|
57434
57447
|
},
|
|
57435
57448
|
children: renderStep()
|
|
@@ -58918,7 +58931,8 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
58918
58931
|
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
58932
|
for (var i = 0; i <= maxIndex; i++) {
|
|
58920
58933
|
context.rowSpanRows = 0;
|
|
58921
|
-
|
|
58934
|
+
var currentRowHeight = context.cachedHeight[i] || props.rowHeight;
|
|
58935
|
+
sum += currentRowHeight;
|
|
58922
58936
|
var rowSpanHeight = 0;
|
|
58923
58937
|
if (rowSpanInfo) {
|
|
58924
58938
|
var siblingsIndexs = [];
|
|
@@ -58945,6 +58959,14 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
58945
58959
|
}
|
|
58946
58960
|
if (currentIndex !== startIndex) {
|
|
58947
58961
|
setStartIndex(currentIndex);
|
|
58962
|
+
|
|
58963
|
+
// startIndex处于上方某个合并行的中间一行时,可能引起translate闪烁
|
|
58964
|
+
if (startIndex < currentIndex) {
|
|
58965
|
+
context.autoAddRows = currentIndex - startIndex;
|
|
58966
|
+
setTimeout(function () {
|
|
58967
|
+
context.autoAddRows = 0;
|
|
58968
|
+
}, 300);
|
|
58969
|
+
}
|
|
58948
58970
|
}
|
|
58949
58971
|
setTop(top);
|
|
58950
58972
|
};
|
|
@@ -60071,7 +60093,7 @@ var Tr = function Tr(props) {
|
|
|
60071
60093
|
var clickEvent = col.type === 'expand' ? function () {
|
|
60072
60094
|
props.handleExpandClick(col, props.rawData, props.rowIndex);
|
|
60073
60095
|
} : undefined;
|
|
60074
|
-
|
|
60096
|
+
var expandInstance = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
60075
60097
|
className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.iconWrapper, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.expandIconWrapper),
|
|
60076
60098
|
onClick: clickEvent,
|
|
60077
60099
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
@@ -60080,6 +60102,11 @@ var Tr = function Tr(props) {
|
|
|
60080
60102
|
children: props.expanded ? icons_config.table.Expand : icons_config.table.Collapse
|
|
60081
60103
|
})
|
|
60082
60104
|
});
|
|
60105
|
+
if (props.expandIcon && typeof props.expandIcon === 'function') {
|
|
60106
|
+
var result = props.expandIcon(props.rawData, props.rowIndex, props.expanded, expandInstance, clickEvent);
|
|
60107
|
+
return result;
|
|
60108
|
+
}
|
|
60109
|
+
return expandInstance;
|
|
60083
60110
|
}
|
|
60084
60111
|
if (col.type === 'checkbox') {
|
|
60085
60112
|
var instance = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
@@ -60159,12 +60186,7 @@ var Tr = function Tr(props) {
|
|
|
60159
60186
|
onClick: props.onCellClick ? function () {
|
|
60160
60187
|
return handleCellClick(data[i].data, i);
|
|
60161
60188
|
} : undefined,
|
|
60162
|
-
children:
|
|
60163
|
-
style: {
|
|
60164
|
-
height: 0
|
|
60165
|
-
},
|
|
60166
|
-
children: $tdContent
|
|
60167
|
-
}) : $tdContent
|
|
60189
|
+
children: $tdContent
|
|
60168
60190
|
}, col.key);
|
|
60169
60191
|
tds.push(td);
|
|
60170
60192
|
if (data[i].colSpan) skip = data[i].colSpan - 1;
|
|
@@ -60303,6 +60325,7 @@ var Tr = function Tr(props) {
|
|
|
60303
60325
|
treeFunc: props.treeFunc,
|
|
60304
60326
|
treeExpandLevel: props.treeExpandLevel,
|
|
60305
60327
|
treeEmptyExpand: props.treeEmptyExpand,
|
|
60328
|
+
expandIcon: props.expandIcon,
|
|
60306
60329
|
treeExpandIcon: props.treeExpandIcon,
|
|
60307
60330
|
loader: props.loader,
|
|
60308
60331
|
isEmptyTree: props.isEmptyTree,
|
|
@@ -60730,6 +60753,7 @@ var emptyRef = {
|
|
|
60730
60753
|
expandKeys: props.expandKeys,
|
|
60731
60754
|
datum: datum,
|
|
60732
60755
|
treeEmptyExpand: props.treeEmptyExpand,
|
|
60756
|
+
expandIcon: props.expandIcon,
|
|
60733
60757
|
treeExpandIcon: props.treeExpandIcon,
|
|
60734
60758
|
loader: props.loader,
|
|
60735
60759
|
isEmptyTree: isEmptyTree,
|
|
@@ -67144,7 +67168,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
67144
67168
|
|
|
67145
67169
|
|
|
67146
67170
|
/* harmony default export */ var src_0 = ({
|
|
67147
|
-
version: '3.5.4
|
|
67171
|
+
version: '3.5.4'
|
|
67148
67172
|
});
|
|
67149
67173
|
}();
|
|
67150
67174
|
/******/ return __webpack_exports__;
|