@opentiny/tiny-robot-svgs 0.4.0-alpha.10 → 0.4.0-alpha.11
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/LICENSE +22 -0
- package/README.md +20 -6
- package/dist/index.d.ts +2 -0
- package/dist/tiny-robot-svgs.js +242 -223
- package/package.json +17 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 - present OpenTiny Authors.
|
|
4
|
+
Copyright (c) 2025 - present Huawei Cloud Computing Technologies Co., Ltd.
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
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/dist/index.d.ts
CHANGED
|
@@ -89,6 +89,8 @@ 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
|
+
|
|
92
94
|
export declare const IconRefresh: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
93
95
|
|
|
94
96
|
export declare const IconSearch: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|