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

dict默认选中 #142

Open
okami-chen opened this issue Mar 22, 2024 · 1 comment
Open

dict默认选中 #142

okami-chen opened this issue Mar 22, 2024 · 1 comment

Comments

@okami-chen
Copy link

okami-chen commented Mar 22, 2024

  {
    title: "订单状态",
    dataIndex: "order_status",
    formType: "select",
    search: true,
    commonRules: {
      required: true,
      message: "请输入订单状态"
    },
    dict: {
      name: "order_status",
      props: {
        label: "title",
        value: "key"
      },
      translation: true
    }
  }

data

2 : 已支付

怎么在页面打开的时候默认选中指定的值,尝试添加searchDefaultValue属性(2),但是搜索框出来了填写的数字并非已支付

@kanyxmo
Copy link
Member

kanyxmo commented Mar 22, 2024

类型问题,searchDefaultValue: xx.toString()

新增是 addDefaultValue 编辑是 editDefaultValue

文档都有

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

No branches or pull requests

2 participants