Skip to content

Commit

Permalink
feat: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xsf0105 committed Aug 20, 2024
1 parent bf096f0 commit 28366bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ npm run build

此时,构建产物 `lib/` 下的资源可以直接被任何框架的前端项目中使用。

### 4、像常规html标签一样去使用它
### 4、使用

##### (1)含有工程管理的前端项目(含有package.json/node_modules等文件)
```jsx
Expand All @@ -98,16 +98,16 @@ import "./lib/your-element"
<my-element count="count" />

// vue
<my-element :count="count" />
// <my-element :count="count" />

// react
<my-element count={count} />
// <my-element count={count} />

// svelte
<my-element {count} />
// <my-element {count} />

// angular
<my-element [count]="count" />
// <my-element [count]="count" />
```

##### (2)无工程管理的前端项目(不含有package.json/node_modules等文件,纯HTML+CSS+JS文件)
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quarkc",
"version": "2.1.7",
"version": "2.1.8",
"description": "A Web Components framework",
"type": "module",
"module": "./lib/index.js",
Expand Down

0 comments on commit 28366bb

Please sign in to comment.