@nutui/nutui-react-taro 2.6.10 → 2.6.11
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 +8 -0
- package/dist/esm/FixedNav/style/style.css +1 -1
- package/dist/esm/Table.js +1 -1
- package/dist/esm/nutui-react.es.js +1 -1
- package/dist/esm/{table.taro-C2XPk7AJ.js → table.taro-D2M3D2Vj.js} +4 -0
- 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 +7 -16
- package/dist/nutui.react.umd.js +7 -16
- package/dist/packages/fixednav/fixednav.scss +2 -2
- package/dist/style.css +1 -1
- package/dist/types/packages/table/index.d.ts +1 -0
- package/dist/types/packages/table/index.taro.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nutui-overlay-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));z-index:var(--nutui-overlay-zIndex, 1000)}.nut-overlay .wrapper .content{background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-overlay-content-color, var(--nutui-gray-7, #1a1a1a))}[dir=rtl] .nut-overlay,.nut-rtl .nut-overlay{left:auto;right:0}.nut-overflow-hidden,.nut-overflow-hidden .taro_page{overflow:hidden!important}@keyframes nut-fade-in{0%{opacity:0}1%{opacity:0}to{opacity:1}}@keyframes nut-fade-out{0%{opacity:1}1%{opacity:1}to{opacity:0}}.nut-overlay-slide-enter-active,.nut-overlay-slide-appear-active{animation-fill-mode:both;animation-name:nut-fade-in;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-overlay-slide-exit-active{animation-fill-mode:both;animation-name:nut-fade-out;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-fixednav{position:fixed;z-index:var(--nutui-fixednav-index, 900);display:inline-block;height:50px;right:0}.nut-fixednav.active .nut-fixednav-btn .nut-icon{transform:rotate(180deg)}.nut-fixednav.active .nut-fixednav-list{transform:translate(0)!important}.nut-fixednav.active.left .nut-icon{transform:rotate(0)!important}.nut-fixednav-btn{box-sizing:border-box;position:absolute;right:0;z-index:var(--nutui-fixednav-index, 900);width:70px;height:100%;background:var(--nutui-fixednav-button-background, var(--nutui-color-primary, #fa2c19));border-radius:45px 0 0 45px;box-shadow:0 2px 4px #0003;display:flex;align-items:center;justify-content:center}.nut-fixednav-btn .text{width:24px;line-height:13px;font-size:var(--nutui-font-size-2, 12px);color:#fff;flex-shrink:0}.nut-fixednav-btn .nut-icon{margin-right:5px;transform:rotate(0);transition:all .3s}.nut-fixednav-list{position:absolute;right:0;transform:translate(100%);transition:all .5s;z-index:var(--nutui-fixednav-index, 900);flex-shrink:0;height:100%;background:var(--nutui-fixednav-background-color, #ffffff);display:flex;justify-content:space-between;border-radius:25px 0 0 25px;box-shadow:2px 2px 8px #0003;padding-left:20px;padding-right:80px}.nut-fixednav-list-item{position:relative;flex:1;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:50px;flex-shrink:0;color:var(--nutui-fixednav-color, #1a1a1a)}.nut-fixednav-list-item img{width:20px;height:20px;margin-bottom:2px}.nut-fixednav-list-item .nut-fixednav-list-text{font-size:10px}.nut-fixednav-list-item .b{position:absolute;right:0;top:1px;height:14px;line-height:14px;font-size:10px;padding:0 3px;color:#fff;background:var(--nutui-color-primary, #fa2c19);border-radius:7px;text-align:center;min-width:12px}.nut-fixednav.left{right:auto;left:0}.nut-fixednav.left .nut-fixednav-btn{flex-direction:row-reverse;right:auto;left:0;border-radius:0 45px 45px 0}.nut-fixednav.left .nut-fixednav-btn .nut-icon{transform:rotate(180deg);margin-right:0;margin-left:5px}.nut-fixednav.left .nut-fixednav-list{transform:translate(-100%);right:auto;border-radius:0 25px 25px 0;padding-left:80px;padding-right:20px;margin:0}[dir=rtl] .nut-fixednav,.nut-rtl .nut-fixednav{right:auto;left:0}[dir=rtl] .nut-fixednav.active .nut-icon,.nut-rtl .nut-fixednav.active .nut-icon{transform:rotate(-180deg)}[dir=rtl] .nut-fixednav-btn,.nut-rtl .nut-fixednav-btn{right:auto;left:0;border-radius:0 45px 45px 0}[dir=rtl] .nut-fixednav-btn .nut-icon,.nut-rtl .nut-fixednav-btn .nut-icon{margin-right:0;margin-left:5px;transform:rotate(180deg)}[dir=rtl] .nut-fixednav-list,.nut-rtl .nut-fixednav-list{right:auto;left:0;transform:translate(-100%);border-radius:0 25px 25px 0;box-shadow:-2px 2px 8px #0003;padding-right:20px;padding-left:80px}[dir=rtl] .nut-fixednav-list-item .b,.nut-rtl .nut-fixednav-list-item .b{right:auto;left:0}[dir=rtl] .nut-fixednav.left,.nut-rtl .nut-fixednav.left{left:auto;right:0}[dir=rtl] .nut-fixednav.left .nut-fixednav-btn,.nut-rtl .nut-fixednav.left .nut-fixednav-btn{left:auto;right:0;border-radius:45px 0 0 45px}[dir=rtl] .nut-fixednav.left .nut-fixednav-btn .nut-icon,.nut-rtl .nut-fixednav.left .nut-fixednav-btn .nut-icon{transform:rotate(0);margin-right:5px;margin-left:0}[dir=rtl] .nut-fixednav.left .nut-fixednav-list,.nut-rtl .nut-fixednav.left .nut-fixednav-list{transform:translate(100%);right:auto;left:auto;border-radius:25px 0 0 25px;padding-right:80px;padding-left:20px}.nut-drag .nut-fixednav{position:
|
|
1
|
+
.nut-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:var(--nutui-overlay-bg-color, var(--nutui-black-10, rgba(0, 0, 0, .7)));z-index:var(--nutui-overlay-zIndex, 1000)}.nut-overlay .wrapper .content{background-color:var(--nutui-overlay-content-bg-color, var(--nutui-gray-1, #ffffff));color:var(--nutui-overlay-content-color, var(--nutui-gray-7, #1a1a1a))}[dir=rtl] .nut-overlay,.nut-rtl .nut-overlay{left:auto;right:0}.nut-overflow-hidden,.nut-overflow-hidden .taro_page{overflow:hidden!important}@keyframes nut-fade-in{0%{opacity:0}1%{opacity:0}to{opacity:1}}@keyframes nut-fade-out{0%{opacity:1}1%{opacity:1}to{opacity:0}}.nut-overlay-slide-enter-active,.nut-overlay-slide-appear-active{animation-fill-mode:both;animation-name:nut-fade-in;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-overlay-slide-exit-active{animation-fill-mode:both;animation-name:nut-fade-out;animation-duration:var(--nutui-overlay-animation-duration, .3s)}.nut-fixednav{position:fixed;z-index:var(--nutui-fixednav-index, 900);display:inline-block;height:50px;right:0}.nut-fixednav.active .nut-fixednav-btn .nut-icon{transform:rotate(180deg)}.nut-fixednav.active .nut-fixednav-list{transform:translate(0)!important}.nut-fixednav.active.left .nut-icon{transform:rotate(0)!important}.nut-fixednav-btn{box-sizing:border-box;position:absolute;right:0;z-index:var(--nutui-fixednav-index, 900);width:70px;height:100%;background:var(--nutui-fixednav-button-background, var(--nutui-color-primary, #fa2c19));border-radius:45px 0 0 45px;box-shadow:0 2px 4px #0003;display:flex;align-items:center;justify-content:center}.nut-fixednav-btn .text{width:24px;line-height:13px;font-size:var(--nutui-font-size-2, 12px);color:#fff;flex-shrink:0}.nut-fixednav-btn .nut-icon{margin-right:5px;transform:rotate(0);transition:all .3s}.nut-fixednav-list{position:absolute;right:0;transform:translate(100%);transition:all .5s;z-index:var(--nutui-fixednav-index, 900);flex-shrink:0;height:100%;background:var(--nutui-fixednav-background-color, #ffffff);display:flex;justify-content:space-between;border-radius:25px 0 0 25px;box-shadow:2px 2px 8px #0003;padding-left:20px;padding-right:80px}.nut-fixednav-list-item{position:relative;flex:1;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-width:50px;flex-shrink:0;color:var(--nutui-fixednav-color, #1a1a1a)}.nut-fixednav-list-item img{width:20px;height:20px;margin-bottom:2px}.nut-fixednav-list-item .nut-fixednav-list-text{font-size:10px}.nut-fixednav-list-item .b{position:absolute;right:0;top:1px;height:14px;line-height:14px;font-size:10px;padding:0 3px;color:#fff;background:var(--nutui-color-primary, #fa2c19);border-radius:7px;text-align:center;min-width:12px}.nut-fixednav.left{right:auto;left:0}.nut-fixednav.left .nut-fixednav-btn{flex-direction:row-reverse;right:auto;left:0;border-radius:0 45px 45px 0}.nut-fixednav.left .nut-fixednav-btn .nut-icon{transform:rotate(180deg);margin-right:0;margin-left:5px}.nut-fixednav.left .nut-fixednav-list{transform:translate(-100%);right:auto;border-radius:0 25px 25px 0;padding-left:80px;padding-right:20px;margin:0}[dir=rtl] .nut-fixednav,.nut-rtl .nut-fixednav{right:auto;left:0}[dir=rtl] .nut-fixednav.active .nut-icon,.nut-rtl .nut-fixednav.active .nut-icon{transform:rotate(-180deg)}[dir=rtl] .nut-fixednav-btn,.nut-rtl .nut-fixednav-btn{right:auto;left:0;border-radius:0 45px 45px 0}[dir=rtl] .nut-fixednav-btn .nut-icon,.nut-rtl .nut-fixednav-btn .nut-icon{margin-right:0;margin-left:5px;transform:rotate(180deg)}[dir=rtl] .nut-fixednav-list,.nut-rtl .nut-fixednav-list{right:auto;left:0;transform:translate(-100%);border-radius:0 25px 25px 0;box-shadow:-2px 2px 8px #0003;padding-right:20px;padding-left:80px}[dir=rtl] .nut-fixednav-list-item .b,.nut-rtl .nut-fixednav-list-item .b{right:auto;left:0}[dir=rtl] .nut-fixednav.left,.nut-rtl .nut-fixednav.left{left:auto;right:0}[dir=rtl] .nut-fixednav.left .nut-fixednav-btn,.nut-rtl .nut-fixednav.left .nut-fixednav-btn{left:auto;right:0;border-radius:45px 0 0 45px}[dir=rtl] .nut-fixednav.left .nut-fixednav-btn .nut-icon,.nut-rtl .nut-fixednav.left .nut-fixednav-btn .nut-icon{transform:rotate(0);margin-right:5px;margin-left:0}[dir=rtl] .nut-fixednav.left .nut-fixednav-list,.nut-rtl .nut-fixednav.left .nut-fixednav-list{transform:translate(100%);right:auto;left:auto;border-radius:25px 0 0 25px;padding-right:80px;padding-left:20px}.nut-drag .nut-fixednav{position:relative}
|
package/dist/esm/Table.js
CHANGED
|
@@ -82,7 +82,7 @@ import { S as S13 } from "./step.taro-Cc1dc5Qb.js";
|
|
|
82
82
|
import { S as S14 } from "./steps.taro-CUEhZGfy.js";
|
|
83
83
|
import { default as default4 } from "./Swiper.js";
|
|
84
84
|
import { S as S15 } from "./swiperitem.taro-DeiNSrJV.js";
|
|
85
|
-
import { T as T7 } from "./table.taro-
|
|
85
|
+
import { T as T7 } from "./table.taro-D2M3D2Vj.js";
|
|
86
86
|
import { T as T8 } from "./tag.taro-CFt28RLm.js";
|
|
87
87
|
import { T as T9 } from "./tour.taro-SPMrhDA9.js";
|
|
88
88
|
import { V } from "./video.taro-CecLv4sr.js";
|
|
@@ -130,6 +130,10 @@ const Table = (props) => {
|
|
|
130
130
|
});
|
|
131
131
|
};
|
|
132
132
|
const renderBodyTds = (item, rowIndex) => {
|
|
133
|
+
const { rowRender } = item;
|
|
134
|
+
if (rowRender && typeof rowRender === "function") {
|
|
135
|
+
return rowRender(item, rowIndex);
|
|
136
|
+
}
|
|
133
137
|
return sortDataItem().map(([value, render]) => {
|
|
134
138
|
return React__default.createElement("div", { className: classNames(`${bodyClassPrefix}-td`, cellClasses(getColumnItem(value)), getStickyClass(value)), key: value, style: getStickyStyle(value) }, typeof item[value] === "function" || typeof render === "function" ? React__default.createElement("div", null, render ? render(item, rowIndex) : item[value](item)) : item[value]);
|
|
135
139
|
});
|
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
package/dist/locales/id-ID.js
CHANGED
package/dist/locales/tr-TR.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.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react-taro v2.6.
|
|
2
|
+
* @nutui/nutui-react-taro v2.6.11 Fri Jun 28 2024 14:38:04 GMT+0800 (China Standard Time)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -3385,19 +3385,6 @@ function getScrollParent(el, root2 = defaultRoot) {
|
|
|
3385
3385
|
}
|
|
3386
3386
|
return root2;
|
|
3387
3387
|
}
|
|
3388
|
-
let passiveSupported = false;
|
|
3389
|
-
if (canUseDom) {
|
|
3390
|
-
try {
|
|
3391
|
-
const opts = Object.defineProperty({}, "passive", {
|
|
3392
|
-
get() {
|
|
3393
|
-
passiveSupported = true;
|
|
3394
|
-
}
|
|
3395
|
-
});
|
|
3396
|
-
window.addEventListener("test-passive-supported", null, opts);
|
|
3397
|
-
} catch (e2) {
|
|
3398
|
-
console.log(e2);
|
|
3399
|
-
}
|
|
3400
|
-
}
|
|
3401
3388
|
let totalLockCount = 0;
|
|
3402
3389
|
const BODY_LOCK_CLASS = "nut-overflow-hidden";
|
|
3403
3390
|
function getScrollableElement(el) {
|
|
@@ -3445,7 +3432,7 @@ function useLockScroll(rootRef, shouldLock) {
|
|
|
3445
3432
|
document.addEventListener(
|
|
3446
3433
|
"touchmove",
|
|
3447
3434
|
onTouchMove,
|
|
3448
|
-
|
|
3435
|
+
false
|
|
3449
3436
|
);
|
|
3450
3437
|
if (!totalLockCount) {
|
|
3451
3438
|
document.body.classList.add(BODY_LOCK_CLASS);
|
|
@@ -7976,7 +7963,7 @@ const InternalPickerPanel = (props, ref) => {
|
|
|
7976
7963
|
moving: moving.current
|
|
7977
7964
|
}));
|
|
7978
7965
|
useEffect(() => {
|
|
7979
|
-
const eventOptions =
|
|
7966
|
+
const eventOptions = false;
|
|
7980
7967
|
const element = pickerPanelRef.current;
|
|
7981
7968
|
element.addEventListener("touchstart", touchStart, eventOptions);
|
|
7982
7969
|
element.addEventListener("touchmove", touchMove, eventOptions);
|
|
@@ -17519,6 +17506,10 @@ const Table = (props) => {
|
|
|
17519
17506
|
});
|
|
17520
17507
|
};
|
|
17521
17508
|
const renderBodyTds = (item, rowIndex) => {
|
|
17509
|
+
const { rowRender } = item;
|
|
17510
|
+
if (rowRender && typeof rowRender === "function") {
|
|
17511
|
+
return rowRender(item, rowIndex);
|
|
17512
|
+
}
|
|
17522
17513
|
return sortDataItem().map(([value, render]) => {
|
|
17523
17514
|
return /* @__PURE__ */ React__default.createElement(
|
|
17524
17515
|
"div",
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
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
3
|
})(this, function(exports2, React, Taro, components, ReactDOM) {
|
|
4
4
|
"use strict";/*!
|
|
5
|
-
* @nutui/nutui-react-taro v2.6.
|
|
5
|
+
* @nutui/nutui-react-taro v2.6.11 Fri Jun 28 2024 14:38:04 GMT+0800 (China Standard Time)
|
|
6
6
|
* (c) 2023 @jdf2e.
|
|
7
7
|
* Released under the MIT License.
|
|
8
8
|
*/
|
|
@@ -3401,19 +3401,6 @@
|
|
|
3401
3401
|
}
|
|
3402
3402
|
return root2;
|
|
3403
3403
|
}
|
|
3404
|
-
let passiveSupported = false;
|
|
3405
|
-
if (canUseDom) {
|
|
3406
|
-
try {
|
|
3407
|
-
const opts = Object.defineProperty({}, "passive", {
|
|
3408
|
-
get() {
|
|
3409
|
-
passiveSupported = true;
|
|
3410
|
-
}
|
|
3411
|
-
});
|
|
3412
|
-
window.addEventListener("test-passive-supported", null, opts);
|
|
3413
|
-
} catch (e2) {
|
|
3414
|
-
console.log(e2);
|
|
3415
|
-
}
|
|
3416
|
-
}
|
|
3417
3404
|
let totalLockCount = 0;
|
|
3418
3405
|
const BODY_LOCK_CLASS = "nut-overflow-hidden";
|
|
3419
3406
|
function getScrollableElement(el) {
|
|
@@ -3461,7 +3448,7 @@
|
|
|
3461
3448
|
document.addEventListener(
|
|
3462
3449
|
"touchmove",
|
|
3463
3450
|
onTouchMove,
|
|
3464
|
-
|
|
3451
|
+
false
|
|
3465
3452
|
);
|
|
3466
3453
|
if (!totalLockCount) {
|
|
3467
3454
|
document.body.classList.add(BODY_LOCK_CLASS);
|
|
@@ -7992,7 +7979,7 @@
|
|
|
7992
7979
|
moving: moving.current
|
|
7993
7980
|
}));
|
|
7994
7981
|
React.useEffect(() => {
|
|
7995
|
-
const eventOptions =
|
|
7982
|
+
const eventOptions = false;
|
|
7996
7983
|
const element = pickerPanelRef.current;
|
|
7997
7984
|
element.addEventListener("touchstart", touchStart, eventOptions);
|
|
7998
7985
|
element.addEventListener("touchmove", touchMove, eventOptions);
|
|
@@ -17535,6 +17522,10 @@
|
|
|
17535
17522
|
});
|
|
17536
17523
|
};
|
|
17537
17524
|
const renderBodyTds = (item, rowIndex) => {
|
|
17525
|
+
const { rowRender } = item;
|
|
17526
|
+
if (rowRender && typeof rowRender === "function") {
|
|
17527
|
+
return rowRender(item, rowIndex);
|
|
17528
|
+
}
|
|
17538
17529
|
return sortDataItem().map(([value, render]) => {
|
|
17539
17530
|
return /* @__PURE__ */ React.createElement(
|
|
17540
17531
|
"div",
|