shineout 3.4.0-beta.10 → 3.4.0-beta.12
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 +37 -12
- 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
|
@@ -492,5 +492,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
492
492
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
493
493
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
494
494
|
var _default = exports.default = {
|
|
495
|
-
version: '3.4.0-beta.
|
|
495
|
+
version: '3.4.0-beta.12'
|
|
496
496
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11991,7 +11991,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11991
11991
|
};
|
|
11992
11992
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11993
11993
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11994
|
-
/* harmony default export */ var version = ('3.4.0-beta.
|
|
11994
|
+
/* harmony default export */ var version = ('3.4.0-beta.12');
|
|
11995
11995
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11996
11996
|
|
|
11997
11997
|
|
|
@@ -18129,7 +18129,10 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
18129
18129
|
},
|
|
18130
18130
|
datetimeHide: {
|
|
18131
18131
|
opacity: '0',
|
|
18132
|
-
pointerEvents: 'none'
|
|
18132
|
+
pointerEvents: 'none',
|
|
18133
|
+
'& > span': {
|
|
18134
|
+
display: 'none'
|
|
18135
|
+
}
|
|
18133
18136
|
},
|
|
18134
18137
|
quickPicker: {
|
|
18135
18138
|
padding: "".concat(src.datePickerQuickPanelPaddingY, " ").concat(src.datePickerQuickPanelPaddingX),
|
|
@@ -22044,7 +22047,11 @@ var rateStyle = {
|
|
|
22044
22047
|
width: '100%',
|
|
22045
22048
|
height: '100%',
|
|
22046
22049
|
transition: 'none',
|
|
22047
|
-
color: src.rateBackgroundColor
|
|
22050
|
+
color: src.rateBackgroundColor,
|
|
22051
|
+
'& > svg': {
|
|
22052
|
+
width: '1em',
|
|
22053
|
+
height: '1em'
|
|
22054
|
+
}
|
|
22048
22055
|
},
|
|
22049
22056
|
itemFront: {
|
|
22050
22057
|
position: 'absolute',
|
|
@@ -22053,7 +22060,11 @@ var rateStyle = {
|
|
|
22053
22060
|
right: 0,
|
|
22054
22061
|
bottom: 0,
|
|
22055
22062
|
opacity: 0,
|
|
22056
|
-
color: src.rateFrontBackgroundColor
|
|
22063
|
+
color: src.rateFrontBackgroundColor,
|
|
22064
|
+
'& > svg': {
|
|
22065
|
+
width: '1em',
|
|
22066
|
+
height: '1em'
|
|
22067
|
+
}
|
|
22057
22068
|
},
|
|
22058
22069
|
itemHalf: {
|
|
22059
22070
|
position: 'absolute',
|
|
@@ -41876,7 +41887,8 @@ var Day = function Day(props) {
|
|
|
41876
41887
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooter,
|
|
41877
41888
|
dir: direction,
|
|
41878
41889
|
style: {
|
|
41879
|
-
borderTop: props.needConfirm && props.range ? 'none' :
|
|
41890
|
+
borderTop: props.needConfirm && props.range ? 'none' : undefined,
|
|
41891
|
+
marginTop: props.needConfirm && props.range ? -16 : undefined
|
|
41880
41892
|
},
|
|
41881
41893
|
children: [props.type === 'datetime' && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
41882
41894
|
className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.pickerFooterTime, styles === null || styles === void 0 ? void 0 : styles.datetime, !timeStr && (styles === null || styles === void 0 ? void 0 : styles.datetimeHide)),
|
|
@@ -50351,7 +50363,8 @@ var Root = function Root(props) {
|
|
|
50351
50363
|
|
|
50352
50364
|
|
|
50353
50365
|
|
|
50354
|
-
|
|
50366
|
+
|
|
50367
|
+
var tree_excluded = ["jssStyle", "line", "childrenKey", "data", "value", "mode", "keygen", "expanded", "expandIcons", "iconClass", "leafClass", "nodeClass", "contentClass", "renderItem", "defaultValue", "dataUpdate", "childrenClass", "defaultExpandAll", "defaultExpanded", "parentClickExpand", "doubleClickExpand", "dragImageSelector", "dragImageStyle", "dragSibling", "unmatch", "dragHoverExpand", "active", "setActive", "disabled", "inlineNode", "highlight", "className", "onClick", "loader", "getDatum", "onDrop", "onExpand", "onChange", "onDragEnd", "onDragLeave", "onDragOver", "onDragStart", "datum"];
|
|
50355
50368
|
|
|
50356
50369
|
|
|
50357
50370
|
|
|
@@ -50390,10 +50403,11 @@ var Tree = function Tree(props) {
|
|
|
50390
50403
|
dragSibling = props.dragSibling,
|
|
50391
50404
|
unmatch = props.unmatch,
|
|
50392
50405
|
dragHoverExpand = props.dragHoverExpand,
|
|
50393
|
-
|
|
50406
|
+
propActive = props.active,
|
|
50407
|
+
propSetActive = props.setActive,
|
|
50394
50408
|
disabled = props.disabled,
|
|
50395
50409
|
inlineNode = props.inlineNode,
|
|
50396
|
-
|
|
50410
|
+
propHighlight = props.highlight,
|
|
50397
50411
|
className = props.className,
|
|
50398
50412
|
onClick = props.onClick,
|
|
50399
50413
|
loader = props.loader,
|
|
@@ -50407,6 +50421,17 @@ var Tree = function Tree(props) {
|
|
|
50407
50421
|
onDragStart = props.onDragStart,
|
|
50408
50422
|
propsDatum = props.datum,
|
|
50409
50423
|
rest = objectWithoutProperties_default()(props, tree_excluded);
|
|
50424
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(propActive),
|
|
50425
|
+
_useState2 = slicedToArray_default()(_useState, 2),
|
|
50426
|
+
active = _useState2[0],
|
|
50427
|
+
setActive = _useState2[1];
|
|
50428
|
+
var isActiveControlled = ('active' in props);
|
|
50429
|
+
var highlight = propHighlight !== null && propHighlight !== void 0 ? propHighlight : isActiveControlled;
|
|
50430
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
50431
|
+
if (isActiveControlled && propActive !== active) {
|
|
50432
|
+
setActive(propActive);
|
|
50433
|
+
}
|
|
50434
|
+
}, [active, propActive]);
|
|
50410
50435
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
50411
50436
|
mounted: false
|
|
50412
50437
|
}),
|
|
@@ -50445,14 +50470,14 @@ var Tree = function Tree(props) {
|
|
|
50445
50470
|
});
|
|
50446
50471
|
};
|
|
50447
50472
|
var handleUpdateActive = function handleUpdateActive(active) {
|
|
50473
|
+
setActive(active);
|
|
50474
|
+
propSetActive === null || propSetActive === void 0 || propSetActive(active);
|
|
50448
50475
|
datum.updateMap.forEach(function (update, id) {
|
|
50449
50476
|
update('active', id === active);
|
|
50450
50477
|
});
|
|
50451
50478
|
};
|
|
50452
50479
|
var handleNodeClick = function handleNodeClick(node, id) {
|
|
50453
|
-
|
|
50454
|
-
handleUpdateActive(id);
|
|
50455
|
-
}
|
|
50480
|
+
handleUpdateActive(id);
|
|
50456
50481
|
if (onClick) {
|
|
50457
50482
|
onClick(node, id, datum.getPath(id));
|
|
50458
50483
|
}
|
|
@@ -64865,7 +64890,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
64865
64890
|
|
|
64866
64891
|
|
|
64867
64892
|
/* harmony default export */ var src_0 = ({
|
|
64868
|
-
version: '3.4.0-beta.
|
|
64893
|
+
version: '3.4.0-beta.12'
|
|
64869
64894
|
});
|
|
64870
64895
|
}();
|
|
64871
64896
|
/******/ return __webpack_exports__;
|