You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to request a feature or report a bug (建议还是bug) ?
Request a feature. But it can be regarded as a bug too.
What is the current behavior? (现有状况)
Grid when click will take you to the target URL if you set href. But for the case if such target URL is as part of react-router's URL, then it won't work when you build react into production build. It returns 404.
What is the expected behavior? (应有状况)
It should work the same even such URL is as part of react-router.
Which versions of React-weui, weui, and which OS and device are affected by this issue? (React-weui版本 weui版本 机型和系统)
React-weui: 1.0.3
weui: 1.1.0
The text was updated successfully, but these errors were encountered:
- provided 'component' property to be able to replace component instead
of using react-router, more flexible
example of setting from Grid's data from code to use react-router url is as follows
const data = [
{
icon: <img src="./image.png" alt="image icon"/>,
label: 'Label',
component: function(props) {
const { children, ...others } = props;
return <Link to="/router-url" {...others}> { children } </Link>;
}
},
]
Do you want to request a feature or report a bug (建议还是bug) ?
Request a feature. But it can be regarded as a bug too.
What is the current behavior? (现有状况)
Grid when click will take you to the target URL if you set
href
. But for the case if such target URL is as part ofreact-router
's URL, then it won't work when you build react into production build. It returns 404.What is the expected behavior? (应有状况)
It should work the same even such URL is as part of
react-router
.Which versions of React-weui, weui, and which OS and device are affected by this issue? (React-weui版本 weui版本 机型和系统)
React-weui:
1.0.3
weui:
1.1.0
The text was updated successfully, but these errors were encountered: