@lemon30_npm/csit-vue3 0.0.0 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -0
- package/dist/csit-vue3.js +42578 -4975
- package/dist/index.css +1 -1
- package/dist/types/src/components/components-global/SvgIcon/index.d.ts +4 -0
- package/dist/types/src/components/components-global/SvgIcon/index.vue.d.ts +4 -39
- package/dist/types/src/components/components-global/SvgIcon/type.d.ts +7 -0
- package/dist/types/src/components/components-project/ci-blue-line-title/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-layout/index.d.ts +2 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-layout/index.vue.d.ts +19 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-pagination/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-pagination/index.vue.d.ts +7 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-query/index.d.ts +2 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-query/index.vue.d.ts +12 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-start-end-datepicker/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-common-list/ci-common-list-start-end-datepicker/index.vue.d.ts +15 -0
- package/dist/types/src/components/components-project/ci-dictionary-select/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-dictionary-select/index.vue.d.ts +14 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-ChinaMap/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-ChinaMap/index.vue.d.ts +17 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-bar/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-bar/index.vue.d.ts +8 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-pie/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-echarts/ci-echart-pie/index.vue.d.ts +8 -0
- package/dist/types/src/components/components-project/ci-element-plus/ci-el-date-picker-daterange/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-element-plus/ci-el-date-picker-daterange/index.vue.d.ts +24 -0
- package/dist/types/src/components/components-project/ci-no-data-status/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-no-data-status/index.vue.d.ts +11 -0
- package/dist/types/src/components/components-project/ci-page-header/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-page-header/index.vue.d.ts +21 -0
- package/dist/types/src/components/components-project/ci-svg-icon/index.d.ts +4 -0
- package/dist/types/src/components/components-project/ci-svg-icon/index.vue.d.ts +8 -0
- package/dist/types/src/components/components-project/ci-svg-icon/type.d.ts +7 -0
- package/dist/types/src/components/components-project/ci-time-line-list/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-time-line-list/index.vue.d.ts +14 -0
- package/dist/types/src/components/components-project/ci-upload/index.d.ts +3 -0
- package/dist/types/src/components/components-project/ci-upload/index.vue.d.ts +1 -1
- package/dist/types/src/components/index.d.ts +20 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# 🧩 csit-vue3 组件库
|
|
2
|
+
|
|
3
|
+
> 一个基于 **Vue 3** + **Element Plus** 封装的业务组件库,提供统一的 UI 规范和业务逻辑组件,提升开发效率。
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📦 安装方式
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# 推荐使用 pnpm
|
|
11
|
+
pnpm add @lemon30/csit-vue3
|
|
12
|
+
|
|
13
|
+
# 或者使用 npm/yarn
|
|
14
|
+
npm install @lemon30/csit-vue3
|
|
15
|
+
# 或
|
|
16
|
+
yarn add @lemon30/csit-vue3
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
#### ⚠️ 注意:该组件库依赖以下环境,请确保你的项目已安装(如果使用vue3项目脚手架,请忽略):
|
|
20
|
+
|
|
21
|
+
> 版本可自行升级,无影响
|
|
22
|
+
|
|
23
|
+
- "vue": "^3.5.12"
|
|
24
|
+
- "echarts": "^5.5.1"
|
|
25
|
+
- "echarts-map": "^3.0.1"
|
|
26
|
+
- "element-plus": "^2.9.7"
|
|
27
|
+
- "@element-plus/icons-vue": "^2.3.1"
|
|
28
|
+
- "axios": "^1.7.7"
|
|
29
|
+
- "nanoid": "^5.0.8"
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## 🚀 快速开始
|
|
34
|
+
|
|
35
|
+
在你的项目入口文件中:
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
import { createApp } from "vue";
|
|
39
|
+
import App from "./App.vue";
|
|
40
|
+
|
|
41
|
+
// 引入组件库
|
|
42
|
+
import CsitVue3 from "@lemon30_npm/csit-vue3";
|
|
43
|
+
// 引入 csit-vue3 样式
|
|
44
|
+
import "@lemon30_npm/csit-vue3/dist/index.css";
|
|
45
|
+
|
|
46
|
+
const app = createApp(App);
|
|
47
|
+
|
|
48
|
+
app.use(CsitVue3);
|
|
49
|
+
|
|
50
|
+
app.mount("#app");
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## 🧩 示例组件使用
|
|
54
|
+
|
|
55
|
+
```html
|
|
56
|
+
<template>
|
|
57
|
+
<CiUpload
|
|
58
|
+
class="demo-page-ci-upload"
|
|
59
|
+
v-model:file-list="fileList"
|
|
60
|
+
:accept="'.jpg,.png,.jpeg,.xls,.xlsx,.doc,.docx,.pdf,.zip'"
|
|
61
|
+
:limit="10"
|
|
62
|
+
:max-size="10 * 1024 * 1024"
|
|
63
|
+
:multiple="true"
|
|
64
|
+
>
|
|
65
|
+
</CiUpload>
|
|
66
|
+
</template>
|
|
67
|
+
|
|
68
|
+
<script lang="ts" setup>
|
|
69
|
+
import { ref } from 'vue'
|
|
70
|
+
|
|
71
|
+
const fileList = ref<any[]>([
|
|
72
|
+
{
|
|
73
|
+
fileSize: 1024 * 1024 * 1.3,
|
|
74
|
+
fileKey: 'key-0',
|
|
75
|
+
fileName: 'element-plus-logo-0.svg',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
fileSize: 1024 * 1024 * 1.3,
|
|
79
|
+
fileKey: 'key-0',
|
|
80
|
+
fileName: 'element-plus-logo-0.svg',
|
|
81
|
+
},
|
|
82
|
+
])
|
|
83
|
+
```
|