@rhino-design/vue 0.2.7 → 0.2.9
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 +100 -18
- package/README.zh-CN.md +120 -0
- package/dist/arco.less +95 -76
- package/dist/components/XButton.vue.js +2 -2
- package/dist/components/XConfigProvider.vue.js +1 -1
- package/dist/components/XMenuOverflowWrap.vue.js +66 -59
- package/dist/components/XScrollbar.vue.js +1 -1
- package/dist/components/XSubMenuPop.vue.js +1 -1
- package/dist/components/XTable.vue.d.ts +1 -0
- package/dist/components/XTable.vue.js +3 -3
- package/dist/components/XTable.vue2.js +774 -614
- package/dist/components/XToast.vue.d.ts +25 -0
- package/dist/components/XToast.vue.js +7 -0
- package/dist/components/XToast.vue2.js +27 -0
- package/dist/components/XTour.vue.d.ts +2 -0
- package/dist/components/XTour.vue.js +69 -61
- package/dist/components/XTree.vue.d.ts +2 -0
- package/dist/components/XTree.vue.js +1 -1
- package/dist/components/XTree.vue2.js +124 -121
- package/dist/components/XTreeNode.vue.d.ts +1 -0
- package/dist/components/XTreeNode.vue.js +2 -2
- package/dist/components/XTreeNode.vue2.js +21 -20
- package/dist/components/XTreeSelect.vue.js +4 -4
- package/dist/components/XTreeSelect.vue2.js +314 -291
- package/dist/components/XWatermark.vue.js +4 -4
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +55 -53
- package/dist/index.cjs +9 -9
- package/dist/index.css +95 -76
- package/dist/index.js +62 -60
- package/dist/index.less +95 -76
- package/dist/index.scss +14853 -0
- package/dist/style.css +95 -76
- package/dist/style.less +95 -76
- package/dist/style.scss +14853 -0
- package/package.json +9 -43
package/README.md
CHANGED
|
@@ -1,16 +1,53 @@
|
|
|
1
|
-
|
|
1
|
+
[简体中文](./README.zh-CN.md)
|
|
2
2
|
|
|
3
|
-
>
|
|
3
|
+
<div align="center">
|
|
4
|
+
<h1>Rhino Design Vue</h1>
|
|
5
|
+
<p>A business-oriented Vue 3 component library for modern applications.</p>
|
|
6
|
+
<p>
|
|
7
|
+
<a href="http://doc.xitask.com">Documentation</a>
|
|
8
|
+
·
|
|
9
|
+
<a href="https://github.com/Yuppiezero/Rhino-Design">GitHub</a>
|
|
10
|
+
·
|
|
11
|
+
<a href="https://github.com/Yuppiezero/Rhino-Design/issues">Issues</a>
|
|
12
|
+
</p>
|
|
13
|
+
<p>
|
|
14
|
+
<img src="https://img.shields.io/badge/Vue-3.4%2B-42b883" alt="Vue 3.4+" />
|
|
15
|
+
<img src="https://img.shields.io/badge/TypeScript-friendly-3178c6" alt="TypeScript friendly" />
|
|
16
|
+
<img src="https://img.shields.io/badge/Theme-light%20%7C%20dark%20%7C%20auto-111827" alt="Theme support" />
|
|
17
|
+
<img src="https://img.shields.io/badge/License-MIT-0f766e" alt="MIT License" />
|
|
18
|
+
</p>
|
|
19
|
+
</div>
|
|
4
20
|
|
|
5
|
-
|
|
21
|
+
Rhino Design Vue is a high-quality Vue 3 component library focused on practical business scenarios. It ships with TypeScript-friendly APIs, built-in theme support, internationalization helpers, and an optional standalone icons package.
|
|
6
22
|
|
|
7
|
-
##
|
|
23
|
+
## Homepage
|
|
24
|
+
```bash
|
|
25
|
+
http://doc.xitask.com
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Features
|
|
29
|
+
|
|
30
|
+
- 80+ Vue 3 components and examples covering common business scenarios.
|
|
31
|
+
- TypeScript-first component APIs and service APIs.
|
|
32
|
+
- Built-in locale support for `zh-CN`, `en-US`, `ja-JP`, `zh-TW`, `pt-PT`, `es-ES`, `id-ID`, `fr-FR`, `da-DK`, `de-DE`, `ko-KR`, `it-IT`, `ms-MY`, `nl-NL`, `th-TH`, `vi-VN`, `km-KH`, `ar-EG`, and `ru-RU`.
|
|
33
|
+
- Built-in `light`, `dark`, and `auto` theme modes.
|
|
34
|
+
- Service-style APIs for `Message`, `Notification`, `Modal`, and `Drawer`.
|
|
35
|
+
- Optional `@rhino-design/icons` package for expanded icon support and on-demand loading.
|
|
36
|
+
- Full CSS output with optional Less and SCSS style entrypoints.
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
8
39
|
|
|
9
40
|
```bash
|
|
10
|
-
npm
|
|
41
|
+
npm install @rhino-design/vue
|
|
11
42
|
```
|
|
12
43
|
|
|
13
|
-
|
|
44
|
+
Optional icons package:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install @rhino-design/icons
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
14
51
|
|
|
15
52
|
```ts
|
|
16
53
|
import { createApp } from 'vue';
|
|
@@ -18,22 +55,67 @@ import App from './App.vue';
|
|
|
18
55
|
import RhinoDesignVue from '@rhino-design/vue';
|
|
19
56
|
import '@rhino-design/vue/dist/style.css';
|
|
20
57
|
|
|
21
|
-
createApp(App)
|
|
58
|
+
createApp(App)
|
|
59
|
+
.use(RhinoDesignVue)
|
|
60
|
+
.mount('#app');
|
|
22
61
|
```
|
|
23
|
-
## 当前新增组件
|
|
24
62
|
|
|
25
|
-
|
|
26
|
-
- table表自动合并优化,input语音识别文字输入,图片裁剪,图片预览等
|
|
27
|
-
- 首批核心组件:`Cropper`、`Richtext`、`ChatInput`、`QrCode`等。
|
|
63
|
+
You can also configure the locale during installation:
|
|
28
64
|
|
|
29
|
-
|
|
65
|
+
```ts
|
|
66
|
+
import { createApp } from 'vue';
|
|
67
|
+
import App from './App.vue';
|
|
68
|
+
import RhinoDesignVue from '@rhino-design/vue';
|
|
69
|
+
import '@rhino-design/vue/dist/style.css';
|
|
30
70
|
|
|
31
|
-
|
|
32
|
-
|
|
71
|
+
createApp(App)
|
|
72
|
+
.use(RhinoDesignVue, {
|
|
73
|
+
locale: 'en-US',
|
|
74
|
+
})
|
|
75
|
+
.mount('#app');
|
|
76
|
+
```
|
|
33
77
|
|
|
34
|
-
|
|
78
|
+
## Theme
|
|
35
79
|
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
|
|
80
|
+
```ts
|
|
81
|
+
import { setTheme } from '@rhino-design/vue';
|
|
82
|
+
|
|
83
|
+
setTheme('dark');
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Supported values are `light`, `dark`, and `auto`.
|
|
87
|
+
|
|
88
|
+
## Icons
|
|
89
|
+
|
|
90
|
+
If you want the full icon package, install and register it separately:
|
|
91
|
+
|
|
92
|
+
```ts
|
|
93
|
+
import { createApp } from 'vue';
|
|
94
|
+
import App from './App.vue';
|
|
95
|
+
import RhinoDesignVue from '@rhino-design/vue';
|
|
96
|
+
import { RhinoDesignIcons } from '@rhino-design/icons';
|
|
97
|
+
|
|
98
|
+
createApp(App)
|
|
99
|
+
.use(RhinoDesignVue)
|
|
100
|
+
.use(RhinoDesignIcons)
|
|
101
|
+
.mount('#app');
|
|
39
102
|
```
|
|
103
|
+
|
|
104
|
+
## Style Entrypoints
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
import '@rhino-design/vue/dist/style.css';
|
|
108
|
+
// or
|
|
109
|
+
import '@rhino-design/vue/style.css';
|
|
110
|
+
import '@rhino-design/vue/style.less';
|
|
111
|
+
import '@rhino-design/vue/style.scss';
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Highlights
|
|
115
|
+
|
|
116
|
+
Rhino Design Vue covers foundational and business-facing components such as `Button`, `Table`, `Form`, `Input`, `Modal`, `Segmented`, `Tag`, `Cropper`, `RichTextEditor`, `ChatInput`, and `QRCode`.
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## License
|
|
120
|
+
|
|
121
|
+
[MIT](./LICENSE)
|
package/README.zh-CN.md
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
[English](./README.md)
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
<h1>Rhino Design Vue</h1>
|
|
5
|
+
<p>面向现代业务场景的 Vue 3 组件库。</p>
|
|
6
|
+
<p>
|
|
7
|
+
<a href="http://doc.xitask.com">文档站</a>
|
|
8
|
+
·
|
|
9
|
+
<a href="https://github.com/Yuppiezero/Rhino-Design">GitHub</a>
|
|
10
|
+
·
|
|
11
|
+
<a href="https://github.com/Yuppiezero/Rhino-Design/issues">问题反馈</a>
|
|
12
|
+
</p>
|
|
13
|
+
<p>
|
|
14
|
+
<img src="https://img.shields.io/badge/Vue-3.4%2B-42b883" alt="Vue 3.4+" />
|
|
15
|
+
<img src="https://img.shields.io/badge/TypeScript-friendly-3178c6" alt="TypeScript friendly" />
|
|
16
|
+
<img src="https://img.shields.io/badge/Theme-light%20%7C%20dark%20%7C%20auto-111827" alt="Theme support" />
|
|
17
|
+
<img src="https://img.shields.io/badge/License-MIT-0f766e" alt="MIT License" />
|
|
18
|
+
</p>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
Rhino Design Vue 是一个面向业务开发的高质量 Vue 3 组件库,强调开箱即用、类型友好和实际落地能力。它内置主题能力、国际化支持,并提供可选安装的独立图标包。
|
|
22
|
+
|
|
23
|
+
## 文档站点:
|
|
24
|
+
```bash
|
|
25
|
+
http://doc.xitask.com
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 特性
|
|
29
|
+
|
|
30
|
+
- 提供 `80+` 个 Vue 3 组件与示例,覆盖大部分常见业务场景。
|
|
31
|
+
- 基于 TypeScript 编写,组件 API 与服务式 API 都具备良好的类型支持。
|
|
32
|
+
- 内置 `zh-CN`、`en-US`、`ja-JP`、`zh-TW`、`pt-PT`、`es-ES`、`id-ID`、`fr-FR`、`da-DK`、`de-DE`、`ko-KR`、`it-IT`、`ms-MY`、`nl-NL`、`th-TH`、`vi-VN`、`km-KH`、`ar-EG`、`ru-RU` 多语言能力。
|
|
33
|
+
- 内置 `light`、`dark`、`auto` 三种主题模式。
|
|
34
|
+
- 提供 `Message`、`Notification`、`Modal`、`Drawer` 等服务式调用能力。
|
|
35
|
+
- 提供可选的 `@rhino-design/icons` 独立图标包,支持更完整的图标能力和按需加载。
|
|
36
|
+
- 提供完整 CSS 产物,同时支持 Less 与 SCSS 样式入口。
|
|
37
|
+
|
|
38
|
+
## 安装
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npm install @rhino-design/vue
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
如需完整图标能力,可额外安装:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
npm install @rhino-design/icons
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## 使用
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
import { createApp } from 'vue';
|
|
54
|
+
import App from './App.vue';
|
|
55
|
+
import RhinoDesignVue from '@rhino-design/vue';
|
|
56
|
+
import '@rhino-design/vue/dist/style.css';
|
|
57
|
+
|
|
58
|
+
createApp(App)
|
|
59
|
+
.use(RhinoDesignVue)
|
|
60
|
+
.mount('#app');
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
也可以在安装时指定语言:
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
import { createApp } from 'vue';
|
|
67
|
+
import App from './App.vue';
|
|
68
|
+
import RhinoDesignVue from '@rhino-design/vue';
|
|
69
|
+
import '@rhino-design/vue/dist/style.css';
|
|
70
|
+
|
|
71
|
+
createApp(App)
|
|
72
|
+
.use(RhinoDesignVue, {
|
|
73
|
+
locale: 'zh-CN',
|
|
74
|
+
})
|
|
75
|
+
.mount('#app');
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## 主题
|
|
79
|
+
|
|
80
|
+
```ts
|
|
81
|
+
import { setTheme } from '@rhino-design/vue';
|
|
82
|
+
|
|
83
|
+
setTheme('dark');
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
支持的主题值为 `light`、`dark`、`auto`。
|
|
87
|
+
|
|
88
|
+
## 图标包
|
|
89
|
+
|
|
90
|
+
如果你需要更完整的图标集合,可以单独安装并注册:
|
|
91
|
+
|
|
92
|
+
```ts
|
|
93
|
+
import { createApp } from 'vue';
|
|
94
|
+
import App from './App.vue';
|
|
95
|
+
import RhinoDesignVue from '@rhino-design/vue';
|
|
96
|
+
import { RhinoDesignIcons } from '@rhino-design/icons';
|
|
97
|
+
|
|
98
|
+
createApp(App)
|
|
99
|
+
.use(RhinoDesignVue)
|
|
100
|
+
.use(RhinoDesignIcons)
|
|
101
|
+
.mount('#app');
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## 样式入口
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
import '@rhino-design/vue/dist/style.css';
|
|
108
|
+
// 或
|
|
109
|
+
import '@rhino-design/vue/style.css';
|
|
110
|
+
import '@rhino-design/vue/style.less';
|
|
111
|
+
import '@rhino-design/vue/style.scss';
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## 组件亮点
|
|
115
|
+
|
|
116
|
+
Rhino Design Vue 当前已经覆盖 `Button`、`Table`、`Form`、`Input`、`Modal`、`Segmented`、`Tag` 等基础与业务组件,并提供 `Cropper`、`RichTextEditor`、`ChatInput`、`QRCode` 等更贴近业务场景的能力。
|
|
117
|
+
|
|
118
|
+
## License
|
|
119
|
+
|
|
120
|
+
[MIT](./LICENSE)
|