@thefreshop/tb 1.0.19 → 1.0.21

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/cjs/index.js CHANGED
@@ -23313,6 +23313,12 @@ const AntBaseModalCreate = ({ modalProps, formProps, props }) => {
23313
23313
  form.resetFields();
23314
23314
  onFinish(data);
23315
23315
  }
23316
+ }, onKeyDown: (e) => {
23317
+ if (props.enterToSubmit !== true) {
23318
+ if (e.key === "Enter") {
23319
+ e.preventDefault();
23320
+ }
23321
+ }
23316
23322
  } },
23317
23323
  column,
23318
23324
  customColumn,
@@ -24423,14 +24429,14 @@ const TitleBox$1 = ({ title, decs }) => {
24423
24429
 
24424
24430
  const TbpageMulti = ({ arrtableProps, arrflex, searchOption, searchDisabled = false, onSubmit, isLoading, title, decs, direction, }) => {
24425
24431
  const { user } = useTbState();
24426
- return (React.createElement("div", { className: styles$1.tableFrame, style: direction === "column" ? { flexDirection: "column" } : { flexDirection: "row" } },
24432
+ return (React.createElement("div", { className: styles$1.tableFrame },
24427
24433
  title || decs ? React.createElement(TitleBox, { title: title, decs: decs }) : null,
24428
24434
  searchOption && (React.createElement(SearchBox, { searchOption: searchOption, onSubmit: onSubmit, searchDisabled: searchDisabled, onReset: () => {
24429
24435
  if (onSubmit)
24430
24436
  onSubmit(null, null, true);
24431
24437
  } })),
24432
24438
  React.createElement(LoadingLayout, { isLoading: isLoading },
24433
- React.createElement("div", { className: styles$1.multiFrame }, arrtableProps.map((item, index) => {
24439
+ React.createElement("div", { className: styles$1.multiFrame, style: direction === "column" ? { flexDirection: "column" } : { flexDirection: "row" } }, arrtableProps.map((item, index) => {
24434
24440
  if (item.type === "table") {
24435
24441
  return (React.createElement("div", { key: `${item.type}_${index.toString()}`, className: styles$1.multiitem, style: arrflex && { flex: arrflex[index] } },
24436
24442
  item.title && React.createElement("div", { className: styles$1.itemtitle }, item.title),