@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.
- package/dist/pkg/encrypte.d.ts +12 -0
- package/dist/pkg/format.d.ts +10 -10
- package/dist/pkg/formatData.d.ts +15 -0
- package/dist/pkg/http/index.d.ts +3 -2
- package/dist/pkg/lunarCalendar.d.ts +3 -3
- package/dist/pkg/message.d.ts +1 -1
- package/dist/pkg/progress.d.ts +2 -1
- package/dist/pkg/remixiconSet.d.ts +5 -0
- package/dist/pkg/render.d.ts +1 -2
- package/dist/pkg/rules.d.ts +2 -0
- package/dist/pkg/useAttrs.d.ts +2 -1
- package/dist/pkg/useGlobal.d.ts +3 -1
- package/dist/pkg/useRender.d.ts +7 -6
- package/dist/pkg/useWatermark.d.ts +3 -2
- package/dist/utils.es.js +27322 -0
- package/dist/utils.umd.js +5 -9
- package/index.ts +130 -0
- package/package.json +29 -26
- package/dist/index.d.ts +0 -56
package/dist/pkg/format.d.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
export declare const formats: {
|
|
2
2
|
formatDate: {
|
|
3
|
-
|
|
3
|
+
tableCellFormatMethod({ cellValue }: {
|
|
4
4
|
cellValue: any;
|
|
5
5
|
}, format: any): any;
|
|
6
6
|
};
|
|
7
7
|
formatAmount: {
|
|
8
|
-
|
|
8
|
+
tableCellFormatMethod({ cellValue }: {
|
|
9
9
|
cellValue: any;
|
|
10
10
|
}, digits?: number): string;
|
|
11
11
|
};
|
|
12
12
|
formatBankcard: {
|
|
13
|
-
|
|
13
|
+
tableCellFormatMethod({ cellValue }: {
|
|
14
14
|
cellValue: any;
|
|
15
15
|
}): string;
|
|
16
16
|
};
|
|
17
17
|
formatFixedNumber: {
|
|
18
|
-
|
|
18
|
+
tableCellFormatMethod({ cellValue }: {
|
|
19
19
|
cellValue: any;
|
|
20
20
|
}, digits?: number): any;
|
|
21
21
|
};
|
|
22
22
|
formatCutNumber: {
|
|
23
|
-
|
|
23
|
+
tableCellFormatMethod({ cellValue }: {
|
|
24
24
|
cellValue: any;
|
|
25
25
|
}, digits?: number): any;
|
|
26
26
|
};
|
|
27
27
|
formatDict: {
|
|
28
|
-
|
|
28
|
+
tableCellFormatMethod({ cellValue }: {
|
|
29
29
|
cellValue: any;
|
|
30
30
|
}, dictCode: any): any;
|
|
31
31
|
};
|
|
32
32
|
formatRelateField: {
|
|
33
|
-
|
|
33
|
+
tableCellFormatMethod({ row, cellValue }: {
|
|
34
34
|
row: any;
|
|
35
35
|
cellValue: any;
|
|
36
36
|
}, field: any): any;
|
|
37
37
|
};
|
|
38
38
|
formatContact: {
|
|
39
|
-
|
|
39
|
+
tableCellFormatMethod({ row }: {
|
|
40
40
|
row: any;
|
|
41
41
|
}, fields: any): any;
|
|
42
42
|
};
|
|
43
43
|
formatSelectLocal: {
|
|
44
|
-
|
|
44
|
+
tableCellFormatMethod({ cellValue }: {
|
|
45
45
|
cellValue: any;
|
|
46
46
|
}, localOptions: any): any;
|
|
47
47
|
};
|
|
48
48
|
formatMultiValue: {
|
|
49
|
-
|
|
49
|
+
tableCellFormatMethod({ row }: {
|
|
50
50
|
row: any;
|
|
51
51
|
}, multiOptions: any): any;
|
|
52
52
|
};
|
package/dist/pkg/formatData.d.ts
CHANGED
|
@@ -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
|
package/dist/pkg/http/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { AxiosRequestConfig } from
|
|
2
|
-
import { RequestMethods, SuHttpRequestConfig } from
|
|
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(
|
|
232
|
+
setFestival(params?: {}): void;
|
|
233
233
|
/**
|
|
234
234
|
*
|
|
235
235
|
* @param param {Object} 按照lFestival的格式输入数据,设置农历节日
|
|
236
236
|
*/
|
|
237
|
-
setLunarFestival(
|
|
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) =>
|
|
300
|
+
monthDays: (y: any, m: any) => -1 | 30 | 29;
|
|
301
301
|
/**
|
|
302
302
|
* 返回公历(!)y年m月的天数
|
|
303
303
|
* @param y solar Year
|
package/dist/pkg/message.d.ts
CHANGED
|
@@ -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(
|
|
30
|
+
declare const errorMessage: (content?: string, options?: {}) => Promise<import('vxe-pc-ui').ModalEventTypes>;
|
|
31
31
|
export { showMessage, successMessage, warnMessage, errorMessage };
|
package/dist/pkg/progress.d.ts
CHANGED
package/dist/pkg/render.d.ts
CHANGED
package/dist/pkg/useAttrs.d.ts
CHANGED
package/dist/pkg/useGlobal.d.ts
CHANGED
|
@@ -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(
|
|
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
|
};
|
package/dist/pkg/useRender.d.ts
CHANGED
|
@@ -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
|
-
|
|
79
|
-
|
|
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
|
-
|
|
94
|
-
|
|
94
|
+
mapField: {};
|
|
95
|
+
defaultParams: any;
|
|
95
96
|
url: string;
|
|
96
97
|
fetchField: string;
|
|
97
98
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Ref } from
|
|
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
|
|
8
|
+
setWatermark: (str: string, attr?: attr) => void;
|
|
8
9
|
clear: () => void;
|
|
9
10
|
};
|
|
10
11
|
export {};
|