shineout 3.8.3-beta.3 → 3.8.3-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.
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.8.3-beta.3'
525
+ version: '3.8.3-beta.5'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
12386
12386
  };
12387
12387
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12388
12388
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12389
- /* harmony default export */ var version = ('3.8.3-beta.3');
12389
+ /* harmony default export */ var version = ('3.8.3-beta.5');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -17391,14 +17391,14 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
17391
17391
  '&:hover': {
17392
17392
  borderColor: token.focusBorderColor
17393
17393
  }
17394
- }), "".concat(name, "Error"), defineProperty_default()({
17394
+ }), "".concat(name, "Error"), defineProperty_default()(defineProperty_default()({}, "&:not($".concat(name, "Disabled)"), {
17395
17395
  borderColor: token.errorBorderColor,
17396
17396
  background: token.errorBackgroundColor,
17397
17397
  '&:hover': {
17398
- backgroundColor: token.errorHoverBackgroundColor,
17399
- borderColor: token.errorHoverBorderColor
17398
+ borderColor: token.errorHoverBorderColor,
17399
+ backgroundColor: token.errorHoverBackgroundColor
17400
17400
  }
17401
- }, "&$".concat(name, "Focus"), {
17401
+ }), "&$".concat(name, "Focus"), {
17402
17402
  boxShadow: "0 0 0 2px ".concat(token.errorFocusShadow),
17403
17403
  borderColor: token.errorFocusBorderColor,
17404
17404
  background: token.errorFocusBackgroundColor
@@ -32295,7 +32295,10 @@ var src_config_config = {
32295
32295
  };
32296
32296
  var state = createWithHooks(src_config_config);
32297
32297
  state.subscribe(function () {
32298
- src_config_config = getSnapshot(state.mutate);
32298
+ var snapshot = getSnapshot(state.mutate);
32299
+ if (snapshot) {
32300
+ src_config_config = snapshot;
32301
+ }
32299
32302
  });
32300
32303
  function getDefaultContainer() {
32301
32304
  if (isFunc(src_config_config.popupContainer)) {
@@ -32315,7 +32318,7 @@ var config_setConfig = function setConfig(option) {
32315
32318
  var _Object$entries$_i = slicedToArray_default()(_Object$entries[_i], 2),
32316
32319
  key = _Object$entries$_i[0],
32317
32320
  value = _Object$entries$_i[1];
32318
- if (key in src_config_config) {
32321
+ if (src_config_config && key in src_config_config) {
32319
32322
  var k = key;
32320
32323
  // @ts-ignore
32321
32324
  state.mutate[k] = value;
@@ -57834,9 +57837,12 @@ function Select(props0) {
57834
57837
  return result !== null && result !== void 0 ? result : null;
57835
57838
  };
57836
57839
  var getDataByValues = function getDataByValues(values) {
57837
- return datum.getDataByValues(values, {
57838
- childrenKey: childrenKey
57839
- });
57840
+ if ('treeData' in props) {
57841
+ return datum.getDataByValues(values, {
57842
+ childrenKey: childrenKey
57843
+ });
57844
+ }
57845
+ return datum.getDataByValues(values);
57840
57846
  };
57841
57847
  var checkUnMatched = function checkUnMatched(item) {
57842
57848
  return datum.isUnMatchedData(item);
@@ -73121,7 +73127,7 @@ var upload_interface = __webpack_require__(8821);
73121
73127
 
73122
73128
 
73123
73129
  /* harmony default export */ var src_0 = ({
73124
- version: '3.8.3-beta.3'
73130
+ version: '3.8.3-beta.5'
73125
73131
  });
73126
73132
  }();
73127
73133
  /******/ return __webpack_exports__;