@vrojs/element-plus 0.0.30 → 0.0.32

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.
Files changed (46) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +147 -139
  3. package/dist/style/deps.js +1 -0
  4. package/dist/vro-el-async-dialog/function-call.d.ts +3 -0
  5. package/dist/vro-el-async-dialog/function-call.js +20 -0
  6. package/dist/vro-el-async-dialog/index.d.ts +48 -0
  7. package/dist/vro-el-async-dialog/index.js +9 -0
  8. package/dist/vro-el-async-dialog/style/css.d.ts +0 -0
  9. package/dist/vro-el-async-dialog/style/css.js +2 -0
  10. package/dist/vro-el-async-dialog/style/deps.d.ts +0 -0
  11. package/dist/vro-el-async-dialog/style/deps.js +1 -0
  12. package/dist/vro-el-async-dialog/style/index.d.ts +0 -0
  13. package/dist/vro-el-async-dialog/style/index.js +2 -0
  14. package/dist/vro-el-async-dialog/types.d.ts +12 -0
  15. package/dist/vro-el-async-dialog/types.js +1 -0
  16. package/dist/vro-el-async-dialog/vro-el-async-dialog.vue.d.ts +28 -0
  17. package/dist/vro-el-async-dialog/vro-el-async-dialog.vue.js +58 -0
  18. package/dist/vro-el-async-dialog/vro-el-async-dialog.vue2.js +4 -0
  19. package/dist/vro-el-image/index.d.ts +3 -3
  20. package/dist/vro-el-image/utils.d.ts +1 -1
  21. package/dist/vro-el-image/vro-el-image.vue.d.ts +1 -1
  22. package/dist/vro-el-schema-form/defineVroElSchemaForm.d.ts +2 -3
  23. package/dist/vro-el-schema-form/types.d.ts +6 -2
  24. package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +446 -7
  25. package/dist/vro-el-schema-form/useVroElSchemaForm.js +13 -13
  26. package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +58 -52
  27. package/dist/vro-el-schema-form-dialog/function-call.js +2 -2
  28. package/dist/vro-el-schema-form-dialog/index.d.ts +2 -1
  29. package/dist/vro-el-schema-form-dialog/index.js +13 -9
  30. package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.d.ts +12 -13
  31. package/dist/vro-el-schema-form-dialog/useVroElSchemaFormDialog.js +27 -15
  32. package/dist/vro-el-schema-form-dialog/utils.d.ts +2 -0
  33. package/dist/vro-el-schema-form-dialog/utils.js +6 -0
  34. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +2 -2
  35. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +25 -24
  36. package/dist/vro-el-schema-form-drawer/function-call.js +2 -2
  37. package/dist/vro-el-schema-form-drawer/index.d.ts +1 -1
  38. package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.d.ts +2 -2
  39. package/dist/vro-el-select/index.d.ts +1 -1
  40. package/dist/vro-el-select/vro-el-select.vue.d.ts +1 -1
  41. package/dist/vro-el-with-config/index.d.ts +58 -11
  42. package/dist/vro-el-with-config/types.d.ts +7 -0
  43. package/dist/vro-el-with-config/types.js +8 -1
  44. package/dist/vro-el-with-config/vro-el-with-config.vue.d.ts +28 -2
  45. package/dist/vro-el-with-config/vro-el-with-config.vue.js +40 -19
  46. package/package.json +1 -1
@@ -1,5 +1,55 @@
1
1
  export * from './types';
2
- export declare const VroElWithConfig: import('@vrojs/base').WithInstall<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ export declare const VroElWithConfig: import('@vrojs/base').WithInstall<{
3
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
4
+ elConfigProps: {
5
+ type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
6
+ default: () => {};
7
+ };
8
+ vroConfigProps: {
9
+ type: import('vue').PropType<Partial<import('..').VroElConfigProviderProps>>;
10
+ default: () => {};
11
+ };
12
+ is: import('vue').PropType<string | import('vue').Component>;
13
+ props: {
14
+ type: import('vue').PropType<Record<string, any>>;
15
+ default: () => {};
16
+ };
17
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
18
+ props: Record<string, any>;
19
+ elConfigProps: Partial<import('element-plus').ConfigProviderProps>;
20
+ vroConfigProps: Partial<import('..').VroElConfigProviderProps>;
21
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
22
+ refComponent: unknown;
23
+ }, any, import('vue').ComponentProvideOptions, {
24
+ P: {};
25
+ B: {};
26
+ D: {};
27
+ C: {};
28
+ M: {};
29
+ Defaults: {};
30
+ }, Readonly<import('vue').ExtractPropTypes<{
31
+ elConfigProps: {
32
+ type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
33
+ default: () => {};
34
+ };
35
+ vroConfigProps: {
36
+ type: import('vue').PropType<Partial<import('..').VroElConfigProviderProps>>;
37
+ default: () => {};
38
+ };
39
+ is: import('vue').PropType<string | import('vue').Component>;
40
+ props: {
41
+ type: import('vue').PropType<Record<string, any>>;
42
+ default: () => {};
43
+ };
44
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
45
+ props: Record<string, any>;
46
+ elConfigProps: Partial<import('element-plus').ConfigProviderProps>;
47
+ vroConfigProps: Partial<import('..').VroElConfigProviderProps>;
48
+ }>;
49
+ __isFragment?: never;
50
+ __isTeleport?: never;
51
+ __isSuspense?: never;
52
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
3
53
  elConfigProps: {
4
54
  type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
5
55
  default: () => {};
@@ -9,20 +59,17 @@ export declare const VroElWithConfig: import('@vrojs/base').WithInstall<import('
9
59
  default: () => {};
10
60
  };
11
61
  is: import('vue').PropType<string | import('vue').Component>;
12
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
- elConfigProps: {
14
- type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
62
+ props: {
63
+ type: import('vue').PropType<Record<string, any>>;
15
64
  default: () => {};
16
65
  };
17
- vroConfigProps: {
18
- type: import('vue').PropType<Partial<import('..').VroElConfigProviderProps>>;
19
- default: () => {};
20
- };
21
- is: import('vue').PropType<string | import('vue').Component>;
22
- }>> & Readonly<{}>, {
66
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
67
+ props: Record<string, any>;
23
68
  elConfigProps: Partial<import('element-plus').ConfigProviderProps>;
24
69
  vroConfigProps: Partial<import('..').VroElConfigProviderProps>;
25
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
70
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
71
+ $slots: any;
72
+ })>;
26
73
  export default VroElWithConfig;
27
74
  export type VroElWithConfigInstance = InstanceType<typeof VroElWithConfig>;
28
75
  declare module 'vue' {
@@ -11,5 +11,12 @@ export declare const vroElWithConfigProps: {
11
11
  default: () => {};
12
12
  };
13
13
  is: PropType<string | Component>;
14
+ /**
15
+ * 透传给 is 对应组件的 props。顶层 attrs 仍会透传,用于兼容旧写法和事件监听。
16
+ */
17
+ props: {
18
+ type: PropType<Record<string, any>>;
19
+ default: () => {};
20
+ };
14
21
  };
15
22
  export type VroElWithConfigProps = ExtractPropTypes<typeof vroElWithConfigProps>;
@@ -7,7 +7,14 @@ const t = {
7
7
  type: Object,
8
8
  default: () => ({})
9
9
  },
10
- is: [String, Object]
10
+ is: [String, Object],
11
+ /**
12
+ * 透传给 is 对应组件的 props。顶层 attrs 仍会透传,用于兼容旧写法和事件监听。
13
+ */
14
+ props: {
15
+ type: Object,
16
+ default: () => ({})
17
+ }
11
18
  };
12
19
  export {
13
20
  t as vroElWithConfigProps
@@ -1,4 +1,13 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: any;
4
+ refs: {
5
+ refComponent: unknown;
6
+ };
7
+ rootEl: any;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
11
  elConfigProps: {
3
12
  type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
4
13
  default: () => {};
@@ -8,6 +17,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
8
17
  default: () => {};
9
18
  };
10
19
  is: import('vue').PropType<string | import('vue').Component>;
20
+ props: {
21
+ type: import('vue').PropType<Record<string, any>>;
22
+ default: () => {};
23
+ };
11
24
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
12
25
  elConfigProps: {
13
26
  type: import('vue').PropType<Partial<import('element-plus').ConfigProviderProps>>;
@@ -18,8 +31,21 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
18
31
  default: () => {};
19
32
  };
20
33
  is: import('vue').PropType<string | import('vue').Component>;
34
+ props: {
35
+ type: import('vue').PropType<Record<string, any>>;
36
+ default: () => {};
37
+ };
21
38
  }>> & Readonly<{}>, {
39
+ props: Record<string, any>;
22
40
  elConfigProps: Partial<import('element-plus').ConfigProviderProps>;
23
41
  vroConfigProps: Partial<import('..').VroElConfigProviderProps>;
24
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
43
+ refComponent: unknown;
44
+ }, any>;
45
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
46
  export default _default;
47
+ type __VLS_WithTemplateSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -1,33 +1,54 @@
1
- import { defineComponent as u, useAttrs as m, useSlots as g, ref as d, createBlock as C, openBlock as v, h as t } from "vue";
2
- import { ElConfigProvider as _ } from "element-plus";
3
- import { VroElConfigProvider as h } from "../vro-el-config-provider/index.js";
4
- import { vroElWithConfigProps as P } from "./types.js";
5
- const w = /* @__PURE__ */ u({
1
+ import { defineComponent as h, useAttrs as P, ref as _, createBlock as l, openBlock as u, unref as m, normalizeProps as n, guardReactiveProps as s, withCtx as i, createVNode as w, renderSlot as c, resolveDynamicComponent as y, mergeProps as k, createSlots as E, renderList as V } from "vue";
2
+ import { ElConfigProvider as $ } from "element-plus";
3
+ import { VroElConfigProvider as A } from "../vro-el-config-provider/index.js";
4
+ import { vroElWithConfigProps as B } from "./types.js";
5
+ const L = /* @__PURE__ */ h({
6
6
  name: "VroElWithConfig",
7
7
  inheritAttrs: !1,
8
8
  __name: "vro-el-with-config",
9
- props: P,
10
- setup(i, { expose: f }) {
11
- const r = i, a = m(), n = g(), o = d();
12
- f(
9
+ props: B,
10
+ setup(g, { expose: d }) {
11
+ const f = g, C = P(), t = _(), a = () => ({
12
+ ...f.props,
13
+ ...C
14
+ });
15
+ return d(
13
16
  new Proxy(
14
17
  {},
15
18
  {
16
- get(s, e) {
17
- return o.value?.[e];
19
+ get(e, o) {
20
+ const r = t.value;
21
+ if (r)
22
+ return o === "show" && typeof r.show == "function" ? () => r.show(a()) : r[o];
18
23
  },
19
- has(s, e) {
20
- return o.value ? e in o.value : !1;
24
+ has(e, o) {
25
+ return t.value ? o in t.value : !1;
21
26
  }
22
27
  }
23
28
  )
24
- );
25
- const l = () => r.is ? t(r.is, { ...a, ref: o }, n) : n.default?.(), p = () => t(h, r.vroConfigProps, {
26
- default: l
27
- }), c = () => t(_, r.elConfigProps, p);
28
- return (s, e) => (v(), C(c));
29
+ ), (e, o) => (u(), l(m($), n(s(e.elConfigProps)), {
30
+ default: i(() => [
31
+ w(m(A), n(s(e.vroConfigProps)), {
32
+ default: i(() => [
33
+ f.is ? (u(), l(y(e.is), k({ key: 0 }, a(), {
34
+ ref_key: "refComponent",
35
+ ref: t
36
+ }), E({ _: 2 }, [
37
+ V(e.$slots, (r, p) => ({
38
+ name: p,
39
+ fn: i((v) => [
40
+ c(e.$slots, p, n(s(v ?? {})))
41
+ ])
42
+ }))
43
+ ]), 1040)) : c(e.$slots, "default", { key: 1 })
44
+ ]),
45
+ _: 3
46
+ }, 16)
47
+ ]),
48
+ _: 3
49
+ }, 16));
29
50
  }
30
51
  });
31
52
  export {
32
- w as default
53
+ L as default
33
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vrojs/element-plus",
3
- "version": "0.0.30",
3
+ "version": "0.0.32",
4
4
  "description": "vrojs ui",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",