
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@skyfox2000/webui
Advanced tools
这是一个专为微前端架构设计的企业级前端组件库,提供了完整的后台管理系统通用组件、工具函数、类型定义和业务逻辑封装。该组件库是微前端生态系统的核心基础设施,为各个子应用提供统一的UI组件、数据处理、状态管理和业务功能支持。
/form)功能职责:提供完整的表单控件和输入组件
基础输入组件
input: 文本输入框组件,支持多种输入类型textarea: 多行文本输入组件autoComplete: 自动完成输入组件datePicker: 日期选择器组件rangePicker: 日期范围选择器组件选择类组件
select: 下拉选择组件,支持远程数据加载treeSelect: 树形选择组件,支持层级数据cascader: 级联选择器组件radio: 单选按钮组件checkbox: 复选框组件switch: 开关组件transfer: 穿梭框组件高级组件
aceEditor: 代码编辑器组件,支持语法高亮propEditor: 属性编辑器组件,支持动态属性配置upload: 文件上传组件,支持多种上传方式/layout)功能职责:提供页面布局和导航相关组件
页面布局
page: 标准页面布局组件content: 内容区域布局组件header: 页面头部组件breadcrumb: 面包屑导航组件导航组件
menu: 菜单导航组件,支持多级菜单datetime: 时间显示组件/content)功能职责:提供数据展示和交互组件
/common)功能职责:提供基础UI组件和工具组件
/error)功能职责:提供错误展示和异常处理组件
// 统一的数据操作接口
export { doQuery, doExecute, doSave, doDelete } from '@/utils/data';
// 表格数据处理
export { gridQueryList, gridQueryFind, gridRowUpdate, gridStatusUpdate } from '@/utils/table';
// 表单验证框架
export { initValidate, formValidate, validateData, useInputFactory } from '@/utils/form-validate';
// Excel文件处理
export { validateExcel, processExcelFile } from '@/utils/form-excel';
// 文件上传下载
export { downloadBlob, donwloadFromMinio } from '@/utils/download';
export { AsyncUploader } from '@/utils/file-upload';
// 数据导出
export { exportSelectedRows, exportResults } from '@/utils/export-table';
// 缓存管理
export { CacheKeys, Cache, initCacheCheck } from '@/utils/cache';
// 状态管理
export { pinia } from '@/stores/pinia';
// 选项数据管理
export { loadOption, unloadOption, getSelectedValues } from '@/utils/options';
// 页面控制类型
export type { PageControl, PageControlOption } from '@/typings/page.d';
// 表格控制类型
export type { GridControl, GridControlOption } from '@/typings/table.d';
// 表单控制类型
export type { EditorControl, EditorControlOption } from '@/typings/form.d';
// 树控件类型
export type { TreeControl, TreeControlOption, TreeNode } from '@/typings/tree.d';
// 工具按钮类型
export type { ButtonTool, ButtonTools, IconTool } from '@/typings/tools.d';
// 文件上传类型
export type { UploadFile, MinioFile } from '@/typings/upload.d';
// 选项数据类型
export type { OptionItemProps, SelectValue } from '@/typings/option.d';
@skyfox2000/webui/
├── src/
│ ├── assets/ # 静态资源
│ │ └── global.css # 全局样式
│ ├── components/ # 组件库
│ │ ├── form/ # 表单组件
│ │ │ ├── input/ # 输入框组件
│ │ │ ├── select/ # 选择器组件
│ │ │ ├── upload/ # 上传组件
│ │ │ └── ... # 其他表单组件
│ │ ├── layout/ # 布局组件
│ │ │ ├── page/ # 页面布局
│ │ │ ├── header/ # 页头组件
│ │ │ ├── menu/ # 菜单组件
│ │ │ └── ... # 其他布局组件
│ │ ├── content/ # 内容组件
│ │ ├── common/ # 通用组件
│ │ ├── error/ # 错误处理组件
│ │ └── index.ts # 组件导出
│ ├── utils/ # 工具函数
│ │ ├── data.ts # 数据处理工具
│ │ ├── form-validate.ts # 表单验证工具
│ │ ├── table.ts # 表格工具
│ │ ├── file-upload.ts # 文件上传工具
│ │ └── ... # 其他工具函数
│ ├── typings/ # 类型定义
│ │ ├── page.d.ts # 页面类型
│ │ ├── form.d.ts # 表单类型
│ │ ├── table.d.ts # 表格类型
│ │ └── ... # 其他类型定义
│ ├── stores/ # 状态管理
│ ├── router/ # 路由管理
│ ├── directives/ # 自定义指令
│ ├── const/ # 常量定义
│ └── index.ts # 主入口文件
├── lib/ # 构建输出
│ ├── webui.es.js # ES模块
│ ├── webui.css # 样式文件
│ ├── index.d.ts # 类型声明
│ └── es/ # 按需导入文件
├── package.json # 项目配置
├── vite.config.ts # Vite配置
├── tsconfig.json # TypeScript配置
└── README.md # 项目说明
npm install @skyfox2000/webui
# 或
pnpm add @skyfox2000/webui
// 完整导入
import { usePageFactory, useGridFactory, useEditorFactory, doQuery, formValidate } from '@skyfox2000/webui';
// 导入样式
import '@skyfox2000/webui/webui.css';
// 按需导入组件
import BasicLayout from '@skyfox2000/webui/es/BasicLayout';
import { usePageFactory, useGridFactory } from '@skyfox2000/webui';
// 创建页面控制器
const pageControl = usePageFactory({
apiUrls: {
query: '/api/users/query',
save: '/api/users/save',
delete: '/api/users/delete',
},
});
// 创建表格控制器
const gridControl = useGridFactory({
columns: [
{ title: '用户名', dataIndex: 'username' },
{ title: '邮箱', dataIndex: 'email' },
{ title: '状态', dataIndex: 'status' },
],
});
# 安装依赖
pnpm install
# 开发构建(链接WebBase库)
pnpm build:dev
# 生产构建
pnpm build
# 类型声明生成
pnpm build:types
{
"exports": {
".": {
"types": "./lib/index.d.ts",
"default": "./lib/webui.es.js"
},
"./webui.css": {
"default": "./lib/webui.css"
},
"./es/*": {
"import": "./lib/es/*/index.js",
"types": "./lib/*.d.ts"
}
}
}
import { pinia } from '@skyfox2000/webui';
import { useAppInfo, useUserInfo } from '@skyfox2000/webui';
// 在主应用中使用
app.use(pinia);
// 获取应用信息
const appInfo = useAppInfo();
const userInfo = useUserInfo();
import { AppRouter, pendingNavigation } from '@skyfox2000/webui';
// 路由导航处理
if (pendingNavigation.value) {
pendingNavigation.value.next();
}
import { getHostInfo, getUserInfo, mainAppPush } from '@skyfox2000/webui';
// 获取主应用数据
const hostInfo = getHostInfo();
const userInfo = getUserInfo();
// 主应用路由跳转
mainAppPush('/target-path');
index.ts中导出组件index.ts中添加组件导出utils目录下创建工具函数文件index.ts中导出工具函数typings目录下创建类型定义文件index.ts中导出类型该微前端子应用基础库是企业级微前端生态系统的核心基础设施,为各个子应用提供统一、高效、可扩展的前端解决方案。
FAQs
后台前端通用组件定义, 支持国际化
The npm package @skyfox2000/webui receives a total of 283 weekly downloads. As such, @skyfox2000/webui popularity was classified as not popular.
We found that @skyfox2000/webui 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.