@deppon/deppon-template 2.2.0 → 2.2.2
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/LICENSE +21 -21
- package/README.md +330 -330
- package/es/index.d.ts +5 -5
- package/es/pro-dialog/index.d.ts +5 -5
- package/es/pro-field/ProField.d.ts +2 -2
- package/es/pro-field/components/DatePicker/FieldDatePicker.vue_vue_type_script_setup_true_lang.vue.js +20 -105
- package/es/pro-field/components/DatePicker/index.d.ts +2 -2
- package/es/pro-field/components/Select/index.d.ts +2 -2
- package/es/pro-field/components/TagInput/index.d.ts +2 -2
- package/es/pro-field/components/Text/FieldText.vue.css +7 -0
- package/es/pro-field/components/Text/FieldText.vue_vue_type_script_setup_true_lang.vue.js +11 -48
- package/es/pro-field/components/Text/index.d.ts +2 -2
- package/es/pro-field/index.d.ts +4 -4
- package/es/pro-field/utils.d.ts +16 -16
- package/es/pro-form/ProForm.vue.css +25 -0
- package/es/pro-form/ProForm.vue_vue_type_script_setup_true_lang.vue.js +15 -3
- package/es/pro-form/index.d.ts +4 -4
- package/es/pro-layout/index.d.ts +4 -4
- package/es/pro-table/index.d.ts +4 -4
- package/es/pro-table/types.d.ts +66 -66
- package/es/utils/arrayOperation.d.ts +25 -25
- package/es/utils/index.d.ts +5 -5
- package/es/utils/mergeProps.d.ts +2 -2
- package/es/utils/other.d.ts +25 -25
- package/es/utils/theme.d.ts +28 -28
- package/package.json +6 -6
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 判断两数组字符串是否相同(用于按钮权限验证),数组字符串中存在相同时会自动去重(按钮权限标识不会重复)
|
|
3
|
-
* @param news 新数据
|
|
4
|
-
* @param old 源数据
|
|
5
|
-
* @returns 两数组相同返回 `true`,反之则反
|
|
6
|
-
*/
|
|
7
|
-
export declare function judementSameArr(newArr: unknown[] | string[], oldArr: string[]): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* 判断两个对象是否相同
|
|
10
|
-
* @param a 要比较的对象一
|
|
11
|
-
* @param b 要比较的对象二
|
|
12
|
-
* @returns 相同返回 true,反之则反
|
|
13
|
-
*/
|
|
14
|
-
export declare function isObjectValueEqual(a: {
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
}, b: {
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
}): boolean;
|
|
19
|
-
/**
|
|
20
|
-
* 数组、数组对象去重
|
|
21
|
-
* @param arr 数组内容
|
|
22
|
-
* @param attr 需要去重的键值(数组对象)
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
export declare function removeDuplicate(arr: any, attr?: string): any;
|
|
1
|
+
/**
|
|
2
|
+
* 判断两数组字符串是否相同(用于按钮权限验证),数组字符串中存在相同时会自动去重(按钮权限标识不会重复)
|
|
3
|
+
* @param news 新数据
|
|
4
|
+
* @param old 源数据
|
|
5
|
+
* @returns 两数组相同返回 `true`,反之则反
|
|
6
|
+
*/
|
|
7
|
+
export declare function judementSameArr(newArr: unknown[] | string[], oldArr: string[]): boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 判断两个对象是否相同
|
|
10
|
+
* @param a 要比较的对象一
|
|
11
|
+
* @param b 要比较的对象二
|
|
12
|
+
* @returns 相同返回 true,反之则反
|
|
13
|
+
*/
|
|
14
|
+
export declare function isObjectValueEqual(a: {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}, b: {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* 数组、数组对象去重
|
|
21
|
+
* @param arr 数组内容
|
|
22
|
+
* @param attr 需要去重的键值(数组对象)
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
export declare function removeDuplicate(arr: any, attr?: string): any;
|
package/es/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './arrayOperation';
|
|
2
|
-
export { mergeProps } from './mergeProps';
|
|
3
|
-
export * from './other';
|
|
4
|
-
export { Local, Session } from './storage';
|
|
5
|
-
export * from './theme';
|
|
1
|
+
export * from './arrayOperation';
|
|
2
|
+
export { mergeProps } from './mergeProps';
|
|
3
|
+
export * from './other';
|
|
4
|
+
export { Local, Session } from './storage';
|
|
5
|
+
export * from './theme';
|
package/es/utils/mergeProps.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function mergeProps<A, B>(a: A, b: B): B & A;
|
|
2
|
-
export declare function mergeProps<A, B, C>(a: A, b: B, c: C): C & B & A;
|
|
1
|
+
export declare function mergeProps<A, B>(a: A, b: B): B & A;
|
|
2
|
+
export declare function mergeProps<A, B, C>(a: A, b: B, c: C): C & B & A;
|
package/es/utils/other.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 设置 自定义 tagsView 名称、 自定义 tagsView 名称国际化
|
|
3
|
-
* @param params 路由 query、params 中的 tagsViewName
|
|
4
|
-
* @returns 返回当前 tagsViewName 名称
|
|
5
|
-
*/
|
|
6
|
-
export declare function setTagsViewNameI18n(item: any): any;
|
|
7
|
-
/**
|
|
8
|
-
* 对象深克隆
|
|
9
|
-
* @param obj 源对象
|
|
10
|
-
* @returns 克隆后的对象
|
|
11
|
-
*/
|
|
12
|
-
export declare function deepClone(obj: any): any;
|
|
13
|
-
/**
|
|
14
|
-
* 判断是否是移动端
|
|
15
|
-
*/
|
|
16
|
-
export declare function isMobile(): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* 统一批量导出
|
|
19
|
-
*/
|
|
20
|
-
declare const other: {
|
|
21
|
-
setTagsViewNameI18n(route: any): any;
|
|
22
|
-
deepClone: (obj: any) => any;
|
|
23
|
-
isMobile: () => boolean;
|
|
24
|
-
};
|
|
25
|
-
export default other;
|
|
1
|
+
/**
|
|
2
|
+
* 设置 自定义 tagsView 名称、 自定义 tagsView 名称国际化
|
|
3
|
+
* @param params 路由 query、params 中的 tagsViewName
|
|
4
|
+
* @returns 返回当前 tagsViewName 名称
|
|
5
|
+
*/
|
|
6
|
+
export declare function setTagsViewNameI18n(item: any): any;
|
|
7
|
+
/**
|
|
8
|
+
* 对象深克隆
|
|
9
|
+
* @param obj 源对象
|
|
10
|
+
* @returns 克隆后的对象
|
|
11
|
+
*/
|
|
12
|
+
export declare function deepClone(obj: any): any;
|
|
13
|
+
/**
|
|
14
|
+
* 判断是否是移动端
|
|
15
|
+
*/
|
|
16
|
+
export declare function isMobile(): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 统一批量导出
|
|
19
|
+
*/
|
|
20
|
+
declare const other: {
|
|
21
|
+
setTagsViewNameI18n(route: any): any;
|
|
22
|
+
deepClone: (obj: any) => any;
|
|
23
|
+
isMobile: () => boolean;
|
|
24
|
+
};
|
|
25
|
+
export default other;
|
package/es/utils/theme.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* hex颜色转rgb颜色
|
|
3
|
-
* @param str 颜色值字符串
|
|
4
|
-
* @returns 返回处理后的颜色值
|
|
5
|
-
*/
|
|
6
|
-
export declare function hexToRgb(str: any): any;
|
|
7
|
-
/**
|
|
8
|
-
* rgb颜色转Hex颜色
|
|
9
|
-
* @param r 代表红色
|
|
10
|
-
* @param g 代表绿色
|
|
11
|
-
* @param b 代表蓝色
|
|
12
|
-
* @returns 返回处理后的颜色值
|
|
13
|
-
*/
|
|
14
|
-
export declare function rgbToHex(r: any, g: any, b: any): any;
|
|
15
|
-
/**
|
|
16
|
-
* 加深颜色值
|
|
17
|
-
* @param color 颜色值字符串
|
|
18
|
-
* @param level 加深的程度,限0-1之间
|
|
19
|
-
* @returns 返回处理后的颜色值
|
|
20
|
-
*/
|
|
21
|
-
export declare function getDarkColor(color: string, level: number): any;
|
|
22
|
-
/**
|
|
23
|
-
* 变浅颜色值
|
|
24
|
-
* @param color 颜色值字符串
|
|
25
|
-
* @param level 加深的程度,限0-1之间
|
|
26
|
-
* @returns 返回处理后的颜色值
|
|
27
|
-
*/
|
|
28
|
-
export declare function getLightColor(color: string, level: number): any;
|
|
1
|
+
/**
|
|
2
|
+
* hex颜色转rgb颜色
|
|
3
|
+
* @param str 颜色值字符串
|
|
4
|
+
* @returns 返回处理后的颜色值
|
|
5
|
+
*/
|
|
6
|
+
export declare function hexToRgb(str: any): any;
|
|
7
|
+
/**
|
|
8
|
+
* rgb颜色转Hex颜色
|
|
9
|
+
* @param r 代表红色
|
|
10
|
+
* @param g 代表绿色
|
|
11
|
+
* @param b 代表蓝色
|
|
12
|
+
* @returns 返回处理后的颜色值
|
|
13
|
+
*/
|
|
14
|
+
export declare function rgbToHex(r: any, g: any, b: any): any;
|
|
15
|
+
/**
|
|
16
|
+
* 加深颜色值
|
|
17
|
+
* @param color 颜色值字符串
|
|
18
|
+
* @param level 加深的程度,限0-1之间
|
|
19
|
+
* @returns 返回处理后的颜色值
|
|
20
|
+
*/
|
|
21
|
+
export declare function getDarkColor(color: string, level: number): any;
|
|
22
|
+
/**
|
|
23
|
+
* 变浅颜色值
|
|
24
|
+
* @param color 颜色值字符串
|
|
25
|
+
* @param level 加深的程度,限0-1之间
|
|
26
|
+
* @returns 返回处理后的颜色值
|
|
27
|
+
*/
|
|
28
|
+
export declare function getLightColor(color: string, level: number): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deppon/deppon-template",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"main": "es/index.js",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"less": "^4.2.0"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@deppon/deppon-assets": "2.
|
|
47
|
-
"@deppon/deppon-request": "2.
|
|
48
|
-
"@deppon/deppon-router": "2.
|
|
49
|
-
"@deppon/deppon-ui": "2.
|
|
50
|
-
"@deppon/deppon-utils": "2.
|
|
46
|
+
"@deppon/deppon-assets": "2.2.2",
|
|
47
|
+
"@deppon/deppon-request": "2.2.2",
|
|
48
|
+
"@deppon/deppon-router": "2.2.2",
|
|
49
|
+
"@deppon/deppon-ui": "2.2.2",
|
|
50
|
+
"@deppon/deppon-utils": "2.2.2",
|
|
51
51
|
"dayjs": "^1.11.10",
|
|
52
52
|
"lodash-es": "^4.17.21",
|
|
53
53
|
"mitt": "^3.0.1"
|