@szjy/ai-coms 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +40 -0
- package/dist/images/ai-panel-bg.png +0 -0
- package/dist/images/ai-round.png +0 -0
- package/dist/images/ai-send.png +0 -0
- package/dist/images/ai-sqrt.png +0 -0
- package/dist/images/ai-stop.png +0 -0
- package/dist/images/bars-loading.svg +12 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.mjs +1145 -0
- package/dist/index.umd.js +2 -0
- package/dist/packages/api/ai.d.ts +24 -0
- package/dist/packages/common/utils/ids.d.ts +1 -0
- package/dist/packages/common/utils/loader.d.ts +1 -0
- package/dist/packages/common/utils/url.d.ts +9 -0
- package/dist/packages/components/AiChat/index.d.ts +3 -0
- package/dist/packages/components/AiChat/src/components/plugins/markdown.d.ts +3 -0
- package/dist/packages/components/AiChat/src/index.vue.d.ts +41 -0
- package/dist/packages/components/AiChat/src/transform/index.d.ts +66 -0
- package/dist/packages/components/AiChat/src/writer.d.ts +1 -0
- package/dist/packages/components/components.d.ts +1 -0
- package/dist/packages/components/contants.d.ts +2 -0
- package/dist/packages/components/create.d.ts +14 -0
- package/dist/packages/components/installer.d.ts +5 -0
- package/dist/scripts/ai/highlight.11.11.1.min.css +9 -0
- package/dist/scripts/ai/highlight.11.11.1.min.js +1244 -0
- package/dist/scripts/ai/markdown-it.min.js +2 -0
- package/dist/style.css +9 -0
- package/dist/vite.svg +1 -0
- package/package.json +38 -0
package/README.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# @szjy/ai-coms
|
|
2
|
+
|
|
3
|
+
基于 vite + vue3 + typescript 的组件
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## 使用
|
|
7
|
+
|
|
8
|
+
先安装:
|
|
9
|
+
```shell
|
|
10
|
+
npm i @szjy/ai-coms
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
本地开发:
|
|
15
|
+
```shell
|
|
16
|
+
npm run dev
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
然后在项目中按需引入:
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { SZHello, create } from '@szjy/ai-coms';
|
|
23
|
+
import '@szjy/ai-coms/dist/style.css';
|
|
24
|
+
|
|
25
|
+
const szkits = create({
|
|
26
|
+
components: [
|
|
27
|
+
SZHello
|
|
28
|
+
]
|
|
29
|
+
// 这里可以传入一些配置项
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
app.use(szkits).mount('#app')
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
这样就可以在项目中使用组件了:
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<sz-hello></sz-hello>
|
|
40
|
+
```
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" width="50" height="50" style="shape-rendering: auto; display: block; background: transparent;" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
2
|
+
<g>
|
|
3
|
+
<rect fill="#e15b64" height="10" width="7" y="45" x="16.5">
|
|
4
|
+
<animate begin="-0.4195804195804196" values="1;0.2;1" keySplines="0.5 0 0.5 1;0.5 0 0.5 1" keyTimes="0;0.5;1" calcMode="spline" repeatCount="indefinite" dur="0.6993006993006994s" attributeName="opacity"></animate>
|
|
5
|
+
</rect><rect fill="#f47e60" height="10" width="7" y="45" x="36.5">
|
|
6
|
+
<animate begin="-0.27972027972027974" values="1;0.2;1" keySplines="0.5 0 0.5 1;0.5 0 0.5 1" keyTimes="0;0.5;1" calcMode="spline" repeatCount="indefinite" dur="0.6993006993006994s" attributeName="opacity"></animate>
|
|
7
|
+
</rect><rect fill="#f8b26a" height="10" width="7" y="45" x="56.5">
|
|
8
|
+
<animate begin="-0.13986013986013987" values="1;0.2;1" keySplines="0.5 0 0.5 1;0.5 0 0.5 1" keyTimes="0;0.5;1" calcMode="spline" repeatCount="indefinite" dur="0.6993006993006994s" attributeName="opacity"></animate>
|
|
9
|
+
</rect><rect fill="#abbd81" height="10" width="7" y="45" x="76.5">
|
|
10
|
+
<animate begin="-0.6993006993006994" values="1;0.2;1" keySplines="0.5 0 0.5 1;0.5 0 0.5 1" keyTimes="0;0.5;1" calcMode="spline" repeatCount="indefinite" dur="0.6993006993006994s" attributeName="opacity"></animate>
|
|
11
|
+
</rect><g></g></g>
|
|
12
|
+
</svg>
|