Browse Source

chore(gui-v2): lint

pull/2930/head
Wing-Kam Wong 2 years ago
parent
commit
b45b6a1139
  1. 7
      packages/nc-gui-v2/components/cell/Email.vue
  2. 2
      packages/nc-gui-v2/components/cell/Url.vue

7
packages/nc-gui-v2/components/cell/Email.vue

@ -25,12 +25,7 @@ const validEmail = computed(() => isEmail(vModel.value))
<template> <template>
<input v-if="editEnabled" ref="root" v-model="vModel" class="outline-none prose-sm" /> <input v-if="editEnabled" ref="root" v-model="vModel" class="outline-none prose-sm" />
<a <a v-else-if="validEmail" class="prose-sm underline hover:opacity-75" :href="`mailto:${vModel}`" target="_blank">
v-else-if="validEmail"
class="prose-sm underline hover:opacity-75"
:href="`mailto:${vModel}`"
target="_blank"
>
{{ vModel }} {{ vModel }}
</a> </a>
<span v-else>{{ vModel }}</span> <span v-else>{{ vModel }}</span>

2
packages/nc-gui-v2/components/cell/Url.vue

@ -34,7 +34,7 @@ onMounted(() => {
</script> </script>
<template> <template>
<input class="outline-none" v-if="editEnabled" ref="root" v-model="vModel" /> <input v-if="editEnabled" ref="root" v-model="vModel" class="outline-none" />
<nuxt-link v-else-if="isValid" class="py-2 underline hover:opacity-75" :to="value" target="_blank">{{ value }}</nuxt-link> <nuxt-link v-else-if="isValid" class="py-2 underline hover:opacity-75" :to="value" target="_blank">{{ value }}</nuxt-link>
<span v-else>{{ value }}</span> <span v-else>{{ value }}</span>
</template> </template>

Loading…
Cancel
Save