We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1dd4ac5 + f17e07f commit ef8426cCopy full SHA for ef8426c
1 file changed
uno.config.ts
@@ -1,3 +1,4 @@
1
+// https://www.npmjs.com/package/@uni-helper/unocss-preset-uni
2
import { presetUni } from '@uni-helper/unocss-preset-uni'
3
import {
4
defineConfig,
@@ -9,7 +10,12 @@ import {
9
10
11
export default defineConfig({
12
presets: [
- presetUni(),
13
+ presetUni({
14
+ attributify: {
15
+ // prefix: 'fg-', // 如果加前缀,则需要在代码里面使用 `fg-` 前缀,如:<div fg-border="1px solid #000"></div>
16
+ prefixedOnly: true,
17
+ },
18
+ }),
19
presetIcons({
20
scale: 1.2,
21
warn: true,
0 commit comments