UNPKG

@frontend_worker/search-selector

Version:

《远程搜索+单选》组件区别于element-ui或iview组件库的select远程搜索, ①将头部显示的值和下拉选项显示的值独立开来, ②避免远程加载时头部默认值显示异常, ③支持插槽自定义 ④将搜索框值放置于下拉弹框里面

37 lines (36 loc) 982 B
.placeholder(@color: @input-placeholder-color) { // Firefox &::-moz-placeholder { color: @color!important; opacity: 1; // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526 } // Internet Explorer 10+ &:-ms-input-placeholder { color: @color!important; } // Safari and Chrome &::-webkit-input-placeholder { color: @color!important; } } // for select and input like component's arrow .inner-arrow() { position: absolute; top: 50%; right: 8px; line-height: 1; margin-top: -7px; font-size: @font-size-base; color: @subsidiary-color; transition: all @transition-time @ease-in-out; } .reset-component() { font-family: @font-family; font-size: @font-size-base; line-height: @line-height-base; color: @text-color; box-sizing: border-box; margin: 0; padding: 0; list-style: none; }