@utogether/utils 2.8.2 → 3.0.0-beta.0

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.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 加密方法
3
+ * @param data
4
+ * @returns {string}
5
+ */
6
+ export declare function encrypt(data: any): any;
7
+ /**
8
+ * 解密方法
9
+ * @param data
10
+ * @returns {string}
11
+ */
12
+ export declare function decrypt(data: any): any;
@@ -1,52 +1,52 @@
1
1
  export declare const formats: {
2
2
  formatDate: {
3
- cellFormatMethod({ cellValue }: {
3
+ tableCellFormatMethod({ cellValue }: {
4
4
  cellValue: any;
5
5
  }, format: any): any;
6
6
  };
7
7
  formatAmount: {
8
- cellFormatMethod({ cellValue }: {
8
+ tableCellFormatMethod({ cellValue }: {
9
9
  cellValue: any;
10
10
  }, digits?: number): string;
11
11
  };
12
12
  formatBankcard: {
13
- cellFormatMethod({ cellValue }: {
13
+ tableCellFormatMethod({ cellValue }: {
14
14
  cellValue: any;
15
15
  }): string;
16
16
  };
17
17
  formatFixedNumber: {
18
- cellFormatMethod({ cellValue }: {
18
+ tableCellFormatMethod({ cellValue }: {
19
19
  cellValue: any;
20
20
  }, digits?: number): any;
21
21
  };
22
22
  formatCutNumber: {
23
- cellFormatMethod({ cellValue }: {
23
+ tableCellFormatMethod({ cellValue }: {
24
24
  cellValue: any;
25
25
  }, digits?: number): any;
26
26
  };
27
27
  formatDict: {
28
- cellFormatMethod({ cellValue }: {
28
+ tableCellFormatMethod({ cellValue }: {
29
29
  cellValue: any;
30
30
  }, dictCode: any): any;
31
31
  };
32
32
  formatRelateField: {
33
- cellFormatMethod({ row, cellValue }: {
33
+ tableCellFormatMethod({ row, cellValue }: {
34
34
  row: any;
35
35
  cellValue: any;
36
36
  }, field: any): any;
37
37
  };
38
38
  formatContact: {
39
- cellFormatMethod({ row }: {
39
+ tableCellFormatMethod({ row }: {
40
40
  row: any;
41
41
  }, fields: any): any;
42
42
  };
43
43
  formatSelectLocal: {
44
- cellFormatMethod({ cellValue }: {
44
+ tableCellFormatMethod({ cellValue }: {
45
45
  cellValue: any;
46
46
  }, localOptions: any): any;
47
47
  };
48
48
  formatMultiValue: {
49
- cellFormatMethod({ row }: {
49
+ tableCellFormatMethod({ row }: {
50
50
  row: any;
51
51
  }, multiOptions: any): any;
52
52
  };
@@ -11,6 +11,21 @@ export declare const i18nColums: (columns: any) => any;
11
11
  * @return {*} form item数据标准化后的数据
12
12
  */
13
13
  export declare const formatItems: (items: any, status: any, span?: number) => any;
14
+ /** 表单form查询按钮组 */
15
+ export declare const formSearchButtons: {
16
+ span: number;
17
+ align: string;
18
+ collapseNode: boolean;
19
+ itemRender: {
20
+ name: string;
21
+ options: {
22
+ type: string;
23
+ content: string;
24
+ status: string;
25
+ icon: string;
26
+ }[];
27
+ };
28
+ };
14
29
  /**
15
30
  * @description: grid 查询item格式化
16
31
  * @param {*} array items
@@ -1,5 +1,6 @@
1
- import { AxiosRequestConfig } from "axios";
2
- import { RequestMethods, SuHttpRequestConfig } from "./types.d";
1
+ import { AxiosRequestConfig } from 'axios';
2
+ import { RequestMethods, SuHttpRequestConfig } from './types.d';
3
+
3
4
  declare class SuHttp {
4
5
  constructor();
5
6
  router: undefined;
@@ -229,12 +229,12 @@ export declare const lunarCalendar: {
229
229
  *
230
230
  * @param param {Object} 按照festival的格式输入数据,设置阳历节日
231
231
  */
232
- setFestival(param?: {}): void;
232
+ setFestival(params?: {}): void;
233
233
  /**
234
234
  *
235
235
  * @param param {Object} 按照lFestival的格式输入数据,设置农历节日
236
236
  */
237
- setLunarFestival(param?: {}): void;
237
+ setLunarFestival(params?: {}): void;
238
238
  /**
239
239
  * 24节气速查表
240
240
  * @Array Of Property
@@ -297,7 +297,7 @@ export declare const lunarCalendar: {
297
297
  * @return Number (-1、29、30)
298
298
  * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29
299
299
  */
300
- monthDays: (y: any, m: any) => 30 | 29 | -1;
300
+ monthDays: (y: any, m: any) => -1 | 30 | 29;
301
301
  /**
302
302
  * 返回公历(!)y年m月的天数
303
303
  * @param y solar Year
@@ -27,5 +27,5 @@ declare const warnMessage: (content: string, options?: {}) => any;
27
27
  * @param {*} options message选项 { duration: 3000 }
28
28
  * @return {*} 消息提示
29
29
  */
30
- declare const errorMessage: (content?: string, options?: {}) => Promise<import("vxe-table").ModalEventTypes>;
30
+ declare const errorMessage: (content?: string, options?: {}) => Promise<import('vxe-pc-ui').ModalEventTypes>;
31
31
  export { showMessage, successMessage, warnMessage, errorMessage };
@@ -1,2 +1,3 @@
1
- import NProgress from "nprogress";
1
+ import { default as NProgress } from 'nprogress';
2
+
2
3
  export default NProgress;
@@ -1,3 +1,8 @@
1
+ /**
2
+ * 图标集
3
+ * https://github.com/iconify/icon-sets.git
4
+ *
5
+ * */
1
6
  declare const _default: {
2
7
  prefix: string;
3
8
  icons: {
@@ -1,5 +1,4 @@
1
- export declare const VxetableRender: (VXETable: any, { serviceApi, dict, i18n }: {
1
+ export declare const VxetableRender: (VXETable: any, { serviceApi, i18n }: {
2
2
  serviceApi: any;
3
- dict: any;
4
3
  i18n: any;
5
4
  }) => any;
@@ -0,0 +1,2 @@
1
+ declare const isPhone: (mobile: any) => boolean;
2
+ export { isPhone };
@@ -1,4 +1,5 @@
1
- import type { Ref } from "vue";
1
+ import { Ref } from 'vue';
2
+
2
3
  interface Params {
3
4
  excludeListeners?: boolean;
4
5
  excludeKeys?: string[];
@@ -5,11 +5,13 @@ export declare const useGlobal: () => {
5
5
  $serviceApi?: undefined;
6
6
  $hasAuthority?: undefined;
7
7
  $printPlugin?: undefined;
8
+ $mode?: undefined;
8
9
  } | {
9
- $global: import("vue").ComponentCustomProperties & Record<string, any>;
10
+ $global: import('vue').ComponentCustomProperties & Record<string, any>;
10
11
  $storage: any;
11
12
  $config: any;
12
13
  $serviceApi: any;
13
14
  $hasAuthority: any;
14
15
  $printPlugin: any;
16
+ $mode: any;
15
17
  };
@@ -1,10 +1,10 @@
1
+ import { IRecord } from '../../components/types';
1
2
  interface IAttrs {
2
3
  disabled?: boolean;
3
4
  defaultValue?: string;
4
5
  code?: string;
5
6
  [x: string]: any;
6
7
  }
7
- import { IRecord } from "../../components/types";
8
8
  export declare const useRender: () => {
9
9
  renderDict: (attrs: IAttrs | string, methods?: any) => {
10
10
  name: string;
@@ -16,10 +16,11 @@ export declare const useRender: () => {
16
16
  props: {
17
17
  clearable: boolean;
18
18
  disabled: boolean;
19
+ showValue: boolean;
20
+ placeholder: null;
19
21
  };
20
22
  defaultValue: any;
21
23
  events: any;
22
- dictCode: any;
23
24
  };
24
25
  renderSelect: (attrs: any, methods?: any) => {
25
26
  name: string;
@@ -75,8 +76,8 @@ export declare const useRender: () => {
75
76
  renderInvOrg: (attrs?: any, methods?: any) => {
76
77
  name: string;
77
78
  props: {
78
- fieldMap: {};
79
- extParam: any;
79
+ mapField: {};
80
+ defaultParams: any;
80
81
  url: string;
81
82
  fetchField: string;
82
83
  };
@@ -90,8 +91,8 @@ export declare const useRender: () => {
90
91
  renderBU: (attrs?: any, methods?: any) => {
91
92
  name: string;
92
93
  props: {
93
- fieldMap: {};
94
- extParam: any;
94
+ mapField: {};
95
+ defaultParams: any;
95
96
  url: string;
96
97
  fetchField: string;
97
98
  };
@@ -1,10 +1,11 @@
1
- import { Ref } from "vue";
1
+ import { Ref } from 'vue';
2
+
2
3
  type attr = {
3
4
  font?: string;
4
5
  fillStyle?: string;
5
6
  };
6
7
  export declare function useWatermark(appendEl?: Ref<HTMLElement | null>): {
7
- setWatermark: (str: string, attr?: attr | undefined) => void;
8
+ setWatermark: (str: string, attr?: attr) => void;
8
9
  clear: () => void;
9
10
  };
10
11
  export {};