fix: add tiny-dropdown component#1796
Conversation
WalkthroughThis pull request introduces the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@designer-demo/public/mock/bundle.json`:
- Around line 634-635: The Chinese translation string under the "zh_CN" key in
the bundle.json contains a duplicated word ("或者或者组件"); update the value for
"zh_CN" to remove the duplicate so it reads "...必须是一个元素或者组件" (i.e., replace the
duplicated "或者" with a single "或者"). Ensure you only modify the string value
associated with the "zh_CN" entry in the JSON.
In `@mockServer/src/mock/get/app-center/v1/apps/schema/1.json`:
- Around line 2151-2157: There is a duplicate mapping object for componentName
"TinyDropdown" with package "@opentiny/vue" and exportName "TinyDropdown" that
is dead because the lookup uses .find() and the earlier mapping with exportName
"Dropdown" will always match first; remove the duplicate object (the one where
exportName is "TinyDropdown") so only the correct mapping (exportName:
"Dropdown") remains, or alternatively change its exportName to "Dropdown" to
match the established Tiny→unprefixed export pattern.
In `@mockServer/src/mock/get/app-center/v1/apps/schema/16.json`:
- Around line 1181-1187: Remove the duplicate entry that declares componentName
"TinyDropdown" with exportName "TinyDropdown" and instead update the existing
entry where componentName is "TinyDropdown" and exportName is "Dropdown" to the
intended version (match the new version value) so there is only one mapping for
TinyDropdown; delete the new block and change the version field on the existing
TinyDropdown/Dropdown object.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: eefac2de-06d6-4f12-84d9-f7b3fb8e5ce8
📒 Files selected for processing (3)
designer-demo/public/mock/bundle.jsonmockServer/src/mock/get/app-center/v1/apps/schema/1.jsonmockServer/src/mock/get/app-center/v1/apps/schema/16.json
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
新增下拉菜单组件

What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit