@nutui/nutui 4.0.0-beta.15 → 4.0.0-beta.17
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/dist/nutui.es.js +1 -1
- package/dist/nutui.umd.cjs +2 -2
- package/dist/packages/_es/Address.js +3 -0
- package/dist/packages/_es/AddressList.js +125 -177
- package/dist/packages/_es/Audio.js +6 -0
- package/dist/packages/_es/AudioOperate.js +1 -0
- package/dist/packages/_es/Avatar.js +2 -0
- package/dist/packages/_es/AvatarGroup.js +1 -0
- package/dist/packages/_es/Calendar.js +1 -1
- package/dist/packages/_es/CalendarItem.js +1 -1
- package/dist/packages/_es/Cascader.js +2 -0
- package/dist/packages/_es/Category.js +2 -0
- package/dist/packages/_es/CategoryPane.js +3 -0
- package/dist/packages/_es/Cell.js +1 -0
- package/dist/packages/_es/CollapseItem.js +1 -0
- package/dist/packages/_es/Comment.js +5 -0
- package/dist/packages/_es/Countdown.js +8 -0
- package/dist/packages/_es/Countup.js +10 -0
- package/dist/packages/_es/DatePicker.js +2 -0
- package/dist/packages/_es/Dialog.js +3 -0
- package/dist/packages/_es/Ellipsis.js +2 -0
- package/dist/packages/_es/Empty.js +3 -0
- package/dist/packages/_es/Grid.js +1 -1
- package/dist/packages/_es/GridItem.js +2 -1
- package/dist/packages/_es/ImagePreview.js +1 -0
- package/dist/packages/_es/Input.js +2 -0
- package/dist/packages/_es/Invoice.js +5 -3
- package/dist/packages/_es/Navbar.js +6 -0
- package/dist/packages/_es/Noticebar.js +1 -0
- package/dist/packages/_es/Notify.js +3 -0
- package/dist/packages/_es/Picker.js +2 -0
- package/dist/packages/_es/Radio.js +1 -1
- package/dist/packages/_es/RadioGroup.js +1 -1
- package/dist/packages/_es/Searchbar.js +1 -0
- package/dist/packages/_es/ShortPassword.js +1 -0
- package/dist/packages/_es/Skeleton.js +10 -0
- package/dist/packages/_es/Sku.js +14 -0
- package/dist/packages/_es/Swiper.js +1 -0
- package/dist/packages/_es/TabbarItem.js +5 -0
- package/dist/packages/_es/Tabs.js +2 -0
- package/dist/packages/_es/Textarea.js +1 -0
- package/dist/packages/_es/Toast.js +8 -0
- package/dist/packages/_es/Tour.js +1 -0
- package/dist/packages/_es/Uploader.js +2 -0
- package/dist/packages/_es/Video.js +18 -0
- package/dist/packages/_es/{common-ceb98554.js → common-b9a5e726.js} +8 -0
- package/dist/packages/_es/{index-1bf0d8ef.js → index-f3a722c9.js} +37 -0
- package/dist/packages/_es/{index.vue_vue_type_script_lang-1291fceb.js → index.vue_vue_type_script_lang-22dfc112.js} +1 -0
- package/dist/packages/_es/{index.vue_vue_type_script_lang-d4c88f85.js → index.vue_vue_type_script_lang-442e4704.js} +1 -0
- package/dist/packages/actionsheet/style.mjs +2 -0
- package/dist/packages/address/style.mjs +3 -0
- package/dist/packages/addresslist/style.mjs +2 -0
- package/dist/packages/audio/style.mjs +1 -0
- package/dist/packages/audiooperate/style.mjs +1 -0
- package/dist/packages/avatar/index.scss +2 -1
- package/dist/packages/avatargroup/index.scss +1 -1
- package/dist/packages/button/index.scss +63 -1
- package/dist/packages/calendar/index.scss +2 -2
- package/dist/packages/calendar/style.mjs +3 -0
- package/dist/packages/card/style.mjs +2 -0
- package/dist/packages/cascader/style.mjs +5 -0
- package/dist/packages/comment/style.mjs +1 -0
- package/dist/packages/datepicker/style.mjs +3 -0
- package/dist/packages/dialog/style.mjs +3 -0
- package/dist/packages/ecard/style.mjs +1 -0
- package/dist/packages/fixednav/style.mjs +1 -0
- package/dist/packages/form/style.mjs +1 -0
- package/dist/packages/formitem/style.mjs +1 -0
- package/dist/packages/imagepreview/style.mjs +5 -0
- package/dist/packages/invoice/style.mjs +7 -0
- package/dist/packages/locale/lang/zh-CN.js +1 -1
- package/dist/packages/menuitem/style.mjs +2 -0
- package/dist/packages/notify/style.mjs +2 -0
- package/dist/packages/numberkeyboard/style.mjs +2 -0
- package/dist/packages/picker/style.mjs +2 -0
- package/dist/packages/popover/style.mjs +2 -0
- package/dist/packages/popup/style.mjs +1 -0
- package/dist/packages/shortpassword/style.mjs +2 -0
- package/dist/packages/signature/style.mjs +1 -0
- package/dist/packages/skeleton/style.mjs +1 -0
- package/dist/packages/sku/style.mjs +4 -0
- package/dist/packages/tabbaritem/style.mjs +1 -0
- package/dist/packages/tabs/style.mjs +1 -0
- package/dist/packages/timeselect/style.mjs +2 -0
- package/dist/packages/tour/style.mjs +3 -0
- package/dist/packages/uploader/style.mjs +2 -0
- package/dist/smartips/web-types.json +12 -12
- package/dist/style.css +1 -1
- package/dist/styles/reset.css +3 -0
- package/dist/styles/themes/default.scss +53 -53
- package/dist/styles/themes/jdb.scss +53 -53
- package/dist/styles/themes/jddkh.scss +53 -53
- package/dist/styles/themes/jdt.scss +53 -53
- package/dist/styles/variables-jdb.scss +0 -2
- package/dist/styles/variables-jddkh.scss +0 -2
- package/dist/styles/variables-jdt.scss +1 -3
- package/dist/styles/variables.scss +1 -3
- package/dist/types/__VUE/addresslist/components/GeneralShell.vue.d.ts +22 -6
- package/dist/types/__VUE/addresslist/index.vue.d.ts +2 -2
- package/dist/types/__VUE/cell/index.vue.d.ts +1 -1
- package/dist/types/__VUE/griditem/index.vue.d.ts +1 -1
- package/dist/types/__VUE/searchbar/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +2 -2
- package/dist/types/__VUE/addresslist/components/SwipeShell.vue.d.ts +0 -26
|
@@ -4,9 +4,17 @@ import { r as requestAniFrame } from "./raf-729dad54.js";
|
|
|
4
4
|
import { u as useExpose } from "./index-79c5dc33.js";
|
|
5
5
|
import { _ as _export_sfc } from "./_plugin-vue_export-helper-cc2b3d55.js";
|
|
6
6
|
const Utils = {
|
|
7
|
+
/**
|
|
8
|
+
* 是否为闫年
|
|
9
|
+
* @return {Boolse} true|false
|
|
10
|
+
*/
|
|
7
11
|
isLeapYear: function(y) {
|
|
8
12
|
return y % 4 == 0 && y % 100 != 0 || y % 400 == 0;
|
|
9
13
|
},
|
|
14
|
+
/**
|
|
15
|
+
* 返回星期数
|
|
16
|
+
* @return {String}
|
|
17
|
+
*/
|
|
10
18
|
getWhatDay: function(year, month, day) {
|
|
11
19
|
const date = new Date(year + "/" + month + "/" + day);
|
|
12
20
|
const index = date.getDay();
|
|
@@ -21,6 +29,10 @@ const Utils = {
|
|
|
21
29
|
];
|
|
22
30
|
return dayNames[index];
|
|
23
31
|
},
|
|
32
|
+
/**
|
|
33
|
+
* 返回星期数
|
|
34
|
+
* @return {Number}
|
|
35
|
+
*/
|
|
24
36
|
getMonthPreDay: function(year, month) {
|
|
25
37
|
const date = new Date(year + "/" + month + "/01");
|
|
26
38
|
let day = date.getDay();
|
|
@@ -29,6 +41,10 @@ const Utils = {
|
|
|
29
41
|
}
|
|
30
42
|
return day;
|
|
31
43
|
},
|
|
44
|
+
/**
|
|
45
|
+
* 返回月份天数
|
|
46
|
+
* @return {Number}
|
|
47
|
+
*/
|
|
32
48
|
getMonthDays: function(year, month) {
|
|
33
49
|
if (/^0/.test(month)) {
|
|
34
50
|
month = month.split("")[1];
|
|
@@ -49,10 +65,18 @@ const Utils = {
|
|
|
49
65
|
31
|
|
50
66
|
][month];
|
|
51
67
|
},
|
|
68
|
+
/**
|
|
69
|
+
* 补齐数字位数
|
|
70
|
+
* @return {string}
|
|
71
|
+
*/
|
|
52
72
|
getNumTwoBit: function(n) {
|
|
53
73
|
n = Number(n);
|
|
54
74
|
return (n > 9 ? "" : "0") + n;
|
|
55
75
|
},
|
|
76
|
+
/**
|
|
77
|
+
* 日期对象转成字符串
|
|
78
|
+
* @return {string}
|
|
79
|
+
*/
|
|
56
80
|
date2Str: function(date, split) {
|
|
57
81
|
split = split || "-";
|
|
58
82
|
const y = date.getFullYear();
|
|
@@ -60,6 +84,11 @@ const Utils = {
|
|
|
60
84
|
const d = this.getNumTwoBit(date.getDate());
|
|
61
85
|
return [y, m, d].join(split);
|
|
62
86
|
},
|
|
87
|
+
/**
|
|
88
|
+
* 返回日期格式字符串
|
|
89
|
+
* @param {Number} 0返回今天的日期、1返回明天的日期,2返回后天得日期,依次类推
|
|
90
|
+
* @return {string} '2014-12-31'
|
|
91
|
+
*/
|
|
63
92
|
getDay: function(i) {
|
|
64
93
|
i = i || 0;
|
|
65
94
|
let date = new Date();
|
|
@@ -67,6 +96,10 @@ const Utils = {
|
|
|
67
96
|
date = new Date(date.getTime() + diff);
|
|
68
97
|
return this.date2Str(date);
|
|
69
98
|
},
|
|
99
|
+
/**
|
|
100
|
+
* 时间比较
|
|
101
|
+
* @return {Boolean}
|
|
102
|
+
*/
|
|
70
103
|
compareDate: function(date1, date2) {
|
|
71
104
|
const startTime = new Date(date1.replace("-", "/").replace("-", "/"));
|
|
72
105
|
const endTime = new Date(date2.replace("-", "/").replace("-", "/"));
|
|
@@ -75,6 +108,10 @@ const Utils = {
|
|
|
75
108
|
}
|
|
76
109
|
return true;
|
|
77
110
|
},
|
|
111
|
+
/**
|
|
112
|
+
* 时间是否相等
|
|
113
|
+
* @return {Boolean}
|
|
114
|
+
*/
|
|
78
115
|
isEqual: function(date1, date2) {
|
|
79
116
|
const startTime = new Date(date1).getTime();
|
|
80
117
|
const endTime = new Date(date2).getTime();
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
flex: 0 0 auto; // 防止被压缩
|
|
8
8
|
text-align: center;
|
|
9
9
|
img {
|
|
10
|
+
display: block;
|
|
10
11
|
width: 100%;
|
|
11
12
|
height: 100%;
|
|
12
13
|
}
|
|
@@ -35,7 +36,7 @@
|
|
|
35
36
|
}
|
|
36
37
|
.nut-avatar-round {
|
|
37
38
|
border-radius: 50%;
|
|
38
|
-
overflow: hidden;
|
|
39
|
+
// overflow: hidden;
|
|
39
40
|
}
|
|
40
41
|
.nut-avatar-square {
|
|
41
42
|
border-radius: $avatar-square;
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
user-select: none;
|
|
17
17
|
touch-action: manipulation;
|
|
18
18
|
vertical-align: bottom;
|
|
19
|
-
|
|
20
19
|
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
|
21
20
|
-webkit-tap-highlight-color: transparent;
|
|
22
21
|
|
|
@@ -174,3 +173,66 @@
|
|
|
174
173
|
border-radius: 0;
|
|
175
174
|
}
|
|
176
175
|
}
|
|
176
|
+
.nut-button--default:not([disabled]):active {
|
|
177
|
+
color: $button-default-color;
|
|
178
|
+
background: $button-default-bg-color;
|
|
179
|
+
border: $button-border-width solid $button-default-border-color;
|
|
180
|
+
}
|
|
181
|
+
.nut-button--primary:not([disabled]):active {
|
|
182
|
+
color: $button-primary-color;
|
|
183
|
+
background: $button-primary-background-color;
|
|
184
|
+
border: $button-border-width solid transparent;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.nut-button--info:not([disabled]):active {
|
|
188
|
+
color: $button-info-color;
|
|
189
|
+
background: $button-info-background-color;
|
|
190
|
+
border: $button-border-width solid transparent;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.nut-button--success:not([disabled]):active {
|
|
194
|
+
color: $button-success-color;
|
|
195
|
+
background: $button-success-background-color;
|
|
196
|
+
border: $button-border-width solid transparent;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.nut-button--danger:not([disabled]):active {
|
|
200
|
+
color: $button-danger-color;
|
|
201
|
+
background: $button-danger-background-color;
|
|
202
|
+
border: $button-border-width solid transparent;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.nut-button--warning:not([disabled]):active {
|
|
206
|
+
color: $button-warning-color;
|
|
207
|
+
background: $button-warning-background-color;
|
|
208
|
+
border: $button-border-width solid transparent;
|
|
209
|
+
}
|
|
210
|
+
.nut-button--plain:not([disabled]):active {
|
|
211
|
+
background: $button-plain-background-color;
|
|
212
|
+
}
|
|
213
|
+
.nut-button--plain {
|
|
214
|
+
&.nut-button--primary:not([disabled]):active {
|
|
215
|
+
color: $button-primary-border-color;
|
|
216
|
+
border-color: $button-primary-border-color;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&.nut-button--info:not([disabled]):active {
|
|
220
|
+
color: $button-info-border-color;
|
|
221
|
+
border-color: $button-info-border-color;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&.nut-button--success:not([disabled]):active {
|
|
225
|
+
color: $button-success-border-color;
|
|
226
|
+
border-color: $button-success-border-color;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
&.nut-button--danger:not([disabled]):active {
|
|
230
|
+
color: $button-danger-border-color;
|
|
231
|
+
border-color: $button-danger-border-color;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
&.nut-button--warning:not([disabled]):active {
|
|
235
|
+
color: $button-warning-border-color;
|
|
236
|
+
border-color: $button-warning-border-color;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import '../tabpane/index.scss';
|
|
2
|
+
import '../../styles/reset.css';
|
|
2
3
|
import '../sticky/index.scss';
|
|
4
|
+
import '../../styles/reset.css';
|
|
3
5
|
import '../tabs/index.scss';
|
|
6
|
+
import '../../styles/reset.css';
|
|
4
7
|
import '../overlay/index.scss';
|
|
8
|
+
import '../../styles/reset.css';
|
|
5
9
|
import '../popup/index.scss';
|
|
10
|
+
import '../../styles/reset.css';
|
|
6
11
|
import './index.scss';
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import '../video/index.scss';
|
|
2
|
+
import '../../styles/reset.css';
|
|
2
3
|
import '../swiperitem/index.scss';
|
|
4
|
+
import '../../styles/reset.css';
|
|
3
5
|
import '../swiper/index.scss';
|
|
6
|
+
import '../../styles/reset.css';
|
|
4
7
|
import '../overlay/index.scss';
|
|
8
|
+
import '../../styles/reset.css';
|
|
5
9
|
import '../popup/index.scss';
|
|
10
|
+
import '../../styles/reset.css';
|
|
6
11
|
import './index.scss';
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import '../button/index.scss';
|
|
2
|
+
import '../../styles/reset.css';
|
|
2
3
|
import '../radio/index.scss';
|
|
4
|
+
import '../../styles/reset.css';
|
|
3
5
|
import '../radiogroup/index.scss';
|
|
6
|
+
import '../../styles/reset.css';
|
|
4
7
|
import '../cell/index.scss';
|
|
8
|
+
import '../../styles/reset.css';
|
|
5
9
|
import '../formitem/index.scss';
|
|
10
|
+
import '../../styles/reset.css';
|
|
6
11
|
import '../cellgroup/index.scss';
|
|
12
|
+
import '../../styles/reset.css';
|
|
7
13
|
import '../form/index.scss';
|
|
14
|
+
import '../../styles/reset.css';
|
|
8
15
|
import './index.scss';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import '../price/index.scss';
|
|
2
|
+
import '../../styles/reset.css';
|
|
2
3
|
import '../inputnumber/index.scss';
|
|
4
|
+
import '../../styles/reset.css';
|
|
3
5
|
import '../overlay/index.scss';
|
|
6
|
+
import '../../styles/reset.css';
|
|
4
7
|
import '../popup/index.scss';
|
|
8
|
+
import '../../styles/reset.css';
|
|
5
9
|
import './index.scss';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "NutUI",
|
|
5
|
-
"version": "4.0.0-beta.
|
|
5
|
+
"version": "4.0.0-beta.17",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"tags": [
|
|
@@ -1500,7 +1500,7 @@
|
|
|
1500
1500
|
{
|
|
1501
1501
|
"name": "speed",
|
|
1502
1502
|
"default": "`1`",
|
|
1503
|
-
"description": "
|
|
1503
|
+
"description": "间隔数字,目前仅支持基础用法",
|
|
1504
1504
|
"value": {
|
|
1505
1505
|
"type": "number",
|
|
1506
1506
|
"kind": "expression"
|
|
@@ -2269,9 +2269,9 @@
|
|
|
2269
2269
|
{
|
|
2270
2270
|
"name": "direction",
|
|
2271
2271
|
"default": "`end`",
|
|
2272
|
-
"description": "
|
|
2272
|
+
"description": "省略位置,可选值 `start` | `end` | `middle`",
|
|
2273
2273
|
"value": {
|
|
2274
|
-
"type": "
|
|
2274
|
+
"type": "string",
|
|
2275
2275
|
"kind": "expression"
|
|
2276
2276
|
}
|
|
2277
2277
|
},
|
|
@@ -5256,8 +5256,8 @@
|
|
|
5256
5256
|
},
|
|
5257
5257
|
{
|
|
5258
5258
|
"name": "btn-options",
|
|
5259
|
-
"default": "`[
|
|
5260
|
-
"description": "底部按钮设置。[
|
|
5259
|
+
"default": "`[confirm]`",
|
|
5260
|
+
"description": "底部按钮设置。[`confirm`, `buy`, `cart` ] 分别对应确定、立即购买、加入购物车",
|
|
5261
5261
|
"value": {
|
|
5262
5262
|
"type": "array",
|
|
5263
5263
|
"kind": "expression"
|
|
@@ -5284,9 +5284,9 @@
|
|
|
5284
5284
|
{
|
|
5285
5285
|
"name": "stepper-extra-text",
|
|
5286
5286
|
"default": "`false`",
|
|
5287
|
-
"description": "
|
|
5287
|
+
"description": "InputNumber 与标题之间的文案",
|
|
5288
5288
|
"value": {
|
|
5289
|
-
"type": "function |
|
|
5289
|
+
"type": "function | boolean",
|
|
5290
5290
|
"kind": "expression"
|
|
5291
5291
|
}
|
|
5292
5292
|
},
|
|
@@ -5971,7 +5971,7 @@
|
|
|
5971
5971
|
"attributes": [
|
|
5972
5972
|
{
|
|
5973
5973
|
"name": "v-model",
|
|
5974
|
-
"default": "
|
|
5974
|
+
"default": "-",
|
|
5975
5975
|
"description": "input value, supports two-way binding",
|
|
5976
5976
|
"value": {
|
|
5977
5977
|
"type": "string",
|
|
@@ -5989,7 +5989,7 @@
|
|
|
5989
5989
|
},
|
|
5990
5990
|
{
|
|
5991
5991
|
"name": "max-length",
|
|
5992
|
-
"default": "
|
|
5992
|
+
"default": "-",
|
|
5993
5993
|
"description": "limit the longest input characters",
|
|
5994
5994
|
"value": {
|
|
5995
5995
|
"type": "string | number",
|
|
@@ -6025,7 +6025,7 @@
|
|
|
6025
6025
|
},
|
|
6026
6026
|
{
|
|
6027
6027
|
"name": "text-align",
|
|
6028
|
-
"default": "
|
|
6028
|
+
"default": "-",
|
|
6029
6029
|
"description": "text position, optional values `left`, `center`, `right`",
|
|
6030
6030
|
"value": {
|
|
6031
6031
|
"type": "string",
|
|
@@ -6543,7 +6543,7 @@
|
|
|
6543
6543
|
{
|
|
6544
6544
|
"name": "list-type",
|
|
6545
6545
|
"default": "`\"picture\"`",
|
|
6546
|
-
"description": "
|
|
6546
|
+
"description": "上传列表的内建样式,支持两种基础样式 picture、list",
|
|
6547
6547
|
"value": {
|
|
6548
6548
|
"type": "string",
|
|
6549
6549
|
"kind": "expression"
|