shineout 3.2.2-beta.1 → 3.2.2
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 +44 -23
- 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.2.2
|
|
479
|
+
version: '3.2.2'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11960,7 +11960,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11960
11960
|
};
|
|
11961
11961
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11962
11962
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11963
|
-
/* harmony default export */ var version = ('3.2.2
|
|
11963
|
+
/* harmony default export */ var version = ('3.2.2');
|
|
11964
11964
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11965
11965
|
|
|
11966
11966
|
|
|
@@ -19872,7 +19872,10 @@ var menuStyle = {
|
|
|
19872
19872
|
display: 'inline-flex'
|
|
19873
19873
|
},
|
|
19874
19874
|
titleContent: {
|
|
19875
|
-
whiteSpace: 'pre-wrap'
|
|
19875
|
+
whiteSpace: 'pre-wrap',
|
|
19876
|
+
display: 'flex',
|
|
19877
|
+
minWidth: 0,
|
|
19878
|
+
alignItems: 'center'
|
|
19876
19879
|
// '$wrapperCollpase &': {
|
|
19877
19880
|
// transition: `opacity ${animationDuration} ${transitionFunc}`,
|
|
19878
19881
|
// },
|
|
@@ -27845,7 +27848,7 @@ var horizontalPosition = ['left-bottom', 'left-top', 'right-bottom', 'right-top'
|
|
|
27845
27848
|
var verticalPosition = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'bottom', 'top'];
|
|
27846
27849
|
var hideStyle = {
|
|
27847
27850
|
pointerEvents: 'none',
|
|
27848
|
-
position: '
|
|
27851
|
+
position: 'fixed',
|
|
27849
27852
|
zIndex: -1000,
|
|
27850
27853
|
opacity: 0
|
|
27851
27854
|
};
|
|
@@ -32465,7 +32468,6 @@ function removeProtocol(url) {
|
|
|
32465
32468
|
short: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
|
|
32466
32469
|
long: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']
|
|
32467
32470
|
},
|
|
32468
|
-
pickerTitle: ['开始时间', '结束时间'],
|
|
32469
32471
|
timeOfDayValues: ['上午', '下午'],
|
|
32470
32472
|
ok: '确定',
|
|
32471
32473
|
cancel: '取消',
|
|
@@ -32531,7 +32533,6 @@ function removeProtocol(url) {
|
|
|
32531
32533
|
short: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
|
32532
32534
|
long: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
|
|
32533
32535
|
},
|
|
32534
|
-
pickerTitle: ['Start Time', 'End Time'],
|
|
32535
32536
|
timeOfDayValues: ['a.m.', 'p.m.'],
|
|
32536
32537
|
ok: 'Ok',
|
|
32537
32538
|
cancel: 'Cancel',
|
|
@@ -42771,7 +42772,7 @@ var Modal = function Modal(props) {
|
|
|
42771
42772
|
hasMask = true;
|
|
42772
42773
|
}
|
|
42773
42774
|
};
|
|
42774
|
-
|
|
42775
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(handleMaskVisible, [visible]);
|
|
42775
42776
|
var updateOrigin = function updateOrigin() {
|
|
42776
42777
|
// 更新transform-origin
|
|
42777
42778
|
if (props.position || props.moveable || !props.zoom) return;
|
|
@@ -47213,7 +47214,7 @@ var useNumberFormat = function useNumberFormat(props) {
|
|
|
47213
47214
|
;// CONCATENATED MODULE: ../base/src/input/input-number.tsx
|
|
47214
47215
|
|
|
47215
47216
|
|
|
47216
|
-
var input_number_excluded = ["jssStyle", "hideArrow"],
|
|
47217
|
+
var input_number_excluded = ["jssStyle", "hideArrow", "numType", "integerLimit", "digits", "min", "max", "step", "allowNull"],
|
|
47217
47218
|
input_number_excluded2 = ["onMinus", "onPlus"];
|
|
47218
47219
|
|
|
47219
47220
|
|
|
@@ -47228,18 +47229,25 @@ var InputNumber = function InputNumber(props) {
|
|
|
47228
47229
|
var commonProps = use_input_common(props);
|
|
47229
47230
|
var jssStyle = commonProps.jssStyle,
|
|
47230
47231
|
hideArrow = commonProps.hideArrow,
|
|
47232
|
+
numType = commonProps.numType,
|
|
47233
|
+
integerLimit = commonProps.integerLimit,
|
|
47234
|
+
digits = commonProps.digits,
|
|
47235
|
+
min = commonProps.min,
|
|
47236
|
+
max = commonProps.max,
|
|
47237
|
+
step = commonProps.step,
|
|
47238
|
+
allowNull = commonProps.allowNull,
|
|
47231
47239
|
restProps = objectWithoutProperties_default()(commonProps, input_number_excluded);
|
|
47232
47240
|
var inputStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$input = jssStyle.input) === null || _jssStyle$input === void 0 ? void 0 : _jssStyle$input.call(jssStyle);
|
|
47233
47241
|
var numberFormatParams = {
|
|
47234
47242
|
onBlur: restProps.onBlur,
|
|
47235
47243
|
onFocus: restProps.onFocus,
|
|
47236
|
-
digits:
|
|
47237
|
-
integerLimit:
|
|
47238
|
-
numType:
|
|
47239
|
-
min:
|
|
47240
|
-
max:
|
|
47241
|
-
step:
|
|
47242
|
-
allowNull:
|
|
47244
|
+
digits: digits,
|
|
47245
|
+
integerLimit: integerLimit,
|
|
47246
|
+
numType: numType,
|
|
47247
|
+
min: min,
|
|
47248
|
+
max: max,
|
|
47249
|
+
step: step,
|
|
47250
|
+
allowNull: allowNull
|
|
47243
47251
|
};
|
|
47244
47252
|
var _useInputNumber = use_input_number(objectSpread2_default()({
|
|
47245
47253
|
value: commonProps.value,
|
|
@@ -47249,7 +47257,9 @@ var InputNumber = function InputNumber(props) {
|
|
|
47249
47257
|
onMinus = _useInputNumber.onMinus,
|
|
47250
47258
|
onPlus = _useInputNumber.onPlus,
|
|
47251
47259
|
numberFormatProps = objectWithoutProperties_default()(_useInputNumber, input_number_excluded2);
|
|
47252
|
-
var forwardProps = removeProps(commonProps, objectSpread2_default()({}, numberFormatParams)
|
|
47260
|
+
var forwardProps = removeProps(commonProps, objectSpread2_default()(objectSpread2_default()({}, numberFormatParams), {}, {
|
|
47261
|
+
hideArrow: hideArrow
|
|
47262
|
+
}));
|
|
47253
47263
|
var addEnd = hideArrow ? null : /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
47254
47264
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
47255
47265
|
className: inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.numberStep,
|
|
@@ -47390,17 +47400,20 @@ var Scroll = function Scroll(props) {
|
|
|
47390
47400
|
isMouseDown: false
|
|
47391
47401
|
}),
|
|
47392
47402
|
context = _useRef.current;
|
|
47403
|
+
var _props$scrollHeight = props.scrollHeight,
|
|
47404
|
+
scrollHeight = _props$scrollHeight === void 0 ? 0 : _props$scrollHeight,
|
|
47405
|
+
_props$scrollWidth = props.scrollWidth,
|
|
47406
|
+
scrollWidth = _props$scrollWidth === void 0 ? 0 : _props$scrollWidth,
|
|
47407
|
+
_props$defaultHeight = props.defaultHeight,
|
|
47408
|
+
defaultHeight = _props$defaultHeight === void 0 ? 0 : _props$defaultHeight;
|
|
47393
47409
|
var _useResize = useResize({
|
|
47394
47410
|
targetRef: containerRef
|
|
47395
47411
|
}),
|
|
47396
47412
|
width = _useResize.width,
|
|
47397
|
-
|
|
47413
|
+
h = _useResize.height;
|
|
47414
|
+
var height = h || defaultHeight;
|
|
47398
47415
|
var config = useConfig();
|
|
47399
47416
|
var isRtl = config.direction === 'rtl';
|
|
47400
|
-
var _props$scrollHeight = props.scrollHeight,
|
|
47401
|
-
scrollHeight = _props$scrollHeight === void 0 ? 0 : _props$scrollHeight,
|
|
47402
|
-
_props$scrollWidth = props.scrollWidth,
|
|
47403
|
-
scrollWidth = _props$scrollWidth === void 0 ? 0 : _props$scrollWidth;
|
|
47404
47417
|
var scrollerStyle = props.scrollerStyle || {
|
|
47405
47418
|
height: '100%',
|
|
47406
47419
|
width: '100%',
|
|
@@ -56111,8 +56124,8 @@ var Tr = function Tr(props) {
|
|
|
56111
56124
|
};
|
|
56112
56125
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
56113
56126
|
if (props.setRowHeight && trRef.current) {
|
|
56114
|
-
var expandHeight = expandRef.current ? expandRef.current.
|
|
56115
|
-
props.setRowHeight(props.rowIndex, trRef.current.
|
|
56127
|
+
var expandHeight = expandRef.current ? expandRef.current.getBoundingClientRect().height : 0;
|
|
56128
|
+
props.setRowHeight(props.rowIndex, trRef.current.getBoundingClientRect().height + expandHeight);
|
|
56116
56129
|
}
|
|
56117
56130
|
}, [props.expanded, props.rowIndex, props.bodyScrollWidth, props.resizeFlag]);
|
|
56118
56131
|
var renderTreeExpand = function renderTreeExpand(content) {
|
|
@@ -56545,6 +56558,10 @@ var emptyRef = {
|
|
|
56545
56558
|
var tfootRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
56546
56559
|
var scrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
56547
56560
|
var tableRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
56561
|
+
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
56562
|
+
emptyHeight: 0
|
|
56563
|
+
}),
|
|
56564
|
+
context = _useRef.current;
|
|
56548
56565
|
var virtual = ((_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length) && props.rowsInView !== 0 && (!!props.virtual || props.fixed === 'both' || props.fixed === 'y' || props.fixed === 'auto');
|
|
56549
56566
|
|
|
56550
56567
|
// 虚拟列表高度另外计算
|
|
@@ -56714,6 +56731,9 @@ var emptyRef = {
|
|
|
56714
56731
|
if ((_props$data2 = props.data) !== null && _props$data2 !== void 0 && _props$data2.length) return null;
|
|
56715
56732
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
56716
56733
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyWrapper,
|
|
56734
|
+
ref: function ref(el) {
|
|
56735
|
+
context.emptyHeight = (el === null || el === void 0 ? void 0 : el.clientHeight) || 0;
|
|
56736
|
+
},
|
|
56717
56737
|
children: props.empty || /*#__PURE__*/(0,jsx_runtime.jsx)(src_empty_empty, {
|
|
56718
56738
|
jssStyle: props.jssStyle
|
|
56719
56739
|
})
|
|
@@ -56830,6 +56850,7 @@ var emptyRef = {
|
|
|
56830
56850
|
scrollWidth: width || 1,
|
|
56831
56851
|
scrollHeight: virtual ? virtualInfo.scrollHeight : tbodyHeight,
|
|
56832
56852
|
onScroll: handleVirtualScroll,
|
|
56853
|
+
defaultHeight: context.emptyHeight,
|
|
56833
56854
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
56834
56855
|
style: {
|
|
56835
56856
|
width: width,
|
|
@@ -63027,7 +63048,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
63027
63048
|
|
|
63028
63049
|
|
|
63029
63050
|
/* harmony default export */ var src_0 = ({
|
|
63030
|
-
version: '3.2.2
|
|
63051
|
+
version: '3.2.2'
|
|
63031
63052
|
});
|
|
63032
63053
|
}();
|
|
63033
63054
|
/******/ return __webpack_exports__;
|