@skyfox2000/webui 1.6.7 → 1.6.8

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.
@@ -0,0 +1,15 @@
1
+ import type { ToolPanelProps } from './types';
2
+ declare const __VLS_export: import("vue").DefineComponent<ToolPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToolPanelProps> & Readonly<{}>, {
3
+ showSearch: boolean;
4
+ width: {
5
+ expanded: string;
6
+ collapsed: string;
7
+ };
8
+ mode: import("@/components/").DisplayMode;
9
+ collapsed: import("@/components/").PanelCollapsed;
10
+ allowGroupCollapse: boolean;
11
+ rowCount: number;
12
+ showModeToggle: boolean;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,111 @@
1
+ import { PropType } from 'vue';
2
+ import { OptionItemProps } from '@/index';
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ value: {
5
+ type: PropType<string | number | string[] | null>;
6
+ default: undefined;
7
+ };
8
+ autoClean: {
9
+ type: PropType<boolean>;
10
+ default: boolean;
11
+ };
12
+ autoload: {
13
+ type: PropType<boolean>;
14
+ required: boolean;
15
+ default: undefined;
16
+ };
17
+ url: {
18
+ type: PropType<import("@skyfox2000/fapi").IUrlInfo>;
19
+ required: boolean;
20
+ };
21
+ data: {
22
+ type: PropType<OptionItemProps[]>;
23
+ required: boolean;
24
+ };
25
+ labels: {
26
+ type: PropType<string | number | (string | number)[]>;
27
+ required: boolean;
28
+ };
29
+ formData: {
30
+ type: PropType<Record<string, any>>;
31
+ required: boolean;
32
+ };
33
+ outFields: {
34
+ type: PropType<Record<string, string>>;
35
+ required: boolean;
36
+ };
37
+ reloadEvent: {
38
+ type: PropType<string>;
39
+ required: boolean;
40
+ };
41
+ changeEvent: {
42
+ type: PropType<[string | string[], string]>;
43
+ required: boolean;
44
+ };
45
+ optionCtrl: {
46
+ type: PropType<import("../../../typings/option").OptionControl>;
47
+ required: boolean;
48
+ };
49
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
50
+ "update:value": (...args: any[]) => void;
51
+ select: (...args: any[]) => void;
52
+ change: (...args: any[]) => void;
53
+ "update:labels": (...args: any[]) => void;
54
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
55
+ value: {
56
+ type: PropType<string | number | string[] | null>;
57
+ default: undefined;
58
+ };
59
+ autoClean: {
60
+ type: PropType<boolean>;
61
+ default: boolean;
62
+ };
63
+ autoload: {
64
+ type: PropType<boolean>;
65
+ required: boolean;
66
+ default: undefined;
67
+ };
68
+ url: {
69
+ type: PropType<import("@skyfox2000/fapi").IUrlInfo>;
70
+ required: boolean;
71
+ };
72
+ data: {
73
+ type: PropType<OptionItemProps[]>;
74
+ required: boolean;
75
+ };
76
+ labels: {
77
+ type: PropType<string | number | (string | number)[]>;
78
+ required: boolean;
79
+ };
80
+ formData: {
81
+ type: PropType<Record<string, any>>;
82
+ required: boolean;
83
+ };
84
+ outFields: {
85
+ type: PropType<Record<string, string>>;
86
+ required: boolean;
87
+ };
88
+ reloadEvent: {
89
+ type: PropType<string>;
90
+ required: boolean;
91
+ };
92
+ changeEvent: {
93
+ type: PropType<[string | string[], string]>;
94
+ required: boolean;
95
+ };
96
+ optionCtrl: {
97
+ type: PropType<import("../../../typings/option").OptionControl>;
98
+ required: boolean;
99
+ };
100
+ }>> & Readonly<{
101
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
102
+ onSelect?: ((...args: any[]) => any) | undefined;
103
+ onChange?: ((...args: any[]) => any) | undefined;
104
+ "onUpdate:labels"?: ((...args: any[]) => any) | undefined;
105
+ }>, {
106
+ value: string | number | string[] | null;
107
+ autoClean: boolean;
108
+ autoload: boolean;
109
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
110
+ declare const _default: typeof __VLS_export;
111
+ export default _default;
@@ -0,0 +1,156 @@
1
+ import { ref, onUnmounted, useAttrs, watch, shallowRef, onActivated } from 'vue';
2
+ import { AutoComplete, Input } from 'ant-design-vue';
3
+ import { $t } from '@/locales/index';
4
+ import { useInputFactory, OptionCommProps, onOptionChanged, loadOption, unloadOption, getSelectedLabels, formValidate, outFormDataFields, } from '@/index';
5
+ import { useOptionFactory } from '@/utils/page';
6
+ import { combineParams } from '@skyfox2000/microbase';
7
+ const props = defineProps({
8
+ ...OptionCommProps,
9
+ value: {
10
+ type: [String, Number, Array, null],
11
+ default: undefined,
12
+ },
13
+ autoClean: {
14
+ type: Boolean,
15
+ default: true,
16
+ },
17
+ });
18
+ defineOptions({
19
+ inheritAttrs: false,
20
+ });
21
+ const attrs = useAttrs();
22
+ const inputFactory = useInputFactory();
23
+ const defaultCtrl = useOptionFactory(props.url, props);
24
+ const optionCtrl = props.optionCtrl ?? defaultCtrl.optionCtrl;
25
+ optionCtrl.inputFactory = shallowRef(inputFactory);
26
+ optionCtrl.fieldMap = {
27
+ ...{
28
+ label: 'Name',
29
+ value: 'Id',
30
+ },
31
+ ...optionCtrl?.fieldMap,
32
+ };
33
+ const innerValue = ref(undefined);
34
+ watch(() => props.value, () => {
35
+ innerValue.value = props.value;
36
+ }, { immediate: true });
37
+ watch(() => innerValue.value, (newVal) => {
38
+ if (props.autoClean && props.formData && props.outFields && newVal !== props.value) {
39
+ outFormDataFields(props.formData, props.outFields, null);
40
+ }
41
+ });
42
+ const { editorCtrl, errInfo, labelText } = inputFactory;
43
+ const emit = defineEmits(['update:value', 'select', 'change', 'update:labels']);
44
+ inputFactory.inputEmit = emit;
45
+ const selectOptions = ref(optionCtrl?.options.value || []);
46
+ if (optionCtrl) {
47
+ watch(() => optionCtrl.options.value, (newOptions) => {
48
+ selectOptions.value = newOptions || [];
49
+ }, { immediate: true, deep: true });
50
+ }
51
+ const onSearch = (value) => {
52
+ selectOptions.value = [];
53
+ if (value === '')
54
+ return;
55
+ let search_value = value.trim();
56
+ let query = {
57
+ Query: {
58
+ SearchField: '%' + search_value + '%',
59
+ },
60
+ };
61
+ optionCtrl.params = combineParams(optionCtrl.params, query);
62
+ if (optionCtrl)
63
+ loadOption(true, optionCtrl, props);
64
+ };
65
+ const onSelected = (value) => {
66
+ const selectedOptions = onOptionChanged(optionCtrl, props, value);
67
+ emit('update:value', value);
68
+ emit('select', value);
69
+ const labels = getSelectedLabels(selectedOptions);
70
+ emit('update:labels', labels);
71
+ if (errInfo?.value.errClass && editorCtrl) {
72
+ formValidate(editorCtrl);
73
+ }
74
+ };
75
+ onActivated(() => {
76
+ if (optionCtrl && optionCtrl.autoload)
77
+ optionCtrl.reload.value = true;
78
+ });
79
+ onUnmounted(() => {
80
+ if (optionCtrl)
81
+ unloadOption(optionCtrl, props);
82
+ });
83
+ const __VLS_ctx = {
84
+ ...{},
85
+ ...{},
86
+ ...{},
87
+ ...{},
88
+ ...{},
89
+ };
90
+ let __VLS_components;
91
+ let __VLS_intrinsics;
92
+ let __VLS_directives;
93
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({});
94
+ let __VLS_0;
95
+ AutoComplete;
96
+ const __VLS_1 = __VLS_asFunctionalComponent1(__VLS_0, new __VLS_0({
97
+ ...{ 'onSearch': {} },
98
+ ...{ 'onSelect': {} },
99
+ value: (__VLS_ctx.innerValue),
100
+ ...{ class: (['w-full', __VLS_ctx.errInfo?.errClass]) },
101
+ options: (__VLS_ctx.selectOptions),
102
+ ...(__VLS_ctx.attrs),
103
+ allowClear: (false),
104
+ }));
105
+ const __VLS_2 = __VLS_1({
106
+ ...{ 'onSearch': {} },
107
+ ...{ 'onSelect': {} },
108
+ value: (__VLS_ctx.innerValue),
109
+ ...{ class: (['w-full', __VLS_ctx.errInfo?.errClass]) },
110
+ options: (__VLS_ctx.selectOptions),
111
+ ...(__VLS_ctx.attrs),
112
+ allowClear: (false),
113
+ }, ...__VLS_functionalComponentArgsRest(__VLS_1));
114
+ let __VLS_5;
115
+ const __VLS_6 = ({ search: {} },
116
+ { onSearch: (__VLS_ctx.onSearch) });
117
+ const __VLS_7 = ({ select: {} },
118
+ { onSelect: (__VLS_ctx.onSelected) });
119
+ ;
120
+ const { default: __VLS_8 } = __VLS_3.slots;
121
+ let __VLS_9;
122
+ Input;
123
+ const __VLS_10 = __VLS_asFunctionalComponent1(__VLS_9, new __VLS_9({
124
+ allowClear: true,
125
+ placeholder: (__VLS_ctx.$t('webui.components.form.autoComplete.pleaseInputAndSelect', [__VLS_ctx.labelText])),
126
+ }));
127
+ const __VLS_11 = __VLS_10({
128
+ allowClear: true,
129
+ placeholder: (__VLS_ctx.$t('webui.components.form.autoComplete.pleaseInputAndSelect', [__VLS_ctx.labelText])),
130
+ }, ...__VLS_functionalComponentArgsRest(__VLS_10));
131
+ {
132
+ const { option: __VLS_14 } = __VLS_3.slots;
133
+ const [{ label }] = __VLS_vSlot(__VLS_14);
134
+ (label);
135
+ [innerValue, errInfo, selectOptions, attrs, onSearch, onSelected, $t, labelText,];
136
+ }
137
+ [];
138
+ var __VLS_3;
139
+ var __VLS_4;
140
+ [];
141
+ const __VLS_export = (await import('vue')).defineComponent({
142
+ emits: {},
143
+ props: {
144
+ ...OptionCommProps,
145
+ value: {
146
+ type: [String, Number, Array, null],
147
+ default: undefined,
148
+ },
149
+ autoClean: {
150
+ type: Boolean,
151
+ default: true,
152
+ },
153
+ },
154
+ });
155
+ export default {};
156
+ //# sourceMappingURL=index.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.js","sourceRoot":"","sources":["../../../../../src/components/form/autoComplete/index.vue"],"names":[],"mappings":"AAAA,OAuKO,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAY,WAAW,EAAE,MAAM,KAAK,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,gBAA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KAAK,EAAE;YACJ,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,CAAgD;YAClF,OAAO,EAAE,SAAS;SACpB;QAMD,SAAS,EAAE;YACR,IAAI,EAAE,OAA4B;YAClC,OAAO,EAAE,IAAI;SACf;KACH;CACA,CAAC,CAAC;AACH,eAAe,EAAyB,CAAC"}
@@ -0,0 +1,91 @@
1
+ import { OptionItemProps } from '@/index';
2
+ import { IUrlInfo } from '@skyfox2000/fapi';
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ autoload: {
5
+ type: import("vue").PropType<boolean>;
6
+ required: boolean;
7
+ default: undefined;
8
+ };
9
+ url: {
10
+ type: import("vue").PropType<IUrlInfo>;
11
+ required: boolean;
12
+ };
13
+ data: {
14
+ type: import("vue").PropType<OptionItemProps[]>;
15
+ required: boolean;
16
+ };
17
+ labels: {
18
+ type: import("vue").PropType<string | number | (string | number)[]>;
19
+ required: boolean;
20
+ };
21
+ formData: {
22
+ type: import("vue").PropType<Record<string, any>>;
23
+ required: boolean;
24
+ };
25
+ outFields: {
26
+ type: import("vue").PropType<Record<string, string>>;
27
+ required: boolean;
28
+ };
29
+ reloadEvent: {
30
+ type: import("vue").PropType<string>;
31
+ required: boolean;
32
+ };
33
+ changeEvent: {
34
+ type: import("vue").PropType<[string | string[], string]>;
35
+ required: boolean;
36
+ };
37
+ optionCtrl: {
38
+ type: import("vue").PropType<import("../../../typings/option").OptionControl>;
39
+ required: boolean;
40
+ };
41
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
42
+ "update:value": (...args: any[]) => void;
43
+ change: (...args: any[]) => void;
44
+ "update:labels": (...args: any[]) => void;
45
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
46
+ autoload: {
47
+ type: import("vue").PropType<boolean>;
48
+ required: boolean;
49
+ default: undefined;
50
+ };
51
+ url: {
52
+ type: import("vue").PropType<IUrlInfo>;
53
+ required: boolean;
54
+ };
55
+ data: {
56
+ type: import("vue").PropType<OptionItemProps[]>;
57
+ required: boolean;
58
+ };
59
+ labels: {
60
+ type: import("vue").PropType<string | number | (string | number)[]>;
61
+ required: boolean;
62
+ };
63
+ formData: {
64
+ type: import("vue").PropType<Record<string, any>>;
65
+ required: boolean;
66
+ };
67
+ outFields: {
68
+ type: import("vue").PropType<Record<string, string>>;
69
+ required: boolean;
70
+ };
71
+ reloadEvent: {
72
+ type: import("vue").PropType<string>;
73
+ required: boolean;
74
+ };
75
+ changeEvent: {
76
+ type: import("vue").PropType<[string | string[], string]>;
77
+ required: boolean;
78
+ };
79
+ optionCtrl: {
80
+ type: import("vue").PropType<import("../../../typings/option").OptionControl>;
81
+ required: boolean;
82
+ };
83
+ }>> & Readonly<{
84
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
85
+ onChange?: ((...args: any[]) => any) | undefined;
86
+ "onUpdate:labels"?: ((...args: any[]) => any) | undefined;
87
+ }>, {
88
+ autoload: boolean;
89
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
90
+ declare const _default: typeof __VLS_export;
91
+ export default _default;
@@ -0,0 +1,29 @@
1
+ type __VLS_Props = {
2
+ value?: any;
3
+ undefValue?: boolean;
4
+ };
5
+ declare var __VLS_12: {}, __VLS_15: {};
6
+ type __VLS_Slots = {} & {
7
+ addonBefore?: (props: typeof __VLS_12) => any;
8
+ } & {
9
+ addonAfter?: (props: typeof __VLS_15) => any;
10
+ };
11
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ "update:value": (...args: any[]) => void;
13
+ change: (...args: any[]) => void;
14
+ blur: (...args: any[]) => void;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
17
+ onChange?: ((...args: any[]) => any) | undefined;
18
+ onBlur?: ((...args: any[]) => any) | undefined;
19
+ }>, {
20
+ undefValue: boolean;
21
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
+ declare const _default: typeof __VLS_export;
24
+ export default _default;
25
+ type __VLS_WithSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,115 @@
1
+ import { OptionItemProps } from '@/index';
2
+ import { IUrlInfo } from '@skyfox2000/fapi';
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ value: {
5
+ type: (ArrayConstructor | StringConstructor | NumberConstructor | null)[];
6
+ default: undefined;
7
+ };
8
+ nodata: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
12
+ wrap: {
13
+ type: NumberConstructor;
14
+ };
15
+ autoload: {
16
+ type: import("vue").PropType<boolean>;
17
+ required: boolean;
18
+ default: undefined;
19
+ };
20
+ url: {
21
+ type: import("vue").PropType<IUrlInfo>;
22
+ required: boolean;
23
+ };
24
+ data: {
25
+ type: import("vue").PropType<OptionItemProps[]>;
26
+ required: boolean;
27
+ };
28
+ labels: {
29
+ type: import("vue").PropType<string | number | (string | number)[]>;
30
+ required: boolean;
31
+ };
32
+ formData: {
33
+ type: import("vue").PropType<Record<string, any>>;
34
+ required: boolean;
35
+ };
36
+ outFields: {
37
+ type: import("vue").PropType<Record<string, string>>;
38
+ required: boolean;
39
+ };
40
+ reloadEvent: {
41
+ type: import("vue").PropType<string>;
42
+ required: boolean;
43
+ };
44
+ changeEvent: {
45
+ type: import("vue").PropType<[string | string[], string]>;
46
+ required: boolean;
47
+ };
48
+ optionCtrl: {
49
+ type: import("vue").PropType<import("../../../typings/option").OptionControl>;
50
+ required: boolean;
51
+ };
52
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
+ "update:value": (...args: any[]) => void;
54
+ change: (...args: any[]) => void;
55
+ "update:labels": (...args: any[]) => void;
56
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
57
+ value: {
58
+ type: (ArrayConstructor | StringConstructor | NumberConstructor | null)[];
59
+ default: undefined;
60
+ };
61
+ nodata: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ wrap: {
66
+ type: NumberConstructor;
67
+ };
68
+ autoload: {
69
+ type: import("vue").PropType<boolean>;
70
+ required: boolean;
71
+ default: undefined;
72
+ };
73
+ url: {
74
+ type: import("vue").PropType<IUrlInfo>;
75
+ required: boolean;
76
+ };
77
+ data: {
78
+ type: import("vue").PropType<OptionItemProps[]>;
79
+ required: boolean;
80
+ };
81
+ labels: {
82
+ type: import("vue").PropType<string | number | (string | number)[]>;
83
+ required: boolean;
84
+ };
85
+ formData: {
86
+ type: import("vue").PropType<Record<string, any>>;
87
+ required: boolean;
88
+ };
89
+ outFields: {
90
+ type: import("vue").PropType<Record<string, string>>;
91
+ required: boolean;
92
+ };
93
+ reloadEvent: {
94
+ type: import("vue").PropType<string>;
95
+ required: boolean;
96
+ };
97
+ changeEvent: {
98
+ type: import("vue").PropType<[string | string[], string]>;
99
+ required: boolean;
100
+ };
101
+ optionCtrl: {
102
+ type: import("vue").PropType<import("../../../typings/option").OptionControl>;
103
+ required: boolean;
104
+ };
105
+ }>> & Readonly<{
106
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
107
+ onChange?: ((...args: any[]) => any) | undefined;
108
+ "onUpdate:labels"?: ((...args: any[]) => any) | undefined;
109
+ }>, {
110
+ value: string | number | unknown[] | null;
111
+ autoload: boolean;
112
+ nodata: string;
113
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
114
+ declare const _default: typeof __VLS_export;
115
+ export default _default;
@@ -0,0 +1,130 @@
1
+ import { PropType } from 'vue';
2
+ import { OptionItemProps } from '@/index';
3
+ import { IUrlInfo } from '@skyfox2000/fapi';
4
+ type SelectValueType = string | number | string[] | number[] | null;
5
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ value: {
7
+ type: PropType<SelectValueType>;
8
+ default: undefined;
9
+ };
10
+ selectFirst: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ dataKey: {
15
+ type: PropType<string>;
16
+ required: false;
17
+ };
18
+ undefValue: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ autoload: {
23
+ type: PropType<boolean>;
24
+ required: boolean;
25
+ default: undefined;
26
+ };
27
+ url: {
28
+ type: PropType<IUrlInfo>;
29
+ required: boolean;
30
+ };
31
+ data: {
32
+ type: PropType<OptionItemProps[]>;
33
+ required: boolean;
34
+ };
35
+ labels: {
36
+ type: PropType<string | number | (string | number)[]>;
37
+ required: boolean;
38
+ };
39
+ formData: {
40
+ type: PropType<Record<string, any>>;
41
+ required: boolean;
42
+ };
43
+ outFields: {
44
+ type: PropType<Record<string, string>>;
45
+ required: boolean;
46
+ };
47
+ reloadEvent: {
48
+ type: PropType<string>;
49
+ required: boolean;
50
+ };
51
+ changeEvent: {
52
+ type: PropType<[string | string[], string]>;
53
+ required: boolean;
54
+ };
55
+ optionCtrl: {
56
+ type: PropType<import("../../../typings/option").OptionControl>;
57
+ required: boolean;
58
+ };
59
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
60
+ "update:value": (...args: any[]) => void;
61
+ change: (...args: any[]) => void;
62
+ "update:labels": (...args: any[]) => void;
63
+ "update:label": (...args: any[]) => void;
64
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
65
+ value: {
66
+ type: PropType<SelectValueType>;
67
+ default: undefined;
68
+ };
69
+ selectFirst: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ dataKey: {
74
+ type: PropType<string>;
75
+ required: false;
76
+ };
77
+ undefValue: {
78
+ type: BooleanConstructor;
79
+ default: boolean;
80
+ };
81
+ autoload: {
82
+ type: PropType<boolean>;
83
+ required: boolean;
84
+ default: undefined;
85
+ };
86
+ url: {
87
+ type: PropType<IUrlInfo>;
88
+ required: boolean;
89
+ };
90
+ data: {
91
+ type: PropType<OptionItemProps[]>;
92
+ required: boolean;
93
+ };
94
+ labels: {
95
+ type: PropType<string | number | (string | number)[]>;
96
+ required: boolean;
97
+ };
98
+ formData: {
99
+ type: PropType<Record<string, any>>;
100
+ required: boolean;
101
+ };
102
+ outFields: {
103
+ type: PropType<Record<string, string>>;
104
+ required: boolean;
105
+ };
106
+ reloadEvent: {
107
+ type: PropType<string>;
108
+ required: boolean;
109
+ };
110
+ changeEvent: {
111
+ type: PropType<[string | string[], string]>;
112
+ required: boolean;
113
+ };
114
+ optionCtrl: {
115
+ type: PropType<import("../../../typings/option").OptionControl>;
116
+ required: boolean;
117
+ };
118
+ }>> & Readonly<{
119
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
120
+ onChange?: ((...args: any[]) => any) | undefined;
121
+ "onUpdate:labels"?: ((...args: any[]) => any) | undefined;
122
+ "onUpdate:label"?: ((...args: any[]) => any) | undefined;
123
+ }>, {
124
+ value: SelectValueType;
125
+ autoload: boolean;
126
+ undefValue: boolean;
127
+ selectFirst: boolean;
128
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
129
+ declare const _default: typeof __VLS_export;
130
+ export default _default;