fix(tmagic-form-runtime): 画布无法点击选中组件
This commit is contained in:
@@ -1,12 +1,5 @@
|
||||
<template>
|
||||
<MForm
|
||||
ref="mForm"
|
||||
:key="config?.id"
|
||||
:id="config?.id"
|
||||
:data-magic-id="config?.id"
|
||||
:config="formConfig"
|
||||
:init-values="values"
|
||||
></MForm>
|
||||
<MForm ref="mForm" :key="config?.id" :data-tmagic-id="config?.id" :config="formConfig" :init-values="values"></MForm>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
|
||||
@@ -12,8 +12,6 @@ export * from './component-group-list';
|
||||
|
||||
export const propsConfigs = formConfigs;
|
||||
|
||||
export const canSelect = (el: HTMLElement) => Boolean(el.dataset.magicId);
|
||||
|
||||
export const useRuntime = ({
|
||||
plugins = [],
|
||||
fillConfig = (config) => config,
|
||||
|
||||
@@ -24,6 +24,7 @@ export const useFormConfig = (props: AppProps) => {
|
||||
|
||||
let app: TMagicApp | undefined = new TMagicApp({
|
||||
ua: contentWindow?.navigator.userAgent,
|
||||
disabledFlexible: true,
|
||||
platform: 'editor',
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user