白色主题

This commit is contained in:
2023-02-12 19:04:01 +08:00
parent d736a5912f
commit 57ab6fbb49
411 changed files with 1752 additions and 5304 deletions

View File

@@ -1,5 +1,5 @@
const props = {
customStyle: {
style: {
type: String,
value: '',
},

View File

@@ -1,9 +1,11 @@
<wxs module="_" src="../common/utils.wxs" />
<wxs module="this" src="./index.wxs" />
<view class="{{classPrefix}}" style="height: {{_.addUnit(height)}}; {{customStyle}}">
<view class="{{classPrefix}}" style="height: {{_.addUnit(height)}}; {{style}}">
<scroll-view
scroll-y
enhanced
show-scrollbar="{{false}}"
class="{{_.cls(classPrefix + '__column', [this.getTreeClass(leafLevel - level, treeOptions.length)])}} {{prefix}}-class"
wx:for="{{treeOptions}}"
wx:key="level"

View File

@@ -30,13 +30,19 @@
background-color: var(--td-tree-bg-color, var(--td-bg-color-block, #fff));
}
.t-tree-select__column {
flex: 1;
width: var(--td-tree-colum-width, 206rpx);
}
.t-tree-select__column--left {
background: var(--td-tree-root-bg-color, var(--td-gray-color-1, #f3f3f3));
}
.t-tree-select__column--right {
flex: 2;
flex: 1;
}
.t-tree-select__column ::-webkit-scrollbar {
display: none;
width: 0;
height: 0;
color: transparent;
}
.t-tree-select__item {
height: var(--td-tree-item-height, 112rpx);

View File

@@ -1,6 +1,6 @@
import { TreeOptionData, KeysType } from '../common/common';
export interface TdTreeSelectProps<DataOption extends TreeOptionData = TreeOptionData> {
customStyle?: {
style?: {
type: StringConstructor;
value?: string;
};