@shwfed/config 2.3.2 → 2.3.3

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shwfed",
3
3
  "configKey": "shwfed",
4
- "version": "2.3.2",
4
+ "version": "2.3.3",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
@@ -4,7 +4,7 @@ import type { Environment } from '../../../../../vendor/cel-js/lib/index.js';
4
4
  export declare const type: "com.shwfed.table.column.drag-handle";
5
5
  export declare const compatibilityDate: "2026-05-21";
6
6
  export declare const metadata: {
7
- readonly name: "拖拽列";
7
+ readonly name: "拖拽";
8
8
  readonly icon: "fluent:re-order-dots-vertical-20-regular";
9
9
  };
10
10
  export declare function schema(_configure: (env: Environment) => void): Schema.Struct<{
@@ -5,7 +5,7 @@ import { columnIdentityFields } from "../../../utils/shared.js";
5
5
  export const type = "com.shwfed.table.column.drag-handle";
6
6
  export const compatibilityDate = "2026-05-21";
7
7
  export const metadata = {
8
- name: "\u62D6\u62FD\u5217",
8
+ name: "\u62D6\u62FD",
9
9
  icon: "fluent:re-order-dots-vertical-20-regular"
10
10
  };
11
11
  export function schema(_configure) {
@@ -464,13 +464,12 @@ function groupLabel(group) {
464
464
  }
465
465
  function columnLabel(col) {
466
466
  if (!col) return "(\u672A\u77E5)";
467
- if (col.type === "com.shwfed.table.column.select") return "\u9009\u62E9\u5217";
468
- if (!col.title) return "(\u65E0\u6807\u9898)";
469
467
  if (Array.isArray(col.title)) {
470
468
  const zh = col.title.find((t) => t.locale === "zh");
471
- return zh?.message || col.title[0]?.message || "(\u65E0\u6807\u9898)";
469
+ const msg = zh?.message || col.title[0]?.message;
470
+ if (msg) return msg;
472
471
  }
473
- return "(\u65E0\u6807\u9898)";
472
+ return getColumnTypeLabel(col.type, col.compatibilityDate);
474
473
  }
475
474
  function getColumnTypeLabel(type, compatibilityDate) {
476
475
  return findColumnEntry(type, compatibilityDate)?.metadata.name ?? type;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shwfed/config",
3
- "version": "2.3.2",
3
+ "version": "2.3.3",
4
4
  "description": "Configurable UI for SHWFED",
5
5
  "type": "module",
6
6
  "publishConfig": {