@fox-js/foxui-pc 4.0.1-12 → 4.0.1-14

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.
@@ -1,6 +1,5 @@
1
1
  import type { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
- import { clone } from '@fox-js/fox';
4
3
  import { compareTo } from '@fox-js/big-decimal';
5
4
  import type { ComponentCustomProps } from 'vue';
6
5
  import { ComponentInternalInstance } from 'vue';
@@ -10,7 +9,6 @@ import type { ComputedOptions } from 'vue';
10
9
  import type { DefineComponent } from 'vue';
11
10
  import { divide } from '@fox-js/big-decimal';
12
11
  import { ExecuteValidator } from '@fox-js/validator';
13
- import { extend } from '@fox-js/fox';
14
12
  import { ElAffix as FoxAffix } from 'element-plus';
15
13
  import { ElAlert as FoxAlert } from 'element-plus';
16
14
  import { ElAside as FoxAside } from 'element-plus';
@@ -105,27 +103,12 @@ import { ElTree as FoxTree } from 'element-plus';
105
103
  import { ElTreeSelect as FoxTreeSelect } from 'element-plus';
106
104
  import { ElTreeV2 as FoxTreeV2 } from 'element-plus';
107
105
  import { ElUpload as FoxUpload } from 'element-plus';
108
- import { isArray } from '@fox-js/fox';
109
- import { isDate } from '@fox-js/fox';
110
- import { isEqual } from '@fox-js/fox';
111
- import { isESModule } from '@fox-js/fox';
112
- import { isFunction } from '@fox-js/fox';
113
- import { isMap } from '@fox-js/fox';
114
- import { isObject } from '@fox-js/fox';
115
- import { isPlainObject } from '@fox-js/fox';
116
- import { isPromise } from '@fox-js/fox';
117
- import { isSet } from '@fox-js/fox';
118
- import { isString } from '@fox-js/fox';
119
- import { isSymbol } from '@fox-js/fox';
120
106
  import type { MethodOptions } from 'vue';
121
107
  import { multiply } from '@fox-js/big-decimal';
122
108
  import { negate } from '@fox-js/big-decimal';
123
109
  import { numberFormat } from '@fox-js/big-decimal';
124
110
  import { Ref } from 'vue';
125
111
  import { Rule } from '@fox-js/validator';
126
- import { toBoolean } from '@fox-js/fox';
127
- import { toNumber } from '@fox-js/fox';
128
- import { toTypeString } from '@fox-js/fox';
129
112
  import { unNumberFormat } from '@fox-js/big-decimal';
130
113
  import { UnwrapNestedRefs } from 'vue';
131
114
  import { UnwrapRef } from 'vue';
@@ -228,7 +211,15 @@ export declare const CheckboxItem: DefineComponent<unknown, object, {}, Computed
228
211
  */
229
212
  export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
230
213
 
231
- export { clone }
214
+ /**
215
+ * 克隆对象
216
+ * @param target
217
+ * @param source
218
+ * @param plain
219
+ *
220
+ * @returns
221
+ */
222
+ export declare function clone(target: any, source: any, plain?: boolean): any;
232
223
 
233
224
  export { compareTo }
234
225
 
@@ -476,7 +467,12 @@ declare interface EventListener_2 {
476
467
  */
477
468
  export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
478
469
 
479
- export { extend }
470
+ /**
471
+ * 继承(是否深度拷贝,dest,src1,src2,src3...)
472
+ *
473
+ * @returns
474
+ */
475
+ export declare function extend(...args: any[]): any;
480
476
 
481
477
  export declare const ExtIcon: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
482
478
 
@@ -885,6 +881,11 @@ declare interface GroupLayout {
885
881
  gutter: number;
886
882
  }
887
883
 
884
+ /**
885
+ * 是否支持symbol
886
+ */
887
+ export declare const hasSymbol: boolean;
888
+
888
889
  export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
889
890
 
890
891
  export declare const HintText: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
@@ -924,14 +925,29 @@ declare interface Installer {
924
925
  */
925
926
  export declare function integerLength(value: string | number): number;
926
927
 
927
- export { isArray }
928
+ /**
929
+ * 是否数组
930
+ */
931
+ export declare const isArray: (arg: any) => arg is any[];
932
+
933
+ /**
934
+ * 是否为类数组
935
+ * @param obj
936
+ * @returns {boolean}
937
+ */
938
+ export declare function isArrayLike(obj: any): boolean;
928
939
 
929
940
  /**
930
941
  * 是否为浏览器环境
931
942
  */
932
943
  export declare const isBrowser: boolean;
933
944
 
934
- export { isDate }
945
+ /**
946
+ * 是否为Date
947
+ * @param val
948
+ * @returns
949
+ */
950
+ export declare const isDate: (val: unknown) => val is Date;
935
951
 
936
952
  /**
937
953
  * 是否空字符串
@@ -940,11 +956,27 @@ export { isDate }
940
956
  */
941
957
  export declare const isEmptyString: (v: unknown) => boolean;
942
958
 
943
- export { isEqual }
959
+ /**
960
+ * 判断两个对象是否一致
961
+ * @param x
962
+ * @param y
963
+ * @return
964
+ */
965
+ export declare function isEqual(x: any, y: any): boolean;
944
966
 
945
- export { isESModule }
967
+ /**
968
+ * 是否为es module
969
+ * @param obj
970
+ * @returns
971
+ */
972
+ export declare function isESModule(obj: any): obj is Object;
946
973
 
947
- export { isFunction }
974
+ /**
975
+ * 是否为函数
976
+ * @param val
977
+ * @returns
978
+ */
979
+ export declare const isFunction: (val: unknown) => val is Function;
948
980
 
949
981
  /**
950
982
  * 是否为内嵌页面
@@ -955,7 +987,12 @@ export { isFunction }
955
987
  */
956
988
  export declare function isInnerPage(domain: Domain, proxy: any): boolean;
957
989
 
958
- export { isMap }
990
+ /**
991
+ * 是否为Map
992
+ * @param val
993
+ * @returns
994
+ */
995
+ export declare const isMap: (val: unknown) => val is Map<any, any>;
959
996
 
960
997
  /**
961
998
  * 是否为数字字符串
@@ -964,11 +1001,24 @@ export { isMap }
964
1001
  */
965
1002
  export declare function isNumberString(value: string): boolean;
966
1003
 
967
- export { isObject }
1004
+ /**
1005
+ * 是否为object
1006
+ */
1007
+ export declare const isObject: (val: unknown) => val is Record<any, any>;
968
1008
 
969
- export { isPlainObject }
1009
+ /**
1010
+ * 是否为plain对象
1011
+ * @param val
1012
+ * @returns
1013
+ */
1014
+ export declare const isPlainObject: (val: unknown) => val is object;
970
1015
 
971
- export { isPromise }
1016
+ /**
1017
+ * 是否为promise
1018
+ * @param val
1019
+ * @returns
1020
+ */
1021
+ export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
972
1022
 
973
1023
  /**
974
1024
  * 判断是否为正则表达式
@@ -977,9 +1027,19 @@ export { isPromise }
977
1027
  */
978
1028
  export declare function isRegExp(v: unknown): v is RegExp;
979
1029
 
980
- export { isSet }
1030
+ /**
1031
+ * 是否为Set
1032
+ * @param val
1033
+ * @returns
1034
+ */
1035
+ export declare const isSet: (val: unknown) => val is Set<any>;
981
1036
 
982
- export { isString }
1037
+ /**
1038
+ * 是否为字符串
1039
+ * @param val
1040
+ * @returns
1041
+ */
1042
+ export declare const isString: (val: unknown) => val is string;
983
1043
 
984
1044
  /**
985
1045
  * 是否子页面
@@ -987,7 +1047,18 @@ export { isString }
987
1047
  */
988
1048
  export declare function isSubPage(domain: Domain): boolean;
989
1049
 
990
- export { isSymbol }
1050
+ /**
1051
+ * 是否为symbol
1052
+ * @param val
1053
+ * @returns
1054
+ */
1055
+ export declare const isSymbol: (val: unknown) => val is symbol;
1056
+
1057
+ /**
1058
+ * 是否是window对象
1059
+ * @param obj
1060
+ */
1061
+ export declare function isWindow(obj: any): boolean;
991
1062
 
992
1063
  export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
993
1064
 
@@ -999,6 +1070,14 @@ export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions,
999
1070
  */
1000
1071
  export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
1001
1072
 
1073
+ /**
1074
+ * 创建数组
1075
+ * @param arr
1076
+ * @param results
1077
+ * @return
1078
+ */
1079
+ export declare function makeArray(arr: any, results?: any[]): any[];
1080
+
1002
1081
  export declare const Mapping: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
1003
1082
 
1004
1083
  /**
@@ -1012,14 +1091,36 @@ export declare interface Matched {
1012
1091
  level?: number;
1013
1092
  }
1014
1093
 
1094
+ /**
1095
+ * 合并数组
1096
+ * @param first
1097
+ * @param second
1098
+ * @return
1099
+ */
1100
+ export declare function merge(first: any[], second: any[]): any[];
1101
+
1015
1102
  export declare const MoneyItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
1016
1103
 
1017
1104
  export { multiply }
1018
1105
 
1019
1106
  export { negate }
1020
1107
 
1108
+ /**
1109
+ * 下一个事件周期中执行函数
1110
+ * @param fn
1111
+ * @param args
1112
+ */
1113
+ export declare function nextTick(fn: {
1114
+ (...args: any[]): void;
1115
+ }, ...args: any[]): void;
1116
+
1021
1117
  export { numberFormat }
1022
1118
 
1119
+ /**
1120
+ * 对象类型
1121
+ */
1122
+ export declare const objectToString: () => string;
1123
+
1023
1124
  /**
1024
1125
  * padding
1025
1126
  */
@@ -1204,9 +1305,19 @@ export declare const TimeItem: DefineComponent<unknown, object, {}, ComputedOpti
1204
1305
 
1205
1306
  export declare const TimeSelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
1206
1307
 
1207
- export { toBoolean }
1308
+ /**
1309
+ * 转换为boolean值
1310
+ * @param val
1311
+ * @returns
1312
+ */
1313
+ export declare function toBoolean(val: unknown): boolean;
1208
1314
 
1209
- export { toNumber }
1315
+ /**
1316
+ * 转换为number值
1317
+ * @param val
1318
+ * @returns
1319
+ */
1320
+ export declare function toNumber(val: unknown): number;
1210
1321
 
1211
1322
  /**
1212
1323
  * 转换为number rect
@@ -1228,7 +1339,7 @@ export declare function toPx(value: number | string, size?: number): number;
1228
1339
  */
1229
1340
  export declare const toPxDesc: (value: string | number, size?: number) => string;
1230
1341
 
1231
- export { toTypeString }
1342
+ export declare const toTypeString: (value: unknown) => string;
1232
1343
 
1233
1344
  /**
1234
1345
  * to model value
@@ -1238,6 +1349,13 @@ export { toTypeString }
1238
1349
  */
1239
1350
  export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
1240
1351
 
1352
+ /**
1353
+ * 判断类型
1354
+ * @param obj
1355
+ * @returns any
1356
+ */
1357
+ export declare function typeOf(obj: any): string;
1358
+
1241
1359
  export declare class UniqueID {
1242
1360
  /**
1243
1361
  * seed id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fox-js/foxui-pc",
3
- "version": "4.0.1-12",
3
+ "version": "4.0.1-14",
4
4
  "description": "FoxUI PC端组件库",
5
5
  "author": "jiangcheng",
6
6
  "main": "dist/index.umd.js",