@frontend_worker/search-selector
Version:
《远程搜索+单选》组件区别于element-ui或iview组件库的select远程搜索, ①将头部显示的值和下拉选项显示的值独立开来, ②避免远程加载时头部默认值显示异常, ③支持插槽自定义 ④将搜索框值放置于下拉弹框里面
21 lines (15 loc) • 496 B
JavaScript
import SearchSelector from './components/searchSelector';
const install = function(Vue) {
if (install.installed) return;
Vue.component('SearchSelector', SearchSelector);
};
// auto install
if (typeof window !== 'undefined' && window.Vue) {
install(window.Vue);
}
const API = {
version: process.env.VERSION, // eslint-disable-line no-undef
install,
SearchSelector
};
module.exports.default = module.exports = API; // eslint-disable-line no-undef