shineout 3.5.4-beta.11 → 3.5.4-beta.12
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 +1 -1
- package/dist/shineout.js +11 -5
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
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.
|
|
510
|
+
version: '3.5.4-beta.12'
|
|
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.
|
|
12034
|
+
/* harmony default export */ var version = ('3.5.4-beta.12');
|
|
12035
12035
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12036
12036
|
|
|
12037
12037
|
|
|
@@ -57304,6 +57304,7 @@ var Step = function Step(props) {
|
|
|
57304
57304
|
onChange = props.onChange;
|
|
57305
57305
|
var config = useConfig();
|
|
57306
57306
|
var styles = (jssStyle === null || jssStyle === void 0 || (_jssStyle$steps = jssStyle.steps) === null || _jssStyle$steps === void 0 ? void 0 : _jssStyle$steps.call(jssStyle)) || {};
|
|
57307
|
+
var isDisabled = typeof disabled === 'function' ? disabled(index, id) : disabled;
|
|
57307
57308
|
var getLabelPlacement = function getLabelPlacement() {
|
|
57308
57309
|
// dot 类型只支持 vertical labelPlacement
|
|
57309
57310
|
if (type === 'dot') {
|
|
@@ -57322,9 +57323,9 @@ var Step = function Step(props) {
|
|
|
57322
57323
|
};
|
|
57323
57324
|
var status = getStatus();
|
|
57324
57325
|
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,
|
|
57326
|
+
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
57327
|
var handleChange = function handleChange(e) {
|
|
57327
|
-
if (
|
|
57328
|
+
if (isDisabled) return;
|
|
57328
57329
|
onClick === null || onClick === void 0 || onClick(e, index, id);
|
|
57329
57330
|
onChange === null || onChange === void 0 || onChange(index);
|
|
57330
57331
|
};
|
|
@@ -57365,7 +57366,10 @@ var Step = function Step(props) {
|
|
|
57365
57366
|
var StepWidthContext = function StepWidthContext(props) {
|
|
57366
57367
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(steps_context.Consumer, {
|
|
57367
57368
|
children: function children(value) {
|
|
57368
|
-
|
|
57369
|
+
var disabled = 'disabled' in props ? props.disabled : value.disabled;
|
|
57370
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Step, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, props), value), {}, {
|
|
57371
|
+
disabled: disabled
|
|
57372
|
+
}));
|
|
57369
57373
|
}
|
|
57370
57374
|
});
|
|
57371
57375
|
};
|
|
@@ -57386,6 +57390,7 @@ var Steps = function Steps(props) {
|
|
|
57386
57390
|
_props$type = props.type,
|
|
57387
57391
|
type = _props$type === void 0 ? 'default' : _props$type,
|
|
57388
57392
|
size = props.size,
|
|
57393
|
+
disabled = props.disabled,
|
|
57389
57394
|
status = props.status,
|
|
57390
57395
|
_props$direction = props.direction,
|
|
57391
57396
|
directionProp = _props$direction === void 0 ? 'horizontal' : _props$direction,
|
|
@@ -57431,6 +57436,7 @@ var Steps = function Steps(props) {
|
|
|
57431
57436
|
labelPlacement: labelPlacement,
|
|
57432
57437
|
size: size,
|
|
57433
57438
|
type: type,
|
|
57439
|
+
disabled: disabled,
|
|
57434
57440
|
onChange: onChange
|
|
57435
57441
|
},
|
|
57436
57442
|
children: renderStep()
|
|
@@ -67146,7 +67152,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
67146
67152
|
|
|
67147
67153
|
|
|
67148
67154
|
/* harmony default export */ var src_0 = ({
|
|
67149
|
-
version: '3.5.4-beta.
|
|
67155
|
+
version: '3.5.4-beta.12'
|
|
67150
67156
|
});
|
|
67151
67157
|
}();
|
|
67152
67158
|
/******/ return __webpack_exports__;
|