添加组件及页面

This commit is contained in:
zhengw
2026-01-21 17:05:30 +08:00
parent a89e69c381
commit 7ff1a911dd
54 changed files with 1078 additions and 1009 deletions

View File

@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"t-input": "tdesign-miniprogram/input/input"
}
}

View File

@@ -0,0 +1,24 @@
Component({
options: { multipleSlots: true },
/**
* 组件的属性列表
*/
properties: { label: null },
/**
* 组件的初始数据
*/
data: {},
/**
* 组件的方法列表
*/
methods: {
onChange(e: any) {
this.triggerEvent('change', { value: e.detail.value });
},
onClear() {
this.triggerEvent('change', { value: '' });
},
},
});

View File

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