shineout 3.5.4-beta.11 → 3.5.4-beta.13

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.4-beta.11'
510
+ version: '3.5.4-beta.13'
511
511
  };
package/dist/shineout.js CHANGED
@@ -12031,7 +12031,7 @@ var handleStyle = function handleStyle(style) {
12031
12031
  };
12032
12032
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12033
12033
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12034
- /* harmony default export */ var version = ('3.5.4-beta.11');
12034
+ /* harmony default export */ var version = ('3.5.4-beta.13');
12035
12035
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12036
12036
 
12037
12037
 
@@ -37292,7 +37292,7 @@ var Scroll = function Scroll(props) {
37292
37292
  var containerStyle = defineProperty_default()(defineProperty_default()({
37293
37293
  height: '100%',
37294
37294
  width: '100%',
37295
- display: 'inline-flex',
37295
+ display: 'inline-block',
37296
37296
  overflow: 'hidden',
37297
37297
  position: 'sticky'
37298
37298
  }, isRtl ? 'right' : 'left', 0), "top", 0);
@@ -37380,12 +37380,7 @@ var Scroll = function Scroll(props) {
37380
37380
  style: containerStyle,
37381
37381
  ref: containerRef,
37382
37382
  onScroll: handleInnerScroll,
37383
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
37384
- style: objectSpread2_default()({
37385
- flexGrow: 1
37386
- }, props.childrenStyle),
37387
- children: props.children
37388
- })
37383
+ children: props.children
37389
37384
  })), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
37390
37385
  style: placeStyle,
37391
37386
  children: "\xA0"
@@ -37564,9 +37559,6 @@ var VirtualList = function VirtualList(props) {
37564
37559
  scrollWidth: 0,
37565
37560
  scrollHeight: scrollHeight,
37566
37561
  wrapperRef: wrapperRef,
37567
- childrenStyle: {
37568
- width: '100%'
37569
- },
37570
37562
  onScroll: handleScroll,
37571
37563
  onMouseMove: handleMouseMove,
37572
37564
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(Tag, {
@@ -57304,6 +57296,7 @@ var Step = function Step(props) {
57304
57296
  onChange = props.onChange;
57305
57297
  var config = useConfig();
57306
57298
  var styles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$steps = jssStyle.steps) === null || _jssStyle$steps === void 0 ? void 0 : _jssStyle$steps.call(jssStyle)) || {};
57299
+ var isDisabled = typeof disabled === 'function' ? disabled(index, id) : disabled;
57307
57300
  var getLabelPlacement = function getLabelPlacement() {
57308
57301
  // dot 类型只支持 vertical labelPlacement
57309
57302
  if (type === 'dot') {
@@ -57322,9 +57315,9 @@ var Step = function Step(props) {
57322
57315
  };
57323
57316
  var status = getStatus();
57324
57317
  var labelPlacement = getLabelPlacement();
57325
- var rootClass = classnames_default()(styles.step, className, styles[status], defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, styles.disabled, disabled), styles.finish, current > index), styles.horizontalLabel, labelPlacement === 'horizontal'), styles.verticalLabel, labelPlacement === 'vertical'), styles.widthDescription, !!description));
57318
+ var rootClass = classnames_default()(styles.step, className, styles[status], defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()({}, styles.disabled, isDisabled), styles.finish, current > index), styles.horizontalLabel, labelPlacement === 'horizontal'), styles.verticalLabel, labelPlacement === 'vertical'), styles.widthDescription, !!description));
57326
57319
  var handleChange = function handleChange(e) {
57327
- if (disabled) return;
57320
+ if (isDisabled) return;
57328
57321
  onClick === null || onClick === void 0 || onClick(e, index, id);
57329
57322
  onChange === null || onChange === void 0 || onChange(index);
57330
57323
  };
@@ -57365,7 +57358,10 @@ var Step = function Step(props) {
57365
57358
  var StepWidthContext = function StepWidthContext(props) {
57366
57359
  return /*#__PURE__*/(0,jsx_runtime.jsx)(steps_context.Consumer, {
57367
57360
  children: function children(value) {
57368
- return /*#__PURE__*/(0,jsx_runtime.jsx)(Step, objectSpread2_default()(objectSpread2_default()({}, props), value));
57361
+ var disabled = 'disabled' in props ? props.disabled : value.disabled;
57362
+ return /*#__PURE__*/(0,jsx_runtime.jsx)(Step, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, props), value), {}, {
57363
+ disabled: disabled
57364
+ }));
57369
57365
  }
57370
57366
  });
57371
57367
  };
@@ -57386,6 +57382,7 @@ var Steps = function Steps(props) {
57386
57382
  _props$type = props.type,
57387
57383
  type = _props$type === void 0 ? 'default' : _props$type,
57388
57384
  size = props.size,
57385
+ disabled = props.disabled,
57389
57386
  status = props.status,
57390
57387
  _props$direction = props.direction,
57391
57388
  directionProp = _props$direction === void 0 ? 'horizontal' : _props$direction,
@@ -57431,6 +57428,7 @@ var Steps = function Steps(props) {
57431
57428
  labelPlacement: labelPlacement,
57432
57429
  size: size,
57433
57430
  type: type,
57431
+ disabled: disabled,
57434
57432
  onChange: onChange
57435
57433
  },
57436
57434
  children: renderStep()
@@ -67146,7 +67144,7 @@ var upload_interface = __webpack_require__(8821);
67146
67144
 
67147
67145
 
67148
67146
  /* harmony default export */ var src_0 = ({
67149
- version: '3.5.4-beta.11'
67147
+ version: '3.5.4-beta.13'
67150
67148
  });
67151
67149
  }();
67152
67150
  /******/ return __webpack_exports__;