fix: iconify component
This commit is contained in:
parent
c00df1b1c7
commit
156cfcc35c
3 changed files with 12 additions and 14 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
import { ref, watch } from 'vue';
|
import { ref, watch } from 'vue';
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import { useI18n } from 'vue-i18n';
|
import { useI18n } from 'vue-i18n';
|
||||||
|
import { Icon } from '@iconify/vue';
|
||||||
|
|
||||||
const { t, locale } = useI18n();
|
const { t, locale } = useI18n();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
@ -86,7 +87,7 @@ function navigateTo(label: string, destination: string) {
|
||||||
<q-item-section id="btn-drawer-back ">
|
<q-item-section id="btn-drawer-back ">
|
||||||
<q-item-label class="q-pl-lg">
|
<q-item-label class="q-pl-lg">
|
||||||
<div class="box-border-left" />
|
<div class="box-border-left" />
|
||||||
<iconify-icon :icon="v.icon" />
|
<Icon :icon="v.icon" width="24px" class="q-mr-md" />
|
||||||
<!-- <q-icon :name="v.icon" size="sm" class="q-mr-xs" /> -->
|
<!-- <q-icon :name="v.icon" size="sm" class="q-mr-xs" /> -->
|
||||||
|
|
||||||
{{ $t(v.label) }}
|
{{ $t(v.label) }}
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@
|
||||||
import { useRouter } from 'vue-router';
|
import { useRouter } from 'vue-router';
|
||||||
import AppBox from 'components/app/AppBox.vue';
|
import AppBox from 'components/app/AppBox.vue';
|
||||||
import AppCircle from 'components/app/AppCircle.vue';
|
import AppCircle from 'components/app/AppCircle.vue';
|
||||||
|
import { Icon } from '@iconify/vue';
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
|
|
@ -44,13 +45,7 @@ function navigateTo(destination: string) {
|
||||||
:bordered="$q.dark.isActive"
|
:bordered="$q.dark.isActive"
|
||||||
>
|
>
|
||||||
<i v-if="v.isax" :class="`isax ${v.icon}`" style="font-size: 3rem" />
|
<i v-if="v.isax" :class="`isax ${v.icon}`" style="font-size: 3rem" />
|
||||||
<iconify-icon
|
<Icon v-else width="3rem" :icon="v.icon" height="3rem" />
|
||||||
v-else
|
|
||||||
size="3rem"
|
|
||||||
:icon="v.icon"
|
|
||||||
width="3rem"
|
|
||||||
height="3rem"
|
|
||||||
/>
|
|
||||||
</AppCircle>
|
</AppCircle>
|
||||||
<div class="column items-center q-mt-md text-center">
|
<div class="column items-center q-mt-md text-center">
|
||||||
<span style="font-weight: var(--font-weight-8)">{{ $t(v.title) }}</span>
|
<span style="font-weight: var(--font-weight-8)">{{ $t(v.title) }}</span>
|
||||||
|
|
|
||||||
|
|
@ -3,15 +3,16 @@ import { ref } from 'vue';
|
||||||
|
|
||||||
import AppBox from 'components/app/AppBox.vue';
|
import AppBox from 'components/app/AppBox.vue';
|
||||||
import AppCircle from '../app/AppCircle.vue';
|
import AppCircle from '../app/AppCircle.vue';
|
||||||
|
import { Icon } from '@iconify/vue';
|
||||||
|
|
||||||
defineProps<{
|
defineProps<{
|
||||||
list: {
|
list: {
|
||||||
name: string;
|
name: string;
|
||||||
badge: string;
|
|
||||||
detail: { label: string; value: string }[];
|
detail: { label: string; value: string }[];
|
||||||
male?: boolean;
|
male?: boolean;
|
||||||
female?: boolean;
|
female?: boolean;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
|
badge?: string;
|
||||||
img?: string;
|
img?: string;
|
||||||
}[];
|
}[];
|
||||||
detailColumnCount?: number;
|
detailColumnCount?: number;
|
||||||
|
|
@ -35,7 +36,7 @@ const status = ref(false);
|
||||||
v-for="(v, i) in list"
|
v-for="(v, i) in list"
|
||||||
:key="i"
|
:key="i"
|
||||||
>
|
>
|
||||||
<div class="q-pa-md column items-center">
|
<div class="q-pa-sm column items-center">
|
||||||
<!-- kebab menu -->
|
<!-- kebab menu -->
|
||||||
<div class="full-width text-right">
|
<div class="full-width text-right">
|
||||||
<q-btn flat round padding="sm" icon="mdi-dots-vertical" size="sm">
|
<q-btn flat round padding="sm" icon="mdi-dots-vertical" size="sm">
|
||||||
|
|
@ -92,7 +93,7 @@ const status = ref(false);
|
||||||
class="avatar"
|
class="avatar"
|
||||||
style="border: 2px solid var(--border-color)"
|
style="border: 2px solid var(--border-color)"
|
||||||
>
|
>
|
||||||
<q-img :src="`/${v.img}`" width="100%" />
|
<q-img :src="v.img" width="100%" />
|
||||||
<div class="status-circle">
|
<div class="status-circle">
|
||||||
<q-icon
|
<q-icon
|
||||||
:name="`mdi-${v.disabled ? 'close' : 'check'}`"
|
:name="`mdi-${v.disabled ? 'close' : 'check'}`"
|
||||||
|
|
@ -105,7 +106,7 @@ const status = ref(false);
|
||||||
<!-- name symbol -->
|
<!-- name symbol -->
|
||||||
<span class="items-center row q-my-sm">
|
<span class="items-center row q-my-sm">
|
||||||
{{ v.name }}
|
{{ v.name }}
|
||||||
<iconify-icon
|
<Icon
|
||||||
class="q-pl-sm"
|
class="q-pl-sm"
|
||||||
:class="{
|
:class="{
|
||||||
'symbol-gender': v.male || v.female,
|
'symbol-gender': v.male || v.female,
|
||||||
|
|
@ -114,11 +115,12 @@ const status = ref(false);
|
||||||
'symbol-gender__disable': v.disabled,
|
'symbol-gender__disable': v.disabled,
|
||||||
}"
|
}"
|
||||||
:icon="`material-symbols:${v.male ? 'male' : 'female'}`"
|
:icon="`material-symbols:${v.male ? 'male' : 'female'}`"
|
||||||
width="20px"
|
width="24px"
|
||||||
/>
|
/>
|
||||||
<!-- <iconify-icon class="locale q-pl-sm" icon="circle-flags:th" /> -->
|
<!-- <Icon class="locale q-pl-sm" icon="circle-flags:th" width="24px" /> -->
|
||||||
</span>
|
</span>
|
||||||
<span
|
<span
|
||||||
|
v-if="v.badge"
|
||||||
class="badge q-px-sm"
|
class="badge q-px-sm"
|
||||||
:class="{
|
:class="{
|
||||||
'bg-gender': v.male || v.female,
|
'bg-gender': v.male || v.female,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue