quasar-ui-danx 0.0.7 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
>
|
8
8
|
<div class="flex items-center">
|
9
9
|
<div v-if="showHandle">
|
10
|
-
<
|
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>
|
package/src/vue-plugin.js
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
export * from "./helpers";
|
2
2
|
export * from "./components/DragAndDrop";
|
3
3
|
|
4
|
-
import
|
4
|
+
import packageJson from "../package.json";
|
5
|
+
|
6
|
+
const { version } = packageJson;
|
5
7
|
|
6
8
|
function install(app) {
|
7
9
|
console.log(`Installing Danx UI ${version}... Nothing to do really.`);
|