@vrojs/element-plus 0.0.3 → 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.d.ts +1 -0
- package/dist/index.js +89 -80
- 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-image/index.d.ts +207 -0
- package/dist/vro-el-image/index.js +12 -0
- package/dist/vro-el-image/style/css.d.ts +0 -0
- package/dist/vro-el-image/style/css.js +3 -0
- package/dist/vro-el-image/style/deps.d.ts +0 -0
- package/dist/vro-el-image/style/deps.js +1 -0
- package/dist/vro-el-image/style/index.d.ts +0 -0
- package/dist/vro-el-image/style/index.js +4 -0
- package/dist/vro-el-image/types.d.ts +54 -0
- package/dist/vro-el-image/types.js +15 -0
- package/dist/vro-el-image/utils.d.ts +2 -0
- package/dist/vro-el-image/utils.js +6 -0
- package/dist/vro-el-image/vro-el-image.vue.d.ts +122 -0
- package/dist/vro-el-image/vro-el-image.vue.js +32 -0
- package/dist/vro-el-image/vro-el-image.vue2.js +4 -0
- package/dist/vro-el-image-upload/index.d.ts +7 -7
- package/dist/vro-el-image-upload/style/css.js +1 -0
- package/dist/vro-el-image-upload/style/deps.js +1 -1
- package/dist/vro-el-image-upload/style/index.js +2 -1
- package/dist/vro-el-image-upload/types.d.ts +9 -7
- package/dist/vro-el-image-upload/types.js +2 -2
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +10 -9
- package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +81 -75
- package/dist/vro-el-schema-filter/index.d.ts +1 -3
- package/dist/vro-el-schema-filter/style/css.js +1 -0
- package/dist/vro-el-schema-filter/style/index.js +1 -0
- package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +2 -6
- package/dist/vro-el-schema-form/index.d.ts +1 -3
- package/dist/vro-el-schema-form/style/css.js +1 -0
- package/dist/vro-el-schema-form/style/index.js +1 -0
- package/dist/vro-el-schema-form/types.d.ts +8 -0
- package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +2 -6
- package/dist/vro-el-schema-form/useVroElSchemaForm.js +14 -17
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +1 -3
- package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +84 -77
- package/dist/vro-el-schema-form-dialog/index.d.ts +4 -12
- package/dist/vro-el-schema-form-dialog/style/css.js +1 -0
- package/dist/vro-el-schema-form-dialog/style/index.js +1 -0
- package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +3 -9
- package/package.json +4 -4
|
@@ -484,9 +484,7 @@ export declare const VroElSchemaFilter: import('@vrojs/base').WithInstall<{
|
|
|
484
484
|
extractValues: () => Promise<Record<string, any>>;
|
|
485
485
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
486
486
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
487
|
-
$slots: Partial<Record<
|
|
488
|
-
item: import('..').VroElSchemaFormSchemaField;
|
|
489
|
-
}) => any>> & {
|
|
487
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
490
488
|
default?(_: {}): any;
|
|
491
489
|
};
|
|
492
490
|
}) | null;
|
|
@@ -445,9 +445,7 @@ declare function __VLS_template(): {
|
|
|
445
445
|
extractValues: () => Promise<Record<string, any>>;
|
|
446
446
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
447
447
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
448
|
-
$slots: Partial<Record<
|
|
449
|
-
item: import('..').VroElSchemaFormSchemaField;
|
|
450
|
-
}) => any>> & {
|
|
448
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
451
449
|
default?(_: {}): any;
|
|
452
450
|
};
|
|
453
451
|
}) | null;
|
|
@@ -967,9 +965,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
967
965
|
extractValues: () => Promise<Record<string, any>>;
|
|
968
966
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
969
967
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
970
|
-
$slots: Partial<Record<
|
|
971
|
-
item: import('..').VroElSchemaFormSchemaField;
|
|
972
|
-
}) => any>> & {
|
|
968
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
973
969
|
default?(_: {}): any;
|
|
974
970
|
};
|
|
975
971
|
}) | null;
|
|
@@ -548,9 +548,7 @@ export declare const VroElSchemaForm: import('@vrojs/base').WithInstall<{
|
|
|
548
548
|
rowProps: Partial<import('element-plus').RowProps>;
|
|
549
549
|
schema: import('./types').VroElSchemaFormSchema;
|
|
550
550
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
551
|
-
$slots: Partial<Record<
|
|
552
|
-
item: import('./types').VroElSchemaFormSchemaField;
|
|
553
|
-
}) => any>> & {
|
|
551
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
554
552
|
default?(_: {}): any;
|
|
555
553
|
};
|
|
556
554
|
})>;
|
|
@@ -46,6 +46,14 @@ export interface VroElSchemaFormSchemaField {
|
|
|
46
46
|
* 当前字段表单项配置,会与组件级 formItemProps 合并。
|
|
47
47
|
*/
|
|
48
48
|
formItemProps?: Partial<FormItemProps>;
|
|
49
|
+
/**
|
|
50
|
+
* 转发给 ElFormItem 的插槽映射,key 为外部插槽名,value 为 ElFormItem 插槽名。
|
|
51
|
+
*/
|
|
52
|
+
itemSlots?: Record<string, string>;
|
|
53
|
+
/**
|
|
54
|
+
* 转发给字段组件的插槽映射,key 为外部插槽名,value 为字段组件插槽名。
|
|
55
|
+
*/
|
|
56
|
+
slots?: Record<string, string>;
|
|
49
57
|
/**
|
|
50
58
|
* 从字段值转换提交值。
|
|
51
59
|
*/
|
|
@@ -451,9 +451,7 @@ export declare function useVroElSchemaForm<T extends Record<string, any> = Recor
|
|
|
451
451
|
extractValues: () => Promise<Record<string, any>>;
|
|
452
452
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
453
453
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
454
|
-
$slots: Partial<Record<
|
|
455
|
-
item: import('./types').VroElSchemaFormSchemaField;
|
|
456
|
-
}) => any>> & {
|
|
454
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
457
455
|
default?(_: {}): any;
|
|
458
456
|
};
|
|
459
457
|
}) | undefined, ({
|
|
@@ -897,9 +895,7 @@ export declare function useVroElSchemaForm<T extends Record<string, any> = Recor
|
|
|
897
895
|
extractValues: () => Promise<Record<string, any>>;
|
|
898
896
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
899
897
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
900
|
-
$slots: Partial<Record<
|
|
901
|
-
item: import('./types').VroElSchemaFormSchemaField;
|
|
902
|
-
}) => any>> & {
|
|
898
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
903
899
|
default?(_: {}): any;
|
|
904
900
|
};
|
|
905
901
|
}) | undefined>;
|
|
@@ -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,9 +1,7 @@
|
|
|
1
1
|
import { VroElSchemaFormSchema } from './types';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
attrs: Partial<{}>;
|
|
4
|
-
slots: Partial<Record<
|
|
5
|
-
item: import('./types').VroElSchemaFormSchemaField;
|
|
6
|
-
}) => any>> & {
|
|
4
|
+
slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
7
5
|
default?(_: {}): any;
|
|
8
6
|
};
|
|
9
7
|
refs: {
|
|
@@ -1,112 +1,119 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { isFunction as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import "
|
|
8
|
-
import { defineVroElSchemaFormFieldTrigger as
|
|
9
|
-
import { vroElSchemaFormProps as
|
|
10
|
-
import { vroElSchemaFormFieldManager as
|
|
11
|
-
const
|
|
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
|
+
import Q from "@daysnap/banana";
|
|
3
|
+
import { isFunction as f, isString as R, filterEmptyValue as W } from "@daysnap/utils";
|
|
4
|
+
import { getSlotEntries as j } from "@vrojs/base";
|
|
5
|
+
import { ElForm as X, ElRow as Y, ElCol as Z, ElFormItem as k } from "element-plus";
|
|
6
|
+
import { useLocale as ee } from "../locale/useLocale.js";
|
|
7
|
+
import { datePickerValueFormat as re } from "../utils/datePickerValueFormat.js";
|
|
8
|
+
import { defineVroElSchemaFormFieldTrigger as ae } from "./defineVroElSchemaFormFieldTrigger.js";
|
|
9
|
+
import { vroElSchemaFormProps as oe } from "./types.js";
|
|
10
|
+
import { vroElSchemaFormFieldManager as te } from "./vroElSchemaFormFieldManager.js";
|
|
11
|
+
const ve = /* @__PURE__ */ z({
|
|
12
12
|
name: "VroElSchemaForm",
|
|
13
13
|
__name: "vro-el-schema-form",
|
|
14
|
-
props:
|
|
14
|
+
props: oe,
|
|
15
15
|
emits: ["change-field", "input-field"],
|
|
16
|
-
setup(
|
|
17
|
-
const
|
|
16
|
+
setup(D, { expose: $, emit: x }) {
|
|
17
|
+
const V = x, l = D, y = S(() => ({
|
|
18
18
|
validateOnRuleChange: !1,
|
|
19
19
|
...l.formProps
|
|
20
|
-
})), { locale:
|
|
21
|
-
|
|
20
|
+
})), { locale: K } = ee(), h = P({}), g = P({}), p = P({});
|
|
21
|
+
A(() => {
|
|
22
22
|
const { schema: e } = l;
|
|
23
|
-
|
|
24
|
-
let { hidden: a, value:
|
|
25
|
-
|
|
23
|
+
h.value = {}, g.value = {}, p.value = {}, Object.entries(e).forEach(([t, r]) => {
|
|
24
|
+
let { hidden: a, value: o, rules: s, is: n } = r;
|
|
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
|
|
29
|
-
let { props: a = {}, is:
|
|
30
|
-
if (
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
33
|
-
let
|
|
34
|
-
|
|
28
|
+
const b = S(() => Object.entries(p.value).reduce((e, [t, r]) => {
|
|
29
|
+
let { props: a = {}, is: o, options: s, labelKey: n, valueKey: q } = r;
|
|
30
|
+
if (R(o)) {
|
|
31
|
+
const F = te.get(o);
|
|
32
|
+
if (F) {
|
|
33
|
+
let w = {};
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
F.props,
|
|
37
|
+
w,
|
|
38
|
+
W({ options: s, labelKey: n, valueKey: q }),
|
|
39
39
|
a
|
|
40
|
-
), a.disabled && (a.placeholder = "-",
|
|
40
|
+
), a.disabled && (a.placeholder = "-", o === "ElDatePicker" && (a.startPlaceholder = "-", a.endPlaceholder = "-"));
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
return e[
|
|
44
|
-
}, {})),
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
const e =
|
|
50
|
-
await Promise.all([
|
|
51
|
-
},
|
|
52
|
-
const e =
|
|
43
|
+
return e[t] = { is: o, props: a }, e;
|
|
44
|
+
}, {})), L = async (e, t) => {
|
|
45
|
+
V("change-field", { key: e, value: t }), await l.schema[e]?.onChange?.(t, l.schema[e], l.schema);
|
|
46
|
+
}, T = async (e, t) => {
|
|
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
|
+
}, M = async () => {
|
|
52
|
+
const e = d.value?.filter((r) => f(r.extractValues)) ?? [], t = await Promise.all(
|
|
53
53
|
e.map((r) => r.extractValues())
|
|
54
54
|
);
|
|
55
|
-
return
|
|
56
|
-
},
|
|
57
|
-
const
|
|
58
|
-
await Promise.all(
|
|
55
|
+
return t.push(Q.extract(l.schema)), t.filter(Boolean).reduce((r, a) => ({ ...r, ...a }), {});
|
|
56
|
+
}, N = ae(async (e) => {
|
|
57
|
+
const t = d.value?.filter((r) => f(r.trigger)) ?? [];
|
|
58
|
+
await Promise.all(t.map((r) => r.trigger(e)));
|
|
59
59
|
});
|
|
60
|
-
return
|
|
60
|
+
return $({
|
|
61
61
|
get form() {
|
|
62
|
-
return
|
|
62
|
+
return i.value;
|
|
63
63
|
},
|
|
64
|
-
validate:
|
|
65
|
-
resetFields: () =>
|
|
66
|
-
trigger:
|
|
67
|
-
extractValues:
|
|
68
|
-
validateField: async (e) =>
|
|
69
|
-
}), (e,
|
|
64
|
+
validate: U,
|
|
65
|
+
resetFields: () => i.value?.resetFields(),
|
|
66
|
+
trigger: N,
|
|
67
|
+
extractValues: M,
|
|
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
|
-
default:
|
|
77
|
-
|
|
78
|
-
default:
|
|
79
|
-
(
|
|
80
|
-
default:
|
|
81
|
-
|
|
76
|
+
default: c(() => [
|
|
77
|
+
B(u(Y), m({ gutter: 16 }, e.rowProps), {
|
|
78
|
+
default: c(() => [
|
|
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
|
+
default: c(() => [
|
|
81
|
+
B(u(k), m({
|
|
82
82
|
label: r.label,
|
|
83
83
|
prop: a
|
|
84
|
-
}, { ref_for: !0 }, { ...e.formItemProps, ...r.formItemProps }), {
|
|
85
|
-
default:
|
|
86
|
-
(
|
|
84
|
+
}, { ref_for: !0 }, { ...e.formItemProps, ...r.formItemProps }), O({
|
|
85
|
+
default: c(() => [
|
|
86
|
+
(v(), E(J(b.value?.[a]?.is), m({
|
|
87
87
|
modelValue: r.value,
|
|
88
|
-
"onUpdate:modelValue": (
|
|
89
|
-
}, { ref_for: !0 },
|
|
88
|
+
"onUpdate:modelValue": (o) => r.value = o
|
|
89
|
+
}, { ref_for: !0 }, b.value?.[a]?.props, {
|
|
90
90
|
ref_for: !0,
|
|
91
91
|
ref_key: "refComponents",
|
|
92
|
-
ref:
|
|
93
|
-
onChange: (
|
|
94
|
-
onInput: (
|
|
95
|
-
}),
|
|
96
|
-
|
|
97
|
-
name:
|
|
98
|
-
fn:
|
|
99
|
-
|
|
92
|
+
ref: d,
|
|
93
|
+
onChange: (o) => L(a, o),
|
|
94
|
+
onInput: (o) => T(a, o)
|
|
95
|
+
}), O({ _: 2 }, [
|
|
96
|
+
C(u(j)(r.slots), ({ source: o, target: s }) => ({
|
|
97
|
+
name: s,
|
|
98
|
+
fn: c((n) => [
|
|
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
|
+
C(u(j)(r.itemSlots), ({ source: o, target: s }) => ({
|
|
107
|
+
name: s,
|
|
108
|
+
fn: c((n) => [
|
|
109
|
+
_(e.$slots, o, m({ ref_for: !0 }, n ?? {}, { item: r }))
|
|
110
|
+
])
|
|
111
|
+
}))
|
|
112
|
+
]), 1040, ["label", "prop"])
|
|
106
113
|
]),
|
|
107
114
|
_: 2
|
|
108
115
|
}, 1040))), 128)),
|
|
109
|
-
|
|
116
|
+
_(e.$slots, "default")
|
|
110
117
|
]),
|
|
111
118
|
_: 3
|
|
112
119
|
}, 16)
|
|
@@ -116,5 +123,5 @@ const de = /* @__PURE__ */ N({
|
|
|
116
123
|
}
|
|
117
124
|
});
|
|
118
125
|
export {
|
|
119
|
-
|
|
126
|
+
ve as default
|
|
120
127
|
};
|
|
@@ -496,9 +496,7 @@ export declare const VroElSchemaFormDialog: import('@vrojs/base').WithInstall<{
|
|
|
496
496
|
extractValues: () => Promise<Record<string, any>>;
|
|
497
497
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
498
498
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
499
|
-
$slots: Partial<Record<
|
|
500
|
-
item: import('..').VroElSchemaFormSchemaField;
|
|
501
|
-
}) => any>> & {
|
|
499
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
502
500
|
default?(_: {}): any;
|
|
503
501
|
};
|
|
504
502
|
};
|
|
@@ -1121,9 +1119,7 @@ export declare const VroElSchemaFormDialog: import('@vrojs/base').WithInstall<{
|
|
|
1121
1119
|
extractValues: () => Promise<Record<string, any>>;
|
|
1122
1120
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
1123
1121
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1124
|
-
$slots: Partial<Record<
|
|
1125
|
-
item: import('..').VroElSchemaFormSchemaField;
|
|
1126
|
-
}) => any>> & {
|
|
1122
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
1127
1123
|
default?(_: {}): any;
|
|
1128
1124
|
};
|
|
1129
1125
|
}) | null;
|
|
@@ -1627,9 +1623,7 @@ export declare const VroElSchemaFormDialog: import('@vrojs/base').WithInstall<{
|
|
|
1627
1623
|
extractValues: () => Promise<Record<string, any>>;
|
|
1628
1624
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
1629
1625
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1630
|
-
$slots: Partial<Record<
|
|
1631
|
-
item: import('..').VroElSchemaFormSchemaField;
|
|
1632
|
-
}) => any>> & {
|
|
1626
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
1633
1627
|
default?(_: {}): any;
|
|
1634
1628
|
};
|
|
1635
1629
|
};
|
|
@@ -2143,9 +2137,7 @@ export declare const VroElSchemaFormDialog: import('@vrojs/base').WithInstall<{
|
|
|
2143
2137
|
extractValues: () => Promise<Record<string, any>>;
|
|
2144
2138
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
2145
2139
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
2146
|
-
$slots: Partial<Record<
|
|
2147
|
-
item: import('..').VroElSchemaFormSchemaField;
|
|
2148
|
-
}) => any>> & {
|
|
2140
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
2149
2141
|
default?(_: {}): any;
|
|
2150
2142
|
};
|
|
2151
2143
|
};
|
|
@@ -605,9 +605,7 @@ declare function __VLS_template(): {
|
|
|
605
605
|
extractValues: () => Promise<Record<string, any>>;
|
|
606
606
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
607
607
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
608
|
-
$slots: Partial<Record<
|
|
609
|
-
item: import('..').VroElSchemaFormSchemaField;
|
|
610
|
-
}) => any>> & {
|
|
608
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
611
609
|
default?(_: {}): any;
|
|
612
610
|
};
|
|
613
611
|
}) | null;
|
|
@@ -1102,9 +1100,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1102
1100
|
extractValues: () => Promise<Record<string, any>>;
|
|
1103
1101
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
1104
1102
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1105
|
-
$slots: Partial<Record<
|
|
1106
|
-
item: import('..').VroElSchemaFormSchemaField;
|
|
1107
|
-
}) => any>> & {
|
|
1103
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
1108
1104
|
default?(_: {}): any;
|
|
1109
1105
|
};
|
|
1110
1106
|
};
|
|
@@ -1778,9 +1774,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
1778
1774
|
extractValues: () => Promise<Record<string, any>>;
|
|
1779
1775
|
validateField: (key: string) => Promise<boolean | undefined>;
|
|
1780
1776
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
1781
|
-
$slots: Partial<Record<
|
|
1782
|
-
item: import('..').VroElSchemaFormSchemaField;
|
|
1783
|
-
}) => any>> & {
|
|
1777
|
+
$slots: Partial<Record<string, (_: any) => any>> & Partial<Record<string, (_: any) => any>> & {
|
|
1784
1778
|
default?(_: {}): any;
|
|
1785
1779
|
};
|
|
1786
1780
|
}) | null;
|
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",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@element-plus/icons-vue": ">=2.3.2",
|
|
37
37
|
"element-plus": ">=2.11.9",
|
|
38
38
|
"vue": ">=3.0.0",
|
|
39
|
-
"@vrojs/base": "0.0.
|
|
39
|
+
"@vrojs/base": "0.0.3",
|
|
40
40
|
"@vrojs/use": "0.0.2"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
@@ -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",
|