fix: delete console
parent
d4334af499
commit
9ff6a58ed6
|
@ -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>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue