@nutui/nutui-react-taro 2.0.0-alpha.17 → 2.0.0-alpha.18
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 +12 -0
- package/dist/esm/Audio.js +2 -2
- package/dist/esm/Button.js +2 -1
- package/dist/esm/Dialog.js +3 -2
- package/dist/esm/Form.js +1 -1
- package/dist/esm/InputNumber/style/style.css +1 -1
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/Tabbar/style/style.css +1 -1
- package/dist/esm/Tabbar.js +2 -2
- package/dist/esm/TabbarItem/style/index.js +1 -1
- package/dist/esm/TabbarItem/style/style.css +1 -1
- package/dist/esm/TabbarItem.js +1 -1
- package/dist/esm/Uploader.js +2 -2
- package/dist/esm/{audio.taro-64b15071.js → audio.taro-09305bcb.js} +1 -1
- package/dist/esm/{button.taro-01eae688.js → button.taro-60dfd83e.js} +18 -7
- package/dist/esm/{dialog.taro-e5c2cb03.js → dialog.taro-2de109c0.js} +1 -1
- package/dist/esm/{form.taro-a348734b.js → form.taro-33a19e85.js} +1 -0
- package/dist/esm/{inputnumber.taro-788b1cd3.js → inputnumber.taro-c4c0cfb3.js} +1 -1
- package/dist/esm/nutui-react.es.js +9 -9
- package/dist/esm/{tabbar.taro-18eee41f.js → tabbar.taro-4f49ed90.js} +1 -1
- package/dist/esm/{tabbaritem.taro-89646ca1.js → tabbaritem.taro-16a380db.js} +16 -5
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +7 -2
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.taro.d.ts +7 -2
- package/dist/esm/{uploader.taro-5ad88f83.js → uploader.taro-13591ac2.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/tr-TR.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.es.js +28 -7
- package/dist/nutui.react.umd.js +29 -8
- package/dist/packages/inputnumber/inputnumber.scss +4 -2
- package/dist/packages/tabbaritem/tabbaritem.scss +1 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/packages/tabbaritem/tabbaritem.taro.d.ts +27 -2
- package/package.json +1 -1
package/dist/nutui.react.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(global2, factory) {
|
|
2
|
-
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/
|
|
3
|
-
})(this, function(exports2, React,
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("react"), require("@tarojs/taro"), require("@tarojs/components"), require("react-dom")) : typeof define === "function" && define.amd ? define(["exports", "react", "@tarojs/taro", "@tarojs/components", "react-dom"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory((global2.nutui = global2.nutui || {}, global2.nutui.react = {}), global2.React, global2.Taro, global2.components, global2.ReactDOM));
|
|
3
|
+
})(this, function(exports2, React, Taro, components, ReactDOM) {
|
|
4
4
|
"use strict";var __defProp = Object.defineProperty;
|
|
5
5
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
6
|
var __publicField = (obj, key, value) => {
|
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v2.0.0-alpha.
|
|
11
|
+
* @nutui/nutui-react-taro v2.0.0-alpha.18 Fri Jun 16 2023 18:33:32 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -1917,6 +1917,9 @@ var __publicField = (obj, key, value) => {
|
|
|
1917
1917
|
onClick(e);
|
|
1918
1918
|
}
|
|
1919
1919
|
};
|
|
1920
|
+
if (Taro.getEnv() === "WEB") {
|
|
1921
|
+
rest.type = rest.formType;
|
|
1922
|
+
}
|
|
1920
1923
|
return (
|
|
1921
1924
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1922
1925
|
// @ts-ignore
|
|
@@ -5708,8 +5711,11 @@ var __publicField = (obj, key, value) => {
|
|
|
5708
5711
|
icon: null,
|
|
5709
5712
|
active: false,
|
|
5710
5713
|
index: 0,
|
|
5711
|
-
|
|
5712
|
-
|
|
5714
|
+
value: "",
|
|
5715
|
+
dot: false,
|
|
5716
|
+
max: 99,
|
|
5717
|
+
top: "0",
|
|
5718
|
+
right: "5"
|
|
5713
5719
|
};
|
|
5714
5720
|
const TabbarItem = (props) => {
|
|
5715
5721
|
const {
|
|
@@ -5721,8 +5727,12 @@ var __publicField = (obj, key, value) => {
|
|
|
5721
5727
|
activeColor,
|
|
5722
5728
|
inactiveColor,
|
|
5723
5729
|
index,
|
|
5724
|
-
|
|
5725
|
-
|
|
5730
|
+
value,
|
|
5731
|
+
dot,
|
|
5732
|
+
max,
|
|
5733
|
+
top,
|
|
5734
|
+
right,
|
|
5735
|
+
handleClick
|
|
5726
5736
|
} = {
|
|
5727
5737
|
...defaultProps$19,
|
|
5728
5738
|
...props
|
|
@@ -5735,6 +5745,14 @@ var __publicField = (obj, key, value) => {
|
|
|
5735
5745
|
const titleClass = classNames(boxPrefix, `${boxPrefix}-nav`, {
|
|
5736
5746
|
[`${boxPrefix}-large`]: !icon
|
|
5737
5747
|
});
|
|
5748
|
+
const badgeProps = {
|
|
5749
|
+
value,
|
|
5750
|
+
dot,
|
|
5751
|
+
max,
|
|
5752
|
+
top,
|
|
5753
|
+
right,
|
|
5754
|
+
color: activeColor
|
|
5755
|
+
};
|
|
5738
5756
|
return /* @__PURE__ */ React.createElement(
|
|
5739
5757
|
"div",
|
|
5740
5758
|
{
|
|
@@ -5745,7 +5763,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5745
5763
|
},
|
|
5746
5764
|
onClick: () => handleClick(index)
|
|
5747
5765
|
},
|
|
5748
|
-
icon ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Badge, { ...
|
|
5766
|
+
icon ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: titleClass }, title))
|
|
5749
5767
|
);
|
|
5750
5768
|
};
|
|
5751
5769
|
const defaultProps$18 = {
|
|
@@ -10320,6 +10338,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10320
10338
|
Schema.warning = warning;
|
|
10321
10339
|
Schema.messages = messages;
|
|
10322
10340
|
Schema.validators = validators;
|
|
10341
|
+
console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
|
|
10323
10342
|
class FormStore {
|
|
10324
10343
|
constructor() {
|
|
10325
10344
|
// 初始化数据
|
|
@@ -11079,6 +11098,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11079
11098
|
return /* @__PURE__ */ React.createElement("div", { className: classes, style: styles, ...restProps }, /* @__PURE__ */ React.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React.createElement(a$d, { className: iconMinusClasses, onClick: reduceNumber })), /* @__PURE__ */ React.createElement(React.Fragment, null, formatter ? /* @__PURE__ */ React.createElement(
|
|
11080
11099
|
"input",
|
|
11081
11100
|
{
|
|
11101
|
+
className: "nut-number-input",
|
|
11082
11102
|
type: "text",
|
|
11083
11103
|
min,
|
|
11084
11104
|
max,
|
|
@@ -11092,6 +11112,7 @@ var __publicField = (obj, key, value) => {
|
|
|
11092
11112
|
) : /* @__PURE__ */ React.createElement(
|
|
11093
11113
|
"input",
|
|
11094
11114
|
{
|
|
11115
|
+
className: "nut-number-input",
|
|
11095
11116
|
type: "digit",
|
|
11096
11117
|
min,
|
|
11097
11118
|
max,
|
|
@@ -52,12 +52,14 @@
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
.icon-
|
|
55
|
+
.nut-icon-Minus,
|
|
56
|
+
.nut-icon-minus {
|
|
56
57
|
--nut-icon-width: 20px;
|
|
57
58
|
--nut-icon-height: 20px;
|
|
58
59
|
}
|
|
59
60
|
|
|
60
|
-
.icon-
|
|
61
|
+
.nut-icon-Plus,
|
|
62
|
+
.nut-icon-plus {
|
|
61
63
|
--nut-icon-width: 20px;
|
|
62
64
|
--nut-icon-height: 20px;
|
|
63
65
|
}
|