@dataloop-ai/components 0.17.14 → 0.17.15

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.17.14",
3
+ "version": "0.17.15",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -306,6 +306,44 @@
306
306
  </div>
307
307
  </template>
308
308
  </dl-select>
309
+
310
+ Select with max-height
311
+ <dl-select
312
+ v-model="selectedOption"
313
+ :size="'s'"
314
+ title="test"
315
+ dropdown-max-height="50px"
316
+ tooltip="test me"
317
+ :options="[
318
+ {
319
+ subLabel: 'not so high',
320
+ label: 'High',
321
+ value: 'high',
322
+ bgColor: 'dl-color-negative'
323
+ },
324
+ {
325
+ subLabel: 'not so medium',
326
+ label: 'Medium',
327
+ value: 'medium',
328
+ bgColor: 'dl-color-warning',
329
+ textColor: 'dl-color-darker'
330
+ },
331
+ {
332
+ subLabel: 'not so low',
333
+ label: 'Low',
334
+ value: 'low',
335
+ bgColor: 'dl-color-positive',
336
+ textColor: 'dl-color-darker'
337
+ }
338
+ ]"
339
+ >
340
+ <template #option="scope">
341
+ <div style="padding: 5px 0px">
342
+ <div>{{ scope.opt.label }}</div>
343
+ <div>{{ scope.opt.subLabel }}</div>
344
+ </div>
345
+ </template>
346
+ </dl-select>
309
347
  </div>
310
348
  </template>
311
349