yireo / magento2-react-menu
模块,用于为Magento 2 KO前端添加React菜单
dev-master
2020-08-19 12:51 UTC
Requires
- php: >=7.3.0
- ext-json: *
- magento/framework: ^100.1|^101.0|^102.0|^103.0
- yireo/magento2-react: *
Requires (Dev)
- composer/composer: *@dev
This package is auto-updated.
Last update: 2024-09-19 21:54:44 UTC
README
本模块提供了一个基于React的菜单,用于替换Magento本身的现有顶部导航。请注意,这是一个实验,旨在展示构建React组件的简易性。它可以在实时网站上使用,但不提供任何保修。
安装
在安装此模块之前,请先安装Yireo_React模块。通过composer
安装应立即自动完成。
使用以下命令将此模块安装到Magento 2
composer config repositories.yireo-react vcs git@github.com:yireo-training/Yireo_React.git
composer config repositories.yireo-react-menu vcs git@github.com:yireo-training/Yireo_ReactMenu.git
composer require yireo/magento2-react-menu:dev-master
bin/magento module:enable Yireo_React Yireo_ReactMenu
bin/magento setup:upgrade
请务必阅读下面的使用说明部分。
使用说明
此模块基于ReactJS为Magento 2前端添加了额外的迷你购物车,并移除了旧组件。这需要将源代码编译成通用的JS代码。要编译源代码,请遵循从Magento根目录编译源代码的Yireo_React
程序。
yarn dev