ant-design-x-vue 1.0.1 → 1.0.2
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.en.md +109 -0
- package/README.md +25 -8
- package/dist/index.mjs +28977 -4586
- package/dist/index.umd.js +195 -19
- package/dist/typings/bubble/hooks/useListData.d.ts +1 -1
- package/dist/typings/bubble/interface.d.ts +1 -1
- package/dist/typings/theme/patch-antd.d.ts +3 -3
- package/dist/typings/x-provider/context.d.ts +2 -2
- package/package.json +3 -5
package/README.en.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# Ant Design X Vue
|
|
2
|
+
|
|
3
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
4
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
5
|
+
[![bundle][bundle-src]][bundle-href]
|
|
6
|
+
[![Github Actions][github-actions-src]][github-actions-href]
|
|
7
|
+
![Netlify Build][netlify-build-src]
|
|
8
|
+
[![License][license-src]][license-href]
|
|
9
|
+
|
|
10
|
+
Ant Design X For Vue. 🔥 [中文](./README.md)
|
|
11
|
+
|
|
12
|
+
This is the implementation of [Ant Design X](https://github.com/ant-design/x) for Vue.
|
|
13
|
+
|
|
14
|
+
## ✨ Features
|
|
15
|
+
|
|
16
|
+
- 🌈 Built on the RICH interaction paradigm, delivering an exceptional AI interaction experience.
|
|
17
|
+
- 🧩 Covers most AI dialogue scenarios, empowering you to quickly build personalized AI interaction interfaces.
|
|
18
|
+
- ⚡ Easily connect with inference services compatible with OpenAI standards.
|
|
19
|
+
- 🔄 Provides powerful tools for managing data flows, enhancing development efficiency.
|
|
20
|
+
- 📦 Offers multiple templates for quickly starting LUI application development.
|
|
21
|
+
- 🛡 Developed with TypeScript, ensuring robust type coverage to improve the development experience and reliability.
|
|
22
|
+
- 🎨 Supports fine-grained style adjustments to meet diverse use cases and personalization needs.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
First, install packages `ant-design-vue` and `ant-design-x-vue` to your project, you can run following commands in your project directory:
|
|
28
|
+
|
|
29
|
+
> pnpm add ant-design-vue ant-design-x-vue
|
|
30
|
+
|
|
31
|
+
Second, import components from `ant-design-vue` library:
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
<script setup lang="ts">
|
|
35
|
+
import { Bubble, XProvider } from 'ant-design-x-vue';
|
|
36
|
+
</script>
|
|
37
|
+
|
|
38
|
+
<template>
|
|
39
|
+
<Bubble content="Hello AI" />
|
|
40
|
+
</template>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Development
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# install dependencies
|
|
47
|
+
$ pnpm install
|
|
48
|
+
|
|
49
|
+
# develop library by docs demo
|
|
50
|
+
$ pnpm docs:dev
|
|
51
|
+
|
|
52
|
+
# build library source code
|
|
53
|
+
$ pnpm run build
|
|
54
|
+
|
|
55
|
+
# build docs code
|
|
56
|
+
$ pnpm run docs:build
|
|
57
|
+
|
|
58
|
+
# Locally preview the production build.
|
|
59
|
+
$ pnpm run docs:preview
|
|
60
|
+
|
|
61
|
+
# Lint
|
|
62
|
+
$ pnpm lint
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Links
|
|
66
|
+
|
|
67
|
+
* [Vue](https://vuejs.org/)
|
|
68
|
+
|
|
69
|
+
* [Ant Design Vue](https://www.antdv.com/)
|
|
70
|
+
|
|
71
|
+
* [Ant Design X Of React](https://x.ant.design/)
|
|
72
|
+
|
|
73
|
+
## Contributing
|
|
74
|
+
|
|
75
|
+
Would you like to change the world with us?
|
|
76
|
+
|
|
77
|
+
Please reference the [Roadmap](https://github.com/wzc520pyfm/ant-design-x-vue/issues/1) and pick up any one you like.
|
|
78
|
+
|
|
79
|
+
## Contributors
|
|
80
|
+
|
|
81
|
+
<a href="https://github.com/wzc520pyfm/ant-design-x-vue/graphs/contributors">
|
|
82
|
+
<img src="https://contrib.rocks/image?repo=wzc520pyfm/ant-design-x-vue" />
|
|
83
|
+
</a>
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## LICENSE
|
|
87
|
+
|
|
88
|
+
MIT
|
|
89
|
+
|
|
90
|
+
<!-- Badges -->
|
|
91
|
+
|
|
92
|
+
[npm-version-src]: https://img.shields.io/npm/v/ant-design-x-vue.svg?style=flat
|
|
93
|
+
[npm-version-href]: https://npmjs.com/package/ant-design-x-vue
|
|
94
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/ant-design-x-vue.svg?style=flat
|
|
95
|
+
[npm-downloads-href]: https://npmjs.com/package/ant-design-x-vue
|
|
96
|
+
[bundle-src]: https://img.shields.io/bundlephobia/minzip/ant-design-x-vue?style=flat
|
|
97
|
+
[bundle-href]: https://bundlephobia.com/result?p=ant-design-x-vue
|
|
98
|
+
[github-actions-src]: https://img.shields.io/github/actions/workflow/status/wzc520pyfm/ant-design-x-vue/ci.yml?branch=main&style=flat
|
|
99
|
+
[github-actions-href]: https://github.com/wzc520pyfm/ant-design-x-vue/actions?query=workflow%3Aci
|
|
100
|
+
[netlify-build-src]: https://img.shields.io/netlify/cb006e4e-afce-4c3e-9652-6f8a065b5b6e
|
|
101
|
+
[license-src]: https://img.shields.io/github/license/wzc520pyfm/ant-design-x-vue?style=flat
|
|
102
|
+
[license-href]: https://github.com/wzc520pyfm/ant-design-x-vue/blob/main/LICENSE
|
|
103
|
+
|
|
104
|
+
## Connect Us
|
|
105
|
+
### Wechat Public Account
|
|
106
|
+

|
|
107
|
+
|
|
108
|
+
### QQ Group
|
|
109
|
+

|
package/README.md
CHANGED
|
@@ -7,17 +7,28 @@
|
|
|
7
7
|
![Netlify Build][netlify-build-src]
|
|
8
8
|
[![License][license-src]][license-href]
|
|
9
9
|
|
|
10
|
-
Ant Design X For Vue. 🔥
|
|
10
|
+
Ant Design X For Vue. 🔥 [English](./README.en.md)
|
|
11
11
|
|
|
12
12
|
这里是[Ant Design X](https://github.com/ant-design/x)的Vue实现。
|
|
13
13
|
|
|
14
|
+
## ✨ 特性
|
|
15
|
+
|
|
16
|
+
- 🌈 基于 RICH 交互范式,提供卓越的 AI 交互体验
|
|
17
|
+
- 🧩 覆盖绝大部分 AI 对话场景,助力快速构建个性化 AI 交互页面
|
|
18
|
+
- ⚡ 轻松对接符合 OpenAI 标准的模型推理服务
|
|
19
|
+
- 🔄 提供好用的数据流管理功能,让开发更高效
|
|
20
|
+
- 📦 提供多种模板,快速启动 LUI 应用开发
|
|
21
|
+
- 🛡 采用 TypeScript 开发,提供完整类型支持,提升开发体验与可靠性
|
|
22
|
+
- 🎨 支持细粒度的样式调整,满足各种场景的个性化需求
|
|
23
|
+
|
|
24
|
+
|
|
14
25
|
## Usage
|
|
15
26
|
|
|
16
|
-
|
|
27
|
+
安装两个依赖 `ant-design-vue` and `ant-design-x-vue` 到你的项目中, 你可以参照如下命令行:
|
|
17
28
|
|
|
18
29
|
> pnpm add ant-design-vue ant-design-x-vue
|
|
19
30
|
|
|
20
|
-
|
|
31
|
+
然后在你的项目里导入 `ant-design-vue`:
|
|
21
32
|
|
|
22
33
|
```ts
|
|
23
34
|
<script setup lang="ts">
|
|
@@ -29,7 +40,7 @@ import { Bubble, XProvider } from 'ant-design-x-vue';
|
|
|
29
40
|
</template>
|
|
30
41
|
```
|
|
31
42
|
|
|
32
|
-
##
|
|
43
|
+
## 开发
|
|
33
44
|
|
|
34
45
|
```bash
|
|
35
46
|
# install dependencies
|
|
@@ -51,7 +62,7 @@ $ pnpm run docs:preview
|
|
|
51
62
|
$ pnpm lint
|
|
52
63
|
```
|
|
53
64
|
|
|
54
|
-
##
|
|
65
|
+
## 链接
|
|
55
66
|
|
|
56
67
|
* [Vue](https://vuejs.org/)
|
|
57
68
|
|
|
@@ -62,17 +73,23 @@ $ pnpm lint
|
|
|
62
73
|
## Contributing
|
|
63
74
|
|
|
64
75
|
您的贡献至关重要!
|
|
65
|
-
Would you like to change the world with us?
|
|
66
76
|
|
|
67
77
|
您可以参考[Roadmap](https://github.com/wzc520pyfm/ant-design-x-vue/issues/1),从中挑选您感兴趣的部分。
|
|
68
|
-
Please reference the [Roadmap](https://github.com/wzc520pyfm/ant-design-x-vue/issues/1) and pick up any one you like.
|
|
69
78
|
|
|
70
|
-
##
|
|
79
|
+
## 贡献者
|
|
71
80
|
|
|
72
81
|
<a href="https://github.com/wzc520pyfm/ant-design-x-vue/graphs/contributors">
|
|
73
82
|
<img src="https://contrib.rocks/image?repo=wzc520pyfm/ant-design-x-vue" />
|
|
74
83
|
</a>
|
|
75
84
|
|
|
85
|
+
## 交流
|
|
86
|
+
|
|
87
|
+
### 微信公众号
|
|
88
|
+

|
|
89
|
+
|
|
90
|
+
### QQ 群
|
|
91
|
+

|
|
92
|
+
|
|
76
93
|
## LICENSE
|
|
77
94
|
|
|
78
95
|
MIT
|