@udi-organization/udi-package 1.0.45 → 1.0.47

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 CHANGED
@@ -2166,9 +2166,7 @@ var UdiTable = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2166
2166
  _ref$syncTableControl = _ref.syncTableControl,
2167
2167
  syncTableControl = _ref$syncTableControl === void 0 ? false : _ref$syncTableControl,
2168
2168
  _ref$currentTableRef = _ref.currentTableRef,
2169
- currentTableRef = _ref$currentTableRef === void 0 ? {
2170
- currentTableRef: currentTableRef
2171
- } : _ref$currentTableRef,
2169
+ currentTableRef = _ref$currentTableRef === void 0 ? {} : _ref$currentTableRef,
2172
2170
  _ref$name = _ref.name,
2173
2171
  name = _ref$name === void 0 ? null : _ref$name,
2174
2172
  setTablePage = _ref.setTablePage,
@@ -2631,7 +2629,7 @@ var useUdiTableSync$1 = function useUdiTableSync() {
2631
2629
  // 分頁同步邏輯
2632
2630
  React.useEffect(function () {
2633
2631
  if (!enabled || !syncPagination) return;
2634
- if (!importedTableRef.current || !originalTableRef.current) return;
2632
+ if (!(importedTableRef !== null && importedTableRef !== void 0 && importedTableRef.current) || !(originalTableRef !== null && originalTableRef !== void 0 && originalTableRef.current)) return;
2635
2633
 
2636
2634
  // 雙向同步分頁
2637
2635
  controlPagination(importedTableRef, originalTableRef);
@@ -3154,7 +3152,7 @@ var useUdiTableSync = function useUdiTableSync() {
3154
3152
  };
3155
3153
 
3156
3154
  function greet(name) {
3157
- return "Hello, ".concat(name, "! 105");
3155
+ return "Hello, ".concat(name, "! 1077");
3158
3156
  }
3159
3157
  function add(a, b) {
3160
3158
  return a + b;