quasar-ui-danx 0.2.13 → 0.2.14

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.2.13",
3
+ "version": "0.2.14",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -19,11 +19,15 @@
19
19
  "devDependencies": {
20
20
  "@quasar/extras": "^1.16.4",
21
21
  "@types/node": "^20.12.7",
22
+ "@typescript-eslint/eslint-plugin": "^7.6.0",
23
+ "@typescript-eslint/parser": "^7.6.0",
22
24
  "@vitejs/plugin-vue": "^5.0.4",
23
25
  "autoprefixer": "^10.4.19",
24
26
  "chalk": "^4.1.0",
25
27
  "core-js": "^3.0.0",
26
28
  "cssnano": "^4.1.10",
29
+ "eslint": "^9.0.0",
30
+ "eslint-plugin-vue": "^9.24.1",
27
31
  "fs-extra": "^8.1.0",
28
32
  "postcss": "^8.4.38",
29
33
  "quasar": "^2.0.0",
@@ -35,6 +39,7 @@
35
39
  "vite-plugin-dts": "^3.8.1",
36
40
  "vite-svg-loader": "^5.1.0",
37
41
  "vue": "^3.4.21",
42
+ "vue-eslint-parser": "^9.4.2",
38
43
  "vue-router": "^4.0.0"
39
44
  },
40
45
  "dependencies": {
@@ -2,7 +2,10 @@
2
2
  <div>
3
3
  <div class="text-xs font-bold">{{ label }}</div>
4
4
  <div :class="{'mt-2': !dense, 'mt-1': dense, 'text-no-wrap': nowrap}">
5
- <slot>{{ value || "-" }}</slot>
5
+ <template v-if="loading">
6
+ <QSpinnerTail />
7
+ </template>
8
+ <slot v-else>{{ value || '-' }}</slot>
6
9
  </div>
7
10
  </div>
8
11
  </template>
@@ -14,9 +17,10 @@ defineProps({
14
17
  },
15
18
  value: {
16
19
  type: [String, Number],
17
- default: "-"
20
+ default: '-'
18
21
  },
19
22
  dense: Boolean,
20
- nowrap: Boolean
23
+ nowrap: Boolean,
24
+ loading: Boolean
21
25
  });
22
26
  </script>