fix: delete console

pull/165/head
tangjinzhou 2018-05-14 11:02:03 +08:00
parent d4334af499
commit 9ff6a58ed6
1 changed files with 9 additions and 16 deletions

View File

@ -4,16 +4,16 @@ import Select, { AbstractSelectProps, SelectValue } from '../select'
import Input from '../input' import Input from '../input'
import InputElement from './InputElement' import InputElement from './InputElement'
import PropTypes from '../_util/vue-types' import PropTypes from '../_util/vue-types'
import { getComponentFromProp, getOptionProps, filterEmpty, isValidElement, getEvents, getStyle, getClass } from '../_util/props-util' import { getComponentFromProp, getOptionProps, filterEmpty, isValidElement } from '../_util/props-util'
const DataSourceItemObject = PropTypes.shape({ // const DataSourceItemObject = PropTypes.shape({
value: String, // value: String,
text: String, // text: String,
}).loose // }).loose
const DataSourceItemType = PropTypes.oneOfType([ // const DataSourceItemType = PropTypes.oneOfType([
PropTypes.string, // PropTypes.string,
DataSourceItemObject, // DataSourceItemObject,
]).isRequired // ]).isRequired
// export interface AutoCompleteInputProps { // export interface AutoCompleteInputProps {
// onChange?: React.FormEventHandler<any>; // onChange?: React.FormEventHandler<any>;
@ -57,13 +57,6 @@ export default {
const { $slots } = this const { $slots } = this
const children = filterEmpty($slots.default) const children = filterEmpty($slots.default)
const element = children.length ? children[0] : <Input /> const element = children.length ? children[0] : <Input />
console.log(element)
const eleProps = {
props: getOptionProps(element),
on: getEvents(element),
style: getStyle(element),
class: getClass(element),
}
return ( return (
<InputElement>{element}</InputElement> <InputElement>{element}</InputElement>
) )