fx-platform-ui 0.0.1 → 0.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.md +104 -0
- package/lib/favicon.png +0 -0
- package/lib/fx-platform-ui.mjs +10232 -0
- package/lib/fx-platform-ui.umd.js +71 -0
- package/lib/packages/component.d.ts +7 -0
- package/lib/packages/components/card/index.d.ts +2 -0
- package/lib/packages/components/card/src/index.vue.d.ts +2 -0
- package/lib/packages/index.d.ts +11 -0
- package/{src/vite-env.d.ts → lib/src/env.d.ts} +1 -0
- package/{dist → lib}/style.css +1 -1
- package/package.json +96 -157
- package/packages/.DS_Store +0 -0
- package/packages/component.ts +8 -0
- package/packages/components/card/index.tsx +11 -0
- package/{src/components/Card → packages/components/card/src}/index.vue +7 -3
- package/packages/index.ts +20 -0
- package/packages/theme/color.variables.scss +25 -0
- package/packages/utils/className.ts +28 -0
- package/packages/utils/util.ts +16 -0
- package/README.md +0 -16
- package/dist/platform-ui.es.js +0 -13975
- package/dist/platform-ui.umd.js +0 -71
- package/dist/vite.svg +0 -1
- package/src/App.vue +0 -31
- package/src/assets/vue.svg +0 -1
- package/src/components/Card/index.ts +0 -10
- package/src/components/HelloWorld.vue +0 -38
- package/src/components/index.ts +0 -0
- package/src/index.ts +0 -17
- package/src/main.ts +0 -5
- package/src/style.css +0 -81
- package/types/env.d.ts +0 -21
- package/types/global.d.ts +0 -81
- package/types/index.d.ts +0 -27
- package/types/modules.d.ts +0 -21
- package/types/shims/shims-app.d.ts +0 -67
- package/types/shims/shims-tsx.d.ts +0 -18
- package/types/shims/shims-vue.d.ts +0 -21
- package/types/utils.d.ts +0 -77
- package/types/vue-router.d.ts +0 -45
package/Readme.md
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# @wei_design/web-vue
|
|
2
|
+
|
|
3
|
+
A Vue.js 3 UI library
|
|
4
|
+
|
|
5
|
+
[](http://commitizen.github.io/cz-cli)
|
|
6
|
+
[](https://www.npmjs.org/package/@wei_design/web-vue)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
- 🔭 [Vite](https://vitejs.dev)
|
|
11
|
+
- 💪 [Vue3](https://vuejs.org)
|
|
12
|
+
- 🔥 TypeScript
|
|
13
|
+
|
|
14
|
+
[快速开始](https://wei-design.github.io/web-vue/)
|
|
15
|
+
|
|
16
|
+
## 安装
|
|
17
|
+
|
|
18
|
+
node:>=16.0.0
|
|
19
|
+
|
|
20
|
+
### npm
|
|
21
|
+
|
|
22
|
+
这里推荐`pnpm`进行安装
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
pnpm install @wei_design/web-vue --save
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### cdn
|
|
29
|
+
|
|
30
|
+
#### unpkg
|
|
31
|
+
|
|
32
|
+
[资源浏览](https://unpkg.com/@wei_design/web-vue/)
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<link
|
|
36
|
+
rel="stylesheet"
|
|
37
|
+
href="//unpkg.com/@wei_design/web-vue/lib/style.css"
|
|
38
|
+
/>
|
|
39
|
+
<script src="//unpkg.com/@wei_design/web-vue"></script>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
#### jsdelivr
|
|
43
|
+
|
|
44
|
+
[资源浏览](https://cdn.jsdelivr.net/npm/@wei_design/web-vue/)
|
|
45
|
+
|
|
46
|
+
```html
|
|
47
|
+
<link
|
|
48
|
+
rel="stylesheet"
|
|
49
|
+
href="//cdn.jsdelivr.net/npm/@wei_design/web-vue/lib/style.css"
|
|
50
|
+
/>
|
|
51
|
+
<script src="//cdn.jsdelivr.net/npm/@wei_design/web-vue"></script>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## 使用
|
|
55
|
+
|
|
56
|
+
### 全局引入
|
|
57
|
+
|
|
58
|
+
在`main.js`中
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
import { createApp } from 'vue';
|
|
62
|
+
import App from './App.vue';
|
|
63
|
+
// 完整引入组件库
|
|
64
|
+
import WeDesign from '@wei_design/web-vue';
|
|
65
|
+
|
|
66
|
+
const app = createApp(App);
|
|
67
|
+
// 全局安装
|
|
68
|
+
app.use(WeDesign).mount('#app');
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
组件当中
|
|
72
|
+
|
|
73
|
+
```vue
|
|
74
|
+
<WeButton :loading="true">按钮组件</WeButton>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 按需引入
|
|
78
|
+
|
|
79
|
+
`main.js`中
|
|
80
|
+
|
|
81
|
+
```js
|
|
82
|
+
import { createApp } from 'vue';
|
|
83
|
+
import App from './App.vue';
|
|
84
|
+
// 按需引入
|
|
85
|
+
import { Button } from '@wei_design/web-vue';
|
|
86
|
+
|
|
87
|
+
const app = createApp(App);
|
|
88
|
+
|
|
89
|
+
app.use(Button).mount('#app');
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
组件当中
|
|
93
|
+
|
|
94
|
+
```vue
|
|
95
|
+
<WeButton :loading="true">按钮组件</WeButton>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
---
|
|
99
|
+
|
|
100
|
+
## 版本记录
|
|
101
|
+
|
|
102
|
+
[版本记录](CHANGELOG.md)
|
|
103
|
+
|
|
104
|
+
有问题欢迎issue...
|
package/lib/favicon.png
ADDED
|
Binary file
|