tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

🐛 [Bug]: Carousel 文档中 arrow,indicator-position,trigger,trigger应当为枚举值

Open hashiqi12138 opened this issue 9 months ago • 1 comments

Version

latest

Vue Version

latest

Link to minimal reproduction

Step to reproduce

What is expected

Carousel 文档中 arrow,indicator-position,trigger,trigger应当为枚举值

What is actually happening

Carousel 文档中 arrow,indicator-position,trigger,trigger应当为枚举值

What is your project name

Any additional comments (optional)

No response

hashiqi12138 avatar Mar 04 '25 12:03 hashiqi12138

目前没有找到与您报告的问题相似的其他问题。看起来这是一个新的问题。

您提到的 arrowindicator-positiontrigger 应该为枚举值的问题将会被记录下来,并由团队进行评估和修复。

如果您有更多的细节或补充信息,请随时分享,以帮助我们更好地解决这个问题。

🪧 Tips For further assistance, please describe your question in the comments and @petercat-assistant to start a conversation with me.

petercat-assistant[bot] avatar Mar 04 '25 12:03 petercat-assistant[bot]

这只是文档描述的小问题。 关于此类描述, 文档中大概有2种写法 1、 类型中写 string, 在说明中写上“可选值为 xxx,xxx,xxxx " 2、给类型写一个声明,比如 tooltip的弹出有12个位置,所以定义了 类型 IPopperPlacement的联合类型(非枚举) 以上2种写法,都比较清楚的讲明属性用法的。

总之文档中, 一直没有用枚举这种格式, 只有较复杂时,才定义一个类型进行说明。 所以 走马灯这里的属性,也不会修改为枚举,源码中也不是枚举。

shenjunjian avatar May 25 '25 11:05 shenjunjian

Bot detected the issue body's language is not English, translate it automatically.


This is just a minor issue described by the documentation. Regarding this kind of description, there are about 2 ways to write it in the document

  1. Write string in the type, and write "The optional value is xxx,xxx,xxxx" in the description
  2. Write a declaration to the type, for example, the tooltip pops up to 12 places, so the union type of type IPopperPlacement is defined (non-enumeration) The above two writing methods clearly explain the usage of attributes.

In short, in the document, there has never been a format like enumeration. Only when it is more complicated can a type be defined for explanation. Therefore, the properties of the revolving lantern will not be modified into enumerations, and they are not enumerations in the source code.

Issues-translate-bot avatar May 25 '25 11:05 Issues-translate-bot