befly-admin 3.13.6 → 3.13.7

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "befly-admin",
3
- "version": "3.13.6",
4
- "gitHead": "964aa96007544f0f7a0f129bbe1d234a5ea59a08",
3
+ "version": "3.13.7",
4
+ "gitHead": "aed5c2a383bfcc1d8489ee880bca3f36bc2cbd28",
5
5
  "private": false,
6
6
  "description": "Befly Admin - 基于 Vue3 + TDesign Vue Next 的后台管理系统",
7
7
  "files": [
@@ -29,8 +29,8 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "axios": "^1.13.5",
32
- "befly-admin-ui": "1.8.16",
33
- "befly-vite": "^1.5.2",
32
+ "befly-admin-ui": "1.8.17",
33
+ "befly-vite": "^1.5.3",
34
34
  "pinia": "^3.0.4",
35
35
  "tdesign-icons-vue-next": "^0.4.0",
36
36
  "tdesign-vue-next": "^1.18.2",
@@ -31,8 +31,6 @@
31
31
  </template>
32
32
 
33
33
  <script setup>
34
- import { isString } from "../utils/is.js";
35
-
36
34
  const props = defineProps({
37
35
  /**
38
36
  * 当前行数据
@@ -83,20 +81,17 @@ const normalizedFields = computed(() => {
83
81
  return Boolean(item) && typeof item === "object";
84
82
  })
85
83
  .map((item) => {
86
- const colKey = isString(item.colKey) ? item.colKey : "";
87
- if (colKey.length === 0) {
84
+ const colKey = item.colKey;
85
+ if (item.colKey.length === 0) {
88
86
  return null;
89
87
  }
90
- if (excludeKeys.includes(colKey)) {
88
+ if (excludeKeys.includes(item.colKey)) {
91
89
  return null;
92
90
  }
93
91
 
94
- const titleRaw = item.title;
95
- const title = isString(titleRaw) && titleRaw.length > 0 ? titleRaw : colKey;
96
-
97
92
  return {
98
- colKey: colKey,
99
- title: title,
93
+ colKey: item.colKey,
94
+ title: item.title || item.colKey,
100
95
  default: item.default,
101
96
  formatter: item.formatter
102
97
  };
@@ -119,9 +114,7 @@ const normalizedFields = computed(() => {
119
114
  if (!item || typeof item !== "object") {
120
115
  return false;
121
116
  }
122
- const record = item;
123
- const colKey = record["colKey"];
124
- return isString(colKey) && colKey.length > 0;
117
+ return item.colKey?.length > 0;
125
118
  });
126
119
 
127
120
  return safeFields;
@@ -133,9 +126,9 @@ function formatValue(value, field) {
133
126
  }
134
127
  if (field.formatter) {
135
128
  const result = field.formatter(value);
136
- return isString(result) ? result : String(result);
129
+ return result;
137
130
  }
138
- return isString(value) ? value : String(value);
131
+ return value;
139
132
  }
140
133
  </script>
141
134
 
@@ -38,8 +38,6 @@
38
38
  </template>
39
39
 
40
40
  <script setup>
41
- defineOptions({ name: "PagedTableDetail" });
42
-
43
41
  import { reactive } from "vue";
44
42
  const props = defineProps({
45
43
  columns: {