|
|
@@ -101,8 +101,13 @@ const props = withDefaults(defineProps<{
|
|
|
|
|
|
const tagStyle = inject<Ref<Record<string, string>>>('tagStyle', ref({}));
|
|
|
const style = computed(() =>
|
|
|
- [(props.node.attrs?.style || ''), (tagStyle.value[props.node.tag] || '')].join(';'),
|
|
|
+ [
|
|
|
+ (props.node.attrs?.style || ''),
|
|
|
+ (tagStyle.value[props.node.tag] || ''),
|
|
|
+ isInline.value ? 'display:inline;' : '',
|
|
|
+ ].join(';'),
|
|
|
);
|
|
|
+const isInline = computed(() => ['span','a','large','small'].includes(props.node.tag));
|
|
|
|
|
|
// 链接点击事件
|
|
|
const linkTap = (e: any) => {
|