diff --git a/src/components/DesignForm/dragControl.vue b/src/components/DesignForm/dragControl.vue index 8f610b1c7..92e965505 100644 --- a/src/components/DesignForm/dragControl.vue +++ b/src/components/DesignForm/dragControl.vue @@ -41,7 +41,7 @@ const searchField = [ 'component', 'button' ] -const designType = inject('formDesignType') as string +const designType = inject('formDesignType') as string //注入一个由祖先组件或整个应用 (通过 app.provide()) 提供的值。 const formDataList = ref([]) const isSearch = computed(() => { return designType === 'search' @@ -82,6 +82,7 @@ const useTemplateClick = () => { useTemplateEl.value.open() } const useTemplateSelect = (data: FormData) => { + console.log("使用模版",data); emits('click', data) } const clone = (origin: any) => { @@ -197,7 +198,9 @@ const setupStatus = (val:any) =>{ ref="useTemplateEl" @click="useTemplateSelect" /> +
版本
+ {{props.formId}} 启用 diff --git a/src/components/DesignForm/dragControlNew.vue b/src/components/DesignForm/dragControlNew.vue new file mode 100644 index 000000000..2b899b6ee --- /dev/null +++ b/src/components/DesignForm/dragControlNew.vue @@ -0,0 +1,141 @@ + + + + diff --git a/src/components/DesignForm/formVersion.vue b/src/components/DesignForm/formVersion.vue new file mode 100644 index 000000000..40f6e57a3 --- /dev/null +++ b/src/components/DesignForm/formVersion.vue @@ -0,0 +1,139 @@ + + + + diff --git a/src/types/components.d.ts b/src/types/components.d.ts index 494e33af9..58d574dfb 100644 --- a/src/types/components.d.ts +++ b/src/types/components.d.ts @@ -22,6 +22,7 @@ declare module '@vue/runtime-core' { DesignLayoutPage: typeof import('./../components/DesignForm/designLayout/designLayoutPage.vue')['default'] DiyIconfont: typeof import('./../components/DesignForm/public/expand/diy-iconfont.vue')['default'] DragControl: typeof import('./../components/DesignForm/dragControl.vue')['default'] + DragControlNew: typeof import('./../components/DesignForm/dragControlNew.vue')['default'] ElAffix: typeof import('element-plus/es')['ElAffix'] ElAside: typeof import('element-plus/es')['ElAside'] ElAvatar: typeof import('element-plus/es')['ElAvatar'] @@ -105,6 +106,7 @@ declare module '@vue/runtime-core' { FormGroup1: typeof import('./../components/DesignForm/public/form/formGroup1.vue')['default'] FormItem: typeof import('./../components/DesignForm/public/form/formItem.vue')['default'] FormPageCont: typeof import('./../components/DesignForm/tableListPage/formPageCont.vue')['default'] + FormVersion: typeof import('./../components/DesignForm/formVersion.vue')['default'] FormWord: typeof import('./../components/workflow/dialog/formWord.vue')['default'] GithubCorner: typeof import('./../components/GithubCorner/index.vue')['default'] Hamburger: typeof import('./../components/Hamburger/index.vue')['default'] diff --git a/src/views/sysworkflow/lowcodepage/appFormList.vue b/src/views/sysworkflow/lowcodepage/appFormList.vue index 2a64a9b83..4d63f1f3f 100644 --- a/src/views/sysworkflow/lowcodepage/appFormList.vue +++ b/src/views/sysworkflow/lowcodepage/appFormList.vue @@ -294,7 +294,7 @@ const fanyePage = (val: number) =>{ - + { +const creetMenuId = ref("") +const createNewPage = (val?:string) => { + creetMenuId.value = val.toString(); saveAppFormIsShow.value = true; }