fix: apply ESLint rule vue/define-macros-order

This commit is contained in:
iamsivin
2024-07-25 23:58:58 +05:30
parent b92f7536d2
commit a3229cee99
23 changed files with 80 additions and 78 deletions
+2 -2
View File
@@ -27,6 +27,8 @@ const props = defineProps({
},
});
const emit = defineEmits(['click']);
const attrs = useAttrs();
const baseClasses = {
@@ -72,8 +74,6 @@ const sizeClass = computed(() => {
const buttonClasses = computed(() => [colorClass.value, sizeClass.value]);
const emit = defineEmits(['click']);
const onClick = () => {
if (props.disabled) {
return;
@@ -1,16 +1,6 @@
<script setup>
import { computed } from 'vue';
import { userInitial } from 'v3/helpers/CommonHelper';
const colors = {
1: 'bg-ash-200 text-ash-900',
2: 'bg-amber-200 text-amber-900',
3: 'bg-pink-100 text-pink-800',
4: 'bg-purple-100 text-purple-800',
5: 'bg-indigo-100 text-indigo-800',
6: 'bg-grass-100 text-grass-800',
7: 'bg-mint-100 text-mint-800',
8: 'bg-orange-100 text-orange-800',
};
const props = defineProps({
name: {
type: String,
@@ -21,6 +11,16 @@ const props = defineProps({
default: 72,
},
});
const colors = {
1: 'bg-ash-200 text-ash-900',
2: 'bg-amber-200 text-amber-900',
3: 'bg-pink-100 text-pink-800',
4: 'bg-purple-100 text-purple-800',
5: 'bg-indigo-100 text-indigo-800',
6: 'bg-grass-100 text-grass-800',
7: 'bg-mint-100 text-mint-800',
8: 'bg-orange-100 text-orange-800',
};
const style = computed(() => ({
fontSize: `${Math.floor(props.size / 2.5)}px`,
}));