mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-01 18:52:20 +08:00
Merge branch 'next' into develop
This commit is contained in:
commit
3b3cb6875f
@ -10,16 +10,16 @@
|
||||
import { FormLayout } from '@formily/antd-v5';
|
||||
import { Field } from '@formily/core';
|
||||
import { RecursionField, Schema, observer, useField, useForm } from '@formily/react';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import { useUpdateEffect } from 'ahooks';
|
||||
import React, { useState } from 'react';
|
||||
import providerTypes from './providerTypes';
|
||||
|
||||
const Verification = observer(
|
||||
(props) => {
|
||||
const form = useForm();
|
||||
const field = useField<Field>();
|
||||
const [s, setSchema] = useState(new Schema({}));
|
||||
useEffect(() => {
|
||||
const [s, setSchema] = useState(new Schema(providerTypes.get(form.values.type) || {}));
|
||||
useUpdateEffect(() => {
|
||||
form.clearFormGraph('options.*');
|
||||
setSchema(new Schema(providerTypes.get(form.values.type) || {}));
|
||||
}, [form.values.type]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user