shineout 3.9.0-beta.32 → 3.9.0-beta.34

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 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.9.0-beta.32'
525
+ version: '3.9.0-beta.34'
526
526
  };
@@ -19,7 +19,7 @@ import ready from './dom/ready';
19
19
  import isJson from './validate/isJson';
20
20
  import * as type from './type';
21
21
  import accept from './accept';
22
- declare const validate: () => void;
22
+ declare const validate: <T>(value: T | undefined, formData: import("@sheinx/hooks").ObjectType, rules: import("@sheinx/hooks").FormItemRule<T>, p: import("@sheinx/hooks").ObjectType) => Promise<true | Error>;
23
23
  declare const cssAccessors: {};
24
24
  declare const cssInject: {};
25
25
  export { classname, clone, color, flat, func, hash, is, number, objects, shallowEqual, string, tree, detect, doc, element, normalizeWheel, position, ready, isJson, validate, cssAccessors, cssInject, type, accept, };
@@ -84,12 +84,11 @@ var _ready = _interopRequireDefault(require("./dom/ready"));
84
84
  var _isJson = _interopRequireDefault(require("./validate/isJson"));
85
85
  var type = _interopRequireWildcard(require("./type"));
86
86
  exports.type = type;
87
+ var _hooks = require("@sheinx/hooks");
87
88
  var _accept = _interopRequireDefault(require("./accept"));
88
89
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
89
90
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
90
91
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
91
- // import validate from './validate';
92
-
93
- var validate = exports.validate = function validate() {};
92
+ var validate = exports.validate = _hooks.util.validate;
94
93
  var cssAccessors = exports.cssAccessors = {};
95
94
  var cssInject = exports.cssInject = {};
package/dist/shineout.js CHANGED
@@ -12400,7 +12400,7 @@ var handleStyle = function handleStyle(style) {
12400
12400
  };
12401
12401
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12402
12402
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12403
- /* harmony default export */ var version = ('3.9.0-beta.32');
12403
+ /* harmony default export */ var version = ('3.9.0-beta.34');
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12405
12405
 
12406
12406
 
@@ -56193,8 +56193,9 @@ var ListOption = function ListOption(props) {
56193
56193
  onOptionClick(data, index);
56194
56194
  };
56195
56195
  var setVirtualRowHeight = usePersistFn(function () {
56196
+ var _optionRef$current;
56196
56197
  if (!props.setRowHeight || !optionRef.current) return;
56197
- var optionHeight = optionRef.current.getBoundingClientRect().height;
56198
+ var optionHeight = (_optionRef$current = optionRef.current) === null || _optionRef$current === void 0 ? void 0 : _optionRef$current.offsetHeight;
56198
56199
  if (optionHeight !== 0) {
56199
56200
  props.setRowHeight(index, optionHeight);
56200
56201
  }
@@ -73979,10 +73980,9 @@ function accept_attrAccept(file, acceptedFiles) {
73979
73980
 
73980
73981
 
73981
73982
 
73982
- // import validate from './validate';
73983
73983
 
73984
73984
 
73985
- var src_utils_validate = function validate() {};
73985
+ var src_utils_validate = validate;
73986
73986
  var cssAccessors = {};
73987
73987
  var cssInject = {};
73988
73988
 
@@ -74296,7 +74296,7 @@ var upload_interface = __webpack_require__(8821);
74296
74296
 
74297
74297
 
74298
74298
  /* harmony default export */ var src_0 = ({
74299
- version: '3.9.0-beta.32'
74299
+ version: '3.9.0-beta.34'
74300
74300
  });
74301
74301
  }();
74302
74302
  /******/ return __webpack_exports__;