diff --git a/src/pages/compute/containers/Instance/actions/StepCreate/index.jsx b/src/pages/compute/containers/Instance/actions/StepCreate/index.jsx index 40eede9d..47f2fa9b 100644 --- a/src/pages/compute/containers/Instance/actions/StepCreate/index.jsx +++ b/src/pages/compute/containers/Instance/actions/StepCreate/index.jsx @@ -518,9 +518,9 @@ export class StepCreate extends StepAction { return null; } - renderFooterLeft() { + getCountInputConfig() { const { data } = this.state; - const { count = 1, source: { value: sourceValue } = {} } = data; + const { source: { value: sourceValue } = {} } = data; const configs = { min: 1, max: @@ -533,17 +533,30 @@ export class StepCreate extends StepAction { onChange: this.onCountChange, formatter: (value) => `$ ${value}`.replace(/\D/g, ''), }; + return configs; + } + + renderCountInput() { + const { data } = this.state; + const { count = 1 } = data || {}; + const configs = this.getCountInputConfig(); + return ( +