@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 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>
@@ -0,0 +1,8 @@
1
+ import { App } from 'vue';
2
+
3
+ export * from './packages/components/components';
4
+ export { default as create } from './packages/components/create';
5
+ declare const _default: {
6
+ install(app: App): void;
7
+ };
8
+ export default _default;