ep-craft 0.1.27 → 0.1.28
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/dist/components/form/EpForm.vue.d.ts +61 -0
- package/dist/components/form/EpForm.vue.js +199 -0
- package/dist/components/form/EpForm2.vue.js +4 -0
- package/dist/components/form/index.d.ts +12 -2
- package/dist/components/form/index.js +9 -3
- package/dist/components/form/instance.d.ts +2 -0
- package/dist/components/form/src/form-item.d.ts +103 -0
- package/dist/components/form/src/form-item.js +91 -0
- package/dist/components/form/src/form-label-wrap.d.ts +11 -0
- package/dist/components/form/src/form-label-wrap.js +74 -0
- package/dist/components/form/src/form.d.ts +127 -0
- package/dist/components/form/src/form.js +112 -0
- package/dist/components/form/src/types.d.ts +48 -19
- package/dist/components/form/src/utils.d.ts +9 -0
- package/dist/components/form/src/utils.js +45 -0
- package/dist/components/form-item/EpFormItem.vue.d.ts +55 -0
- package/dist/components/form-item/EpFormItem.vue.js +257 -0
- package/dist/components/form-item/EpFormItem2.vue.js +4 -0
- package/dist/components/form-item/index.d.ts +5 -2
- package/dist/components/form-item/index.js +5 -3
- package/dist/components/form-item/instance.d.ts +2 -0
- package/dist/components/select/select.vue.d.ts +1 -1
- package/dist/components/select/src/useSelect.d.ts +1 -1
- package/dist/components/select-v2/src/select.vue.d.ts +1 -1
- package/dist/components/select-v2/src/useSelect.d.ts +1 -1
- package/dist/utils/objects.js +11 -3
- package/package.json +2 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { Plugin } from 'vue';
|
|
2
|
-
import
|
|
3
|
-
export declare const EpFormItem: typeof
|
|
2
|
+
import _EpFormItem from './EpFormItem.vue';
|
|
3
|
+
export declare const EpFormItem: typeof _EpFormItem & Plugin;
|
|
4
4
|
export default EpFormItem;
|
|
5
|
+
export { formItemProps, formItemValidateStates } from '../form/src/form-item';
|
|
6
|
+
export type { FormItemProp, FormItemProps, FormItemPropsPublic, FormItemValidateState, } from '../form/src/form-item';
|
|
7
|
+
export type { FormItemInstance } from './instance';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { ElFormItem as m } from "element-plus";
|
|
2
1
|
import { withInstall as t } from "../../utils/with-install.js";
|
|
3
|
-
|
|
2
|
+
import m from "./EpFormItem.vue.js";
|
|
3
|
+
import { formItemValidateStates as p } from "../form/src/form-item.js";
|
|
4
|
+
const e = t(m, "ep-form-item");
|
|
4
5
|
export {
|
|
5
|
-
|
|
6
|
+
e as EpFormItem,
|
|
7
|
+
p as formItemValidateStates
|
|
6
8
|
};
|
|
@@ -184,7 +184,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
184
184
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
185
185
|
currentPlaceholder: import("vue").ComputedRef<string>;
|
|
186
186
|
mouseEnterEventName: string | null;
|
|
187
|
-
needStatusIcon: import("vue").ComputedRef<
|
|
187
|
+
needStatusIcon: import("vue").ComputedRef<boolean>;
|
|
188
188
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
189
189
|
iconComponent: import("vue").ComputedRef<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | (((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component)) | null)[], unknown, unknown>>;
|
|
190
190
|
iconReverse: import("vue").ComputedRef<string>;
|
|
@@ -81,7 +81,7 @@ export declare const useSelect: (props: SelectProps, emit: SelectEmits) => {
|
|
|
81
81
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
82
82
|
currentPlaceholder: import("vue").ComputedRef<string>;
|
|
83
83
|
mouseEnterEventName: string | null;
|
|
84
|
-
needStatusIcon: import("vue").ComputedRef<
|
|
84
|
+
needStatusIcon: import("vue").ComputedRef<boolean>;
|
|
85
85
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
86
86
|
iconComponent: import("vue").ComputedRef<import("@element-plus/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>>;
|
|
87
87
|
iconReverse: import("vue").ComputedRef<string>;
|
|
@@ -240,7 +240,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
240
240
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
241
241
|
selectDisabled: import("vue").ComputedRef<boolean>;
|
|
242
242
|
selectSize: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
|
243
|
-
needStatusIcon: import("vue").ComputedRef<
|
|
243
|
+
needStatusIcon: import("vue").ComputedRef<boolean>;
|
|
244
244
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
245
245
|
states: import("./select.types").SelectStates;
|
|
246
246
|
isFocused: import("vue").Ref<boolean, boolean>;
|
|
@@ -39,7 +39,7 @@ declare const useSelect: (props: SelectV2Props, emit: SelectV2EmitFn) => {
|
|
|
39
39
|
shouldShowPlaceholder: import("vue").ComputedRef<boolean>;
|
|
40
40
|
selectDisabled: import("vue").ComputedRef<boolean>;
|
|
41
41
|
selectSize: import("vue").ComputedRef<"" | "small" | "default" | "large">;
|
|
42
|
-
needStatusIcon: import("vue").ComputedRef<
|
|
42
|
+
needStatusIcon: import("vue").ComputedRef<boolean>;
|
|
43
43
|
showClearBtn: import("vue").ComputedRef<boolean>;
|
|
44
44
|
states: SelectStates;
|
|
45
45
|
isFocused: import("vue").Ref<boolean, boolean>;
|
package/dist/utils/objects.js
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import "lodash-unified";
|
|
1
|
+
import { set as s, get as n } from "lodash-unified";
|
|
2
2
|
import { hasOwn as p } from "@vue/shared";
|
|
3
|
-
const
|
|
3
|
+
const c = (e) => Object.keys(e), f = (e, t, r) => ({
|
|
4
|
+
get value() {
|
|
5
|
+
return n(e, t, r);
|
|
6
|
+
},
|
|
7
|
+
set value(o) {
|
|
8
|
+
s(e, t, o);
|
|
9
|
+
}
|
|
10
|
+
});
|
|
4
11
|
export {
|
|
12
|
+
f as getProp,
|
|
5
13
|
p as hasOwn,
|
|
6
|
-
|
|
14
|
+
c as keysOf
|
|
7
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ep-craft",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "A Vue 3 component library based on element-plus with ep- prefix",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/ep-craft.js",
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
"@popperjs/core": "npm:@sxzz/popperjs-es@^2.11.8",
|
|
66
66
|
"@vue/shared": "^3.5.40",
|
|
67
67
|
"@vueuse/core": "14.3.0",
|
|
68
|
+
"async-validator": "^4.2.5",
|
|
68
69
|
"csstype": "^3.2.3",
|
|
69
70
|
"dayjs": "^1.11.20",
|
|
70
71
|
"element-plus": "^2.9.0",
|