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>
|
||||
<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>
|
||||
</template>
|
||||
|
||||
|
@ -13,7 +13,7 @@ const form = ref<any>();
|
||||
|
||||
const props = defineProps<{
|
||||
model?: any;
|
||||
labelWidth?: string;
|
||||
labelWidth?: string | number;
|
||||
disabled?: boolean;
|
||||
inline?: boolean;
|
||||
labelPosition?: string;
|
||||
|
@ -13,7 +13,7 @@ import { computed } from 'vue';
|
||||
import { getConfig } from './config';
|
||||
const props = defineProps<{
|
||||
prop?: string;
|
||||
labelWidth?: string;
|
||||
labelWidth?: string | number;
|
||||
rules?: any;
|
||||
}>();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user