
Research
/Security News
Popular npm Packages in the keyv and Cacheable Namespaces Compromised in Active Supply Chain Attack
Popular npm packages keyv and cacheable compromised.
my-epson-components
Advanced tools
基于 Vue 3 + Element Plus 的通用业务组件库,提取自爱普生知识管理系统,可在任意 Vue 3 项目中复用。
npm install my-epson-components
前置依赖:项目中需已安装
vue@^3.4.0和element-plus@^2.5.0。
import { InlineEditTable } from 'my-epson-components'
<template>
<InlineEditTable
title="产品线管理"
name-label="产品线名称"
code-label="产品线编码"
:list-api="fetchList"
:create-api="createItem"
:update-api="updateItem"
:delete-api="deleteItems"
/>
</template>
<script setup>
import { InlineEditTable } from 'my-epson-components'
async function fetchList(params) {
// 返回格式:{ data: { items: [...], total: 100 } }
}
async function createItem(data) { /* POST */ }
async function updateItem(id, data) { /* PUT */ }
async function deleteItems(ids) { /* DELETE,ids 为数组 */ }
</script>
// main.js
import { createApp } from 'vue'
import EpsonUIComponents from 'my-epson-components'
const app = createApp(App)
app.use(EpsonUIComponents)
// 之后所有模板中可直接使用 <InlineEditTable />
| 组件名 | 说明 |
|---|---|
| InlineEditTable | 支持行内编辑、搜索、分页、批量删除的通用数据表格 |
适用于「名称 + 编码 + 描述」结构的档案/配置数据管理,内置行内编辑、模糊搜索、分页、批量删除、PP 同步数据保护等能力。
| 属性 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
title | String | ✅ | — | 页面标题 |
nameLabel | String | '名称' | 名称列的表头文字 | |
codeLabel | String | '编码' | 编码列的表头文字 | |
listApi | Function | ✅ | — | 列表查询函数,接收 { page, size, name?, description? },需返回 { data: { items, total } } |
createApi | Function | ✅ | — | 新增函数,接收 { name, code, description } |
updateApi | Function | ✅ | — | 更新函数,接收 (id, { name, code, description }) |
deleteApi | Function | ✅ | — | 批量删除函数,接收 ids: number[] |
{
data: {
items: Array<{
id: number
name: string
code: string
description?: string
sourceType: 'manual' | 'pp_sync' // pp_sync 行为只读
createdAt: string // ISO 8601
}>
total: number
}
}
pp_sync 来源数据自动跳过并给出提示sourceType === 'pp_sync' 的行禁止编辑,行背景高亮提示# 克隆仓库后进入组件库目录
cd ui-components
# 安装依赖
npm install
# 构建库(watch 模式)
npm run dev
# 一次性构建
npm run build
# 启动文档网站
npm run docs:dev
MIT
FAQs
爱普生通用 UI 组件库
We found that my-epson-components demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.