We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
想在使用unocss-preset-uni时使用更加简洁的写法实现效果,例如对一段文字使用 uni-h5:bg-red 能否简化为 my-bg-red ,其中将 'uni-h5:' 替换为my-或者其他任意自定义字段,其编译差异性由用户自行设置
在unocss中提供新的导出方法,用于自定义前缀类名和定义编译的平台
No response
The text was updated successfully, but these errors were encountered:
export default defineConfig({ theme: { platforms: { 'wechat': 'mp-weixin', // alias 到 mp-weixin 'my-app': 'my-app', // 自定义平台 } } })
<div class='uni-wechat:mx-auto'></div> <div class='uni-my-app:mx-auto'></div>
示例中有说明使用方法 但目前uni的前缀是必须的 欢迎pr
Sorry, something went wrong.
No branches or pull requests
对问题的清晰和简明的描述
想在使用unocss-preset-uni时使用更加简洁的写法实现效果,例如对一段文字使用 uni-h5:bg-red 能否简化为 my-bg-red ,其中将 'uni-h5:' 替换为my-或者其他任意自定义字段,其编译差异性由用户自行设置
推荐的解决方案
在unocss中提供新的导出方法,用于自定义前缀类名和定义编译的平台
替代方案
No response
额外上下文
No response
检查
The text was updated successfully, but these errors were encountered: