how to register class var in uno #3761
Answered
by
schelmo
manyuemeiquqi
asked this question in
Q&A
-
<script setup lang="ts">
import { ref } from "vue";
defineProps<{ msg: string }>();
const count = ref(0);
let classStr = "h-fu";
classStr += "ll";
</script>
<template>
<div :class="classStr">121</div>
</template>
<style scoped>
.read-the-docs {
color: #888;
}
</style>
If i write this in file, h-full doesn't work in vite, and how to resolve this problem? |
Beta Was this translation helpful? Give feedback.
Answered by
schelmo
Apr 30, 2024
Replies: 1 comment
-
in the docs there is the explanation why your example is not working:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
manyuemeiquqi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in the docs there is the explanation why your example is not working:
https://unocss.dev/guide/extracting#safelist