白色主题
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const props = {
|
||||
customStyle: {
|
||||
style: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { TreeOptionData, KeysType } from '../common/common';
|
||||
export interface TdTreeSelectProps<DataOption extends TreeOptionData = TreeOptionData> {
|
||||
customStyle?: {
|
||||
style?: {
|
||||
type: StringConstructor;
|
||||
value?: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user