会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
卓能文
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
6
7
8
9
10
11
12
13
14
···
20
下一页
2024年8月22日
stencil ace markdown editor
摘要: src/components/ace-markdown/ace-markdown.tsx: import { Component, Prop, State, h } from "@stencil/core"; import ace from "ace-builds/src-min-noconflic
阅读全文
posted @ 2024-08-22 00:03 卓能文
阅读(28)
评论(0)
推荐(0)
2024年8月21日
stencil示例
摘要: stencil是一个web components开发框架。 pnpm create stencil my.counter.tsx: import { Component, h, Prop } from "@stencil/core"; @Component({ tag: "my-counter",
阅读全文
posted @ 2024-08-21 18:06 卓能文
阅读(26)
评论(0)
推荐(0)
lwc示例
摘要: lwc是一个web components开发工具。 pnpm create lwr 选择SPA。项目生成后,一些运行时包并不在package.json中,需手动安装。 package.json: { "name": "lwrdemo", "version": "0.0.1", "license":
阅读全文
posted @ 2024-08-21 17:18 卓能文
阅读(34)
评论(0)
推荐(0)
hybrids components
摘要: src/my.counter.ts: import { type Component, define, html } from "hybrids"; interface MyCounter { count: number; } function increaseCount(host: MyCount
阅读全文
posted @ 2024-08-21 11:05 卓能文
阅读(12)
评论(0)
推荐(0)
ace markdown editor 原生web components
摘要: src/index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
阅读全文
posted @ 2024-08-21 09:58 卓能文
阅读(47)
评论(0)
推荐(0)
2024年8月20日
lit ace markdown编辑器
摘要: 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 卓能文
阅读(30)
评论(0)
推荐(0)
astro中浏览器端使用lit编写的components
摘要: 在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 卓能文
阅读(37)
评论(0)
推荐(0)
2024年8月18日
lit parcel模板
摘要: mkdir myproject/src -p cd myproject pnpm i lit typescript tsconfig.json: { "compilerOptions": { "target": "ES2020", "experimentalDecorators": true, "u
阅读全文
posted @ 2024-08-18 11:07 卓能文
阅读(23)
评论(0)
推荐(0)
lit tailwindcss vite模板
摘要: 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 卓能文
阅读(98)
评论(0)
推荐(0)
lit动态修改样式
摘要: 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 卓能文
阅读(54)
评论(0)
推荐(0)
上一页
1
···
6
7
8
9
10
11
12
13
14
···
20
下一页
公告