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