@tmagic/editor 1.3.0-alpha.16 → 1.3.0-alpha.17

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 (51) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/tmagic-editor.js +933 -673
  3. package/dist/tmagic-editor.js.map +1 -1
  4. package/dist/tmagic-editor.umd.cjs +944 -678
  5. package/dist/tmagic-editor.umd.cjs.map +1 -1
  6. package/package.json +12 -12
  7. package/src/components/CodeBlockEditor.vue +1 -0
  8. package/src/fields/Code.vue +6 -10
  9. package/src/fields/CodeLink.vue +6 -7
  10. package/src/fields/CodeSelect.vue +5 -8
  11. package/src/fields/CodeSelectCol.vue +4 -15
  12. package/src/fields/DataSourceFieldSelect.vue +47 -0
  13. package/src/fields/DataSourceFields.vue +5 -10
  14. package/src/fields/DataSourceInput.vue +9 -12
  15. package/src/fields/DataSourceMethodSelect.vue +5 -16
  16. package/src/fields/DataSourceMethods.vue +6 -11
  17. package/src/fields/DataSourceSelect.vue +5 -12
  18. package/src/fields/EventSelect.vue +20 -12
  19. package/src/fields/KeyValue.vue +9 -11
  20. package/src/fields/UISelect.vue +19 -10
  21. package/src/index.ts +3 -0
  22. package/src/initService.ts +36 -16
  23. package/src/layouts/sidebar/code-block/CodeBlockList.vue +2 -2
  24. package/src/layouts/sidebar/data-source/DataSourceConfigPanel.vue +1 -0
  25. package/src/layouts/sidebar/data-source/DataSourceList.vue +51 -17
  26. package/src/services/dep.ts +19 -19
  27. package/src/theme/code-editor.scss +1 -1
  28. package/src/type.ts +20 -0
  29. package/src/utils/dep.ts +33 -7
  30. package/src/utils/props.ts +298 -189
  31. package/src/utils/stage.ts +3 -5
  32. package/types/fields/Code.vue.d.ts +11 -26
  33. package/types/fields/CodeLink.vue.d.ts +12 -21
  34. package/types/fields/CodeSelect.vue.d.ts +6 -17
  35. package/types/fields/CodeSelectCol.vue.d.ts +3 -18
  36. package/types/fields/DataSourceFieldSelect.vue.d.ts +29 -0
  37. package/types/fields/DataSourceFields.vue.d.ts +7 -20
  38. package/types/fields/DataSourceInput.vue.d.ts +10 -30
  39. package/types/fields/DataSourceMethodSelect.vue.d.ts +3 -18
  40. package/types/fields/DataSourceMethods.vue.d.ts +7 -20
  41. package/types/fields/DataSourceSelect.vue.d.ts +13 -29
  42. package/types/fields/EventSelect.vue.d.ts +2 -13
  43. package/types/fields/KeyValue.vue.d.ts +9 -24
  44. package/types/fields/UISelect.vue.d.ts +2 -11
  45. package/types/index.d.ts +1 -0
  46. package/types/initService.d.ts +1 -1
  47. package/types/services/dep.d.ts +12 -21
  48. package/types/services/props.d.ts +8 -113
  49. package/types/type.d.ts +18 -0
  50. package/types/utils/dep.d.ts +4 -2
  51. package/types/utils/props.d.ts +13 -102
@@ -16,7 +16,300 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- import { FormConfig, FormState } from '@tmagic/form';
19
+ import type { FormConfig, FormState, TabPaneConfig } from '@tmagic/form';
20
+
21
+ import dataSourceService from '@editor/services/dataSource';
22
+
23
+ const arrayOptions = [
24
+ { text: '包含', value: 'include' },
25
+ { text: '不包含', value: 'not_include' },
26
+ ];
27
+
28
+ const eqOptions = [
29
+ { text: '等于', value: '=' },
30
+ { text: '不等于', value: '!=' },
31
+ ];
32
+
33
+ const numberOptions = [
34
+ { text: '大于', value: '>' },
35
+ { text: '大于等于', value: '>=' },
36
+ { text: '小于', value: '<' },
37
+ { text: '小于等于', value: '<=' },
38
+ { text: '在范围内', value: 'between' },
39
+ { text: '不在范围内', value: 'not_between' },
40
+ ];
41
+
42
+ export const styleTabConfig: TabPaneConfig = {
43
+ title: '样式',
44
+ labelWidth: '80px',
45
+ items: [
46
+ {
47
+ name: 'style',
48
+ items: [
49
+ {
50
+ type: 'fieldset',
51
+ legend: '位置',
52
+ items: [
53
+ {
54
+ name: 'position',
55
+ type: 'checkbox',
56
+ activeValue: 'fixed',
57
+ inactiveValue: 'absolute',
58
+ defaultValue: 'absolute',
59
+ text: '固定定位',
60
+ },
61
+ {
62
+ name: 'left',
63
+ text: 'left',
64
+ },
65
+ {
66
+ name: 'top',
67
+ text: 'top',
68
+ disabled: (vm: FormState, { model }: any) =>
69
+ model.position === 'fixed' && model._magic_position === 'fixedBottom',
70
+ },
71
+ {
72
+ name: 'right',
73
+ text: 'right',
74
+ },
75
+ {
76
+ name: 'bottom',
77
+ text: 'bottom',
78
+ disabled: (vm: FormState, { model }: any) =>
79
+ model.position === 'fixed' && model._magic_position === 'fixedTop',
80
+ },
81
+ ],
82
+ },
83
+ {
84
+ type: 'fieldset',
85
+ legend: '盒子',
86
+ items: [
87
+ {
88
+ name: 'width',
89
+ text: '宽度',
90
+ },
91
+ {
92
+ name: 'height',
93
+ text: '高度',
94
+ },
95
+ ],
96
+ },
97
+ {
98
+ type: 'fieldset',
99
+ legend: '边框',
100
+ items: [
101
+ {
102
+ name: 'borderWidth',
103
+ text: '宽度',
104
+ defaultValue: '0',
105
+ },
106
+ {
107
+ name: 'borderColor',
108
+ text: '颜色',
109
+ type: 'colorPicker',
110
+ },
111
+ {
112
+ name: 'borderStyle',
113
+ text: '样式',
114
+ type: 'select',
115
+ defaultValue: 'none',
116
+ options: [
117
+ { text: 'none', value: 'none' },
118
+ { text: 'hidden', value: 'hidden' },
119
+ { text: 'dotted', value: 'dotted' },
120
+ { text: 'dashed', value: 'dashed' },
121
+ { text: 'solid', value: 'solid' },
122
+ { text: 'double', value: 'double' },
123
+ { text: 'groove', value: 'groove' },
124
+ { text: 'ridge', value: 'ridge' },
125
+ { text: 'inset', value: 'inset' },
126
+ { text: 'outset', value: 'outset' },
127
+ ],
128
+ },
129
+ ],
130
+ },
131
+ {
132
+ type: 'fieldset',
133
+ legend: '背景',
134
+ items: [
135
+ {
136
+ name: 'backgroundImage',
137
+ text: '背景图',
138
+ },
139
+ {
140
+ name: 'backgroundColor',
141
+ text: '背景颜色',
142
+ type: 'colorPicker',
143
+ },
144
+ {
145
+ name: 'backgroundRepeat',
146
+ text: '背景图重复',
147
+ type: 'select',
148
+ defaultValue: 'no-repeat',
149
+ options: [
150
+ { text: 'repeat', value: 'repeat' },
151
+ { text: 'repeat-x', value: 'repeat-x' },
152
+ { text: 'repeat-y', value: 'repeat-y' },
153
+ { text: 'no-repeat', value: 'no-repeat' },
154
+ { text: 'inherit', value: 'inherit' },
155
+ ],
156
+ },
157
+ {
158
+ name: 'backgroundSize',
159
+ text: '背景图大小',
160
+ defaultValue: '100% 100%',
161
+ },
162
+ ],
163
+ },
164
+ {
165
+ type: 'fieldset',
166
+ legend: '字体',
167
+ items: [
168
+ {
169
+ name: 'color',
170
+ text: '颜色',
171
+ type: 'colorPicker',
172
+ },
173
+ {
174
+ name: 'fontSize',
175
+ text: '大小',
176
+ },
177
+ {
178
+ name: 'fontWeight',
179
+ text: '粗细',
180
+ },
181
+ ],
182
+ },
183
+ {
184
+ type: 'fieldset',
185
+ legend: '变形',
186
+ name: 'transform',
187
+ items: [
188
+ {
189
+ name: 'rotate',
190
+ text: '旋转角度',
191
+ },
192
+ {
193
+ name: 'scale',
194
+ text: '缩放',
195
+ },
196
+ ],
197
+ },
198
+ ],
199
+ },
200
+ ],
201
+ };
202
+
203
+ export const eventTabConfig: TabPaneConfig = {
204
+ title: '事件',
205
+ items: [
206
+ {
207
+ name: 'events',
208
+ type: 'event-select',
209
+ },
210
+ ],
211
+ };
212
+
213
+ export const advancedTabConfig: TabPaneConfig = {
214
+ title: '高级',
215
+ lazy: true,
216
+ items: [
217
+ {
218
+ name: 'created',
219
+ text: 'created',
220
+ labelWidth: '100px',
221
+ type: 'code-select',
222
+ },
223
+ {
224
+ name: 'mounted',
225
+ text: 'mounted',
226
+ labelWidth: '100px',
227
+ type: 'code-select',
228
+ },
229
+ ],
230
+ };
231
+
232
+ export const displayTabConfig: TabPaneConfig = {
233
+ title: '显示条件',
234
+ display: (vm: FormState, { model }: any) => model.type !== 'page',
235
+ items: [
236
+ {
237
+ type: 'groupList',
238
+ name: 'displayConds',
239
+ items: [
240
+ {
241
+ type: 'table',
242
+ name: 'cond',
243
+ items: [
244
+ {
245
+ type: 'data-source-field-select',
246
+ name: 'field',
247
+ label: '字段',
248
+ },
249
+ {
250
+ type: 'select',
251
+ options: (mForm: FormState | undefined, { model }: any) => {
252
+ const [id, field] = model.field;
253
+
254
+ const ds = dataSourceService.getDataSourceById(id);
255
+
256
+ const type = ds?.fields.find((f) => f.name === field)?.type;
257
+
258
+ if (type === 'array') {
259
+ return arrayOptions;
260
+ }
261
+
262
+ if (type === 'boolean') {
263
+ return [
264
+ { text: '是', value: 'is' },
265
+ { text: '不是', value: 'not' },
266
+ ];
267
+ }
268
+
269
+ if (type === 'number') {
270
+ return [...eqOptions, ...numberOptions];
271
+ }
272
+
273
+ if (type === 'string') {
274
+ return [...arrayOptions, ...eqOptions];
275
+ }
276
+
277
+ return [...arrayOptions, ...eqOptions, ...numberOptions];
278
+ },
279
+ label: '条件',
280
+ name: 'op',
281
+ },
282
+ {
283
+ label: '值',
284
+ items: [
285
+ {
286
+ name: 'value',
287
+ display: (vm: FormState, { model }: any) =>
288
+ !['between', 'not_between', 'is', 'not'].includes(model.op),
289
+ },
290
+ {
291
+ name: 'value',
292
+ type: 'select',
293
+ options: [
294
+ { text: 'true', value: true },
295
+ { text: 'false', value: false },
296
+ ],
297
+ display: (vm: FormState, { model }: any) => ['is', 'not'].includes(model.op),
298
+ },
299
+ {
300
+ name: 'range',
301
+ type: 'number-range',
302
+ display: (vm: FormState, { model }: any) =>
303
+ ['between', 'not_between'].includes(model.op) && !['is', 'not'].includes(model.op),
304
+ },
305
+ ],
306
+ },
307
+ ],
308
+ },
309
+ ],
310
+ },
311
+ ],
312
+ };
20
313
 
21
314
  /**
22
315
  * 统一为组件属性表单加上事件、高级、样式配置
@@ -50,194 +343,10 @@ export const fillConfig = (config: FormConfig = []) => [
50
343
  ...config,
51
344
  ],
52
345
  },
53
- {
54
- title: '样式',
55
- labelWidth: '80px',
56
- items: [
57
- {
58
- name: 'style',
59
- items: [
60
- {
61
- type: 'fieldset',
62
- legend: '位置',
63
- items: [
64
- {
65
- name: 'position',
66
- type: 'checkbox',
67
- activeValue: 'fixed',
68
- inactiveValue: 'absolute',
69
- defaultValue: 'absolute',
70
- text: '固定定位',
71
- },
72
- {
73
- name: 'left',
74
- text: 'left',
75
- },
76
- {
77
- name: 'top',
78
- text: 'top',
79
- disabled: (vm: FormState, { model }: any) =>
80
- model.position === 'fixed' && model._magic_position === 'fixedBottom',
81
- },
82
- {
83
- name: 'right',
84
- text: 'right',
85
- },
86
- {
87
- name: 'bottom',
88
- text: 'bottom',
89
- disabled: (vm: FormState, { model }: any) =>
90
- model.position === 'fixed' && model._magic_position === 'fixedTop',
91
- },
92
- ],
93
- },
94
- {
95
- type: 'fieldset',
96
- legend: '盒子',
97
- items: [
98
- {
99
- name: 'width',
100
- text: '宽度',
101
- },
102
- {
103
- name: 'height',
104
- text: '高度',
105
- },
106
- ],
107
- },
108
- {
109
- type: 'fieldset',
110
- legend: '边框',
111
- items: [
112
- {
113
- name: 'borderWidth',
114
- text: '宽度',
115
- defaultValue: '0',
116
- },
117
- {
118
- name: 'borderColor',
119
- text: '颜色',
120
- type: 'colorPicker',
121
- },
122
- {
123
- name: 'borderStyle',
124
- text: '样式',
125
- type: 'select',
126
- defaultValue: 'none',
127
- options: [
128
- { text: 'none', value: 'none' },
129
- { text: 'hidden', value: 'hidden' },
130
- { text: 'dotted', value: 'dotted' },
131
- { text: 'dashed', value: 'dashed' },
132
- { text: 'solid', value: 'solid' },
133
- { text: 'double', value: 'double' },
134
- { text: 'groove', value: 'groove' },
135
- { text: 'ridge', value: 'ridge' },
136
- { text: 'inset', value: 'inset' },
137
- { text: 'outset', value: 'outset' },
138
- ],
139
- },
140
- ],
141
- },
142
- {
143
- type: 'fieldset',
144
- legend: '背景',
145
- items: [
146
- {
147
- name: 'backgroundImage',
148
- text: '背景图',
149
- },
150
- {
151
- name: 'backgroundColor',
152
- text: '背景颜色',
153
- type: 'colorPicker',
154
- },
155
- {
156
- name: 'backgroundRepeat',
157
- text: '背景图重复',
158
- type: 'select',
159
- defaultValue: 'no-repeat',
160
- options: [
161
- { text: 'repeat', value: 'repeat' },
162
- { text: 'repeat-x', value: 'repeat-x' },
163
- { text: 'repeat-y', value: 'repeat-y' },
164
- { text: 'no-repeat', value: 'no-repeat' },
165
- { text: 'inherit', value: 'inherit' },
166
- ],
167
- },
168
- {
169
- name: 'backgroundSize',
170
- text: '背景图大小',
171
- defaultValue: '100% 100%',
172
- },
173
- ],
174
- },
175
- {
176
- type: 'fieldset',
177
- legend: '字体',
178
- items: [
179
- {
180
- name: 'color',
181
- text: '颜色',
182
- type: 'colorPicker',
183
- },
184
- {
185
- name: 'fontSize',
186
- text: '大小',
187
- },
188
- {
189
- name: 'fontWeight',
190
- text: '粗细',
191
- },
192
- ],
193
- },
194
- {
195
- type: 'fieldset',
196
- legend: '变形',
197
- name: 'transform',
198
- items: [
199
- {
200
- name: 'rotate',
201
- text: '旋转角度',
202
- },
203
- {
204
- name: 'scale',
205
- text: '缩放',
206
- },
207
- ],
208
- },
209
- ],
210
- },
211
- ],
212
- },
213
- {
214
- title: '事件',
215
- items: [
216
- {
217
- name: 'events',
218
- type: 'event-select',
219
- labelWidth: 0,
220
- },
221
- ],
222
- },
223
- {
224
- title: '高级',
225
- lazy: true,
226
- items: [
227
- {
228
- name: 'created',
229
- text: 'created',
230
- labelWidth: '100px',
231
- type: 'code-select',
232
- },
233
- {
234
- name: 'mounted',
235
- text: 'mounted',
236
- labelWidth: '100px',
237
- type: 'code-select',
238
- },
239
- ],
240
- },
346
+ { ...styleTabConfig },
347
+ { ...eventTabConfig },
348
+ { ...advancedTabConfig },
349
+ { ...displayTabConfig },
241
350
  ],
242
351
  },
243
352
  ];
@@ -1,5 +1,6 @@
1
1
  import { computed } from 'vue';
2
2
 
3
+ import type { MNode } from '@tmagic/schema';
3
4
  import StageCore, { GuidesType, RemoveEventData, SortEventData, UpdateEventData } from '@tmagic/stage';
4
5
 
5
6
  import editorService from '@editor/services/editor';
@@ -74,11 +75,8 @@ export const useStage = (stageOptions: StageOptions) => {
74
75
  });
75
76
 
76
77
  stage.on('remove', (ev: RemoveEventData) => {
77
- editorService.remove(
78
- ev.data.map(({ el }) => ({
79
- id: el.id,
80
- })),
81
- );
78
+ const nodes = ev.data.map(({ el }) => editorService.getNodeById(el.id));
79
+ editorService.remove(nodes.filter((node) => Boolean(node)) as MNode[]);
82
80
  });
83
81
 
84
82
  stage.on('select-parent', () => {
@@ -1,30 +1,15 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- config: {
3
- language?: string | undefined;
4
- options?: Object | undefined;
5
- height?: string | undefined;
6
- };
7
- model: any;
8
- name: string;
9
- prop: string;
10
- lastValues?: any;
11
- disabled?: boolean | undefined;
12
- size?: "default" | "small" | "large" | undefined;
13
- }>, {
1
+ import type { FieldProps } from '@tmagic/form';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
3
+ language?: string | undefined;
4
+ options?: Object | undefined;
5
+ height?: string | undefined;
6
+ }>>, {
14
7
  disabled: boolean;
15
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
- config: {
17
- language?: string | undefined;
18
- options?: Object | undefined;
19
- height?: string | undefined;
20
- };
21
- model: any;
22
- name: string;
23
- prop: string;
24
- lastValues?: any;
25
- disabled?: boolean | undefined;
26
- size?: "default" | "small" | "large" | undefined;
27
- }>, {
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
9
+ language?: string | undefined;
10
+ options?: Object | undefined;
11
+ height?: string | undefined;
12
+ }>>, {
28
13
  disabled: boolean;
29
14
  }>>> & {
30
15
  onChange?: ((...args: any[]) => any) | undefined;
@@ -1,26 +1,17 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
- config: {
3
- type: "code-link";
4
- name: string;
5
- text?: string | undefined;
6
- formTitle?: string | undefined;
7
- codeOptions?: Object | undefined;
8
- };
9
- model: any;
1
+ import type { FieldProps } from '@tmagic/form';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<FieldProps<{
3
+ type: "code-link";
10
4
  name: string;
11
- prop: string;
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<{
13
- config: {
14
- type: "code-link";
15
- name: string;
16
- text?: string | undefined;
17
- formTitle?: string | undefined;
18
- codeOptions?: Object | undefined;
19
- };
20
- model: any;
5
+ text?: string | undefined;
6
+ formTitle?: string | undefined;
7
+ codeOptions?: Object | undefined;
8
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FieldProps<{
9
+ type: "code-link";
21
10
  name: string;
22
- prop: string;
23
- }>>> & {
11
+ text?: string | undefined;
12
+ formTitle?: string | undefined;
13
+ codeOptions?: Object | undefined;
14
+ }>>>> & {
24
15
  onChange?: ((...args: any[]) => any) | undefined;
25
16
  }, {}, {}>;
26
17
  export default _default;
@@ -1,20 +1,9 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
- config: {
3
- className?: string | undefined;
4
- };
5
- model: any;
6
- prop: string;
7
- name: string;
8
- size: "default" | "small" | "large";
9
- }>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
10
- config: {
11
- className?: string | undefined;
12
- };
13
- model: any;
14
- prop: string;
15
- name: string;
16
- size: "default" | "small" | "large";
17
- }>, {}>>> & {
1
+ import type { FieldProps } from '@tmagic/form';
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
3
+ className?: string | undefined;
4
+ }>>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<{
5
+ className?: string | undefined;
6
+ }>>, {}>>> & {
18
7
  onChange?: ((...args: any[]) => any) | undefined;
19
8
  }, {}, {}>;
20
9
  export default _default;
@@ -1,23 +1,8 @@
1
+ import { FieldProps } from '@tmagic/form';
1
2
  import type { CodeSelectColConfig } from '../type';
2
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
- config: CodeSelectColConfig;
4
- model: any;
5
- prop: string;
6
- name: string;
7
- lastValues?: any;
8
- disabled?: boolean | undefined;
9
- size: "default" | "small" | "large";
10
- }>, {
3
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<CodeSelectColConfig>>, {
11
4
  disabled: boolean;
12
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
- config: CodeSelectColConfig;
14
- model: any;
15
- prop: string;
16
- name: string;
17
- lastValues?: any;
18
- disabled?: boolean | undefined;
19
- size: "default" | "small" | "large";
20
- }>, {
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<CodeSelectColConfig>>, {
21
6
  disabled: boolean;
22
7
  }>>> & {
23
8
  onChange?: ((...args: any[]) => any) | undefined;
@@ -0,0 +1,29 @@
1
+ import type { FieldProps } from '@tmagic/form';
2
+ import type { DataSourceFieldSelectConfig } from '../type';
3
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<DataSourceFieldSelectConfig>>, {
4
+ disabled: boolean;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FieldProps<DataSourceFieldSelectConfig>>, {
6
+ disabled: boolean;
7
+ }>>> & {
8
+ onChange?: ((...args: any[]) => any) | undefined;
9
+ }, {
10
+ disabled: boolean;
11
+ }, {}>;
12
+ export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ type __VLS_WithDefaults<P, D> = {
23
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
24
+ default: D[K];
25
+ }> : P[K];
26
+ };
27
+ type __VLS_Prettify<T> = {
28
+ [K in keyof T]: T[K];
29
+ } & {};