@opentiny/tiny-robot-svgs 0.4.0-alpha.14 → 0.4.0-alpha.17
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 +6 -20
- package/dist/index.d.ts +0 -2
- package/dist/tiny-robot-svgs.js +223 -242
- package/package.json +3 -17
- package/LICENSE +0 -22
package/README.md
CHANGED
|
@@ -1,32 +1,18 @@
|
|
|
1
|
-
# tiny-robot-svgs
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
它将每一个图标都封装为独立的 Vue 3 组件,方便在 TinyRobot 内外复用同一套图标资源。
|
|
2
|
+
# tiny-robot-svgs
|
|
5
3
|
|
|
6
|
-
|
|
4
|
+
管理 svg 资源,提供 SVG 图标组件
|
|
7
5
|
|
|
8
|
-
```bash
|
|
9
|
-
pnpm add @opentiny/tiny-robot-svgs
|
|
10
|
-
# 或
|
|
11
|
-
npm install @opentiny/tiny-robot-svgs
|
|
12
|
-
yarn add @opentiny/tiny-robot-svgs
|
|
13
|
-
```
|
|
14
6
|
|
|
15
|
-
|
|
7
|
+
### 使用
|
|
16
8
|
|
|
17
9
|
```vue
|
|
18
|
-
<script setup
|
|
10
|
+
<script setup>
|
|
19
11
|
import { IconXxx } from '@opentiny/tiny-robot-svgs'
|
|
20
12
|
</script>
|
|
21
13
|
|
|
22
14
|
<template>
|
|
23
|
-
<IconXxx class="icon-xxx-style"
|
|
15
|
+
<IconXxx class="icon-xxx-style"></IconXxx>
|
|
24
16
|
</template>
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
将 `IconXxx` 替换为你实际需要的图标组件名称(例如 `IconSend`、`IconStop` 等)。
|
|
28
|
-
|
|
29
|
-
## 适用场景
|
|
30
17
|
|
|
31
|
-
|
|
32
|
-
- 你需要一个 **独立的 SVG 图标集合** 来服务任意 Vue 3 项目,而不希望引入完整的 TinyRobot 组件库。
|
|
18
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -89,8 +89,6 @@ export declare const IconPlugin: DefineComponent< {}, {}, {}, {}, {}, Compone
|
|
|
89
89
|
|
|
90
90
|
export declare const IconPlus: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
91
91
|
|
|
92
|
-
export declare const IconRecordingWave: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
93
|
-
|
|
94
92
|
export declare const IconRefresh: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
95
93
|
|
|
96
94
|
export declare const IconSearch: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|