We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.依赖仓库的版本(Dependencies versions):
2.问题描述(Bug description): 使用@xrenders/schema-builder 后页面布局错误 感觉是编辑器的定位有问题
3.出现问题的 schema demo(Reproduction schema demo):
const FormContent = forwardRef((_props, _ref) => { const [config, setConfig] = useState({ importBtn: true, exportBtn: true, pubBtn: false, clearBtn: true, saveBtn: true }) const [schema, setSchema] = useState({}) const designRef = useRef<any>(); useImperativeHandle(_ref, (): FormContentHandler => { return { setValue: async (_value: Record<any, any>) => { setSchema(_value) designRef?.current.setValue?.(_value); return Promise.resolve(true) }, getValue: async () =>{ return await designRef?.current.getValue?.(); }, updateConfig: async (value: Record<any, any>) => { setConfig({...config, ...value}); return Promise.resolve(true) }, designFun: async (api: string, ...args: any) => { const apiVal = (designRef?.current as any)[api] if (apiVal) { if (typeof apiVal === 'function') { return apiVal(...args) } return apiVal } return null; } } }) return ( <SchemaBuilder defaultValue={schema} ref={designRef} {...config} /> ) })
<div style={{width: '100vw', height: '90vh'}}> <Example/> </div>
4.最小复现 demo(Reproduction demo):
form-render demo https://codesandbox.io/s/unruffled-flower-jl78h table-render demo https://codesandbox.io/s/sweet-euler-bdoty fr-generator demo https://codesandbox.io/s/s13sh
The text was updated successfully, but these errors were encountered:
@xrenders/schema-builder": "1.0.0-alpha.13
Sorry, something went wrong.
曲线救国 只能通过 css 隐藏掉
lhbxs
No branches or pull requests
1.依赖仓库的版本(Dependencies versions):
2.问题描述(Bug description):
使用@xrenders/schema-builder 后页面布局错误 感觉是编辑器的定位有问题
3.出现问题的 schema demo(Reproduction schema demo):
4.最小复现 demo(Reproduction demo):
form-render demo https://codesandbox.io/s/unruffled-flower-jl78h
table-render demo https://codesandbox.io/s/sweet-euler-bdoty
fr-generator demo https://codesandbox.io/s/s13sh
The text was updated successfully, but these errors were encountered: