定制 epik-dev/vue-items-list 二次开发

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

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

epik-dev/vue-items-list

Composer 安装命令:

composer require epik-dev/vue-items-list

包简介

Vue items list drupal module (test). Module adds a 'Vue items list' block that fetches data from an API endpoint and renders it as a list of items. It uses a Vue 3 / Typescript component for rendering.

README 文档

README

This is a test Drupal module that adds a Vue items list block which uses compiled Vue 3 SFC / Typescript component to render its content. The Vue component fetches and lists data from a predefined API endpoint (configurable).

Installation

  1. Use composer to install the module

    composer require epik-dev/vue-items-list
  2. Once installed, to enable the module, go to the Extend page (Manage->Extend, {drupal_site}/admin/modules), find Vue items list (Test Module), tick a checkbox in front of it and click Install button

  3. Place the block via at Block layout page:

    1. Log in as an administrator on your Drupal site
    2. Navigate to Block layout page (Manage->Structure->Block layout, {drupal_site}/admin/structure/block)
    3. Select a block region where you want to place the block, e.g. Header (block region names are specific to themes) and click Place block button
    4. In the block list that opens, find the Vue items list block or type it in the filter textfield
    5. Once found, click Place block button next to it, configure options if necessary

Configuration options

When placing or configuring a block, two configuration options are available:

  • API endpoint: The URL of the API endpoint to retrieve data
  • Maximum items to show: Maximum number of data items displayed in the block

Technical info

Vue component is build as native ES module employing Vite, which compiles Vue SFC component into separate index.js and index.css files, which are loaded by the module to render its content.

Component source code folder is /vite/src Component build code folder /component

However, for this build to work, this module loads a separate Vue esm version from CDN, its url is specified under vue.cdn.esm key in vue_items_list.libraries.yml.

Modern Vue development best practices include using Vue SFCs (Single File Components), TypeScript, and Vite tooling.

Vue SFCs are files that can contain a block of code for scripts, templates, and styles that combine and encapsulate all aspects of a component. To use Typescript for Vue, a transpilation step is required, converting Typescript -> JS. Vite handles all of the above, moreover, it accelerates development with HMR and provides rich build options.

Requirements

  • Drupal 9.x, 10.x.
  • PHP >= 8.0

epik-dev/vue-items-list 适用场景与选型建议

epik-dev/vue-items-list 是一款 基于 Vue 开发的 Composer 扩展包,目前已累计 14 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 08 月 14 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「drupal」 「typescript」 「vue 3」 「Vue items list」 「ePikDev」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 epik-dev/vue-items-list 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 epik-dev/vue-items-list 我们能提供哪些服务?
定制开发 / 二次开发

基于 epik-dev/vue-items-list 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Vue

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-08-14