yew_quick 0.2.0

yew 框架快速开发组件库
docs.rs failed to build yew_quick-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: yew_quick-0.2.2

yew 框架 快速开发组件库

目前组件如下:

组件 说明
Block 块(Fragment)
Box 同div,不包括flex
Flex 同flex布局的div
Image 图片
Line 线
Text 文本
TextEllipsis 文本,多选省略

使用如下:

use yew::prelude::*;
use yew_quick::prelude::*;

#[function_component]
fn App() -> Html {
    // size 表示 宽 高
    html! {
        <Box size="100% 500">
            <Flex flex={FlexWay::Frbc} size="200 600">
                <Image size="50" src="" />
                <Text color="red" >{"文本"}</Text>
            </Flex>
        </Box>
    }
}