atom-nuxt 1.0.146 → 1.0.147

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atomengine/atom-nuxt",
3
3
  "configKey": "atomNuxt",
4
- "version": "1.0.146",
4
+ "version": "1.0.147",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -67,6 +67,11 @@ const props = defineProps({
67
67
  required: false,
68
68
  default: null
69
69
  },
70
+ btnColor: {
71
+ type: String,
72
+ required: false,
73
+ default: null
74
+ },
70
75
  fullScreen: {
71
76
  type: Boolean,
72
77
  required: false,
@@ -155,7 +160,7 @@ const isLarge = computed(() => display.lgAndUp.value);
155
160
  class="px-5"
156
161
  :width="isLarge ? 'auto' : '100%'"
157
162
  :disabled="disabled || !action"
158
- :color="action === 'create' ? 'success' : (action === 'update' ? 'info' : (action === 'delete' ? 'error' : 'light'))"
163
+ :color="btnColor ? btnColor : (action === 'create' ? 'success' : (action === 'update' ? 'info' : (action === 'delete' ? 'error' : 'light')))"
159
164
  variant="flat"
160
165
  @click="saveAction"
161
166
  :loading="formPending"
@@ -15,6 +15,7 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
15
15
  deleteTitle: string;
16
16
  saveAction: Function;
17
17
  btnIcon: string;
18
+ btnColor: string;
18
19
  fullScreen: boolean;
19
20
  originalItem: Record<string, any>;
20
21
  btnText?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atom-nuxt",
3
- "version": "1.0.146",
3
+ "version": "1.0.147",
4
4
  "description": "My new Nuxt module",
5
5
  "repository": "atomengine/atom-nuxt",
6
6
  "license": "MIT",