mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
[improvement] optimize utils (#3104)
This commit is contained in:
@@ -85,10 +85,8 @@ function defaultProps(props: any) {
|
||||
|
||||
function install(this: ComponentOptions<Vue>, Vue: VueConstructor) {
|
||||
const { name } = this;
|
||||
if (name) {
|
||||
Vue.component(name, this);
|
||||
Vue.component(camelize(`-${name}`), this);
|
||||
}
|
||||
Vue.component(name as string, this);
|
||||
Vue.component(camelize(`-${name}`), this);
|
||||
}
|
||||
|
||||
// unify slots & scopedSlots
|
||||
|
Reference in New Issue
Block a user