@rhino-design/vue 0.2.6 → 0.2.8

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.
Files changed (36) hide show
  1. package/README.md +95 -18
  2. package/README.zh-CN.md +115 -0
  3. package/dist/arco.less +95 -76
  4. package/dist/components/XButton.vue.js +2 -2
  5. package/dist/components/XConfigProvider.vue.js +1 -1
  6. package/dist/components/XMenuOverflowWrap.vue.js +66 -59
  7. package/dist/components/XScrollbar.vue.js +1 -1
  8. package/dist/components/XSubMenuPop.vue.js +1 -1
  9. package/dist/components/XTable.vue.d.ts +1 -0
  10. package/dist/components/XTable.vue.js +3 -3
  11. package/dist/components/XTable.vue2.js +774 -614
  12. package/dist/components/XToast.vue.d.ts +25 -0
  13. package/dist/components/XToast.vue.js +7 -0
  14. package/dist/components/XToast.vue2.js +27 -0
  15. package/dist/components/XTour.vue.d.ts +2 -0
  16. package/dist/components/XTour.vue.js +69 -61
  17. package/dist/components/XTree.vue.d.ts +2 -0
  18. package/dist/components/XTree.vue.js +1 -1
  19. package/dist/components/XTree.vue2.js +124 -121
  20. package/dist/components/XTreeNode.vue.d.ts +1 -0
  21. package/dist/components/XTreeNode.vue.js +2 -2
  22. package/dist/components/XTreeNode.vue2.js +21 -20
  23. package/dist/components/XTreeSelect.vue.js +4 -4
  24. package/dist/components/XTreeSelect.vue2.js +314 -291
  25. package/dist/components/XWatermark.vue.js +4 -4
  26. package/dist/components/index.d.ts +1 -0
  27. package/dist/components/index.js +55 -53
  28. package/dist/index.cjs +9 -9
  29. package/dist/index.css +95 -76
  30. package/dist/index.js +62 -60
  31. package/dist/index.less +95 -76
  32. package/dist/index.scss +14853 -0
  33. package/dist/style.css +95 -76
  34. package/dist/style.less +95 -76
  35. package/dist/style.scss +14853 -0
  36. package/package.json +14 -6
package/README.md CHANGED
@@ -1,16 +1,48 @@
1
- # Rhino Design Vue
1
+ [简体中文](./README.zh-CN.md)
2
2
 
3
- > ⚠️ **新版组件已趋于正常使用,文档:http://doc.xitask.com !**
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
- 全面开箱即用的高质量组件,可以覆盖绝大部分的业务场景。所有组件都是用 TypeScript 编写的,所以天然的类型友好。
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
+ ## Features
24
+
25
+ - 80+ Vue 3 components and examples covering common business scenarios.
26
+ - TypeScript-first component APIs and service APIs.
27
+ - 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`.
28
+ - Built-in `light`, `dark`, and `auto` theme modes.
29
+ - Service-style APIs for `Message`, `Notification`, `Modal`, and `Drawer`.
30
+ - Optional `@rhino-design/icons` package for expanded icon support and on-demand loading.
31
+ - Full CSS output with optional Less and SCSS style entrypoints.
32
+
33
+ ## Installation
8
34
 
9
35
  ```bash
10
- npm i @rhino-design/vue
36
+ npm install @rhino-design/vue
11
37
  ```
12
38
 
13
- ## 使用
39
+ Optional icons package:
40
+
41
+ ```bash
42
+ npm install @rhino-design/icons
43
+ ```
44
+
45
+ ## Usage
14
46
 
15
47
  ```ts
16
48
  import { createApp } from 'vue';
@@ -18,22 +50,67 @@ import App from './App.vue';
18
50
  import RhinoDesignVue from '@rhino-design/vue';
19
51
  import '@rhino-design/vue/dist/style.css';
20
52
 
21
- createApp(App).use(RhinoDesignVue).mount('#app');
53
+ createApp(App)
54
+ .use(RhinoDesignVue)
55
+ .mount('#app');
22
56
  ```
23
- ## 当前新增组件
24
57
 
25
- - 真正重写的基础层、主题层、图标层
26
- - table表自动合并优化,input语音识别文字输入,图片裁剪,图片预览等
27
- - 首批核心组件:`Cropper`、`Richtext`、`ChatInput`、`QrCode`等。
58
+ You can also configure the locale during installation:
59
+
60
+ ```ts
61
+ import { createApp } from 'vue';
62
+ import App from './App.vue';
63
+ import RhinoDesignVue from '@rhino-design/vue';
64
+ import '@rhino-design/vue/dist/style.css';
28
65
 
29
- ## 当前重构范围
66
+ createApp(App)
67
+ .use(RhinoDesignVue, {
68
+ locale: 'en-US',
69
+ })
70
+ .mount('#app');
71
+ ```
30
72
 
31
- - 真正重写的基础层、主题层、图标层
32
- - 首批优化组件:`Button`、`Table`、`ConfigProvider`、`Form`、`FormItem`、`Icon`、`Input`、`Modal`、`Segmented`、`Space`、`Tag`
73
+ ## Theme
33
74
 
34
- - 文档示例站和 npm 构建配置
75
+ ```ts
76
+ import { setTheme } from '@rhino-design/vue';
35
77
 
36
- ```bash
37
- npm run dev
38
- npm i @rhino-design/vue
78
+ setTheme('dark');
39
79
  ```
80
+
81
+ Supported values are `light`, `dark`, and `auto`.
82
+
83
+ ## Icons
84
+
85
+ If you want the full icon package, install and register it separately:
86
+
87
+ ```ts
88
+ import { createApp } from 'vue';
89
+ import App from './App.vue';
90
+ import RhinoDesignVue from '@rhino-design/vue';
91
+ import { RhinoDesignIcons } from '@rhino-design/icons';
92
+
93
+ createApp(App)
94
+ .use(RhinoDesignVue)
95
+ .use(RhinoDesignIcons)
96
+ .mount('#app');
97
+ ```
98
+
99
+ ## Style Entrypoints
100
+
101
+ ```ts
102
+ import '@rhino-design/vue/dist/style.css';
103
+ // or
104
+ import '@rhino-design/vue/style.css';
105
+ import '@rhino-design/vue/style.less';
106
+ import '@rhino-design/vue/style.scss';
107
+ ```
108
+
109
+ ## Highlights
110
+
111
+ Rhino Design Vue covers foundational and business-facing components such as `Button`, `Table`, `Form`, `Input`, `Modal`, `Segmented`, `Tag`, `Cropper`, `RichTextEditor`, `ChatInput`, and `QRCode`.
112
+
113
+
114
+ ## License
115
+
116
+ [MIT](./LICENSE)
@@ -0,0 +1,115 @@
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
+
25
+ - 提供 `80+` 个 Vue 3 组件与示例,覆盖大部分常见业务场景。
26
+ - 基于 TypeScript 编写,组件 API 与服务式 API 都具备良好的类型支持。
27
+ - 内置 `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` 多语言能力。
28
+ - 内置 `light`、`dark`、`auto` 三种主题模式。
29
+ - 提供 `Message`、`Notification`、`Modal`、`Drawer` 等服务式调用能力。
30
+ - 提供可选的 `@rhino-design/icons` 独立图标包,支持更完整的图标能力和按需加载。
31
+ - 提供完整 CSS 产物,同时支持 Less 与 SCSS 样式入口。
32
+
33
+ ## 安装
34
+
35
+ ```bash
36
+ npm install @rhino-design/vue
37
+ ```
38
+
39
+ 如需完整图标能力,可额外安装:
40
+
41
+ ```bash
42
+ npm install @rhino-design/icons
43
+ ```
44
+
45
+ ## 使用
46
+
47
+ ```ts
48
+ import { createApp } from 'vue';
49
+ import App from './App.vue';
50
+ import RhinoDesignVue from '@rhino-design/vue';
51
+ import '@rhino-design/vue/dist/style.css';
52
+
53
+ createApp(App)
54
+ .use(RhinoDesignVue)
55
+ .mount('#app');
56
+ ```
57
+
58
+ 也可以在安装时指定语言:
59
+
60
+ ```ts
61
+ import { createApp } from 'vue';
62
+ import App from './App.vue';
63
+ import RhinoDesignVue from '@rhino-design/vue';
64
+ import '@rhino-design/vue/dist/style.css';
65
+
66
+ createApp(App)
67
+ .use(RhinoDesignVue, {
68
+ locale: 'zh-CN',
69
+ })
70
+ .mount('#app');
71
+ ```
72
+
73
+ ## 主题
74
+
75
+ ```ts
76
+ import { setTheme } from '@rhino-design/vue';
77
+
78
+ setTheme('dark');
79
+ ```
80
+
81
+ 支持的主题值为 `light`、`dark`、`auto`。
82
+
83
+ ## 图标包
84
+
85
+ 如果你需要更完整的图标集合,可以单独安装并注册:
86
+
87
+ ```ts
88
+ import { createApp } from 'vue';
89
+ import App from './App.vue';
90
+ import RhinoDesignVue from '@rhino-design/vue';
91
+ import { RhinoDesignIcons } from '@rhino-design/icons';
92
+
93
+ createApp(App)
94
+ .use(RhinoDesignVue)
95
+ .use(RhinoDesignIcons)
96
+ .mount('#app');
97
+ ```
98
+
99
+ ## 样式入口
100
+
101
+ ```ts
102
+ import '@rhino-design/vue/dist/style.css';
103
+ // 或
104
+ import '@rhino-design/vue/style.css';
105
+ import '@rhino-design/vue/style.less';
106
+ import '@rhino-design/vue/style.scss';
107
+ ```
108
+
109
+ ## 组件亮点
110
+
111
+ Rhino Design Vue 当前已经覆盖 `Button`、`Table`、`Form`、`Input`、`Modal`、`Segmented`、`Tag` 等基础与业务组件,并提供 `Cropper`、`RichTextEditor`、`ChatInput`、`QRCode` 等更贴近业务场景的能力。
112
+
113
+ ## License
114
+
115
+ [MIT](./LICENSE)