ci-plus 1.1.5 → 1.1.6

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
@@ -2,8 +2,8 @@ import * as components from './src/index';
2
2
  export * from './src/index';
3
3
  import { App } from 'vue';
4
4
 
5
- import * as D from './src/utils';
6
- console.log('D: ', D);
5
+ import * as Fn from './src/utils';
6
+ console.log('D: ', Fn);
7
7
 
8
8
  export default {
9
9
  install: (app: App) => {
@@ -13,5 +13,5 @@ export default {
13
13
  app.use(components[c]);
14
14
  }
15
15
  },
16
- D,
16
+ Fn,
17
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ci-plus",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "ci组件库",
5
5
  "main": "./index.ts",
6
6
  "scripts": {
@@ -40,7 +40,7 @@ interface Props {
40
40
  const props = defineProps<Props>()
41
41
 
42
42
  // 定义一个函数,用于处理字符串
43
- export const setFilePath = (arr: string[], url?: string) => {
43
+ const setFilePath = (arr: string[], url?: string) => {
44
44
  // console.log('重新渲染数据', arr);
45
45
  if (arr && arr.length > 0) {
46
46
  let newArr: { name: string; oldName: string }[] = []
@@ -59,7 +59,7 @@ export const setFilePath = (arr: string[], url?: string) => {
59
59
  }
60
60
 
61
61
  // 将路径处理成附件的参数
62
- export const fileArr = (url: string, pathArr: string[]) => {
62
+ const fileArr = (url: string, pathArr: string[]) => {
63
63
  if (pathArr && pathArr.length > 0) {
64
64
  let objArr: any = []
65
65
  if (pathArr.length > 0) {
@@ -45,7 +45,7 @@
45
45
  <script setup lang="ts">
46
46
  defineOptions({ name: 'ci-uploadV2' })
47
47
  // 定义一个函数,用于处理字符串
48
- export const setFilePath = (arr: string[], url?: string) => {
48
+ const setFilePath = (arr: string[], url?: string) => {
49
49
  // console.log('重新渲染数据', arr);
50
50
  if (arr && arr.length > 0) {
51
51
  let newArr: { name: string; oldName: string }[] = []
@@ -64,7 +64,7 @@ export const setFilePath = (arr: string[], url?: string) => {
64
64
  }
65
65
 
66
66
  // 将路径处理成附件的参数
67
- export const fileArr = (url: string, pathArr: string[]) => {
67
+ const fileArr = (url: string, pathArr: string[]) => {
68
68
  if (pathArr && pathArr.length > 0) {
69
69
  let objArr: any = []
70
70
  if (pathArr.length > 0) {