Skip to content

Commit

Permalink
Merge pull request #87 from hellof2e/xsf0105-patch-10
Browse files Browse the repository at this point in the history
Update README.md
  • Loading branch information
xsf0105 authored May 29, 2024
2 parents 9a9f5af + 1cb6658 commit dfe7ed1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,15 @@ import "your-element"

## 性能参考

一个略复杂的组件页面跑分截图
一个复杂的页面跑分截图

<img width="600" alt="image" src="https://github.com/hellof2e/quark-core/assets/14307551/8eda52c8-4ad7-4e92-ab09-602cf7771d96">

## 单元测试
我们使用了 [@open-wc/testing](https://www.npmjs.com/package/@open-wc/testing) 来进行单元测试
以下是我们示例组件的 <my-component /> 的单元测试
<details>
<summary>
我们使用了 @open-wc/testing 来进行单元测试。以下是我们示例组件的 <my-component /> 的单元测试。
</summary>

```js
import { expect, fixture } from "@open-wc/testing";
Expand Down Expand Up @@ -213,15 +215,18 @@ describe("<my-component />", async () => {
expect(el.count).to.equal(data.count + 1);
});
})

```

更多复杂示例参考我们 [quarkd](https://github.com/hellof2e/quark-design) 组件库仓库
</details>

## 文档

完整文档,请访问 [quarkc.hellobike.com](https://quarkc.hellobike.com)

## StackBlitz

https://stackblitz.com/edit/quarkc-vite?embed=1&file=src%2Findex.tsx
https://stackblitz.com/edit/quarkc-vite-k6t2ge?file=src%2Findex.tsx



0 comments on commit dfe7ed1

Please sign in to comment.