个人案例
破冰客
个人博客
破冰客扫码体验
程序员Github
导入Github信息
程序员名片扫码体验
- miniprogram-automator 调用MiniProgram.close无法关闭IDE?
RC 1.06.2503281 版本 之前稳定版本是好的
星期六 00:14 - mask-image 在 skyline 中引用 svg 存在颜色边
[图片]有淡淡的颜色边 .i-mdi-home { display: inline-block; width: 1em; height: 1em; background-color: currentColor; -webkit-mask-image: var(--svg); mask-image: var(--svg); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='black' d='M10 20v-6h4v6h5v-8h3L12 3L2 12h3v8z'/%3E%3C/svg%3E") } .block { display: block } .flex { display: flex } .min-h-screen { min-height: 100vh } .justify-center { justify-content: center } .bg-\[\#43ffff\] { --tw-bg-opacity: 1; background-color: rgb(67 255 255 / var(--tw-bg-opacity, 1)) } .bg-slate-950 { --tw-bg-opacity: 1; background-color: rgb(2 6 23 / var(--tw-bg-opacity, 1)) } .p-8 { padding: 2rem } .text-2xl { font-size: 1.5rem; line-height: 2rem } .text-\[200px\] { font-size: 200px } .text-\[\#234fff\] { --tw-text-opacity: 1; color: rgb(35 79 255 / var(--tw-text-opacity, 1)) }
03-28 - 在进行 miniprogram-automator 进行页面抓取的时候,莫名奇妙出现了很多样式?
const page = await miniProgram.reLaunch(config.url ?? '/pages/index/index') const root = path.resolve(__dirname, '../demo', config.name) await deleteAsync([path.resolve(root, 'node_modules/.cache')]) await twExtract(root) const json = await fs.readFile(path.resolve(root, '.tw-patch/tw-class-list.json'), 'utf8') expect(json).toMatchSnapshot('json') if (page) { await testMethod(page, projectPath) const pageEl = await page.$('page') let wxml = await pageEl?.wxml()
01-09