mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(design): button 判断默认slot
This commit is contained in:
parent
24604c9d36
commit
a97523e800
@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<component class="tmagic-design-button" :is="uiComponent.component" v-bind="uiProps" @click="clickHandler">
|
<component class="tmagic-design-button" :is="uiComponent.component" v-bind="uiProps" @click="clickHandler">
|
||||||
<slot></slot>
|
<template #default v-if="$slots.default">
|
||||||
|
<slot></slot>
|
||||||
|
</template>
|
||||||
</component>
|
</component>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ const form = ref<any>();
|
|||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
model?: any;
|
model?: any;
|
||||||
labelWidth?: string;
|
labelWidth?: string | number;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
inline?: boolean;
|
inline?: boolean;
|
||||||
labelPosition?: string;
|
labelPosition?: string;
|
||||||
|
@ -13,7 +13,7 @@ import { computed } from 'vue';
|
|||||||
import { getConfig } from './config';
|
import { getConfig } from './config';
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
prop?: string;
|
prop?: string;
|
||||||
labelWidth?: string;
|
labelWidth?: string | number;
|
||||||
rules?: any;
|
rules?: any;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user