V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  wukongkong  ›  全部回复第 1 页 / 共 22 页
回复总数  427
1  2  3  4  5  6  7  8  9  10 ... 22  
2 天前
回复了 MegatronKing 创建的主题 推广 买断制上线,一天的营收超过一个月
调试支持下 js 吧,前端用写 py 门槛有点高的
16 天前
回复了 wukongkong 创建的主题 CSS unocss 如何修改默认 8 的倍数
已解决,默认 375 宽度,这里 presetRemRpx 需要改一下
17 天前
回复了 wukongkong 创建的主题 CSS unocss 如何修改默认 8 的倍数
现在的配置这样

```JavaScript
// uno.config.ts
import {
Preset,
defineConfig,
presetAttributify,
presetIcons,
transformerDirectives,
transformerVariantGroup,
} from 'unocss'

import {
presetApplet,
presetRemRpx,
transformerApplet,
transformerAttributify,
} from 'unocss-applet'

const isH5 = process.env?.UNI_PLATFORM === 'h5'
const isMp = process.env?.UNI_PLATFORM?.startsWith('mp') ?? false

const presets: Preset[] = []
if (!isMp) {
/**
* you can add `presetAttributify()` here to enable unocss attributify mode prompt
* although preset is not working for applet, but will generate useless css
* 为了不生产无用的 css,要过滤掉 applet
*/
// 支持 css class 属性化,eg: `<button bg="blue-400 hover:blue-500 dark:blue-500 dark:hover:blue-600" text="sm white">attributify Button</button>`
presets.push(presetAttributify())
}
if (!isH5) {
presets.push(presetRemRpx())
}
export default defineConfig({
presets: [
presetApplet({ enable: !isH5 }),
...presets,
// 支持图标,需要搭配图标库,eg: @iconify-json/carbon, 使用 `<button class="i-carbon-sun dark:i-carbon-moon" />`
presetIcons({
scale: 1.2,
warn: true,
extraProperties: {
display: 'inline-block',
'vertical-align': 'middle',
},
}),
],
theme: {},

/**
* 自定义快捷语句
* @see https://github.com/unocss/unocss#shortcuts
*/
shortcuts: [['center', 'flex justify-center items-center']],
transformers: [
// 启用 @apply 功能
transformerDirectives(),
// 启用 () 分组功能
// 支持 css class 组合,eg: `<div class="hover:(bg-gray-400 font-medium) font-(light mono)">测试 unocss</div>`
transformerVariantGroup(),
// Don't change the following order
transformerAttributify({
// 解决与第三方框架样式冲突问题
prefixedOnly: true,
prefix: 'fg',
}),
transformerApplet(),
],
rules: [
[
'p-safe',
{
padding:
'env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)',
},
],
['pt-safe', { 'padding-top': 'env(safe-area-inset-top)' }],
['pb-safe', { 'padding-bottom': 'env(safe-area-inset-bottom)' }],
],
})

/**
* 最终这一套组合下来会得到:
* mp 里面:mt-4 => margin-top: 32rpx
* h5 里面:mt-4 => margin-top: 1rem
*/
```
52 天前
回复了 SuperXX 创建的主题 macOS CleanShot X 免费领取
Coupon is no longer valid
52 天前
回复了 MostSimpleLife 创建的主题 程序员 有能搞 webview 变速加速的大佬吗
页面加载速度加快?
这个直接这样发真的没有问题吗
70 天前
回复了 Turkestan 创建的主题 Next.js Nextjs 14.1.0 项目 OOM 有人遇到过吗
和内存没啥关系,就是这些错误导致的,仔细看编译的内容
70 天前
回复了 Turkestan 创建的主题 Next.js Nextjs 14.1.0 项目 OOM 有人遇到过吗
@estk build 失败,然后本地都运行不起来。在配置文件,忽略 ts 还有 eslint 错误,然后正常编译出来。

eslint: {
ignoreDuringBuilds: true,
},
typescript: {
ignoreBuildErrors: true,
},
148 天前
回复了 CCCCCCCCCCCCCCCC 创建的主题 程序员 [致曾经仅仅是正向开发程序员的我]
有什么入门资料吗
支持~
178 天前
回复了 ggp1ot2 创建的主题 VPS 双十一想买台云服务器,哪里便宜?
@zzztongxue 在哪买
好像很有意思呢
直接 azure ,维护个服务端
201 天前
回复了 UltraXiaoZi 创建的主题 OpenAI chatgpt plus 邀请 3 个月免费使用
给个联系方式呢
204 天前
回复了 alphat 创建的主题 OpenAI 不是, ChatGPT 4.0 语音已经这么强大了吗
微软的几个 api 也不错,没有那么假
404 不开源了吗
id 填错了吧,日本东应该有的
好几年了, https://jscoder.com/
254 天前
回复了 kevinguoCN 创建的主题 Electron 紧急求助 electron 开发桌面应用
最近在用 electron 写一个视频剪辑客户端,比较复杂,前端人员搞还好,后端那必须熟悉 nodejs vue3 一大套东西。
2022-12-23 17:24:55 +08:00
回复了 Lucoie 创建的主题 问与答 美林布洛芬混悬液 35ml 49 快钱贵吗?
4900 是杀头价,49 给对方挣个 20 。这不是很好吗。
1  2  3  4  5  6  7  8  9  10 ... 22  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2760 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 36ms · UTC 12:46 · PVG 20:46 · LAX 05:46 · JFK 08:46
Developed with CodeLauncher
♥ Do have faith in what you're doing.