sea-crm-components
v1.0.20
Published
基于 Vue 3 和 Ant Design Vue 的企业级组件库。
Readme
sea-crm-components-library
基于 Vue 3 和 Ant Design Vue 的企业级组件库。
安装
npm install sea-crm-components快速开始
1. 全局注册
在 main.js 或 main.ts 中引入并使用:
import { createApp } from "vue";
import App from "./App.vue";
import SeaCrmComponents from "sea-crm-components";
// 重要:需要引用 Ant Design Vue 样式和组件库样式
import "sea-crm-components/dist/index.css";
const app = createApp(App);
app.use(SeaCrmComponents);
app.mount("#app");2. 按需使用
<template>
<SelectGives />
</template>
<script setup>
import { SelectGives } from "sea-crm-components";
</script>样式引用
重要提示:使用组件前必须引用样式文件:
import "sea-crm-components/dist/index.css";由于本组件库基于 Ant Design Vue 开发,如果项目中尚未引入 Ant Design Vue 样式,还需要额外引用:
import "ant-design-vue/dist/antd.css";组件列表
| 组件名 | 说明 | | ----------- | ------------ | | SelectGives | 选择赠品组件 |
依赖
- Vue 3.x
- Ant Design Vue 3.x
开发
# 启动开发服务器
npm run dev
# 构建生产版本
npm run build许可证
版权所有 © 2026 SeaSoft
