mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-05 19:41:40 +08:00
chore(form): 调整size声明
This commit is contained in:
parent
649c80b0ff
commit
c3a57a2bea
@ -31,7 +31,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -26,7 +26,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -1,6 +1,11 @@
|
||||
<template>
|
||||
<TMagicCheckboxGroup v-model="model[name]" :size="size" :disabled="disabled" @change="changeHandler">
|
||||
<TMagicCheckbox v-for="option in options" :label="option.value" :key="option.value" :disabled="option.disabled"
|
||||
<TMagicCheckbox
|
||||
v-for="option in options"
|
||||
:label="option.value"
|
||||
:value="option.value"
|
||||
:key="option.value"
|
||||
:disabled="option.disabled"
|
||||
>{{ option.text }}
|
||||
</TMagicCheckbox>
|
||||
</TMagicCheckboxGroup>
|
||||
@ -23,7 +28,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -22,7 +22,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -26,7 +26,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -28,7 +28,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -30,7 +30,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -39,7 +39,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -33,7 +33,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -31,7 +31,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change', 'input']);
|
||||
|
@ -1,8 +1,12 @@
|
||||
<template>
|
||||
<TMagicRadioGroup v-if="model" v-model="model[name]" :size="size" :disabled="disabled" @change="changeHandler">
|
||||
<TMagicRadio v-for="option in config.options" :label="option.value" :key="`${option.value}`">{{
|
||||
option.text
|
||||
}}</TMagicRadio>
|
||||
<TMagicRadio
|
||||
v-for="option in config.options"
|
||||
:label="option.value"
|
||||
:value="option.value"
|
||||
:key="`${option.value}`"
|
||||
>{{ option.text }}</TMagicRadio
|
||||
>
|
||||
</TMagicRadioGroup>
|
||||
</template>
|
||||
|
||||
@ -20,7 +24,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -45,7 +45,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -25,7 +25,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
@ -40,7 +40,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change', 'input']);
|
||||
|
@ -28,7 +28,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change', 'input']);
|
||||
|
@ -24,7 +24,7 @@ const props = defineProps<{
|
||||
name: string;
|
||||
prop: string;
|
||||
disabled?: boolean;
|
||||
size: 'mini' | 'small' | 'medium';
|
||||
size?: 'large' | 'default' | 'small';
|
||||
}>();
|
||||
|
||||
const emit = defineEmits(['change']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user