ci-plus 1.0.3 → 1.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 CHANGED
@@ -1,5 +1,23 @@
1
1
  ## 安装本组件库
2
2
 
3
+ ```sh
4
+ # 1、安装组件
5
+ pnpm install ci-plus -S
6
+ # 2、安装element-plus 和引入
7
+ pnpm install element-plus@2.5.1 @element-plus/icons-vue@2.3.1 -S
8
+ # 3、安装package.json中的其他依赖(到node_modules/ci-plus/package.json目录下,把里面的依赖安装)
9
+ # 4、main.ts引入组件
10
+ import ElementPlus from 'element-plus'
11
+ import 'element-plus/dist/index.css'
12
+ import CiPlus from 'ci-plus'
13
+
14
+ # 5、全局注册
15
+ app.use(ElementPlus)
16
+ app.use(CiPlus)
17
+
18
+
19
+ ```
20
+
3
21
  ```sh
4
22
  # 本地安装项目
5
23
  pnpm install 项目package.json所在目录
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ci-plus",
3
- "version": "1.0.3",
4
- "description": "cc组件库",
3
+ "version": "1.0.5",
4
+ "description": "ci组件库",
5
5
  "main": "./index.ts",
6
6
  "scripts": {
7
7
  "build": "vite build",
package/src/index.ts CHANGED
@@ -6,6 +6,6 @@ export * from './ccapp';
6
6
  export * from './svgicon';// svg图标
7
7
  export * from './selectSuffix';
8
8
  export * from './sortableTable/index/headButtons'; // 导出排序表头按钮
9
- export * from './sortableTable/index/sortableTableTs'; // 导出排序表格
9
+ export * from './sortableTable/index/sortableTable'; // 导出排序表格
10
10
  export * from './sortableTable/index/sortableTableDialog'; // 导出表排序组件
11
11
  export * from './sortableTable/index/sortableTableColumnCell'; // 导出表列组件
@@ -1,9 +0,0 @@
1
- import { SortColumn } from '../utils/interface'
2
-
3
- export const setKey = (data: SortColumn[], path: number[] = []) => {
4
- data.forEach((v, i) => {
5
- const path_ = [...path, i]
6
- v.key = path_.join('_')
7
- if (v.children) setKey(v.children, path_)
8
- })
9
- }