@zhenliang/sheet 0.1.90-beta.0 → 0.1.92

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.
@@ -15,7 +15,7 @@ import "./index.less";
15
15
  import { jsx as _jsx } from "react/jsx-runtime";
16
16
  var formulaString = function formulaString(value, currentValue, precision, max, min, isEdit) {
17
17
  var curNumber = currentValue !== null && currentValue !== void 0 ? currentValue : 0;
18
- var formula = String(value).replace('=', '').replace(/x/g, String(curNumber));
18
+ var formula = String(value).replace('=', '').replace(/[xX]+/g, String(curNumber));
19
19
  try {
20
20
  var result = evaluate(formula);
21
21
  if (max && result > max) {
@@ -9,20 +9,25 @@
9
9
  text-align: inherit !important;
10
10
  padding-left: 0;
11
11
 
12
- .ant-input-number-wrapper {
12
+ .ant-input-wrapper {
13
13
  text-align: inherit !important;
14
14
  }
15
15
 
16
- .ant-input-number-input {
16
+ .ant-input {
17
17
  text-align: inherit !important;
18
18
  }
19
19
 
20
- .ant-input-number-input-wrap > input {
20
+ .ant-input-wrapper > input {
21
21
  padding: 0;
22
22
  height: 38px;
23
+ border: none;
24
+ outline: none;
25
+ box-shadow: none;
26
+ background: transparent;
27
+ font-size: 12px;
23
28
  }
24
29
 
25
- .ant-input-number-group-addon {
30
+ .ant-input-group-addon {
26
31
  background: transparent;
27
32
  border: none;
28
33
  padding: 0;
@@ -1,5 +1,5 @@
1
1
  import { SheetTableType } from "../..";
2
2
  export declare const useRowSelection: (dataSource: Record<string, unknown>[], rowSelection?: SheetTableType.TableRowSelection, hasChildren?: boolean) => [boolean[], (value: boolean[]) => void];
3
- export declare const formatSelectionData: (param: Pick<SheetTableType.TableProps, "columns" | "dataSource" | "rowKey" | "showRemark" | "rowSelection"> & {
3
+ export declare const formatSelectionData: (param: Pick<SheetTableType.TableProps, "columns" | "showRemark" | "rowSelection" | "dataSource" | "rowKey"> & {
4
4
  checked: boolean[];
5
5
  }) => any[][];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhenliang/sheet",
3
- "version": "0.1.90-beta.0",
3
+ "version": "0.1.92",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",