vant
vant copied to clipboard
[Feature Request] add new Block component
What problem does this feature solve?
A neat and proper div is commonly used, imho van should provide one to make our life easier :smile:
The reason is that vant is actually already using it in demo :+1:
What does the proposed API look like?
<demo-block :title="t('type')">
<div class="demo-button-row">
<van-button type="primary">{{ t('primary') }}</van-button>
<van-button type="success">{{ t('success') }}</van-button>
<van-button type="default">{{ t('default') }}</van-button>
</div>
<van-button type="danger">{{ t('danger') }}</van-button>
<van-button type="warning">{{ t('warning') }}</van-button>
</demo-block>
Hello @anonimusprogramus. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please send your Pull Request to main
branch, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!
你好 @anonimusprogramus,我们完全同意你的提议/反馈,欢迎直接在此仓库 创建一个 Pull Request 来解决这个问题。请将 Pull Request 发到 main
分支,提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待你的贡献。
If anyone is interested in implementing this new component, please sign up here 😄
let me give it a try