project init
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
display: flex;
|
||||
box-sizing: border-box;
|
||||
width: 100%;
|
||||
padding: var(--td-cell-vertical-padding, 32rpx) var(--td-cell-horizontal-padding, 32rpx);
|
||||
padding: var(--td-cell-vertical-padding, 20rpx) var(--td-cell-horizontal-padding, 20rpx);
|
||||
font-size: var(--td-cell-font-size, var(--td-font-size-m, 32rpx));
|
||||
line-height: var(--td-cell-line-height, 48rpx);
|
||||
/*color: var(--td-cell-text-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));*/
|
||||
|
||||
@@ -41,8 +41,8 @@
|
||||
color: var(--td-input-prefix-icon-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
|
||||
}
|
||||
.t-input__label:not(:empty) {
|
||||
min-width: 96rpx;
|
||||
max-width: 162rpx;
|
||||
min-width: 150rpx;
|
||||
max-width: 150rpx;
|
||||
font-size: var(--td-font-size-m, 32rpx);
|
||||
line-height: 48rpx;
|
||||
color: var(--td-input-label-text-color, var(--td-font-gray-1, rgba(0, 0, 0, 0.9)));
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.t-tab-panel {
|
||||
background: var(--td-bg-color,#fff);
|
||||
background: var(--td-bg-color);
|
||||
height: inherit;
|
||||
width: inherit;
|
||||
}
|
||||
|
||||
@@ -160,18 +160,20 @@ let Tabs = class Tabs extends SuperComponent {
|
||||
return offset + targetLeft - (1 / 2) * containerWidth + targetWidth / 2;
|
||||
}
|
||||
getTrackSize() {
|
||||
// return new Promise((resolve) => {
|
||||
// if (this.trackWidth) {
|
||||
// resolve(this.trackWidth);
|
||||
// return;
|
||||
// }
|
||||
// getRect(this, `.${prefix}-tabs__track`).then((res) => {
|
||||
// if (res) {
|
||||
// this.trackWidth = res.width;
|
||||
// resolve(this.trackWidth);
|
||||
// }
|
||||
// });
|
||||
// });
|
||||
return new Promise((resolve) => {
|
||||
if (this.trackWidth) {
|
||||
resolve(this.trackWidth);
|
||||
return;
|
||||
}
|
||||
getRect(this, `.${prefix}-tabs__track`).then((res) => {
|
||||
if (res) {
|
||||
this.trackWidth = res.width;
|
||||
resolve(this.trackWidth);
|
||||
}
|
||||
}).catch(reason => {
|
||||
console.log(reason)
|
||||
});
|
||||
});
|
||||
}
|
||||
setTrack() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
|
||||
Reference in New Issue
Block a user