quasar-ui-danx 0.4.49 → 0.4.51
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/danx.es.js +284 -274
- package/dist/danx.es.js.map +1 -1
- package/dist/danx.umd.js +3 -3
- package/dist/danx.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Utility/Buttons/ActionButton.vue +3 -1
- package/src/components/Utility/Dialogs/FullScreenDialog.vue +17 -13
- package/src/types/widgets.d.ts +1 -1
package/package.json
CHANGED
@@ -72,7 +72,7 @@ import { ActionTarget, ResourceAction } from "../../../types";
|
|
72
72
|
|
73
73
|
export interface ActionButtonProps {
|
74
74
|
type?: "trash" | "trash-red" | "create" | "edit" | "copy" | "play" | "stop" | "pause" | "refresh" | "confirm" | "cancel";
|
75
|
-
color?: "red" | "blue" | "sky" | "green" | "green-invert" | "lime" | "white" | "gray";
|
75
|
+
color?: "red" | "blue" | "sky" | "sky-invert" | "green" | "green-invert" | "lime" | "white" | "gray";
|
76
76
|
size?: "xxs" | "xs" | "sm" | "md" | "lg";
|
77
77
|
icon?: object | string;
|
78
78
|
iconClass?: string;
|
@@ -150,6 +150,8 @@ const colorClass = computed(() => {
|
|
150
150
|
return "text-blue-900 bg-blue-300 hover:bg-blue-400";
|
151
151
|
case "sky":
|
152
152
|
return "text-sky-900 bg-sky-300 hover:bg-sky-400";
|
153
|
+
case "sky-invert":
|
154
|
+
return "text-sky-400 bg-sky-800 hover:bg-sky-900";
|
153
155
|
case "white":
|
154
156
|
return "text-white bg-gray-800 hover:bg-gray-200";
|
155
157
|
case "gray":
|
@@ -1,5 +1,6 @@
|
|
1
1
|
<template>
|
2
2
|
<QDialog
|
3
|
+
class="full-screen-dialog"
|
3
4
|
:model-value="modelValue"
|
4
5
|
maximized
|
5
6
|
transition-show="slide-up"
|
@@ -22,28 +23,31 @@
|
|
22
23
|
</QDialog>
|
23
24
|
</template>
|
24
25
|
|
25
|
-
<script setup>
|
26
|
+
<script setup lang="ts">
|
26
27
|
import { computed } from "vue";
|
27
28
|
import { XIcon } from "../../../svg";
|
28
29
|
|
29
30
|
const emit = defineEmits(["update:model-value", "close"]);
|
30
|
-
const props = defineProps
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
const props = withDefaults(defineProps<{
|
32
|
+
modelValue: boolean;
|
33
|
+
center?: boolean;
|
34
|
+
blue?: boolean;
|
35
|
+
closeable?: boolean;
|
36
|
+
contentClass?: string;
|
37
|
+
}>(), {
|
38
|
+
contentClass: "bg-white text-gray-400"
|
35
39
|
});
|
36
40
|
|
37
41
|
let computedClass = computed(() => {
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
42
|
+
return {
|
43
|
+
"bg-blue-600 text-white": props.blue,
|
44
|
+
"items-center": props.center,
|
45
|
+
[props.contentClass]: !props.blue
|
46
|
+
};
|
43
47
|
});
|
44
48
|
|
45
49
|
function onClose() {
|
46
|
-
|
47
|
-
|
50
|
+
emit("update:model-value", false);
|
51
|
+
emit("close");
|
48
52
|
}
|
49
53
|
</script>
|
package/src/types/widgets.d.ts
CHANGED