@tmagic/form 1.3.0-alpha.2 → 1.3.0-alpha.3
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/tmagic-form.js +889 -903
- package/dist/tmagic-form.js.map +1 -1
- package/dist/tmagic-form.umd.cjs +887 -901
- package/dist/tmagic-form.umd.cjs.map +1 -1
- package/package.json +10 -11
- package/src/Form.vue +5 -1
- package/src/FormDialog.vue +5 -1
- package/src/containers/Col.vue +5 -1
- package/src/containers/Container.vue +5 -1
- package/src/containers/Fieldset.vue +5 -1
- package/src/containers/GroupList.vue +5 -1
- package/src/containers/GroupListItem.vue +5 -1
- package/src/containers/Panel.vue +5 -1
- package/src/containers/Row.vue +5 -1
- package/src/containers/Step.vue +5 -1
- package/src/containers/Table.vue +5 -1
- package/src/containers/Tabs.vue +14 -8
- package/src/fields/Cascader.vue +5 -1
- package/src/fields/Checkbox.vue +5 -1
- package/src/fields/CheckboxGroup.vue +6 -2
- package/src/fields/ColorPicker.vue +5 -1
- package/src/fields/Date.vue +5 -1
- package/src/fields/DateTime.vue +5 -1
- package/src/fields/Daterange.vue +5 -1
- package/src/fields/Display.vue +5 -1
- package/src/fields/DynamicField.vue +5 -1
- package/src/fields/Hidden.vue +5 -1
- package/src/fields/Link.vue +5 -1
- package/src/fields/Number.vue +5 -1
- package/src/fields/RadioGroup.vue +5 -1
- package/src/fields/Select.vue +9 -9
- package/src/fields/SelectOptionGroups.vue +7 -3
- package/src/fields/SelectOptions.vue +5 -1
- package/src/fields/Switch.vue +5 -1
- package/src/fields/Text.vue +5 -1
- package/src/fields/Textarea.vue +5 -1
- package/src/fields/Time.vue +5 -1
- package/src/index.ts +39 -37
- package/types/Form.vue.d.ts +7 -4
- package/types/FormDialog.vue.d.ts +76 -121
- package/types/containers/Col.vue.d.ts +1 -1
- package/types/containers/Container.vue.d.ts +6 -3
- package/types/containers/Fieldset.vue.d.ts +6 -3
- package/types/containers/GroupList.vue.d.ts +1 -1
- package/types/containers/GroupListItem.vue.d.ts +1 -1
- package/types/containers/Panel.vue.d.ts +3 -3
- package/types/containers/Row.vue.d.ts +1 -1
- package/types/containers/Step.vue.d.ts +6 -3
- package/types/containers/Table.vue.d.ts +9 -6
- package/types/containers/Tabs.vue.d.ts +6 -3
- package/types/fields/Cascader.vue.d.ts +1 -1
- package/types/fields/Checkbox.vue.d.ts +1 -1
- package/types/fields/CheckboxGroup.vue.d.ts +1 -1
- package/types/fields/ColorPicker.vue.d.ts +1 -1
- package/types/fields/Date.vue.d.ts +1 -1
- package/types/fields/DateTime.vue.d.ts +1 -1
- package/types/fields/Daterange.vue.d.ts +1 -1
- package/types/fields/Display.vue.d.ts +2 -2
- package/types/fields/DynamicField.vue.d.ts +1 -10
- package/types/fields/Hidden.vue.d.ts +2 -2
- package/types/fields/Link.vue.d.ts +1 -1
- package/types/fields/Number.vue.d.ts +1 -1
- package/types/fields/RadioGroup.vue.d.ts +1 -1
- package/types/fields/Select.vue.d.ts +1 -1
- package/types/fields/SelectOptionGroups.vue.d.ts +2 -2
- package/types/fields/SelectOptions.vue.d.ts +2 -2
- package/types/fields/Switch.vue.d.ts +1 -1
- package/types/fields/Text.vue.d.ts +1 -1
- package/types/fields/Textarea.vue.d.ts +1 -1
- package/types/fields/Time.vue.d.ts +1 -1
- package/types/index.d.ts +4 -1
|
@@ -8,11 +8,15 @@
|
|
|
8
8
|
></TMagicOption>
|
|
9
9
|
</template>
|
|
10
10
|
|
|
11
|
-
<script lang="ts" setup
|
|
11
|
+
<script lang="ts" setup>
|
|
12
12
|
import { TMagicOption } from '@tmagic/design';
|
|
13
13
|
|
|
14
14
|
import { SelectOption } from '../schema';
|
|
15
15
|
|
|
16
|
+
defineOptions({
|
|
17
|
+
name: 'MFormSelectOptions',
|
|
18
|
+
});
|
|
19
|
+
|
|
16
20
|
defineProps<{
|
|
17
21
|
options: SelectOption[];
|
|
18
22
|
valueKey?: string;
|
package/src/fields/Switch.vue
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
></TMagicSwitch>
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
|
-
<script lang="ts" setup
|
|
12
|
+
<script lang="ts" setup>
|
|
13
13
|
import { computed } from 'vue';
|
|
14
14
|
|
|
15
15
|
import { TMagicSwitch } from '@tmagic/design';
|
|
@@ -17,6 +17,10 @@ import { TMagicSwitch } from '@tmagic/design';
|
|
|
17
17
|
import { SwitchConfig } from '../schema';
|
|
18
18
|
import { useAddField } from '../utils/useAddField';
|
|
19
19
|
|
|
20
|
+
defineOptions({
|
|
21
|
+
name: 'MFormSwitch',
|
|
22
|
+
});
|
|
23
|
+
|
|
20
24
|
const props = defineProps<{
|
|
21
25
|
config: SwitchConfig;
|
|
22
26
|
model: any;
|
package/src/fields/Text.vue
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</TMagicInput>
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
|
-
<script lang="ts" setup
|
|
26
|
+
<script lang="ts" setup>
|
|
27
27
|
import { inject } from 'vue';
|
|
28
28
|
|
|
29
29
|
import { TMagicButton, TMagicInput } from '@tmagic/design';
|
|
@@ -32,6 +32,10 @@ import { isNumber } from '@tmagic/utils';
|
|
|
32
32
|
import { FormState, TextConfig } from '../schema';
|
|
33
33
|
import { useAddField } from '../utils/useAddField';
|
|
34
34
|
|
|
35
|
+
defineOptions({
|
|
36
|
+
name: 'MFormText',
|
|
37
|
+
});
|
|
38
|
+
|
|
35
39
|
const props = defineProps<{
|
|
36
40
|
config: TextConfig;
|
|
37
41
|
model: any;
|
package/src/fields/Textarea.vue
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</TMagicInput>
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
|
-
<script lang="ts" setup
|
|
15
|
+
<script lang="ts" setup>
|
|
16
16
|
import { inject } from 'vue';
|
|
17
17
|
|
|
18
18
|
import { TMagicInput } from '@tmagic/design';
|
|
@@ -20,6 +20,10 @@ import { TMagicInput } from '@tmagic/design';
|
|
|
20
20
|
import { FormState, TextareaConfig } from '../schema';
|
|
21
21
|
import { useAddField } from '../utils/useAddField';
|
|
22
22
|
|
|
23
|
+
defineOptions({
|
|
24
|
+
name: 'MFormTextarea',
|
|
25
|
+
});
|
|
26
|
+
|
|
23
27
|
const props = defineProps<{
|
|
24
28
|
config: TextareaConfig;
|
|
25
29
|
model: any;
|
package/src/fields/Time.vue
CHANGED
|
@@ -10,12 +10,16 @@
|
|
|
10
10
|
></TMagicTimePicker>
|
|
11
11
|
</template>
|
|
12
12
|
|
|
13
|
-
<script lang="ts" setup
|
|
13
|
+
<script lang="ts" setup>
|
|
14
14
|
import { TMagicTimePicker } from '@tmagic/design';
|
|
15
15
|
|
|
16
16
|
import { TimeConfig } from '../schema';
|
|
17
17
|
import { useAddField } from '../utils/useAddField';
|
|
18
18
|
|
|
19
|
+
defineOptions({
|
|
20
|
+
name: 'MFormTime',
|
|
21
|
+
});
|
|
22
|
+
|
|
19
23
|
const props = defineProps<{
|
|
20
24
|
config: TimeConfig;
|
|
21
25
|
model: any;
|
package/src/index.ts
CHANGED
|
@@ -82,45 +82,47 @@ export { default as MSelect } from './fields/Select.vue';
|
|
|
82
82
|
export { default as MCascader } from './fields/Cascader.vue';
|
|
83
83
|
export { default as MDynamicField } from './fields/DynamicField.vue';
|
|
84
84
|
|
|
85
|
-
|
|
85
|
+
export interface InstallOptions {
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
}
|
|
86
88
|
|
|
87
|
-
const
|
|
88
|
-
const option = Object.assign(defaultInstallOpt, opt);
|
|
89
|
+
const defaultInstallOpt: InstallOptions = {};
|
|
89
90
|
|
|
90
|
-
|
|
91
|
-
app
|
|
92
|
-
|
|
91
|
+
export default {
|
|
92
|
+
install(app: App, opt: InstallOptions = {}) {
|
|
93
|
+
const option = Object.assign(defaultInstallOpt, opt);
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
app.component('m-form-fieldset', Fieldset);
|
|
98
|
-
app.component('m-form-group-list', GroupList);
|
|
99
|
-
app.component('m-form-panel', Panel);
|
|
100
|
-
app.component('m-form-row', Row);
|
|
101
|
-
app.component('m-form-step', MStep);
|
|
102
|
-
app.component('m-form-table', Table);
|
|
103
|
-
app.component('m-form-tab', Tabs);
|
|
104
|
-
app.component('m-fields-text', Text);
|
|
105
|
-
app.component('m-fields-number', Number);
|
|
106
|
-
app.component('m-fields-textarea', Textarea);
|
|
107
|
-
app.component('m-fields-hidden', Hidden);
|
|
108
|
-
app.component('m-fields-date', Date);
|
|
109
|
-
app.component('m-fields-datetime', DateTime);
|
|
110
|
-
app.component('m-fields-daterange', Daterange);
|
|
111
|
-
app.component('m-fields-time', Time);
|
|
112
|
-
app.component('m-fields-checkbox', Checkbox);
|
|
113
|
-
app.component('m-fields-switch', Switch);
|
|
114
|
-
app.component('m-fields-color-picker', ColorPicker);
|
|
115
|
-
app.component('m-fields-checkbox-group', CheckboxGroup);
|
|
116
|
-
app.component('m-fields-radio-group', RadioGroup);
|
|
117
|
-
app.component('m-fields-display', Display);
|
|
118
|
-
app.component('m-fields-link', Link);
|
|
119
|
-
app.component('m-fields-select', Select);
|
|
120
|
-
app.component('m-fields-cascader', Cascader);
|
|
121
|
-
app.component('m-fields-dynamic-field', DynamicField);
|
|
122
|
-
};
|
|
95
|
+
// eslint-disable-next-line no-param-reassign
|
|
96
|
+
app.config.globalProperties.$MAGIC_FORM = option;
|
|
97
|
+
setConfig(option);
|
|
123
98
|
|
|
124
|
-
|
|
125
|
-
|
|
99
|
+
app.component('m-form', Form);
|
|
100
|
+
app.component('m-form-dialog', FormDialog);
|
|
101
|
+
app.component('m-form-container', Container);
|
|
102
|
+
app.component('m-form-fieldset', Fieldset);
|
|
103
|
+
app.component('m-form-group-list', GroupList);
|
|
104
|
+
app.component('m-form-panel', Panel);
|
|
105
|
+
app.component('m-form-row', Row);
|
|
106
|
+
app.component('m-form-step', MStep);
|
|
107
|
+
app.component('m-form-table', Table);
|
|
108
|
+
app.component('m-form-tab', Tabs);
|
|
109
|
+
app.component('m-fields-text', Text);
|
|
110
|
+
app.component('m-fields-number', Number);
|
|
111
|
+
app.component('m-fields-textarea', Textarea);
|
|
112
|
+
app.component('m-fields-hidden', Hidden);
|
|
113
|
+
app.component('m-fields-date', Date);
|
|
114
|
+
app.component('m-fields-datetime', DateTime);
|
|
115
|
+
app.component('m-fields-daterange', Daterange);
|
|
116
|
+
app.component('m-fields-time', Time);
|
|
117
|
+
app.component('m-fields-checkbox', Checkbox);
|
|
118
|
+
app.component('m-fields-switch', Switch);
|
|
119
|
+
app.component('m-fields-color-picker', ColorPicker);
|
|
120
|
+
app.component('m-fields-checkbox-group', CheckboxGroup);
|
|
121
|
+
app.component('m-fields-radio-group', RadioGroup);
|
|
122
|
+
app.component('m-fields-display', Display);
|
|
123
|
+
app.component('m-fields-link', Link);
|
|
124
|
+
app.component('m-fields-select', Select);
|
|
125
|
+
app.component('m-fields-cascader', Cascader);
|
|
126
|
+
app.component('m-fields-dynamic-field', DynamicField);
|
|
127
|
+
},
|
|
126
128
|
};
|
package/types/Form.vue.d.ts
CHANGED
|
@@ -38,7 +38,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
38
38
|
initialized: import("vue").Ref<boolean>;
|
|
39
39
|
changeHandler: () => void;
|
|
40
40
|
resetForm: () => any;
|
|
41
|
-
submitForm: (native?: boolean) => Promise<any>;
|
|
41
|
+
submitForm: (native?: boolean | undefined) => Promise<any>;
|
|
42
42
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "field-input" | "field-change")[], "change" | "field-input" | "field-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
43
43
|
/** 表单配置 */
|
|
44
44
|
config: FormConfig;
|
|
@@ -88,7 +88,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
88
88
|
height: string;
|
|
89
89
|
inline: boolean;
|
|
90
90
|
labelPosition: string;
|
|
91
|
-
}>;
|
|
91
|
+
}, {}>;
|
|
92
92
|
export default _default;
|
|
93
93
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
94
94
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -100,7 +100,10 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
type __VLS_WithDefaults<P, D> = {
|
|
103
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
103
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
104
104
|
default: D[K];
|
|
105
|
-
} : P[K];
|
|
105
|
+
}> : P[K];
|
|
106
106
|
};
|
|
107
|
+
type __VLS_Prettify<T> = {
|
|
108
|
+
[K in keyof T]: T[K];
|
|
109
|
+
} & {};
|
|
@@ -19,93 +19,69 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
19
19
|
form: import("vue").Ref<({
|
|
20
20
|
$: import("vue").ComponentInternalInstance;
|
|
21
21
|
$data: {};
|
|
22
|
-
$props:
|
|
23
|
-
config
|
|
24
|
-
initValues
|
|
25
|
-
lastValues
|
|
26
|
-
isCompare
|
|
27
|
-
keyProp
|
|
28
|
-
parentValues
|
|
29
|
-
labelWidth
|
|
30
|
-
disabled
|
|
31
|
-
stepActive
|
|
32
|
-
height
|
|
33
|
-
inline
|
|
34
|
-
labelPosition
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
type: import("vue").PropType<FormConfig>;
|
|
38
|
-
required: true;
|
|
39
|
-
} & {
|
|
40
|
-
default: () => never[];
|
|
41
|
-
};
|
|
42
|
-
popperClass: {
|
|
43
|
-
type: import("vue").PropType<string>;
|
|
44
|
-
};
|
|
45
|
-
initValues: {
|
|
46
|
-
type: import("vue").PropType<Object>;
|
|
47
|
-
required: true;
|
|
48
|
-
} & {
|
|
49
|
-
default: () => {};
|
|
50
|
-
};
|
|
51
|
-
lastValues: {
|
|
52
|
-
type: import("vue").PropType<Object>;
|
|
53
|
-
} & {
|
|
54
|
-
default: () => {};
|
|
55
|
-
};
|
|
56
|
-
isCompare: {
|
|
57
|
-
type: import("vue").PropType<boolean>;
|
|
58
|
-
} & {
|
|
59
|
-
default: boolean;
|
|
60
|
-
};
|
|
61
|
-
keyProp: {
|
|
62
|
-
type: import("vue").PropType<string>;
|
|
63
|
-
} & {
|
|
64
|
-
default: string;
|
|
65
|
-
};
|
|
66
|
-
parentValues: {
|
|
67
|
-
type: import("vue").PropType<Object>;
|
|
68
|
-
} & {
|
|
69
|
-
default: () => {};
|
|
70
|
-
};
|
|
71
|
-
labelWidth: {
|
|
72
|
-
type: import("vue").PropType<string>;
|
|
73
|
-
} & {
|
|
74
|
-
default: string;
|
|
75
|
-
};
|
|
76
|
-
disabled: {
|
|
77
|
-
type: import("vue").PropType<boolean>;
|
|
78
|
-
} & {
|
|
79
|
-
default: boolean;
|
|
80
|
-
};
|
|
81
|
-
stepActive: {
|
|
82
|
-
type: import("vue").PropType<string | number>;
|
|
83
|
-
} & {
|
|
84
|
-
default: number;
|
|
85
|
-
};
|
|
86
|
-
size: {
|
|
87
|
-
type: import("vue").PropType<"default" | "small" | "large">;
|
|
88
|
-
};
|
|
89
|
-
height: {
|
|
90
|
-
type: import("vue").PropType<string>;
|
|
91
|
-
} & {
|
|
92
|
-
default: string;
|
|
93
|
-
};
|
|
94
|
-
inline: {
|
|
95
|
-
type: import("vue").PropType<boolean>;
|
|
96
|
-
} & {
|
|
97
|
-
default: boolean;
|
|
98
|
-
};
|
|
99
|
-
labelPosition: {
|
|
100
|
-
type: import("vue").PropType<string>;
|
|
101
|
-
} & {
|
|
102
|
-
default: string;
|
|
103
|
-
};
|
|
104
|
-
}>> & {
|
|
22
|
+
$props: {
|
|
23
|
+
config?: FormConfig | undefined;
|
|
24
|
+
initValues?: Object | undefined;
|
|
25
|
+
lastValues?: Object | undefined;
|
|
26
|
+
isCompare?: boolean | undefined;
|
|
27
|
+
keyProp?: string | undefined;
|
|
28
|
+
parentValues?: Object | undefined;
|
|
29
|
+
labelWidth?: string | undefined;
|
|
30
|
+
disabled?: boolean | undefined;
|
|
31
|
+
stepActive?: string | number | undefined;
|
|
32
|
+
height?: string | undefined;
|
|
33
|
+
inline?: boolean | undefined;
|
|
34
|
+
labelPosition?: string | undefined;
|
|
35
|
+
readonly popperClass?: string | undefined;
|
|
36
|
+
key?: string | number | symbol | undefined;
|
|
105
37
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
readonly size?: "default" | "small" | "large" | undefined;
|
|
39
|
+
ref?: import("vue").VNodeRef | undefined;
|
|
40
|
+
ref_for?: boolean | undefined;
|
|
41
|
+
ref_key?: string | undefined;
|
|
42
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}>) => void)[] | undefined;
|
|
47
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}>) => void)[] | undefined;
|
|
52
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
53
|
+
[key: string]: any;
|
|
54
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
55
|
+
[key: string]: any;
|
|
56
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
59
|
+
[key: string]: any;
|
|
60
|
+
}>) => void)[] | undefined;
|
|
61
|
+
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
}>) => void)[] | undefined;
|
|
70
|
+
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
73
|
+
[key: string]: any;
|
|
74
|
+
}>) => void)[] | undefined;
|
|
75
|
+
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
}>) => void)[] | undefined;
|
|
80
|
+
class?: unknown;
|
|
81
|
+
style?: unknown;
|
|
106
82
|
"onField-input"?: ((...args: any[]) => any) | undefined;
|
|
107
83
|
"onField-change"?: ((...args: any[]) => any) | undefined;
|
|
108
|
-
}
|
|
84
|
+
};
|
|
109
85
|
$attrs: {
|
|
110
86
|
[x: string]: unknown;
|
|
111
87
|
};
|
|
@@ -113,17 +89,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
113
89
|
[x: string]: unknown;
|
|
114
90
|
};
|
|
115
91
|
$slots: Readonly<{
|
|
116
|
-
[name: string]: import("vue").Slot | undefined;
|
|
92
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
117
93
|
}>;
|
|
118
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
119
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
94
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
95
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
120
96
|
$emit: (event: "change" | "field-input" | "field-change", ...args: any[]) => void;
|
|
121
97
|
$el: any;
|
|
122
98
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
123
99
|
config: {
|
|
124
100
|
type: import("vue").PropType<FormConfig>;
|
|
125
101
|
required: true;
|
|
126
|
-
} & {
|
|
127
102
|
default: () => never[];
|
|
128
103
|
};
|
|
129
104
|
popperClass: {
|
|
@@ -132,42 +107,34 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
132
107
|
initValues: {
|
|
133
108
|
type: import("vue").PropType<Object>;
|
|
134
109
|
required: true;
|
|
135
|
-
} & {
|
|
136
110
|
default: () => {};
|
|
137
111
|
};
|
|
138
112
|
lastValues: {
|
|
139
113
|
type: import("vue").PropType<Object>;
|
|
140
|
-
} & {
|
|
141
114
|
default: () => {};
|
|
142
115
|
};
|
|
143
116
|
isCompare: {
|
|
144
117
|
type: import("vue").PropType<boolean>;
|
|
145
|
-
} & {
|
|
146
118
|
default: boolean;
|
|
147
119
|
};
|
|
148
120
|
keyProp: {
|
|
149
121
|
type: import("vue").PropType<string>;
|
|
150
|
-
} & {
|
|
151
122
|
default: string;
|
|
152
123
|
};
|
|
153
124
|
parentValues: {
|
|
154
125
|
type: import("vue").PropType<Object>;
|
|
155
|
-
} & {
|
|
156
126
|
default: () => {};
|
|
157
127
|
};
|
|
158
128
|
labelWidth: {
|
|
159
129
|
type: import("vue").PropType<string>;
|
|
160
|
-
} & {
|
|
161
130
|
default: string;
|
|
162
131
|
};
|
|
163
132
|
disabled: {
|
|
164
133
|
type: import("vue").PropType<boolean>;
|
|
165
|
-
} & {
|
|
166
134
|
default: boolean;
|
|
167
135
|
};
|
|
168
136
|
stepActive: {
|
|
169
137
|
type: import("vue").PropType<string | number>;
|
|
170
|
-
} & {
|
|
171
138
|
default: number;
|
|
172
139
|
};
|
|
173
140
|
size: {
|
|
@@ -175,17 +142,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
175
142
|
};
|
|
176
143
|
height: {
|
|
177
144
|
type: import("vue").PropType<string>;
|
|
178
|
-
} & {
|
|
179
145
|
default: string;
|
|
180
146
|
};
|
|
181
147
|
inline: {
|
|
182
148
|
type: import("vue").PropType<boolean>;
|
|
183
|
-
} & {
|
|
184
149
|
default: boolean;
|
|
185
150
|
};
|
|
186
151
|
labelPosition: {
|
|
187
152
|
type: import("vue").PropType<string>;
|
|
188
|
-
} & {
|
|
189
153
|
default: string;
|
|
190
154
|
};
|
|
191
155
|
}>> & {
|
|
@@ -213,7 +177,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
213
177
|
height: string;
|
|
214
178
|
inline: boolean;
|
|
215
179
|
labelPosition: string;
|
|
216
|
-
}> & {
|
|
180
|
+
}, {}, string, {}> & {
|
|
217
181
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
218
182
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
219
183
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -228,16 +192,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
228
192
|
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
229
193
|
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
230
194
|
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
231
|
-
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
|
195
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
232
196
|
};
|
|
233
197
|
$forceUpdate: () => void;
|
|
234
198
|
$nextTick: typeof import("vue").nextTick;
|
|
235
|
-
$watch
|
|
199
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
236
200
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
237
201
|
config: {
|
|
238
202
|
type: import("vue").PropType<FormConfig>;
|
|
239
203
|
required: true;
|
|
240
|
-
} & {
|
|
241
204
|
default: () => never[];
|
|
242
205
|
};
|
|
243
206
|
popperClass: {
|
|
@@ -246,42 +209,34 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
246
209
|
initValues: {
|
|
247
210
|
type: import("vue").PropType<Object>;
|
|
248
211
|
required: true;
|
|
249
|
-
} & {
|
|
250
212
|
default: () => {};
|
|
251
213
|
};
|
|
252
214
|
lastValues: {
|
|
253
215
|
type: import("vue").PropType<Object>;
|
|
254
|
-
} & {
|
|
255
216
|
default: () => {};
|
|
256
217
|
};
|
|
257
218
|
isCompare: {
|
|
258
219
|
type: import("vue").PropType<boolean>;
|
|
259
|
-
} & {
|
|
260
220
|
default: boolean;
|
|
261
221
|
};
|
|
262
222
|
keyProp: {
|
|
263
223
|
type: import("vue").PropType<string>;
|
|
264
|
-
} & {
|
|
265
224
|
default: string;
|
|
266
225
|
};
|
|
267
226
|
parentValues: {
|
|
268
227
|
type: import("vue").PropType<Object>;
|
|
269
|
-
} & {
|
|
270
228
|
default: () => {};
|
|
271
229
|
};
|
|
272
230
|
labelWidth: {
|
|
273
231
|
type: import("vue").PropType<string>;
|
|
274
|
-
} & {
|
|
275
232
|
default: string;
|
|
276
233
|
};
|
|
277
234
|
disabled: {
|
|
278
235
|
type: import("vue").PropType<boolean>;
|
|
279
|
-
} & {
|
|
280
236
|
default: boolean;
|
|
281
237
|
};
|
|
282
238
|
stepActive: {
|
|
283
239
|
type: import("vue").PropType<string | number>;
|
|
284
|
-
} & {
|
|
285
240
|
default: number;
|
|
286
241
|
};
|
|
287
242
|
size: {
|
|
@@ -289,17 +244,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
289
244
|
};
|
|
290
245
|
height: {
|
|
291
246
|
type: import("vue").PropType<string>;
|
|
292
|
-
} & {
|
|
293
247
|
default: string;
|
|
294
248
|
};
|
|
295
249
|
inline: {
|
|
296
250
|
type: import("vue").PropType<boolean>;
|
|
297
|
-
} & {
|
|
298
251
|
default: boolean;
|
|
299
252
|
};
|
|
300
253
|
labelPosition: {
|
|
301
254
|
type: import("vue").PropType<string>;
|
|
302
|
-
} & {
|
|
303
255
|
default: string;
|
|
304
256
|
};
|
|
305
257
|
}>> & {
|
|
@@ -314,7 +266,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
314
266
|
changeHandler: () => void;
|
|
315
267
|
resetForm: () => any;
|
|
316
268
|
submitForm: (native?: boolean | undefined) => Promise<any>;
|
|
317
|
-
}> & {} & import("vue").ComponentCustomProperties) | undefined>;
|
|
269
|
+
}> & {} & import("vue").ComponentCustomProperties & {}) | undefined>;
|
|
318
270
|
saveFetch: import("vue").Ref<boolean>;
|
|
319
271
|
dialogVisible: import("vue").Ref<boolean>;
|
|
320
272
|
cancel: () => void;
|
|
@@ -344,10 +296,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
344
296
|
config: FormConfig;
|
|
345
297
|
values: Object;
|
|
346
298
|
confirmText: string;
|
|
347
|
-
}>, {
|
|
348
|
-
default
|
|
349
|
-
left
|
|
350
|
-
footer
|
|
299
|
+
}, {}>, {
|
|
300
|
+
default?(_: {}): any;
|
|
301
|
+
left?(_: {}): any;
|
|
302
|
+
footer?(_: {}): any;
|
|
351
303
|
}>;
|
|
352
304
|
export default _default;
|
|
353
305
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -360,12 +312,15 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
360
312
|
};
|
|
361
313
|
};
|
|
362
314
|
type __VLS_WithDefaults<P, D> = {
|
|
363
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
315
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
364
316
|
default: D[K];
|
|
365
|
-
} : P[K];
|
|
317
|
+
}> : P[K];
|
|
366
318
|
};
|
|
367
319
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
368
320
|
new (): {
|
|
369
321
|
$slots: S;
|
|
370
322
|
};
|
|
371
323
|
};
|
|
324
|
+
type __VLS_Prettify<T> = {
|
|
325
|
+
[K in keyof T]: T[K];
|
|
326
|
+
} & {};
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
24
24
|
}>>> & {
|
|
25
25
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
onAddDiffCount?: ((...args: any[]) => any) | undefined;
|
|
27
|
-
}, {}>;
|
|
27
|
+
}, {}, {}>;
|
|
28
28
|
export default _default;
|
|
29
29
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
30
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
48
48
|
prop: string;
|
|
49
49
|
expandMore: boolean;
|
|
50
50
|
size: string;
|
|
51
|
-
}>;
|
|
51
|
+
}, {}>;
|
|
52
52
|
export default _default;
|
|
53
53
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
54
54
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -60,7 +60,10 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
62
|
type __VLS_WithDefaults<P, D> = {
|
|
63
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
63
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
64
64
|
default: D[K];
|
|
65
|
-
} : P[K];
|
|
65
|
+
}> : P[K];
|
|
66
66
|
};
|
|
67
|
+
type __VLS_Prettify<T> = {
|
|
68
|
+
[K in keyof T]: T[K];
|
|
69
|
+
} & {};
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
37
37
|
isCompare: boolean;
|
|
38
38
|
rules: any;
|
|
39
39
|
prop: string;
|
|
40
|
-
}>;
|
|
40
|
+
}, {}>;
|
|
41
41
|
export default _default;
|
|
42
42
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
43
43
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -49,7 +49,10 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
type __VLS_WithDefaults<P, D> = {
|
|
52
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
|
|
52
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
53
53
|
default: D[K];
|
|
54
|
-
} : P[K];
|
|
54
|
+
}> : P[K];
|
|
55
55
|
};
|
|
56
|
+
type __VLS_Prettify<T> = {
|
|
57
|
+
[K in keyof T]: T[K];
|
|
58
|
+
} & {};
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
22
22
|
}>>> & {
|
|
23
23
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
24
24
|
onAddDiffCount?: ((...args: any[]) => any) | undefined;
|
|
25
|
-
}, {}>;
|
|
25
|
+
}, {}, {}>;
|
|
26
26
|
export default _default;
|
|
27
27
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
28
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
26
26
|
onAddDiffCount?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
"onSwap-item"?: ((...args: any[]) => any) | undefined;
|
|
28
28
|
"onRemove-item"?: ((...args: any[]) => any) | undefined;
|
|
29
|
-
}, {}>;
|
|
29
|
+
}, {}, {}>;
|
|
30
30
|
export default _default;
|
|
31
31
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
32
32
|
type __VLS_TypePropsToRuntimeProps<T> = {
|