@creatorsn/vfluent3 0.3.40 → 0.3.45
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 +21 -0
- package/README.md +129 -104
- package/README_zh.md +129 -0
- package/dist/style.css +1 -1
- package/dist/types/packages/details-list/index.d.ts +3 -0
- package/dist/types/packages/details-list/source/index.vue.d.ts +3 -0
- package/dist/vfluent3.js +343 -334
- package/dist/vfluent3.umd.cjs +9 -9
- package/package.json +1 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Creator SN
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,104 +1,129 @@
|
|
|
1
|
-
<
|
|
2
|
-
<img src="https://raw.githubusercontent.com/aleversn/VFluent/master/examples/assert/logo/VFluent.png"/>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/aleversn/VFluent/master/examples/assert/logo/VFluent.png" width="360" alt="VFluent3 Logo" />
|
|
3
|
+
|
|
4
|
+
[](https://vuejs.org/)
|
|
5
|
+
[](https://vitejs.dev/)
|
|
6
|
+
[](https://www.npmjs.com/package/@creatorsn/vfluent3)
|
|
7
|
+
[](https://www.npmjs.com/package/@creatorsn/vfluent3)
|
|
8
|
+
[](./LICENSE)
|
|
9
|
+
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<h4 align="center">
|
|
13
|
+
<i>Fluent Design components for Vue 3, built for crisp Windows-like web experiences.</i>
|
|
14
|
+
</h4>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://creator-sn.github.io/VFluent3/">Documentation</a>
|
|
18
|
+
·
|
|
19
|
+
<a href="https://www.npmjs.com/package/@creatorsn/vfluent3">npm</a>
|
|
20
|
+
·
|
|
21
|
+
<a href="https://github.com/Creator-SN/VFluent3/issues">Issues</a>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
English | [简体中文](./README_zh.md)
|
|
25
|
+
|
|
26
|
+
## VFluent3
|
|
27
|
+
|
|
28
|
+
VFluent3 is a Vue 3 component library inspired by Microsoft's [Fluent Design System](https://developer.microsoft.com/en-us/fluentui#/). It brings Fluent-style components, icons, shadows, Acrylic-like surfaces, and Reveal interactions into modern Vue applications.
|
|
29
|
+
|
|
30
|
+
The project is powered by Vite and focuses on making desktop-inspired web interfaces feel clean, responsive, and delightful.
|
|
31
|
+
|
|
32
|
+
## Installation
|
|
33
|
+
|
|
34
|
+
Install the package with Yarn:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
yarn add @creatorsn/vfluent3
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
npm and pnpm work in a similar way.
|
|
41
|
+
|
|
42
|
+
## Quick Start
|
|
43
|
+
|
|
44
|
+
Register VFluent3 in your Vue entry file, usually `main.js`:
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
import { createApp } from 'vue';
|
|
48
|
+
import VueFluent from "@creatorsn/vfluent3";
|
|
49
|
+
import '@creatorsn/vfluent3/style.css';
|
|
50
|
+
import App from './App.vue';
|
|
51
|
+
|
|
52
|
+
const app = createApp(App);
|
|
53
|
+
app.use(VueFluent);
|
|
54
|
+
app.mount('#app');
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Then use components in your Vue app:
|
|
58
|
+
|
|
59
|
+
```vue
|
|
60
|
+
<template>
|
|
61
|
+
<fv-button>Create something fluent</fv-button>
|
|
62
|
+
</template>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Documentation
|
|
66
|
+
|
|
67
|
+
Read the full documentation and component examples:
|
|
68
|
+
|
|
69
|
+
[https://creator-sn.github.io/VFluent3/](https://creator-sn.github.io/VFluent3/)
|
|
70
|
+
|
|
71
|
+
## Development
|
|
72
|
+
|
|
73
|
+
Clone the repository and install dependencies:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
yarn
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Start the VitePress documentation site:
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
yarn docs:dev
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
Create a new component scaffold:
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
yarn bin:new
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
Build the library:
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
yarn build
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## Contributing
|
|
98
|
+
|
|
99
|
+
VFluent3 is still growing, and contributions are welcome.
|
|
100
|
+
|
|
101
|
+
If you have ideas, feedback, bug reports, or design suggestions, please open an [issue](https://github.com/Creator-SN/VFluent3/issues). If you want to contribute a fix or improvement, please submit a pull request.
|
|
102
|
+
|
|
103
|
+
For commit messages, this project supports Commitizen:
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
yarn cz
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Fluent Icons
|
|
110
|
+
|
|
111
|
+
VFluent3 uses Microsoft Fabric UI and Fluent icon resources in several places, including icons and shadows.
|
|
112
|
+
|
|
113
|
+
Basic icon usage:
|
|
114
|
+
|
|
115
|
+
```vue
|
|
116
|
+
<i class="ms-Icon ms-Icon--AADLogo"></i>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
When a VFluent3 component supports an icon prop, you can usually pass the icon name directly.
|
|
120
|
+
|
|
121
|
+
Windows 11 Fluent Icons reference:
|
|
122
|
+
|
|
123
|
+
[https://learn.microsoft.com/en-us/windows/apps/design/style/segoe-fluent-icons-font](https://learn.microsoft.com/en-us/windows/apps/design/style/segoe-fluent-icons-font)
|
|
124
|
+
|
|
125
|
+
## License
|
|
126
|
+
|
|
127
|
+
VFluent3 is released under the [MIT License](./LICENSE).
|
|
128
|
+
|
|
129
|
+
Copyright (c) 2026 Creator SN
|
package/README_zh.md
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/aleversn/VFluent/master/examples/assert/logo/VFluent.png" width="360" alt="VFluent3 Logo" />
|
|
3
|
+
|
|
4
|
+
[](https://vuejs.org/)
|
|
5
|
+
[](https://vitejs.dev/)
|
|
6
|
+
[](https://www.npmjs.com/package/@creatorsn/vfluent3)
|
|
7
|
+
[](https://www.npmjs.com/package/@creatorsn/vfluent3)
|
|
8
|
+
[](./LICENSE)
|
|
9
|
+
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
<h4 align="center">
|
|
13
|
+
<i>为 Vue 3 打造的 Fluent Design 组件库,让 Web 界面更接近清爽、细腻的 Windows 体验。</i>
|
|
14
|
+
</h4>
|
|
15
|
+
|
|
16
|
+
<p align="center">
|
|
17
|
+
<a href="https://creator-sn.github.io/VFluent3/">文档</a>
|
|
18
|
+
·
|
|
19
|
+
<a href="https://www.npmjs.com/package/@creatorsn/vfluent3">npm</a>
|
|
20
|
+
·
|
|
21
|
+
<a href="https://github.com/Creator-SN/VFluent3/issues">Issues</a>
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
[English](./README.md) | 简体中文
|
|
25
|
+
|
|
26
|
+
## VFluent3
|
|
27
|
+
|
|
28
|
+
VFluent3 是一个受 Microsoft [Fluent Design System](https://developer.microsoft.com/en-us/fluentui#/) 启发的 Vue 3 组件库。它为现代 Vue 应用提供 Fluent 风格组件、图标、阴影、类 Acrylic 表面以及 Reveal 交互效果。
|
|
29
|
+
|
|
30
|
+
项目基于 Vite 构建,目标是让桌面风格的 Web 界面更清晰、更响应式,也更有质感。
|
|
31
|
+
|
|
32
|
+
## 安装
|
|
33
|
+
|
|
34
|
+
使用 Yarn 安装:
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
yarn add @creatorsn/vfluent3
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
npm 和 pnpm 的操作类似。
|
|
41
|
+
|
|
42
|
+
## 快速开始
|
|
43
|
+
|
|
44
|
+
在 Vue 入口文件中注册 VFluent3,通常是 `main.js`:
|
|
45
|
+
|
|
46
|
+
```js
|
|
47
|
+
import { createApp } from 'vue';
|
|
48
|
+
import VueFluent from "@creatorsn/vfluent3";
|
|
49
|
+
import '@creatorsn/vfluent3/style.css';
|
|
50
|
+
import App from './App.vue';
|
|
51
|
+
|
|
52
|
+
const app = createApp(App);
|
|
53
|
+
app.use(VueFluent);
|
|
54
|
+
app.mount('#app');
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
然后就可以在 Vue 中使用组件:
|
|
58
|
+
|
|
59
|
+
```vue
|
|
60
|
+
<template>
|
|
61
|
+
<fv-button>创建一个 Fluent 界面</fv-button>
|
|
62
|
+
</template>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## 文档
|
|
66
|
+
|
|
67
|
+
完整文档与组件示例:
|
|
68
|
+
|
|
69
|
+
[https://creator-sn.github.io/VFluent3/](https://creator-sn.github.io/VFluent3/)
|
|
70
|
+
|
|
71
|
+
## 本地开发
|
|
72
|
+
|
|
73
|
+
克隆仓库后安装依赖:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
yarn
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
启动 VitePress 文档站点:
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
yarn docs:dev
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
创建新的组件模板:
|
|
86
|
+
|
|
87
|
+
```sh
|
|
88
|
+
yarn bin:new
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
构建组件库:
|
|
92
|
+
|
|
93
|
+
```sh
|
|
94
|
+
yarn build
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## 参与贡献
|
|
98
|
+
|
|
99
|
+
VFluent3 仍在持续完善中,欢迎一起让它变得更好。
|
|
100
|
+
|
|
101
|
+
如果你有想法、建议、问题反馈或设计意见,可以提交 [issue](https://github.com/Creator-SN/VFluent3/issues)。如果你愿意贡献修复或改进,请提交 pull request。
|
|
102
|
+
|
|
103
|
+
项目支持使用 Commitizen 生成提交信息:
|
|
104
|
+
|
|
105
|
+
```sh
|
|
106
|
+
yarn cz
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Fluent 图标
|
|
110
|
+
|
|
111
|
+
VFluent3 在多个场景中使用了 Microsoft Fabric UI 与 Fluent 图标资源,包括图标与阴影等视觉能力。
|
|
112
|
+
|
|
113
|
+
基础图标用法:
|
|
114
|
+
|
|
115
|
+
```vue
|
|
116
|
+
<i class="ms-Icon ms-Icon--AADLogo"></i>
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
当 VFluent3 组件的某个 prop 支持图标时,通常可以直接传入图标名称。
|
|
120
|
+
|
|
121
|
+
Windows 11 Fluent Icons 参考:
|
|
122
|
+
|
|
123
|
+
[https://learn.microsoft.com/en-us/windows/apps/design/style/segoe-fluent-icons-font](https://learn.microsoft.com/en-us/windows/apps/design/style/segoe-fluent-icons-font)
|
|
124
|
+
|
|
125
|
+
## License
|
|
126
|
+
|
|
127
|
+
VFluent3 基于 [MIT License](./LICENSE) 开源。
|
|
128
|
+
|
|
129
|
+
Copyright (c) 2026 Creator SN
|