From 8f7b46d0d2efec4d70abc475e66a1aab75fdf573 Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Mon, 14 May 2018 11:02:03 +0800 Subject: [PATCH] fix: delete console --- components/auto-complete/index.jsx | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/components/auto-complete/index.jsx b/components/auto-complete/index.jsx index 0001d782b..89a2628ba 100644 --- a/components/auto-complete/index.jsx +++ b/components/auto-complete/index.jsx @@ -4,16 +4,16 @@ import Select, { AbstractSelectProps, SelectValue } from '../select' import Input from '../input' import InputElement from './InputElement' 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({ - value: String, - text: String, -}).loose -const DataSourceItemType = PropTypes.oneOfType([ - PropTypes.string, - DataSourceItemObject, -]).isRequired +// const DataSourceItemObject = PropTypes.shape({ +// value: String, +// text: String, +// }).loose +// const DataSourceItemType = PropTypes.oneOfType([ +// PropTypes.string, +// DataSourceItemObject, +// ]).isRequired // export interface AutoCompleteInputProps { // onChange?: React.FormEventHandler; @@ -57,13 +57,6 @@ export default { const { $slots } = this const children = filterEmpty($slots.default) const element = children.length ? children[0] : - console.log(element) - const eleProps = { - props: getOptionProps(element), - on: getEvents(element), - style: getStyle(element), - class: getClass(element), - } return ( {element} )