Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/components/side-bar-item/side-bar-item.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@side-bar-color: var(--td-side-bar-color, @text-color-primary);
@side-bar-font-size: var(--td-side-bar-font-size, 32rpx);
@side-bar-item-height: var(--td-side-bar-item-height, 112rpx);
@side-bar-item-height: var(--td-side-bar-item-height, auto);
@side-bar-item-line-height: var(--td-side-bar-item-line-height, 48rpx);
@side-bar-bg-color: var(--td-side-bar-bg-color, @bg-color-secondarycontainer);
@side-bar-disabled-color: var(--td-side-bar-disabled-color, @text-color-disabled);
Expand Down
2 changes: 1 addition & 1 deletion packages/components/side-bar/README.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ Name | Default Value | Description
--td-side-bar-disabled-color | @text-color-disabled | -
--td-side-bar-font-size | 32rpx | -
--td-side-bar-icon-size | 40rpx | -
--td-side-bar-item-height | 112rpx | -
--td-side-bar-item-height | auto | -
--td-side-bar-item-line-height | 48rpx | -
2 changes: 1 addition & 1 deletion packages/components/side-bar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,5 @@ value | String / Number | - | 当前选项的值 | N
--td-side-bar-disabled-color | @text-color-disabled | -
--td-side-bar-font-size | 32rpx | -
--td-side-bar-icon-size | 40rpx | -
--td-side-bar-item-height | 112rpx | -
--td-side-bar-item-height | auto | -
--td-side-bar-item-line-height | 48rpx | -
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import resolveCwd from './utils.mjs';

const COMPONENT_NAME = process.argv[process.argv.indexOf('--NAME') + 1]; // 在 --NAME 后面
const ROOT_DIR = COMPONENT_NAME.includes('chat')
? resolveCwd('/packages/pro-components')
: resolveCwd('/packages/components');
? resolveCwd('../../../packages/components')
: resolveCwd('../../../packages/components');

const combine = {
avatar: ['avatar-group', 'avatar'],
Expand Down Expand Up @@ -57,14 +57,14 @@ const generateCssVariables = async (componentName) => {

const list = file.match(matchReg)?.sort();

list?.forEach((item, index) => {
list?.forEach((item) => {
cssVariableBodyContent += `${item.slice(1, item.indexOf(',')).trim()} | ${item
.slice(item.indexOf(',') + 2, item.length - 1)
.trim()} | -${index === list.length - 1 ? '' : ' \n'}`;
.trim()} | -${' \n'}`;
});
});

return cssVariableBodyContent;
return cssVariableBodyContent.trimEnd();
};

/**
Expand Down
Loading