@@ -1459,8 +1459,8 @@ __decorate([vueTyped.Prop({
14591459 type : Boolean
14601460} ) ] , _DropdownBase . prototype , "multiple" , void 0 ) ;
14611461__decorate ( [ vueTyped . Prop ( {
1462- type : String
1463- } ) ] , _DropdownBase . prototype , "css " , void 0 ) ;
1462+ type : Object
1463+ } ) ] , _DropdownBase . prototype , "settings " , void 0 ) ;
14641464
14651465var Dropdown = function ( _DropdownBase2 ) {
14661466 inherits ( Dropdown , _DropdownBase2 ) ;
@@ -1483,9 +1483,7 @@ var Dropdown = function (_DropdownBase2) {
14831483 } , {
14841484 key : 'createComponent' ,
14851485 value : function createComponent ( ch ) {
1486- var css = 'ui selection dropdown' ;
1487- if ( this . css ) css += ' ' + this . css ;
1488- return ch ( 'div' , { 'class' : css } , [ ch ( 'input' , { attrs : { type : 'hidden' , name : this . name } } ) , ch ( 'i' , { 'class' : 'dropdown icon' } ) , ch ( 'div' , { 'class' : 'default text' } , this . placeholder ) , ch ( 'div' , { 'class' : 'menu' , 'ref' : 'menu' } , this . $slots [ 'default' ] ) ] ) ;
1486+ return ch ( 'div' , { 'class' : 'ui selection dropdown' } , [ ch ( 'input' , { attrs : { type : 'hidden' , name : this . name } } ) , ch ( 'i' , { 'class' : 'dropdown icon' } ) , ch ( 'div' , { 'class' : 'default text' } , this . placeholder ) , ch ( 'div' , { 'class' : 'menu' , 'ref' : 'menu' } , this . $slots [ 'default' ] ) ] ) ;
14891487 }
14901488 } , {
14911489 key : 'beforeUpdate' ,
@@ -1524,8 +1522,7 @@ var Dropdown = function (_DropdownBase2) {
15241522 } else {
15251523 this . selectedItems = this . value ;
15261524 }
1527- // init semantic-ui dropdown
1528- this . sui ( {
1525+ var settings = _ . merge ( {
15291526 forceSelection : false ,
15301527 'onChange' : function onChange ( arg ) {
15311528 if ( ! self . multiple ) self . selectedItems = arg ;
@@ -1537,7 +1534,9 @@ var Dropdown = function (_DropdownBase2) {
15371534 'onRemove' : function onRemove ( val ) {
15381535 self . selectedItems . splice ( self . selectedItems . indexOf ( val ) , 1 ) ;
15391536 }
1540- } ) ;
1537+ } , this . $UI . $settings . dropdown , this . settings || { } ) ;
1538+ // init semantic-ui dropdown
1539+ this . sui ( settings ) ;
15411540 // manual force selection
15421541 $ ( this . $el ) . find ( 'input.search' ) . on ( 'blur' , function ( e ) {
15431542 var text = $ ( e . target ) . val ( ) ;
0 commit comments