mirror of
https://github.com/directus/directus.git
synced 2026-02-16 15:15:19 -05:00
Add v-md directive (#6835)
* Use stricter Vue eslint setting * Implement v-md directive Replaces old uses of v-html + md util * Fix typo
This commit is contained in:
@@ -31,14 +31,13 @@
|
||||
|
||||
<v-divider />
|
||||
|
||||
<div class="page-description" v-html="md(t('page_help_users_item'))" />
|
||||
<div v-md="t('page_help_users_item')" class="page-description" />
|
||||
</sidebar-detail>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { defineComponent, ref, watch } from 'vue';
|
||||
import { md } from '@/utils/md';
|
||||
import localizedFormat from '@/utils/localized-format';
|
||||
|
||||
export default defineComponent({
|
||||
@@ -69,7 +68,7 @@ export default defineComponent({
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
return { t, md, lastAccessDate };
|
||||
return { t, lastAccessDate };
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user