会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
卓能文
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
···
20
下一页
2024年10月16日
go htmx stream
摘要: 原始地址:https://github.com/alarbada/htmx-stream window.htmx.defineExtension("stream", { onEvent: (name, evt) => { if (name "htmx:beforeRequest") { let el
阅读全文
posted @ 2024-10-16 18:38 卓能文
阅读(25)
评论(0)
推荐(0)
2024年9月14日
vite tailwindcss@next omi
摘要: pnpm i @tailwindcss/vite@next omi tailwindcss@next vite package.json: { "type": "module", "dependencies": { "@tailwindcss/vite": "4.0.0-alpha.24", "om
阅读全文
posted @ 2024-09-14 19:28 卓能文
阅读(18)
评论(0)
推荐(0)
vite css import
摘要: import css from "./index.scss?inline";
阅读全文
posted @ 2024-09-14 15:38 卓能文
阅读(15)
评论(0)
推荐(0)
2024年9月4日
omi get set property
摘要: @tag("my-element") class MyElement extends Component { get value() { return this.editor ? this.editor.getValue() : ""; } set value(val: string) { this
阅读全文
posted @ 2024-09-04 20:51 卓能文
阅读(19)
评论(0)
推荐(0)
2024年9月3日
omi ace markdown editor
摘要: omi是腾讯开源的一款web components开发框架。 AceMarkdown.tsx: import { Component, createRef, h, signal, tag } from "omi"; import * as ace from "ace-builds"; import
阅读全文
posted @ 2024-09-03 00:52 卓能文
阅读(21)
评论(0)
推荐(0)
2024年8月31日
js WritableStream
摘要: index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <tit
阅读全文
posted @ 2024-08-31 10:15 卓能文
阅读(30)
评论(0)
推荐(0)
2024年8月27日
astro react ace markdown editor and previewer
摘要: src/components/AceMarkdown.tsx: import { useRef, useEffect, useState } from "react"; import { $paper, type Paper } from "../store/paper"; import ace f
阅读全文
posted @ 2024-08-27 07:09 卓能文
阅读(40)
评论(0)
推荐(0)
2024年8月26日
astro react component prop type
摘要: src/components/Counter.tsx: import { useState } from "react"; interface CounterProps { count: number; } export const Counter = ({ count }: CounterProp
阅读全文
posted @ 2024-08-26 17:24 卓能文
阅读(25)
评论(0)
推荐(0)
2024年8月22日
tanstack react-form antd示例
摘要: import { StrictMode } from "react"; import { useForm } from "@tanstack/react-form"; import { zodValidator } from "@tanstack/zod-form-adapter"; import
阅读全文
posted @ 2024-08-22 20:09 卓能文
阅读(96)
评论(0)
推荐(0)
网页自动跟随浏览器颜色模式light dark
摘要: <html> <head> <meta name="color-scheme" content="light dark"> </head> <body> <h1>hello world</h1> <span>hello world</span> <input type="text" placehol
阅读全文
posted @ 2024-08-22 00:26 卓能文
阅读(24)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
···
20
下一页
公告