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,7 @@
Component({
methods: {
onBack() {
wx.navigateBack();
},
},
});

View File

@@ -0,0 +1,7 @@
{
"component": true,
"styleIsolation": "apply-shared",
"usingComponents": {
"t-navbar": "tdesign-miniprogram/navbar/navbar"
}
}

View File

@@ -0,0 +1,14 @@
<view class="block">
<t-navbar t-class-placeholder="t-navbar-placeholder" t-class-content="t-navbar-content" left-arrow title="标题居中" />
</view>
<t-navbar t-class-placeholder="t-navbar-placeholder" t-class-content="t-navbar-content" left-arrow>
<view slot="left" class="custom-title">标题左对齐</view>
</t-navbar>
<view class="demo-desc">标题尺寸</view>
<t-navbar t-class-placeholder="t-navbar-placeholder" t-class-content="t-navbar-content" left-arrow>
<text class="left-text" slot="left" bind:tap="onBack">返回</text>
</t-navbar>
<view class="header-title">大标题尺寸</view>

View File

@@ -0,0 +1,30 @@
.custom-title {
margin-left: 8px;
font-size: 18px;
font-weight: 600;
}
.block {
display: block;
margin-bottom: 48rpx;
}
.demo-desc {
margin-top: 48rpx;
margin-bottom: 32rpx;
}
.left-text {
display: block;
margin-left: 4px;
font-size: 16px;
}
.header-title {
font-size: 28px;
line-height: 36px;
padding: 8rpx 32rpx 16rpx;
background-color: var(--td-bg-color-container);
font-weight: 600;
color: var(--td-text-color-primary);
}