@opentiny/tiny-robot-svgs 0.4.0 → 0.4.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 +20 -6
- package/package.json +17 -3
package/README.md
CHANGED
|
@@ -1,18 +1,32 @@
|
|
|
1
|
-
|
|
2
1
|
# tiny-robot-svgs
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
`@opentiny/tiny-robot-svgs` 是 TinyRobot 使用的 SVG 图标库。
|
|
4
|
+
它将每一个图标都封装为独立的 Vue 3 组件,方便在 TinyRobot 内外复用同一套图标资源。
|
|
5
|
+
|
|
6
|
+
## 安装
|
|
5
7
|
|
|
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
|
+
```
|
|
6
14
|
|
|
7
|
-
|
|
15
|
+
## 基本用法
|
|
8
16
|
|
|
9
17
|
```vue
|
|
10
|
-
<script setup>
|
|
18
|
+
<script setup lang="ts">
|
|
11
19
|
import { IconXxx } from '@opentiny/tiny-robot-svgs'
|
|
12
20
|
</script>
|
|
13
21
|
|
|
14
22
|
<template>
|
|
15
|
-
<IconXxx class="icon-xxx-style"
|
|
23
|
+
<IconXxx class="icon-xxx-style" />
|
|
16
24
|
</template>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
将 `IconXxx` 替换为你实际需要的图标组件名称(例如 `IconSend`、`IconStop` 等)。
|
|
28
|
+
|
|
29
|
+
## 适用场景
|
|
17
30
|
|
|
18
|
-
|
|
31
|
+
- 你在使用 **TinyRobot 组件库**,希望在应用其他部分复用同一套图标。
|
|
32
|
+
- 你需要一个 **独立的 SVG 图标集合** 来服务任意 Vue 3 项目,而不希望引入完整的 TinyRobot 组件库。
|
package/package.json
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/tiny-robot-svgs",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"homepage": "https://docs.opentiny.design/tiny-robot/",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/opentiny/tiny-robot.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/opentiny/tiny-robot/issues"
|
|
12
|
+
},
|
|
4
13
|
"publishConfig": {
|
|
5
14
|
"access": "public"
|
|
6
15
|
},
|
|
@@ -18,9 +27,14 @@
|
|
|
18
27
|
"convert": "tsx ./scripts/convert.ts -F"
|
|
19
28
|
},
|
|
20
29
|
"keywords": [
|
|
30
|
+
"vue",
|
|
31
|
+
"vue3",
|
|
21
32
|
"svg",
|
|
22
33
|
"icons",
|
|
23
|
-
"
|
|
34
|
+
"icon-library",
|
|
35
|
+
"icon-set",
|
|
36
|
+
"tiny-robot",
|
|
37
|
+
"opentiny"
|
|
24
38
|
],
|
|
25
39
|
"description": "SVG图标组件库",
|
|
26
40
|
"devDependencies": {
|
|
@@ -39,5 +53,5 @@
|
|
|
39
53
|
"peerDependencies": {
|
|
40
54
|
"vue": ">=3.0.0"
|
|
41
55
|
},
|
|
42
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "e7d831041cd49068110e17c5b5f410ed7fa2706c"
|
|
43
57
|
}
|