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,5 @@
import themeChangeBehavior from 'tdesign-miniprogram/mixins/theme-change';
Component({
behaviors: [themeChangeBehavior],
});

View File

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

View File

@@ -0,0 +1,9 @@
<t-navbar t-class-placeholder="t-navbar-placeholder" t-class-content="t-navbar-content">
<view slot="left">
<t-image
t-class="custom-image"
src="{{theme === 'dark' ? 'https://tdesign.gtimg.com/mobile/demos/image-dark.png' : 'https://tdesign.gtimg.com/mobile/demos/logo-light.png'}}"
aria-label="导航栏图片"
/>
</view>
</t-navbar>

View File

@@ -0,0 +1,4 @@
.custom-image {
height: 24px;
width: 87px;
}