@iswangh/element-plus-kit 0.1.2 → 0.1.3
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 +11 -2
- package/dist/index.js +6 -6
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -368,6 +368,15 @@ const actionConfig: ActionConfig = {
|
|
|
368
368
|
const form = ref({
|
|
369
369
|
keyword: '',
|
|
370
370
|
})
|
|
371
|
+
|
|
372
|
+
const onSearch = () => {
|
|
373
|
+
console.log('搜索:', form.value)
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
const onReset = () => {
|
|
377
|
+
form.value.keyword = ''
|
|
378
|
+
console.log('重置表单')
|
|
379
|
+
}
|
|
371
380
|
</script>
|
|
372
381
|
|
|
373
382
|
<template>
|
|
@@ -375,8 +384,8 @@ const form = ref({
|
|
|
375
384
|
:model="form"
|
|
376
385
|
:form-items="formItems"
|
|
377
386
|
:action-config="actionConfig"
|
|
378
|
-
@search="
|
|
379
|
-
@reset="
|
|
387
|
+
@search="onSearch"
|
|
388
|
+
@reset="onReset"
|
|
380
389
|
/>
|
|
381
390
|
</template>
|
|
382
391
|
```
|
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.3",
|
|
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.3"
|
|
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"
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"dev": "vite build --watch",
|
|
60
60
|
"type-check": "vue-tsc --noEmit",
|
|
61
61
|
"clean": "node -e \"require('fs').rmSync('dist', {recursive: true, force: true})\"",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
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"
|
|
65
65
|
}
|
|
66
66
|
}
|