quasar-ui-danx 0.0.8 → 0.0.9

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.8",
3
+ "version": "0.0.9",
4
4
  "author": "Dan <dan@flytedesk.com>",
5
5
  "description": "DanX Vue / Quasar component library",
6
6
  "license": "MIT",
@@ -7,7 +7,7 @@
7
7
  >
8
8
  <div class="flex items-center">
9
9
  <div v-if="showHandle">
10
- <img :src="DragHandleIcon" class="w-4 h-4" alt="drag-handle" />
10
+ <SvgImg :svg="DragHandleIcon" class="w-4 h-4" alt="drag-handle" />
11
11
  </div>
12
12
  <div class="flex-grow">
13
13
  <slot />
@@ -16,6 +16,7 @@
16
16
  </div>
17
17
  </template>
18
18
  <script setup>
19
+ import SvgImg from "../Utility/SvgImg";
19
20
  import { HandleDraggableDotsIcon as DragHandleIcon } from "./Icons";
20
21
  import { ListDragAndDrop } from "./listDragAndDrop";
21
22
 
@@ -0,0 +1,20 @@
1
+ <template>
2
+ <img
3
+ v-if="typeof svg === 'string'"
4
+ :src="svg"
5
+ :alt="alt"
6
+ />
7
+ <component :is="svg" v-else />
8
+ </template>
9
+ <script setup>
10
+ defineProps({
11
+ svg: {
12
+ type: [String, Object],
13
+ required: true
14
+ },
15
+ alt: {
16
+ type: String,
17
+ default: ""
18
+ }
19
+ });
20
+ </script>