atom-nuxt 1.0.143 → 1.0.144
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/module.json
CHANGED
|
@@ -62,6 +62,11 @@ const props = defineProps({
|
|
|
62
62
|
type: String,
|
|
63
63
|
required: false
|
|
64
64
|
},
|
|
65
|
+
btnIcon: {
|
|
66
|
+
type: String,
|
|
67
|
+
required: false,
|
|
68
|
+
default: null
|
|
69
|
+
},
|
|
65
70
|
fullScreen: {
|
|
66
71
|
type: Boolean,
|
|
67
72
|
required: false,
|
|
@@ -81,6 +86,9 @@ const hasItem = computed(() => item.value && Object.keys(item.value).length > 0)
|
|
|
81
86
|
const buttonTitle = computed(() => {
|
|
82
87
|
return props.btnText ? props.btnText : props.action === "create" ? props.createTitle : props.action === "update" ? props.updateTitle : props.action === "delete" ? props.deleteTitle : "";
|
|
83
88
|
});
|
|
89
|
+
const buttonIcon = computed(() => {
|
|
90
|
+
return props.btnIcon ? props.btnIcon : props.action === "create" ? "mdi-plus" : props.action === "update" ? "mdi-pencil" : props.action === "delete" ? "mdi-delete" : "mdi-timer-sand";
|
|
91
|
+
});
|
|
84
92
|
const display = useDisplay();
|
|
85
93
|
const isLarge = computed(() => display.lgAndUp.value);
|
|
86
94
|
</script>
|
|
@@ -153,7 +161,7 @@ const isLarge = computed(() => display.lgAndUp.value);
|
|
|
153
161
|
:loading="formPending"
|
|
154
162
|
>
|
|
155
163
|
<v-icon color="white" size="16" class="mr-2"
|
|
156
|
-
:icon="
|
|
164
|
+
:icon="buttonIcon"></v-icon>
|
|
157
165
|
{{ buttonTitle }}
|
|
158
166
|
</v-btn>
|
|
159
167
|
</v-card-actions>
|