shineout 3.7.4-beta.2 → 3.7.4-beta.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/form/form.type.d.ts +6 -1
- package/cjs/form/interface.d.ts +1 -1
- package/cjs/index.js +1 -1
- package/dist/shineout.js +19 -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/form/form.type.d.ts +6 -1
- package/esm/form/interface.d.ts +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/form/form.type.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import { FormFieldProps as UiFormFieldProps, FormFieldSetProps as UiFormFieldSetProps, FormItemProps as UiFormItemProps, FormProps as UiFormProps, ObjectType, FormFlowProps as UiFormFlowProps, FormRef as UiFormRef } from '@sheinx/base';
|
|
1
|
+
import { FormFieldProps as UiFormFieldProps, FormFieldSetProps as UiFormFieldSetProps, FormItemProps as UiFormItemProps, FormProps as UiFormProps, ObjectType, FormFlowProps as UiFormFlowProps, FormRef as UiFormRef, FormDatum as UiFormDatum } from '@sheinx/base';
|
|
2
2
|
/**
|
|
3
3
|
* @title FormRef
|
|
4
4
|
* @sort 6
|
|
5
5
|
*/
|
|
6
6
|
export type FormRef<T> = UiFormRef<T>;
|
|
7
|
+
/**
|
|
8
|
+
* @title FormDatum
|
|
9
|
+
* @sort 7
|
|
10
|
+
*/
|
|
11
|
+
export type FormDatum = UiFormDatum;
|
|
7
12
|
/**
|
|
8
13
|
* @title Form
|
|
9
14
|
* @sort 1
|
package/cjs/form/interface.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type { FormRef as Ref, FormFieldChildrenFunc as FieldChildrenFunc, FormFieldSetChildrenFunc as FieldSetChildrenFunc, } from '@sheinx/base';
|
|
2
|
-
export type { FormProps as Props, FormItemProps as ItemProps, FormFieldProps as FieldProps, FormFieldSetProps as FieldSetProps, } from './form.type';
|
|
2
|
+
export type { FormProps as Props, FormItemProps as ItemProps, FormFieldProps as FieldProps, FormFieldSetProps as FieldSetProps, FormFlowProps as FlowProps, FormDatum as Datum, } from './form.type';
|
|
3
3
|
export type { ButtonProps as SubmitProps, ButtonProps as ResetProps } from '../button/button.type';
|
package/cjs/index.js
CHANGED
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.7.4-beta.
|
|
525
|
+
version: '3.7.4-beta.4'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12234
12234
|
};
|
|
12235
12235
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12236
12236
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12237
|
-
/* harmony default export */ var version = ('3.7.4-beta.
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.4-beta.4');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -31280,16 +31280,18 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
31280
31280
|
};
|
|
31281
31281
|
};
|
|
31282
31282
|
var getAbsoluteStyle = function getAbsoluteStyle(position) {
|
|
31283
|
-
var _scrollElRef$current;
|
|
31283
|
+
var _scrollElRef$current, _scrollElRef$current2, _scrollElRef$current3;
|
|
31284
31284
|
if (!parentElRef.current) return {
|
|
31285
31285
|
style: hideStyle
|
|
31286
31286
|
};
|
|
31287
31287
|
var rect = context.parentRect;
|
|
31288
31288
|
var needCheck = !show || !shallow_equal(context.prevParentPosition, parentElNewPosition);
|
|
31289
|
-
|
|
31290
|
-
|
|
31291
|
-
|
|
31292
|
-
|
|
31289
|
+
var scrollTop = (scrollElRef === null || scrollElRef === void 0 || (_scrollElRef$current = scrollElRef.current) === null || _scrollElRef$current === void 0 ? void 0 : _scrollElRef$current.scrollTop) || 0;
|
|
31290
|
+
var scrollLeft = (scrollElRef === null || scrollElRef === void 0 || (_scrollElRef$current2 = scrollElRef.current) === null || _scrollElRef$current2 === void 0 ? void 0 : _scrollElRef$current2.scrollLeft) || 0;
|
|
31291
|
+
if (needCheck && scrollElRef !== null && scrollElRef !== void 0 && scrollElRef.current && (_scrollElRef$current3 = scrollElRef.current) !== null && _scrollElRef$current3 !== void 0 && _scrollElRef$current3.contains(parentElRef.current)) {
|
|
31292
|
+
var _scrollElRef$current4;
|
|
31293
|
+
var visibleRect = ((_scrollElRef$current4 = scrollElRef.current) === null || _scrollElRef$current4 === void 0 ? void 0 : _scrollElRef$current4.getBoundingClientRect()) || {};
|
|
31294
|
+
if (rect.bottom < visibleRect.top || rect.top > visibleRect.bottom + scrollTop || rect.right < visibleRect.left || rect.left > visibleRect.right + scrollLeft) {
|
|
31293
31295
|
return {
|
|
31294
31296
|
style: hideStyle
|
|
31295
31297
|
};
|
|
@@ -63905,7 +63907,6 @@ function Td(props) {
|
|
|
63905
63907
|
style = _React$useState2[0],
|
|
63906
63908
|
setStyle = _React$useState2[1];
|
|
63907
63909
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
63908
|
-
if (!props.style) return;
|
|
63909
63910
|
if (shallowEqual(props.style, style)) {
|
|
63910
63911
|
return;
|
|
63911
63912
|
}
|
|
@@ -64839,6 +64840,10 @@ var emptyRef = {
|
|
|
64839
64840
|
return null;
|
|
64840
64841
|
};
|
|
64841
64842
|
var $empty = renderEmpty();
|
|
64843
|
+
var tableStyle = {
|
|
64844
|
+
width: width,
|
|
64845
|
+
borderSpacing: 0
|
|
64846
|
+
};
|
|
64842
64847
|
var renderTable = function renderTable() {
|
|
64843
64848
|
var _props$summary, _sticky$top, _props$data2;
|
|
64844
64849
|
var Group = /*#__PURE__*/(0,jsx_runtime.jsx)(table_colgroup, {
|
|
@@ -65008,9 +65013,7 @@ var emptyRef = {
|
|
|
65008
65013
|
role: theadIdRef.current
|
|
65009
65014
|
})), {}, {
|
|
65010
65015
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
65011
|
-
style:
|
|
65012
|
-
width: width
|
|
65013
|
-
},
|
|
65016
|
+
style: tableStyle,
|
|
65014
65017
|
ref: theadRef,
|
|
65015
65018
|
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps))]
|
|
65016
65019
|
})
|
|
@@ -65039,10 +65042,9 @@ var emptyRef = {
|
|
|
65039
65042
|
tableRef: tableRef,
|
|
65040
65043
|
setFakeVirtual: setFakeVirtual,
|
|
65041
65044
|
children: [!props.hideHeader && !props.sticky && $headTable, !!((_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
65042
|
-
style: {
|
|
65043
|
-
width: width,
|
|
65045
|
+
style: objectSpread2_default()(objectSpread2_default()({}, tableStyle), {}, {
|
|
65044
65046
|
transform: virtualInfo.translateStyle
|
|
65045
|
-
},
|
|
65047
|
+
}),
|
|
65046
65048
|
ref: tbodyRef,
|
|
65047
65049
|
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()(objectSpread2_default()({}, bodyCommonProps), {}, {
|
|
65048
65050
|
currentIndex: virtualInfo.startIndex,
|
|
@@ -65053,9 +65055,7 @@ var emptyRef = {
|
|
|
65053
65055
|
}), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
65054
65056
|
className: footWrapperClass,
|
|
65055
65057
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
65056
|
-
style:
|
|
65057
|
-
width: width
|
|
65058
|
-
},
|
|
65058
|
+
style: tableStyle,
|
|
65059
65059
|
ref: tfootRef,
|
|
65060
65060
|
children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
|
|
65061
65061
|
})
|
|
@@ -65069,9 +65069,7 @@ var emptyRef = {
|
|
|
65069
65069
|
className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bodyWrapper,
|
|
65070
65070
|
onScroll: handleBodyScroll,
|
|
65071
65071
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
|
|
65072
|
-
style:
|
|
65073
|
-
width: width
|
|
65074
|
-
},
|
|
65072
|
+
style: tableStyle,
|
|
65075
65073
|
ref: tbodyRef,
|
|
65076
65074
|
children: [Group, !props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps)), bodyCommonProps.data.length === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(TbodyEmpty, {
|
|
65077
65075
|
children: renderEmpty()
|
|
@@ -65160,9 +65158,7 @@ var emptyRef = {
|
|
|
65160
65158
|
}, props.style),
|
|
65161
65159
|
dir: config.direction,
|
|
65162
65160
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("table", {
|
|
65163
|
-
style:
|
|
65164
|
-
width: width
|
|
65165
|
-
},
|
|
65161
|
+
style: tableStyle,
|
|
65166
65162
|
children: props.children
|
|
65167
65163
|
})
|
|
65168
65164
|
});
|
|
@@ -71618,7 +71614,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71618
71614
|
|
|
71619
71615
|
|
|
71620
71616
|
/* harmony default export */ var src_0 = ({
|
|
71621
|
-
version: '3.7.4-beta.
|
|
71617
|
+
version: '3.7.4-beta.4'
|
|
71622
71618
|
});
|
|
71623
71619
|
}();
|
|
71624
71620
|
/******/ return __webpack_exports__;
|