@nutui/nutui 4.1.0-beta.6 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +27 -70
  3. package/dist/nutui.es.js +4 -2
  4. package/dist/nutui.js +5140 -5134
  5. package/dist/nutui.umd.js +1 -1
  6. package/dist/packages/_es/Animate.js +37 -39
  7. package/dist/packages/_es/Card.js +26 -27
  8. package/dist/packages/_es/CircleProgress.js +8 -17
  9. package/dist/packages/_es/Empty.js +26 -29
  10. package/dist/packages/_es/Indicator.js +17 -18
  11. package/dist/packages/_es/Navbar.js +41 -88
  12. package/dist/packages/_es/Price.js +2 -2
  13. package/dist/packages/_es/Progress.js +20 -23
  14. package/dist/packages/_es/Sticky.js +4 -0
  15. package/dist/packages/_es/Swipe.js +64 -39
  16. package/dist/packages/_es/SwipeGroup.js +39 -0
  17. package/dist/packages/_es/Tabs.js +8 -3
  18. package/dist/packages/_es/Tag.js +30 -25
  19. package/dist/packages/_es/Uploader.js +52 -53
  20. package/dist/packages/button/index.scss +14 -0
  21. package/dist/packages/navbar/index.scss +1 -0
  22. package/dist/packages/progress/index.scss +6 -0
  23. package/dist/packages/swipe/index.scss +1 -0
  24. package/dist/packages/swipegroup/index.mjs +4 -0
  25. package/dist/packages/swipegroup/index.scss +0 -0
  26. package/dist/packages/swipegroup/style.mjs +2 -0
  27. package/dist/smartips/web-types.json +158 -23
  28. package/dist/style.css +1 -1
  29. package/dist/styles/themes/default.scss +56 -55
  30. package/dist/styles/themes/jdb.scss +56 -55
  31. package/dist/styles/themes/jddkh.scss +56 -55
  32. package/dist/styles/themes/jdt.scss +56 -55
  33. package/dist/types/__VUE/animate/index.vue.d.ts +14 -3
  34. package/dist/types/__VUE/animate/type.d.ts +1 -1
  35. package/dist/types/__VUE/card/index.vue.d.ts +22 -3
  36. package/dist/types/__VUE/circleprogress/index.vue.d.ts +7 -10
  37. package/dist/types/__VUE/circleprogress/types.d.ts +1 -0
  38. package/dist/types/__VUE/empty/index.vue.d.ts +11 -4
  39. package/dist/types/__VUE/empty/types.d.ts +1 -0
  40. package/dist/types/__VUE/indicator/index.vue.d.ts +7 -9
  41. package/dist/types/__VUE/indicator/types.d.ts +1 -0
  42. package/dist/types/__VUE/navbar/index.vue.d.ts +8 -5
  43. package/dist/types/__VUE/price/index.vue.d.ts +8 -6
  44. package/dist/types/__VUE/price/types.d.ts +2 -0
  45. package/dist/types/__VUE/progress/index.vue.d.ts +10 -10
  46. package/dist/types/__VUE/progress/types.d.ts +2 -0
  47. package/dist/types/__VUE/swipe/index.vue.d.ts +4 -4
  48. package/dist/types/__VUE/swipegroup/index.vue.d.ts +26 -0
  49. package/dist/types/__VUE/tag/index.vue.d.ts +5 -4
  50. package/dist/types/__VUE/uploader/index.vue.d.ts +40 -7
  51. package/dist/types/index.d.ts +3 -2
  52. package/dist/types/utils/unit.d.ts +1 -0
  53. package/dist/types/utils/useTaroRect/index.d.ts +1 -0
  54. package/package.json +1 -1
  55. /package/dist/types/__VUE/tag/{type.d.ts → types.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,49 @@
1
+ ## v4.1.1
2
+
3
+ `2023-07-21`
4
+
5
+ Features
6
+
7
+ - swipe: 新增 swipe-group 组件用于控制 swipe 操作互斥 (#2439)
8
+ - animate: 新增 show 属性与 animate 事件 (#2434)
9
+ - uploader: 小程序下新增预览图片 mode 属性 (#2435)
10
+
11
+ Bug Fixes
12
+
13
+ - utils: useTaroRect 方法增加异常处理 (#2431)
14
+ - button: 优化边框与渐变色背景样式问题
15
+ - type: 修复部分组件类型文件丢失问题
16
+
17
+ ## v4.1.0
18
+
19
+ NutUI 非常感谢您对开源事业做出的贡献!
20
+ 本次社区贡献者 @thx125 @wenjuGao @subordon @yang1206 @aooiuu
21
+
22
+ `2023-07-14`
23
+
24
+ Features
25
+
26
+ - 新增 `@nutui/touch-emulator`
27
+ - 新增 `@nutui/playground`
28
+ - form: 支持异步返回的自定义校验文案 (#2380) @subordon
29
+ - cell: 新增 box-shdow 样式变量 (#2382)
30
+ - calendar: 支持透传 Popup 属性 (#2410)
31
+ - address: 新增 round 属性 (#2411)
32
+
33
+ Bug Fixes
34
+
35
+ - address: 修复4级地址不触发 onchange 事件 (#2389) @thx125
36
+ - avatar: 修复显示头像折叠元素有错误问题 (#2417) @thx125
37
+ - calendar: 修复平铺展示时丢失 ref 问题 (#2390) @wenjuGao
38
+ - signature: 修复 Taro H5 getRect 方法异常
39
+ - sticky: 重构组件,修复 sticky 失效问题 (#2393)
40
+ - form: 获取子节点方法增加兜底处理,修复 JSX 下报错问题
41
+ - imagepreview: replace var with const (#2423) @subordon
42
+ - uploader: 支持异步修改 file-list (#2421)
43
+ - textarea: docs 文档修改 (#2428) @aooiuu
44
+ - component class name typo (#2392) @yang1206
45
+ - fix case typo (#2429) @subordon
46
+
1
47
  ## v4.0.12
2
48
 
3
49
  `2023-06-27`
package/README.md CHANGED
@@ -65,43 +65,30 @@
65
65
 
66
66
  [@nutui/nutui-taro](https://nutui.jd.com/taro/vue/4x/#/zh-CN/guide/intro):支持开发 Taro 多端小程序(微信、支付宝、京东等小程序)和 Taro-H5 项目
67
67
 
68
- ## 安装
69
-
70
- ```bash
71
- // H5 项目
72
- npm i @nutui/nutui
73
- ```
74
-
75
- ```bash
76
- // Taro 小程序项目
77
- npm i @nutui/nutui-taro
78
- ```
79
-
80
- ## 版本说明
81
-
82
- 目前 NutUI 有以下版本:
83
-
84
- * NutUI 4.x,默认推荐版本,定期迭代更新发版。
85
- * NutUI 3.x,长期维护版本,会同步 V4 版本问题修复,不对 API 做调整,不定期发版。
86
- * NutUI 2.x,仅修复重要阻塞性问题,不定期发版。
87
-
88
- ## 示例
68
+ ## 链接
89
69
 
90
- ```js
91
- import { createApp } from "vue"
92
- import App from "./App.vue"
70
+ ### 官方生态
93
71
 
94
- import NutUI from "@nutui/nutui"
95
- import "@nutui/nutui/dist/style.css"
72
+ NutUI 官方团队维护的项目如下:
96
73
 
97
- createApp(App).use(NutUI).mount("#app")
98
- ```
74
+ | 项目 | 描述 |
75
+ | --- | --- |
76
+ | [@nutui/nutui](https://github.com/jdf2e/nutui) | NutUI 移动端 H5 版本 |
77
+ | [@nutui/nutui-taro](https://github.com/jdf2e/nutui) | NutUI Taro 多端版本 |
78
+ | [@nutui/icons-vue](https://github.com/jdf2e/nutui-icons) | `@nutui/nutui` 使用的图标库 |
79
+ | [@nutui/icons-vue-taro](https://github.com/jdf2e/nutui-icons) | `@nutui/nutui-taro` 使用的图标库 |
80
+ | [@nutui/touch-emulator](https://github.com/jdf2e/nutui/tree/v4/packages/nutui-touch-emulator) | 在桌面端使用 NutUI 的辅助库 |
81
+ | [@nutui/playground](https://github.com/jdf2e/nutui/tree/v4/packages/nutui-playground) | NutUI 在线 Playground |
82
+ | [nutui-demo](https://github.com/jdf2e/nutui-demo) | NutUI 官方示例合集 |
99
83
 
100
- ## 学习资源
84
+ ### 社区生态
101
85
 
102
- [NutUI 实战快速入门](https://www.bilibili.com/video/BV14r4y1e7LK/?spm_id_from=333.999.0.0&vd_source=339cf5dcca71ec2905c729fd92bba8a9)
86
+ 由社区维护的项目如下,欢迎补充:
103
87
 
104
- [awesome-nutui](https://github.com/jdf2e/nutui/blob/v4/awesome.md)
88
+ | 项目 | 描述 |
89
+ | --- | --- |
90
+ | [yang1206/uniapp-nutui](https://github.com/yang1206/uniapp-nutui) | 基于 NutUI 4.x 版本开发的 uni-app 组件库 |
91
+ | [jwaterwater/uni-nutui](https://github.com/jwaterwater/uni-nutui) | 基于 NutUI 3.x 版本开发的 uni-app 组件库 |
105
92
 
106
93
  ## 使用案例
107
94
 
@@ -110,32 +97,6 @@ NutUI 已经投入了我们的生产环境中使用,业界也在广泛地使
110
97
  <img src="https://raw.githubusercontent.com/jdf2e/nutui-user-cases/master/user-cases.jpg" alt="NutUI" />
111
98
  </p>
112
99
  <p><a href="https://nutui.jd.com/#/case">更多案例</a></p>
113
- <p><a href="https://get.jd.com/#/survey/index?id=4217247740034539">我们正在征集社区优秀案例,欢迎点击提交</a></p>
114
-
115
- ## 链接
116
-
117
- <ul>
118
- <li>
119
- <a href="https://github.com/jdf2e/nutui/discussions">
120
- Discussions (用👍投票)
121
- </a>
122
- </li>
123
- <li>
124
- <a href="https://github.com/jdf2e/nutui/issues?q=is%3Aissue+is%3Aopen+label%3A%22help+wanted%22">
125
- Feature Requests (用👍投票)
126
- </a>
127
- </li>
128
- <li>
129
- <a href="https://github.com/jdf2e/nutui/labels/bug%203.0">
130
- Bugs (用👍投票)
131
- </a>
132
- </li>
133
- <li>
134
- <a href="https://github.com/jdf2e/nutui/issues?q=is%3Aissue+is%3Aopen+label%3Aquestion">
135
- Question (用👍投票)
136
- </a>
137
- </li>
138
- </ul>
139
100
 
140
101
  ## 开发交流
141
102
 
@@ -145,11 +106,11 @@ NutUI 已经投入了我们的生产环境中使用,业界也在广泛地使
145
106
 
146
107
  ## 参与共建
147
108
 
148
- #### NutUI 社区共建倡议
109
+ ### NutUI 社区共建倡议
149
110
 
150
111
  [NutUI 邀您共建,Contributor 您好](https://github.com/jdf2e/nutui/issues/1789)
151
112
 
152
- #### 为 NutUI 贡献代码
113
+ ### 为 NutUI 贡献代码
153
114
 
154
115
  NutUI 的共建方向主要分为:解决 issue、修复 bug、新增组件、增加国际化、UI 定制、平台适配、跨端扩展等。
155
116
 
@@ -173,22 +134,18 @@ NutUI 的共建方向主要分为:解决 issue、修复 bug、新增组件、
173
134
  <img src="https://opencollective.com/nutui/contributors.svg?width=890&button=false" alt="contributors">
174
135
  </a>
175
136
 
176
- ## Stargazers
177
-
178
- [![Stargazers repo roster for @jdf2e/nutui](https://reporoster.com/stars/jdf2e/nutui)](https://github.com/jdf2e/nutui/stargazers)
137
+ ## 更新日志
179
138
 
180
- ## Forkers
139
+ 查阅 [Release](https://github.com/jdf2e/nutui/releases)。
181
140
 
182
- [![Forkers repo roster for @jdf2e/nutui](https://reporoster.com/forks/jdf2e/nutui)](https://github.com/jdf2e/nutui/network/members)
141
+ ## Star
183
142
 
184
- ## 开发计划
185
-
186
- [Milestones](https://github.com/jdf2e/nutui/projects)
143
+ [![Stargazers repo roster for @jdf2e/nutui](https://reporoster.com/stars/jdf2e/nutui)](https://github.com/jdf2e/nutui/stargazers)
187
144
 
188
- ## 更新日志
145
+ ## Fork
189
146
 
190
- 本项目遵从 [Angular Style Commit Message Conventions](https://gist.github.com/stephenparish/9941e89d80e2bc58a153),更新日志请查阅 [Release](https://github.com/jdf2e/nutui/releases)
147
+ [![Forkers repo roster for @jdf2e/nutui](https://reporoster.com/forks/jdf2e/nutui)](https://github.com/jdf2e/nutui/network/members)
191
148
 
192
- ## github stargazers
149
+ ## GitHub Stargazaers
193
150
 
194
151
  ![stargazers](https://starchart.cc/jdf2e/nutui.svg)
package/dist/nutui.es.js CHANGED
@@ -47,6 +47,7 @@ export * from "./packages/numberkeyboard/index.mjs";
47
47
  export * from "./packages/form/index.mjs";
48
48
  export * from "./packages/formitem/index.mjs";
49
49
  export * from "./packages/swipe/index.mjs";
50
+ export * from "./packages/swipegroup/index.mjs";
50
51
  export * from "./packages/actionsheet/index.mjs";
51
52
  export * from "./packages/backtop/index.mjs";
52
53
  export * from "./packages/drag/index.mjs";
@@ -149,6 +150,7 @@ import { NumberKeyboard } from "./packages/numberkeyboard/index.mjs";
149
150
  import { Form } from "./packages/form/index.mjs";
150
151
  import { FormItem } from "./packages/formitem/index.mjs";
151
152
  import { Swipe } from "./packages/swipe/index.mjs";
153
+ import { SwipeGroup } from "./packages/swipegroup/index.mjs";
152
154
  import { ActionSheet } from "./packages/actionsheet/index.mjs";
153
155
  import { Backtop } from "./packages/backtop/index.mjs";
154
156
  import { Drag } from "./packages/drag/index.mjs";
@@ -204,7 +206,7 @@ import { Comment } from "./packages/comment/index.mjs";
204
206
  import { Invoice } from "./packages/invoice/index.mjs";
205
207
  export { Locale } from "./packages/locale/lang";
206
208
  export function install(app) {
207
- const packages = [Button,Cell,CellGroup,Overlay,Popup,ConfigProvider,Image,Layout,Col,Row,Sticky,Divider,Grid,GridItem,Navbar,FixedNav,Menu,MenuItem,Tabbar,TabbarItem,Elevator,Pagination,Tabs,TabPane,Indicator,SideNavbar,SideNavbarItem,SubSideNavbar,Range,Searchbar,Cascader,Calendar,Checkbox,CheckboxGroup,DatePicker,InputNumber,Input,Radio,RadioGroup,Rate,CalendarItem,Picker,ShortPassword,Textarea,Uploader,NumberKeyboard,Form,FormItem,Swipe,ActionSheet,Backtop,Drag,Dialog,InfiniteLoading,PullRefresh,Notify,Switch,Toast,Audio,AudioOperate,Avatar,AvatarGroup,List,Progress,CircleProgress,Noticebar,Empty,Video,Steps,Step,Swiper,SwiperItem,Price,ImagePreview,Countup,Countdown,Badge,Tag,Popover,Skeleton,Collapse,CollapseItem,Table,Animate,Ellipsis,Watermark,TrendArrow,Tour,Address,Barrage,Signature,TimeSelect,TimePannel,TimeDetail,Sku,Card,Ecard,AddressList,Category,CategoryPane,Comment,Invoice];
209
+ const packages = [Button,Cell,CellGroup,Overlay,Popup,ConfigProvider,Image,Layout,Col,Row,Sticky,Divider,Grid,GridItem,Navbar,FixedNav,Menu,MenuItem,Tabbar,TabbarItem,Elevator,Pagination,Tabs,TabPane,Indicator,SideNavbar,SideNavbarItem,SubSideNavbar,Range,Searchbar,Cascader,Calendar,Checkbox,CheckboxGroup,DatePicker,InputNumber,Input,Radio,RadioGroup,Rate,CalendarItem,Picker,ShortPassword,Textarea,Uploader,NumberKeyboard,Form,FormItem,Swipe,SwipeGroup,ActionSheet,Backtop,Drag,Dialog,InfiniteLoading,PullRefresh,Notify,Switch,Toast,Audio,AudioOperate,Avatar,AvatarGroup,List,Progress,CircleProgress,Noticebar,Empty,Video,Steps,Step,Swiper,SwiperItem,Price,ImagePreview,Countup,Countdown,Badge,Tag,Popover,Skeleton,Collapse,CollapseItem,Table,Animate,Ellipsis,Watermark,TrendArrow,Tour,Address,Barrage,Signature,TimeSelect,TimePannel,TimeDetail,Sku,Card,Ecard,AddressList,Category,CategoryPane,Comment,Invoice];
208
210
  packages.forEach((item) => {
209
211
  if (item.install) {
210
212
  app.use(item);
@@ -213,7 +215,7 @@ export function install(app) {
213
215
  }
214
216
  });
215
217
  }
216
- export const version = '4.1.0-beta.6';
218
+ export const version = '4.1.1';
217
219
  export default {
218
220
  install,
219
221
  version