lljj-x / vue-json-schema-form

基于Vue/Vue3,Json Schema 和 ElementUi/antd/iview3/naiveUi 等生成 HTML Form 表单,用于活动编辑器、h5编辑器、cms等数据配置;支持可视化生成表单Schema 。 Generate a form using Vue/Vue3, Json Schema and ElementUi/antdv/iview3/naiveUi
https://form.lljj.me/
Apache License 2.0
2.01k stars 418 forks source link

如何设置 popover 主题为 dark #269

Closed shurong-wang closed 1 year ago

shurong-wang commented 1 year ago

vue和ui框架

vue3、ElementPlus

问题描述

目前 description 的 popover 默认是 light 主题,想要设置为 dark

期望的结果

是否有类似设置可以实现

{
  "ui:options": {
    "popover": {
      "effect": "dark",
      "placement": "top-start"
    }
  }
}
lljj-x commented 1 year ago

目前不行,下个版本加个配置。

目前只能通过自定义field来实现

ok958726 commented 1 year ago

目前不行,下个版本加个配置。

目前只能通过自定义field来实现

期待下个版本加上

shurong-wang commented 1 year ago

popover 会生成在 body 下,覆盖样式还比较困难。期待更新~

lljj-x commented 1 year ago

五一更新

lljj-x commented 1 year ago

最新版支持按表单配置 formProps.popover ,单个item还不支持 ,理解应该一个表单是一致的所以暂不支持

// formProps.popover
{
  "effect": "dark",
  "placement": "top-start"
}