shineout 3.5.8-beta.6 → 3.5.8-beta.8

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
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.8-beta.6'
510
+ version: '3.5.8-beta.8'
511
511
  };
package/dist/shineout.js CHANGED
@@ -7130,7 +7130,7 @@ var devUseWarning = {
7130
7130
 
7131
7131
 
7132
7132
 
7133
- var _excluded = ["jssStyle", "type", "className", "children", "icon", "title", "iconSize", "closable", "hideClose", "bordered", "closeItem", "onClose"];
7133
+ var _excluded = ["jssStyle", "type", "className", "children", "icon", "title", "titleStyle", "iconSize", "closable", "hideClose", "bordered", "closeItem", "onClose"];
7134
7134
 
7135
7135
 
7136
7136
 
@@ -7151,6 +7151,7 @@ var Alert = function Alert(props) {
7151
7151
  children = props.children,
7152
7152
  icon = props.icon,
7153
7153
  title = props.title,
7154
+ titleStyle = props.titleStyle,
7154
7155
  iconSize = props.iconSize,
7155
7156
  closable = props.closable,
7156
7157
  hideClose = props.hideClose,
@@ -7197,7 +7198,7 @@ var Alert = function Alert(props) {
7197
7198
  }, 300);
7198
7199
  };
7199
7200
  var renderIcon = function renderIcon() {
7200
- var style = {};
7201
+ var style = titleStyle || {};
7201
7202
  if (iconSize) {
7202
7203
  style.width = iconSize;
7203
7204
  }
@@ -7217,6 +7218,7 @@ var Alert = function Alert(props) {
7217
7218
  var renderTitle = function renderTitle() {
7218
7219
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
7219
7220
  className: alertStyle.title,
7221
+ style: titleStyle,
7220
7222
  children: title
7221
7223
  });
7222
7224
  };
@@ -12081,7 +12083,7 @@ var handleStyle = function handleStyle(style) {
12081
12083
  };
12082
12084
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12083
12085
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12084
- /* harmony default export */ var version = ('3.5.8-beta.6');
12086
+ /* harmony default export */ var version = ('3.5.8-beta.8');
12085
12087
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12086
12088
 
12087
12089
 
@@ -12630,8 +12632,8 @@ var alertTokens = {
12630
12632
  alertNearlyMargin: 'Spacing-8',
12631
12633
  alertTitleFontSize: 'Font-16',
12632
12634
  alertTitleFontWeight: 'Weight-medium',
12633
- alertTitleMarginY: 'Spacing-4',
12634
- alertTitleIconWidth: 'Size-10',
12635
+ alertTitleMarginY: 'Spacing-8',
12636
+ alertTitleIconWidth: 'Size-8',
12635
12637
  alertTitleIconHeight: 'Size-12',
12636
12638
  alertCloseFontColor: 'Neutral-text-4',
12637
12639
  alertCloseHoverColor: 'Neutral-text-5',
@@ -13482,7 +13484,7 @@ var datePickerTokens = {
13482
13484
  var descriptionsTokens = {
13483
13485
  descriptionsTitlePaddingBottom: 'Spacing-12',
13484
13486
  descriptionsLabelPaddingBottom: 'Spacing-12',
13485
- descriptionsLabelPaddingRight: 'Spacing-8',
13487
+ descriptionsLabelPaddingRight: 'Spacing-24',
13486
13488
  descriptionsValuePaddingBottom: 'Spacing-12',
13487
13489
  descriptionsTitleSmallSize: 'Font-14',
13488
13490
  descriptionsTitleDefaultSize: 'Font-16',
@@ -15277,16 +15279,16 @@ var alertStyle = {
15277
15279
  },
15278
15280
  widthTitle: {
15279
15281
  '& $icon': {
15282
+ fontSize: src.alertTitleFontSize,
15280
15283
  // marginBottom: Token.alertNearlyMargin,
15281
15284
  width: src.alertTitleIconWidth,
15282
- height: src.alertTitleIconHeight
15285
+ height: src.lineHeightDynamic
15283
15286
  },
15284
15287
  '& $title': {
15285
15288
  lineHeight: src.lineHeightDynamic
15286
15289
  },
15287
- '& $close': {
15288
- // marginBottom: Token.alertNearlyMargin,
15289
- // marginTop: 2,
15290
+ '& $closeWrapper': {
15291
+ fontSize: src.alertTitleFontSize
15290
15292
  }
15291
15293
  },
15292
15294
  title: {
@@ -15320,8 +15322,9 @@ var alertStyle = {
15320
15322
  }
15321
15323
  },
15322
15324
  closeWrapper: {
15325
+ fontSize: src.alertFontSize,
15323
15326
  width: src.alertFontSize,
15324
- height: "calc(".concat(src.lineHeightDynamic, " + 2px)"),
15327
+ height: src.lineHeightDynamic,
15325
15328
  display: 'flex',
15326
15329
  alignItems: 'center',
15327
15330
  marginLeft: src.alertNearlyMargin
@@ -18567,6 +18570,11 @@ var descriptionsStyle = {
18567
18570
  },
18568
18571
  '& $item': {
18569
18572
  paddingBottom: 0
18573
+ },
18574
+ '& $row': {
18575
+ '& td:last-child': {
18576
+ borderRight: 'none'
18577
+ }
18570
18578
  }
18571
18579
  }
18572
18580
  };
@@ -28832,6 +28840,9 @@ function isDomElement(element) {
28832
28840
  return (typeof HTMLElement === "undefined" ? "undefined" : typeof_default()(HTMLElement)) === 'object' ? element instanceof HTMLElement // DOM2
28833
28841
  : element && typeof_default()(element) === 'object' && element !== null && element.nodeType === 1 && typeof element.nodeName === 'string';
28834
28842
  }
28843
+ var isOptionalDisabled = function isOptionalDisabled(disabled) {
28844
+ return is_isObject(disabled) && disabled.hasOwnProperty('isRealtime');
28845
+ };
28835
28846
  ;// CONCATENATED MODULE: ../hooks/src/utils/document.ts
28836
28847
 
28837
28848
  var docSize = {
@@ -37081,10 +37092,11 @@ var useTree = function useTree(props) {
37081
37092
  _props$defaultExpande = props.defaultExpanded,
37082
37093
  defaultExpanded = _props$defaultExpande === void 0 ? [] : _props$defaultExpande,
37083
37094
  defaultExpandAll = props.defaultExpandAll,
37084
- disabledProps = props.disabled,
37085
37095
  unmatch = props.unmatch,
37086
37096
  isControlled = props.isControlled,
37087
37097
  onExpandProp = props.onExpand;
37098
+ var disabledProps = isOptionalDisabled(props.disabled) ? props.disabled.disabled : props.disabled;
37099
+ var isRealtime = isOptionalDisabled(props.disabled) ? props.disabled.isRealtime : false;
37088
37100
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
37089
37101
  _useState2 = slicedToArray_default()(_useState, 2),
37090
37102
  inited = _useState2[0],
@@ -37344,7 +37356,15 @@ var useTree = function useTree(props) {
37344
37356
  var isDisabled = function isDisabled(id) {
37345
37357
  if (isFunc(disabledProps)) {
37346
37358
  var node = context.pathMap.get(id);
37347
- if (node) return node.isDisabled;
37359
+ if (node) {
37360
+ if (isRealtime) {
37361
+ var item = context.dataMap.get(id);
37362
+ if (!item) return false;
37363
+ return getDisabled()(item);
37364
+ } else {
37365
+ return node.isDisabled;
37366
+ }
37367
+ }
37348
37368
  return false;
37349
37369
  }
37350
37370
  return !!disabledProps;
@@ -39532,7 +39552,7 @@ var Cascader = function Cascader(props0) {
39532
39552
  mode = props.mode,
39533
39553
  innerTitle = props.innerTitle,
39534
39554
  multiple = props.multiple,
39535
- disabled = props.disabled,
39555
+ disabledProp = props.disabled,
39536
39556
  clearable = props.clearable,
39537
39557
  underline = props.underline,
39538
39558
  loading = props.loading,
@@ -39573,6 +39593,7 @@ var Cascader = function Cascader(props0) {
39573
39593
  virtual = props.virtual,
39574
39594
  filterSameChange = props.filterSameChange;
39575
39595
  var showInput = isFunc(onFilterProp);
39596
+ var disabled = isOptionalDisabled(disabledProp) ? disabledProp.disabled : disabledProp;
39576
39597
  var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$cascader = jssStyle.cascader) === null || _jssStyle$cascader === void 0 ? void 0 : _jssStyle$cascader.call(jssStyle);
39577
39598
  var rootStyle = Object.assign({
39578
39599
  width: width
@@ -39619,7 +39640,7 @@ var Cascader = function Cascader(props0) {
39619
39640
  control: 'value' in props,
39620
39641
  keygen: keygen,
39621
39642
  unmatch: unmatch,
39622
- disabled: disabled,
39643
+ disabled: disabledProp,
39623
39644
  mode: mode,
39624
39645
  defaultValue: defaultValue,
39625
39646
  childrenKey: childrenKey,
@@ -56144,6 +56165,9 @@ var confirm_Confirm = function Confirm(props) {
56144
56165
  jssStyle: jssStyle,
56145
56166
  type: type,
56146
56167
  title: title,
56168
+ titleStyle: {
56169
+ fontSize: 14
56170
+ },
56147
56171
  icon: icon,
56148
56172
  children: _children
56149
56173
  }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@@ -59280,7 +59304,7 @@ var useTableVirtual = function useTableVirtual(props) {
59280
59304
  });
59281
59305
  }
59282
59306
  });
59283
- var updateIndexAndTopFromTop = function updateIndexAndTopFromTop(scrollTop) {
59307
+ var updateIndexAndTopFromTop = function updateIndexAndTopFromTop(scrollTop, fromDrag) {
59284
59308
  var _props$scrollRef$curr;
59285
59309
  if (props.disabled) return;
59286
59310
  var sum = 0;
@@ -59320,7 +59344,7 @@ var useTableVirtual = function useTableVirtual(props) {
59320
59344
  setStartIndex(currentIndex);
59321
59345
 
59322
59346
  // startIndex处于上方某个合并行的中间一行时,可能引起translate闪烁
59323
- if (startIndex < currentIndex) {
59347
+ if (!fromDrag && startIndex < currentIndex) {
59324
59348
  context.autoAddRows = currentIndex - startIndex;
59325
59349
  setTimeout(function () {
59326
59350
  context.autoAddRows = 0;
@@ -59380,7 +59404,7 @@ var useTableVirtual = function useTableVirtual(props) {
59380
59404
  // 拖动滚动条
59381
59405
  if (fromDrag) {
59382
59406
  var top = y * max;
59383
- updateIndexAndTopFromTop(top);
59407
+ updateIndexAndTopFromTop(top, fromDrag);
59384
59408
  if (context.rateTimer) clearTimeout(context.rateTimer);
59385
59409
  context.rateTimer = setTimeout(function () {
59386
59410
  updateRateScroll(y);
@@ -67542,7 +67566,7 @@ var upload_interface = __webpack_require__(8821);
67542
67566
 
67543
67567
 
67544
67568
  /* harmony default export */ var src_0 = ({
67545
- version: '3.5.8-beta.6'
67569
+ version: '3.5.8-beta.8'
67546
67570
  });
67547
67571
  }();
67548
67572
  /******/ return __webpack_exports__;