体验新版 GitCode,发现更多精彩内容 >>
import createAPI from '../../common/helpers/create-api'
import { warn } from '../../common/helpers/debug'
export default function addPicker (Vue, Picker) {
const pickerAPI = createAPI(Vue, Picker, ['select', 'value-change', 'cancel', 'change'], false) pickerAPI.before((data, renderFn, single) => { if (single) { warn('Picker component can not be a singleton.') } })
}