tm-ui-common
Version:
A reusable UI component library for Tampermonkey scripts
33 lines (26 loc) • 714 B
JavaScript
// tm-ui-common 主入口文件
// 导入基础样式
import './styles/base.css';
// 导入工具函数
export * from './utils/dom';
export * from './utils/event';
// 导入基础组件
export { default as Button } from './components/basic/Button';
export { default as Input } from './components/basic/Input';
export { default as Label } from './components/basic/Label';
export { default as Icon } from './components/basic/Icon';
// 版本信息
export const version = '1.0.0';
// 默认导出所有内容
export default {
// 组件
Button,
Input,
Label,
Icon,
// 工具函数
// 从 utils/dom 导出的所有函数
// 从 utils/event 导出的所有函数
// 版本信息
version
};