Skip to content

Conversation

Amber-Nan
Copy link
Contributor

No description provided.

core/src/Tab.tsx Outdated
@@ -12,6 +12,7 @@ export const ItemTypes = {
export interface TabProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
id: string;
index?: number;
AxisYType?: boolean; //Y轴是否可上下拖动
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

props “参数” 命名应该使用小驼峰,开头字母小写,

组件名称类型名称使用大驼峰

这个 props 可以命名为 dragableY 更为准确表达意思

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Amber-Nan Amber-Nan closed this Apr 14, 2023
@jaywcjlove jaywcjlove reopened this Apr 14, 2023
@@ -12,7 +12,7 @@ export const ItemTypes = {
export interface TabProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {
id: string;
index?: number;
yAxisType?: boolean; //Y轴是否可上下拖动
dragableY?: boolean; //Y轴是否可上下拖动
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Amber-Nan 下面注释方法有代码提示

  /** Y轴是否可上下拖动 */
  dragableY?: boolean; 

@jaywcjlove jaywcjlove merged commit e7b3df7 into uiwjs:main Apr 14, 2023
github-actions bot pushed a commit that referenced this pull request Apr 14, 2023
* feat:新增Y周是否可拖动参数及判断

* fix:修改参数为驼峰

* fix:修改y轴拖动参数名称

---------

Co-authored-by: 杨楠 <yangnan@ane56.com> e7b3df7
jaywcjlove added a commit that referenced this pull request Apr 14, 2023
github-actions bot pushed a commit that referenced this pull request Apr 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants