@udi-organization/udi-package 1.0.46 → 1.0.48
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/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -2
package/dist/index.esm.js
CHANGED
|
@@ -2164,7 +2164,7 @@ var UdiTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2164
2164
|
_ref$syncTableControl = _ref.syncTableControl,
|
|
2165
2165
|
syncTableControl = _ref$syncTableControl === void 0 ? false : _ref$syncTableControl,
|
|
2166
2166
|
_ref$currentTableRef = _ref.currentTableRef,
|
|
2167
|
-
currentTableRef = _ref$currentTableRef === void 0 ?
|
|
2167
|
+
currentTableRef = _ref$currentTableRef === void 0 ? {} : _ref$currentTableRef,
|
|
2168
2168
|
_ref$name = _ref.name,
|
|
2169
2169
|
name = _ref$name === void 0 ? null : _ref$name,
|
|
2170
2170
|
setTablePage = _ref.setTablePage,
|
|
@@ -2627,7 +2627,7 @@ var useUdiTableSync$1 = function useUdiTableSync() {
|
|
|
2627
2627
|
// 分頁同步邏輯
|
|
2628
2628
|
useEffect(function () {
|
|
2629
2629
|
if (!enabled || !syncPagination) return;
|
|
2630
|
-
if (!importedTableRef.current || !originalTableRef.current) return;
|
|
2630
|
+
if (!(importedTableRef !== null && importedTableRef !== void 0 && importedTableRef.current) || !(originalTableRef !== null && originalTableRef !== void 0 && originalTableRef.current)) return;
|
|
2631
2631
|
|
|
2632
2632
|
// 雙向同步分頁
|
|
2633
2633
|
controlPagination(importedTableRef, originalTableRef);
|
|
@@ -3149,12 +3149,12 @@ var useUdiTableSync = function useUdiTableSync() {
|
|
|
3149
3149
|
};
|
|
3150
3150
|
};
|
|
3151
3151
|
|
|
3152
|
-
function
|
|
3153
|
-
return "Hello, ".concat(name, "!
|
|
3152
|
+
function test(name) {
|
|
3153
|
+
return "Hello, ".concat(name, "! 10898dwdwqd999");
|
|
3154
3154
|
}
|
|
3155
3155
|
function add(a, b) {
|
|
3156
3156
|
return a + b;
|
|
3157
3157
|
}
|
|
3158
3158
|
|
|
3159
|
-
export { Button, UdiTable, add,
|
|
3159
|
+
export { Button, UdiTable, add, test, useUdiTableSync$1 as useUdiTableSync, useUdiTableSync as useUdiTableSyncMutipleTable };
|
|
3160
3160
|
//# sourceMappingURL=index.esm.js.map
|