Skip to content

Commit

Permalink
fix(module:loading): fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
ng-nest-moon committed Sep 22, 2024
1 parent 82fab94 commit aae2d29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions lib/ng-nest/ui/input/input.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
<input
#inputRef
autocomplete="off"
class="x-input-frame"
[class.x-input-has-value-template]="valueTpl()"
[ngStyle]="inputStyle()"
[type]="type()"
Expand Down
8 changes: 4 additions & 4 deletions lib/ng-nest/ui/loading/loading.property.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@ export class XLoadingProperty extends XPropertyFunction(X_LOADING_CONFIG_NAME) {
* @zh_CN 显示文字,支持自定义模板
* @en_US Display text, support custom template
*/
readonly text = input<XTemplate>(this.config?.text!);
readonly text = input<XTemplate | null>(this.config?.text ?? null);
/**
* @zh_CN 显示的图标
* @en_US Icon displayed
*/
readonly icon = input<string>(this.config?.icon!);
readonly icon = input<string | null>(this.config?.icon ?? null);
/**
* @zh_CN 颜色
* @en_US Color
*/
readonly color = input<string>(this.config?.color!);
readonly color = input<string | null>(this.config?.color ?? null);
/**
* @zh_CN 全屏显示
* @en_US Full-screen display
Expand All @@ -59,5 +59,5 @@ export class XLoadingProperty extends XPropertyFunction(X_LOADING_CONFIG_NAME) {
* @zh_CN 背景样式
* @en_US Background style
*/
readonly background = input<string>(this.config?.background!);
readonly background = input<string | null>(this.config?.background ?? null);
}

0 comments on commit aae2d29

Please sign in to comment.