@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 917 B
Source Map (JSON)
{"version":3,"file":"LayoutToc.mjs","names":[],"sources":["../../../src/Layout/components/LayoutToc.tsx"],"sourcesContent":["'use client';\n\nimport { cx } from 'antd-style';\nimport { memo } from 'react';\n\nimport { styles } from '../style';\nimport type { LayoutTocProps } from '../type';\n\nexport const LayoutToc = memo<LayoutTocProps>(\n ({ tocWidth, style, className, children, ...rest }) => {\n return (\n <nav\n className={cx(styles.toc, className)}\n style={tocWidth ? { width: tocWidth, ...style } : style}\n {...rest}\n >\n {children}\n </nav>\n );\n },\n);\n\nLayoutToc.displayName = 'LayoutToc';\n\nexport default LayoutToc;\n"],"mappings":";;;;;;;;AAQA,MAAa,YAAY,MACtB,EAAE,UAAU,OAAO,WAAW,UAAU,GAAG,WAAW;AACrD,QACE,oBAAC;EACC,WAAW,GAAG,OAAO,KAAK,UAAU;EACpC,OAAO,WAAW;GAAE,OAAO;GAAU,GAAG;GAAO,GAAG;EAClD,GAAI;EAEH;GACG;EAGX;AAED,UAAU,cAAc;AAExB,wBAAe"}