Skip to content

mand-mobile components regisrty name style #261

@de1ck

Description

@de1ck

参考vue风格指南,与 vue selint rule 可以发现 在单文件组件中使用PascalCase命名与引用比kebab-case会具备更多的优势,而mand-mobile 全局使用 kebab-case会对组件注册,这导致在单文件组件中就只能使用kebab-case调用,而PascalCase 可以支持多种方式调用

vue style guide

vue eslint rule

Components registered under other than PascalCase name have to be called directly under the specified name, whereas if you register it using PascalCase you can call it however you like, except using snake_case.

🔧 Options

Metadata

Metadata

Assignees

No one assigned

    Labels

    P0Highest priorityfeatureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions