@iswangh/element-plus-kit 0.1.4 → 0.2.1

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 CHANGED
@@ -125,7 +125,7 @@ const formItems: FormItems = [
125
125
  {
126
126
  prop: 'username',
127
127
  label: '用户名',
128
- comp: 'input',
128
+ compType: 'input',
129
129
  },
130
130
  ]
131
131
 
@@ -195,7 +195,7 @@ const formItems: FormItems = [
195
195
  {
196
196
  prop: 'username',
197
197
  label: '用户名',
198
- comp: 'input',
198
+ compType: 'input',
199
199
  },
200
200
  ]
201
201
 
@@ -288,17 +288,9 @@ import { WForm } from '@iswangh/element-plus-kit'
288
288
 
289
289
  ```typescript
290
290
  import type {
291
- ActionConfig,
292
- ActionConfigButtonItem,
293
- Arrayable,
294
- ColAttrs,
295
- ElFormAttrs,
296
- EventExtendedParams,
297
- ExpandRule,
298
- FormItem,
291
+ FormActionConfig,
292
+ FormItemEventExtendedParams,
299
293
  FormItems,
300
- FormItemSlotScope,
301
- RowAttrs,
302
294
  } from '@iswangh/element-plus-kit'
303
295
  ```
304
296
 
@@ -316,7 +308,7 @@ const formItems: FormItems = [
316
308
  {
317
309
  prop: 'username',
318
310
  label: '用户名',
319
- comp: 'input',
311
+ compType: 'input',
320
312
  rules: [
321
313
  { required: true, message: '请输入用户名', trigger: 'blur' },
322
314
  ],
@@ -324,8 +316,8 @@ const formItems: FormItems = [
324
316
  {
325
317
  prop: 'email',
326
318
  label: '邮箱',
327
- comp: 'input',
328
- compAttrs: {
319
+ compType: 'input',
320
+ compProps: {
329
321
  type: 'email',
330
322
  },
331
323
  rules: [
@@ -352,17 +344,17 @@ const form = ref({
352
344
  <script setup lang="ts">
353
345
  import { ref } from 'vue'
354
346
  import { WForm } from '@iswangh/element-plus-kit'
355
- import type { FormItems, ActionConfig } from '@iswangh/element-plus-kit'
347
+ import type { FormItems, FormActionConfig } from '@iswangh/element-plus-kit'
356
348
 
357
349
  const formItems: FormItems = [
358
350
  {
359
351
  prop: 'keyword',
360
352
  label: '关键词',
361
- comp: 'input',
353
+ compType: 'input',
362
354
  },
363
355
  ]
364
356
 
365
- const actionConfig: ActionConfig = {
357
+ const actionConfig: FormActionConfig = {
366
358
  buttons: ['search', 'reset'],
367
359
  }
368
360
 
package/dist/index.d.ts CHANGED
@@ -1,29 +1,11 @@
1
- import { ActionConfig } from '@iswangh/element-plus-kit-form';
2
- import { ActionConfigButtonItem } from '@iswangh/element-plus-kit-form';
3
1
  import { App } from 'vue';
4
- import { Arrayable } from '@iswangh/element-plus-kit-form';
5
- import { ColAttrs } from '@iswangh/element-plus-kit-form';
6
2
  import { ComponentResolver } from 'unplugin-vue-components/types';
7
- import { ElFormAttrs } from '@iswangh/element-plus-kit-form';
8
- import { EventExtendedParams } from '@iswangh/element-plus-kit-form';
9
- import { ExpandRule } from '@iswangh/element-plus-kit-form';
10
- import { FormItem } from '@iswangh/element-plus-kit-form';
11
- import { FormItemComp } from '@iswangh/element-plus-kit-form';
12
- import { FormItemCompAttrs } from '@iswangh/element-plus-kit-form';
3
+ import { FormActionConfig } from '@iswangh/element-plus-kit-form';
4
+ import { FormItemEventExtendedParams } from '@iswangh/element-plus-kit-form';
13
5
  import { FormItems } from '@iswangh/element-plus-kit-form';
14
- import { FormItemSlotScope } from '@iswangh/element-plus-kit-form';
15
6
  import { ResolverFunction } from 'unplugin-auto-import/types';
16
- import { RowAttrs } from '@iswangh/element-plus-kit-form';
17
7
  import { WForm } from '@iswangh/element-plus-kit-form';
18
8
 
19
- export { ActionConfig }
20
-
21
- export { ActionConfigButtonItem }
22
-
23
- export { Arrayable }
24
-
25
- export { ColAttrs }
26
-
27
9
  /**
28
10
  * 默认导出安装函数
29
11
  */
@@ -60,22 +42,12 @@ export default _default;
60
42
  */
61
43
  export declare function ElementPlusKitResolver(): ComponentResolver & ResolverFunction;
62
44
 
63
- export { ElFormAttrs }
64
-
65
- export { EventExtendedParams }
45
+ export { FormActionConfig }
66
46
 
67
- export { ExpandRule }
68
-
69
- export { FormItem }
70
-
71
- export { FormItemComp }
72
-
73
- export { FormItemCompAttrs }
47
+ export { FormItemEventExtendedParams }
74
48
 
75
49
  export { FormItems }
76
50
 
77
- export { FormItemSlotScope }
78
-
79
51
  /**
80
52
  * Element Plus Kit 全局安装函数
81
53
  *
@@ -83,8 +55,6 @@ export { FormItemSlotScope }
83
55
  */
84
56
  export declare function install(app: App): void;
85
57
 
86
- export { RowAttrs }
87
-
88
58
  export { WForm }
89
59
 
90
60
  export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@iswangh/element-plus-kit",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.2.1",
5
5
  "description": "Element Plus Kit - 基于 Element Plus 的 Vue 3 组件集合",
6
6
  "author": "iswangh",
7
7
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "vue": "^3.5.23"
40
40
  },
41
41
  "dependencies": {
42
- "@iswangh/element-plus-kit-form": "0.1.4"
42
+ "@iswangh/element-plus-kit-form": "0.2.1"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@vitejs/plugin-vue": "^6.0.1",
@@ -57,7 +57,7 @@
57
57
  "scripts": {
58
58
  "build": "vite build",
59
59
  "dev": "vite build --watch",
60
- "type-check": "vue-tsc --noEmit",
60
+ "type-check": "vue-tsc --build",
61
61
  "clean": "node -e \"require('fs').rmSync('dist', {recursive: true, force: true})\""
62
62
  }
63
63
  }