index.js 524 B

12345678910111213141516171819
  1. import React from 'react'
  2. import styles from './style.module.less'
  3. export default function DetialTable(props) {
  4. const { title, children, openBtn = false } = props
  5. return (
  6. <div className={styles.headerTitle}>
  7. <div className={styles.titleLeftIcon} />
  8. <div className={styles.titleLeftName}>{ title }</div>
  9. {
  10. openBtn &&
  11. <div className={styles.editBtn}>
  12. {/* <i /> */}
  13. {/* <slot name="handleSlot" /> */}
  14. {children}
  15. </div>
  16. }
  17. </div>
  18. );
  19. }