shineout 3.7.4-beta.3 → 3.7.4-beta.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.
@@ -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
@@ -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.3'
525
+ version: '3.7.4-beta.5'
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.3');
12237
+ /* harmony default export */ var version = ('3.7.4-beta.5');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -47704,7 +47704,14 @@ var DatePicker = function DatePicker(props0) {
47704
47704
  (_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e, index);
47705
47705
  if (props.needConfirm) return;
47706
47706
  if (props.inputable && index !== undefined) {
47707
- func.handleInputBlur(e.target.value, index);
47707
+ if (props.quickSelect) {
47708
+ // why: 快速选择时,需要加上timeout,否则e.target.value 获取不到最新的值
47709
+ setTimeout(function () {
47710
+ func.handleInputBlur(e.target.value, index);
47711
+ });
47712
+ } else {
47713
+ func.handleInputBlur(e.target.value, index);
47714
+ }
47708
47715
  }
47709
47716
 
47710
47717
  // 当输入框有值时,失焦时需要立即触发 onChange,否则触控板的轻触模拟出来的click事件就获取不到最新的值
@@ -63907,7 +63914,6 @@ function Td(props) {
63907
63914
  style = _React$useState2[0],
63908
63915
  setStyle = _React$useState2[1];
63909
63916
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
63910
- if (!props.style) return;
63911
63917
  if (shallowEqual(props.style, style)) {
63912
63918
  return;
63913
63919
  }
@@ -64841,6 +64847,10 @@ var emptyRef = {
64841
64847
  return null;
64842
64848
  };
64843
64849
  var $empty = renderEmpty();
64850
+ var tableStyle = {
64851
+ width: width,
64852
+ borderSpacing: 0
64853
+ };
64844
64854
  var renderTable = function renderTable() {
64845
64855
  var _props$summary, _sticky$top, _props$data2;
64846
64856
  var Group = /*#__PURE__*/(0,jsx_runtime.jsx)(table_colgroup, {
@@ -65010,9 +65020,7 @@ var emptyRef = {
65010
65020
  role: theadIdRef.current
65011
65021
  })), {}, {
65012
65022
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
65013
- style: {
65014
- width: width
65015
- },
65023
+ style: tableStyle,
65016
65024
  ref: theadRef,
65017
65025
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps))]
65018
65026
  })
@@ -65041,10 +65049,9 @@ var emptyRef = {
65041
65049
  tableRef: tableRef,
65042
65050
  setFakeVirtual: setFakeVirtual,
65043
65051
  children: [!props.hideHeader && !props.sticky && $headTable, !!((_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length) && /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
65044
- style: {
65045
- width: width,
65052
+ style: objectSpread2_default()(objectSpread2_default()({}, tableStyle), {}, {
65046
65053
  transform: virtualInfo.translateStyle
65047
- },
65054
+ }),
65048
65055
  ref: tbodyRef,
65049
65056
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tbody, objectSpread2_default()(objectSpread2_default()({}, bodyCommonProps), {}, {
65050
65057
  currentIndex: virtualInfo.startIndex,
@@ -65055,9 +65062,7 @@ var emptyRef = {
65055
65062
  }), showFoot ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
65056
65063
  className: footWrapperClass,
65057
65064
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
65058
- style: {
65059
- width: width
65060
- },
65065
+ style: tableStyle,
65061
65066
  ref: tfootRef,
65062
65067
  children: [Group, /*#__PURE__*/(0,jsx_runtime.jsx)(tfoot, objectSpread2_default()({}, footCommonProps))]
65063
65068
  })
@@ -65071,9 +65076,7 @@ var emptyRef = {
65071
65076
  className: tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bodyWrapper,
65072
65077
  onScroll: handleBodyScroll,
65073
65078
  children: /*#__PURE__*/(0,jsx_runtime.jsxs)("table", {
65074
- style: {
65075
- width: width
65076
- },
65079
+ style: tableStyle,
65077
65080
  ref: tbodyRef,
65078
65081
  children: [Group, !props.hideHeader && /*#__PURE__*/(0,jsx_runtime.jsx)(thead, objectSpread2_default()({}, headCommonProps)), bodyCommonProps.data.length === 0 ? /*#__PURE__*/(0,jsx_runtime.jsx)(TbodyEmpty, {
65079
65082
  children: renderEmpty()
@@ -65162,9 +65165,7 @@ var emptyRef = {
65162
65165
  }, props.style),
65163
65166
  dir: config.direction,
65164
65167
  children: /*#__PURE__*/(0,jsx_runtime.jsx)("table", {
65165
- style: {
65166
- width: width
65167
- },
65168
+ style: tableStyle,
65168
65169
  children: props.children
65169
65170
  })
65170
65171
  });
@@ -71620,7 +71621,7 @@ var upload_interface = __webpack_require__(8821);
71620
71621
 
71621
71622
 
71622
71623
  /* harmony default export */ var src_0 = ({
71623
- version: '3.7.4-beta.3'
71624
+ version: '3.7.4-beta.5'
71624
71625
  });
71625
71626
  }();
71626
71627
  /******/ return __webpack_exports__;