quasar-ui-danx 0.0.45 → 0.0.46

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quasar-ui-danx",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -0,0 +1,22 @@
1
+ <template>
2
+ <div>
3
+ <div class="text-xs font-bold">{{ label }}</div>
4
+ <div :class="{'mt-2': !dense, 'mt-1': dense, 'text-no-wrap': nowrap}">
5
+ <slot>{{ value || "-" }}</slot>
6
+ </div>
7
+ </div>
8
+ </template>
9
+ <script setup>
10
+ defineProps({
11
+ label: {
12
+ type: String,
13
+ required: true
14
+ },
15
+ value: {
16
+ type: [String, Number],
17
+ default: "-"
18
+ },
19
+ dense: Boolean,
20
+ nowrap: Boolean
21
+ });
22
+ </script>
@@ -2,3 +2,4 @@ export { default as AddressFormat } from "./AddressFormat.vue";
2
2
  export { default as FlatListFormat } from "./FlatListFormat.vue";
3
3
  export { default as GpsCoordinatesFormat } from "./GpsCoordinatesFormat.vue";
4
4
  export { default as IconWithTextFormat } from "./IconWithTextFormat.vue";
5
+ export { default as LabelValueFormat } from "./LabelValueFormat.vue";