mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] functional component shouldl inherit attrs (#2706)
This commit is contained in:
parent
4ea057c046
commit
683e6d5183
@ -31,7 +31,15 @@ function install(Vue) {
|
||||
Vue.component(camelize(`-${name}`), this);
|
||||
}
|
||||
|
||||
const inheritKey = ['style', 'class', 'nativeOn', 'directives', 'staticClass', 'staticStyle'];
|
||||
const inheritKey = [
|
||||
'style',
|
||||
'class',
|
||||
'attrs',
|
||||
'nativeOn',
|
||||
'directives',
|
||||
'staticClass',
|
||||
'staticStyle'
|
||||
];
|
||||
const mapInheritKey = { nativeOn: 'on' };
|
||||
|
||||
function functional(sfc) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user