@ddwl/ddwl-ui 1.0.11 → 1.0.13
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/CHANGELOG.md +18 -0
- package/package.json +1 -1
- package/src/lib/slots/dict.vue +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [1.0.13](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.12...v1.0.13) (2025-07-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* add console ([b259886](https://121.40.23.60:51888/frontend/ddwl-ui/commits/b2598869517ddce4b474c33d5d3d918166a73773))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## [1.0.12](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.11...v1.0.12) (2025-07-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* 字典插槽props修改 ([30cf3ce](https://121.40.23.60:51888/frontend/ddwl-ui/commits/30cf3cea03a6deee3080d55658b90b60d9e5238f))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
1
19
|
## [1.0.11](https://121.40.23.60:51888/frontend/ddwl-ui/compare/v1.0.10...v1.0.11) (2025-07-04)
|
|
2
20
|
|
|
3
21
|
|
package/package.json
CHANGED
package/src/lib/slots/dict.vue
CHANGED
|
@@ -13,7 +13,7 @@ export default {
|
|
|
13
13
|
type: Object,
|
|
14
14
|
default: () => ({})
|
|
15
15
|
},
|
|
16
|
-
|
|
16
|
+
prop: {
|
|
17
17
|
type: String,
|
|
18
18
|
default: ''
|
|
19
19
|
},
|
|
@@ -29,14 +29,14 @@ export default {
|
|
|
29
29
|
},
|
|
30
30
|
computed: {
|
|
31
31
|
dictText () {
|
|
32
|
-
console.log(this.$DDWL, this.row[this.
|
|
33
|
-
if (Array.isArray(this.row[this.
|
|
34
|
-
const result = this.$DDWL.enum.getLabels(this.code, this.row[this.
|
|
32
|
+
console.log(this.$DDWL, this.row[this.prop], this.row, this.prop, this)
|
|
33
|
+
if (Array.isArray(this.row[this.prop])) {
|
|
34
|
+
const result = this.$DDWL.enum.getLabels(this.code, this.row[this.prop])
|
|
35
35
|
console.log(result)
|
|
36
36
|
return result?.length ? result.join(',') : ''
|
|
37
37
|
} else {
|
|
38
|
-
console.log(this.$DDWL.enum.getLabel(this.code, this.row[this.
|
|
39
|
-
return this.$DDWL.enum.getLabel(this.code, this.row[this.
|
|
38
|
+
console.log(this.$DDWL.enum.getLabel(this.code, this.row[this.prop]))
|
|
39
|
+
return this.$DDWL.enum.getLabel(this.code, this.row[this.prop])
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
},
|