@@ -11,15 +11,17 @@ import {InternalUtils} from '../../core/utils/internal-utils';
1111import { ArrayCollection } from "../../core/data/array-collection" ;
1212import { PerfectScrollbarModule } from "ngx-perfect-scrollbar" ;
1313
14+ /**
15+ * @internal
16+ */
1417@Directive ( {
1518 selector : '.jigsaw-select-option-list' ,
1619 host : {
1720 '[style.width]' : 'width' ,
1821 '[style.height]' : 'height'
1922 }
2023} )
21- export class OptionList extends AbstractJigsawComponent {
22-
24+ export class JigsawSelectOptionList extends AbstractJigsawComponent {
2325}
2426
2527@Component ( {
@@ -100,8 +102,8 @@ export class JigsawSelect extends AbstractJigsawComponent implements ControlValu
100102 }
101103
102104 //获取映射的子组件option
103- @ViewChildren ( forwardRef ( ( ) => JigsawOption ) )
104- private _options : QueryList < JigsawOption > = null ;
105+ @ViewChildren ( forwardRef ( ( ) => JigsawSelectOption ) )
106+ private _options : QueryList < JigsawSelectOption > = null ;
105107
106108 constructor ( private _renderer : Renderer2 , private _elementRef : ElementRef ) {
107109 super ( ) ;
@@ -183,6 +185,9 @@ export class JigsawSelect extends AbstractJigsawComponent implements ControlValu
183185 }
184186}
185187
188+ /**
189+ * @internal
190+ */
186191@Component ( {
187192 selector : 'jigsaw-select-option, j-select-option' ,
188193 templateUrl : 'option.html' ,
@@ -192,7 +197,7 @@ export class JigsawSelect extends AbstractJigsawComponent implements ControlValu
192197 '[style.line-height]' : '_height'
193198 }
194199} )
195- export class JigsawOption implements OnInit {
200+ export class JigsawSelectOption implements OnInit {
196201 @Input ( ) public optionItem : any ;
197202
198203 /**
@@ -233,8 +238,8 @@ export class JigsawOption implements OnInit {
233238
234239@NgModule ( {
235240 imports : [ CommonModule , FormsModule , PerfectScrollbarModule ] ,
236- declarations : [ JigsawSelect , JigsawOption , OptionList ] ,
237- exports : [ JigsawSelect , JigsawOption ]
241+ declarations : [ JigsawSelect , JigsawSelectOption , JigsawSelectOptionList ] ,
242+ exports : [ JigsawSelect ]
238243} )
239244export class JigsawSelectModule {
240245}
0 commit comments