/**
 * title: "左右调整形态"
 * description: "disabled 禁止输入，type 属性来设置按钮摆放位置，max 、min 设置最大值和最小值，step 属性设置每一次变化的步长。"
 */
import React from 'react';
import { NumberPicker } from '@alicloud/console-components';

const titleStyle = {
  margin: '4px 0 4px',
  color: '#1D1D1F',
  height: 20,
};

const contentStyle = {
  display: 'grid',
  gridTemplateColumns: 'repeat(2, 1fr)',
  gap: 36,
};

export default () => {
  return (
    <div style={contentStyle}>
      <div>
        <div style={titleStyle}>默认</div>
        <NumberPicker type="inline" max={10} min={1} />
      </div>
      <div>
        <div style={titleStyle}>输入完成</div>
        <NumberPicker type="inline" defaultValue={6} max={10} min={1} />
      </div>
      <div>
        <div style={titleStyle}>禁用</div>
        <NumberPicker
          type="inline"
          defaultValue={7}
          max={10}
          min={1}
          disabled
        />
      </div>
    </div>
  );
};


