shineout 3.5.8-beta.7 → 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.7'
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.7');
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
  };
@@ -56157,6 +56165,9 @@ var confirm_Confirm = function Confirm(props) {
56157
56165
  jssStyle: jssStyle,
56158
56166
  type: type,
56159
56167
  title: title,
56168
+ titleStyle: {
56169
+ fontSize: 14
56170
+ },
56160
56171
  icon: icon,
56161
56172
  children: _children
56162
56173
  }), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
@@ -59293,7 +59304,7 @@ var useTableVirtual = function useTableVirtual(props) {
59293
59304
  });
59294
59305
  }
59295
59306
  });
59296
- var updateIndexAndTopFromTop = function updateIndexAndTopFromTop(scrollTop) {
59307
+ var updateIndexAndTopFromTop = function updateIndexAndTopFromTop(scrollTop, fromDrag) {
59297
59308
  var _props$scrollRef$curr;
59298
59309
  if (props.disabled) return;
59299
59310
  var sum = 0;
@@ -59333,7 +59344,7 @@ var useTableVirtual = function useTableVirtual(props) {
59333
59344
  setStartIndex(currentIndex);
59334
59345
 
59335
59346
  // startIndex处于上方某个合并行的中间一行时,可能引起translate闪烁
59336
- if (startIndex < currentIndex) {
59347
+ if (!fromDrag && startIndex < currentIndex) {
59337
59348
  context.autoAddRows = currentIndex - startIndex;
59338
59349
  setTimeout(function () {
59339
59350
  context.autoAddRows = 0;
@@ -59393,7 +59404,7 @@ var useTableVirtual = function useTableVirtual(props) {
59393
59404
  // 拖动滚动条
59394
59405
  if (fromDrag) {
59395
59406
  var top = y * max;
59396
- updateIndexAndTopFromTop(top);
59407
+ updateIndexAndTopFromTop(top, fromDrag);
59397
59408
  if (context.rateTimer) clearTimeout(context.rateTimer);
59398
59409
  context.rateTimer = setTimeout(function () {
59399
59410
  updateRateScroll(y);
@@ -67555,7 +67566,7 @@ var upload_interface = __webpack_require__(8821);
67555
67566
 
67556
67567
 
67557
67568
  /* harmony default export */ var src_0 = ({
67558
- version: '3.5.8-beta.7'
67569
+ version: '3.5.8-beta.8'
67559
67570
  });
67560
67571
  }();
67561
67572
  /******/ return __webpack_exports__;