quasar-ui-danx 0.4.88 → 0.4.89
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/package.json
CHANGED
@@ -42,22 +42,22 @@ import { fDate, parseDateTime } from "../../../../helpers";
|
|
42
42
|
|
43
43
|
const emit = defineEmits(["update:model-value"]);
|
44
44
|
const props = defineProps<{
|
45
|
-
|
46
|
-
|
47
|
-
|
45
|
+
modelValue?: string | null;
|
46
|
+
label: string | null;
|
47
|
+
clearable?: boolean;
|
48
48
|
}>();
|
49
49
|
|
50
50
|
const formattedDate = computed(() => {
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
51
|
+
if (props.modelValue) {
|
52
|
+
return fDate(parseDateTime(props.modelValue || "0000-00-00"));
|
53
|
+
}
|
54
|
+
return "- -";
|
55
55
|
});
|
56
56
|
|
57
57
|
const date = ref(parseDateTime(props.modelValue));
|
58
58
|
watch(() => props.modelValue, val => date.value = val);
|
59
59
|
|
60
60
|
function onSave() {
|
61
|
-
|
61
|
+
emit("update:model-value", date.value);
|
62
62
|
}
|
63
63
|
</script>
|
@@ -65,6 +65,7 @@ import {
|
|
65
65
|
FaSolidClock as ClockIcon,
|
66
66
|
FaSolidCodeMerge as MergeIcon,
|
67
67
|
FaSolidCopy as CopyIcon,
|
68
|
+
FaSolidDatabase as DatabaseIcon,
|
68
69
|
FaSolidEye as ViewIcon,
|
69
70
|
FaSolidFileExport as ExportIcon,
|
70
71
|
FaSolidFileImport as ImportIcon,
|
@@ -82,7 +83,7 @@ import { computed, ref } from "vue";
|
|
82
83
|
import { ActionTarget, ResourceAction } from "../../../types";
|
83
84
|
|
84
85
|
export interface ActionButtonProps {
|
85
|
-
type?: "save" | "trash" | "back" | "create" | "edit" | "copy" | "folder" | "play" | "stop" | "pause" | "refresh" | "restart" | "confirm" | "cancel" | "export" | "import" | "minus" | "merge" | "check" | "clock" | "view";
|
86
|
+
type?: "save" | "trash" | "back" | "create" | "edit" | "copy" | "folder" | "play" | "stop" | "pause" | "refresh" | "restart" | "confirm" | "cancel" | "export" | "import" | "minus" | "merge" | "check" | "clock" | "view" | "database";
|
86
87
|
color?: "red" | "blue" | "blue-invert" | "sky" | "sky-invert" | "green" | "green-invert" | "lime" | "white" | "gray" | "slate" | "slate-invert" | "yellow" | "orange";
|
87
88
|
size?: "xxs" | "xs" | "sm" | "md" | "lg";
|
88
89
|
icon?: object | string;
|
@@ -230,6 +231,8 @@ const typeOptions = computed(() => {
|
|
230
231
|
return { icon: CheckIcon };
|
231
232
|
case "view":
|
232
233
|
return { icon: ViewIcon };
|
234
|
+
case "database":
|
235
|
+
return { icon: DatabaseIcon };
|
233
236
|
default:
|
234
237
|
return { icon: EditIcon };
|
235
238
|
}
|