随笔分类 -  lit

摘要:src/components/ace-markdown.ts: import { LitElement, css, html } from "lit"; import { customElement, property, query } from "lit/decorators.js"; // im 阅读全文
posted @ 2024-08-20 10:53 卓能文 阅读(9) 评论(0) 推荐(0) 编辑
摘要:在vite + lit中调试好的代码my.counter.ts: import { LitElement, css, html } from "lit"; import { customElement, property } from "lit/decorators.js"; import { st 阅读全文
posted @ 2024-08-20 07:40 卓能文 阅读(22) 评论(0) 推荐(0) 编辑
摘要:mkdir myproject/src -p cd myproject pnpm i lit typescript tsconfig.json: { "compilerOptions": { "target": "ES2020", "experimentalDecorators": true, "u 阅读全文
posted @ 2024-08-18 11:07 卓能文 阅读(9) 评论(0) 推荐(0) 编辑
摘要:pnpm create vite@latest my-project -- --template lit cd my-project pnpm install -D tailwindcss postcss autoprefixer sass-embedded npx tailwindcss init 阅读全文
posted @ 2024-08-18 09:40 卓能文 阅读(50) 评论(0) 推荐(0) 编辑
摘要:src/my-counter.ts: import { LitElement, css, html } from "lit"; import { customElement, property } from "lit/decorators.js"; import { styleMap } from 阅读全文
posted @ 2024-08-18 07:40 卓能文 阅读(22) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示