实现场景:
在编辑器配置字段名的时候,不通过手动输入字段名的方式配置,通过跟数据库字段绑定的方式如何操作?如何将编辑器和数据库字段进行强绑定,通过选择数据库字段的方式进行字段名的配置?
当前方案:
<Editor
theme={'cxd'}
preview={store.preview}
isMobile={store.isMobile}
value={store.schema}
onChange={onChange}
onPreview={() => {
store.setPreview(true);
}}
onSave={save}
className="is-fixed"
$schemaUrl={schemaUrl}
iframeUrl={iframeUrl}
showCustomRenderersPanel={true}
amisEnv={{
fetcher: store.fetcher,
notify: store.notify,
alert: store.alert,
copy: store.copy
}}
/>
1条答案
按热度按时间46scxncf1#
👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.