@nutui/nutui-react 1.5.0 → 1.5.1-beta.0

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 CHANGED
@@ -1,3 +1,13 @@
1
+ # v1.5.1
2
+ `2023-04-19`
3
+
4
+
5
+ * :bug: fix: 修改inputnumber微信小程序的带小数点的键盘 (#907) @junjun666
6
+ * :bug: fix: 修复uploader组件编译xhr报错的问题 (#916) @junjun666
7
+ * 🔨 chore: 开发编译兼容taro 3.6.5版本 (#911) @junjun666
8
+
9
+
10
+
1
11
  # v1.5.0
2
12
  `2023-04-12`
3
13
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.0 Wed Apr 12 2023 16:14:47 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.1-beta.0 Wed Apr 19 2023 14:06:09 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.0 Wed Apr 12 2023 16:14:47 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.1-beta.0 Wed Apr 19 2023 14:06:09 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.0 Wed Apr 12 2023 16:14:47 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.1-beta.0 Wed Apr 19 2023 14:06:09 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.0 Wed Apr 12 2023 16:14:47 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.1-beta.0 Wed Apr 19 2023 14:06:09 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.0 Wed Apr 12 2023 16:14:47 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.1-beta.0 Wed Apr 19 2023 14:06:09 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.0 Wed Apr 12 2023 16:14:47 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.1-beta.0 Wed Apr 19 2023 14:06:09 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  var _a;
8
8
  /*!
9
- * @nutui/nutui-react v1.5.0 Wed Apr 12 2023 16:14:21 GMT+0800 (China Standard Time)
9
+ * @nutui/nutui-react v1.5.1-beta.0 Wed Apr 19 2023 14:05:13 GMT+0800 (China Standard Time)
10
10
  * (c) 2023 @jdf2e.
11
11
  * Released under the MIT License.
12
12
  */
@@ -10186,7 +10186,7 @@ const Utils = {
10186
10186
  * @return {String}
10187
10187
  */
10188
10188
  getWhatDay(year, month, day) {
10189
- const date4 = new Date(`${year}/${month}/${day}`);
10189
+ const date4 = /* @__PURE__ */ new Date(`${year}/${month}/${day}`);
10190
10190
  const index = date4.getDay();
10191
10191
  const dayNames = [
10192
10192
  "星期日",
@@ -10204,7 +10204,7 @@ const Utils = {
10204
10204
  * @return {Number}
10205
10205
  */
10206
10206
  getMonthPreDay(year, month) {
10207
- const date4 = new Date(`${year}/${month}/01`);
10207
+ const date4 = /* @__PURE__ */ new Date(`${year}/${month}/01`);
10208
10208
  let day = date4.getDay();
10209
10209
  if (day == 0) {
10210
10210
  day = 7;
@@ -10261,7 +10261,7 @@ const Utils = {
10261
10261
  */
10262
10262
  getDay(i) {
10263
10263
  i = i || 0;
10264
- let date4 = new Date();
10264
+ let date4 = /* @__PURE__ */ new Date();
10265
10265
  const diff = i * (1e3 * 60 * 60 * 24);
10266
10266
  date4 = new Date(date4.getTime() + diff);
10267
10267
  return this.date2Str(date4);
@@ -10451,7 +10451,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10451
10451
  };
10452
10452
  const isCurrDay = (month, day) => {
10453
10453
  const date4 = `${month.curData[0]}-${month.curData[1]}-${day}`;
10454
- return Utils.isEqual(date4, Utils.date2Str(new Date()));
10454
+ return Utils.isEqual(date4, Utils.date2Str(/* @__PURE__ */ new Date()));
10455
10455
  };
10456
10456
  const confirm2 = () => {
10457
10457
  const { type: type22 } = props;
@@ -10787,8 +10787,8 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
10787
10787
  }
10788
10788
  });
10789
10789
  } else {
10790
- const currentYear2 = new Date().getFullYear();
10791
- const currentMonth = new Date().getMonth() + 1;
10790
+ const currentYear2 = (/* @__PURE__ */ new Date()).getFullYear();
10791
+ const currentMonth = (/* @__PURE__ */ new Date()).getMonth() + 1;
10792
10792
  const currentYearMonthIndex = state.monthsData.findIndex((item) => {
10793
10793
  return +item.curData[0] === currentYear2 && +item.curData[1] === currentMonth;
10794
10794
  });
@@ -12294,7 +12294,7 @@ const InternalPicker = (props, ref) => {
12294
12294
  };
12295
12295
  const Picker = React__default.forwardRef(InternalPicker);
12296
12296
  const Picker$1 = Picker;
12297
- const currentYear = new Date().getFullYear();
12297
+ const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
12298
12298
  const defaultProps$X = {
12299
12299
  modelValue: null,
12300
12300
  visible: false,
@@ -16576,7 +16576,7 @@ class FileItem {
16576
16576
  constructor() {
16577
16577
  __publicField(this, "status", "ready");
16578
16578
  __publicField(this, "message", "准备中..");
16579
- __publicField(this, "uid", new Date().getTime().toString());
16579
+ __publicField(this, "uid", (/* @__PURE__ */ new Date()).getTime().toString());
16580
16580
  __publicField(this, "name");
16581
16581
  __publicField(this, "url");
16582
16582
  __publicField(this, "type");
@@ -17139,7 +17139,7 @@ const BackTop = (props) => {
17139
17139
  };
17140
17140
  const scrollAnimation = () => {
17141
17141
  let cid = requestAniFrame2()(function fn() {
17142
- const t = duration - Math.max(0, startTime - +new Date() + duration / 2);
17142
+ const t = duration - Math.max(0, startTime - +/* @__PURE__ */ new Date() + duration / 2);
17143
17143
  const y = t * -scrollTop / duration + scrollTop;
17144
17144
  scroll(y);
17145
17145
  cid = requestAniFrame2()(fn);
@@ -17168,7 +17168,7 @@ const BackTop = (props) => {
17168
17168
  }
17169
17169
  const goTop = (e) => {
17170
17170
  onClick && onClick(e);
17171
- const otime = +new Date();
17171
+ const otime = +/* @__PURE__ */ new Date();
17172
17172
  startTime = otime;
17173
17173
  isAnimation && duration > 0 ? scrollAnimation() : scroll();
17174
17174
  };
@@ -17883,7 +17883,7 @@ class Notification extends React.PureComponent {
17883
17883
  __publicField(Notification, "newInstance");
17884
17884
  Notification.newInstance = (properties, callback) => {
17885
17885
  const element = document.createElement("div");
17886
- const id = properties.id ? properties.id : `${new Date().getTime()}`;
17886
+ const id = properties.id ? properties.id : `${(/* @__PURE__ */ new Date()).getTime()}`;
17887
17887
  element.id = id;
17888
17888
  properties.id = id;
17889
17889
  document.body.appendChild(element);
@@ -20359,7 +20359,7 @@ const ImagePreview = (props) => {
20359
20359
  const touches = event.touches;
20360
20360
  const events = touches[0];
20361
20361
  const events2 = touches[1];
20362
- const curTouchTime = new Date().getTime();
20362
+ const curTouchTime = (/* @__PURE__ */ new Date()).getTime();
20363
20363
  if (curTouchTime - lastTouchEndTime < 300) {
20364
20364
  const store12 = store;
20365
20365
  if (store12.scale > 1) {
@@ -20413,7 +20413,7 @@ const ImagePreview = (props) => {
20413
20413
  }
20414
20414
  };
20415
20415
  const onTouchEnd = () => {
20416
- setLastTouchEndTime(new Date().getTime());
20416
+ setLastTouchEndTime((/* @__PURE__ */ new Date()).getTime());
20417
20417
  const store1 = store;
20418
20418
  store1.moveable = false;
20419
20419
  if (store1.scale < 1.1 && store1.scale > 1 || store1.scale < 1) {
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  return value;
10
10
  };
11
11
  /*!
12
- * @nutui/nutui-react v1.5.0 Wed Apr 12 2023 16:14:21 GMT+0800 (China Standard Time)
12
+ * @nutui/nutui-react v1.5.1-beta.0 Wed Apr 19 2023 14:05:13 GMT+0800 (China Standard Time)
13
13
  * (c) 2023 @jdf2e.
14
14
  * Released under the MIT License.
15
15
  */
@@ -10204,7 +10204,7 @@ Please add \`${key}Action\` when creating your handler.`);
10204
10204
  * @return {String}
10205
10205
  */
10206
10206
  getWhatDay(year, month, day) {
10207
- const date2 = new Date(`${year}/${month}/${day}`);
10207
+ const date2 = /* @__PURE__ */ new Date(`${year}/${month}/${day}`);
10208
10208
  const index = date2.getDay();
10209
10209
  const dayNames = [
10210
10210
  "星期日",
@@ -10222,7 +10222,7 @@ Please add \`${key}Action\` when creating your handler.`);
10222
10222
  * @return {Number}
10223
10223
  */
10224
10224
  getMonthPreDay(year, month) {
10225
- const date2 = new Date(`${year}/${month}/01`);
10225
+ const date2 = /* @__PURE__ */ new Date(`${year}/${month}/01`);
10226
10226
  let day = date2.getDay();
10227
10227
  if (day == 0) {
10228
10228
  day = 7;
@@ -10279,7 +10279,7 @@ Please add \`${key}Action\` when creating your handler.`);
10279
10279
  */
10280
10280
  getDay(i) {
10281
10281
  i = i || 0;
10282
- let date2 = new Date();
10282
+ let date2 = /* @__PURE__ */ new Date();
10283
10283
  const diff = i * (1e3 * 60 * 60 * 24);
10284
10284
  date2 = new Date(date2.getTime() + diff);
10285
10285
  return this.date2Str(date2);
@@ -10469,7 +10469,7 @@ Please add \`${key}Action\` when creating your handler.`);
10469
10469
  };
10470
10470
  const isCurrDay = (month, day) => {
10471
10471
  const date2 = `${month.curData[0]}-${month.curData[1]}-${day}`;
10472
- return Utils.isEqual(date2, Utils.date2Str(new Date()));
10472
+ return Utils.isEqual(date2, Utils.date2Str(/* @__PURE__ */ new Date()));
10473
10473
  };
10474
10474
  const confirm2 = () => {
10475
10475
  const { type: type22 } = props;
@@ -10805,8 +10805,8 @@ Please add \`${key}Action\` when creating your handler.`);
10805
10805
  }
10806
10806
  });
10807
10807
  } else {
10808
- const currentYear2 = new Date().getFullYear();
10809
- const currentMonth = new Date().getMonth() + 1;
10808
+ const currentYear2 = (/* @__PURE__ */ new Date()).getFullYear();
10809
+ const currentMonth = (/* @__PURE__ */ new Date()).getMonth() + 1;
10810
10810
  const currentYearMonthIndex = state.monthsData.findIndex((item) => {
10811
10811
  return +item.curData[0] === currentYear2 && +item.curData[1] === currentMonth;
10812
10812
  });
@@ -12312,7 +12312,7 @@ Please add \`${key}Action\` when creating your handler.`);
12312
12312
  };
12313
12313
  const Picker = React.forwardRef(InternalPicker);
12314
12314
  const Picker$1 = Picker;
12315
- const currentYear = new Date().getFullYear();
12315
+ const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
12316
12316
  const defaultProps$X = {
12317
12317
  modelValue: null,
12318
12318
  visible: false,
@@ -16594,7 +16594,7 @@ Please add \`${key}Action\` when creating your handler.`);
16594
16594
  constructor() {
16595
16595
  __publicField(this, "status", "ready");
16596
16596
  __publicField(this, "message", "准备中..");
16597
- __publicField(this, "uid", new Date().getTime().toString());
16597
+ __publicField(this, "uid", (/* @__PURE__ */ new Date()).getTime().toString());
16598
16598
  __publicField(this, "name");
16599
16599
  __publicField(this, "url");
16600
16600
  __publicField(this, "type");
@@ -17157,7 +17157,7 @@ Please add \`${key}Action\` when creating your handler.`);
17157
17157
  };
17158
17158
  const scrollAnimation = () => {
17159
17159
  let cid = requestAniFrame2()(function fn() {
17160
- const t = duration - Math.max(0, startTime - +new Date() + duration / 2);
17160
+ const t = duration - Math.max(0, startTime - +/* @__PURE__ */ new Date() + duration / 2);
17161
17161
  const y = t * -scrollTop / duration + scrollTop;
17162
17162
  scroll(y);
17163
17163
  cid = requestAniFrame2()(fn);
@@ -17186,7 +17186,7 @@ Please add \`${key}Action\` when creating your handler.`);
17186
17186
  }
17187
17187
  const goTop = (e) => {
17188
17188
  onClick && onClick(e);
17189
- const otime = +new Date();
17189
+ const otime = +/* @__PURE__ */ new Date();
17190
17190
  startTime = otime;
17191
17191
  isAnimation && duration > 0 ? scrollAnimation() : scroll();
17192
17192
  };
@@ -17901,7 +17901,7 @@ Please add \`${key}Action\` when creating your handler.`);
17901
17901
  __publicField(Notification, "newInstance");
17902
17902
  Notification.newInstance = (properties, callback) => {
17903
17903
  const element = document.createElement("div");
17904
- const id = properties.id ? properties.id : `${new Date().getTime()}`;
17904
+ const id = properties.id ? properties.id : `${(/* @__PURE__ */ new Date()).getTime()}`;
17905
17905
  element.id = id;
17906
17906
  properties.id = id;
17907
17907
  document.body.appendChild(element);
@@ -20377,7 +20377,7 @@ Please add \`${key}Action\` when creating your handler.`);
20377
20377
  const touches = event.touches;
20378
20378
  const events = touches[0];
20379
20379
  const events2 = touches[1];
20380
- const curTouchTime = new Date().getTime();
20380
+ const curTouchTime = (/* @__PURE__ */ new Date()).getTime();
20381
20381
  if (curTouchTime - lastTouchEndTime < 300) {
20382
20382
  const store12 = store;
20383
20383
  if (store12.scale > 1) {
@@ -20431,7 +20431,7 @@ Please add \`${key}Action\` when creating your handler.`);
20431
20431
  }
20432
20432
  };
20433
20433
  const onTouchEnd = () => {
20434
- setLastTouchEndTime(new Date().getTime());
20434
+ setLastTouchEndTime((/* @__PURE__ */ new Date()).getTime());
20435
20435
  const store1 = store;
20436
20436
  store1.moveable = false;
20437
20437
  if (store1.scale < 1.1 && store1.scale > 1 || store1.scale < 1) {
package/dist/style.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v1.5.0 Wed Apr 12 2023 16:14:36 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v1.5.1-beta.0 Wed Apr 19 2023 14:05:44 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutui/nutui-react",
3
- "version": "1.5.0",
3
+ "version": "1.5.1-beta.0",
4
4
  "description": "京东风格的轻量级移动端 React 组件库,支持一套代码生成 H5 和小程序",
5
5
  "title": "NutUI-React",
6
6
  "keywords": [
@@ -1,65 +0,0 @@
1
- .nut-swiper {
2
- width: 100%;
3
- height: 100%;
4
- overflow: hidden;
5
- }
6
-
7
- .nut-swiper__container {
8
- width: 100%;
9
- height: 100%;
10
- overflow: visible;
11
- }
12
-
13
- .nut-swiper__track {
14
- width: 100%;
15
- height: 100%;
16
- position: relative;
17
- display: flex;
18
- }
19
-
20
- .nut-swiper__track > div {
21
- flex-shrink: 0;
22
- width: 100%;
23
- height: 100%;
24
- }
25
-
26
- .nut-swiper__track-vertical {
27
- flex-direction: column;
28
- }
29
-
30
- .nut-swiper__pagination {
31
- display: flex;
32
- position: absolute;
33
- left: 50%;
34
- bottom: $swiper-pagination-bottom;
35
- transform: translateX(-50%);
36
- i {
37
- width: $swiper-pagination-item-width;
38
- height: $swiper-pagination-item-height;
39
- margin-right: $swiper-pagination-item-margin-right;
40
- border-radius: $swiper-pagination-item-border-radius;
41
- &:last-child {
42
- margin-right: 0;
43
- }
44
- }
45
- }
46
-
47
- .nut-swiper__pagination-vertical {
48
- top: 50%;
49
- left: 12px;
50
- bottom: auto;
51
- flex-direction: column;
52
- -webkit-box-orient: vertical;
53
- -webkit-box-direction: normal;
54
- transform: translateY(-50%);
55
- i {
56
- margin-bottom: 5px;
57
- width: 6px;
58
- height: 6px;
59
- border-radius: 50%;
60
- &.active {
61
- height: 18px;
62
- border-radius: 5px;
63
- }
64
- }
65
- }