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

单选节点时,下拉框清空报错 #18

Closed
rootdavid opened this issue Feb 28, 2019 · 0 comments
Closed

单选节点时,下拉框清空报错 #18

rootdavid opened this issue Feb 28, 2019 · 0 comments

Comments

@rootdavid
Copy link

rootdavid commented Feb 28, 2019

<ELTreeSelect
                v-model="filterForm.category_id"
                ref="treeSelect"
                :node-key="treeParams.props.value"
                :selectParams="selectParams"
                :treeParams="treeParams"
              />
values: ["3"],
      selectParams: {
        // multiple: true,
        clearable: true,
        placeholder: "请选择需求分类"
      },
      treeParams: {
        "default-expand-all": true,
        filterable: false,
        "check-strictly": true,
        data: [
          {
            flowId: "1",
            name: "哎哎哎",
            children: [{ flowId: "3", name: "啊啊啊啊" }]
          },
          {
            flowId: "2",
            name: "发生的"
          }
        ],
        props: {
          children: "children",
          label: "name",
          value: "flowId"
        }

错误信息:Invalid prop: type check failed for prop "currentNodeKey". Expected String, Number, got Array

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

1 participant