定制 aimes/magento2-improved-admin-ui 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aimes/magento2-improved-admin-ui

最新稳定版本:1.1.0

Composer 安装命令:

composer require aimes/magento2-improved-admin-ui

包简介

Improved UI for certain aspects of the admin area

README 文档

README

"Supported Magento Version" "Supported Adobe Commerce Version" "Latest Release"

  • Compatible with Magento Open Source and Adobe Commerce 2.4.x

Features

  • Use a slightly modified UI-select component to replace standard select and multiselect components
    • Provides a search field for option models that have a lot of options (E.g. CMS Blocks)
  • Dynamically use ui-select components, replacing select and multiselect components, in the product edit form
    • Configured to perform this action only when a certain number of options are shown
  • Support for the default category attribute landing_page on the category form
  • Any custom form can be modified, see Usage

Requirements

  • Magento Open Source or Adobe Commerce version 2.4.x

Installation

Please install this module via Composer. This module is hosted on Packagist.

  • composer require aimes/magento2-improved-admin-ui
  • bin/magento module:enable Aimes_ImprovedAdminUi
  • bin/magento setup:upgrade

Usage

Dynamic Replacement

System configuration is provided to set the minimum amount of options required before the component is rendered as a ui-select. By default, this value is set to 20.

Stores -> Configuration -> Catalog -> Catalog -> Admin UI

Statically Declared UI Components

Not every form has a pool of modifiers, most are statically declared. Since modifying attributes within these forms generally requires a new ui_component file, customisation to additional attributes can be done there. For example:

view/adminhtml/category_form.xml

<!-- some fields -->
<field name="my_custom_attribute"
       component="Aimes_ImprovedAdminUi/js/form/element/ui-select"
       formElement="select">
    <argument name="data" xsi:type="array">
        <item name="config" xsi:type="array">
            <item name="multiple" xsi:type="boolean">false</item>
        </item>
    </argument>
    <settings>
        <elementTmpl>ui/grid/filters/elements/ui-select</elementTmpl>
    </settings>
</field>
<!-- some more fields -->

This should be merged with any other desired/required settings. Settings can be found on the default ui-select component documentation.

Preview

Product Form - Select

image

Product Form - Multiselect

image

Licence

GPLv3 © Rob Aimes

统计信息

  • 总下载量: 2.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 16
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2024-10-31