@fox-js/foxui-pc 4.0.1-12 → 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.
Files changed (111) hide show
  1. package/dist/index.cjs.js +3 -3
  2. package/dist/index.cjs.js.map +1 -0
  3. package/dist/index.d.ts +2 -2
  4. package/dist/index.esm.js +7358 -4355
  5. package/dist/index.esm.js.map +1 -0
  6. package/dist/index.umd.js +4 -4
  7. package/dist/index.umd.js.map +1 -0
  8. package/dist/style.esm.js +1 -1
  9. package/dist/types/index.d.ts +172 -34
  10. package/dist/types/src/api/index.d.ts +35 -0
  11. package/dist/types/src/base/component.d.ts +70 -0
  12. package/dist/types/src/base/index.d.ts +4 -0
  13. package/dist/types/src/base/plugin.d.ts +2 -0
  14. package/dist/types/src/components/autocompleteitem/common.d.ts +152 -0
  15. package/dist/types/src/components/autocompleteitem/index.vue.d.ts +3 -0
  16. package/dist/types/src/components/cascaderitem/common.d.ts +223 -0
  17. package/dist/types/src/components/cascaderitem/index.vue.d.ts +3 -0
  18. package/dist/types/src/components/cascaderitem/model.d.ts +70 -0
  19. package/dist/types/src/components/cascaderitem/types.d.ts +26 -0
  20. package/dist/types/src/components/checkboxitem/common.d.ts +181 -0
  21. package/dist/types/src/components/checkboxitem/index.vue.d.ts +3 -0
  22. package/dist/types/src/components/checkboxitem/model.d.ts +63 -0
  23. package/dist/types/src/components/checkboxitem/types.d.ts +33 -0
  24. package/dist/types/src/components/content/common.d.ts +16 -0
  25. package/dist/types/src/components/content/index.vue.d.ts +3 -0
  26. package/dist/types/src/components/dateitem/common.d.ts +152 -0
  27. package/dist/types/src/components/dateitem/index.vue.d.ts +3 -0
  28. package/dist/types/src/components/dialogitem/common.d.ts +27 -0
  29. package/dist/types/src/components/dialogitem/index.vue.d.ts +3 -0
  30. package/dist/types/src/components/exticon/index.vue.d.ts +3 -0
  31. package/dist/types/src/components/footerbar/common.d.ts +26 -0
  32. package/dist/types/src/components/footerbar/index.vue.d.ts +3 -0
  33. package/dist/types/src/components/footerbar/type.d.ts +1 -0
  34. package/dist/types/src/components/group/commons.d.ts +122 -0
  35. package/dist/types/src/components/group/group-props.d.ts +97 -0
  36. package/dist/types/src/components/group/index.vue.d.ts +3 -0
  37. package/dist/types/src/components/headerbar/common.d.ts +80 -0
  38. package/dist/types/src/components/headerbar/index.vue.d.ts +3 -0
  39. package/dist/types/src/components/headerbar/types.d.ts +5 -0
  40. package/dist/types/src/components/hinttext/index.d.ts +27 -0
  41. package/dist/types/src/components/hinttext/index.vue.d.ts +3 -0
  42. package/dist/types/src/components/indicator/common.d.ts +19 -0
  43. package/dist/types/src/components/indicator/index.vue.d.ts +3 -0
  44. package/dist/types/src/components/indicator/types.d.ts +1 -0
  45. package/dist/types/src/components/inputitem/common.d.ts +176 -0
  46. package/dist/types/src/components/inputitem/index.vue.d.ts +3 -0
  47. package/dist/types/src/components/inputnumberitem/common.d.ts +176 -0
  48. package/dist/types/src/components/inputnumberitem/index.vue.d.ts +3 -0
  49. package/dist/types/src/components/item/common.d.ts +137 -0
  50. package/dist/types/src/components/item/index.vue.d.ts +3 -0
  51. package/dist/types/src/components/mapping/common.d.ts +105 -0
  52. package/dist/types/src/components/mapping/index.vue.d.ts +3 -0
  53. package/dist/types/src/components/mapping/model.d.ts +28 -0
  54. package/dist/types/src/components/mapping/types.d.ts +17 -0
  55. package/dist/types/src/components/moneyitem/common.d.ts +300 -0
  56. package/dist/types/src/components/moneyitem/index.vue.d.ts +3 -0
  57. package/dist/types/src/components/moneyitem/util.d.ts +51 -0
  58. package/dist/types/src/components/page/common.d.ts +120 -0
  59. package/dist/types/src/components/page/index.vue.d.ts +3 -0
  60. package/dist/types/src/components/price/index.vue.d.ts +3 -0
  61. package/dist/types/src/components/price/price-props.d.ts +37 -0
  62. package/dist/types/src/components/radioitem/common.d.ts +173 -0
  63. package/dist/types/src/components/radioitem/index.vue.d.ts +3 -0
  64. package/dist/types/src/components/radioitem/model.d.ts +63 -0
  65. package/dist/types/src/components/radioitem/types.d.ts +33 -0
  66. package/dist/types/src/components/rateitem/common.d.ts +136 -0
  67. package/dist/types/src/components/rateitem/index.vue.d.ts +3 -0
  68. package/dist/types/src/components/rowitem/common.d.ts +38 -0
  69. package/dist/types/src/components/rowitem/index.vue.d.ts +3 -0
  70. package/dist/types/src/components/selectitem/common.d.ts +239 -0
  71. package/dist/types/src/components/selectitem/index.vue.d.ts +3 -0
  72. package/dist/types/src/components/selectitem/model.d.ts +70 -0
  73. package/dist/types/src/components/selectitem/types.d.ts +26 -0
  74. package/dist/types/src/components/slotitem/common.d.ts +21 -0
  75. package/dist/types/src/components/slotitem/index.vue.d.ts +3 -0
  76. package/dist/types/src/components/switchitem/common.d.ts +136 -0
  77. package/dist/types/src/components/switchitem/index.vue.d.ts +3 -0
  78. package/dist/types/src/components/tableitem/common.d.ts +230 -0
  79. package/dist/types/src/components/tableitem/index.vue.d.ts +3 -0
  80. package/dist/types/src/components/tableitem/model.d.ts +27 -0
  81. package/dist/types/src/components/tableitem/types.d.ts +19 -0
  82. package/dist/types/src/components/tablemappingcolumn/common.d.ts +56 -0
  83. package/dist/types/src/components/tablemappingcolumn/index.vue.d.ts +3 -0
  84. package/dist/types/src/components/timeitem/common.d.ts +152 -0
  85. package/dist/types/src/components/timeitem/index.vue.d.ts +3 -0
  86. package/dist/types/src/components/timeselectitem/common.d.ts +152 -0
  87. package/dist/types/src/components/timeselectitem/index.vue.d.ts +3 -0
  88. package/dist/types/src/foxui.vue.build.d.ts +137 -0
  89. package/dist/types/src/interface.d.ts +83 -0
  90. package/dist/types/src/main.d.ts +81 -0
  91. package/dist/types/src/utils/commons.d.ts +220 -0
  92. package/dist/types/src/utils/create/component.d.ts +18 -0
  93. package/dist/types/src/utils/create/index.d.ts +1 -0
  94. package/dist/types/src/utils/date.d.ts +76 -0
  95. package/dist/types/src/utils/domain/broadcast.d.ts +116 -0
  96. package/dist/types/src/utils/domain/domain.d.ts +146 -0
  97. package/dist/types/src/utils/domain/events.d.ts +51 -0
  98. package/dist/types/src/utils/domain/group.d.ts +61 -0
  99. package/dist/types/src/utils/domain/index.d.ts +5 -0
  100. package/dist/types/src/utils/domain/item.d.ts +45 -0
  101. package/dist/types/src/utils/domain/page.d.ts +113 -0
  102. package/dist/types/src/utils/domain/types.d.ts +5 -0
  103. package/dist/types/src/utils/domain/validator.d.ts +230 -0
  104. package/dist/types/src/utils/functions.d.ts +20 -0
  105. package/dist/types/src/utils/px.d.ts +13 -0
  106. package/dist/types/src/utils/unique-id.d.ts +16 -0
  107. package/dist/types/src/utils/use-expose/index.d.ts +6 -0
  108. package/dist/types/src/utils/use-position/index.d.ts +14 -0
  109. package/dist/types/src/utils/use-rect/index.d.ts +20 -0
  110. package/dist/types/src/utils/use-touch/index.d.ts +21 -0
  111. package/package.json +1 -1
@@ -0,0 +1,223 @@
1
+ import type { CSSProperties, RendererNode, RendererElement, SetupContext, VNode, PropType } from 'vue';
2
+ import { Item, SourceFunction, ValueType, RemoteMethod } from './types';
3
+ export declare const inputProps: {
4
+ modelValue: {
5
+ type: PropType<any>;
6
+ required: boolean;
7
+ };
8
+ source: {
9
+ type: PropType<string | Item[] | SourceFunction>;
10
+ default: any[];
11
+ };
12
+ params: {
13
+ type: ObjectConstructor;
14
+ };
15
+ clearable: {
16
+ type: (BooleanConstructor | StringConstructor)[];
17
+ default: boolean;
18
+ };
19
+ props: {
20
+ type: PropType<Record<string, any>>;
21
+ required: boolean;
22
+ };
23
+ multiple: {
24
+ type: BooleanConstructor[];
25
+ default: boolean;
26
+ };
27
+ valueType: {
28
+ type: PropType<ValueType>;
29
+ required: boolean;
30
+ default: string;
31
+ };
32
+ textKey: {
33
+ type: StringConstructor[];
34
+ required: boolean;
35
+ default: string;
36
+ };
37
+ valueKey: {
38
+ type: StringConstructor[];
39
+ required: boolean;
40
+ default: string;
41
+ };
42
+ childrenKey: {
43
+ type: StringConstructor[];
44
+ required: boolean;
45
+ default: string;
46
+ };
47
+ remoteMethod: {
48
+ type: PropType<RemoteMethod>;
49
+ required: boolean;
50
+ };
51
+ };
52
+ /**
53
+ * 创建组件
54
+ * @param componentName
55
+ * @param scope
56
+ * @param Item
57
+ */
58
+ export declare function component(componentName: string, scope: string, Item: any): {
59
+ props: {
60
+ modelValue: {
61
+ type: PropType<any>;
62
+ required: boolean;
63
+ };
64
+ source: {
65
+ type: PropType<string | Item[] | SourceFunction>;
66
+ default: any[];
67
+ };
68
+ params: {
69
+ type: ObjectConstructor;
70
+ };
71
+ clearable: {
72
+ type: (BooleanConstructor | StringConstructor)[];
73
+ default: boolean;
74
+ };
75
+ props: {
76
+ type: PropType<Record<string, any>>;
77
+ required: boolean;
78
+ };
79
+ multiple: {
80
+ type: BooleanConstructor[];
81
+ default: boolean;
82
+ };
83
+ valueType: {
84
+ type: PropType<ValueType>;
85
+ required: boolean;
86
+ default: string;
87
+ };
88
+ textKey: {
89
+ type: StringConstructor[];
90
+ required: boolean;
91
+ default: string;
92
+ };
93
+ valueKey: {
94
+ type: StringConstructor[];
95
+ required: boolean;
96
+ default: string;
97
+ };
98
+ childrenKey: {
99
+ type: StringConstructor[];
100
+ required: boolean;
101
+ default: string;
102
+ };
103
+ remoteMethod: {
104
+ type: PropType<RemoteMethod>;
105
+ required: boolean;
106
+ };
107
+ prop: {
108
+ type: StringConstructor;
109
+ required: boolean;
110
+ };
111
+ label: {
112
+ type: StringConstructor;
113
+ required: boolean;
114
+ };
115
+ labelPosition: {
116
+ type: StringConstructor;
117
+ required: boolean;
118
+ };
119
+ labelWidth: {
120
+ type: PropType<string | number>;
121
+ required: boolean;
122
+ };
123
+ isRequired: {
124
+ type: PropType<string | boolean>;
125
+ required: boolean;
126
+ default: boolean;
127
+ };
128
+ span: {
129
+ type: PropType<string | number>;
130
+ required: boolean;
131
+ default: number;
132
+ };
133
+ offset: {
134
+ type: PropType<string | number>;
135
+ default: number;
136
+ };
137
+ width: {
138
+ type: PropType<string | number>;
139
+ required: boolean;
140
+ };
141
+ errorTip: {
142
+ type: StringConstructor;
143
+ required: boolean;
144
+ };
145
+ errorIcon: {
146
+ type: ObjectConstructor;
147
+ required: boolean;
148
+ };
149
+ errorClass: {
150
+ type: StringConstructor;
151
+ required: boolean;
152
+ };
153
+ warnTip: {
154
+ type: StringConstructor;
155
+ required: boolean;
156
+ };
157
+ warnIcon: {
158
+ type: ObjectConstructor;
159
+ required: boolean;
160
+ };
161
+ warnClass: {
162
+ type: StringConstructor;
163
+ required: boolean;
164
+ };
165
+ infoTip: {
166
+ type: StringConstructor;
167
+ required: boolean;
168
+ };
169
+ infoIcon: {
170
+ type: ObjectConstructor;
171
+ required: boolean;
172
+ };
173
+ infoClass: {
174
+ type: StringConstructor;
175
+ required: boolean;
176
+ };
177
+ contentClass: {
178
+ type: StringConstructor;
179
+ required: boolean;
180
+ default: string;
181
+ };
182
+ contentStyle: {
183
+ type: PropType<CSSProperties>;
184
+ required: boolean;
185
+ default: {};
186
+ };
187
+ hintType: {
188
+ type: PropType<"number" | "text" | "money">;
189
+ required: boolean;
190
+ default: string;
191
+ };
192
+ hintText: {
193
+ type: (StringConstructor | NumberConstructor)[];
194
+ required: boolean;
195
+ };
196
+ hintVisible: {
197
+ type: (BooleanConstructor | StringConstructor)[];
198
+ required: boolean;
199
+ default: boolean;
200
+ };
201
+ hintProps: {
202
+ type: ObjectConstructor;
203
+ required: boolean;
204
+ default: {};
205
+ };
206
+ hasBorder: {
207
+ type: BooleanConstructor;
208
+ default: boolean;
209
+ };
210
+ disabled: {
211
+ type: PropType<string | boolean>;
212
+ required: boolean;
213
+ };
214
+ readonly: {
215
+ type: PropType<string | boolean>;
216
+ required: boolean;
217
+ };
218
+ };
219
+ emits: string[];
220
+ setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
221
+ [key: string]: any;
222
+ }>;
223
+ };
@@ -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,70 @@
1
+ import { ComponentPublicInstance } from 'vue';
2
+ import { Item, SourceFunction } from './types';
3
+ /**
4
+ * 获取item text
5
+ * @param props
6
+ * @param item
7
+ * @returns
8
+ */
9
+ export declare function getItemText(props: Record<string, any>, item: Item): string | number;
10
+ /**
11
+ * 获取item value
12
+ * @param props
13
+ * @param item
14
+ * @returns
15
+ */
16
+ export declare function getItemValue(props: Record<string, any>, item: Item): string | boolean | number;
17
+ /**
18
+ * 获取item children
19
+ * @param props
20
+ * @param item
21
+ * @returns
22
+ */
23
+ export declare function getItemChildren(props: Record<string, any>, item: Item): Item[] | null;
24
+ /**
25
+ * 数据model
26
+ */
27
+ export declare class Model {
28
+ /**
29
+ * proxy
30
+ */
31
+ private proxy;
32
+ /**
33
+ * 构造函数
34
+ * @param proxy
35
+ */
36
+ constructor(proxy: ComponentPublicInstance);
37
+ /**
38
+ * 加载数据源
39
+ * @param src
40
+ * @returns
41
+ */
42
+ load(componentType: string, src: SourceFunction | Item[][] | Item[] | string, params?: any): Promise<Item[][] | Item[] | string[] | string[][]>;
43
+ }
44
+ /**
45
+ * 使用model
46
+ * @returns
47
+ */
48
+ export declare function useModel(): Model;
49
+ /**
50
+ * item是否相等
51
+ * @param props
52
+ * @param x
53
+ * @param y
54
+ * @returns
55
+ */
56
+ export declare function isEqualsItem(props: Record<string, any>, x: Item, y: Item): boolean;
57
+ /**
58
+ * value转换为items
59
+ * @param value
60
+ * @param valueType
61
+ * @param items
62
+ * @returns
63
+ */
64
+ export declare function valuesToItems(props: Record<string, any>, value: any, valueType: string, items: Item[]): (Item | Item[])[] | null;
65
+ /**
66
+ * string转换为item
67
+ * @param text
68
+ * @returns
69
+ */
70
+ export declare function stringToItem(text: string): Item;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Item类型
3
+ */
4
+ export interface Item {
5
+ text: string | number;
6
+ value: any;
7
+ disabled?: boolean;
8
+ children?: Item[];
9
+ [propName: string]: any;
10
+ }
11
+ /**
12
+ * 通用Promise函数接口
13
+ */
14
+ export interface SourceFunction {
15
+ (params?: any): Promise<Item[]>;
16
+ }
17
+ /**
18
+ * value type
19
+ */
20
+ export declare type ValueType = 'value' | 'text' | 'item';
21
+ /**
22
+ * remote method
23
+ */
24
+ export interface RemoteMethod {
25
+ (query: string): Promise<Item[]>;
26
+ }
@@ -0,0 +1,181 @@
1
+ import type { CSSProperties, RendererNode, RendererElement, SetupContext, VNode, PropType } from 'vue';
2
+ import { ValueType, Item, SourceFunction, Size, ItemType } from './types';
3
+ export declare function component(componentName: string, scope: string, ItemNode: any): {
4
+ inheritAttrs: boolean;
5
+ props: {
6
+ modelValue: {
7
+ type: PropType<string | (string | number | boolean | Item)[]>;
8
+ required: boolean;
9
+ };
10
+ source: {
11
+ type: PropType<string | Item[] | SourceFunction>;
12
+ default: any[];
13
+ };
14
+ params: {
15
+ type: ObjectConstructor;
16
+ };
17
+ valueType: {
18
+ type: PropType<ValueType>;
19
+ required: boolean;
20
+ default: string;
21
+ };
22
+ textKey: {
23
+ type: StringConstructor[];
24
+ required: boolean;
25
+ default: string;
26
+ };
27
+ valueKey: {
28
+ type: StringConstructor[];
29
+ required: boolean;
30
+ default: string;
31
+ };
32
+ size: {
33
+ type: PropType<Size>;
34
+ required: boolean;
35
+ };
36
+ textColor: {
37
+ type: PropType<string>;
38
+ required: boolean;
39
+ };
40
+ fill: {
41
+ type: PropType<string>;
42
+ required: boolean;
43
+ };
44
+ border: {
45
+ type: PropType<boolean>;
46
+ required: boolean;
47
+ };
48
+ min: {
49
+ type: PropType<string | number>;
50
+ required: boolean;
51
+ };
52
+ max: {
53
+ type: PropType<string | number>;
54
+ required: boolean;
55
+ };
56
+ itemType: {
57
+ type: PropType<ItemType>;
58
+ required: boolean;
59
+ default: string;
60
+ };
61
+ itemClass: {
62
+ type: PropType<string>;
63
+ required: boolean;
64
+ };
65
+ prop: {
66
+ type: StringConstructor;
67
+ required: boolean;
68
+ };
69
+ label: {
70
+ type: StringConstructor;
71
+ required: boolean;
72
+ };
73
+ labelPosition: {
74
+ type: StringConstructor;
75
+ required: boolean;
76
+ };
77
+ labelWidth: {
78
+ type: PropType<string | number>;
79
+ required: boolean;
80
+ };
81
+ isRequired: {
82
+ type: PropType<string | boolean>;
83
+ required: boolean;
84
+ default: boolean;
85
+ };
86
+ span: {
87
+ type: PropType<string | number>;
88
+ required: boolean;
89
+ default: number;
90
+ };
91
+ offset: {
92
+ type: PropType<string | number>;
93
+ default: number;
94
+ };
95
+ width: {
96
+ type: PropType<string | number>;
97
+ required: boolean;
98
+ };
99
+ errorTip: {
100
+ type: StringConstructor;
101
+ required: boolean;
102
+ };
103
+ errorIcon: {
104
+ type: ObjectConstructor;
105
+ required: boolean;
106
+ };
107
+ errorClass: {
108
+ type: StringConstructor;
109
+ required: boolean;
110
+ };
111
+ warnTip: {
112
+ type: StringConstructor;
113
+ required: boolean;
114
+ };
115
+ warnIcon: {
116
+ type: ObjectConstructor;
117
+ required: boolean;
118
+ };
119
+ warnClass: {
120
+ type: StringConstructor;
121
+ required: boolean;
122
+ };
123
+ infoTip: {
124
+ type: StringConstructor;
125
+ required: boolean;
126
+ };
127
+ infoIcon: {
128
+ type: ObjectConstructor;
129
+ required: boolean;
130
+ };
131
+ infoClass: {
132
+ type: StringConstructor;
133
+ required: boolean;
134
+ };
135
+ contentClass: {
136
+ type: StringConstructor;
137
+ required: boolean;
138
+ default: string;
139
+ };
140
+ contentStyle: {
141
+ type: PropType<CSSProperties>;
142
+ required: boolean;
143
+ default: {};
144
+ };
145
+ hintType: {
146
+ type: PropType<"number" | "text" | "money">;
147
+ required: boolean;
148
+ default: string;
149
+ };
150
+ hintText: {
151
+ type: (StringConstructor | NumberConstructor)[];
152
+ required: boolean;
153
+ };
154
+ hintVisible: {
155
+ type: (BooleanConstructor | StringConstructor)[];
156
+ required: boolean;
157
+ default: boolean;
158
+ };
159
+ hintProps: {
160
+ type: ObjectConstructor;
161
+ required: boolean;
162
+ default: {};
163
+ };
164
+ hasBorder: {
165
+ type: BooleanConstructor;
166
+ default: boolean;
167
+ };
168
+ disabled: {
169
+ type: PropType<string | boolean>;
170
+ required: boolean;
171
+ };
172
+ readonly: {
173
+ type: PropType<string | boolean>;
174
+ required: boolean;
175
+ };
176
+ };
177
+ emits: string[];
178
+ setup(props: Record<string, any>, context: SetupContext): () => VNode<RendererNode, RendererElement, {
179
+ [key: string]: any;
180
+ }>;
181
+ };
@@ -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,63 @@
1
+ import { ComponentPublicInstance } from 'vue';
2
+ import { Item, SourceFunction } from './types';
3
+ /**
4
+ * 获取item text
5
+ * @param props
6
+ * @param item
7
+ * @returns
8
+ */
9
+ export declare function getItemText(props: Record<string, any>, item: Item): string | number;
10
+ /**
11
+ * 获取item value
12
+ * @param props
13
+ * @param item
14
+ * @returns
15
+ */
16
+ export declare function getItemValue(props: Record<string, any>, item: Item): string | boolean | number;
17
+ /**
18
+ * 数据model
19
+ */
20
+ export declare class Model {
21
+ /**
22
+ * proxy
23
+ */
24
+ private proxy;
25
+ /**
26
+ * 构造函数
27
+ * @param proxy
28
+ */
29
+ constructor(proxy: ComponentPublicInstance);
30
+ /**
31
+ * 加载数据源
32
+ * @param src
33
+ * @returns
34
+ */
35
+ load(componentType: string, src: SourceFunction | Item[][] | Item[] | string, params?: any): Promise<Item[][] | Item[] | string[] | string[][]>;
36
+ }
37
+ /**
38
+ * 使用model
39
+ * @returns
40
+ */
41
+ export declare function useModel(): Model;
42
+ /**
43
+ * item是否相等
44
+ * @param props
45
+ * @param x
46
+ * @param y
47
+ * @returns
48
+ */
49
+ export declare function isEqualsItem(props: Record<string, any>, x: Item | null, y: Item | null): boolean;
50
+ /**
51
+ * value转换为item
52
+ * @param value
53
+ * @param valueType
54
+ * @param items
55
+ * @returns
56
+ */
57
+ export declare function valuesToItems(props: Record<string, any>, value: any, valueType: string, items: Item[]): Item[] | null;
58
+ /**
59
+ * string转换为item
60
+ * @param text
61
+ * @returns
62
+ */
63
+ export declare function stringToItem(text: string): Item;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Item类型
3
+ */
4
+ export interface Item {
5
+ text: string | number;
6
+ value: any;
7
+ disabled?: boolean;
8
+ [propName: string]: any;
9
+ }
10
+ /**
11
+ * 通用Promise函数接口
12
+ */
13
+ export interface SourceFunction {
14
+ (params?: any): Promise<Item[]>;
15
+ }
16
+ /**
17
+ * value type
18
+ */
19
+ export declare type ValueType = 'value' | 'text' | 'item';
20
+ /**
21
+ * remote method
22
+ */
23
+ export interface RemoteMethod {
24
+ (query: string): Promise<Item[]>;
25
+ }
26
+ /**
27
+ * Size
28
+ */
29
+ export declare type Size = 'large' | 'default' | 'small';
30
+ /**
31
+ * Item Type
32
+ */
33
+ export declare type ItemType = 'button' | 'checkbox';
@@ -0,0 +1,16 @@
1
+ import type { ComputedRef, PropType, CSSProperties } from 'vue';
2
+ import { Padding } from '../../utils/domain';
3
+ export declare function component(componentName: string, scope: string): {
4
+ props: {
5
+ padding: {
6
+ type: PropType<Padding>;
7
+ required: boolean;
8
+ };
9
+ };
10
+ setup(props: Record<string, any>): {
11
+ classes: ComputedRef<{
12
+ [x: string]: boolean;
13
+ }>;
14
+ styles: ComputedRef<CSSProperties>;
15
+ };
16
+ };
@@ -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;