react-table-edit 0.3.3 → 0.3.4

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.js CHANGED
@@ -2602,7 +2602,7 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
2602
2602
  {
2603
2603
  className: (0, import_classnames10.default)("r-rowcell-div"),
2604
2604
  style: {
2605
- width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : "auto"
2605
+ width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width
2606
2606
  },
2607
2607
  children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2608
2608
  "div",
@@ -2653,7 +2653,7 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
2653
2653
  left: col.fixedType === "left" ? objWidthFix[col.index ?? 0] : void 0,
2654
2654
  right: col.fixedType === "right" ? objWidthFix[col.index ?? 0] : void 0,
2655
2655
  width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2656
- minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : "auto",
2656
+ minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2657
2657
  maxWidth: col.maxWidth
2658
2658
  },
2659
2659
  children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
@@ -2742,7 +2742,7 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
2742
2742
  ),
2743
2743
  style: {
2744
2744
  width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2745
- minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : "auto",
2745
+ minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2746
2746
  top: `${indexParent * 42}px`,
2747
2747
  left: col.fixedType === "left" ? objWidthFix[col.index ?? 0] : void 0,
2748
2748
  right: col.fixedType === "right" ? objWidthFix[col.index ?? 0] : void 0,
@@ -2779,8 +2779,8 @@ var TableEdit = (0, import_react12.forwardRef)((props, ref) => {
2779
2779
  style: {
2780
2780
  left: col.fixedType === "left" ? objWidthFix[indexCol] : void 0,
2781
2781
  right: col.fixedType === "right" ? objWidthFix[indexCol] : void 0,
2782
- width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : "auto",
2783
- minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : "auto",
2782
+ width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2783
+ minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2784
2784
  maxWidth: col.maxWidth,
2785
2785
  textAlign: col.textAlign ? col.textAlign : "left"
2786
2786
  },
package/dist/index.mjs CHANGED
@@ -2561,7 +2561,7 @@ var TableEdit = forwardRef2((props, ref) => {
2561
2561
  {
2562
2562
  className: classnames6("r-rowcell-div"),
2563
2563
  style: {
2564
- width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : "auto"
2564
+ width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width
2565
2565
  },
2566
2566
  children: /* @__PURE__ */ jsxs11(
2567
2567
  "div",
@@ -2612,7 +2612,7 @@ var TableEdit = forwardRef2((props, ref) => {
2612
2612
  left: col.fixedType === "left" ? objWidthFix[col.index ?? 0] : void 0,
2613
2613
  right: col.fixedType === "right" ? objWidthFix[col.index ?? 0] : void 0,
2614
2614
  width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2615
- minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : "auto",
2615
+ minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2616
2616
  maxWidth: col.maxWidth
2617
2617
  },
2618
2618
  children: /* @__PURE__ */ jsx12(
@@ -2701,7 +2701,7 @@ var TableEdit = forwardRef2((props, ref) => {
2701
2701
  ),
2702
2702
  style: {
2703
2703
  width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2704
- minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : "auto",
2704
+ minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2705
2705
  top: `${indexParent * 42}px`,
2706
2706
  left: col.fixedType === "left" ? objWidthFix[col.index ?? 0] : void 0,
2707
2707
  right: col.fixedType === "right" ? objWidthFix[col.index ?? 0] : void 0,
@@ -2738,8 +2738,8 @@ var TableEdit = forwardRef2((props, ref) => {
2738
2738
  style: {
2739
2739
  left: col.fixedType === "left" ? objWidthFix[indexCol] : void 0,
2740
2740
  right: col.fixedType === "right" ? objWidthFix[indexCol] : void 0,
2741
- width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : "auto",
2742
- minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : "auto",
2741
+ width: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2742
+ minWidth: col.fixedType ? Number(col.maxWidth ? col.maxWidth : col.width ? col.width : col.minWidth ?? "auto") : col.width,
2743
2743
  maxWidth: col.maxWidth,
2744
2744
  textAlign: col.textAlign ? col.textAlign : "left"
2745
2745
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-table-edit",
3
3
  "license": "MIT",
4
- "version": "0.3.3",
4
+ "version": "0.3.4",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",