fx-platform-ui 0.0.3 → 0.0.4
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/CHANGELOG.md +0 -28
- package/Readme.md +7 -38
- package/lib/fx-platform-ui.mjs +29865 -26684
- package/lib/fx-platform-ui.umd.js +30 -30
- package/lib/packages/components/table/index.d.ts +2 -0
- package/lib/packages/components/table/src/components/index.d.ts +2 -0
- package/lib/packages/components/table/src/components/tool-bar.vue.d.ts +2 -0
- package/lib/packages/components/table/src/hook/index.d.ts +2 -0
- package/lib/packages/components/table/src/hook/useTableMethods.d.ts +21 -0
- package/lib/packages/components/table/src/plat-table-emits.d.ts +2 -0
- package/lib/packages/components/table/src/type/column.d.ts +24 -0
- package/lib/packages/components/table/src/type/index.d.ts +3 -0
- package/lib/packages/components/table/src/type/table.d.ts +8 -0
- package/lib/packages/components/table/src/type/tableAction.d.ts +12 -0
- package/lib/style.css +1 -1
- package/package.json +8 -5
- package/packages/component.ts +3 -3
- package/packages/components/form/src/components/form-action.vue +7 -3
- package/packages/components/form/src/hook/useFormEvents.ts +0 -2
- package/packages/components/form/src/hook/useFormMethods.ts +0 -3
- package/packages/components/form/src/plat-form-item.vue +34 -37
- package/packages/components/table/index.ts +10 -0
- package/packages/components/table/src/components/index.ts +2 -0
- package/packages/components/table/src/components/table-action.vue +25 -0
- package/packages/components/table/src/components/tool-bar.vue +7 -0
- package/packages/components/table/src/hook/index.ts +2 -0
- package/packages/components/table/src/hook/useTableMethods.tsx +128 -0
- package/packages/components/table/src/hook/useTableState.tsx +92 -0
- package/packages/components/table/src/index.vue +93 -0
- package/packages/components/table/src/plat-table-emits.ts +3 -0
- package/packages/components/table/src/plat-table-props.ts +68 -0
- package/packages/components/table/src/type/column.ts +29 -0
- package/packages/components/table/src/type/index.ts +3 -0
- package/packages/components/table/src/type/table.ts +13 -0
- package/packages/components/table/src/type/tableAction.ts +13 -0
- package/lib/packages/components/card/index.d.ts +0 -2
- package/lib/packages/components/card/src/index.vue.d.ts +0 -2
- package/packages/components/card/index.tsx +0 -11
- package/packages/components/card/src/index.vue +0 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
|
-
|
|
5
|
-
### 1.0.0 (2022-08-27)
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
### Features
|
|
9
|
-
|
|
10
|
-
* init By Vue 3 + TypeScript + Vite ([9487a8b](https://github.com/wei-design/web-vue/commit/9487a8be27d396f6ea96b0ff3b57473325d7f54b))
|
|
11
|
-
* 优化eslint配置 ([a24e5ab](https://github.com/wei-design/web-vue/commit/a24e5ab7bba764a886f4793e9231082f9fffeb6a))
|
|
12
|
-
* 优化文档库 ([a33923e](https://github.com/wei-design/web-vue/commit/a33923ea11ba64454097896bb2679e218cc439b7))
|
|
13
|
-
* 升级vite、vue和vitepress,优化一些配置 ([223a9ab](https://github.com/wei-design/web-vue/commit/223a9ab979cf19d6b13e8c36ad55aebf48bc39da))
|
|
14
|
-
* 完成文档代码预览 ([fbb96da](https://github.com/wei-design/web-vue/commit/fbb96da11e6195a0cbcbfb6f4c34555ecda5617e))
|
|
15
|
-
* 添加github ci ([44d63e2](https://github.com/wei-design/web-vue/commit/44d63e2cb714669945a3d27f99f3148915c904c4))
|
|
16
|
-
* 添加husky ([d1150f4](https://github.com/wei-design/web-vue/commit/d1150f47e84dc4ddc0fda5d16bc1ab837b551b05))
|
|
17
|
-
* 添加packageManager ([17eba6f](https://github.com/wei-design/web-vue/commit/17eba6f1d8e9b9dc537996e49ea1e1ed3b251520))
|
|
18
|
-
* 添加文档库docs ([1b5b525](https://github.com/wei-design/web-vue/commit/1b5b5257059857da9bc0d10cc03ac45b4a46f5f6))
|
|
19
|
-
* 添加第一个组件Button ([b504afc](https://github.com/wei-design/web-vue/commit/b504afc40e119f0c336f27792775236d2f708762))
|
|
20
|
-
* 添加配置,区分lib和doc ([8bece1a](https://github.com/wei-design/web-vue/commit/8bece1a69ed1c685632460212bae4a26eab3fd8f))
|
|
21
|
-
* 添加黑色主题切换css变量 ([1b4b198](https://github.com/wei-design/web-vue/commit/1b4b1986dc35664ea000cfdb6c34da8582866b3b))
|
|
22
|
-
* 组件库优化 ([62bec97](https://github.com/wei-design/web-vue/commit/62bec97692fa1bfd961f2e9bc064e10c3ab74b8e))
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Bug Fixes
|
|
26
|
-
|
|
27
|
-
* update ci ([278fb38](https://github.com/wei-design/web-vue/commit/278fb3860f460bbbdb045fd2bbe96c9994505d6e))
|
|
28
|
-
* update ci ([80ddd55](https://github.com/wei-design/web-vue/commit/80ddd55e367d5c495354757d584827a97ba25a0d))
|
package/Readme.md
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# fx-platform-ui
|
|
2
2
|
|
|
3
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
4
|
---
|
|
9
5
|
|
|
10
6
|
- 🔭 [Vite](https://vitejs.dev)
|
|
11
7
|
- 💪 [Vue3](https://vuejs.org)
|
|
12
8
|
- 🔥 TypeScript
|
|
13
9
|
|
|
14
|
-
[快速开始](https://wei-design.github.io/web-vue/)
|
|
15
10
|
|
|
16
11
|
## 安装
|
|
17
12
|
|
|
@@ -22,33 +17,7 @@ node:>=16.0.0
|
|
|
22
17
|
这里推荐`pnpm`进行安装
|
|
23
18
|
|
|
24
19
|
```sh
|
|
25
|
-
pnpm install
|
|
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>
|
|
20
|
+
pnpm install fx-platform-ui --save
|
|
52
21
|
```
|
|
53
22
|
|
|
54
23
|
## 使用
|
|
@@ -61,17 +30,17 @@ pnpm install @wei_design/web-vue --save
|
|
|
61
30
|
import { createApp } from 'vue';
|
|
62
31
|
import App from './App.vue';
|
|
63
32
|
// 完整引入组件库
|
|
64
|
-
import
|
|
33
|
+
import FxPlatformUi from 'fx-platform-ui';
|
|
65
34
|
|
|
66
35
|
const app = createApp(App);
|
|
67
36
|
// 全局安装
|
|
68
|
-
app.use(
|
|
37
|
+
app.use(FxPlatformUi).mount('#app');
|
|
69
38
|
```
|
|
70
39
|
|
|
71
40
|
组件当中
|
|
72
41
|
|
|
73
42
|
```vue
|
|
74
|
-
<
|
|
43
|
+
<PlForm ref="featForm" v-bind="formProps" @submit="confirm" />
|
|
75
44
|
```
|
|
76
45
|
|
|
77
46
|
### 按需引入
|
|
@@ -86,13 +55,13 @@ import { Button } from '@wei_design/web-vue';
|
|
|
86
55
|
|
|
87
56
|
const app = createApp(App);
|
|
88
57
|
|
|
89
|
-
app.use(
|
|
58
|
+
app.use(PlForm).mount('#app');
|
|
90
59
|
```
|
|
91
60
|
|
|
92
61
|
组件当中
|
|
93
62
|
|
|
94
63
|
```vue
|
|
95
|
-
<
|
|
64
|
+
<PlForm ref="featForm" v-bind="formProps" @submit="confirm" />
|
|
96
65
|
```
|
|
97
66
|
|
|
98
67
|
---
|