shineout 3.3.3 → 3.3.5
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 +40 -45
- 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
|
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
476
476
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
477
477
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
478
478
|
var _default = exports.default = {
|
|
479
|
-
version: '3.3.
|
|
479
|
+
version: '3.3.5'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11968,7 +11968,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11968
11968
|
};
|
|
11969
11969
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11970
11970
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11971
|
-
/* harmony default export */ var version = ('3.3.
|
|
11971
|
+
/* harmony default export */ var version = ('3.3.5');
|
|
11972
11972
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11973
11973
|
|
|
11974
11974
|
|
|
@@ -24444,7 +24444,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({}, globalStyle
|
|
|
24444
24444
|
content: '""',
|
|
24445
24445
|
position: 'absolute',
|
|
24446
24446
|
top: 0,
|
|
24447
|
-
bottom:
|
|
24447
|
+
bottom: -1,
|
|
24448
24448
|
width: '5px'
|
|
24449
24449
|
},
|
|
24450
24450
|
'&[dir=ltr]::after': {
|
|
@@ -25326,7 +25326,7 @@ var tabsStyle = {
|
|
|
25326
25326
|
}
|
|
25327
25327
|
}, getCardStyle()), getLineStyle()), getDashStyle()), getFillStyle()), getButtonStyle()), getHeaderStyle()),
|
|
25328
25328
|
headerScroll: {
|
|
25329
|
-
transition: 'all .
|
|
25329
|
+
transition: 'all .2s cubic-bezier(.34,.69,.1,1)'
|
|
25330
25330
|
},
|
|
25331
25331
|
header: {
|
|
25332
25332
|
flex: 1,
|
|
@@ -26551,22 +26551,6 @@ var treeStyle = {
|
|
|
26551
26551
|
cursor: 'pointer',
|
|
26552
26552
|
padding: "0 ".concat(src.treePaddingX),
|
|
26553
26553
|
borderRadius: src.treeContentBorderRadius,
|
|
26554
|
-
position: 'relative',
|
|
26555
|
-
'&[data-expanded="true"]::before': {
|
|
26556
|
-
content: '""',
|
|
26557
|
-
position: 'absolute',
|
|
26558
|
-
top: 24,
|
|
26559
|
-
bottom: 0,
|
|
26560
|
-
left: -12,
|
|
26561
|
-
width: 1,
|
|
26562
|
-
background: '#ebebeb'
|
|
26563
|
-
},
|
|
26564
|
-
'&[dir=ltr][data-expanded="true"]::before': {
|
|
26565
|
-
left: -12
|
|
26566
|
-
},
|
|
26567
|
-
'&[dir=rtl][data-expanded="true"]::before': {
|
|
26568
|
-
right: -12
|
|
26569
|
-
},
|
|
26570
26554
|
'$contentDisabled &': {
|
|
26571
26555
|
'& $text': {
|
|
26572
26556
|
color: src.treeContentDisabledFontColor
|
|
@@ -26597,7 +26581,8 @@ var treeStyle = {
|
|
|
26597
26581
|
color: src.treeFontColor,
|
|
26598
26582
|
fontWeight: src.treeFontWeight,
|
|
26599
26583
|
paddingTop: src.treeTextPaddingY,
|
|
26600
|
-
paddingBottom: src.treeTextPaddingY
|
|
26584
|
+
paddingBottom: src.treeTextPaddingY,
|
|
26585
|
+
whiteSpace: 'nowrap'
|
|
26601
26586
|
},
|
|
26602
26587
|
// textDisabled: {
|
|
26603
26588
|
// color: Token.treeItemDisabledFontColor,
|
|
@@ -28220,6 +28205,9 @@ var isLink = function isLink(el) {
|
|
|
28220
28205
|
}
|
|
28221
28206
|
return false;
|
|
28222
28207
|
};
|
|
28208
|
+
function isNamedComponent(type) {
|
|
28209
|
+
return (is_isObject(type) || isFunc(type)) && type.hasOwnProperty('displayName');
|
|
28210
|
+
}
|
|
28223
28211
|
var isMacOS = function isMacOS() {
|
|
28224
28212
|
return is_isBrowser() && /macintosh|mac os x/i.test(navigator.userAgent);
|
|
28225
28213
|
};
|
|
@@ -41076,6 +41064,8 @@ var Time = function Time(props) {
|
|
|
41076
41064
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooterRight,
|
|
41077
41065
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_button_button, {
|
|
41078
41066
|
size: 'small',
|
|
41067
|
+
mode: "text",
|
|
41068
|
+
type: "primary",
|
|
41079
41069
|
jssStyle: props.jssStyle,
|
|
41080
41070
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooterBtn,
|
|
41081
41071
|
onClick: selNow,
|
|
@@ -41249,12 +41239,16 @@ var Day = function Day(props) {
|
|
|
41249
41239
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooterRight,
|
|
41250
41240
|
children: [props.showSelNow && props.type === 'date' && /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_button_button, {
|
|
41251
41241
|
size: 'small',
|
|
41242
|
+
mode: "text",
|
|
41243
|
+
type: "primary",
|
|
41252
41244
|
jssStyle: jssStyle,
|
|
41253
41245
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooterBtn,
|
|
41254
41246
|
onClick: selNow,
|
|
41255
41247
|
children: getLocale(locale, 'now')
|
|
41256
41248
|
}), props.showSelNow && props.type === 'datetime' && /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_button_button, {
|
|
41257
41249
|
size: 'small',
|
|
41250
|
+
mode: "text",
|
|
41251
|
+
type: "primary",
|
|
41258
41252
|
jssStyle: jssStyle,
|
|
41259
41253
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooterBtn,
|
|
41260
41254
|
onClick: selNow,
|
|
@@ -48429,13 +48423,11 @@ var ListOption = function ListOption(props) {
|
|
|
48429
48423
|
|
|
48430
48424
|
|
|
48431
48425
|
|
|
48432
|
-
|
|
48433
48426
|
var list_List = function List(props) {
|
|
48434
48427
|
var _jssStyle$select;
|
|
48435
48428
|
var jssStyle = props.jssStyle,
|
|
48436
48429
|
data = props.data,
|
|
48437
48430
|
size = props.size,
|
|
48438
|
-
header = props.header,
|
|
48439
48431
|
keygen = props.keygen,
|
|
48440
48432
|
datum = props.datum,
|
|
48441
48433
|
multiple = props.multiple,
|
|
@@ -48443,7 +48435,6 @@ var list_List = function List(props) {
|
|
|
48443
48435
|
_props$itemsInView = props.itemsInView,
|
|
48444
48436
|
itemsInView = _props$itemsInView === void 0 ? 10 : _props$itemsInView,
|
|
48445
48437
|
lineHeightProp = props.lineHeight,
|
|
48446
|
-
loading = props.loading,
|
|
48447
48438
|
controlType = props.controlType,
|
|
48448
48439
|
hideCreateOption = props.hideCreateOption,
|
|
48449
48440
|
optionListRef = props.optionListRef,
|
|
@@ -48545,16 +48536,6 @@ var list_List = function List(props) {
|
|
|
48545
48536
|
}
|
|
48546
48537
|
}
|
|
48547
48538
|
});
|
|
48548
|
-
var renderLoading = function renderLoading() {
|
|
48549
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48550
|
-
children: "loading"
|
|
48551
|
-
});
|
|
48552
|
-
};
|
|
48553
|
-
var renderHeader = function renderHeader() {
|
|
48554
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48555
|
-
children: "header"
|
|
48556
|
-
});
|
|
48557
|
-
};
|
|
48558
48539
|
var renderItem = function renderItem(item, index, key) {
|
|
48559
48540
|
return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
48560
48541
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(list_option, {
|
|
@@ -48581,7 +48562,6 @@ var list_List = function List(props) {
|
|
|
48581
48562
|
});
|
|
48582
48563
|
};
|
|
48583
48564
|
var renderList = function renderList() {
|
|
48584
|
-
if (loading) return renderLoading();
|
|
48585
48565
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
|
|
48586
48566
|
virtualRef: virtualRef,
|
|
48587
48567
|
data: data,
|
|
@@ -48606,9 +48586,9 @@ var list_List = function List(props) {
|
|
|
48606
48586
|
};
|
|
48607
48587
|
}
|
|
48608
48588
|
}, []);
|
|
48609
|
-
return /*#__PURE__*/(0,jsx_runtime.
|
|
48589
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
48610
48590
|
className: rootClass,
|
|
48611
|
-
children:
|
|
48591
|
+
children: renderList()
|
|
48612
48592
|
});
|
|
48613
48593
|
};
|
|
48614
48594
|
/* harmony default export */ var select_list = (list_List);
|
|
@@ -50502,6 +50482,15 @@ function Select(props0) {
|
|
|
50502
50482
|
}
|
|
50503
50483
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(select_list, objectSpread2_default()({}, listProps));
|
|
50504
50484
|
};
|
|
50485
|
+
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(''),
|
|
50486
|
+
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
50487
|
+
absoluteListUpdateKey = _useState6[0],
|
|
50488
|
+
setAbsoluteListUpdateKey = _useState6[1];
|
|
50489
|
+
// 当树形数据展开时,需要更新 AbsoluteList 的位置
|
|
50490
|
+
var onExpandWrap = usePersistFn(function (value) {
|
|
50491
|
+
onExpand === null || onExpand === void 0 || onExpand(value);
|
|
50492
|
+
setAbsoluteListUpdateKey(value === null || value === void 0 ? void 0 : value.join(','));
|
|
50493
|
+
});
|
|
50505
50494
|
var renderTreeList = function renderTreeList() {
|
|
50506
50495
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(list_tree, {
|
|
50507
50496
|
jssStyle: jssStyle,
|
|
@@ -50513,7 +50502,7 @@ function Select(props0) {
|
|
|
50513
50502
|
height: height,
|
|
50514
50503
|
defaultExpandAll: defaultExpandAll,
|
|
50515
50504
|
defaultExpanded: defaultExpanded,
|
|
50516
|
-
onExpand:
|
|
50505
|
+
onExpand: onExpandWrap,
|
|
50517
50506
|
childrenKey: childrenKey,
|
|
50518
50507
|
closePop: closePop,
|
|
50519
50508
|
renderItem: renderItem,
|
|
@@ -50601,6 +50590,7 @@ function Select(props0) {
|
|
|
50601
50590
|
popupGap: 4,
|
|
50602
50591
|
popupElRef: popupRef,
|
|
50603
50592
|
parentElRef: targetRef,
|
|
50593
|
+
updateKey: absoluteListUpdateKey,
|
|
50604
50594
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(animation_list, {
|
|
50605
50595
|
onRef: popupRef,
|
|
50606
50596
|
show: open,
|
|
@@ -57398,7 +57388,7 @@ var emptyRef = {
|
|
|
57398
57388
|
});
|
|
57399
57389
|
};
|
|
57400
57390
|
var renderTable = function renderTable() {
|
|
57401
|
-
var _props$summary, _sticky$top, _props$data3, _props$data4;
|
|
57391
|
+
var _props$summary, _sticky$top, _props$data3, _props$style, _props$data4;
|
|
57402
57392
|
var Group = /*#__PURE__*/(0,jsx_runtime.jsx)(table_colgroup, {
|
|
57403
57393
|
colgroup: colgroup,
|
|
57404
57394
|
columns: columns,
|
|
@@ -57470,7 +57460,7 @@ var emptyRef = {
|
|
|
57470
57460
|
css: sticky === null || sticky === void 0 ? void 0 : sticky.css,
|
|
57471
57461
|
parent: tableRef === null || tableRef === void 0 ? void 0 : tableRef.current
|
|
57472
57462
|
};
|
|
57473
|
-
var isRenderBaseTable = !virtual && !isScrollY && !props.sticky && ((_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.length);
|
|
57463
|
+
var isRenderBaseTable = !virtual && !isScrollY && !props.sticky && ((_props$data3 = props.data) === null || _props$data3 === void 0 ? void 0 : _props$data3.length) && !((_props$style = props.style) !== null && _props$style !== void 0 && _props$style.height) && !props.height;
|
|
57474
57464
|
var headWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headWrapper, isScrollY && scrollBarWidth && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.scrollY));
|
|
57475
57465
|
var footWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.footWrapper, isScrollY && scrollBarWidth && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.scrollY));
|
|
57476
57466
|
if (isRenderBaseTable) {
|
|
@@ -58221,7 +58211,8 @@ var tabs_excluded = ["jssStyle", "align", "children", "shape", "position", "lazy
|
|
|
58221
58211
|
|
|
58222
58212
|
var tabs_isEmpty = is_isEmpty,
|
|
58223
58213
|
tabs_isObject = is_isObject,
|
|
58224
|
-
tabs_isNumber = isNumber
|
|
58214
|
+
tabs_isNumber = isNumber,
|
|
58215
|
+
tabs_isNamedComponent = isNamedComponent;
|
|
58225
58216
|
var Tabs = function Tabs(props) {
|
|
58226
58217
|
var _jssStyle$tabs;
|
|
58227
58218
|
var jssStyle = props.jssStyle,
|
|
@@ -58352,10 +58343,13 @@ var Tabs = function Tabs(props) {
|
|
|
58352
58343
|
style: panelStyle,
|
|
58353
58344
|
children: external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.toArray(children).map(function (child, index) {
|
|
58354
58345
|
var Chlid = child;
|
|
58355
|
-
|
|
58356
|
-
|
|
58357
|
-
|
|
58358
|
-
|
|
58346
|
+
if (tabs_isNamedComponent(Chlid.type) && Chlid.type.displayName === 'ShineoutTabsPanel') {
|
|
58347
|
+
return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(Chlid, {
|
|
58348
|
+
id: Chlid.props.id !== undefined ? Chlid.props.id : index,
|
|
58349
|
+
active: active
|
|
58350
|
+
});
|
|
58351
|
+
}
|
|
58352
|
+
return null;
|
|
58359
58353
|
})
|
|
58360
58354
|
});
|
|
58361
58355
|
};
|
|
@@ -58364,6 +58358,7 @@ var Tabs = function Tabs(props) {
|
|
|
58364
58358
|
var border = getSplitColor();
|
|
58365
58359
|
external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.toArray(children).forEach(function (child, index) {
|
|
58366
58360
|
var Chlid = child;
|
|
58361
|
+
if (!Chlid || !Chlid.type) return;
|
|
58367
58362
|
var childBorder = Chlid.props.splitColor || Chlid.props.border;
|
|
58368
58363
|
var _Chlid$props$id = Chlid.props.id,
|
|
58369
58364
|
id = _Chlid$props$id === void 0 ? index : _Chlid$props$id;
|
|
@@ -63732,7 +63727,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
63732
63727
|
|
|
63733
63728
|
|
|
63734
63729
|
/* harmony default export */ var src_0 = ({
|
|
63735
|
-
version: '3.3.
|
|
63730
|
+
version: '3.3.5'
|
|
63736
63731
|
});
|
|
63737
63732
|
}();
|
|
63738
63733
|
/******/ return __webpack_exports__;
|