@vrojs/element-plus 0.0.4 → 0.0.5
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/index.js +95 -93
- package/dist/locale/index.d.ts +1 -0
- package/dist/locale/index.js +6 -4
- package/dist/locale/lang/en.d.ts +46 -0
- package/dist/locale/lang/en.js +48 -0
- package/dist/locale/lang/zh-cn.d.ts +0 -1
- package/dist/locale/lang/zh-cn.js +1 -2
- package/dist/locale/useLocale.d.ts +0 -1
- package/dist/vro-el-schema-form/useVroElSchemaForm.js +14 -17
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +33 -33
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,95 +1,97 @@
|
|
|
1
|
-
import { default as e } from "./locale/lang/
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
1
|
+
import { default as e } from "./locale/lang/en.js";
|
|
2
|
+
import { default as p } from "./locale/lang/zh-cn.js";
|
|
3
|
+
import { localeContextKey as t, useLocale as a } from "./locale/useLocale.js";
|
|
4
|
+
import { datePickerValueFormat as x } from "./utils/datePickerValueFormat.js";
|
|
5
|
+
import { parseType as i } from "@vrojs/base";
|
|
6
|
+
import { VroElCheckboxGroup as V } from "./vro-el-checkbox-group/index.js";
|
|
7
|
+
import { VroElConfigProvider as c } from "./vro-el-config-provider/index.js";
|
|
8
|
+
import { VroElFileUpload as F } from "./vro-el-file-upload/index.js";
|
|
9
|
+
import { VroElIcon as h } from "./vro-el-icon/index.js";
|
|
10
|
+
import { VroElImage as P } from "./vro-el-image/index.js";
|
|
11
|
+
import { VroElImageUpload as I } from "./vro-el-image-upload/index.js";
|
|
12
|
+
import { VroElRadioGroup as C } from "./vro-el-radio-group/index.js";
|
|
13
|
+
import { VroElSchemaFilter as D } from "./vro-el-schema-filter/index.js";
|
|
14
|
+
import { VroElSchemaForm as T } from "./vro-el-schema-form/index.js";
|
|
15
|
+
import { VroElSchemaFormDialog as G } from "./vro-el-schema-form-dialog/index.js";
|
|
16
|
+
import { VroElSelect as b } from "./vro-el-select/index.js";
|
|
17
|
+
import { VroElSkeleton as R } from "./vro-el-skeleton/index.js";
|
|
18
|
+
import { VroElTags as j } from "./vro-el-tags/index.js";
|
|
19
|
+
import { VroElTree as z } from "./vro-el-tree/index.js";
|
|
20
|
+
import { VroElWithConfig as M } from "./vro-el-with-config/index.js";
|
|
21
|
+
import { vroElCheckboxGroupProps as q } from "./vro-el-checkbox-group/types.js";
|
|
22
|
+
import { vroElConfigProviderProps as B } from "./vro-el-config-provider/types.js";
|
|
23
|
+
import { vroElFileUploadProps as J } from "./vro-el-file-upload/types.js";
|
|
24
|
+
import { getVroElFileUploadOptions as X, setVroElFileUploadOptions as Y } from "./vro-el-file-upload/utils.js";
|
|
25
|
+
import { vroElIconProps as _ } from "./vro-el-icon/types.js";
|
|
26
|
+
import { vroElImageProps as oo } from "./vro-el-image/types.js";
|
|
27
|
+
import { getVroElImageOptions as eo, setVroElImageOptions as mo } from "./vro-el-image/utils.js";
|
|
28
|
+
import { vroElImageUploadProps as lo } from "./vro-el-image-upload/types.js";
|
|
29
|
+
import { getVroElImageUploadOptions as ao, setVroElImageUploadOptions as fo } from "./vro-el-image-upload/utils.js";
|
|
30
|
+
import { vroElRadioGroupProps as Eo } from "./vro-el-radio-group/types.js";
|
|
31
|
+
import { vroElSchemaFilterProps as so } from "./vro-el-schema-filter/types.js";
|
|
32
|
+
import { defineVroElSchemaFormCreateField as go } from "./vro-el-schema-form/defineVroElSchemaFormCreateField.js";
|
|
33
|
+
import { defineVroElSchemaFormFieldTrigger as no } from "./vro-el-schema-form/defineVroElSchemaFormFieldTrigger.js";
|
|
34
|
+
import { vroElSchemaFormProps as ho } from "./vro-el-schema-form/types.js";
|
|
35
|
+
import { useVroElSchemaForm as Po } from "./vro-el-schema-form/useVroElSchemaForm.js";
|
|
36
|
+
import { vroElSchemaFormFieldManager as Io } from "./vro-el-schema-form/vroElSchemaFormFieldManager.js";
|
|
37
|
+
import { showVroElSchemaFormDialog as Co } from "./vro-el-schema-form-dialog/function-call.js";
|
|
38
|
+
import { useVroElSchemaFormDialogInstance as Do, vroElSchemaFormDialogInjectionKey as Oo } from "./vro-el-schema-form-dialog/injection.js";
|
|
39
|
+
import { vroElSchemaFormDialogProps as ko } from "./vro-el-schema-form-dialog/types.js";
|
|
40
|
+
import { useVroElSchemaFormDialog as yo } from "./vro-el-schema-form-dialog/useVroElSchemaFormDialog.js";
|
|
41
|
+
import { vroElSelectProps as Ko } from "./vro-el-select/types.js";
|
|
42
|
+
import { vroElSkeletonProps as Wo } from "./vro-el-skeleton/types.js";
|
|
43
|
+
import { vroElTagsProps as wo } from "./vro-el-tags/types.js";
|
|
44
|
+
import { vroElTreeProps as Lo } from "./vro-el-tree/types.js";
|
|
45
|
+
import { vroElWithConfigProps as No } from "./vro-el-with-config/types.js";
|
|
45
46
|
export {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
q as
|
|
79
|
-
B as
|
|
80
|
-
|
|
81
|
-
_ as
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
Eo as
|
|
85
|
-
|
|
86
|
-
Oo as
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
Ko as
|
|
91
|
-
Wo as
|
|
92
|
-
wo as
|
|
93
|
-
Lo as
|
|
94
|
-
|
|
47
|
+
V as VroElCheckboxGroup,
|
|
48
|
+
c as VroElConfigProvider,
|
|
49
|
+
F as VroElFileUpload,
|
|
50
|
+
h as VroElIcon,
|
|
51
|
+
P as VroElImage,
|
|
52
|
+
I as VroElImageUpload,
|
|
53
|
+
C as VroElRadioGroup,
|
|
54
|
+
D as VroElSchemaFilter,
|
|
55
|
+
T as VroElSchemaForm,
|
|
56
|
+
G as VroElSchemaFormDialog,
|
|
57
|
+
b as VroElSelect,
|
|
58
|
+
R as VroElSkeleton,
|
|
59
|
+
j as VroElTags,
|
|
60
|
+
z as VroElTree,
|
|
61
|
+
M as VroElWithConfig,
|
|
62
|
+
x as datePickerValueFormat,
|
|
63
|
+
go as defineVroElSchemaFormCreateField,
|
|
64
|
+
no as defineVroElSchemaFormFieldTrigger,
|
|
65
|
+
e as en,
|
|
66
|
+
X as getVroElFileUploadOptions,
|
|
67
|
+
eo as getVroElImageOptions,
|
|
68
|
+
ao as getVroElImageUploadOptions,
|
|
69
|
+
t as localeContextKey,
|
|
70
|
+
i as parseType,
|
|
71
|
+
Y as setVroElFileUploadOptions,
|
|
72
|
+
mo as setVroElImageOptions,
|
|
73
|
+
fo as setVroElImageUploadOptions,
|
|
74
|
+
Co as showVroElSchemaFormDialog,
|
|
75
|
+
a as useLocale,
|
|
76
|
+
Po as useVroElSchemaForm,
|
|
77
|
+
yo as useVroElSchemaFormDialog,
|
|
78
|
+
Do as useVroElSchemaFormDialogInstance,
|
|
79
|
+
q as vroElCheckboxGroupProps,
|
|
80
|
+
B as vroElConfigProviderProps,
|
|
81
|
+
J as vroElFileUploadProps,
|
|
82
|
+
_ as vroElIconProps,
|
|
83
|
+
oo as vroElImageProps,
|
|
84
|
+
lo as vroElImageUploadProps,
|
|
85
|
+
Eo as vroElRadioGroupProps,
|
|
86
|
+
so as vroElSchemaFilterProps,
|
|
87
|
+
Oo as vroElSchemaFormDialogInjectionKey,
|
|
88
|
+
ko as vroElSchemaFormDialogProps,
|
|
89
|
+
Io as vroElSchemaFormFieldManager,
|
|
90
|
+
ho as vroElSchemaFormProps,
|
|
91
|
+
Ko as vroElSelectProps,
|
|
92
|
+
Wo as vroElSkeletonProps,
|
|
93
|
+
wo as vroElTagsProps,
|
|
94
|
+
Lo as vroElTreeProps,
|
|
95
|
+
No as vroElWithConfigProps,
|
|
96
|
+
p as zhCN
|
|
95
97
|
};
|
package/dist/locale/index.d.ts
CHANGED
package/dist/locale/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { default as t } from "./lang/
|
|
2
|
-
import {
|
|
1
|
+
import { default as t } from "./lang/en.js";
|
|
2
|
+
import { default as r } from "./lang/zh-cn.js";
|
|
3
|
+
import { localeContextKey as l, useLocale as x } from "./useLocale.js";
|
|
3
4
|
export {
|
|
5
|
+
t as en,
|
|
4
6
|
l as localeContextKey,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
x as useLocale,
|
|
8
|
+
r as zhCN
|
|
7
9
|
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
el: {
|
|
4
|
+
table: {
|
|
5
|
+
refresh: string;
|
|
6
|
+
};
|
|
7
|
+
skeleton: {
|
|
8
|
+
loadingDescription: string;
|
|
9
|
+
emptyDescription: string;
|
|
10
|
+
emptyBtnText: string;
|
|
11
|
+
errorTitle: string;
|
|
12
|
+
errorBtnText: string;
|
|
13
|
+
};
|
|
14
|
+
fileUpload: {
|
|
15
|
+
btnText: string;
|
|
16
|
+
};
|
|
17
|
+
imageUpload: {
|
|
18
|
+
compressText: string;
|
|
19
|
+
};
|
|
20
|
+
tags: {
|
|
21
|
+
addText: string;
|
|
22
|
+
};
|
|
23
|
+
schemaForm: {
|
|
24
|
+
ElInput: {
|
|
25
|
+
placeholder: string;
|
|
26
|
+
};
|
|
27
|
+
ElSelect: {
|
|
28
|
+
placeholder: string;
|
|
29
|
+
};
|
|
30
|
+
ElDatePicker: {
|
|
31
|
+
placeholder: string;
|
|
32
|
+
startPlaceholder: string;
|
|
33
|
+
endPlaceholder: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
schemaFilter: {
|
|
37
|
+
searchText: string;
|
|
38
|
+
resetText: string;
|
|
39
|
+
};
|
|
40
|
+
schemaFormDialog: {
|
|
41
|
+
cancelText: string;
|
|
42
|
+
confirmText: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
name: "en",
|
|
3
|
+
el: {
|
|
4
|
+
table: {
|
|
5
|
+
refresh: "Refresh"
|
|
6
|
+
},
|
|
7
|
+
skeleton: {
|
|
8
|
+
loadingDescription: "Loading data...",
|
|
9
|
+
emptyDescription: "No data",
|
|
10
|
+
emptyBtnText: "Refresh",
|
|
11
|
+
errorTitle: "Oops! Something went wrong.",
|
|
12
|
+
errorBtnText: "Refresh"
|
|
13
|
+
},
|
|
14
|
+
fileUpload: {
|
|
15
|
+
btnText: "Upload"
|
|
16
|
+
},
|
|
17
|
+
imageUpload: {
|
|
18
|
+
compressText: "Compress image"
|
|
19
|
+
},
|
|
20
|
+
tags: {
|
|
21
|
+
addText: "Add"
|
|
22
|
+
},
|
|
23
|
+
schemaForm: {
|
|
24
|
+
ElInput: {
|
|
25
|
+
placeholder: "Please enter"
|
|
26
|
+
},
|
|
27
|
+
ElSelect: {
|
|
28
|
+
placeholder: "Please select"
|
|
29
|
+
},
|
|
30
|
+
ElDatePicker: {
|
|
31
|
+
placeholder: "Please select",
|
|
32
|
+
startPlaceholder: "Start date",
|
|
33
|
+
endPlaceholder: "End date"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
schemaFilter: {
|
|
37
|
+
searchText: "Search",
|
|
38
|
+
resetText: "Reset"
|
|
39
|
+
},
|
|
40
|
+
schemaFormDialog: {
|
|
41
|
+
cancelText: "Cancel",
|
|
42
|
+
confirmText: "Confirm"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
e as default
|
|
48
|
+
};
|
|
@@ -2,30 +2,27 @@ import p from "@daysnap/banana";
|
|
|
2
2
|
import { isFunction as v } from "@daysnap/utils";
|
|
3
3
|
import { useAsyncTask as d } from "@vrojs/use";
|
|
4
4
|
import { reactive as g, ref as h } from "vue";
|
|
5
|
-
function
|
|
6
|
-
const { instanceRef: i, source: a, ...s } = n, o = g(v(
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
{ throwError: !0, ...s }
|
|
19
|
-
);
|
|
5
|
+
function x(r, e, n = {}) {
|
|
6
|
+
const { instanceRef: i, source: a, ...s } = n, o = g(v(r) ? r() : r), t = i ?? h(), { loading: c, trigger: m, error: u, data: f } = d(async () => {
|
|
7
|
+
if (!t.value)
|
|
8
|
+
return;
|
|
9
|
+
try {
|
|
10
|
+
await t.value.validate();
|
|
11
|
+
} catch {
|
|
12
|
+
throw "";
|
|
13
|
+
}
|
|
14
|
+
const l = await t.value.extractValues();
|
|
15
|
+
await e?.(l);
|
|
16
|
+
}, s);
|
|
20
17
|
return a && p.assignment(a, o), {
|
|
21
18
|
data: f,
|
|
22
19
|
error: u,
|
|
23
20
|
schema: o,
|
|
24
|
-
refVroElSchemaForm:
|
|
21
|
+
refVroElSchemaForm: t,
|
|
25
22
|
loading: c,
|
|
26
23
|
trigger: m
|
|
27
24
|
};
|
|
28
25
|
}
|
|
29
26
|
export {
|
|
30
|
-
|
|
27
|
+
x as useVroElSchemaForm
|
|
31
28
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as z, computed as S, ref as
|
|
1
|
+
import { defineComponent as z, computed as S, ref as P, watchEffect as A, useTemplateRef as I, createBlock as E, openBlock as v, unref as u, mergeProps as m, withCtx as c, createVNode as B, createElementBlock as G, renderSlot as _, Fragment as H, renderList as C, createSlots as O, resolveDynamicComponent as J } from "vue";
|
|
2
2
|
import Q from "@daysnap/banana";
|
|
3
|
-
import { isFunction as
|
|
3
|
+
import { isFunction as f, isString as R, filterEmptyValue as W } from "@daysnap/utils";
|
|
4
4
|
import { getSlotEntries as j } from "@vrojs/base";
|
|
5
5
|
import { ElForm as X, ElRow as Y, ElCol as Z, ElFormItem as k } from "element-plus";
|
|
6
6
|
import { useLocale as ee } from "../locale/useLocale.js";
|
|
@@ -14,26 +14,26 @@ const ve = /* @__PURE__ */ z({
|
|
|
14
14
|
props: oe,
|
|
15
15
|
emits: ["change-field", "input-field"],
|
|
16
16
|
setup(D, { expose: $, emit: x }) {
|
|
17
|
-
const
|
|
17
|
+
const V = x, l = D, y = S(() => ({
|
|
18
18
|
validateOnRuleChange: !1,
|
|
19
19
|
...l.formProps
|
|
20
|
-
})), { locale: K } = ee(),
|
|
20
|
+
})), { locale: K } = ee(), h = P({}), g = P({}), p = P({});
|
|
21
21
|
A(() => {
|
|
22
22
|
const { schema: e } = l;
|
|
23
|
-
|
|
23
|
+
h.value = {}, g.value = {}, p.value = {}, Object.entries(e).forEach(([t, r]) => {
|
|
24
24
|
let { hidden: a, value: o, rules: s, is: n } = r;
|
|
25
|
-
|
|
25
|
+
f(a) && (a = a(o, r, e)), n || (a = !0), a || (g.value[t] = o, p.value[t] = r), h.value[t] = f(s) ? s(o, r, e) : s;
|
|
26
26
|
});
|
|
27
27
|
});
|
|
28
|
-
const b = S(() => Object.entries(
|
|
28
|
+
const b = S(() => Object.entries(p.value).reduce((e, [t, r]) => {
|
|
29
29
|
let { props: a = {}, is: o, options: s, labelKey: n, valueKey: q } = r;
|
|
30
30
|
if (R(o)) {
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
31
|
+
const F = te.get(o);
|
|
32
|
+
if (F) {
|
|
33
33
|
let w = {};
|
|
34
|
-
R(o) && (w = K.value.el.schemaForm[o]), o === "ElDatePicker" && (a.valueFormat = re[a?.type ?? "date"]), o =
|
|
34
|
+
R(o) && (w = K.value.el.schemaForm[o]), o === "ElDatePicker" && (a.valueFormat = re[a?.type ?? "date"]), o = F.is, a = Object.assign(
|
|
35
35
|
{},
|
|
36
|
-
|
|
36
|
+
F.props,
|
|
37
37
|
w,
|
|
38
38
|
W({ options: s, labelKey: n, valueKey: q }),
|
|
39
39
|
a
|
|
@@ -42,78 +42,78 @@ const ve = /* @__PURE__ */ z({
|
|
|
42
42
|
}
|
|
43
43
|
return e[t] = { is: o, props: a }, e;
|
|
44
44
|
}, {})), L = async (e, t) => {
|
|
45
|
-
|
|
45
|
+
V("change-field", { key: e, value: t }), await l.schema[e]?.onChange?.(t, l.schema[e], l.schema);
|
|
46
46
|
}, T = async (e, t) => {
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
const e =
|
|
50
|
-
await Promise.all([
|
|
47
|
+
V("input-field", { key: e, value: t }), await l.schema[e]?.onInput?.(t, l.schema[e], l.schema);
|
|
48
|
+
}, d = I("refComponents"), i = I("refForm"), U = async () => {
|
|
49
|
+
const e = d.value?.filter((t) => f(t.validate)) ?? [];
|
|
50
|
+
await Promise.all([i.value, ...e].map((t) => t?.validate()));
|
|
51
51
|
}, M = async () => {
|
|
52
|
-
const e =
|
|
52
|
+
const e = d.value?.filter((r) => f(r.extractValues)) ?? [], t = await Promise.all(
|
|
53
53
|
e.map((r) => r.extractValues())
|
|
54
54
|
);
|
|
55
55
|
return t.push(Q.extract(l.schema)), t.filter(Boolean).reduce((r, a) => ({ ...r, ...a }), {});
|
|
56
56
|
}, N = ae(async (e) => {
|
|
57
|
-
const t =
|
|
57
|
+
const t = d.value?.filter((r) => f(r.trigger)) ?? [];
|
|
58
58
|
await Promise.all(t.map((r) => r.trigger(e)));
|
|
59
59
|
});
|
|
60
60
|
return $({
|
|
61
61
|
get form() {
|
|
62
|
-
return
|
|
62
|
+
return i.value;
|
|
63
63
|
},
|
|
64
64
|
validate: U,
|
|
65
|
-
resetFields: () =>
|
|
65
|
+
resetFields: () => i.value?.resetFields(),
|
|
66
66
|
trigger: N,
|
|
67
67
|
extractValues: M,
|
|
68
|
-
validateField: async (e) =>
|
|
69
|
-
}), (e, t) => (
|
|
68
|
+
validateField: async (e) => i.value?.validateField(e)
|
|
69
|
+
}), (e, t) => (v(), E(u(X), m(y.value, {
|
|
70
70
|
ref_key: "refForm",
|
|
71
|
-
ref:
|
|
71
|
+
ref: i,
|
|
72
72
|
class: "vro-el-schema-form",
|
|
73
|
-
model:
|
|
74
|
-
rules:
|
|
73
|
+
model: g.value,
|
|
74
|
+
rules: h.value
|
|
75
75
|
}), {
|
|
76
76
|
default: c(() => [
|
|
77
77
|
B(u(Y), m({ gutter: 16 }, e.rowProps), {
|
|
78
78
|
default: c(() => [
|
|
79
|
-
(
|
|
79
|
+
(v(!0), G(H, null, C(p.value, (r, a) => (v(), E(u(Z), m({ key: a }, { ref_for: !0 }, { ...e.colProps, ...r.colProps }), {
|
|
80
80
|
default: c(() => [
|
|
81
81
|
B(u(k), m({
|
|
82
82
|
label: r.label,
|
|
83
83
|
prop: a
|
|
84
84
|
}, { ref_for: !0 }, { ...e.formItemProps, ...r.formItemProps }), O({
|
|
85
85
|
default: c(() => [
|
|
86
|
-
(
|
|
86
|
+
(v(), E(J(b.value?.[a]?.is), m({
|
|
87
87
|
modelValue: r.value,
|
|
88
88
|
"onUpdate:modelValue": (o) => r.value = o
|
|
89
89
|
}, { ref_for: !0 }, b.value?.[a]?.props, {
|
|
90
90
|
ref_for: !0,
|
|
91
91
|
ref_key: "refComponents",
|
|
92
|
-
ref:
|
|
92
|
+
ref: d,
|
|
93
93
|
onChange: (o) => L(a, o),
|
|
94
94
|
onInput: (o) => T(a, o)
|
|
95
95
|
}), O({ _: 2 }, [
|
|
96
|
-
|
|
96
|
+
C(u(j)(r.slots), ({ source: o, target: s }) => ({
|
|
97
97
|
name: s,
|
|
98
98
|
fn: c((n) => [
|
|
99
|
-
|
|
99
|
+
_(e.$slots, o, m({ ref_for: !0 }, n ?? {}, { item: r }))
|
|
100
100
|
])
|
|
101
101
|
}))
|
|
102
102
|
]), 1040, ["modelValue", "onUpdate:modelValue", "onChange", "onInput"]))
|
|
103
103
|
]),
|
|
104
104
|
_: 2
|
|
105
105
|
}, [
|
|
106
|
-
|
|
106
|
+
C(u(j)(r.itemSlots), ({ source: o, target: s }) => ({
|
|
107
107
|
name: s,
|
|
108
108
|
fn: c((n) => [
|
|
109
|
-
|
|
109
|
+
_(e.$slots, o, m({ ref_for: !0 }, n ?? {}, { item: r }))
|
|
110
110
|
])
|
|
111
111
|
}))
|
|
112
112
|
]), 1040, ["label", "prop"])
|
|
113
113
|
]),
|
|
114
114
|
_: 2
|
|
115
115
|
}, 1040))), 128)),
|
|
116
|
-
|
|
116
|
+
_(e.$slots, "default")
|
|
117
117
|
]),
|
|
118
118
|
_: 3
|
|
119
119
|
}, 16)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vrojs/element-plus",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "vrojs ui",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"vite": "^7.1.12",
|
|
51
51
|
"vite-plugin-dts": "^4.5.4",
|
|
52
52
|
"vue": "^3.5.22",
|
|
53
|
-
"@vrojs/
|
|
54
|
-
"@vrojs/
|
|
53
|
+
"@vrojs/use": "0.0.2",
|
|
54
|
+
"@vrojs/base": "0.0.3"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "npm run clean && vite build",
|