@iswangh/element-plus-kit 0.1.3 → 0.2.0

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