ci-plus 1.1.2 → 1.1.3

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/index.ts CHANGED
@@ -1,14 +1,17 @@
1
1
  import * as components from './src/index';
2
2
  export * from './src/index';
3
3
  import { App } from 'vue';
4
- export * as cifunction from './src/utils';
4
+
5
+ import * as D from './src/utils';
6
+ console.log('D: ', D);
5
7
 
6
8
  export default {
7
9
  install: (app: App) => {
8
10
  // 注册所有组件
9
- console.log('注册所有ci-plus组件: ');
11
+ console.log('注册所有ci-plus组件1.1.3: ');
10
12
  for (const c in components) {
11
13
  app.use(components[c]);
12
14
  }
13
- }
15
+ },
16
+ D,
14
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ci-plus",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "ci组件库",
5
5
  "main": "./index.ts",
6
6
  "scripts": {
@@ -19,8 +19,11 @@ declare module '@vue/runtime-core' {
19
19
  CiHeaderInput: typeof components.HeaderInput
20
20
  CiSdialog: typeof components.Sdialog
21
21
  CiColumncell: typeof components.Columncell
22
- CiUpload: typeof components.Upload
23
22
  CiIdentificationCard: typeof components.IdentificationCard
23
+
24
+ CiSeeFile: typeof components.SeeFile
25
+ CiUpload: typeof components.Upload
26
+ CiUploadV2: typeof components.UploadV2
24
27
  }
25
28
  }
26
29
  export { };
@@ -37,6 +37,7 @@
37
37
  </template>
38
38
 
39
39
  <script setup lang="ts">
40
+ defineOptions({ name: 'ci-upload' })
40
41
  import { ref } from 'vue'
41
42
  import { ElMessage, ElLoading, genFileId } from 'element-plus'
42
43
  import axios from 'axios'
@@ -0,0 +1,4 @@
1
+ import _SeeFile from '../seeFile.vue'
2
+ import { withInstall } from '../../utils/index';
3
+ export const SeeFile = withInstall(_SeeFile)
4
+ export default SeeFile
@@ -0,0 +1,4 @@
1
+ import _UploadV2 from '../uploadV2.vue'
2
+ import { withInstall } from '../../utils/index';
3
+ export const UploadV2 = withInstall(_UploadV2)
4
+ export default UploadV2
@@ -27,6 +27,7 @@
27
27
  </template>
28
28
 
29
29
  <script setup lang="ts">
30
+ defineOptions({ name: 'ci-seeFile' })
30
31
  import { ref, watch } from 'vue'
31
32
  import axios from 'axios'
32
33
  import { ElMessage } from 'element-plus'
@@ -43,6 +43,7 @@
43
43
  </template>
44
44
 
45
45
  <script setup lang="ts">
46
+ defineOptions({ name: 'ci-uploadV2' })
46
47
  // 定义一个函数,用于处理字符串
47
48
  export const setFilePath = (arr: string[], url?: string) => {
48
49
  // console.log('重新渲染数据', arr);
package/src/index.ts CHANGED
@@ -10,5 +10,9 @@ export * from './sortableTable/index/headerInput'; // 导出筛选面板
10
10
  export * from './sortableTable/index/sortableTable'; // 导出排序表格
11
11
  export * from './sortableTable/index/sortableTableDialog'; // 导出表排序组件
12
12
  export * from './sortableTable/index/sortableTableColumnCell'; // 导出表列组件
13
- export * from './fileRelated/index/ciupload'; // 导出文件上传组件
14
- export * from './identificationCard'; // 导出标识卡模板组件
13
+
14
+ export * from './identificationCard'; // 导出标识卡模板组件
15
+
16
+ export * from './fileRelated/index/ciseeFile'; // 导出附件查看组件
17
+ export * from './fileRelated/index/ciupload'; // 导出附件上传组件
18
+ export * from './fileRelated/index/ciuploadV2'; // 导出附件上传v2组件
@@ -1,2 +1,4 @@
1
1
  export { default as withInstall } from './withinstall/index';
2
- export { default as cardPrint } from './cardPrint';
2
+
3
+ export { default as setCardList } from './cardPrint'; // 导入默认的导出
4
+ export * from './cardPrint'; // 导入所有导出(不包含默认导出)