Skip to content

使用 cascader 出错 #2428

@HealingW

Description

@HealingW
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

1.6.1

Environment

macos 10.15.4,gooogle chorme 83.0.4103.97, vue 2.6.11

Reproduction link

https://www.antdv.com/components/cascader-cn/

Steps to reproduce

<script> export default { data () { return { options: [ { value: 'zhejiang', label: 'Zhejiang', children: [ { value: 'hangzhou', label: 'Hangzhou', children: [ { value: 'xihu', label: 'West Lake' } ] } ] }, { value: 'jiangsu', label: 'Jiangsu', children: [ { value: 'nanjing', label: 'Nanjing', children: [ { value: 'zhonghuamen', label: 'Zhong Hua Men' } ] } ] } ] } }, methods: { onChange (value) { console.log(value) } } } </script>

What is expected?

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

What is actually happening?

啥都没有

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions