You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
328 B
10 lines
328 B
6 years ago
|
import { cloneElement } from '../_util/vnode';
|
||
4 years ago
|
import { flattenChildren } from '../_util/props-util';
|
||
|
|
||
4 years ago
|
const InputElement = (_: any, { attrs, slots }) => {
|
||
4 years ago
|
const children = flattenChildren(slots.default?.())[0];
|
||
|
return cloneElement(children, { ...attrs });
|
||
6 years ago
|
};
|
||
4 years ago
|
InputElement.inheritAttrs = false;
|
||
|
export default InputElement;
|