@dataloop-ai/components 0.19.111 → 0.19.112

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.19.111",
3
+ "version": "0.19.112",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -53,8 +53,8 @@
53
53
  <slot>
54
54
  {{
55
55
  capitalized
56
- ? value.toString().toLowerCase()
57
- : value
56
+ ? displayLabel.toString().toLowerCase()
57
+ : displayLabel
58
58
  }}
59
59
  </slot>
60
60
  </dl-checkbox>
@@ -69,7 +69,9 @@
69
69
  >
70
70
  <slot>
71
71
  {{
72
- capitalized ? value.toString().toLowerCase() : value
72
+ capitalized
73
+ ? displayLabel.toString().toLowerCase()
74
+ : displayLabel
73
75
  }}
74
76
  </slot>
75
77
  </div>
@@ -191,6 +193,9 @@ export default defineComponent({
191
193
  },
192
194
  indent(): { padding: string } {
193
195
  return { padding: `0 ${this.depth * 30}px 0 0` }
196
+ },
197
+ displayLabel(): string {
198
+ return String(this.label ? this.label : this.value)
194
199
  }
195
200
  },
196
201
  methods: {