shineout 3.6.1 → 3.6.2-beta.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.js +1 -1
- package/dist/shineout.js +15 -6
- 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
|
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
514
514
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
515
515
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
516
516
|
var _default = exports.default = {
|
|
517
|
-
version: '3.6.1'
|
|
517
|
+
version: '3.6.2-beta.1'
|
|
518
518
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12139,7 +12139,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12139
12139
|
};
|
|
12140
12140
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12141
12141
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12142
|
-
/* harmony default export */ var version = ('3.6.1');
|
|
12142
|
+
/* harmony default export */ var version = ('3.6.2-beta.1');
|
|
12143
12143
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12144
12144
|
|
|
12145
12145
|
|
|
@@ -44194,6 +44194,9 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
|
|
|
44194
44194
|
var mode = getTypeMode(type);
|
|
44195
44195
|
var disabled = position === 'end' ? context.modeDisabledEnd[mode] : context.modeDisabledStart[mode];
|
|
44196
44196
|
var isDisabled = disabled ? disabled(date) : false;
|
|
44197
|
+
if (triggerType === 'input' && !isDisabled) {
|
|
44198
|
+
isDisabled = isDisabledInputDate(position === 'end' ? [currentArr[0], date] : [date, currentArr[1]]);
|
|
44199
|
+
}
|
|
44197
44200
|
if (type === 'datetime' && !isDisabled) {
|
|
44198
44201
|
var disabledTime = position === 'end' ? context.modeDisabledEnd['time'] : context.modeDisabledStart['time'];
|
|
44199
44202
|
isDisabled = disabledTime ? disabledTime(date, triggerType) : false;
|
|
@@ -44262,7 +44265,6 @@ var useDatePickerFormat = function useDatePickerFormat(props) {
|
|
|
44262
44265
|
formatValue = getFormatValueArr(inputValue);
|
|
44263
44266
|
}
|
|
44264
44267
|
}
|
|
44265
|
-
// const formatValue = getFormatValueArr(stateDate);
|
|
44266
44268
|
var v = range ? formatValue : formatValue[0];
|
|
44267
44269
|
if (range && (!stateDate[0] || !stateDate[1]) && !props.allowSingle) {
|
|
44268
44270
|
return;
|
|
@@ -63483,6 +63485,7 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
63483
63485
|
id = props.id,
|
|
63484
63486
|
indexInTabs = props.index,
|
|
63485
63487
|
tab = props.tab,
|
|
63488
|
+
background = props.background,
|
|
63486
63489
|
className = props.className,
|
|
63487
63490
|
style = props.style,
|
|
63488
63491
|
jssStyle = props.jssStyle;
|
|
@@ -63500,6 +63503,7 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
63500
63503
|
tab: tab,
|
|
63501
63504
|
disabled: props.disabled,
|
|
63502
63505
|
jssStyle: jssStyle,
|
|
63506
|
+
background: background,
|
|
63503
63507
|
color: props.color || (active === id ? color : undefined)
|
|
63504
63508
|
};
|
|
63505
63509
|
setTabs(function (prev) {
|
|
@@ -63537,7 +63541,8 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
63537
63541
|
keekAlive.current = true;
|
|
63538
63542
|
var panelClass = classnames_default()(className, panelStyle.panel, defineProperty_default()({}, panelStyle.show, isActive));
|
|
63539
63543
|
var styles = objectSpread2_default()({
|
|
63540
|
-
color: color
|
|
63544
|
+
color: color,
|
|
63545
|
+
background: background
|
|
63541
63546
|
}, style);
|
|
63542
63547
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63543
63548
|
className: panelClass,
|
|
@@ -63725,6 +63730,7 @@ var Tab = function Tab(props, _ref) {
|
|
|
63725
63730
|
var _jssStyle$tabs;
|
|
63726
63731
|
var jssStyle = props.jssStyle,
|
|
63727
63732
|
propTab = props.tab,
|
|
63733
|
+
background = props.background,
|
|
63728
63734
|
disabled = props.disabled,
|
|
63729
63735
|
id = props.id,
|
|
63730
63736
|
color = props.color;
|
|
@@ -63776,7 +63782,9 @@ var Tab = function Tab(props, _ref) {
|
|
|
63776
63782
|
children: tab
|
|
63777
63783
|
});
|
|
63778
63784
|
};
|
|
63779
|
-
var style = {
|
|
63785
|
+
var style = {
|
|
63786
|
+
background: background
|
|
63787
|
+
};
|
|
63780
63788
|
if (activeBackground && isActive) {
|
|
63781
63789
|
style.background = activeBackground;
|
|
63782
63790
|
}
|
|
@@ -64243,7 +64251,8 @@ var Tabs = function Tabs(props) {
|
|
|
64243
64251
|
if (tabs_isNamedComponent(Child.type) && Child.type.displayName === 'ShineoutTabsPanel') {
|
|
64244
64252
|
return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(Child, {
|
|
64245
64253
|
id: Child.props.id !== undefined ? Child.props.id : index,
|
|
64246
|
-
index: index
|
|
64254
|
+
index: index,
|
|
64255
|
+
background: Child.props.background
|
|
64247
64256
|
});
|
|
64248
64257
|
}
|
|
64249
64258
|
if (allowNonPanel) {
|
|
@@ -69696,7 +69705,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
69696
69705
|
|
|
69697
69706
|
|
|
69698
69707
|
/* harmony default export */ var src_0 = ({
|
|
69699
|
-
version: '3.6.1'
|
|
69708
|
+
version: '3.6.2-beta.1'
|
|
69700
69709
|
});
|
|
69701
69710
|
}();
|
|
69702
69711
|
/******/ return __webpack_exports__;
|