1
0
mirror of synced 2026-04-05 16:08:37 +08:00

style(editor,form): 统一表单组件props定义

This commit is contained in:
roymondchen
2023-08-04 16:39:46 +08:00
parent 46f6aeaaf7
commit c389c614d7
34 changed files with 187 additions and 386 deletions

View File

@@ -14,8 +14,7 @@
<script setup lang="ts">
import { computed, inject } from 'vue';
import { FieldSize } from '@tmagic/design';
import { MSelect, SelectConfig } from '@tmagic/form';
import { FieldProps, MSelect, SelectConfig } from '@tmagic/form';
import { Services } from '../type';
@@ -26,21 +25,15 @@ defineOptions({
const emit = defineEmits(['change']);
const props = withDefaults(
defineProps<{
config: {
defineProps<
FieldProps<{
type: 'data-source-select';
name: string;
text: string;
placeholder: string;
dataSourceType?: string;
};
model: Record<string, any>;
name: string;
prop: string;
disabled: boolean;
lastValues?: Record<string, any>;
size?: FieldSize;
}>(),
}>
>(),
{
disabled: false,
},