重构demo&doc计划🚀🚀🚀 #2018
Replies: 27 comments 28 replies
-
InputNumber 已提交pr |
Beta Was this translation helpful? Give feedback.
-
CalenderCard 已提交 PR |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
SearchBar 已提交 PR |
Beta Was this translation helpful? Give feedback.
-
Card 已提交 PR |
Beta Was this translation helpful? Give feedback.
-
认领 : trendarrow |
Beta Was this translation helpful? Give feedback.
-
Cascader |
Beta Was this translation helpful? Give feedback.
-
认领 Checkbox |
Beta Was this translation helpful? Give feedback.
-
认领:Range |
Beta Was this translation helpful? Give feedback.
-
认领三个:
|
Beta Was this translation helpful? Give feedback.
-
认领:Countdown |
Beta Was this translation helpful? Give feedback.
-
textarea已提交PR |
Beta Was this translation helpful? Give feedback.
-
ellipsis 已提交pr |
Beta Was this translation helpful? Give feedback.
-
认领uploader |
Beta Was this translation helpful? Give feedback.
-
认领 Calendar |
Beta Was this translation helpful? Give feedback.
-
Range 已提 PR |
Beta Was this translation helpful? Give feedback.
-
前期为了适应各种版本,共有
doc.md
、doc.en-US.md
、doc.zh-TW.md
、doc.taro.md
四种类型的文档,随着功能的迭代,每次更改demo都需要进行重复的国际化翻译与四份文档的编写,带来了大量的工作负担与一致性隐患。因此在这一方面,本项目已进行mdx项目重构,转变逻辑如下:具体提交PR过程如下:
fork仓库
访问https://github.com/jdf2e/nutui-react
点击fork仓库到Your repositories(欢迎Star)。
克隆代码到本地并运行
单独开辟分支,如
git checkout -b fix/0314/extract-button-demos
具体操作
demo.tsx
和demo.taro.tsx
进行组件引入与拆解。去除无关代码。具体效果可参考已完成的组件doc.md
、doc.en-US.md
、doc.zh-TW.md
依次引入demos/h5中的全部demodoc.taro.md
引入demos/taro中的全部demodemo
与demo.tsx
对应位置的代码是否一致,若不一致:以demo.tsx
为标准对抽取出的demo
进行修改;一致后则替换为引入的demo
。demo
效果,确认无误后删除interface
以及无关import
的内容。至此完成对于demo.tsx的替换demo.taro.tsx
的校验步骤与上述一致PR流程
fix([组件名]): demo拆解与规范
描述勾选如下:组件认领表
Beta Was this translation helpful? Give feedback.
All reactions