@sirpho/components 1.0.0 → 1.0.1
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/components/Box/ComboBox.vue.d.ts +308 -0
- package/dist/components/Box/ModalBox.vue.d.ts +344 -0
- package/dist/components/PageContainer/index.vue.d.ts +2 -0
- package/dist/components/QueryFilterContainer/index.vue.d.ts +2 -0
- package/dist/components/index.d.ts +5 -1
- package/dist/index.es.js +2553 -401
- package/dist/index.umd.js +58 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import { VxeGridProps, VxeGridInstance } from 'vxe-table';
|
|
3
|
+
import type { InputProps } from '../../../node_modules/ant-design-vue';
|
|
4
|
+
type SelectTableRemoteConfig = {
|
|
5
|
+
url: string;
|
|
6
|
+
method: 'get' | 'post';
|
|
7
|
+
params?: object;
|
|
8
|
+
};
|
|
9
|
+
interface Props {
|
|
10
|
+
variant?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @description Vxe Grid的属性
|
|
13
|
+
* @link https://vxetable.cn/#/grid/api
|
|
14
|
+
*/
|
|
15
|
+
gridProps?: VxeGridProps;
|
|
16
|
+
/**
|
|
17
|
+
* @description Input属性
|
|
18
|
+
* @link https://www.antdv.com/components/input-cn#API
|
|
19
|
+
*/
|
|
20
|
+
inputProps?: InputProps;
|
|
21
|
+
/**
|
|
22
|
+
* @description Input Value
|
|
23
|
+
*/
|
|
24
|
+
value?: string | number | null | (string | number)[];
|
|
25
|
+
/**
|
|
26
|
+
* @description setValue & input show label
|
|
27
|
+
*/
|
|
28
|
+
option: {
|
|
29
|
+
label: string;
|
|
30
|
+
value: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @description 下拉表格数据来源
|
|
34
|
+
*/
|
|
35
|
+
remoteConfig?: SelectTableRemoteConfig;
|
|
36
|
+
/**
|
|
37
|
+
* @description 是否在组件的第一次加载时是否需要手动发起请求 // 适用requestTrigger==='onParamsChange'
|
|
38
|
+
* 或者通过修改params来发起请求
|
|
39
|
+
*/
|
|
40
|
+
manualRequest?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* @description 传入 request 的请求参数
|
|
43
|
+
* 当params参数发生变化时 会自动发起请求 )
|
|
44
|
+
*/
|
|
45
|
+
params?: Record<string, any>;
|
|
46
|
+
/**
|
|
47
|
+
* @description 获取数据源的时机
|
|
48
|
+
*/
|
|
49
|
+
requestTrigger?: 'onMount' | 'onFocus' | 'onParamsChange';
|
|
50
|
+
/**
|
|
51
|
+
* @description 请求结束后 是否自动填充列表第一项 //对 requestTrigger=onFocus不适用
|
|
52
|
+
*/
|
|
53
|
+
autoFill?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* @description 请求结束后 数据处理
|
|
56
|
+
*/
|
|
57
|
+
transformData?: (raw: unknown) => Record<string, unknown>[];
|
|
58
|
+
/**
|
|
59
|
+
* @description inputText 文字显示处理
|
|
60
|
+
*/
|
|
61
|
+
transformInputText?: (raw: object) => string | number | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* @description input输入框有值时是否允许删除
|
|
64
|
+
*/
|
|
65
|
+
allowClear?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* @description 多选传multiple 单选不传
|
|
68
|
+
*/
|
|
69
|
+
mode?: 'multiple' | 'tags';
|
|
70
|
+
/**
|
|
71
|
+
* @description params改变是否清空值 requestTrigger=onFocus, onParamsChange时使用
|
|
72
|
+
*/
|
|
73
|
+
paramsChangeClear?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* 基础数据
|
|
76
|
+
*/
|
|
77
|
+
data?: object[] | ComputedRef<any[]>;
|
|
78
|
+
/**
|
|
79
|
+
* @description 请求结束后 改变value 不适用onFocus
|
|
80
|
+
* @params autoFill: 填入list第一项
|
|
81
|
+
* @params clear: 清空
|
|
82
|
+
* @params noChange: 不做改变
|
|
83
|
+
* @params 默认值:action传入值,action不存在时props.autoFill为true时为'autoFill',为false时:'clear'
|
|
84
|
+
*/
|
|
85
|
+
action?: 'autoFill' | 'clear' | 'noChange' | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* 下拉宽度
|
|
88
|
+
*/
|
|
89
|
+
popWidth?: string;
|
|
90
|
+
/**
|
|
91
|
+
* 宽度
|
|
92
|
+
*/
|
|
93
|
+
width?: string;
|
|
94
|
+
/**
|
|
95
|
+
* 选择框的类
|
|
96
|
+
*/
|
|
97
|
+
selectClass?: string;
|
|
98
|
+
/**
|
|
99
|
+
* 弹出框的类
|
|
100
|
+
*/
|
|
101
|
+
popClass?: string;
|
|
102
|
+
/**
|
|
103
|
+
* 数据提取promise
|
|
104
|
+
*/
|
|
105
|
+
dataProvider?: (params: any) => Promise<any>;
|
|
106
|
+
/**
|
|
107
|
+
* 是否允许输入
|
|
108
|
+
*/
|
|
109
|
+
allowInput?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* 是否禁用
|
|
112
|
+
*/
|
|
113
|
+
disabled?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* 最多显示几个标签
|
|
116
|
+
* 默认1个
|
|
117
|
+
*/
|
|
118
|
+
maxTagCount?: number;
|
|
119
|
+
/**
|
|
120
|
+
* @description 筛选条件后数据小于 allowCheckAllNum 显示全选
|
|
121
|
+
*/
|
|
122
|
+
allowCheckAllNum?: number;
|
|
123
|
+
/**
|
|
124
|
+
* @description 多选最大可选择数
|
|
125
|
+
*/
|
|
126
|
+
maxSelectNum?: number;
|
|
127
|
+
}
|
|
128
|
+
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
129
|
+
value: undefined;
|
|
130
|
+
remoteConfig: undefined;
|
|
131
|
+
manualRequest: boolean;
|
|
132
|
+
action: undefined;
|
|
133
|
+
data: undefined;
|
|
134
|
+
option: () => any;
|
|
135
|
+
params: () => {};
|
|
136
|
+
inputProps: () => {};
|
|
137
|
+
gridProps: () => {};
|
|
138
|
+
requestTrigger: string;
|
|
139
|
+
mode: undefined;
|
|
140
|
+
autoFill: boolean;
|
|
141
|
+
allowClear: boolean;
|
|
142
|
+
transformData: (e: any) => any;
|
|
143
|
+
transformInputText: () => undefined;
|
|
144
|
+
paramsChangeClear: boolean;
|
|
145
|
+
popWidth: string;
|
|
146
|
+
allowInput: boolean;
|
|
147
|
+
maxTagCount: number;
|
|
148
|
+
allowCheckAllNum: number;
|
|
149
|
+
maxSelectNum: undefined;
|
|
150
|
+
}>, {
|
|
151
|
+
xTable: import("vue").Ref<VxeGridInstance<any>>;
|
|
152
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
153
|
+
change: (...args: any[]) => void;
|
|
154
|
+
input: (...args: any[]) => void;
|
|
155
|
+
"update:value": (...args: any[]) => void;
|
|
156
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
157
|
+
value: undefined;
|
|
158
|
+
remoteConfig: undefined;
|
|
159
|
+
manualRequest: boolean;
|
|
160
|
+
action: undefined;
|
|
161
|
+
data: undefined;
|
|
162
|
+
option: () => any;
|
|
163
|
+
params: () => {};
|
|
164
|
+
inputProps: () => {};
|
|
165
|
+
gridProps: () => {};
|
|
166
|
+
requestTrigger: string;
|
|
167
|
+
mode: undefined;
|
|
168
|
+
autoFill: boolean;
|
|
169
|
+
allowClear: boolean;
|
|
170
|
+
transformData: (e: any) => any;
|
|
171
|
+
transformInputText: () => undefined;
|
|
172
|
+
paramsChangeClear: boolean;
|
|
173
|
+
popWidth: string;
|
|
174
|
+
allowInput: boolean;
|
|
175
|
+
maxTagCount: number;
|
|
176
|
+
allowCheckAllNum: number;
|
|
177
|
+
maxSelectNum: undefined;
|
|
178
|
+
}>>> & {
|
|
179
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
180
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
181
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
182
|
+
}, {
|
|
183
|
+
data: object[] | ComputedRef<any[]>;
|
|
184
|
+
option: {
|
|
185
|
+
label: string;
|
|
186
|
+
value: string;
|
|
187
|
+
};
|
|
188
|
+
value: string | number | (string | number)[] | null;
|
|
189
|
+
mode: "multiple" | "tags";
|
|
190
|
+
allowClear: boolean;
|
|
191
|
+
maxTagCount: number;
|
|
192
|
+
autoFill: boolean;
|
|
193
|
+
transformInputText: (raw: object) => string | number | undefined;
|
|
194
|
+
transformData: (raw: unknown) => Record<string, unknown>[];
|
|
195
|
+
requestTrigger: "onFocus" | "onMount" | "onParamsChange";
|
|
196
|
+
manualRequest: boolean;
|
|
197
|
+
params: Record<string, any>;
|
|
198
|
+
paramsChangeClear: boolean;
|
|
199
|
+
gridProps: VxeGridProps<import("vxe-table").VxeTableDataRow>;
|
|
200
|
+
inputProps: Partial<import("vue").ExtractPropTypes<{
|
|
201
|
+
id: StringConstructor;
|
|
202
|
+
prefixCls: StringConstructor;
|
|
203
|
+
inputPrefixCls: StringConstructor; /**
|
|
204
|
+
* @description Vxe Grid的属性
|
|
205
|
+
* @link https://vxetable.cn/#/grid/api
|
|
206
|
+
*/
|
|
207
|
+
defaultValue: import('../../../node_modules/vue-types').VueTypeDef<string | number>;
|
|
208
|
+
value: {
|
|
209
|
+
type: import("vue").PropType<string | number>; /**
|
|
210
|
+
* @description Input属性
|
|
211
|
+
* @link https://www.antdv.com/components/input-cn#API
|
|
212
|
+
*/
|
|
213
|
+
default: any;
|
|
214
|
+
};
|
|
215
|
+
placeholder: {
|
|
216
|
+
type: import("vue").PropType<string | number>;
|
|
217
|
+
};
|
|
218
|
+
autocomplete: StringConstructor; /**
|
|
219
|
+
* @description Input Value
|
|
220
|
+
*/
|
|
221
|
+
type: {
|
|
222
|
+
type: import("vue").PropType<string>;
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
225
|
+
name: StringConstructor;
|
|
226
|
+
size: {
|
|
227
|
+
type: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/button').ButtonSize>;
|
|
228
|
+
};
|
|
229
|
+
disabled: {
|
|
230
|
+
type: BooleanConstructor;
|
|
231
|
+
/**
|
|
232
|
+
* @description 传入 request 的请求参数
|
|
233
|
+
* 当params参数发生变化时 会自动发起请求 )
|
|
234
|
+
*/
|
|
235
|
+
default: any;
|
|
236
|
+
};
|
|
237
|
+
readonly: {
|
|
238
|
+
type: BooleanConstructor;
|
|
239
|
+
default: any;
|
|
240
|
+
};
|
|
241
|
+
addonBefore: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
242
|
+
addonAfter: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
243
|
+
prefix: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
244
|
+
suffix: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
245
|
+
autofocus: {
|
|
246
|
+
type: BooleanConstructor;
|
|
247
|
+
default: any;
|
|
248
|
+
};
|
|
249
|
+
allowClear: {
|
|
250
|
+
/**
|
|
251
|
+
* @description inputText 文字显示处理
|
|
252
|
+
*/
|
|
253
|
+
type: BooleanConstructor;
|
|
254
|
+
default: any;
|
|
255
|
+
};
|
|
256
|
+
lazy: {
|
|
257
|
+
type: BooleanConstructor;
|
|
258
|
+
default: boolean;
|
|
259
|
+
};
|
|
260
|
+
maxlength: NumberConstructor;
|
|
261
|
+
loading: {
|
|
262
|
+
type: BooleanConstructor;
|
|
263
|
+
default: any;
|
|
264
|
+
};
|
|
265
|
+
bordered: {
|
|
266
|
+
type: BooleanConstructor;
|
|
267
|
+
default: any;
|
|
268
|
+
};
|
|
269
|
+
showCount: {
|
|
270
|
+
type: import("vue").PropType<boolean | import('../../../node_modules/ant-design-vue/lib/input/inputProps').ShowCountProps>;
|
|
271
|
+
};
|
|
272
|
+
htmlSize: NumberConstructor;
|
|
273
|
+
onPressEnter: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
274
|
+
onKeydown: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
275
|
+
onKeyup: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
276
|
+
onFocus: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').FocusEventHandler>;
|
|
277
|
+
onBlur: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').FocusEventHandler>;
|
|
278
|
+
onChange: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').ChangeEventHandler>;
|
|
279
|
+
onInput: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').ChangeEventHandler>;
|
|
280
|
+
'onUpdate:value': import("vue").PropType<(val: string) => void>;
|
|
281
|
+
valueModifiers: ObjectConstructor;
|
|
282
|
+
hidden: BooleanConstructor;
|
|
283
|
+
}>>;
|
|
284
|
+
remoteConfig: SelectTableRemoteConfig;
|
|
285
|
+
action: "autoFill" | "clear" | "noChange";
|
|
286
|
+
popWidth: string;
|
|
287
|
+
allowInput: boolean;
|
|
288
|
+
allowCheckAllNum: number;
|
|
289
|
+
maxSelectNum: number;
|
|
290
|
+
}>;
|
|
291
|
+
export default _default;
|
|
292
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
293
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
294
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
295
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
296
|
+
} : {
|
|
297
|
+
type: import('vue').PropType<T[K]>;
|
|
298
|
+
required: true;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
type __VLS_WithDefaults<P, D> = {
|
|
302
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
303
|
+
default: D[K];
|
|
304
|
+
}> : P[K];
|
|
305
|
+
};
|
|
306
|
+
type __VLS_Prettify<T> = {
|
|
307
|
+
[K in keyof T]: T[K];
|
|
308
|
+
} & {};
|
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import { VxeGridProps } from 'vxe-table';
|
|
2
|
+
import type { AutoCompleteProps, InputProps, ButtonProps } from '../../../node_modules/ant-design-vue';
|
|
3
|
+
interface Props {
|
|
4
|
+
/**
|
|
5
|
+
* @description Vxe Grid的属性
|
|
6
|
+
* @link https://vxetable.cn/#/grid/api
|
|
7
|
+
*/
|
|
8
|
+
gridProps?: VxeGridProps;
|
|
9
|
+
/**
|
|
10
|
+
* @description Input属性 ant-design-vue
|
|
11
|
+
* @link https://www.antdv.com/components/input-cn#API
|
|
12
|
+
*/
|
|
13
|
+
inputProps?: InputProps;
|
|
14
|
+
/**
|
|
15
|
+
* @description AutoComplete属性 ant-design-vue
|
|
16
|
+
*/
|
|
17
|
+
autoCompleteProps?: AutoCompleteProps;
|
|
18
|
+
/**
|
|
19
|
+
* 按钮的属性 ant-design-vue
|
|
20
|
+
*/
|
|
21
|
+
buttonProps?: ButtonProps;
|
|
22
|
+
/**
|
|
23
|
+
* @description Input Value
|
|
24
|
+
*/
|
|
25
|
+
value?: string | number | null | (string | number)[];
|
|
26
|
+
/**
|
|
27
|
+
* @description setValue & input show label
|
|
28
|
+
*/
|
|
29
|
+
option: {
|
|
30
|
+
label: string;
|
|
31
|
+
value: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @description Select Table各种场景变化
|
|
35
|
+
* 内置对的场景请参见 ./consts.ts
|
|
36
|
+
*/
|
|
37
|
+
variant?: string;
|
|
38
|
+
/**
|
|
39
|
+
* @description 下拉表格数据来源
|
|
40
|
+
*/
|
|
41
|
+
remoteConfig?: object;
|
|
42
|
+
/**
|
|
43
|
+
* @description 是否在组件的第一次加载时是否需要手动发起请求
|
|
44
|
+
* 或者通过修改params来发起请求
|
|
45
|
+
*/
|
|
46
|
+
manualRequest?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* @description 传入 request 的请求参数
|
|
49
|
+
* 当params参数发生变化时 会自动发起请求 )
|
|
50
|
+
*/
|
|
51
|
+
params?: Record<string, any>;
|
|
52
|
+
/**
|
|
53
|
+
* @description 请求结束后 数据处理
|
|
54
|
+
* 评估阶段,不推荐使用
|
|
55
|
+
*/
|
|
56
|
+
transformData?: (raw: unknown) => Record<string, unknown>[];
|
|
57
|
+
/**
|
|
58
|
+
* @description inputText 文字显示处理
|
|
59
|
+
* 评估阶段,不推荐使用
|
|
60
|
+
*/
|
|
61
|
+
transformInputText?: (raw: object) => string | number | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* @description input输入框有值时是否允许删除
|
|
64
|
+
*/
|
|
65
|
+
allowClear?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* @description 多选传multiple 单选不传
|
|
68
|
+
*/
|
|
69
|
+
mode?: any;
|
|
70
|
+
/**
|
|
71
|
+
* @description params改变是否清空值 requestTrigger=onFocus, onParamsChange时使用
|
|
72
|
+
*/
|
|
73
|
+
paramsChangeClear?: boolean;
|
|
74
|
+
/**
|
|
75
|
+
* 基础数据
|
|
76
|
+
*/
|
|
77
|
+
data?: object[];
|
|
78
|
+
/**
|
|
79
|
+
* 弹框的title
|
|
80
|
+
*/
|
|
81
|
+
title?: string;
|
|
82
|
+
/**
|
|
83
|
+
* 是否使用自定义弹框
|
|
84
|
+
*/
|
|
85
|
+
useModal?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* 是否禁用
|
|
88
|
+
*/
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* 模态框的属性vxe-table
|
|
92
|
+
*/
|
|
93
|
+
modalProps?: any;
|
|
94
|
+
/**
|
|
95
|
+
* 选择框的类
|
|
96
|
+
*/
|
|
97
|
+
selectClass?: string;
|
|
98
|
+
/**
|
|
99
|
+
* 弹出框的类
|
|
100
|
+
*/
|
|
101
|
+
popClass?: string;
|
|
102
|
+
/**
|
|
103
|
+
* 是否允许输入
|
|
104
|
+
*/
|
|
105
|
+
allowInput?: boolean;
|
|
106
|
+
/**
|
|
107
|
+
* 数据提取promise
|
|
108
|
+
*/
|
|
109
|
+
dataProvider?: (params: any) => Promise<any>;
|
|
110
|
+
/**
|
|
111
|
+
* 弹框打开之前的回调
|
|
112
|
+
*/
|
|
113
|
+
beforeModalOpen?: () => boolean;
|
|
114
|
+
/**
|
|
115
|
+
* autoComplete name
|
|
116
|
+
*/
|
|
117
|
+
name?: string;
|
|
118
|
+
}
|
|
119
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
120
|
+
manualRequest: boolean;
|
|
121
|
+
inputProps: () => any;
|
|
122
|
+
gridProps: () => any;
|
|
123
|
+
buttonProps: () => any;
|
|
124
|
+
mode: string;
|
|
125
|
+
allowClear: boolean;
|
|
126
|
+
transformData: (e: any) => any;
|
|
127
|
+
transformInputText: () => undefined;
|
|
128
|
+
paramsChangeClear: boolean;
|
|
129
|
+
useModal: boolean;
|
|
130
|
+
disabled: boolean;
|
|
131
|
+
modalProps: () => {
|
|
132
|
+
width: string;
|
|
133
|
+
};
|
|
134
|
+
allowInput: boolean;
|
|
135
|
+
name: string;
|
|
136
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
137
|
+
blur: (...args: any[]) => void;
|
|
138
|
+
change: (...args: any[]) => void;
|
|
139
|
+
input: (...args: any[]) => void;
|
|
140
|
+
"update:value": (...args: any[]) => void;
|
|
141
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
142
|
+
manualRequest: boolean;
|
|
143
|
+
inputProps: () => any;
|
|
144
|
+
gridProps: () => any;
|
|
145
|
+
buttonProps: () => any;
|
|
146
|
+
mode: string;
|
|
147
|
+
allowClear: boolean;
|
|
148
|
+
transformData: (e: any) => any;
|
|
149
|
+
transformInputText: () => undefined;
|
|
150
|
+
paramsChangeClear: boolean;
|
|
151
|
+
useModal: boolean;
|
|
152
|
+
disabled: boolean;
|
|
153
|
+
modalProps: () => {
|
|
154
|
+
width: string;
|
|
155
|
+
};
|
|
156
|
+
allowInput: boolean;
|
|
157
|
+
name: string;
|
|
158
|
+
}>>> & {
|
|
159
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
160
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
161
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
162
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
163
|
+
}, {
|
|
164
|
+
name: string;
|
|
165
|
+
mode: any;
|
|
166
|
+
disabled: boolean;
|
|
167
|
+
allowClear: boolean;
|
|
168
|
+
transformInputText: (raw: object) => string | number | undefined;
|
|
169
|
+
transformData: (raw: unknown) => Record<string, unknown>[];
|
|
170
|
+
manualRequest: boolean;
|
|
171
|
+
paramsChangeClear: boolean;
|
|
172
|
+
gridProps: VxeGridProps<import("vxe-table").VxeTableDataRow>;
|
|
173
|
+
inputProps: Partial<import("vue").ExtractPropTypes<{
|
|
174
|
+
id: StringConstructor;
|
|
175
|
+
prefixCls: StringConstructor;
|
|
176
|
+
inputPrefixCls: StringConstructor;
|
|
177
|
+
defaultValue: import('../../../node_modules/vue-types').VueTypeDef<string | number>;
|
|
178
|
+
value: {
|
|
179
|
+
type: import("vue").PropType<string | number>;
|
|
180
|
+
default: any;
|
|
181
|
+
};
|
|
182
|
+
placeholder: {
|
|
183
|
+
type: import("vue").PropType<string | number>;
|
|
184
|
+
};
|
|
185
|
+
autocomplete: StringConstructor;
|
|
186
|
+
type: {
|
|
187
|
+
type: import("vue").PropType<string>;
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
|
+
name: StringConstructor;
|
|
191
|
+
size: {
|
|
192
|
+
type: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/button').ButtonSize>;
|
|
193
|
+
};
|
|
194
|
+
disabled: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: any;
|
|
197
|
+
};
|
|
198
|
+
readonly: {
|
|
199
|
+
type: BooleanConstructor;
|
|
200
|
+
default: any;
|
|
201
|
+
}; /**
|
|
202
|
+
* @description 是否在组件的第一次加载时是否需要手动发起请求
|
|
203
|
+
* 或者通过修改params来发起请求
|
|
204
|
+
*/
|
|
205
|
+
addonBefore: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
206
|
+
addonAfter: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
207
|
+
prefix: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
208
|
+
suffix: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
209
|
+
autofocus: {
|
|
210
|
+
type: BooleanConstructor;
|
|
211
|
+
default: any;
|
|
212
|
+
};
|
|
213
|
+
allowClear: {
|
|
214
|
+
type: BooleanConstructor;
|
|
215
|
+
default: any;
|
|
216
|
+
};
|
|
217
|
+
lazy: {
|
|
218
|
+
type: BooleanConstructor;
|
|
219
|
+
default: boolean;
|
|
220
|
+
};
|
|
221
|
+
maxlength: NumberConstructor;
|
|
222
|
+
loading: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: any; /**
|
|
225
|
+
* @description 多选传multiple 单选不传
|
|
226
|
+
*/
|
|
227
|
+
};
|
|
228
|
+
bordered: {
|
|
229
|
+
type: BooleanConstructor;
|
|
230
|
+
default: any;
|
|
231
|
+
};
|
|
232
|
+
showCount: {
|
|
233
|
+
type: import("vue").PropType<boolean | import('../../../node_modules/ant-design-vue/lib/input/inputProps').ShowCountProps>;
|
|
234
|
+
};
|
|
235
|
+
htmlSize: NumberConstructor; /**
|
|
236
|
+
* 基础数据
|
|
237
|
+
*/
|
|
238
|
+
onPressEnter: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>; /**
|
|
239
|
+
* 弹框的title
|
|
240
|
+
*/
|
|
241
|
+
onKeydown: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
242
|
+
/**
|
|
243
|
+
* 是否使用自定义弹框
|
|
244
|
+
*/
|
|
245
|
+
onKeyup: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
246
|
+
onFocus: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').FocusEventHandler>;
|
|
247
|
+
onBlur: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').FocusEventHandler>;
|
|
248
|
+
onChange: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').ChangeEventHandler>; /**
|
|
249
|
+
* 选择框的类
|
|
250
|
+
*/
|
|
251
|
+
onInput: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').ChangeEventHandler>;
|
|
252
|
+
'onUpdate:value': import("vue").PropType<(val: string) => void>;
|
|
253
|
+
valueModifiers: ObjectConstructor;
|
|
254
|
+
hidden: BooleanConstructor;
|
|
255
|
+
}>>;
|
|
256
|
+
allowInput: boolean;
|
|
257
|
+
buttonProps: Partial<import("vue").ExtractPropTypes<{
|
|
258
|
+
prefixCls: StringConstructor;
|
|
259
|
+
type: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/button').ButtonType>;
|
|
260
|
+
htmlType: {
|
|
261
|
+
type: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/button/buttonTypes').ButtonHTMLType>;
|
|
262
|
+
default: string;
|
|
263
|
+
};
|
|
264
|
+
shape: {
|
|
265
|
+
type: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/button').ButtonShape>;
|
|
266
|
+
};
|
|
267
|
+
size: {
|
|
268
|
+
type: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/button').ButtonSize>;
|
|
269
|
+
};
|
|
270
|
+
loading: {
|
|
271
|
+
type: import("vue").PropType<boolean | {
|
|
272
|
+
delay?: number | undefined;
|
|
273
|
+
}>;
|
|
274
|
+
default: () => boolean | {
|
|
275
|
+
delay?: number | undefined;
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
disabled: {
|
|
279
|
+
type: BooleanConstructor; /**
|
|
280
|
+
* @description setValue & input show label
|
|
281
|
+
*/
|
|
282
|
+
default: any;
|
|
283
|
+
};
|
|
284
|
+
ghost: {
|
|
285
|
+
type: BooleanConstructor;
|
|
286
|
+
default: any;
|
|
287
|
+
};
|
|
288
|
+
block: {
|
|
289
|
+
type: BooleanConstructor;
|
|
290
|
+
default: any;
|
|
291
|
+
};
|
|
292
|
+
danger: {
|
|
293
|
+
type: BooleanConstructor;
|
|
294
|
+
default: any;
|
|
295
|
+
};
|
|
296
|
+
icon: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
297
|
+
href: StringConstructor;
|
|
298
|
+
target: StringConstructor;
|
|
299
|
+
title: StringConstructor; /**
|
|
300
|
+
* @description 传入 request 的请求参数
|
|
301
|
+
* 当params参数发生变化时 会自动发起请求 )
|
|
302
|
+
*/
|
|
303
|
+
onClick: {
|
|
304
|
+
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
305
|
+
};
|
|
306
|
+
onMousedown: {
|
|
307
|
+
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
308
|
+
};
|
|
309
|
+
}>>;
|
|
310
|
+
useModal: boolean;
|
|
311
|
+
modalProps: any;
|
|
312
|
+
}>, {
|
|
313
|
+
modal?(_: {
|
|
314
|
+
setValue: (data: any) => void;
|
|
315
|
+
modalVisible: boolean;
|
|
316
|
+
params: Record<string, any> | undefined;
|
|
317
|
+
}): any;
|
|
318
|
+
toolbar_buttons?(_: {
|
|
319
|
+
loadData: (params: any) => Promise<void>;
|
|
320
|
+
}): any;
|
|
321
|
+
}>;
|
|
322
|
+
export default _default;
|
|
323
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
324
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
325
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
326
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
327
|
+
} : {
|
|
328
|
+
type: import('vue').PropType<T[K]>;
|
|
329
|
+
required: true;
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
type __VLS_WithDefaults<P, D> = {
|
|
333
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
334
|
+
default: D[K];
|
|
335
|
+
}> : P[K];
|
|
336
|
+
};
|
|
337
|
+
type __VLS_Prettify<T> = {
|
|
338
|
+
[K in keyof T]: T[K];
|
|
339
|
+
} & {};
|
|
340
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
341
|
+
new (): {
|
|
342
|
+
$slots: S;
|
|
343
|
+
};
|
|
344
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import VxeContainer from './VxeContainer/index.vue';
|
|
2
2
|
import FilterExtend from './FilterExtend/index.vue';
|
|
3
3
|
import StatusPop from './StatusPop/index.vue';
|
|
4
|
-
|
|
4
|
+
import ComboBox from './Box/ComboBox.vue';
|
|
5
|
+
import ModalBox from './Box/ModalBox.vue';
|
|
6
|
+
import PageContainer from './PageContainer/index.vue';
|
|
7
|
+
import QueryFilterContainer from './QueryFilterContainer/index.vue';
|
|
8
|
+
export { PageContainer, QueryFilterContainer, VxeContainer, FilterExtend, StatusPop, ComboBox, ModalBox, };
|