@hostlink/nuxt-light 1.8.5 → 1.8.6

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.8.5"
4
+ "version": "1.8.6"
5
5
  }
@@ -11,7 +11,8 @@ const props = defineProps({
11
11
 
12
12
 
13
13
  const usagePercent = computed(() => {
14
- return Math.round((props.storage.totalSpace - props.storage.freeSpace) / props.storage.totalSpace)
14
+ //return 0.0 to 1.0
15
+ return (props.storage.totalSpace - props.storage.freeSpace) / props.storage.totalSpace;
15
16
  })
16
17
 
17
18
  const progressColor = computed(() => {
@@ -5,6 +5,14 @@ const props = defineProps({
5
5
  type: [Number, String],
6
6
  default: 12
7
7
  },
8
+ sm: {
9
+ type: [Number, String],
10
+ default: 12
11
+ },
12
+ xs: {
13
+ type: [Number, String],
14
+ default: 12
15
+ },
8
16
  gutter: {
9
17
  type: String,
10
18
  default: "md"
@@ -13,13 +21,16 @@ const props = defineProps({
13
21
 
14
22
  const classes = computed(() => {
15
23
  return {
16
- [`col-md-${props.md}`]: true
24
+ "col-12": true, // default class "col-12
25
+ [`col-md-${props.md}`]: true,
26
+ [`col-sm-${props.sm}`]: true,
27
+ [`col-xs-${props.xs}`]: true
17
28
  }
18
29
  })
19
30
 
20
31
  </script>
21
32
  <template>
22
- <div class="col-12" :class="classes">
33
+ <div :class="classes">
23
34
  <div :class="`q-gutter-${props.gutter}`">
24
35
  <slot></slot>
25
36
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.8.5",
3
+ "version": "1.8.6",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",