mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[improvement] support PascalCase component tag name (#2296)
This commit is contained in:
parent
d7975a5270
commit
eca1b6970e
@ -4,10 +4,12 @@
|
||||
import '../locale';
|
||||
import bem from '../mixins/bem';
|
||||
import i18n from '../mixins/i18n';
|
||||
import { isDef } from '.';
|
||||
import { isDef, camelize } from '.';
|
||||
|
||||
function install(Vue) {
|
||||
Vue.component(this.name, this);
|
||||
const { name } = this;
|
||||
Vue.component(name, this);
|
||||
Vue.component((camelize(`-${name}`)), this);
|
||||
}
|
||||
|
||||
function returnArray() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user