first add files

This commit is contained in:
2025-08-15 14:05:08 +08:00
parent c58f74bcc0
commit b6216570d9
2451 changed files with 29056 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
import Toast from 'tdesign-miniprogram/toast/index';
Component({
methods: {
showSuccessToast() {
Toast({
context: this,
selector: '#t-toast',
message: '成功文案',
theme: 'success',
direction: 'column',
});
},
showWarningToast() {
Toast({
context: this,
selector: '#t-toast',
message: '警告文案',
theme: 'warning',
direction: 'column',
});
},
showErrorToast() {
Toast({
context: this,
selector: '#t-toast',
message: '错误文案',
theme: 'error',
direction: 'column',
});
},
},
});