@tmagic/form 1.2.14 → 1.3.0-alpha.0
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/style.css +3 -0
- package/dist/tmagic-form.js +104 -91
- package/dist/tmagic-form.js.map +1 -1
- package/dist/tmagic-form.umd.cjs +102 -89
- package/dist/tmagic-form.umd.cjs.map +1 -1
- package/package.json +3 -3
- package/src/containers/Container.vue +1 -1
- package/src/containers/Fieldset.vue +2 -9
- package/src/containers/Table.vue +1 -1
- package/src/containers/Tabs.vue +65 -60
- package/src/fields/Cascader.vue +2 -1
- package/src/fields/Checkbox.vue +1 -0
- package/src/fields/CheckboxGroup.vue +1 -0
- package/src/fields/ColorPicker.vue +1 -0
- package/src/fields/Date.vue +1 -0
- package/src/fields/DateTime.vue +1 -0
- package/src/fields/Daterange.vue +1 -0
- package/src/fields/Display.vue +1 -0
- package/src/fields/DynamicField.vue +1 -0
- package/src/fields/Hidden.vue +1 -0
- package/src/fields/Link.vue +1 -0
- package/src/fields/Number.vue +1 -0
- package/src/fields/RadioGroup.vue +1 -0
- package/src/fields/Select.vue +3 -2
- package/src/fields/Switch.vue +1 -0
- package/src/fields/Text.vue +4 -3
- package/src/fields/Textarea.vue +1 -0
- package/src/fields/Time.vue +1 -0
- package/src/schema.ts +4 -1
- package/src/theme/form.scss +6 -0
- package/types/containers/Table.vue.d.ts +2 -2
- package/types/fields/Cascader.vue.d.ts +2 -0
- package/types/fields/Checkbox.vue.d.ts +2 -0
- package/types/fields/CheckboxGroup.vue.d.ts +2 -0
- package/types/fields/ColorPicker.vue.d.ts +2 -0
- package/types/fields/Date.vue.d.ts +2 -0
- package/types/fields/DateTime.vue.d.ts +2 -0
- package/types/fields/Daterange.vue.d.ts +2 -0
- package/types/fields/Display.vue.d.ts +2 -0
- package/types/fields/DynamicField.vue.d.ts +2 -0
- package/types/fields/Hidden.vue.d.ts +2 -0
- package/types/fields/Link.vue.d.ts +2 -0
- package/types/fields/Number.vue.d.ts +2 -0
- package/types/fields/RadioGroup.vue.d.ts +2 -0
- package/types/fields/Select.vue.d.ts +2 -0
- package/types/fields/Switch.vue.d.ts +2 -0
- package/types/fields/Text.vue.d.ts +2 -0
- package/types/fields/Textarea.vue.d.ts +2 -0
- package/types/fields/Time.vue.d.ts +2 -0
- package/types/schema.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.
|
|
2
|
+
"version": "1.3.0-alpha.0",
|
|
3
3
|
"name": "@tmagic/form",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@element-plus/icons-vue": "^2.0.9",
|
|
39
|
-
"@tmagic/design": "1.
|
|
40
|
-
"@tmagic/utils": "1.
|
|
39
|
+
"@tmagic/design": "1.3.0-alpha.0",
|
|
40
|
+
"@tmagic/utils": "1.3.0-alpha.0",
|
|
41
41
|
"lodash-es": "^4.17.21",
|
|
42
42
|
"sortablejs": "^1.14.0",
|
|
43
43
|
"vue": "^3.2.37"
|
|
@@ -317,7 +317,7 @@ const display = computed((): boolean => {
|
|
|
317
317
|
return value;
|
|
318
318
|
});
|
|
319
319
|
|
|
320
|
-
const itemLabelWidth = computed(() => props.config.labelWidth
|
|
320
|
+
const itemLabelWidth = computed(() => props.config.labelWidth ?? props.labelWidth);
|
|
321
321
|
|
|
322
322
|
watchEffect(() => {
|
|
323
323
|
expand.value = props.expandMore;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
:prop="`${prop}${prop ? '.' : ''}${config.name}.value`"
|
|
11
11
|
:true-label="1"
|
|
12
12
|
:false-label="0"
|
|
13
|
+
@update:modelValue="change"
|
|
13
14
|
><span v-html="config.legend"></span><span v-if="config.extra" v-html="config.extra" class="m-form-tip"></span
|
|
14
15
|
></TMagicCheckbox>
|
|
15
16
|
</component>
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
</template>
|
|
62
63
|
|
|
63
64
|
<script lang="ts" setup name="MFormFieldset">
|
|
64
|
-
import { computed, inject
|
|
65
|
+
import { computed, inject } from 'vue';
|
|
65
66
|
|
|
66
67
|
import { TMagicCheckbox } from '@tmagic/design';
|
|
67
68
|
|
|
@@ -115,13 +116,5 @@ const change = () => {
|
|
|
115
116
|
|
|
116
117
|
const key = (item: any, index: number) => item[mForm?.keyProp || '__key'] ?? index;
|
|
117
118
|
|
|
118
|
-
if (props.config.checkbox && name.value) {
|
|
119
|
-
watch(
|
|
120
|
-
() => props.model[name.value]?.value,
|
|
121
|
-
() => {
|
|
122
|
-
emit('change', props.model);
|
|
123
|
-
},
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
119
|
const onAddDiffCount = () => emit('addDiffCount');
|
|
127
120
|
</script>
|
package/src/containers/Table.vue
CHANGED
package/src/containers/Tabs.vue
CHANGED
|
@@ -1,71 +1,77 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<component
|
|
3
3
|
v-model="activeTabName"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
v-bind="
|
|
5
|
+
tabsComponent.props({
|
|
6
|
+
type: config.tabType,
|
|
7
|
+
editable: config.editable || false,
|
|
8
|
+
tabPosition: config.tabPosition || 'top',
|
|
9
|
+
})
|
|
10
|
+
"
|
|
11
|
+
:is="tabsComponent.component"
|
|
12
|
+
:class="`tmagic-design-tabs ${config.dynamic ? 'magic-form-dynamic-tab' : 'magic-form-tab'}`"
|
|
8
13
|
@tab-click="tabClickHandler"
|
|
9
14
|
@tab-add="onTabAdd"
|
|
10
15
|
@tab-remove="onTabRemove"
|
|
11
16
|
>
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
17
|
+
<component
|
|
18
|
+
v-for="(tab, tabIndex) in tabs"
|
|
19
|
+
:is="tabPaneComponent.component"
|
|
20
|
+
:key="tab[mForm?.keyProp || '__key'] ?? tabIndex"
|
|
21
|
+
v-bind="tabPaneComponent.props({ name: filter(tab.status) || tabIndex.toString(), lazy: tab.lazy || false })"
|
|
22
|
+
>
|
|
23
|
+
<template #label>
|
|
24
|
+
<span>
|
|
25
|
+
{{ filter(tab.title)
|
|
26
|
+
}}<TMagicBadge
|
|
27
|
+
:hidden="!diffCount[tabIndex]"
|
|
28
|
+
:value="diffCount[tabIndex]"
|
|
29
|
+
class="diff-count-badge"
|
|
30
|
+
></TMagicBadge>
|
|
31
|
+
</span>
|
|
32
|
+
</template>
|
|
33
|
+
<Container
|
|
34
|
+
v-for="item in tabItems(tab)"
|
|
35
|
+
:key="item[mForm?.keyProp || '__key']"
|
|
36
|
+
:config="item"
|
|
37
|
+
:disabled="disabled"
|
|
38
|
+
:model="
|
|
39
|
+
config.dynamic
|
|
40
|
+
? (name ? model[name] : model)[tabIndex]
|
|
41
|
+
: tab.name
|
|
42
|
+
? (name ? model[name] : model)[tab.name]
|
|
43
|
+
: name
|
|
44
|
+
? model[name]
|
|
45
|
+
: model
|
|
46
|
+
"
|
|
47
|
+
:last-values="
|
|
48
|
+
isEmpty(lastValues)
|
|
49
|
+
? {}
|
|
50
|
+
: config.dynamic
|
|
51
|
+
? (name ? lastValues[name] : lastValues)[tabIndex]
|
|
52
|
+
: tab.name
|
|
53
|
+
? (name ? lastValues[name] : lastValues)[tab.name]
|
|
54
|
+
: name
|
|
55
|
+
? lastValues[name]
|
|
56
|
+
: lastValues
|
|
57
|
+
"
|
|
58
|
+
:is-compare="isCompare"
|
|
59
|
+
:prop="config.dynamic ? `${prop}${prop ? '.' : ''}${String(tabIndex)}` : prop"
|
|
60
|
+
:size="size"
|
|
61
|
+
:label-width="tab.labelWidth || labelWidth"
|
|
62
|
+
:expand-more="expandMore"
|
|
63
|
+
@change="changeHandler"
|
|
64
|
+
@addDiffCount="onAddDiffCount(tabIndex)"
|
|
65
|
+
></Container>
|
|
66
|
+
</component>
|
|
67
|
+
</component>
|
|
62
68
|
</template>
|
|
63
69
|
|
|
64
70
|
<script setup lang="ts" name="MFormTabs">
|
|
65
71
|
import { computed, inject, ref, watchEffect } from 'vue';
|
|
66
72
|
import { cloneDeep, isEmpty } from 'lodash-es';
|
|
67
73
|
|
|
68
|
-
import { getConfig,
|
|
74
|
+
import { getConfig, TMagicBadge } from '@tmagic/design';
|
|
69
75
|
|
|
70
76
|
import { FormState, TabConfig, TabPaneConfig } from '../schema';
|
|
71
77
|
import { display as displayFunc, filterFunction } from '../utils/form';
|
|
@@ -76,7 +82,8 @@ type DiffCount = {
|
|
|
76
82
|
[tabIndex: number]: number;
|
|
77
83
|
};
|
|
78
84
|
|
|
79
|
-
const
|
|
85
|
+
const tabPaneComponent = getConfig('components').tabPane;
|
|
86
|
+
const tabsComponent = getConfig('components').tabs;
|
|
80
87
|
|
|
81
88
|
const getActive = (mForm: FormState | undefined, props: any, activeTabName: string) => {
|
|
82
89
|
const { config, model, prop } = props;
|
|
@@ -135,7 +142,7 @@ const tabs = computed(() => {
|
|
|
135
142
|
if (!props.config.name) throw new Error('dynamic tab 必须配置name');
|
|
136
143
|
return props.model[props.config.name] || [];
|
|
137
144
|
}
|
|
138
|
-
return props.config.items;
|
|
145
|
+
return props.config.items.filter((item) => displayFunc(mForm, item.display, props));
|
|
139
146
|
});
|
|
140
147
|
|
|
141
148
|
const filter = (config: any) => filterFunction(mForm, config, props);
|
|
@@ -193,8 +200,6 @@ const onTabRemove = (tabName: string) => {
|
|
|
193
200
|
mForm?.$emit('field-change', props.prop, props.model[props.config.name]);
|
|
194
201
|
};
|
|
195
202
|
|
|
196
|
-
const display = (displayConfig: any) => displayFunc(mForm, displayConfig, props);
|
|
197
|
-
|
|
198
203
|
const changeHandler = () => {
|
|
199
204
|
emit('change', props.model);
|
|
200
205
|
if (typeof props.config.onChange === 'function') {
|
package/src/fields/Cascader.vue
CHANGED
|
@@ -32,6 +32,7 @@ const props = defineProps<{
|
|
|
32
32
|
prop: string;
|
|
33
33
|
disabled?: boolean;
|
|
34
34
|
size?: 'large' | 'default' | 'small';
|
|
35
|
+
lastValues?: Record<string, any>;
|
|
35
36
|
}>();
|
|
36
37
|
|
|
37
38
|
const emit = defineEmits(['change']);
|
|
@@ -85,7 +86,7 @@ if (typeof props.config.options === 'function' && props.model && mForm) {
|
|
|
85
86
|
watchEffect(
|
|
86
87
|
() => (options.value = (props.config.options as Function)(mForm, { model: props.model, formValues: mForm.values })),
|
|
87
88
|
);
|
|
88
|
-
} else if (!props.config.options
|
|
89
|
+
} else if (!props.config.options?.length || props.config.remote) {
|
|
89
90
|
Promise.resolve(setRemoteOptions());
|
|
90
91
|
}
|
|
91
92
|
|
package/src/fields/Checkbox.vue
CHANGED
package/src/fields/Date.vue
CHANGED
package/src/fields/DateTime.vue
CHANGED
package/src/fields/Daterange.vue
CHANGED
package/src/fields/Display.vue
CHANGED
package/src/fields/Hidden.vue
CHANGED
package/src/fields/Link.vue
CHANGED
package/src/fields/Number.vue
CHANGED
package/src/fields/Select.vue
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
v-loading="loading"
|
|
6
6
|
class="m-select"
|
|
7
7
|
ref="tMagicSelect"
|
|
8
|
-
clearable
|
|
9
|
-
filterable
|
|
8
|
+
:clearable="typeof config.clearable !== 'undefined' ? config.clearable : true"
|
|
9
|
+
:filterable="typeof config.filterable !== 'undefined' ? config.filterable : true"
|
|
10
10
|
:popper-class="`m-select-popper ${popperClass}`"
|
|
11
11
|
:size="size"
|
|
12
12
|
:remote="remote"
|
|
@@ -46,6 +46,7 @@ const props = defineProps<{
|
|
|
46
46
|
prop: string;
|
|
47
47
|
disabled?: boolean;
|
|
48
48
|
size?: 'large' | 'default' | 'small';
|
|
49
|
+
lastValues?: Record<string, any>;
|
|
49
50
|
}>();
|
|
50
51
|
|
|
51
52
|
const emit = defineEmits(['change']);
|
package/src/fields/Switch.vue
CHANGED
package/src/fields/Text.vue
CHANGED
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
>
|
|
12
12
|
<template #append v-if="config.append">
|
|
13
13
|
<span v-if="typeof config.append === 'string'">{{ config.append }}</span>
|
|
14
|
-
<
|
|
14
|
+
<TMagicButton
|
|
15
15
|
v-if="typeof config.append === 'object' && config.append.type === 'button'"
|
|
16
16
|
style="color: #409eff"
|
|
17
17
|
:size="size"
|
|
18
18
|
@click.prevent="buttonClickHandler"
|
|
19
19
|
>
|
|
20
20
|
{{ config.append.text }}
|
|
21
|
-
</
|
|
21
|
+
</TMagicButton>
|
|
22
22
|
</template>
|
|
23
23
|
</TMagicInput>
|
|
24
24
|
</template>
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<script lang="ts" setup name="MFormText">
|
|
27
27
|
import { inject } from 'vue';
|
|
28
28
|
|
|
29
|
-
import { TMagicInput } from '@tmagic/design';
|
|
29
|
+
import { TMagicButton, TMagicInput } from '@tmagic/design';
|
|
30
30
|
import { isNumber } from '@tmagic/utils';
|
|
31
31
|
|
|
32
32
|
import { FormState, TextConfig } from '../schema';
|
|
@@ -41,6 +41,7 @@ const props = defineProps<{
|
|
|
41
41
|
prop: string;
|
|
42
42
|
disabled?: boolean;
|
|
43
43
|
size?: 'large' | 'default' | 'small';
|
|
44
|
+
lastValues?: Record<string, any>;
|
|
44
45
|
}>();
|
|
45
46
|
|
|
46
47
|
const emit = defineEmits(['change', 'input']);
|
package/src/fields/Textarea.vue
CHANGED
package/src/fields/Time.vue
CHANGED
package/src/schema.ts
CHANGED
|
@@ -87,6 +87,7 @@ export interface FormItem {
|
|
|
87
87
|
dynamicKey?: string;
|
|
88
88
|
/** 是否需要显示`展开更多配置` */
|
|
89
89
|
expand?: boolean;
|
|
90
|
+
[key: string]: any;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
export interface ContainerCommonConfig {
|
|
@@ -432,6 +433,7 @@ export interface SelectConfig extends FormItem, Input {
|
|
|
432
433
|
multiple?: boolean;
|
|
433
434
|
valueKey?: string;
|
|
434
435
|
allowCreate?: boolean;
|
|
436
|
+
filterable?: boolean;
|
|
435
437
|
group?: boolean;
|
|
436
438
|
options: SelectConfigOption[] | SelectConfigGroupOption[] | SelectOptionFunction;
|
|
437
439
|
remote: true;
|
|
@@ -566,6 +568,7 @@ export interface TabPaneConfig {
|
|
|
566
568
|
onTabClick?: (mForm: FormState | undefined, tab: any, data: any) => void;
|
|
567
569
|
[key: string]: any;
|
|
568
570
|
}
|
|
571
|
+
|
|
569
572
|
export interface TabConfig extends FormItem, ContainerCommonConfig {
|
|
570
573
|
type: 'tab' | 'dynamic-tab';
|
|
571
574
|
tabType?: string;
|
|
@@ -717,6 +720,6 @@ export type ChildConfig =
|
|
|
717
720
|
| DynamicFieldConfig
|
|
718
721
|
| ComponentConfig;
|
|
719
722
|
|
|
720
|
-
export type FormConfig =
|
|
723
|
+
export type FormConfig = ChildConfig[];
|
|
721
724
|
|
|
722
725
|
export type FormValue = Record<string | number, any>;
|
package/src/theme/form.scss
CHANGED
|
@@ -47,14 +47,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
47
|
isCompare: boolean;
|
|
48
48
|
}>>> & {
|
|
49
49
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
50
|
-
onAddDiffCount?: ((...args: any[]) => any) | undefined;
|
|
51
50
|
onSelect?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
onAddDiffCount?: ((...args: any[]) => any) | undefined;
|
|
52
52
|
}, {
|
|
53
53
|
lastValues: any;
|
|
54
54
|
isCompare: boolean;
|
|
55
55
|
enableToggleMode: boolean;
|
|
56
|
-
prop: string;
|
|
57
56
|
showIndex: boolean;
|
|
57
|
+
prop: string;
|
|
58
58
|
sortKey: string;
|
|
59
59
|
}>, {
|
|
60
60
|
operateCol: (_: {
|
|
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
8
8
|
prop: string;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
size?: "default" | "small" | "large" | undefined;
|
|
11
|
+
lastValues?: Record<string, any> | undefined;
|
|
11
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
13
|
config: CascaderConfig;
|
|
13
14
|
model: any;
|
|
@@ -17,6 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
17
18
|
prop: string;
|
|
18
19
|
disabled?: boolean | undefined;
|
|
19
20
|
size?: "default" | "small" | "large" | undefined;
|
|
21
|
+
lastValues?: Record<string, any> | undefined;
|
|
20
22
|
}>>> & {
|
|
21
23
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
24
|
}, {}>;
|
|
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
8
8
|
prop: string;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
size?: "default" | "small" | "large" | undefined;
|
|
11
|
+
lastValues?: Record<string, any> | undefined;
|
|
11
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
13
|
config: CheckboxConfig;
|
|
13
14
|
model: any;
|
|
@@ -17,6 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
17
18
|
prop: string;
|
|
18
19
|
disabled?: boolean | undefined;
|
|
19
20
|
size?: "default" | "small" | "large" | undefined;
|
|
21
|
+
lastValues?: Record<string, any> | undefined;
|
|
20
22
|
}>>> & {
|
|
21
23
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
24
|
}, {}>;
|
|
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
8
8
|
prop: string;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
size?: "default" | "small" | "large" | undefined;
|
|
11
|
+
lastValues?: Record<string, any> | undefined;
|
|
11
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
13
|
config: CheckboxGroupConfig;
|
|
13
14
|
model: any;
|
|
@@ -17,6 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
17
18
|
prop: string;
|
|
18
19
|
disabled?: boolean | undefined;
|
|
19
20
|
size?: "default" | "small" | "large" | undefined;
|
|
21
|
+
lastValues?: Record<string, any> | undefined;
|
|
20
22
|
}>>> & {
|
|
21
23
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
24
|
}, {}>;
|
|
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
8
8
|
prop: string;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
size?: "default" | "small" | "large" | undefined;
|
|
11
|
+
lastValues?: Record<string, any> | undefined;
|
|
11
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
13
|
config: ColorPickConfig;
|
|
13
14
|
model: any;
|
|
@@ -17,6 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
17
18
|
prop: string;
|
|
18
19
|
disabled?: boolean | undefined;
|
|
19
20
|
size?: "default" | "small" | "large" | undefined;
|
|
21
|
+
lastValues?: Record<string, any> | undefined;
|
|
20
22
|
}>>> & {
|
|
21
23
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
24
|
}, {}>;
|
|
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
8
8
|
prop: string;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
size?: "default" | "small" | "large" | undefined;
|
|
11
|
+
lastValues?: Record<string, any> | undefined;
|
|
11
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
13
|
config: DateConfig;
|
|
13
14
|
model: any;
|
|
@@ -17,6 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
17
18
|
prop: string;
|
|
18
19
|
disabled?: boolean | undefined;
|
|
19
20
|
size?: "default" | "small" | "large" | undefined;
|
|
21
|
+
lastValues?: Record<string, any> | undefined;
|
|
20
22
|
}>>> & {
|
|
21
23
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
24
|
}, {}>;
|
|
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
8
8
|
prop: string;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
size?: "default" | "small" | "large" | undefined;
|
|
11
|
+
lastValues?: Record<string, any> | undefined;
|
|
11
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
13
|
config: DateTimeConfig;
|
|
13
14
|
model: any;
|
|
@@ -17,6 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
17
18
|
prop: string;
|
|
18
19
|
disabled?: boolean | undefined;
|
|
19
20
|
size?: "default" | "small" | "large" | undefined;
|
|
21
|
+
lastValues?: Record<string, any> | undefined;
|
|
20
22
|
}>>> & {
|
|
21
23
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
24
|
}, {}>;
|
|
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
8
8
|
prop: string;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
size?: "default" | "small" | "large" | undefined;
|
|
11
|
+
lastValues?: Record<string, any> | undefined;
|
|
11
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
12
13
|
config: DaterangeConfig;
|
|
13
14
|
model: any;
|
|
@@ -17,6 +18,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
17
18
|
prop: string;
|
|
18
19
|
disabled?: boolean | undefined;
|
|
19
20
|
size?: "default" | "small" | "large" | undefined;
|
|
21
|
+
lastValues?: Record<string, any> | undefined;
|
|
20
22
|
}>>> & {
|
|
21
23
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
24
|
}, {}>;
|
|
@@ -6,6 +6,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
6
6
|
values?: any;
|
|
7
7
|
name: string;
|
|
8
8
|
prop: string;
|
|
9
|
+
lastValues?: Record<string, any> | undefined;
|
|
9
10
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
10
11
|
config: DisplayConfig;
|
|
11
12
|
model: any;
|
|
@@ -13,6 +14,7 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimePr
|
|
|
13
14
|
values?: any;
|
|
14
15
|
name: string;
|
|
15
16
|
prop: string;
|
|
17
|
+
lastValues?: Record<string, any> | undefined;
|
|
16
18
|
}>>>, {}>;
|
|
17
19
|
export default _default;
|
|
18
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|