rashagu / semi-design-vue

Vue3 UI components based on semi-design and Vue
https://www.kousum.asia
MIT License
67 stars 6 forks source link

Layout组件属性是否不全 #9

Closed twitf closed 5 months ago

twitf commented 5 months ago
<script setup>
import {ref} from 'vue'

import { Layout, Nav, Button, Breadcrumb, Skeleton, Avatar } from '@kousum/semi-ui-vue';
import { IconSemiLogo, IconBell, IconHelpCircle, IconBytedanceLogo, IconHome, IconHistogram, IconLive, IconSetting } from '@kousum/semi-icons-vue';
console.log(Object.keys(Layout));
</script>

const {Header, Footer, Sider, Content} = Layout; 这个里面好像并没有 Header, Footer, Sider, Content 这些子组件,是否是我使用的有问题呢

rashagu commented 5 months ago

export { LayoutContent, LayoutFooter, LayoutHeader, LayoutSider } from './layout';

为了有类型提示,所以有些组件名称改了比如Layout.Content 改成 LayoutContent

twitf commented 5 months ago

十分感谢你的付出。 还有我想问下,这个库是不是暂时没时间做文档了

rashagu commented 5 months ago

可能是没时间了,如果其他开发者有兴趣可以提pr