weui / react-weui

weui for react

Home Page:https://weui.github.io/react-weui/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FlexItem标签

shineycoding opened this issue · comments

Do you want to request a feature or report a bug (建议还是bug) ?
问题
What is the current behavior? (现有状况)

 import React from 'react';
import { Flex, FlexItem, Page, Article } from 'react-weui';

export default class HeadPage extends React.Component {
    render() {
        return (
            <Page className="flex" title="Flex" subTitle="Flex布局" spacing>
                <Flex>
                    <FlexItem>
                        <h1>weui</h1>
                    </FlexItem>
                </Flex>
            </Page>
        );
    }
}

Warning: The tag is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.

加上标签 <FlexItem> 就出现上面的问题。
并且发现 <Page> 并没有被渲染出来

What is the expected behavior? (应有状况)
image

Which versions of React-weui, weui, and which OS and device are affected by this issue? (React-weui版本 weui版本 机型和系统)
最新版本

1.1.3版本的,用了FlexItem会有下面的报错
Warning: The tag <component> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.

这个问题已经修复了,无奈目前最新的版本1.2.1并没有包含最新的代码,不知道更新了什么。 @z2014

commented

@ettingshausen 1.2.2版本的pr只增加了
https://github.com/weui/react-weui/pull/303,
看了下之前的pr并没有人合并,
https://github.com/weui/react-weui/pull/271,
稍等我晚点提一个pr过去