Releases: jdf2e/nutui
v4.0.0 🚀
2023-01-12
新特性
- ⚡ 全新的升级,基于 vite4 构建
- ✨ 轻量化,相比 v3.3.0 安装体积减少 87%,构建体积减少 40%,详见:packagephobia
- ✨ 新增组件 Tour
- ✨ 新增组件 PullRefresh
- 🎨 支持 动态定制主题
- ✨ 专属图标库 nutui-icons
- ✨ 支持 unplugin-vue-components 插件
完整内容请移步:「4.0更新介绍」
小程序版本依赖 Taro ^3.5.10
NutUI 非常感谢您对开源事业做出的贡献!🌷🌷🌷
本次社区贡献者 @kasonyang @gyt95 @thx125 @Coffee-C @sjx12 @mikasayw @jxt776 @xiaosifeng
⚠️ 升级必读
What's Changed
- feat: 新增 clamp 函数 by @yangxiaolu1993 in #1901
- feat: 增加 unplugin 插件适配 by @eiinu in #1913
- fix:ts类型修改 by @lkjh3214 in #1914
- fix: ts 类型修改 by @eiinu in #1916
- fix: 增加 import 语句 by @eiinu in #1917
- 组件名称变更 OverLay --> Overlay by @eiinu in #1918
- 组件名称变更:Watermark、Textarea by @eiinu in #1919
- chore: rename component name by @eiinu in #1920
- chore: 组件使用名称变更 by @eiinu in #1923
- chore: 组件使用名称变更 by @eiinu in #1924
- feat: 处理组件tsc问题 by @ailululu in #1922
- chore(actionsheet): use icons-vue component and fix unit test by @kasonyang in #1928
- chore(tabs): use icons-vue component by @thx125 in #1927
- chore(tag): use icons-vue component by @Coffee-C in #1929
- chore(shortpassword): use icons-vue component by @kasonyang in #1938
- fix: Ts类型修改 by @lkjh3214 in #1935
- chore(audio): use icons-vue component by @gyt95 in #1930
- chore(image): use icons-vue component by @xiaosifeng in #1940
- chore(sidenavbar): use icons-vue component by @gyt95 in #1931
- chore(swiper): use icons-vue component by @gyt95 in #1937
- Refactor table 切换icons by @sjx12 in #1947
- feat: collapse api 更换,icon 图标更换 by @Ymm0008 in #1952
- chore(badge): use icons-vue component by @Coffee-C in #1948
- chore(elevator): use icon-vue component by @gyt95 in #1936
- fix: import quote by @jianxiaoBai in #1954
- fix(cell): vue warn "icon" was accessed by @chengyuzhang in #1955
- feat: searchbar icon 更换,文档修改 by @Ymm0008 in #1956
- feat: noticebar、rate icon 更换,文档修改 by @Ymm0008 in #1957
- V4: popup icons-vue by @ailululu in #1953
- fix(avatar): dts by @eiinu in #1965
- Update index.vue by @jxt776 in #1966
- fix: Address、popover 等组件 icon 问题修改 by @yangxiaolu1993 in #1967
- fix: 文档,demo 去掉 nut-icon by @Ymm0008 in #1963
- fix: menu,checkbox,radio Icon组件替换,添加slot by @lkjh3214 in #1964
- fix: 完善组件依赖关系 by @eiinu in #1968
- fix: 地址组件多余props删除 by @yangxiaolu1993 in #1969
- fix: input融合form,icon使用修改 by @lkjh3214 in #1970
- fix: dts修改 by @yangxiaolu1993 in #1971
- fix: form demo与文档调整 by @lkjh3214 in #1973
- 组件 icon by @ailululu in #1975
- fix: noticebar demo修改 by @Ymm0008 in #1974
- fix: Popover Demo 展示修改 by @yangxiaolu1993 in #1976
- feat: tour 组件新增功能 by @yangxiaolu1993 in #1977
- fix:popover问题修改 by @yangxiaolu1993 in #1989
- fix:代码回退 by @yangxiaolu1993 in #1990
- fix: 文档修改 by @yangxiaolu1993 in #1992
- fix: barrage 小程序不展示问题处理 by @Ymm0008 in #1988
- fix: noticebar在小程序中不能运行问题修改 by @yangxiaolu1993 in #1994
- fix: waterMark taro版本修改 by @lkjh3214 in #1982
- docs: Picker 组件文档修改 by @yangxiaolu1993 in #1995
- docs: Datepicker文案修改 by @yangxiaolu1993 in #1997
- docs: 文案修改 by @yangxiaolu1993 in #1998
- docs: 文本修改 by @yangxiaolu1993 in #1999
- fix: imagepreview修复 by @yangxiaolu1993 in #2001
- fix: calendar(v4) 修改放大系数 by @lkjh3214 in #2000
- 优化价格文档描述和demo by @ailululu in #1996
- docs: 更新 by @yangxiaolu1993 in #2003
- fix: drag 使用公共函数 by @yangxiaolu1993 in #2010
- 小程序demo 文档对比修改 by @ailululu in #2012
- avatar 图片展示问题 by @ailululu in #2015
- docs: 文案修改 by @yangxiaolu1993 in #2021
- fix: 多余 props 删除 by @yangxiaolu1993 in #2023
- fix: failed to run dev script on windows by @gyt95 in #2019
- docs: 文档修改 by @yangxiaolu1993 in #2024
- docs: 文档修改 by @yangxiaolu1993 in #2025
- docs: 文案修改 by @yangxiaolu1993 in #2029
- 修复addresslist问题 by @ailululu in #2027
- fix: 评论问题修改 by @yangxiaolu1993 in #2030
- fix: 评论组件修改 by @yangxiaolu1993 in #2032
- docs: popover文档修改 by @yangxiaolu1993 in #2033
- fix: sku问题修改 by @yangxiaolu1993 in #2034
- fix: tour修改 by @yangxiaolu1993 in #2036
- fix: picker问题修改 by @yangxiaolu1993 in #2037
- docs: tour 修改 by @yangxiaolu1993 in #2039
- docs: 文档修改 by @yangxiaolu1993 in #2040
- fix: collapse 组件slot修改 by @Ymm0008 in #2042
- fix: searchbar 组件slot修改 by @Ymm0008 in #2043
- fix(navbar/popup/trendarrow): icon slot by @eiinu in #2044
- fix: slot修改 by @yangxiaolu1993 in #2046
- addresslist slot by @ailululu in #2045
- fix: tour类型修改 by @yangxiaolu1993 in #2047
- fix: calendar修改文档与demo by @lkjh3214 in #2048
- fix: ellipsis 修改 by @yangxiaolu1993 in #2049
- fix: ellipsis修复 by @yangxiaolu1993 in #2050
New Contributors
- @kasonyang made their first contribution in #1928
- @Coffee-C made their first contribution in #1929
- @xiaosifeng made their first contribution in #1940
- @sjx12 made their first contribution in #1947
- @jianxiaoBai made their first contribution in #1954
- @chengyuzhang made their first contribution in #1955
- @jxt776 made their first contribution in #1966
Full Changelog: v3.3.0...v4.0.0
v3.3.2
2023-1-4
小程序版本依赖 Taro ^3.5.6
NutUI 非常感谢您对开源事业做出的贡献!🌷🌷🌷
本次社区贡献者 @gyt95 @zy-hub @HuziG
- ⚡ chore: vite工具按需加载功能修复(测试 Button 组件减少193kb) @richard1015
- ⚡ feat(tabs): 支持点击时自动居中功能 @gyt95
- ⚡ feat(menu): taro 环境新增 open、close方法 (#1985) @yangjinjun3
- ⚡ feat(popup): popup增加自定义遮罩层类名及样式 (#1962) @zy-hub
- 🐛 fix(price): add new props strike-through (#1934)(#1907) @Drjingfubo
- 🐛 fix(tabbar): router jump problem (#1993) @Drjingfubo
- 🐛 fix(barrage): 小程序不展示问题处理 (#1987) @Ymm0008
- 📖 docs(uploader): 组件的文档补充 (#1949) @HuziG
v3.3.1
2022-12-16
小程序版本依赖 Taro ^3.5.6
- ⚡ feat(imagepreview、infiniteloading、tabs、tabbar): 优化内部逻辑 @nutui-team
- ⚡ feat(picker): 新增 showOkText、showCancelText (#1933) @yangxiaolu1993
- 🐛 fix(price): add new props strike-through (#1934)(#1907) @Drjingfubo
- 🐛 fix(tabs): taro env sticky tips bug #1889 @richard1015
- 🐛 fix(price): taro h5 style problem (#1944) @Drjingfubo
- 🐛 fix(menu): 修正自定义图标文档错误 、设置class-prefix不生效问题 (#1942) @yangjinjun3
- 🐛 fix: range 组件Taro H5修改 (#1915) @lkjh3214
v3.3.0
v3.3.0
2022-12-02
小程序版本依赖 Taro ^3.5.x
NutUI 非常感谢您对开源事业做出的贡献!🌷🌷🌷
本次社区贡献者 @mikasayw @thx125
- ✨ chore: npm source set registry.npmmirror.com @richard1015
- ⚡ feat(input): 添加小程序属性always-system (#1863) @mikasayw
- ⚡ feat: 抽离 CreateComponent 函数,用于 函数式组件开发 (#1876) @yangxiaolu1993
- ⚡ feat: 重构 Popover,去除第三方依赖 (#1873) @yangxiaolu1993
- ⚡ feat: Popover 组件 Taro 小程序适配 (#1882) @yangxiaolu1993
- ⚡ feat(input): 新增enterkeyhint属性(H5版本支持confirm-type) (#1867) @mikasayw
- ⚡ upd: overlay,popup @szg2008
- 🐛 fix(popup): update hide animation @szg2008
- 🐛 fix(addresslist): 地址组件优化 (#1877)@ailululu
- 🐛 fix(popup): 组件修改(#1877)(#1883) @yangxiaolu1993
- 🐛 fix(Address): 组件体积优化 (#1885) @yangxiaolu1993
- 🐛 test(countdown,picker,imagepreview,dialog): 组件单元测试修改 (#1886) @yangxiaolu1993
- 🐛 fix: change mobile jump bug @richard1015
- 🐛 fix(inputNumber): taro h5 style issues #1874 (#1887)@Drjingfubo
- 🐛 upd(form): add try catch ,fix submit method @richard1015
- 🐛 fix(Menu): 修复MenuItem 无法销毁问题 #1788 (#1857) @thx125
- 🐛 fix(elevator): elevator组件elevator__item__${i}渲染出现小数 #1844 @szg2008
- 🐛 fix(menu): 隐藏菜单时,不移除Popup里的内容 (#1891) @yangjinjun3
- 🐛 fix(input): 合并template代码 (#1890) @ailululu
- 🐛 fix(textarea): 渲染问题处理,collapse 单测修复 (#1892) @Ymm0008
- 🐛 fix(input): commontent增加类型 (#1893) @ailululu
- 🐛 fix(menu): 修复弹框跳转问题 (#1894) @yangjinjun3
- 🐛 fix(Uploader): H5 打包去掉Taro 内容 (#1895) @yangxiaolu1993
- 🐛 fix(popup): popover 小程序warn解决 @szg2008
- 🐛 fix(popover): 样式换行问题修改 (#1897) @yangxiaolu1993
- 📖 docs(form): en us submit desc edit @richard1015
- 📖 docs(steps): 补充icon自定义的文档 @szg2008
- 📖 docs(Signature): 签名组件文档修改 (#1896) @szg2008
v3.2.7
v3.2.7
2022-11-18
小程序版本依赖 Taro ^3.5.x
NutUI 非常感谢您对开源事业做出的贡献!🌷🌷🌷
本次社区贡献者 @gyt95 @Anberm @jwaterwater @mikasayw @thx125 @Yill625
- ✨ feat: 京东小程序适配 @nutui-teams
- ⚡ feat(elevator): add change event(#1826) @szg2008
- ⚡ feat: add rectangle arrow icons (#1833) @eiinu
- ⚡ feat(uploader): add delete-icon prop (#1841) @gyt95
- ⚡ feat(calendar): 添加自定义周起始日配置 (#1827) @thx125
- ⚡ feat(menu): 增加open和close事件 (#1848) @yangjinjun3
- ⚡ feat: upd icon close @richard1015
- 🐛 fix(uploader): taro env 多组件多accept限制bug #1448 @richard1015
- 🐛 fix(sticky): sticky小程序跳动现象修复(#1571) @szg2008
- 🐛 fix(swiper): swiper 加载动态图片时报Cannot read property id of null #1537 @szg2008
- 🐛 fix(form): android site bug #1673 @richard1015
- 🐛 fix(form): input ios 16 bug #1503 @richard1015
- 🐛 fix(collapse): 修复小程序环境下使用手风琴模式无效问题 (#1830) @gyt95
- 🐛 fix(collapse):折叠面板加载问题处理 #1743 (#1829) @Ymm0008
- 🐛 fix(imagepreview): 动态设置图片导致偏移 (#1836) @Anberm
- 🐛 fix(avatar): 修复在H5环境下运行报错问题 (#1831) @gyt95
- 🐛 fix: 修复 H5 下向上展开样式错误 (#1840) @eiinu
- 🐛 fix(Drag): 修复拖拽表现异常 (#1716) @jwaterwater
- 🐛 fix(card): too much content causes image stretched (#1839) @gyt95
- 🐛 fix(uploader): taro jd env image base64 preview bug @richard1015
- 🐛 fix(skeleton): fix some bugs for skeleton (#1832) @mikasayw
- 🐛 fix(tabbar): add custom Icon slot #1807 (#1852) @Drjingfubo
- 🐛 fix(video): Dynamically change source.src (#1860) @Drjingfubo
- 🐛 fix(popup): 优化挂载逻辑 (#1861) @yangjinjun3
- 🐛 fix(input): 优化了一些问题 (#1858) @ailululu
- 🐛 fix(Signature): 签名组件文档,demo (#1856) @Ymm0008
- 🐛 fix: 修复 imagepreview 动态设置 initNo 显示不正确问题 #1849 && InfiniteLoading 某些情况下会错误触发下拉刷新#1819 (#1853) @yangjinjun3
- 📖 docs(input): add demo md clear @richard1015
- 📖 docs: icon link edit @richard1015
- 📖 docs(popup): modify close icon props description @szg2008
- 📖 docs: 修改水印导出名称 (#1855) @Yill625
v3.2.6
2022-11-04
小程序版本依赖 Taro ^3.5.x
NutUI 非常感谢您对开源事业做出的贡献!🌷🌷🌷
本次社区贡献者 @thx125 @gyt95 @HuziG @mikasayw @motain
- 🐛 fix(imagePreview): 解决 imagepreview 视频点击关闭蒙层问题 (#1783) @yangxiaolu1993
- 🐛 fix(picker): 解决 Picker 在微信小程序中无法使用的问题 (#1786) @yangxiaolu1993
- 🐛 fix(tabbar): add props placeholder #1692 (#1796) @Drjingfubo
- 🐛 fix(video): add new events time #1055 (#1798) @Drjingfubo
- 🐛 fix(Signature): 签名组件taro环境适配 (#1797) @Ymm0008
- 🐛 fix(uploader): taro h5 模式 accept 不生效 #1448 #1445 #1474 @richard1015
- 🐛 fix(picker): 修改 Picker 组件在 Taro 中v-model 失效问题 (#1801) @yangxiaolu1993
- 🐛 fix(noticeBar): NoticeBar修改height之后,垂直轮播会卡顿(#1809) (#1813) @yangxiaolu1993
- 🐛 fix(datepicker): 删除Datepicker Demo演示中多余内容 (#1814) @yangxiaolu1993
- 🐛 fix(icon): demo 复制功能优化 (#1773) @eiinu
- 🐛 fix(input): 修复taro中input@update:model-value事件会触发两次 #1632 (#1790) @ailululu
- 🐛 fix(menu): 修改Menu弹出失效问题 (#1812) @thx125
- 🐛 fix: scroll-view标签问题修复 (#1817) @lkjh3214
- 🐛 fix(badge): 修复在自定义徽标内容下设置样式无效的问题 (#1821) @gyt95
- 🐛 fix(notify): fix notify duration (#1810) @mikasayw
- 📖 docs: update vue3 CLI self-test link (#1822) @gyt95
- 📖 docs(actionsheet): edit doc (#1794) @HuziG
- 📖 docs(image): taro media image doc 404 fixed (#1795) @motain
- 📖 docs(uploader): capture tips add @richard1015
- 📖 docs(menu): 菜单组件文档添加 toggle 事件说明 (#1818) @yangjinjun3
v3.2.5
2022-10-25
小程序版本依赖 Taro ^3.5.x
- ✨ chore: update dts plugin @richard1015
- ✨ chore: update webstorm plugin @szg2008
- ✨ chore: change build vite config @Drjingfubo
- 🐛 fix(fitabbar): defalut unactive-color #1779 (#1780) @yangjinjun3
- 📖 docs: docs: add README_EN.md (#1772) @eiinu
v3.2.4
2022-10-21
小程序版本依赖 Taro ^3.5.x
NutUI 非常感谢您对开源事业做出的贡献!🌷🌷🌷
本次社区贡献者 @jwaterwater @Sorryhx @xxxsf @subordon
Tips: 重点修复 Scroll-View 在 Taro H5 场景下,不生效问题 #1766
- ✨ chore: vite打包配置修改,添加taro标签处理 (#1766) @lkjh3214
- ✨ chore: vscode extension support new components @szg2008
- ✨ chore: update dts plugin @szg2008
- ✨ feat(ellipsis): add lineHeight props @szg2008
- ✨ feat(Picker、DatePicker): 新增safe-area-inset-bottom属性 (#1770) @yangxiaolu1993
style: add jddkh theme @yangjinjun3 - 🐛 fix(textarea): 小程序端组件按需加载的时候,未正确获取到文本框的高度 (#1756) @subordon
- 🐛 fix(barrage): barrage 样式报错,H5环境 slot 插槽适配 (#1771) @Ymm0008
- 🐛 fix(imagepreview): 组件,滑动时弹窗出现关闭现象 (#1761) @xxxsf
- 🐛 fix(popup): close事件触发时机 (#1730) @Sorryhx
- 🐛 fix(address、datepicker): DatePicker 的 v-model 没有实现双向绑定 (#1745) @yangxiaolu1993
- 🐛 fix(tabbar): safe-bottom样式异常 (#1742) @jwaterwater
- 🐛 fix(toast): resolve problem of method failure in production (#1744) @Drjingfubo
- 🐛 fix(calendar): taro h5 scroll-view compatible (#1718) @lkjh3214
- 🐛 fix(uploader): taro 环境 multiple 参数支持 ,用于优化只选中1个照片场景 @richard1015
- 📖 docs(image): showError showLoading props CamelCase @szg2008
- 📖 docs: upd contributing link @richard1015
- 📖 docs: add awesome.md @snandy
- 📖 docs: change readme.md @snandy
- 📖 docs(imagepreview): add import component @szg2008
- 📖 docs(uploader): before-xhr-upload #1725 @richard1015
- 📖 docs(components): optimization @Drjingfubo
v3.2.3
v3.2.3
2022-09-30
小程序版本依赖 Taro3.5
NutUI 非常感谢您对开源事业做出的贡献!🌷🌷🌷
本次社区贡献者 @yoyo837 @jwaterwater
✨ chore: taro env jd Adapter @richard1015
✨ chore: component types @szg2008
✨ chore: taro3.5 support @szg2008
✨ chore: updrade typescript to v4.8 @szg2008
✨ chore: style variables del animation #1689 #1375 @richard1015
✨ feat: add trendArrow component(#1660) @lkjh3214
⚡️ upd: change export module name @szg2008
⚡️ feat: validator 支持回传rule, 用以在自定义 validator 时获得配置在rule的属性来处理不同的逻辑, 含自定义属性 @yoyo837
⚡️ feat(form): add props rules属性, 可以统一配置每个FormItem的rules (#1704) @yoyo837
🐛 fix(searchbar): textalign types @szg2008
🐛 fix(components): docs and type optimization (#1661) @Drjingfubo
🐛 fix(avatar): events callback undefined (#1686) @Drjingfubo
🐛 fix(components): type optimization (#1666) @lkjh3214
🐛 fix: 修复 ImagePreview 在Taro编译成H5后报错的问题 (#1687) @yangxiaolu1993
🐛 test(trendarrow): test error @szg2008
🐛 test(tabs,cascader): resolve test error (#1709) @szg2008
🐛 fix(uploader): method clearUploadQueue #1597 @richard1015
🐛 fix(uploader): before-delete support Promise #1672 @richard1015
🐛 fix(picker): 在Taro中卡顿的问题 (#1685) @yangxiaolu1993
🐛 fix(tabs): resolve conditional rendering issues #1500 (#1698) @Drjingfubo
🐛 fix(form-item): tsx 类型捕获 (#1697) @yoyo837
🐛 fix(barrage): add slot,demo及文档完善 (#1699) @Ymm0008
🐛 fix(menu): 修复文档中部分错误 & 修复 taro 小程序下闪跳问题 #1541 (#1678) @eiinu
🐛 fix(menu): remove taro menu-popup entry animation (#1703) @eiinu
🐛 fix(tabbar): add default height (#1701) @jwaterwater
🐛 fix(tabs): h5 add sticky props (#1707) @Drjingfubo
🐛 fix(list): 组件事件不被触发 #1607 @szg2008
🐛 test(list): test error #1607 @szg2008
🐛 fix(divider,imagePreview,pagination): components optimization (#1705)@eiinu
📖 docs(components): optimization (#1662) @Drjingfubo
📖 docs(components): optimization (#1683) @Drjingfubo
📖 docs(imagePreview): type optimization (#1691) @Drjingfubo
📖 docs(infiniteloading): type load-icon props to string @szg2008
📖 docs(timeselect,overlay): edit (#1679) @eiinu
📖 docs(card): add click events (#1700) @Drjingfubo
v3.2.2
v3.2.2
2022-09-08
小程序版本依赖 Taro3.4
NutUI 非常感谢您对开源事业做出的贡献!🌷🌷🌷
本次社区贡献者 @hydraZty @YoungsunLi @tolking @LarryHangFan
- ✨ feat: 发票组件+taro (#1590) @ailululu
- ⚡ feat(icon): demo 页面增加点击图标复制 name 功能 (#1563) @eiinu
- ⚡ feat(inputnumber): 增加自定义左右操作符图标功能 #1562 @eiinu
- ⚡ feat(searchbar): 新增自定义设置清除图标功能, 新增聚焦时自定义样式 (#1618) @Ymm0008
- 🐛 fix(picker): 解决惯性滚动问题 (#1546) @yangxiaolu1993
- 🐛 fix(imagePreview): replace the type for images (#1543) @hydraZty
- 🐛 fix(calendar): 兼容支付宝小程序。修改滚动判断逻辑。修复h5 demo问题。修复滚动动画props失效问题 (#1547) @lkjh3214
- 🐛 fix(tabbar): resolve href error #1533 (#1556) @Drjingfubo
- 🐛 test(menu): resolve error (#1557) @Drjingfubo
- 🐛 fix(cell): Cell Slots中使用Layout,会导致Cell和Row的@click事件全部失效(#1408) @eiinu
- 🐛 fix(radio): radio对齐问题(#1419) @eiinu
- 🐛 fix(picker): taro-picker 问题修改 (#1582) @yangxiaolu1993
- 🐛 fix(picker): Picker新增点击确定停止滚动逻辑 (#1586) @yangxiaolu1993
- 🐛 fix(picker): 解决Picker 在Taro 上的高度问题 (#1604) @yangxiaolu1993
- 🐛 fix(form&radio): 修复 radio 表单校验相关问题 (#1587) @eiinu
- 🐛 fix(tabs): whitespace children bug (#1599) @YoungsunLi
- 🐛 fix(dialog): 标题判断时未考虑插槽 (#1601) @tolking
- 🐛 fix: loadingrotate is false, which is invalid (#1613) @LarryHangFan
- 🐛 fix(menu): menu list cannot be scrolled #1615 (#1633) @Drjingfubo
- 🐛 fix(drag): resolve console error (#1634) @Drjingfubo
- 🐛 fix(picker): 在Taro适配中的优化以及Issue 问题修改(#1620、#1572) @yangxiaolu1993
- 🐛 fix(tabs): resolve tabpane show errors #1544 (#1636) @Drjingfubo
- 🐛 fix(form): resolve slot invalid issue #1637 (#1638) @Drjingfubo
- 🐛 fix(picker): 文本超长省略号处理 (#1639) @yangxiaolu1993
- 🐛 fix(price): price 在小程序中样式展示不对 #1628 @szg2008
- 🐛 fix(calendar): demo错误问题修复 (#1644) @lkjh3214
- 📖 docs(list): 文档 demo 增加 css 样式 (#1565) @eiinu
- 📖 docs(actionsheet,toast): edit (#1635) @Drjingfubo
- 📖 docs(backtop,badge,button,popover,tag,watermark): 文档调整,demo修改 (#1624) @lkjh3214