@fox-js/foxui-pc 4.0.1-11 → 4.0.1-13
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/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +7779 -4637
- package/dist/index.esm.js.map +1 -0
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +173 -35
- package/dist/types/src/api/index.d.ts +35 -0
- package/dist/types/src/base/component.d.ts +70 -0
- package/dist/types/src/base/index.d.ts +4 -0
- package/dist/types/src/base/plugin.d.ts +2 -0
- package/dist/types/src/components/autocompleteitem/common.d.ts +152 -0
- package/dist/types/src/components/autocompleteitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/cascaderitem/common.d.ts +223 -0
- package/dist/types/src/components/cascaderitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/cascaderitem/model.d.ts +70 -0
- package/dist/types/src/components/cascaderitem/types.d.ts +26 -0
- package/dist/types/src/components/checkboxitem/common.d.ts +181 -0
- package/dist/types/src/components/checkboxitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/checkboxitem/model.d.ts +63 -0
- package/dist/types/src/components/checkboxitem/types.d.ts +33 -0
- package/dist/types/src/components/content/common.d.ts +16 -0
- package/dist/types/src/components/content/index.vue.d.ts +3 -0
- package/dist/types/src/components/dateitem/common.d.ts +152 -0
- package/dist/types/src/components/dateitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/dialogitem/common.d.ts +27 -0
- package/dist/types/src/components/dialogitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/exticon/index.vue.d.ts +3 -0
- package/dist/types/src/components/footerbar/common.d.ts +26 -0
- package/dist/types/src/components/footerbar/index.vue.d.ts +3 -0
- package/dist/types/src/components/footerbar/type.d.ts +1 -0
- package/dist/types/src/components/group/commons.d.ts +122 -0
- package/dist/types/src/components/group/group-props.d.ts +97 -0
- package/dist/types/src/components/group/index.vue.d.ts +3 -0
- package/dist/types/src/components/headerbar/common.d.ts +80 -0
- package/dist/types/src/components/headerbar/index.vue.d.ts +3 -0
- package/dist/types/src/components/headerbar/types.d.ts +5 -0
- package/dist/types/src/components/hinttext/index.d.ts +27 -0
- package/dist/types/src/components/hinttext/index.vue.d.ts +3 -0
- package/dist/types/src/components/indicator/common.d.ts +19 -0
- package/dist/types/src/components/indicator/index.vue.d.ts +3 -0
- package/dist/types/src/components/indicator/types.d.ts +1 -0
- package/dist/types/src/components/inputitem/common.d.ts +176 -0
- package/dist/types/src/components/inputitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/inputnumberitem/common.d.ts +176 -0
- package/dist/types/src/components/inputnumberitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/item/common.d.ts +137 -0
- package/dist/types/src/components/item/index.vue.d.ts +3 -0
- package/dist/types/src/components/mapping/common.d.ts +105 -0
- package/dist/types/src/components/mapping/index.vue.d.ts +3 -0
- package/dist/types/src/components/mapping/model.d.ts +28 -0
- package/dist/types/src/components/mapping/types.d.ts +17 -0
- package/dist/types/src/components/moneyitem/common.d.ts +300 -0
- package/dist/types/src/components/moneyitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/moneyitem/util.d.ts +51 -0
- package/dist/types/src/components/page/common.d.ts +120 -0
- package/dist/types/src/components/page/index.vue.d.ts +3 -0
- package/dist/types/src/components/price/index.vue.d.ts +3 -0
- package/dist/types/src/components/price/price-props.d.ts +37 -0
- package/dist/types/src/components/radioitem/common.d.ts +173 -0
- package/dist/types/src/components/radioitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/radioitem/model.d.ts +63 -0
- package/dist/types/src/components/radioitem/types.d.ts +33 -0
- package/dist/types/src/components/rateitem/common.d.ts +136 -0
- package/dist/types/src/components/rateitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/rowitem/common.d.ts +38 -0
- package/dist/types/src/components/rowitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/selectitem/common.d.ts +239 -0
- package/dist/types/src/components/selectitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/selectitem/model.d.ts +70 -0
- package/dist/types/src/components/selectitem/types.d.ts +26 -0
- package/dist/types/src/components/slotitem/common.d.ts +21 -0
- package/dist/types/src/components/slotitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/switchitem/common.d.ts +136 -0
- package/dist/types/src/components/switchitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/tableitem/common.d.ts +230 -0
- package/dist/types/src/components/tableitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/tableitem/model.d.ts +27 -0
- package/dist/types/src/components/tableitem/types.d.ts +19 -0
- package/dist/types/src/components/tablemappingcolumn/common.d.ts +56 -0
- package/dist/types/src/components/tablemappingcolumn/index.vue.d.ts +3 -0
- package/dist/types/src/components/timeitem/common.d.ts +152 -0
- package/dist/types/src/components/timeitem/index.vue.d.ts +3 -0
- package/dist/types/src/components/timeselectitem/common.d.ts +152 -0
- package/dist/types/src/components/timeselectitem/index.vue.d.ts +3 -0
- package/dist/types/src/foxui.vue.build.d.ts +137 -0
- package/dist/types/src/interface.d.ts +83 -0
- package/dist/types/src/main.d.ts +81 -0
- package/dist/types/src/utils/commons.d.ts +220 -0
- package/dist/types/src/utils/create/component.d.ts +18 -0
- package/dist/types/src/utils/create/index.d.ts +1 -0
- package/dist/types/src/utils/date.d.ts +76 -0
- package/dist/types/src/utils/domain/broadcast.d.ts +116 -0
- package/dist/types/src/utils/domain/domain.d.ts +146 -0
- package/dist/types/src/utils/domain/events.d.ts +51 -0
- package/dist/types/src/utils/domain/group.d.ts +61 -0
- package/dist/types/src/utils/domain/index.d.ts +5 -0
- package/dist/types/src/utils/domain/item.d.ts +45 -0
- package/dist/types/src/utils/domain/page.d.ts +113 -0
- package/dist/types/src/utils/domain/types.d.ts +5 -0
- package/dist/types/src/utils/domain/validator.d.ts +230 -0
- package/dist/types/src/utils/functions.d.ts +20 -0
- package/dist/types/src/utils/px.d.ts +13 -0
- package/dist/types/src/utils/unique-id.d.ts +16 -0
- package/dist/types/src/utils/use-expose/index.d.ts +6 -0
- package/dist/types/src/utils/use-position/index.d.ts +14 -0
- package/dist/types/src/utils/use-rect/index.d.ts +20 -0
- package/dist/types/src/utils/use-touch/index.d.ts +21 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -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';
|
|
@@ -219,8 +202,14 @@ export declare interface BroadcastCallback {
|
|
|
219
202
|
|
|
220
203
|
export declare const BroadcastKey: unique symbol;
|
|
221
204
|
|
|
205
|
+
export declare const CalendarItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
206
|
+
|
|
207
|
+
export declare const CalendarPicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
208
|
+
|
|
222
209
|
export declare const CascaderItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
223
210
|
|
|
211
|
+
export declare const CascaderPicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
212
|
+
|
|
224
213
|
export declare const CheckboxItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
225
214
|
|
|
226
215
|
/**
|
|
@@ -228,7 +217,15 @@ export declare const CheckboxItem: DefineComponent<unknown, object, {}, Computed
|
|
|
228
217
|
*/
|
|
229
218
|
export declare function clearNonNumber(value: string, allowDot?: boolean, allowMinus?: boolean): string;
|
|
230
219
|
|
|
231
|
-
|
|
220
|
+
/**
|
|
221
|
+
* 克隆对象
|
|
222
|
+
* @param target
|
|
223
|
+
* @param source
|
|
224
|
+
* @param plain
|
|
225
|
+
*
|
|
226
|
+
* @returns
|
|
227
|
+
*/
|
|
228
|
+
export declare function clone(target: any, source: any, plain?: boolean): any;
|
|
232
229
|
|
|
233
230
|
export { compareTo }
|
|
234
231
|
|
|
@@ -261,6 +258,8 @@ export declare const DataItemsKey: unique symbol;
|
|
|
261
258
|
|
|
262
259
|
export declare const DateItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
263
260
|
|
|
261
|
+
export declare const DatePicker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
262
|
+
|
|
264
263
|
/**
|
|
265
264
|
* 防抖函数
|
|
266
265
|
* @param func 函数
|
|
@@ -476,10 +475,19 @@ declare interface EventListener_2 {
|
|
|
476
475
|
*/
|
|
477
476
|
export declare function excludeProps(src: Record<string, any>, ...excludeTemplates: Record<string, any>[]): Record<string, any>;
|
|
478
477
|
|
|
479
|
-
|
|
478
|
+
/**
|
|
479
|
+
* 继承(是否深度拷贝,dest,src1,src2,src3...)
|
|
480
|
+
*
|
|
481
|
+
* @returns
|
|
482
|
+
*/
|
|
483
|
+
export declare function extend(...args: any[]): any;
|
|
480
484
|
|
|
481
485
|
export declare const ExtIcon: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
482
486
|
|
|
487
|
+
export declare const ExtTabPane: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
488
|
+
|
|
489
|
+
export declare const ExtTabs: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
490
|
+
|
|
483
491
|
export declare const floatData: (format: any, dataOp: any, mapOps: any) => any;
|
|
484
492
|
|
|
485
493
|
export declare const FooterBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -885,6 +893,11 @@ declare interface GroupLayout {
|
|
|
885
893
|
gutter: number;
|
|
886
894
|
}
|
|
887
895
|
|
|
896
|
+
/**
|
|
897
|
+
* 是否支持symbol
|
|
898
|
+
*/
|
|
899
|
+
export declare const hasSymbol: boolean;
|
|
900
|
+
|
|
888
901
|
export declare const HeaderBar: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
889
902
|
|
|
890
903
|
export declare const HintText: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
@@ -924,14 +937,29 @@ declare interface Installer {
|
|
|
924
937
|
*/
|
|
925
938
|
export declare function integerLength(value: string | number): number;
|
|
926
939
|
|
|
927
|
-
|
|
940
|
+
/**
|
|
941
|
+
* 是否数组
|
|
942
|
+
*/
|
|
943
|
+
export declare const isArray: (arg: any) => arg is any[];
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* 是否为类数组
|
|
947
|
+
* @param obj
|
|
948
|
+
* @returns {boolean}
|
|
949
|
+
*/
|
|
950
|
+
export declare function isArrayLike(obj: any): boolean;
|
|
928
951
|
|
|
929
952
|
/**
|
|
930
953
|
* 是否为浏览器环境
|
|
931
954
|
*/
|
|
932
955
|
export declare const isBrowser: boolean;
|
|
933
956
|
|
|
934
|
-
|
|
957
|
+
/**
|
|
958
|
+
* 是否为Date
|
|
959
|
+
* @param val
|
|
960
|
+
* @returns
|
|
961
|
+
*/
|
|
962
|
+
export declare const isDate: (val: unknown) => val is Date;
|
|
935
963
|
|
|
936
964
|
/**
|
|
937
965
|
* 是否空字符串
|
|
@@ -940,11 +968,27 @@ export { isDate }
|
|
|
940
968
|
*/
|
|
941
969
|
export declare const isEmptyString: (v: unknown) => boolean;
|
|
942
970
|
|
|
943
|
-
|
|
971
|
+
/**
|
|
972
|
+
* 判断两个对象是否一致
|
|
973
|
+
* @param x
|
|
974
|
+
* @param y
|
|
975
|
+
* @return
|
|
976
|
+
*/
|
|
977
|
+
export declare function isEqual(x: any, y: any): boolean;
|
|
944
978
|
|
|
945
|
-
|
|
979
|
+
/**
|
|
980
|
+
* 是否为es module
|
|
981
|
+
* @param obj
|
|
982
|
+
* @returns
|
|
983
|
+
*/
|
|
984
|
+
export declare function isESModule(obj: any): obj is Object;
|
|
946
985
|
|
|
947
|
-
|
|
986
|
+
/**
|
|
987
|
+
* 是否为函数
|
|
988
|
+
* @param val
|
|
989
|
+
* @returns
|
|
990
|
+
*/
|
|
991
|
+
export declare const isFunction: (val: unknown) => val is Function;
|
|
948
992
|
|
|
949
993
|
/**
|
|
950
994
|
* 是否为内嵌页面
|
|
@@ -955,7 +999,12 @@ export { isFunction }
|
|
|
955
999
|
*/
|
|
956
1000
|
export declare function isInnerPage(domain: Domain, proxy: any): boolean;
|
|
957
1001
|
|
|
958
|
-
|
|
1002
|
+
/**
|
|
1003
|
+
* 是否为Map
|
|
1004
|
+
* @param val
|
|
1005
|
+
* @returns
|
|
1006
|
+
*/
|
|
1007
|
+
export declare const isMap: (val: unknown) => val is Map<any, any>;
|
|
959
1008
|
|
|
960
1009
|
/**
|
|
961
1010
|
* 是否为数字字符串
|
|
@@ -964,11 +1013,24 @@ export { isMap }
|
|
|
964
1013
|
*/
|
|
965
1014
|
export declare function isNumberString(value: string): boolean;
|
|
966
1015
|
|
|
967
|
-
|
|
1016
|
+
/**
|
|
1017
|
+
* 是否为object
|
|
1018
|
+
*/
|
|
1019
|
+
export declare const isObject: (val: unknown) => val is Record<any, any>;
|
|
968
1020
|
|
|
969
|
-
|
|
1021
|
+
/**
|
|
1022
|
+
* 是否为plain对象
|
|
1023
|
+
* @param val
|
|
1024
|
+
* @returns
|
|
1025
|
+
*/
|
|
1026
|
+
export declare const isPlainObject: (val: unknown) => val is object;
|
|
970
1027
|
|
|
971
|
-
|
|
1028
|
+
/**
|
|
1029
|
+
* 是否为promise
|
|
1030
|
+
* @param val
|
|
1031
|
+
* @returns
|
|
1032
|
+
*/
|
|
1033
|
+
export declare const isPromise: <T = any>(val: unknown) => val is Promise<T>;
|
|
972
1034
|
|
|
973
1035
|
/**
|
|
974
1036
|
* 判断是否为正则表达式
|
|
@@ -977,9 +1039,19 @@ export { isPromise }
|
|
|
977
1039
|
*/
|
|
978
1040
|
export declare function isRegExp(v: unknown): v is RegExp;
|
|
979
1041
|
|
|
980
|
-
|
|
1042
|
+
/**
|
|
1043
|
+
* 是否为Set
|
|
1044
|
+
* @param val
|
|
1045
|
+
* @returns
|
|
1046
|
+
*/
|
|
1047
|
+
export declare const isSet: (val: unknown) => val is Set<any>;
|
|
981
1048
|
|
|
982
|
-
|
|
1049
|
+
/**
|
|
1050
|
+
* 是否为字符串
|
|
1051
|
+
* @param val
|
|
1052
|
+
* @returns
|
|
1053
|
+
*/
|
|
1054
|
+
export declare const isString: (val: unknown) => val is string;
|
|
983
1055
|
|
|
984
1056
|
/**
|
|
985
1057
|
* 是否子页面
|
|
@@ -987,7 +1059,18 @@ export { isString }
|
|
|
987
1059
|
*/
|
|
988
1060
|
export declare function isSubPage(domain: Domain): boolean;
|
|
989
1061
|
|
|
990
|
-
|
|
1062
|
+
/**
|
|
1063
|
+
* 是否为symbol
|
|
1064
|
+
* @param val
|
|
1065
|
+
* @returns
|
|
1066
|
+
*/
|
|
1067
|
+
export declare const isSymbol: (val: unknown) => val is symbol;
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* 是否是window对象
|
|
1071
|
+
* @param obj
|
|
1072
|
+
*/
|
|
1073
|
+
export declare function isWindow(obj: any): boolean;
|
|
991
1074
|
|
|
992
1075
|
export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
993
1076
|
|
|
@@ -999,6 +1082,14 @@ export declare const Item: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
999
1082
|
*/
|
|
1000
1083
|
export declare function lastIndexOf(x: unknown, arr: unknown[]): number;
|
|
1001
1084
|
|
|
1085
|
+
/**
|
|
1086
|
+
* 创建数组
|
|
1087
|
+
* @param arr
|
|
1088
|
+
* @param results
|
|
1089
|
+
* @return
|
|
1090
|
+
*/
|
|
1091
|
+
export declare function makeArray(arr: any, results?: any[]): any[];
|
|
1092
|
+
|
|
1002
1093
|
export declare const Mapping: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1003
1094
|
|
|
1004
1095
|
/**
|
|
@@ -1012,14 +1103,38 @@ export declare interface Matched {
|
|
|
1012
1103
|
level?: number;
|
|
1013
1104
|
}
|
|
1014
1105
|
|
|
1106
|
+
/**
|
|
1107
|
+
* 合并数组
|
|
1108
|
+
* @param first
|
|
1109
|
+
* @param second
|
|
1110
|
+
* @return
|
|
1111
|
+
*/
|
|
1112
|
+
export declare function merge(first: any[], second: any[]): any[];
|
|
1113
|
+
|
|
1015
1114
|
export declare const MoneyItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1016
1115
|
|
|
1017
1116
|
export { multiply }
|
|
1018
1117
|
|
|
1019
1118
|
export { negate }
|
|
1020
1119
|
|
|
1120
|
+
/**
|
|
1121
|
+
* 下一个事件周期中执行函数
|
|
1122
|
+
* @param fn
|
|
1123
|
+
* @param args
|
|
1124
|
+
*/
|
|
1125
|
+
export declare function nextTick(fn: {
|
|
1126
|
+
(...args: any[]): void;
|
|
1127
|
+
}, ...args: any[]): void;
|
|
1128
|
+
|
|
1021
1129
|
export { numberFormat }
|
|
1022
1130
|
|
|
1131
|
+
/**
|
|
1132
|
+
* 对象类型
|
|
1133
|
+
*/
|
|
1134
|
+
export declare const objectToString: () => string;
|
|
1135
|
+
|
|
1136
|
+
export declare const Overlay: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1137
|
+
|
|
1023
1138
|
/**
|
|
1024
1139
|
* padding
|
|
1025
1140
|
*/
|
|
@@ -1037,7 +1152,7 @@ export declare const Page: DefineComponent<unknown, object, {}, ComputedOptions,
|
|
|
1037
1152
|
*/
|
|
1038
1153
|
export declare interface PageLayout {
|
|
1039
1154
|
width: number | string;
|
|
1040
|
-
height
|
|
1155
|
+
height?: number | string;
|
|
1041
1156
|
headerHeight: number | string;
|
|
1042
1157
|
footerHeight: number | string;
|
|
1043
1158
|
headerPadding?: Padding;
|
|
@@ -1062,6 +1177,8 @@ export declare interface PageState {
|
|
|
1062
1177
|
footerMounted?: boolean;
|
|
1063
1178
|
}
|
|
1064
1179
|
|
|
1180
|
+
export declare const Picker: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1181
|
+
|
|
1065
1182
|
/**
|
|
1066
1183
|
* 坐标
|
|
1067
1184
|
*/
|
|
@@ -1070,6 +1187,8 @@ export declare interface Point {
|
|
|
1070
1187
|
y: number;
|
|
1071
1188
|
}
|
|
1072
1189
|
|
|
1190
|
+
export declare const Popup: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1191
|
+
|
|
1073
1192
|
export declare const Price: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1074
1193
|
|
|
1075
1194
|
/**
|
|
@@ -1204,9 +1323,21 @@ export declare const TimeItem: DefineComponent<unknown, object, {}, ComputedOpti
|
|
|
1204
1323
|
|
|
1205
1324
|
export declare const TimeSelectItem: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1206
1325
|
|
|
1207
|
-
export {
|
|
1326
|
+
export declare const Toast: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
1208
1327
|
|
|
1209
|
-
|
|
1328
|
+
/**
|
|
1329
|
+
* 转换为boolean值
|
|
1330
|
+
* @param val
|
|
1331
|
+
* @returns
|
|
1332
|
+
*/
|
|
1333
|
+
export declare function toBoolean(val: unknown): boolean;
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* 转换为number值
|
|
1337
|
+
* @param val
|
|
1338
|
+
* @returns
|
|
1339
|
+
*/
|
|
1340
|
+
export declare function toNumber(val: unknown): number;
|
|
1210
1341
|
|
|
1211
1342
|
/**
|
|
1212
1343
|
* 转换为number rect
|
|
@@ -1228,7 +1359,7 @@ export declare function toPx(value: number | string, size?: number): number;
|
|
|
1228
1359
|
*/
|
|
1229
1360
|
export declare const toPxDesc: (value: string | number, size?: number) => string;
|
|
1230
1361
|
|
|
1231
|
-
export
|
|
1362
|
+
export declare const toTypeString: (value: unknown) => string;
|
|
1232
1363
|
|
|
1233
1364
|
/**
|
|
1234
1365
|
* to model value
|
|
@@ -1238,6 +1369,13 @@ export { toTypeString }
|
|
|
1238
1369
|
*/
|
|
1239
1370
|
export declare function toValue(props: UnwrapRef<Record<string, any>>, name?: string, format?: ValueFormat<any, any>): Ref;
|
|
1240
1371
|
|
|
1372
|
+
/**
|
|
1373
|
+
* 判断类型
|
|
1374
|
+
* @param obj
|
|
1375
|
+
* @returns any
|
|
1376
|
+
*/
|
|
1377
|
+
export declare function typeOf(obj: any): string;
|
|
1378
|
+
|
|
1241
1379
|
export declare class UniqueID {
|
|
1242
1380
|
/**
|
|
1243
1381
|
* seed id
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* scope getter
|
|
4
|
+
*/
|
|
5
|
+
export interface ScopeGetter {
|
|
6
|
+
(proxy: ComponentPublicInstance): string | null;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 设置公共scope getter
|
|
10
|
+
* @param getter
|
|
11
|
+
*/
|
|
12
|
+
export declare function setScopeGetter(getter: ScopeGetter): void;
|
|
13
|
+
/**
|
|
14
|
+
* 注册API函数
|
|
15
|
+
*/
|
|
16
|
+
export declare function setAPI(name: string, api: any, scope?: string): void;
|
|
17
|
+
/**
|
|
18
|
+
* 获取api
|
|
19
|
+
* @param proxy
|
|
20
|
+
* @param name
|
|
21
|
+
* @param scope
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
export declare function getAPI(proxy: ComponentPublicInstance, name: string, scope?: string): any | null;
|
|
25
|
+
/**
|
|
26
|
+
* 批量增加api
|
|
27
|
+
* @param apis
|
|
28
|
+
* @param scope
|
|
29
|
+
*/
|
|
30
|
+
export declare function batchSetAPI(apis: Record<string, any>, scope?: string): void;
|
|
31
|
+
/**
|
|
32
|
+
* 清空scope apis
|
|
33
|
+
* @param scope
|
|
34
|
+
*/
|
|
35
|
+
export declare function clearScopeAPI(scope: string): void;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { Plugin } from 'vue';
|
|
2
|
+
import { ElAffix } from 'element-plus';
|
|
3
|
+
import { ElAlert } from 'element-plus';
|
|
4
|
+
import { ElAutocomplete } from 'element-plus';
|
|
5
|
+
import { ElAvatar } from 'element-plus';
|
|
6
|
+
import { ElBacktop } from 'element-plus';
|
|
7
|
+
import { ElBadge } from 'element-plus';
|
|
8
|
+
import { ElBreadcrumb, ElBreadcrumbItem } from 'element-plus';
|
|
9
|
+
import { ElButton, ElButtonGroup } from 'element-plus';
|
|
10
|
+
import { ElCalendar } from 'element-plus';
|
|
11
|
+
import { ElCard } from 'element-plus';
|
|
12
|
+
import { ElCarousel, ElCarouselItem } from 'element-plus';
|
|
13
|
+
import { ElCascader } from 'element-plus';
|
|
14
|
+
import { ElCascaderPanel } from 'element-plus';
|
|
15
|
+
import { ElCheckTag } from 'element-plus';
|
|
16
|
+
import { ElCheckbox, ElCheckboxButton, ElCheckboxGroup } from 'element-plus';
|
|
17
|
+
import { ElCol } from 'element-plus';
|
|
18
|
+
import { ElCollapse, ElCollapseItem } from 'element-plus';
|
|
19
|
+
import { ElCollapseTransition } from 'element-plus';
|
|
20
|
+
import { ElColorPicker } from 'element-plus';
|
|
21
|
+
import { ElConfigProvider } from 'element-plus';
|
|
22
|
+
import { ElAside, ElContainer, ElFooter, ElHeader, ElMain } from 'element-plus';
|
|
23
|
+
import { ElDatePicker } from 'element-plus';
|
|
24
|
+
import { ElDescriptions, ElDescriptionsItem } from 'element-plus';
|
|
25
|
+
import { ElDialog } from 'element-plus';
|
|
26
|
+
import { ElDivider } from 'element-plus';
|
|
27
|
+
import { ElDrawer } from 'element-plus';
|
|
28
|
+
import { ElDropdown, ElDropdownItem, ElDropdownMenu } from 'element-plus';
|
|
29
|
+
import { ElEmpty } from 'element-plus';
|
|
30
|
+
import { ElForm, ElFormItem } from 'element-plus';
|
|
31
|
+
import { ElIcon } from 'element-plus';
|
|
32
|
+
import { ElImage } from 'element-plus';
|
|
33
|
+
import { ElImageViewer } from 'element-plus';
|
|
34
|
+
import { ElInput } from 'element-plus';
|
|
35
|
+
import { ElInputNumber } from 'element-plus';
|
|
36
|
+
import { ElLink } from 'element-plus';
|
|
37
|
+
import { ElMenu, ElMenuItem, ElSubMenu, ElMenuItemGroup } from 'element-plus';
|
|
38
|
+
import { ElPageHeader } from 'element-plus';
|
|
39
|
+
import { ElPagination } from 'element-plus';
|
|
40
|
+
import { ElPopconfirm } from 'element-plus';
|
|
41
|
+
import { ElPopover } from 'element-plus';
|
|
42
|
+
import { ElPopper } from 'element-plus';
|
|
43
|
+
import { ElProgress } from 'element-plus';
|
|
44
|
+
import { ElRadio, ElRadioButton, ElRadioGroup } from 'element-plus';
|
|
45
|
+
import { ElRate } from 'element-plus';
|
|
46
|
+
import { ElResult } from 'element-plus';
|
|
47
|
+
import { ElRow } from 'element-plus';
|
|
48
|
+
import { ElScrollbar } from 'element-plus';
|
|
49
|
+
import { ElOption, ElOptionGroup, ElSelect } from 'element-plus';
|
|
50
|
+
import { ElSelectV2 } from 'element-plus';
|
|
51
|
+
import { ElSkeleton, ElSkeletonItem } from 'element-plus';
|
|
52
|
+
import { ElSlider } from 'element-plus';
|
|
53
|
+
import { ElSpace } from 'element-plus';
|
|
54
|
+
import { ElStep, ElSteps } from 'element-plus';
|
|
55
|
+
import { ElSwitch } from 'element-plus';
|
|
56
|
+
import { ElTable, ElTableColumn } from 'element-plus';
|
|
57
|
+
import { ElAutoResizer, ElTableV2 } from 'element-plus';
|
|
58
|
+
import { ElTabPane, ElTabs } from 'element-plus';
|
|
59
|
+
import { ElTag } from 'element-plus';
|
|
60
|
+
import { ElTimePicker } from 'element-plus';
|
|
61
|
+
import { ElTimeSelect } from 'element-plus';
|
|
62
|
+
import { ElTimeline, ElTimelineItem } from 'element-plus';
|
|
63
|
+
import { ElTooltip } from 'element-plus';
|
|
64
|
+
import { ElTransfer } from 'element-plus';
|
|
65
|
+
import { ElTree } from 'element-plus';
|
|
66
|
+
import { ElTreeSelect } from 'element-plus';
|
|
67
|
+
import { ElTreeV2 } from 'element-plus';
|
|
68
|
+
import { ElUpload } from 'element-plus';
|
|
69
|
+
export declare const components: Plugin[];
|
|
70
|
+
export { ElAffix, ElAlert, ElAutocomplete, ElAutoResizer, ElAvatar, ElBacktop, ElBadge, ElBreadcrumb, ElBreadcrumbItem, ElButton, ElButtonGroup, ElCalendar, ElCard, ElCarousel, ElCarouselItem, ElCascader, ElCascaderPanel, ElCheckTag, ElCheckbox, ElCheckboxButton, ElCheckboxGroup, ElCol, ElCollapse, ElCollapseItem, ElCollapseTransition, ElColorPicker, ElConfigProvider, ElContainer, ElAside, ElFooter, ElHeader, ElMain, ElDatePicker, ElDescriptions, ElDescriptionsItem, ElDialog, ElDivider, ElDrawer, ElDropdown, ElDropdownItem, ElDropdownMenu, ElEmpty, ElForm, ElFormItem, ElIcon, ElImage, ElImageViewer, ElInput, ElInputNumber, ElLink, ElMenu, ElSubMenu, ElMenuItem, ElMenuItemGroup, ElPageHeader, ElPagination, ElPopconfirm, ElPopover, ElPopper, ElProgress, ElRadio, ElRadioButton, ElRadioGroup, ElRate, ElResult, ElRow, ElScrollbar, ElSelect, ElOption, ElOptionGroup, ElSelectV2, ElSkeleton, ElSkeletonItem, ElSlider, ElSpace, ElSteps, ElStep, ElSwitch, ElTable, ElTableColumn, ElTableV2, ElTabs, ElTabPane, ElTag, ElTimePicker, ElTimeSelect, ElTimeline, ElTimelineItem, ElTooltip, ElTransfer, ElTree, ElTreeSelect, ElTreeV2, ElUpload };
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { PropType, CSSProperties, RendererNode, RendererElement, SetupContext, VNode } from 'vue';
|
|
2
|
+
export declare const inputProps: {
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
5
|
+
required: boolean;
|
|
6
|
+
};
|
|
7
|
+
clearable: {
|
|
8
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
unit: {
|
|
12
|
+
type: StringConstructor[];
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 创建组件
|
|
18
|
+
* @param componentName
|
|
19
|
+
* @param scope
|
|
20
|
+
* @param Item
|
|
21
|
+
*/
|
|
22
|
+
export declare function component(componentName: string, scope: string, Item: any): {
|
|
23
|
+
props: {
|
|
24
|
+
modelValue: {
|
|
25
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
26
|
+
required: boolean;
|
|
27
|
+
};
|
|
28
|
+
clearable: {
|
|
29
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
unit: {
|
|
33
|
+
type: StringConstructor[];
|
|
34
|
+
required: boolean;
|
|
35
|
+
};
|
|
36
|
+
prop: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: boolean;
|
|
39
|
+
};
|
|
40
|
+
label: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
required: boolean;
|
|
43
|
+
};
|
|
44
|
+
labelPosition: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
required: boolean;
|
|
47
|
+
};
|
|
48
|
+
labelWidth: {
|
|
49
|
+
type: PropType<string | number>;
|
|
50
|
+
required: boolean;
|
|
51
|
+
};
|
|
52
|
+
isRequired: {
|
|
53
|
+
type: PropType<string | boolean>;
|
|
54
|
+
required: boolean;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
span: {
|
|
58
|
+
type: PropType<string | number>;
|
|
59
|
+
required: boolean;
|
|
60
|
+
default: number;
|
|
61
|
+
};
|
|
62
|
+
offset: {
|
|
63
|
+
type: PropType<string | number>;
|
|
64
|
+
default: number;
|
|
65
|
+
};
|
|
66
|
+
width: {
|
|
67
|
+
type: PropType<string | number>;
|
|
68
|
+
required: boolean;
|
|
69
|
+
};
|
|
70
|
+
errorTip: {
|
|
71
|
+
type: StringConstructor;
|
|
72
|
+
required: boolean;
|
|
73
|
+
};
|
|
74
|
+
errorIcon: {
|
|
75
|
+
type: ObjectConstructor;
|
|
76
|
+
required: boolean;
|
|
77
|
+
};
|
|
78
|
+
errorClass: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
required: boolean;
|
|
81
|
+
};
|
|
82
|
+
warnTip: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
required: boolean;
|
|
85
|
+
};
|
|
86
|
+
warnIcon: {
|
|
87
|
+
type: ObjectConstructor;
|
|
88
|
+
required: boolean;
|
|
89
|
+
};
|
|
90
|
+
warnClass: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
required: boolean;
|
|
93
|
+
};
|
|
94
|
+
infoTip: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
required: boolean;
|
|
97
|
+
};
|
|
98
|
+
infoIcon: {
|
|
99
|
+
type: ObjectConstructor;
|
|
100
|
+
required: boolean;
|
|
101
|
+
};
|
|
102
|
+
infoClass: {
|
|
103
|
+
type: StringConstructor;
|
|
104
|
+
required: boolean;
|
|
105
|
+
};
|
|
106
|
+
contentClass: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
required: boolean;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
contentStyle: {
|
|
112
|
+
type: PropType<CSSProperties>;
|
|
113
|
+
required: boolean;
|
|
114
|
+
default: {};
|
|
115
|
+
};
|
|
116
|
+
hintType: {
|
|
117
|
+
type: PropType<"number" | "text" | "money">;
|
|
118
|
+
required: boolean;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
hintText: {
|
|
122
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
123
|
+
required: boolean;
|
|
124
|
+
};
|
|
125
|
+
hintVisible: {
|
|
126
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
127
|
+
required: boolean;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
hintProps: {
|
|
131
|
+
type: ObjectConstructor;
|
|
132
|
+
required: boolean;
|
|
133
|
+
default: {};
|
|
134
|
+
};
|
|
135
|
+
hasBorder: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
disabled: {
|
|
140
|
+
type: PropType<string | boolean>;
|
|
141
|
+
required: boolean;
|
|
142
|
+
};
|
|
143
|
+
readonly: {
|
|
144
|
+
type: PropType<string | boolean>;
|
|
145
|
+
required: boolean;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
emits: string[];
|
|
149
|
+
setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
150
|
+
[key: string]: any;
|
|
151
|
+
}>;
|
|
152
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { DefineComponent, ComputedOptions, MethodOptions, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps } from 'vue';
|
|
2
|
+
declare const _sfc_main: DefineComponent<unknown, object, {}, ComputedOptions, MethodOptions, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<unknown>, {}>;
|
|
3
|
+
export default _sfc_main;
|