@nutui/nutui 4.1.0 → 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.
- package/CHANGELOG.md +16 -0
- package/README.md +27 -70
- package/dist/nutui.es.js +4 -2
- package/dist/nutui.js +5225 -5175
- package/dist/nutui.umd.js +1 -1
- package/dist/packages/_es/Animate.js +37 -39
- package/dist/packages/_es/Card.js +26 -27
- package/dist/packages/_es/CircleProgress.js +8 -17
- package/dist/packages/_es/Empty.js +26 -29
- package/dist/packages/_es/Indicator.js +17 -18
- package/dist/packages/_es/Price.js +2 -2
- package/dist/packages/_es/Progress.js +20 -23
- package/dist/packages/_es/Swipe.js +64 -39
- package/dist/packages/_es/SwipeGroup.js +39 -0
- package/dist/packages/_es/Tabs.js +8 -3
- package/dist/packages/_es/Tag.js +30 -25
- package/dist/packages/_es/Uploader.js +30 -38
- package/dist/packages/button/index.scss +14 -0
- package/dist/packages/progress/index.scss +6 -0
- package/dist/packages/swipe/index.scss +1 -0
- package/dist/packages/swipegroup/index.mjs +4 -0
- package/dist/packages/swipegroup/index.scss +0 -0
- package/dist/packages/swipegroup/style.mjs +2 -0
- package/dist/smartips/web-types.json +27 -18
- package/dist/style.css +1 -1
- package/dist/styles/themes/default.scss +52 -51
- package/dist/styles/themes/jdb.scss +52 -51
- package/dist/styles/themes/jddkh.scss +52 -51
- package/dist/styles/themes/jdt.scss +52 -51
- package/dist/types/__VUE/animate/index.vue.d.ts +14 -3
- package/dist/types/__VUE/animate/type.d.ts +1 -1
- package/dist/types/__VUE/card/index.vue.d.ts +22 -3
- package/dist/types/__VUE/circleprogress/index.vue.d.ts +7 -10
- package/dist/types/__VUE/circleprogress/types.d.ts +1 -0
- package/dist/types/__VUE/empty/index.vue.d.ts +11 -4
- package/dist/types/__VUE/empty/types.d.ts +1 -0
- package/dist/types/__VUE/indicator/index.vue.d.ts +7 -9
- package/dist/types/__VUE/indicator/types.d.ts +1 -0
- package/dist/types/__VUE/price/index.vue.d.ts +8 -6
- package/dist/types/__VUE/price/types.d.ts +2 -0
- package/dist/types/__VUE/progress/index.vue.d.ts +10 -10
- package/dist/types/__VUE/progress/types.d.ts +2 -0
- package/dist/types/__VUE/swipe/index.vue.d.ts +4 -4
- package/dist/types/__VUE/swipegroup/index.vue.d.ts +26 -0
- package/dist/types/__VUE/tag/index.vue.d.ts +5 -4
- package/dist/types/__VUE/uploader/index.vue.d.ts +0 -3
- package/dist/types/index.d.ts +2 -1
- package/dist/types/utils/unit.d.ts +1 -0
- package/dist/types/utils/useTaroRect/index.d.ts +1 -0
- package/package.json +1 -1
- /package/dist/types/__VUE/tag/{type.d.ts → types.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
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
|
+
|
|
1
17
|
## v4.1.0
|
|
2
18
|
|
|
3
19
|
NutUI 非常感谢您对开源事业做出的贡献!
|
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
|
-
|
|
91
|
-
import { createApp } from "vue"
|
|
92
|
-
import App from "./App.vue"
|
|
70
|
+
### 官方生态
|
|
93
71
|
|
|
94
|
-
|
|
95
|
-
import "@nutui/nutui/dist/style.css"
|
|
72
|
+
由 NutUI 官方团队维护的项目如下:
|
|
96
73
|
|
|
97
|
-
|
|
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
|
-
|
|
86
|
+
由社区维护的项目如下,欢迎补充:
|
|
103
87
|
|
|
104
|
-
|
|
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
|
-
|
|
109
|
+
### NutUI 社区共建倡议
|
|
149
110
|
|
|
150
111
|
[NutUI 邀您共建,Contributor 您好](https://github.com/jdf2e/nutui/issues/1789)
|
|
151
112
|
|
|
152
|
-
|
|
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
|
-
##
|
|
177
|
-
|
|
178
|
-
[](https://github.com/jdf2e/nutui/stargazers)
|
|
137
|
+
## 更新日志
|
|
179
138
|
|
|
180
|
-
|
|
139
|
+
查阅 [Release](https://github.com/jdf2e/nutui/releases)。
|
|
181
140
|
|
|
182
|
-
|
|
141
|
+
## Star
|
|
183
142
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
[Milestones](https://github.com/jdf2e/nutui/projects)
|
|
143
|
+
[](https://github.com/jdf2e/nutui/stargazers)
|
|
187
144
|
|
|
188
|
-
##
|
|
145
|
+
## Fork
|
|
189
146
|
|
|
190
|
-
|
|
147
|
+
[](https://github.com/jdf2e/nutui/network/members)
|
|
191
148
|
|
|
192
|
-
##
|
|
149
|
+
## GitHub Stargazaers
|
|
193
150
|
|
|
194
151
|

|
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.
|
|
218
|
+
export const version = '4.1.1';
|
|
217
219
|
export default {
|
|
218
220
|
install,
|
|
219
221
|
version
|