EditorSteps.tsx 415 B

1234567891011121314151617181920
  1. import React from 'react'
  2. import { Steps } from 'antd'
  3. const Step = Steps.Step
  4. interface IEditorStepProps {
  5. current: number
  6. }
  7. export const EditorSteps: React.FunctionComponent<IEditorStepProps> = (props) => {
  8. const { current } = props
  9. return (
  10. <Steps current={current}>
  11. <Step title="编写 SQL" />
  12. <Step title="编辑数据模型与权限" />
  13. </Steps>
  14. )
  15. }
  16. export default EditorSteps