10 lines
328 B
Vue
10 lines
328 B
Vue
![]() |
import { cloneElement } from '../_util/vnode';
|
||
![]() |
import { flattenChildren } from '../_util/props-util';
|
||
|
|
||
![]() |
const InputElement = (_: any, { attrs, slots }) => {
|
||
![]() |
const children = flattenChildren(slots.default?.())[0];
|
||
|
return cloneElement(children, { ...attrs });
|
||
![]() |
};
|
||
![]() |
InputElement.inheritAttrs = false;
|
||
|
export default InputElement;
|