|
@@ -6,7 +6,7 @@
|
|
|
<h4>{{ t('message.flowForm.detailTitle') }}</h4>
|
|
|
</template>
|
|
|
<div class="form-create-show">
|
|
|
- <FormCreate :option="detailData.option" :rule="detailData.rule" />
|
|
|
+ <FormCreate :option="detailData.option" :rule="detailData.rule" :locale="locale"/>
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
</div>
|
|
@@ -24,7 +24,8 @@
|
|
|
FlowFormEditState
|
|
|
} from "/@/views/flow/flowForm/list/component/model"
|
|
|
import {setConfAndFields2} from "/@/utils/formCreate";
|
|
|
- formCreate.component(FcEditor)
|
|
|
+
|
|
|
+ formCreate.component(FcEditor)
|
|
|
//获取 formCreate 组件
|
|
|
const FormCreate = formCreate.$form();
|
|
|
export default defineComponent({
|
|
@@ -40,7 +41,7 @@
|
|
|
},
|
|
|
setup(props,{emit}) {
|
|
|
const {proxy} = <any>getCurrentInstance()
|
|
|
- const { t } = useI18n()
|
|
|
+ const { t,locale } = useI18n()
|
|
|
const formRef = ref<HTMLElement | null>(null);
|
|
|
const menuRef = ref();
|
|
|
const detailData = ref({
|
|
@@ -113,6 +114,7 @@
|
|
|
return {
|
|
|
proxy,
|
|
|
t,
|
|
|
+ locale,
|
|
|
openDialog,
|
|
|
closeDialog,
|
|
|
onCancel,
|