Skip to content

Commit 663d281

Browse files
authored
fix(category-search): modify the customTemplate field to be optional. (#102)
1 parent 5588141 commit 663d281

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

devui/category-search/category-search.type.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface ICategorySearchTagItem {
3636
/**
3737
* 自定义下拉模板的展示内容
3838
*/
39-
customTemplate: TemplateRef<any>;
39+
customTemplate?: TemplateRef<any>;
4040
/**
4141
* 已选中值
4242
*/

devui/category-search/doc/api-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export interface ICategorySearchTagItem {
8080
/**
8181
* 自定义下拉模板的展示内容
8282
*/
83-
customTemplate: TemplateRef<any>;
83+
customTemplate?: TemplateRef<any>;
8484
/**
8585
* 已选中值
8686
*/

devui/category-search/doc/api-en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export interface ICategorySearchTagItem {
8080
/**
8181
* Customize the content to be displayed in the drop-down list box.
8282
*/
83-
customTemplate: TemplateRef<any>;
83+
customTemplate?: TemplateRef<any>;
8484
/**
8585
* Selected Value
8686
*/

0 commit comments

Comments
 (0)