form-builder icon indicating copy to clipboard operation
form-builder copied to clipboard

关于组件使用 Elm::popover() 生成提示

Open lizejun999 opened this issue 5 years ago • 4 comments

$school_account = Elm::input('school_account','登录账号')->required(); $popover = Elm::popover(); $popover->content('登录密码由系统自动生成, 用户可登录后自主修改!'); $school_account->info($popover);

组件这样用但是前段显示错误

显示内容为: { "type": "popover", "value": "", "props": { "content": "登录密码由系统自动生成, 用户可登录后自主修改!" } }

lizejun999 avatar Sep 18 '20 02:09 lizejun999

感谢反馈,我检查一下

xaboy avatar Sep 18 '20 03:09 xaboy

有解决办法, 请发布一下谢谢

lizejun999 avatar Sep 18 '20 07:09 lizejun999

我刚刚检查了下,这种使用方式是错误的. popover应该配置到 formconfig中 这个后面可以优化一下,支持单独配置组件的 info 类型

xaboy avatar Sep 18 '20 08:09 xaboy

好的。谢谢。

在2020年09月18日 16:24,xaboy 写道: 我刚刚检查了下,这种使用方式是错误的. popover应该配置到 form的config中 这个后面可以优化一下,支持单独配置组件的 info 类型

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe. [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xaboy/form-builder/issues/58#issuecomment-694731105", "url": "https://github.com/xaboy/form-builder/issues/58#issuecomment-694731105", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

lizejun999 avatar Sep 18 '20 08:09 lizejun999