@iswangh/element-plus-kit 0.1.2 → 0.1.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/README.md +12 -2
- package/dist/index.d.ts +3 -0
- package/dist/index.js +6 -6
- package/package.json +8 -11
package/README.md
CHANGED
|
@@ -294,6 +294,7 @@ import type {
|
|
|
294
294
|
ColAttrs,
|
|
295
295
|
ElFormAttrs,
|
|
296
296
|
EventExtendedParams,
|
|
297
|
+
ExpandRule,
|
|
297
298
|
FormItem,
|
|
298
299
|
FormItems,
|
|
299
300
|
FormItemSlotScope,
|
|
@@ -368,6 +369,15 @@ const actionConfig: ActionConfig = {
|
|
|
368
369
|
const form = ref({
|
|
369
370
|
keyword: '',
|
|
370
371
|
})
|
|
372
|
+
|
|
373
|
+
const onSearch = () => {
|
|
374
|
+
console.log('搜索:', form.value)
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
const onReset = () => {
|
|
378
|
+
form.value.keyword = ''
|
|
379
|
+
console.log('重置表单')
|
|
380
|
+
}
|
|
371
381
|
</script>
|
|
372
382
|
|
|
373
383
|
<template>
|
|
@@ -375,8 +385,8 @@ const form = ref({
|
|
|
375
385
|
:model="form"
|
|
376
386
|
:form-items="formItems"
|
|
377
387
|
:action-config="actionConfig"
|
|
378
|
-
@search="
|
|
379
|
-
@reset="
|
|
388
|
+
@search="onSearch"
|
|
389
|
+
@reset="onReset"
|
|
380
390
|
/>
|
|
381
391
|
</template>
|
|
382
392
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { ColAttrs } from '@iswangh/element-plus-kit-form';
|
|
|
6
6
|
import { ComponentResolver } from 'unplugin-vue-components/types';
|
|
7
7
|
import { ElFormAttrs } from '@iswangh/element-plus-kit-form';
|
|
8
8
|
import { EventExtendedParams } from '@iswangh/element-plus-kit-form';
|
|
9
|
+
import { ExpandRule } from '@iswangh/element-plus-kit-form';
|
|
9
10
|
import { FormItem } from '@iswangh/element-plus-kit-form';
|
|
10
11
|
import { FormItemComp } from '@iswangh/element-plus-kit-form';
|
|
11
12
|
import { FormItemCompAttrs } from '@iswangh/element-plus-kit-form';
|
|
@@ -63,6 +64,8 @@ export { ElFormAttrs }
|
|
|
63
64
|
|
|
64
65
|
export { EventExtendedParams }
|
|
65
66
|
|
|
67
|
+
export { ExpandRule }
|
|
68
|
+
|
|
66
69
|
export { FormItem }
|
|
67
70
|
|
|
68
71
|
export { FormItemComp }
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { WForm as t } from "@iswangh/element-plus-kit-form";
|
|
2
|
-
import { WForm as
|
|
3
|
-
import { ElementPlusKitResolver as
|
|
2
|
+
import { WForm as f } from "@iswangh/element-plus-kit-form";
|
|
3
|
+
import { ElementPlusKitResolver as a } from "./resolver.js";
|
|
4
4
|
function r(o) {
|
|
5
5
|
o.component("WForm", t);
|
|
6
6
|
}
|
|
7
|
-
const
|
|
7
|
+
const l = {
|
|
8
8
|
install: r
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
a as ElementPlusKitResolver,
|
|
12
|
+
f as WForm,
|
|
13
|
+
l as default,
|
|
14
14
|
r as install
|
|
15
15
|
};
|
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
|
+
"version": "0.1.4",
|
|
5
5
|
"description": "Element Plus Kit - 基于 Element Plus 的 Vue 3 组件集合",
|
|
6
6
|
"author": "iswangh",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -39,17 +39,17 @@
|
|
|
39
39
|
"vue": "^3.5.23"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@iswangh/element-plus-kit-form": "0.1.
|
|
42
|
+
"@iswangh/element-plus-kit-form": "0.1.4"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@vitejs/plugin-vue": "^6.0.1",
|
|
46
|
-
"typescript": "^5.9.
|
|
47
|
-
"unplugin-auto-import": "^20.
|
|
46
|
+
"typescript": "^5.9.3",
|
|
47
|
+
"unplugin-auto-import": "^20.2.0",
|
|
48
48
|
"unplugin-vue-components": "^30.0.0",
|
|
49
|
-
"vite": "^7.
|
|
49
|
+
"vite": "^7.2.2",
|
|
50
50
|
"vite-plugin-dts": "^4.5.4",
|
|
51
|
-
"vue": "^3.5.
|
|
52
|
-
"vue-tsc": "^3.
|
|
51
|
+
"vue": "^3.5.24",
|
|
52
|
+
"vue-tsc": "^3.1.3"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
@@ -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
|
-
"version:patch": "pnpm version patch --no-git-tag-version",
|
|
63
|
-
"version:minor": "pnpm version minor --no-git-tag-version",
|
|
64
|
-
"version:major": "pnpm version major --no-git-tag-version"
|
|
61
|
+
"clean": "node -e \"require('fs').rmSync('dist', {recursive: true, force: true})\""
|
|
65
62
|
}
|
|
66
63
|
}
|