@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
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { CSSProperties, RendererNode, RendererElement, SetupContext, VNode, PropType } from 'vue';
|
|
2
|
+
export declare const inputProps: {
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: (StringConstructor | NumberConstructor | DateConstructor | ArrayConstructor)[];
|
|
5
|
+
required: boolean;
|
|
6
|
+
};
|
|
7
|
+
unit: {
|
|
8
|
+
type: StringConstructor[];
|
|
9
|
+
required: boolean;
|
|
10
|
+
};
|
|
11
|
+
placeholder: {
|
|
12
|
+
type: PropType<string>;
|
|
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 | NumberConstructor | DateConstructor | ArrayConstructor)[];
|
|
26
|
+
required: boolean;
|
|
27
|
+
};
|
|
28
|
+
unit: {
|
|
29
|
+
type: StringConstructor[];
|
|
30
|
+
required: boolean;
|
|
31
|
+
};
|
|
32
|
+
placeholder: {
|
|
33
|
+
type: PropType<string>;
|
|
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;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { VNode, RendererNode, RendererElement, SetupContext } from 'vue';
|
|
2
|
+
export declare function component(componentName: string, scope: string): {
|
|
3
|
+
props: {
|
|
4
|
+
title: {
|
|
5
|
+
type: StringConstructor[];
|
|
6
|
+
};
|
|
7
|
+
draggable: {
|
|
8
|
+
type: BooleanConstructor[];
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
appendToBody: {
|
|
12
|
+
type: BooleanConstructor[];
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
closeOnClickModal: {
|
|
16
|
+
type: BooleanConstructor[];
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
closeOnPressEscape: {
|
|
20
|
+
type: BooleanConstructor[];
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}>;
|
|
27
|
+
};
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ComputedRef, PropType, SetupContext, CSSProperties } from 'vue';
|
|
2
|
+
import { Padding } from '../../utils/domain';
|
|
3
|
+
import type { AlignType } from './type';
|
|
4
|
+
export declare function component(componentName: string, scope: string): {
|
|
5
|
+
props: {
|
|
6
|
+
height: {
|
|
7
|
+
type: PropType<string | number>;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
padding: {
|
|
11
|
+
type: PropType<Padding>;
|
|
12
|
+
required: boolean;
|
|
13
|
+
};
|
|
14
|
+
align: {
|
|
15
|
+
type: PropType<AlignType>;
|
|
16
|
+
required: boolean;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
setup(props: Record<string, any>, context: SetupContext): {
|
|
21
|
+
classes: ComputedRef<{
|
|
22
|
+
[x: string]: boolean;
|
|
23
|
+
}>;
|
|
24
|
+
styles: ComputedRef<CSSProperties>;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type AlignType = 'left' | 'center' | 'right';
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import type { Rule } from '@fox-js/validator';
|
|
2
|
+
import type { PropType, RendererNode, RendererElement, SetupContext, VNode } from 'vue';
|
|
3
|
+
/**
|
|
4
|
+
* 创建component
|
|
5
|
+
* @param componentName
|
|
6
|
+
* @param scope
|
|
7
|
+
*/
|
|
8
|
+
export declare function component(componentName: string, scope: string): {
|
|
9
|
+
props: {
|
|
10
|
+
name: {
|
|
11
|
+
type: PropType<string>;
|
|
12
|
+
required: boolean;
|
|
13
|
+
};
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: PropType<Record<string, any>>;
|
|
16
|
+
required: boolean;
|
|
17
|
+
};
|
|
18
|
+
rules: {
|
|
19
|
+
type: PropType<Record<string, Rule>>;
|
|
20
|
+
required: boolean;
|
|
21
|
+
};
|
|
22
|
+
type: {
|
|
23
|
+
type: PropType<"flex" | "form" | "flow">;
|
|
24
|
+
required: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* 获取item offset
|
|
27
|
+
* @param node
|
|
28
|
+
*/
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
title: {
|
|
32
|
+
type: PropType<string>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
span: {
|
|
36
|
+
type: PropType<string | number>;
|
|
37
|
+
required: boolean;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
offset: {
|
|
41
|
+
type: PropType<number>;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
autoLayout: {
|
|
45
|
+
type: PropType<boolean>;
|
|
46
|
+
required: boolean;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
isWrap: {
|
|
50
|
+
type: PropType<string | boolean>;
|
|
51
|
+
required: boolean;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
width: {
|
|
55
|
+
type: PropType<string | number>;
|
|
56
|
+
required: boolean;
|
|
57
|
+
};
|
|
58
|
+
height: {
|
|
59
|
+
type: PropType<string | number>;
|
|
60
|
+
required: boolean;
|
|
61
|
+
};
|
|
62
|
+
showMark: {
|
|
63
|
+
type: PropType<string | boolean>;
|
|
64
|
+
required: boolean;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
markColor: {
|
|
68
|
+
type: PropType<string>;
|
|
69
|
+
required: boolean;
|
|
70
|
+
};
|
|
71
|
+
column: {
|
|
72
|
+
type: PropType<string | number>;
|
|
73
|
+
required: boolean;
|
|
74
|
+
};
|
|
75
|
+
gutter: {
|
|
76
|
+
type: PropType<string | number>;
|
|
77
|
+
required: boolean;
|
|
78
|
+
};
|
|
79
|
+
minItemWidth: {
|
|
80
|
+
type: PropType<number>;
|
|
81
|
+
required: boolean;
|
|
82
|
+
};
|
|
83
|
+
justify: {
|
|
84
|
+
type: PropType<string>;
|
|
85
|
+
required: boolean;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
align: {
|
|
89
|
+
type: PropType<"start" | "end" | "center">;
|
|
90
|
+
required: boolean;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
flexWrap: {
|
|
94
|
+
type: PropType<"nowrap" | "wrap">;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
disabled: {
|
|
98
|
+
type: PropType<string | boolean>;
|
|
99
|
+
required: boolean;
|
|
100
|
+
};
|
|
101
|
+
readonly: {
|
|
102
|
+
type: PropType<string | boolean>;
|
|
103
|
+
required: boolean;
|
|
104
|
+
};
|
|
105
|
+
labelPosition: {
|
|
106
|
+
type: PropType<string>;
|
|
107
|
+
required: boolean;
|
|
108
|
+
};
|
|
109
|
+
labelWidth: {
|
|
110
|
+
type: PropType<string | number>;
|
|
111
|
+
required: boolean;
|
|
112
|
+
};
|
|
113
|
+
hasBorder: {
|
|
114
|
+
type: PropType<boolean>;
|
|
115
|
+
required: boolean;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
setup(props: Record<string, any>, context: SetupContext): () => any[] | VNode<RendererNode, RendererElement, {
|
|
120
|
+
[key: string]: any;
|
|
121
|
+
}>;
|
|
122
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Rule } from '@fox-js/validator';
|
|
3
|
+
/**
|
|
4
|
+
* group props(domain范围内生效)
|
|
5
|
+
*/
|
|
6
|
+
export declare const domainGroupProps: {
|
|
7
|
+
column: {
|
|
8
|
+
type: PropType<string | number>;
|
|
9
|
+
required: boolean;
|
|
10
|
+
};
|
|
11
|
+
gutter: {
|
|
12
|
+
type: PropType<string | number>;
|
|
13
|
+
required: boolean;
|
|
14
|
+
};
|
|
15
|
+
minItemWidth: {
|
|
16
|
+
type: PropType<number>;
|
|
17
|
+
required: boolean;
|
|
18
|
+
};
|
|
19
|
+
justify: {
|
|
20
|
+
type: PropType<string>;
|
|
21
|
+
required: boolean;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
align: {
|
|
25
|
+
type: PropType<"start" | "end" | "center">;
|
|
26
|
+
required: boolean;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
flexWrap: {
|
|
30
|
+
type: PropType<"nowrap" | "wrap">;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* group props
|
|
36
|
+
*/
|
|
37
|
+
export declare const groupProps: {
|
|
38
|
+
name: {
|
|
39
|
+
type: PropType<string>;
|
|
40
|
+
required: boolean;
|
|
41
|
+
};
|
|
42
|
+
modelValue: {
|
|
43
|
+
type: PropType<Record<string, any>>;
|
|
44
|
+
required: boolean;
|
|
45
|
+
};
|
|
46
|
+
rules: {
|
|
47
|
+
type: PropType<Record<string, Rule>>;
|
|
48
|
+
required: boolean;
|
|
49
|
+
};
|
|
50
|
+
type: {
|
|
51
|
+
type: PropType<"flex" | "form" | "flow">;
|
|
52
|
+
required: boolean;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
title: {
|
|
56
|
+
type: PropType<string>;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
span: {
|
|
60
|
+
type: PropType<string | number>;
|
|
61
|
+
required: boolean;
|
|
62
|
+
default: number;
|
|
63
|
+
};
|
|
64
|
+
offset: {
|
|
65
|
+
type: PropType<number>;
|
|
66
|
+
default: number;
|
|
67
|
+
};
|
|
68
|
+
autoLayout: {
|
|
69
|
+
type: PropType<boolean>;
|
|
70
|
+
required: boolean;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
isWrap: {
|
|
74
|
+
type: PropType<string | boolean>;
|
|
75
|
+
required: boolean;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
width: {
|
|
79
|
+
type: PropType<string | number>;
|
|
80
|
+
required: boolean;
|
|
81
|
+
};
|
|
82
|
+
height: {
|
|
83
|
+
type: PropType<string | number>;
|
|
84
|
+
required: boolean;
|
|
85
|
+
};
|
|
86
|
+
showMark: {
|
|
87
|
+
type: PropType<string | boolean>;
|
|
88
|
+
required: boolean;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
markColor: {
|
|
92
|
+
type: PropType<string>;
|
|
93
|
+
required: boolean;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
declare const groupPropKeys: any[];
|
|
97
|
+
export { groupPropKeys };
|
|
@@ -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;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { ComputedRef, PropType, SetupContext, CSSProperties } from 'vue';
|
|
2
|
+
import { Padding } from '../../utils/domain';
|
|
3
|
+
import { IconParams } from './types';
|
|
4
|
+
export declare const component: (componentName: string, scope: string) => {
|
|
5
|
+
props: {
|
|
6
|
+
height: {
|
|
7
|
+
type: PropType<string | number>;
|
|
8
|
+
required: boolean;
|
|
9
|
+
};
|
|
10
|
+
padding: {
|
|
11
|
+
type: PropType<Padding>;
|
|
12
|
+
required: boolean;
|
|
13
|
+
};
|
|
14
|
+
leftShow: {
|
|
15
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
16
|
+
required: boolean;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
leftIcon: {
|
|
20
|
+
type: PropType<string | IconParams>;
|
|
21
|
+
required: boolean;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
leftText: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
required: boolean;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
titleShow: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
required: boolean;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
title: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
required: boolean;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
titleIcon: {
|
|
40
|
+
type: PropType<string | IconParams>;
|
|
41
|
+
required: boolean;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
rightShow: {
|
|
45
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
46
|
+
required: boolean;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
rightIcon: {
|
|
50
|
+
type: PropType<string | IconParams>;
|
|
51
|
+
required: boolean;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
rightText: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
required: boolean;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
emits: string[];
|
|
61
|
+
setup(props: Record<string, any>, context: SetupContext): {
|
|
62
|
+
classes: ComputedRef<{
|
|
63
|
+
[x: string]: boolean;
|
|
64
|
+
}>;
|
|
65
|
+
styles: ComputedRef<CSSProperties>;
|
|
66
|
+
mHeaderShow: ComputedRef<boolean>;
|
|
67
|
+
leftStyles: ComputedRef<CSSProperties>;
|
|
68
|
+
rightStyles: ComputedRef<CSSProperties>;
|
|
69
|
+
mLeftShow: ComputedRef<any>;
|
|
70
|
+
mTitleShow: ComputedRef<any>;
|
|
71
|
+
mRightShow: ComputedRef<any>;
|
|
72
|
+
mLeftIcon: ComputedRef<Record<string, any>>;
|
|
73
|
+
mTitleIcon: ComputedRef<Record<string, any>>;
|
|
74
|
+
mRightIcon: ComputedRef<Record<string, any>>;
|
|
75
|
+
handleLeft: () => void;
|
|
76
|
+
handleCenter: () => void;
|
|
77
|
+
handleRight: () => void;
|
|
78
|
+
handleRightText: () => void;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
@@ -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;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import HintText from './index.vue';
|
|
2
|
+
/**
|
|
3
|
+
* hint text function
|
|
4
|
+
*/
|
|
5
|
+
export declare const HintTextFunction: {
|
|
6
|
+
/**
|
|
7
|
+
* 显示
|
|
8
|
+
* @param source
|
|
9
|
+
* @param message
|
|
10
|
+
* @param opts
|
|
11
|
+
* @param only
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
show(source: HTMLElement, message: string, opts?: Record<string, any>, only?: boolean): string;
|
|
15
|
+
/**
|
|
16
|
+
* 隐藏
|
|
17
|
+
* @param id
|
|
18
|
+
*/
|
|
19
|
+
hide(id?: string): void;
|
|
20
|
+
/**
|
|
21
|
+
* 安装
|
|
22
|
+
* @param app
|
|
23
|
+
*/
|
|
24
|
+
install(app: any): void;
|
|
25
|
+
};
|
|
26
|
+
export { HintText };
|
|
27
|
+
export default HintTextFunction;
|
|
@@ -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;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RendererNode, RendererElement, SetupContext, PropType, VNode } from 'vue';
|
|
2
|
+
import { IndicatorType } from './types';
|
|
3
|
+
export declare function component(componentName: string, scope: string): {
|
|
4
|
+
props: {
|
|
5
|
+
type: {
|
|
6
|
+
type: PropType<IndicatorType>;
|
|
7
|
+
required: boolean;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
color: {
|
|
11
|
+
type: PropType<string>;
|
|
12
|
+
required: boolean;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
setup(props: Record<string, any>, { slots }: SetupContext): () => VNode<RendererNode, RendererElement, {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>;
|
|
19
|
+
};
|
|
@@ -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;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type IndicatorType = '' | 'success' | 'info' | 'warning' | 'danger';
|