fix: 移除冗余的注入代码
This commit is contained in:
@ -219,8 +219,7 @@
|
||||
const tabActiveKey = inject<Ref<number>>('tabActiveKey', ref(0));
|
||||
const activeKey = ref<number>(0);
|
||||
const isCamelCase = inject<boolean>('isCamelCase', false);
|
||||
// 注入整个表单的配置,formProps是个计算属性,不能修改,formData则来自每个业务的表单页面。
|
||||
const formData = inject('formData', { noInject: true });
|
||||
|
||||
watch(
|
||||
() => tabActiveKey?.value,
|
||||
(val) => {
|
||||
@ -240,35 +239,6 @@
|
||||
}
|
||||
);
|
||||
|
||||
// watch(
|
||||
// () => props.value,
|
||||
// (val) => {
|
||||
// if (!val) return;
|
||||
// let { componentProps = {} } = props.schema;
|
||||
// if (componentProps['events']) {
|
||||
// for (const eventKey in componentProps['events']) {
|
||||
// try {
|
||||
// const event = new Function(
|
||||
// 'schema',
|
||||
// 'formModel',
|
||||
// 'formActionType',
|
||||
// `${componentProps['events'][eventKey]}`,
|
||||
// );
|
||||
// event(props.schema, formModel, props.formApi);
|
||||
// } catch (error) {
|
||||
// notification.error({
|
||||
// message: 'Tip',
|
||||
// description: '触发事件填写有误!',
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// immediate: true,
|
||||
// },
|
||||
// );
|
||||
|
||||
const { notification } = useMessage();
|
||||
const getSchema = computed(() => {
|
||||
return props.schema as FormSchema;
|
||||
|
||||
@ -53,8 +53,6 @@
|
||||
const tabActiveKey = inject<Ref<number>>('tabActiveKey', ref(0));
|
||||
const activeKey = ref<number>(0);
|
||||
const isCamelCase = inject<boolean>('isCamelCase', false);
|
||||
// 注入整个表单的配置,formProps是个计算属性,不能修改,formData则来自每个业务的表单页面。
|
||||
const formData = inject('formData', { noInject: true });
|
||||
watch(
|
||||
() => tabActiveKey?.value,
|
||||
(val) => {
|
||||
|
||||
Reference in New Issue
Block a user