@94ai/nf-table 3.2.69 → 3.2.70

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.
@@ -6360,8 +6360,15 @@ __sfc_main.setup = (__props, __ctx) => {
6360
6360
  }
6361
6361
  };
6362
6362
  const getMinWidth = (column) => {
6363
+ var _a2;
6364
+ if (((_a2 = column.label) == null ? void 0 : _a2.indexOf("$$")) === 0) {
6365
+ const value = Number(column.label.replace("$$"));
6366
+ if (!Number.isNaN(value) && value) {
6367
+ return value;
6368
+ }
6369
+ }
6363
6370
  const fs = 14;
6364
- const label = column.customLabel || column.label;
6371
+ const label = column.label;
6365
6372
  const char = label.match(/[\u2E80-\u9FFF]/g);
6366
6373
  const charLen = char ? char.length : 0;
6367
6374
  const num = label.match(/\d|\./g);
@@ -6358,8 +6358,15 @@ __sfc_main.setup = (__props, __ctx) => {
6358
6358
  }
6359
6359
  };
6360
6360
  const getMinWidth = (column) => {
6361
+ var _a2;
6362
+ if (((_a2 = column.label) == null ? void 0 : _a2.indexOf("$$")) === 0) {
6363
+ const value = Number(column.label.replace("$$"));
6364
+ if (!Number.isNaN(value) && value) {
6365
+ return value;
6366
+ }
6367
+ }
6361
6368
  const fs = 14;
6362
- const label = column.customLabel || column.label;
6369
+ const label = column.label;
6363
6370
  const char = label.match(/[\u2E80-\u9FFF]/g);
6364
6371
  const charLen = char ? char.length : 0;
6365
6372
  const num = label.match(/\d|\./g);
@@ -920,8 +920,14 @@ const initCachedData = async () => {
920
920
  }
921
921
 
922
922
  const getMinWidth = (column) => {
923
+ if (column.label?.indexOf('$$') === 0) {
924
+ const value = Number(column.label.replace('$$'))
925
+ if (!Number.isNaN(value) && value) {
926
+ return value
927
+ }
928
+ }
923
929
  const fs = 14
924
- const label = column.customLabel || column.label
930
+ const label = column.label
925
931
  const char = label.match(/[\u2E80-\u9FFF]/g)
926
932
  const charLen = char ? char.length : 0
927
933
  const num = label.match(/\d|\./g)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@94ai/nf-table",
3
- "version": "3.2.69",
3
+ "version": "3.2.70",
4
4
  "description": "> TODO: description",
5
5
  "keywords": [],
6
6
  "author": "zoujiahe <zoujiahe@94ai.com>",
@@ -14,12 +14,12 @@
14
14
  "url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
15
15
  },
16
16
  "dependencies": {
17
- "@94ai/common-utils": "^3.2.69",
18
- "@94ai/nf-button": "^3.2.69",
19
- "@94ai/nf-drawer": "^3.2.69",
20
- "@94ai/nf-message": "^3.2.69",
21
- "@94ai/nf-search-form": "^3.2.69",
22
- "@94ai/nf-theme-chalk": "^3.2.69",
17
+ "@94ai/common-utils": "^3.2.70",
18
+ "@94ai/nf-button": "^3.2.70",
19
+ "@94ai/nf-drawer": "^3.2.70",
20
+ "@94ai/nf-message": "^3.2.70",
21
+ "@94ai/nf-search-form": "^3.2.70",
22
+ "@94ai/nf-theme-chalk": "^3.2.70",
23
23
  "idb-keyval": "^6.2.1",
24
24
  "vue-demi": "^0.14.5",
25
25
  "vuedraggable": "^2.24.3"
@@ -37,5 +37,5 @@
37
37
  "types": "lib/index.d.ts",
38
38
  "main": "lib/nf-table.cjs.js",
39
39
  "module": "lib/nf-table.esm-bundler.js",
40
- "gitHead": "5a0c98a10f4bc189c07b4e947ffedb4f9aa0c568"
40
+ "gitHead": "8d34ebea758609976687c2585cea11a0ca01a7c8"
41
41
  }