@nutui/nutui-react-taro 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/dist/esm/InputNumber.js +1 -1
- package/dist/esm/{inputnumber.taro-7c2d7e85.js → inputnumber.taro-91f65d17.js} +1 -1
- package/dist/esm/nutui-react.es.js +1 -1
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.mjs +13 -13
- package/dist/nutui.react.umd.js +13 -13
- package/dist/style.mjs +1 -1
- package/package.json +1 -1
- package/dist/packages/swiper/swiper1.scss +0 -65
package/dist/esm/InputNumber.js
CHANGED
|
@@ -120,7 +120,7 @@ const InputNumber = (props) => {
|
|
|
120
120
|
return (React__default.createElement("div", { className: classes, style: styles, ...restProps },
|
|
121
121
|
React__default.createElement("div", { className: "nut-input-minus" },
|
|
122
122
|
React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, className: iconMinusClasses, size: buttonSize, name: "minus", onClick: reduceNumber })),
|
|
123
|
-
React__default.createElement("input", { className: "nut-number-input", type: "
|
|
123
|
+
React__default.createElement("input", { className: "nut-number-input", type: "digit", min: min, max: max, style: { width: pxCheck(inputWidth) }, disabled: disabled, readOnly: readonly, value: inputValue, onInput: changeValue, onBlur: burValue, onFocus: focusValue }),
|
|
124
124
|
React__default.createElement("div", { className: "nut-input-add" },
|
|
125
125
|
React__default.createElement(Icon, { classPrefix: iconClassPrefix, fontClassName: iconFontClassName, className: iconAddClasses, size: buttonSize, name: "plus", onClick: addNumber }))));
|
|
126
126
|
};
|
|
@@ -35,7 +35,7 @@ export { D as DatePicker } from './datepicker.taro-6e9b4b8f.js';
|
|
|
35
35
|
export { F as Form } from './form.taro-0c8e7a39.js';
|
|
36
36
|
export { F as FormItem } from './formitem.taro-190a3326.js';
|
|
37
37
|
export { I as Input } from './input.taro-97af6c96.js';
|
|
38
|
-
export { I as InputNumber } from './inputnumber.taro-
|
|
38
|
+
export { I as InputNumber } from './inputnumber.taro-91f65d17.js';
|
|
39
39
|
export { N as NumberKeyboard } from './numberkeyboard.taro-1bc24744.js';
|
|
40
40
|
export { P as Picker } from './picker.taro-9ad1b7c5.js';
|
|
41
41
|
export { R as Radio, a as RadioGroup } from './radio.taro-a6eff96c.js';
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/zh-CN.js
CHANGED
package/dist/locales/zh-TW.js
CHANGED
package/dist/locales/zh-UG.js
CHANGED
package/dist/nutui.react.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v1.5.0
|
|
8
|
+
* @nutui/nutui-react-taro v1.5.1-beta.0 Fri Apr 14 2023 09:51:56 GMT+0800 (China Standard Time)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -5013,7 +5013,7 @@ const Utils = {
|
|
|
5013
5013
|
* @return {String}
|
|
5014
5014
|
*/
|
|
5015
5015
|
getWhatDay(year, month, day) {
|
|
5016
|
-
const date = new Date(`${year}/${month}/${day}`);
|
|
5016
|
+
const date = /* @__PURE__ */ new Date(`${year}/${month}/${day}`);
|
|
5017
5017
|
const index = date.getDay();
|
|
5018
5018
|
const dayNames = [
|
|
5019
5019
|
"星期日",
|
|
@@ -5031,7 +5031,7 @@ const Utils = {
|
|
|
5031
5031
|
* @return {Number}
|
|
5032
5032
|
*/
|
|
5033
5033
|
getMonthPreDay(year, month) {
|
|
5034
|
-
const date = new Date(`${year}/${month}/01`);
|
|
5034
|
+
const date = /* @__PURE__ */ new Date(`${year}/${month}/01`);
|
|
5035
5035
|
let day = date.getDay();
|
|
5036
5036
|
if (day == 0) {
|
|
5037
5037
|
day = 7;
|
|
@@ -5088,7 +5088,7 @@ const Utils = {
|
|
|
5088
5088
|
*/
|
|
5089
5089
|
getDay(i) {
|
|
5090
5090
|
i = i || 0;
|
|
5091
|
-
let date = new Date();
|
|
5091
|
+
let date = /* @__PURE__ */ new Date();
|
|
5092
5092
|
const diff = i * (1e3 * 60 * 60 * 24);
|
|
5093
5093
|
date = new Date(date.getTime() + diff);
|
|
5094
5094
|
return this.date2Str(date);
|
|
@@ -5280,7 +5280,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5280
5280
|
};
|
|
5281
5281
|
const isCurrDay = (month, day) => {
|
|
5282
5282
|
const date = `${month.curData[0]}-${month.curData[1]}-${day}`;
|
|
5283
|
-
return Utils.isEqual(date, Utils.date2Str(new Date()));
|
|
5283
|
+
return Utils.isEqual(date, Utils.date2Str(/* @__PURE__ */ new Date()));
|
|
5284
5284
|
};
|
|
5285
5285
|
const confirm = () => {
|
|
5286
5286
|
const { type: type2 } = props;
|
|
@@ -5616,8 +5616,8 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5616
5616
|
}
|
|
5617
5617
|
});
|
|
5618
5618
|
} else {
|
|
5619
|
-
const currentYear2 = new Date().getFullYear();
|
|
5620
|
-
const currentMonth = new Date().getMonth() + 1;
|
|
5619
|
+
const currentYear2 = (/* @__PURE__ */ new Date()).getFullYear();
|
|
5620
|
+
const currentMonth = (/* @__PURE__ */ new Date()).getMonth() + 1;
|
|
5621
5621
|
const currentYearMonthIndex = state.monthsData.findIndex((item) => {
|
|
5622
5622
|
return +item.curData[0] === currentYear2 && +item.curData[1] === currentMonth;
|
|
5623
5623
|
});
|
|
@@ -7244,7 +7244,7 @@ const ConfigContext = createContext(null);
|
|
|
7244
7244
|
const useConfig = () => {
|
|
7245
7245
|
return useContext(ConfigContext) ?? getDefaultConfig();
|
|
7246
7246
|
};
|
|
7247
|
-
const currentYear = new Date().getFullYear();
|
|
7247
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
7248
7248
|
const defaultProps$_ = {
|
|
7249
7249
|
modelValue: null,
|
|
7250
7250
|
visible: false,
|
|
@@ -8360,7 +8360,7 @@ const InputNumber = (props) => {
|
|
|
8360
8360
|
"input",
|
|
8361
8361
|
{
|
|
8362
8362
|
className: "nut-number-input",
|
|
8363
|
-
type: "
|
|
8363
|
+
type: "digit",
|
|
8364
8364
|
min,
|
|
8365
8365
|
max,
|
|
8366
8366
|
style: { width: pxCheck$1(inputWidth) },
|
|
@@ -10332,7 +10332,7 @@ class FileItem {
|
|
|
10332
10332
|
constructor() {
|
|
10333
10333
|
__publicField(this, "status", "ready");
|
|
10334
10334
|
__publicField(this, "message", "准备中..");
|
|
10335
|
-
__publicField(this, "uid", new Date().getTime().toString());
|
|
10335
|
+
__publicField(this, "uid", (/* @__PURE__ */ new Date()).getTime().toString());
|
|
10336
10336
|
__publicField(this, "name");
|
|
10337
10337
|
__publicField(this, "url");
|
|
10338
10338
|
__publicField(this, "type");
|
|
@@ -18411,7 +18411,7 @@ const ImagePreview = (props) => {
|
|
|
18411
18411
|
const touches = event.touches;
|
|
18412
18412
|
const events = touches[0];
|
|
18413
18413
|
const events2 = touches[1];
|
|
18414
|
-
const curTouchTime = new Date().getTime();
|
|
18414
|
+
const curTouchTime = (/* @__PURE__ */ new Date()).getTime();
|
|
18415
18415
|
if (curTouchTime - lastTouchEndTime < 300) {
|
|
18416
18416
|
const store12 = store;
|
|
18417
18417
|
if (store12.scale > 1) {
|
|
@@ -18465,7 +18465,7 @@ const ImagePreview = (props) => {
|
|
|
18465
18465
|
}
|
|
18466
18466
|
};
|
|
18467
18467
|
const onTouchEnd = () => {
|
|
18468
|
-
setLastTouchEndTime(new Date().getTime());
|
|
18468
|
+
setLastTouchEndTime((/* @__PURE__ */ new Date()).getTime());
|
|
18469
18469
|
const store1 = store;
|
|
18470
18470
|
store1.moveable = false;
|
|
18471
18471
|
if (store1.scale < 1.1 && store1.scale > 1 || store1.scale < 1) {
|
|
@@ -20900,7 +20900,7 @@ const InternalBarrage = (props, ref) => {
|
|
|
20900
20900
|
const barrageListSet = useRef(barrageList);
|
|
20901
20901
|
const barrageBody = useRef(null);
|
|
20902
20902
|
const barrageContainer = useRef(null);
|
|
20903
|
-
const timeId = useRef(new Date().getTime());
|
|
20903
|
+
const timeId = useRef((/* @__PURE__ */ new Date()).getTime());
|
|
20904
20904
|
const timer = useRef(0);
|
|
20905
20905
|
useRef(0);
|
|
20906
20906
|
const b2 = cn("barrage");
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v1.5.0
|
|
11
|
+
* @nutui/nutui-react-taro v1.5.1-beta.0 Fri Apr 14 2023 09:51:56 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -5029,7 +5029,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5029
5029
|
* @return {String}
|
|
5030
5030
|
*/
|
|
5031
5031
|
getWhatDay(year, month, day) {
|
|
5032
|
-
const date = new Date(`${year}/${month}/${day}`);
|
|
5032
|
+
const date = /* @__PURE__ */ new Date(`${year}/${month}/${day}`);
|
|
5033
5033
|
const index = date.getDay();
|
|
5034
5034
|
const dayNames = [
|
|
5035
5035
|
"星期日",
|
|
@@ -5047,7 +5047,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5047
5047
|
* @return {Number}
|
|
5048
5048
|
*/
|
|
5049
5049
|
getMonthPreDay(year, month) {
|
|
5050
|
-
const date = new Date(`${year}/${month}/01`);
|
|
5050
|
+
const date = /* @__PURE__ */ new Date(`${year}/${month}/01`);
|
|
5051
5051
|
let day = date.getDay();
|
|
5052
5052
|
if (day == 0) {
|
|
5053
5053
|
day = 7;
|
|
@@ -5104,7 +5104,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5104
5104
|
*/
|
|
5105
5105
|
getDay(i) {
|
|
5106
5106
|
i = i || 0;
|
|
5107
|
-
let date = new Date();
|
|
5107
|
+
let date = /* @__PURE__ */ new Date();
|
|
5108
5108
|
const diff = i * (1e3 * 60 * 60 * 24);
|
|
5109
5109
|
date = new Date(date.getTime() + diff);
|
|
5110
5110
|
return this.date2Str(date);
|
|
@@ -5296,7 +5296,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5296
5296
|
};
|
|
5297
5297
|
const isCurrDay = (month, day) => {
|
|
5298
5298
|
const date = `${month.curData[0]}-${month.curData[1]}-${day}`;
|
|
5299
|
-
return Utils.isEqual(date, Utils.date2Str(new Date()));
|
|
5299
|
+
return Utils.isEqual(date, Utils.date2Str(/* @__PURE__ */ new Date()));
|
|
5300
5300
|
};
|
|
5301
5301
|
const confirm = () => {
|
|
5302
5302
|
const { type: type2 } = props;
|
|
@@ -5632,8 +5632,8 @@ var __publicField = (obj, key, value) => {
|
|
|
5632
5632
|
}
|
|
5633
5633
|
});
|
|
5634
5634
|
} else {
|
|
5635
|
-
const currentYear2 = new Date().getFullYear();
|
|
5636
|
-
const currentMonth = new Date().getMonth() + 1;
|
|
5635
|
+
const currentYear2 = (/* @__PURE__ */ new Date()).getFullYear();
|
|
5636
|
+
const currentMonth = (/* @__PURE__ */ new Date()).getMonth() + 1;
|
|
5637
5637
|
const currentYearMonthIndex = state.monthsData.findIndex((item) => {
|
|
5638
5638
|
return +item.curData[0] === currentYear2 && +item.curData[1] === currentMonth;
|
|
5639
5639
|
});
|
|
@@ -7260,7 +7260,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7260
7260
|
const useConfig = () => {
|
|
7261
7261
|
return React.useContext(ConfigContext) ?? getDefaultConfig();
|
|
7262
7262
|
};
|
|
7263
|
-
const currentYear = new Date().getFullYear();
|
|
7263
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
7264
7264
|
const defaultProps$_ = {
|
|
7265
7265
|
modelValue: null,
|
|
7266
7266
|
visible: false,
|
|
@@ -8376,7 +8376,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8376
8376
|
"input",
|
|
8377
8377
|
{
|
|
8378
8378
|
className: "nut-number-input",
|
|
8379
|
-
type: "
|
|
8379
|
+
type: "digit",
|
|
8380
8380
|
min,
|
|
8381
8381
|
max,
|
|
8382
8382
|
style: { width: pxCheck$1(inputWidth) },
|
|
@@ -10348,7 +10348,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10348
10348
|
constructor() {
|
|
10349
10349
|
__publicField(this, "status", "ready");
|
|
10350
10350
|
__publicField(this, "message", "准备中..");
|
|
10351
|
-
__publicField(this, "uid", new Date().getTime().toString());
|
|
10351
|
+
__publicField(this, "uid", (/* @__PURE__ */ new Date()).getTime().toString());
|
|
10352
10352
|
__publicField(this, "name");
|
|
10353
10353
|
__publicField(this, "url");
|
|
10354
10354
|
__publicField(this, "type");
|
|
@@ -18427,7 +18427,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
18427
18427
|
const touches = event.touches;
|
|
18428
18428
|
const events = touches[0];
|
|
18429
18429
|
const events2 = touches[1];
|
|
18430
|
-
const curTouchTime = new Date().getTime();
|
|
18430
|
+
const curTouchTime = (/* @__PURE__ */ new Date()).getTime();
|
|
18431
18431
|
if (curTouchTime - lastTouchEndTime < 300) {
|
|
18432
18432
|
const store12 = store;
|
|
18433
18433
|
if (store12.scale > 1) {
|
|
@@ -18481,7 +18481,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
18481
18481
|
}
|
|
18482
18482
|
};
|
|
18483
18483
|
const onTouchEnd = () => {
|
|
18484
|
-
setLastTouchEndTime(new Date().getTime());
|
|
18484
|
+
setLastTouchEndTime((/* @__PURE__ */ new Date()).getTime());
|
|
18485
18485
|
const store1 = store;
|
|
18486
18486
|
store1.moveable = false;
|
|
18487
18487
|
if (store1.scale < 1.1 && store1.scale > 1 || store1.scale < 1) {
|
|
@@ -20916,7 +20916,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
20916
20916
|
const barrageListSet = React.useRef(barrageList);
|
|
20917
20917
|
const barrageBody = React.useRef(null);
|
|
20918
20918
|
const barrageContainer = React.useRef(null);
|
|
20919
|
-
const timeId = React.useRef(new Date().getTime());
|
|
20919
|
+
const timeId = React.useRef((/* @__PURE__ */ new Date()).getTime());
|
|
20920
20920
|
const timer = React.useRef(0);
|
|
20921
20921
|
React.useRef(0);
|
|
20922
20922
|
const b2 = cn("barrage");
|
package/dist/style.mjs
CHANGED
package/package.json
CHANGED
|
@@ -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
|
-
}
|