@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 +1 -1
- package/dist/runtime/components/table/columns/2026-05-21/com.shwfed.table.column.drag-handle/schema.d.ts +1 -1
- package/dist/runtime/components/table/columns/2026-05-21/com.shwfed.table.column.drag-handle/schema.js +1 -1
- package/dist/runtime/components/table/config.vue +3 -4
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -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
|
|
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
|
-
|
|
469
|
+
const msg = zh?.message || col.title[0]?.message;
|
|
470
|
+
if (msg) return msg;
|
|
472
471
|
}
|
|
473
|
-
return
|
|
472
|
+
return getColumnTypeLabel(col.type, col.compatibilityDate);
|
|
474
473
|
}
|
|
475
474
|
function getColumnTypeLabel(type, compatibilityDate) {
|
|
476
475
|
return findColumnEntry(type, compatibilityDate)?.metadata.name ?? type;
|