Skip to content
New issue

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

项目在内网环境,怎么在代码中统一去掉组件库组件的详情链接 #11406

Open
Zhangjin1996 opened this issue Dec 19, 2024 · 2 comments

Comments

@Zhangjin1996
Copy link

描述问题:

请用一段清晰简洁的文字描述问题是什么...

截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题...

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    sdknpm其他...

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在

  3. 粘贴有问题的完整 amis schema 代码:

code here...
  1. 操作步骤
    请简单描述一下复现的操作步骤...
@lishengliang74
Copy link

可以修改"详情"连接的地址,方法:在Editor 中增加 amisDocHost 参数,配置为自己的地址,这样用户点击详情后会导航到自己的地址上,然后自定义一个对这个地址的显示页面。

<Editor
        theme="cxd"
        value={state.context.designData?.schema}
        onChange={handlePageSchemaChange}
        data={{
            system: Self.system,
        }}
        disablePluginList={['TableCRUDPlugin']}
        amisDocHost={amisDocHost} // 编辑器会在地址后自动追加 "/amis/zh-CN/components/flex"(示例)
        onActive={handleActive}
        onSave={handleSavePage}
        className="is-fixed"
        showCustomRenderersPanel
        amisEnv={{ ...amisEnv, system: Self.system }}
        actionOptions={{
            showOldEntry: false,
            // globalEventGetter: () => globalEvents, // TODO
        }}
    />

@Zhangjin1996
Copy link
Author

好的我试下,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants