@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 CHANGED
@@ -2166,7 +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 ? null : _ref$currentTableRef,
2169
+ currentTableRef = _ref$currentTableRef === void 0 ? {} : _ref$currentTableRef,
2170
2170
  _ref$name = _ref.name,
2171
2171
  name = _ref$name === void 0 ? null : _ref$name,
2172
2172
  setTablePage = _ref.setTablePage,
@@ -2629,7 +2629,7 @@ var useUdiTableSync$1 = function useUdiTableSync() {
2629
2629
  // 分頁同步邏輯
2630
2630
  React.useEffect(function () {
2631
2631
  if (!enabled || !syncPagination) return;
2632
- if (!importedTableRef.current || !originalTableRef.current) return;
2632
+ if (!(importedTableRef !== null && importedTableRef !== void 0 && importedTableRef.current) || !(originalTableRef !== null && originalTableRef !== void 0 && originalTableRef.current)) return;
2633
2633
 
2634
2634
  // 雙向同步分頁
2635
2635
  controlPagination(importedTableRef, originalTableRef);
@@ -3151,8 +3151,8 @@ var useUdiTableSync = function useUdiTableSync() {
3151
3151
  };
3152
3152
  };
3153
3153
 
3154
- function greet(name) {
3155
- return "Hello, ".concat(name, "! 1077");
3154
+ function test(name) {
3155
+ return "Hello, ".concat(name, "! 10898dwdwqd999");
3156
3156
  }
3157
3157
  function add(a, b) {
3158
3158
  return a + b;
@@ -3161,7 +3161,7 @@ function add(a, b) {
3161
3161
  exports.Button = Button;
3162
3162
  exports.UdiTable = UdiTable;
3163
3163
  exports.add = add;
3164
- exports.greet = greet;
3164
+ exports.test = test;
3165
3165
  exports.useUdiTableSync = useUdiTableSync$1;
3166
3166
  exports.useUdiTableSyncMutipleTable = useUdiTableSync;
3167
3167
  //# sourceMappingURL=index.cjs.js.map