添加图标和组件

This commit is contained in:
zhengw
2026-01-29 11:46:28 +08:00
parent 8960c8ea73
commit df67413bf8
9 changed files with 66 additions and 2 deletions

View File

@@ -3,7 +3,10 @@ Component({
/**
* 组件的属性列表
*/
properties: { label: null },
properties: {
label: null,
placeholder: null,
},
/**
* 组件的初始数据

View File

@@ -1 +1,2 @@
<t-input label="{{label}}" bind:change="onChange" bind:clear="onClear" clearable />
<t-input label="{{label||''}}" placeholder="{{placeholder || label || '' }}" bind:change="onChange"
bind:clear="onClear" clearable />