react-weui icon indicating copy to clipboard operation
react-weui copied to clipboard

FlexItem标签

Open shineycoding opened this issue 7 years ago • 5 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版本 机型和系统) 最新版本

shineycoding avatar Nov 17 '17 03:11 shineycoding

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.

yeeez avatar Nov 17 '17 15:11 yeeez

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

ettingshausen avatar Aug 31 '19 12:08 ettingshausen

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

z2014 avatar Sep 02 '19 03:09 z2014

#310

z2014 avatar Sep 02 '19 04:09 z2014