@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.
Files changed (50) hide show
  1. package/dist/style.css +3 -0
  2. package/dist/tmagic-form.js +104 -91
  3. package/dist/tmagic-form.js.map +1 -1
  4. package/dist/tmagic-form.umd.cjs +102 -89
  5. package/dist/tmagic-form.umd.cjs.map +1 -1
  6. package/package.json +3 -3
  7. package/src/containers/Container.vue +1 -1
  8. package/src/containers/Fieldset.vue +2 -9
  9. package/src/containers/Table.vue +1 -1
  10. package/src/containers/Tabs.vue +65 -60
  11. package/src/fields/Cascader.vue +2 -1
  12. package/src/fields/Checkbox.vue +1 -0
  13. package/src/fields/CheckboxGroup.vue +1 -0
  14. package/src/fields/ColorPicker.vue +1 -0
  15. package/src/fields/Date.vue +1 -0
  16. package/src/fields/DateTime.vue +1 -0
  17. package/src/fields/Daterange.vue +1 -0
  18. package/src/fields/Display.vue +1 -0
  19. package/src/fields/DynamicField.vue +1 -0
  20. package/src/fields/Hidden.vue +1 -0
  21. package/src/fields/Link.vue +1 -0
  22. package/src/fields/Number.vue +1 -0
  23. package/src/fields/RadioGroup.vue +1 -0
  24. package/src/fields/Select.vue +3 -2
  25. package/src/fields/Switch.vue +1 -0
  26. package/src/fields/Text.vue +4 -3
  27. package/src/fields/Textarea.vue +1 -0
  28. package/src/fields/Time.vue +1 -0
  29. package/src/schema.ts +4 -1
  30. package/src/theme/form.scss +6 -0
  31. package/types/containers/Table.vue.d.ts +2 -2
  32. package/types/fields/Cascader.vue.d.ts +2 -0
  33. package/types/fields/Checkbox.vue.d.ts +2 -0
  34. package/types/fields/CheckboxGroup.vue.d.ts +2 -0
  35. package/types/fields/ColorPicker.vue.d.ts +2 -0
  36. package/types/fields/Date.vue.d.ts +2 -0
  37. package/types/fields/DateTime.vue.d.ts +2 -0
  38. package/types/fields/Daterange.vue.d.ts +2 -0
  39. package/types/fields/Display.vue.d.ts +2 -0
  40. package/types/fields/DynamicField.vue.d.ts +2 -0
  41. package/types/fields/Hidden.vue.d.ts +2 -0
  42. package/types/fields/Link.vue.d.ts +2 -0
  43. package/types/fields/Number.vue.d.ts +2 -0
  44. package/types/fields/RadioGroup.vue.d.ts +2 -0
  45. package/types/fields/Select.vue.d.ts +2 -0
  46. package/types/fields/Switch.vue.d.ts +2 -0
  47. package/types/fields/Text.vue.d.ts +2 -0
  48. package/types/fields/Textarea.vue.d.ts +2 -0
  49. package/types/fields/Time.vue.d.ts +2 -0
  50. package/types/schema.d.ts +3 -3
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.14",
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.2.14",
40
- "@tmagic/utils": "1.2.14",
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 || props.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, watch } from 'vue';
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>
@@ -534,7 +534,7 @@ const clearHandler = () => {
534
534
  };
535
535
 
536
536
  const excelHandler = (file: any) => {
537
- if (!file || !file.raw) {
537
+ if (!file?.raw) {
538
538
  return false;
539
539
  }
540
540
  const reader = new FileReader();
@@ -1,71 +1,77 @@
1
1
  <template>
2
- <TMagicTabs
2
+ <component
3
3
  v-model="activeTabName"
4
- :class="config.dynamic ? 'magic-form-dynamic-tab' : 'magic-form-tab'"
5
- :type="config.tabType"
6
- :editable="config.editable || false"
7
- :tab-position="config.tabPosition || 'top'"
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
- <template v-for="(tab, tabIndex) in tabs">
13
- <component
14
- v-if="display(tab.display) && tabItems(tab).length"
15
- :is="uiComponent.component"
16
- :key="tab[mForm?.keyProp || '__key'] ?? tabIndex"
17
- :name="filter(tab.status) || tabIndex.toString()"
18
- :lazy="tab.lazy || false"
19
- >
20
- <template #label>
21
- <span>
22
- {{ filter(tab.title)
23
- }}<el-badge :hidden="!diffCount[tabIndex]" :value="diffCount[tabIndex]" class="diff-count-badge"></el-badge>
24
- </span>
25
- </template>
26
- <Container
27
- v-for="item in tabItems(tab)"
28
- :key="item[mForm?.keyProp || '__key']"
29
- :config="item"
30
- :disabled="disabled"
31
- :model="
32
- config.dynamic
33
- ? (name ? model[name] : model)[tabIndex]
34
- : tab.name
35
- ? (name ? model[name] : model)[tab.name]
36
- : name
37
- ? model[name]
38
- : model
39
- "
40
- :last-values="
41
- isEmpty(lastValues)
42
- ? {}
43
- : config.dynamic
44
- ? (name ? lastValues[name] : lastValues)[tabIndex]
45
- : tab.name
46
- ? (name ? lastValues[name] : lastValues)[tab.name]
47
- : name
48
- ? lastValues[name]
49
- : lastValues
50
- "
51
- :is-compare="isCompare"
52
- :prop="config.dynamic ? `${prop}${prop ? '.' : ''}${String(tabIndex)}` : prop"
53
- :size="size"
54
- :label-width="tab.labelWidth || labelWidth"
55
- :expand-more="expandMore"
56
- @change="changeHandler"
57
- @addDiffCount="onAddDiffCount(tabIndex)"
58
- ></Container>
59
- </component>
60
- </template>
61
- </TMagicTabs>
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, TMagicTabs } from '@tmagic/design';
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 uiComponent = getConfig('components').tabPane;
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') {
@@ -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 || !props.config.options.length || props.config.remote) {
89
+ } else if (!props.config.options?.length || props.config.remote) {
89
90
  Promise.resolve(setRemoteOptions());
90
91
  }
91
92
 
@@ -27,6 +27,7 @@ const props = defineProps<{
27
27
  prop: string;
28
28
  disabled?: boolean;
29
29
  size?: 'large' | 'default' | 'small';
30
+ lastValues?: Record<string, any>;
30
31
  }>();
31
32
 
32
33
  const emit = defineEmits(['change']);
@@ -29,6 +29,7 @@ const props = defineProps<{
29
29
  prop: string;
30
30
  disabled?: boolean;
31
31
  size?: 'large' | 'default' | 'small';
32
+ lastValues?: Record<string, any>;
32
33
  }>();
33
34
 
34
35
  const emit = defineEmits(['change']);
@@ -23,6 +23,7 @@ const props = defineProps<{
23
23
  prop: string;
24
24
  disabled?: boolean;
25
25
  size?: 'large' | 'default' | 'small';
26
+ lastValues?: Record<string, any>;
26
27
  }>();
27
28
 
28
29
  const emit = defineEmits(['change']);
@@ -27,6 +27,7 @@ const props = defineProps<{
27
27
  prop: string;
28
28
  disabled?: boolean;
29
29
  size?: 'large' | 'default' | 'small';
30
+ lastValues?: Record<string, any>;
30
31
  }>();
31
32
 
32
33
  const emit = defineEmits(['change']);
@@ -29,6 +29,7 @@ const props = defineProps<{
29
29
  prop: string;
30
30
  disabled?: boolean;
31
31
  size?: 'large' | 'default' | 'small';
32
+ lastValues?: Record<string, any>;
32
33
  }>();
33
34
 
34
35
  const emit = defineEmits(['change']);
@@ -31,6 +31,7 @@ const props = defineProps<{
31
31
  prop: string;
32
32
  disabled?: boolean;
33
33
  size?: 'large' | 'default' | 'small';
34
+ lastValues?: Record<string, any>;
34
35
  }>();
35
36
 
36
37
  const emit = defineEmits(['change']);
@@ -13,6 +13,7 @@ const props = defineProps<{
13
13
  values?: any;
14
14
  name: string;
15
15
  prop: string;
16
+ lastValues?: Record<string, any>;
16
17
  }>();
17
18
 
18
19
  if (props.config.initValue && props.model) {
@@ -40,6 +40,7 @@ const props = defineProps<{
40
40
  prop: string;
41
41
  disabled?: boolean;
42
42
  size?: 'large' | 'default' | 'small';
43
+ lastValues?: Record<string, any>;
43
44
  }>();
44
45
 
45
46
  const emit = defineEmits(['change']);
@@ -13,6 +13,7 @@ const props = defineProps<{
13
13
  values?: any;
14
14
  name: string;
15
15
  prop: string;
16
+ lastValues?: Record<string, any>;
16
17
  }>();
17
18
 
18
19
  useAddField(props.prop);
@@ -34,6 +34,7 @@ const props = defineProps<{
34
34
  prop: string;
35
35
  disabled?: boolean;
36
36
  size?: 'large' | 'default' | 'small';
37
+ lastValues?: Record<string, any>;
37
38
  }>();
38
39
 
39
40
  const emit = defineEmits(['change']);
@@ -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', 'input']);
@@ -25,6 +25,7 @@ const props = defineProps<{
25
25
  prop: string;
26
26
  disabled?: boolean;
27
27
  size?: 'large' | 'default' | 'small';
28
+ lastValues?: Record<string, any>;
28
29
  }>();
29
30
 
30
31
  const emit = defineEmits(['change']);
@@ -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']);
@@ -26,6 +26,7 @@ const props = defineProps<{
26
26
  prop: string;
27
27
  disabled?: boolean;
28
28
  size?: 'large' | 'default' | 'small';
29
+ lastValues?: Record<string, any>;
29
30
  }>();
30
31
 
31
32
  const emit = defineEmits(['change']);
@@ -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
- <el-button
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
- </el-button>
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']);
@@ -29,6 +29,7 @@ const props = defineProps<{
29
29
  prop: string;
30
30
  disabled?: boolean;
31
31
  size?: 'large' | 'default' | 'small';
32
+ lastValues?: Record<string, any>;
32
33
  }>();
33
34
 
34
35
  const emit = defineEmits(['change', 'input']);
@@ -25,6 +25,7 @@ const props = defineProps<{
25
25
  prop: string;
26
26
  disabled?: boolean;
27
27
  size?: 'large' | 'default' | 'small';
28
+ lastValues?: Record<string, any>;
28
29
  }>();
29
30
 
30
31
  const emit = defineEmits(['change']);
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 = (ChildConfig & { [key: string]: any })[];
723
+ export type FormConfig = ChildConfig[];
721
724
 
722
725
  export type FormValue = Record<string | number, any>;
@@ -34,4 +34,10 @@
34
34
  display: none;
35
35
  }
36
36
  }
37
+
38
+ .t-form__item.hidden {
39
+ > .t-form__label {
40
+ display: none;
41
+ }
42
+ }
37
43
  }
@@ -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;