@vrojs/element-plus 0.0.7 → 0.0.9

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 (190) hide show
  1. package/dist/index.d.ts +5 -0
  2. package/dist/index.js +125 -83
  3. package/dist/locale/index.js +6 -7
  4. package/dist/locale/lang/en.d.ts +8 -0
  5. package/dist/locale/lang/en.js +8 -0
  6. package/dist/locale/lang/zh-cn.d.ts +8 -0
  7. package/dist/locale/lang/zh-cn.js +8 -0
  8. package/dist/locale/useLocale.d.ts +1 -48
  9. package/dist/locale/useLocale.js +16 -17
  10. package/dist/style/deps.js +7 -0
  11. package/dist/style/index.css +1 -1
  12. package/dist/style/index.js +7 -0
  13. package/dist/utils/elTableColumnProps.d.ts +149 -0
  14. package/dist/utils/elTableColumnProps.js +152 -0
  15. package/dist/utils/index.d.ts +1 -0
  16. package/dist/utils/index.js +4 -2
  17. package/dist/vro-el-checkbox-group/index.d.ts +1 -1
  18. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.d.ts +1 -1
  19. package/dist/vro-el-checkbox-group/vro-el-checkbox-group.vue.js +10 -10
  20. package/dist/vro-el-config-provider/config.d.ts +14 -0
  21. package/dist/vro-el-config-provider/config.js +36 -0
  22. package/dist/vro-el-config-provider/index.d.ts +16 -0
  23. package/dist/vro-el-config-provider/index.js +8 -2
  24. package/dist/vro-el-config-provider/types.d.ts +7 -0
  25. package/dist/vro-el-config-provider/types.js +7 -0
  26. package/dist/vro-el-config-provider/vro-el-config-provider.vue.d.ts +9 -0
  27. package/dist/vro-el-config-provider/vro-el-config-provider.vue.js +11 -11
  28. package/dist/vro-el-file-upload/index.d.ts +6 -6
  29. package/dist/vro-el-file-upload/style/index.css +1 -1
  30. package/dist/vro-el-file-upload/types.d.ts +9 -2
  31. package/dist/vro-el-file-upload/vro-el-file-upload.vue.d.ts +7 -6
  32. package/dist/vro-el-file-upload/vro-el-file-upload.vue.js +55 -51
  33. package/dist/vro-el-icon/index.d.ts +28 -40
  34. package/dist/vro-el-icon/style/css.js +1 -0
  35. package/dist/vro-el-icon/style/deps.js +1 -1
  36. package/dist/vro-el-icon/style/index.js +1 -1
  37. package/dist/vro-el-icon/types.d.ts +16 -13
  38. package/dist/vro-el-icon/types.js +8 -1
  39. package/dist/vro-el-icon/vro-el-icon.vue.d.ts +18 -27
  40. package/dist/vro-el-icon/vro-el-icon.vue.js +27 -23
  41. package/dist/vro-el-image/index.d.ts +10 -4
  42. package/dist/vro-el-image/style/css.js +4 -0
  43. package/dist/vro-el-image/style/index.css +1 -0
  44. package/dist/vro-el-image/style/index.js +4 -0
  45. package/dist/vro-el-image/types.d.ts +35 -0
  46. package/dist/vro-el-image/types.js +24 -1
  47. package/dist/vro-el-image/utils.d.ts +1 -1
  48. package/dist/vro-el-image/vro-el-image.vue.d.ts +7 -2
  49. package/dist/vro-el-image/vro-el-image.vue.js +55 -24
  50. package/dist/vro-el-image-upload/index.d.ts +1 -1
  51. package/dist/vro-el-image-upload/style/css.js +4 -0
  52. package/dist/vro-el-image-upload/style/index.css +1 -1
  53. package/dist/vro-el-image-upload/style/index.js +4 -0
  54. package/dist/vro-el-image-upload/types.d.ts +24 -7
  55. package/dist/vro-el-image-upload/types.js +21 -7
  56. package/dist/vro-el-image-upload/vro-el-image-upload.vue.d.ts +1 -1
  57. package/dist/vro-el-image-upload/vro-el-image-upload.vue.js +82 -68
  58. package/dist/vro-el-radio-group/index.d.ts +1 -1
  59. package/dist/vro-el-radio-group/vro-el-radio-group.vue.d.ts +1 -1
  60. package/dist/vro-el-radio-group/vro-el-radio-group.vue.js +12 -12
  61. package/dist/vro-el-schema-filter/index.d.ts +27 -31
  62. package/dist/vro-el-schema-filter/style/css.js +5 -0
  63. package/dist/vro-el-schema-filter/style/index.css +1 -1
  64. package/dist/vro-el-schema-filter/style/index.js +5 -0
  65. package/dist/vro-el-schema-filter/types.d.ts +17 -0
  66. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.d.ts +38 -43
  67. package/dist/vro-el-schema-filter/vro-el-schema-filter.vue.js +63 -44
  68. package/dist/vro-el-schema-form/index.d.ts +16 -18
  69. package/dist/vro-el-schema-form/style/css.js +5 -0
  70. package/dist/vro-el-schema-form/style/index.css +1 -1
  71. package/dist/vro-el-schema-form/style/index.js +5 -0
  72. package/dist/vro-el-schema-form/types.d.ts +66 -7
  73. package/dist/vro-el-schema-form/useVroElSchemaForm.d.ts +39 -40
  74. package/dist/vro-el-schema-form/useVroElSchemaForm.js +15 -13
  75. package/dist/vro-el-schema-form/vro-el-schema-form.vue.d.ts +11 -13
  76. package/dist/vro-el-schema-form/vro-el-schema-form.vue.js +79 -79
  77. package/dist/vro-el-schema-form-dialog/function-call.js +10 -7
  78. package/dist/vro-el-schema-form-dialog/index.d.ts +111 -142
  79. package/dist/vro-el-schema-form-dialog/style/css.js +5 -0
  80. package/dist/vro-el-schema-form-dialog/style/index.css +1 -1
  81. package/dist/vro-el-schema-form-dialog/style/index.js +5 -0
  82. package/dist/vro-el-schema-form-dialog/types.d.ts +25 -16
  83. package/dist/vro-el-schema-form-dialog/types.js +6 -11
  84. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.d.ts +92 -113
  85. package/dist/vro-el-schema-form-dialog/vro-el-schema-form-dialog.vue.js +83 -87
  86. package/dist/vro-el-schema-form-drawer/function-call.d.ts +4 -0
  87. package/dist/vro-el-schema-form-drawer/function-call.js +20 -0
  88. package/dist/vro-el-schema-form-drawer/index.d.ts +2207 -0
  89. package/dist/vro-el-schema-form-drawer/index.js +16 -0
  90. package/dist/vro-el-schema-form-drawer/injection.d.ts +9 -0
  91. package/dist/vro-el-schema-form-drawer/injection.js +9 -0
  92. package/dist/vro-el-schema-form-drawer/style/css.d.ts +0 -0
  93. package/dist/vro-el-schema-form-drawer/style/css.js +24 -0
  94. package/dist/vro-el-schema-form-drawer/style/deps.d.ts +0 -0
  95. package/dist/vro-el-schema-form-drawer/style/deps.js +24 -0
  96. package/dist/vro-el-schema-form-drawer/style/index.css +1 -0
  97. package/dist/vro-el-schema-form-drawer/style/index.d.ts +0 -0
  98. package/dist/vro-el-schema-form-drawer/style/index.js +48 -0
  99. package/dist/vro-el-schema-form-drawer/types.d.ts +110 -0
  100. package/dist/vro-el-schema-form-drawer/types.js +75 -0
  101. package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.d.ts +14 -0
  102. package/dist/vro-el-schema-form-drawer/useVroElSchemaFormDrawer.js +18 -0
  103. package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.d.ts +1832 -0
  104. package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue.js +134 -0
  105. package/dist/vro-el-schema-form-drawer/vro-el-schema-form-drawer.vue2.js +4 -0
  106. package/dist/vro-el-select/index.d.ts +11 -11
  107. package/dist/vro-el-select/vro-el-select.vue.d.ts +11 -11
  108. package/dist/vro-el-select/vro-el-select.vue.js +11 -11
  109. package/dist/vro-el-skeleton/index.d.ts +9 -73
  110. package/dist/vro-el-skeleton/style/index.css +1 -1
  111. package/dist/vro-el-skeleton/types.d.ts +32 -24
  112. package/dist/vro-el-skeleton/types.js +3 -23
  113. package/dist/vro-el-skeleton/vro-el-skeleton.vue.d.ts +7 -48
  114. package/dist/vro-el-skeleton/vro-el-skeleton.vue.js +48 -46
  115. package/dist/vro-el-table/createUseVroElTable.d.ts +7 -0
  116. package/dist/vro-el-table/createUseVroElTable.js +7 -0
  117. package/dist/vro-el-table/index.js +13 -0
  118. package/dist/vro-el-table/style/css.d.ts +0 -0
  119. package/dist/vro-el-table/style/css.js +29 -0
  120. package/dist/vro-el-table/style/deps.d.ts +0 -0
  121. package/dist/vro-el-table/style/deps.js +28 -0
  122. package/dist/vro-el-table/style/index.css +1 -0
  123. package/dist/vro-el-table/style/index.d.ts +0 -0
  124. package/dist/vro-el-table/style/index.js +57 -0
  125. package/dist/vro-el-table/types.d.ts +97 -0
  126. package/dist/vro-el-table/types.js +66 -0
  127. package/dist/vro-el-table/useVroElTable.d.ts +44 -0
  128. package/dist/vro-el-table/useVroElTable.js +49 -0
  129. package/dist/vro-el-table/vro-el-table.vue.js +94 -0
  130. package/dist/vro-el-table/vro-el-table.vue2.js +4 -0
  131. package/dist/vro-el-table-actions-column/index.d.ts +269 -0
  132. package/dist/vro-el-table-actions-column/index.js +9 -0
  133. package/dist/vro-el-table-actions-column/style/css.d.ts +0 -0
  134. package/dist/vro-el-table-actions-column/style/css.js +4 -0
  135. package/dist/vro-el-table-actions-column/style/deps.d.ts +0 -0
  136. package/dist/vro-el-table-actions-column/style/deps.js +5 -0
  137. package/dist/vro-el-table-actions-column/style/index.css +1 -0
  138. package/dist/vro-el-table-actions-column/style/index.d.ts +0 -0
  139. package/dist/vro-el-table-actions-column/style/index.js +9 -0
  140. package/dist/vro-el-table-actions-column/types.d.ts +139 -0
  141. package/dist/vro-el-table-actions-column/types.js +37 -0
  142. package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.d.ts +167 -0
  143. package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue.js +101 -0
  144. package/dist/vro-el-table-actions-column/vro-el-table-actions-column.vue2.js +4 -0
  145. package/dist/vro-el-table-column/index.d.ts +257 -0
  146. package/dist/vro-el-table-column/index.js +9 -0
  147. package/dist/vro-el-table-column/style/css.d.ts +0 -0
  148. package/dist/vro-el-table-column/style/css.js +6 -0
  149. package/dist/vro-el-table-column/style/deps.d.ts +0 -0
  150. package/dist/vro-el-table-column/style/deps.js +1 -0
  151. package/dist/vro-el-table-column/style/index.css +1 -0
  152. package/dist/vro-el-table-column/style/index.d.ts +0 -0
  153. package/dist/vro-el-table-column/style/index.js +7 -0
  154. package/dist/vro-el-table-column/types.d.ts +141 -0
  155. package/dist/vro-el-table-column/types.js +43 -0
  156. package/dist/vro-el-table-column/vro-el-table-column.vue.d.ts +161 -0
  157. package/dist/vro-el-table-column/vro-el-table-column.vue.js +66 -0
  158. package/dist/vro-el-table-column/vro-el-table-column.vue2.js +4 -0
  159. package/dist/vro-el-table-column-group/index.d.ts +23 -0
  160. package/dist/vro-el-table-column-group/index.js +13 -0
  161. package/dist/vro-el-table-column-group/style/css.d.ts +0 -0
  162. package/dist/vro-el-table-column-group/style/css.js +9 -0
  163. package/dist/vro-el-table-column-group/style/deps.d.ts +0 -0
  164. package/dist/vro-el-table-column-group/style/deps.js +5 -0
  165. package/dist/vro-el-table-column-group/style/index.d.ts +0 -0
  166. package/dist/vro-el-table-column-group/style/index.js +14 -0
  167. package/dist/vro-el-table-column-group/types.d.ts +87 -0
  168. package/dist/vro-el-table-column-group/types.js +12 -0
  169. package/dist/vro-el-table-column-group/useVroElTableColumnGroup.d.ts +2 -0
  170. package/dist/vro-el-table-column-group/useVroElTableColumnGroup.js +10 -0
  171. package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.d.ts +14 -0
  172. package/dist/vro-el-table-column-group/vro-el-table-column-group.vue.js +29 -0
  173. package/dist/vro-el-table-column-group/vro-el-table-column-group.vue2.js +4 -0
  174. package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.d.ts +2 -0
  175. package/dist/vro-el-table-column-group/vroElTableColumnGroupColumnManager.js +9 -0
  176. package/dist/vro-el-tags/index.d.ts +234 -187
  177. package/dist/vro-el-tags/style/css.js +1 -0
  178. package/dist/vro-el-tags/style/index.css +1 -0
  179. package/dist/vro-el-tags/style/index.js +1 -0
  180. package/dist/vro-el-tags/types.d.ts +37 -1
  181. package/dist/vro-el-tags/types.js +17 -1
  182. package/dist/vro-el-tags/vro-el-tags.vue.d.ts +219 -8
  183. package/dist/vro-el-tags/vro-el-tags.vue.js +55 -45
  184. package/dist/vro-el-tree/index.d.ts +3235 -32
  185. package/dist/vro-el-tree/style/index.css +1 -1
  186. package/dist/vro-el-tree/types.d.ts +124 -5
  187. package/dist/vro-el-tree/types.js +12 -6
  188. package/dist/vro-el-tree/vro-el-tree.vue.d.ts +6020 -20
  189. package/dist/vro-el-tree/vro-el-tree.vue.js +54 -36
  190. package/package.json +6 -6
@@ -1,14 +1,37 @@
1
1
  import { imageProps as r } from "element-plus";
2
2
  const o = {
3
3
  ...r,
4
+ /**
5
+ * 图片预览是否插入到 body。
6
+ */
4
7
  previewTeleported: {
5
8
  type: Boolean,
6
9
  default: !0
7
10
  },
11
+ /**
12
+ * 图片基础地址,会传入 normalizeSrc 统一处理。
13
+ */
8
14
  baseUrl: String,
15
+ /**
16
+ * 图片地址转换比例。
17
+ */
9
18
  ratio: [String, Number],
19
+ /**
20
+ * 预览图片地址转换比例,默认使用 ratio。
21
+ */
10
22
  previewRatio: [String, Number],
11
- normalizeSrc: Function
23
+ /**
24
+ * 图片地址转换方法。
25
+ */
26
+ normalizeSrc: Function,
27
+ /**
28
+ * 默认加载占位图标属性。
29
+ */
30
+ loadingProps: Object,
31
+ /**
32
+ * 默认加载失败图标属性。
33
+ */
34
+ iconProps: Object
12
35
  };
13
36
  export {
14
37
  o as vroElImageProps
@@ -1,2 +1,2 @@
1
1
  import { VroElImageProps } from './types';
2
- export declare const setVroElImageOptions: (value: Partial<Pick<VroElImageProps, "baseUrl" | "normalizeSrc">>) => Partial<Pick<VroElImageProps, "baseUrl" | "normalizeSrc">>, getVroElImageOptions: () => Partial<Pick<VroElImageProps, "baseUrl" | "normalizeSrc">>;
2
+ export declare const setVroElImageOptions: (value: Partial<Pick<VroElImageProps, "baseUrl" | "normalizeSrc" | "loadingProps" | "iconProps">>) => Partial<Pick<VroElImageProps, "baseUrl" | "normalizeSrc" | "loadingProps" | "iconProps">>, getVroElImageOptions: () => Partial<Pick<VroElImageProps, "baseUrl" | "normalizeSrc" | "loadingProps" | "iconProps">>;
@@ -1,6 +1,7 @@
1
+ import { VroElImageSlots } from './types';
1
2
  declare function __VLS_template(): {
2
3
  attrs: Partial<{}>;
3
- slots: Partial<Record<string, (_: any) => any>>;
4
+ slots: Readonly<VroElImageSlots> & VroElImageSlots;
4
5
  refs: {};
5
6
  rootEl: any;
6
7
  };
@@ -14,6 +15,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
14
15
  ratio: (NumberConstructor | StringConstructor)[];
15
16
  previewRatio: (NumberConstructor | StringConstructor)[];
16
17
  normalizeSrc: import('vue').PropType<import('./types').VroElImageNormalizeSrc>;
18
+ loadingProps: import('vue').PropType<Partial<import('@vrojs/base').VroLoadingProps>>;
19
+ iconProps: import('vue').PropType<Partial<import('..').VroElIconProps>>;
17
20
  hideOnClickModal: BooleanConstructor;
18
21
  src: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
19
22
  fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "" | "none" | "fill" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
@@ -60,6 +63,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
60
63
  ratio: (NumberConstructor | StringConstructor)[];
61
64
  previewRatio: (NumberConstructor | StringConstructor)[];
62
65
  normalizeSrc: import('vue').PropType<import('./types').VroElImageNormalizeSrc>;
66
+ loadingProps: import('vue').PropType<Partial<import('@vrojs/base').VroLoadingProps>>;
67
+ iconProps: import('vue').PropType<Partial<import('..').VroElIconProps>>;
63
68
  hideOnClickModal: BooleanConstructor;
64
69
  src: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
65
70
  fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropFinalized<StringConstructor, "" | "none" | "fill" | "contain" | "cover" | "scale-down", unknown, "", boolean>;
@@ -98,9 +103,9 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
98
103
  __epPropKey: true;
99
104
  };
100
105
  }>> & Readonly<{}>, {
106
+ src: string;
101
107
  previewTeleported: boolean;
102
108
  hideOnClickModal: boolean;
103
- src: string;
104
109
  fit: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "" | "fill" | "none" | "contain" | "cover" | "scale-down", unknown>;
105
110
  lazy: boolean;
106
111
  previewSrcList: string[];
@@ -1,32 +1,63 @@
1
- import { defineComponent as g, useSlots as d, computed as i, createBlock as v, openBlock as _, unref as P, mergeProps as S, createSlots as w, renderList as E, withCtx as I, renderSlot as h, normalizeProps as k, guardReactiveProps as B } from "vue";
2
- import { omitBy as b, isUndefined as x } from "@daysnap/utils";
3
- import { ElImage as y } from "element-plus";
4
- import { vroElImageProps as z } from "./types.js";
5
- import { getVroElImageOptions as C } from "./utils.js";
6
- const j = /* @__PURE__ */ g({
1
+ import { defineComponent as w, computed as n, createBlock as _, openBlock as L, unref as a, mergeProps as c, withCtx as m, renderSlot as d, createElementVNode as l, createVNode as v } from "vue";
2
+ import { omitBy as P, isUndefined as V, pick as E, typedKeys as I } from "@daysnap/utils";
3
+ import { VroLoading as y } from "@vrojs/base";
4
+ import { imageProps as S, ElImage as z } from "element-plus";
5
+ import { VroElIcon as B } from "../vro-el-icon/index.js";
6
+ import { vroElImageProps as H } from "./types.js";
7
+ import { getVroElImageOptions as k } from "./utils.js";
8
+ const x = { class: "vro-el-image-placeholder" }, C = { class: "vro-el-image-error" }, R = /* @__PURE__ */ w({
7
9
  name: "VroElImage",
8
10
  __name: "vro-el-image",
9
- props: z,
10
- setup(m) {
11
- const n = m, l = d(), p = i(() => Object.keys(l)), c = i(() => {
12
- let { ratio: o, previewRatio: s, previewSrcList: e, normalizeSrc: r, baseUrl: a, src: t, ...f } = {
13
- ...C(),
14
- ...b(n, x)
15
- };
16
- return r && (t = r({ src: t, ratio: o, baseUrl: a }), e?.length && (e = e.map(
17
- (u) => r({ src: u, ratio: s ?? o, baseUrl: a })
18
- ))), { ...f, src: t, previewSrcList: e };
11
+ props: H,
12
+ setup(g) {
13
+ const u = g, e = n(() => ({
14
+ ...k(),
15
+ ...P(u, V)
16
+ })), f = n(() => {
17
+ const { ratio: o, previewRatio: r, normalizeSrc: i, baseUrl: p } = e.value;
18
+ let { src: s, previewSrcList: t } = e.value;
19
+ return i && (s = i({ src: s, ratio: o, baseUrl: p }), t?.length && (t = t.map(
20
+ (h) => i({ src: h, ratio: r ?? o, baseUrl: p })
21
+ ))), { ...E(e.value, I(S)), src: s, previewSrcList: t };
19
22
  });
20
- return (o, s) => (_(), v(P(y), S(c.value, { class: "vro-el-image" }), w({ _: 2 }, [
21
- E(p.value, (e) => ({
22
- name: e,
23
- fn: I((r) => [
24
- h(o.$slots, e, k(B(r ?? {})))
23
+ return (o, r) => (L(), _(a(z), c(f.value, { class: "vro-el-image" }), {
24
+ placeholder: m(() => [
25
+ d(o.$slots, "placeholder", {}, () => [
26
+ l("div", x, [
27
+ v(a(y), c({ type: "image" }, e.value.loadingProps), null, 16)
28
+ ])
25
29
  ])
26
- }))
27
- ]), 1040));
30
+ ]),
31
+ error: m(() => [
32
+ d(o.$slots, "error", {}, () => [
33
+ l("div", C, [
34
+ v(a(B), c(e.value.iconProps, { class: "vro-el-image-error-icon" }), {
35
+ default: m(() => [...r[0] || (r[0] = [
36
+ l("svg", {
37
+ t: "1784873125909",
38
+ class: "icon",
39
+ viewBox: "0 0 1024 1024",
40
+ version: "1.1",
41
+ xmlns: "http://www.w3.org/2000/svg",
42
+ "p-id": "21481",
43
+ width: "256",
44
+ height: "256"
45
+ }, [
46
+ l("path", {
47
+ d: "M551.424 605.696L412.16 457.216l-44.544-44.544c-2.048 1.024-3.584 3.584-5.632 5.632L73.216 767.488V172.032c2.048-15.872 14.848-26.112 29.696-26.112H496.64l64-73.216H64c-35.328 0-64 28.16-64 65.024v749.056c0 35.328 28.672 65.024 64 65.024h221.696L552.96 643.584c8.704-10.752 8.704-27.648-1.536-37.888zM757.76 437.76c60.416 0 109.568-49.152 109.568-109.568S818.176 218.624 757.76 218.624s-109.568 49.152-109.568 109.568S697.344 437.76 757.76 437.76zM960 72.704H746.496c-1.024 2.048-2.048 5.632-4.608 6.656l-56.832 66.048H921.6c15.872 0 28.672 11.264 29.696 27.648L952.32 768 723.968 523.776c-6.656-8.192-16.896-13.824-29.696-13.824-11.264 0-19.456 5.632-29.696 12.8l-10.24 8.192 67.584 71.68c10.24 10.24 10.24 26.112 1.024 37.888L453.632 949.76h506.88c35.328 0 64-28.672 64-65.024v-747.52C1024 100.864 995.328 72.704 960 72.704z",
48
+ "p-id": "21482"
49
+ })
50
+ ], -1)
51
+ ])]),
52
+ _: 1
53
+ }, 16)
54
+ ])
55
+ ])
56
+ ]),
57
+ _: 3
58
+ }, 16));
28
59
  }
29
60
  });
30
61
  export {
31
- j as default
62
+ R as default
32
63
  };
@@ -37,8 +37,8 @@ export declare const VroElImageUpload: import('@vrojs/base').WithInstall<import(
37
37
  }>> & Readonly<{
38
38
  "onUpdate:modelValue"?: ((value: import('./types').VroElImageUploadModelValue) => any) | undefined;
39
39
  }>, {
40
- disabled: boolean;
41
40
  modelValue: import('./types').VroElImageUploadModelValue;
41
+ disabled: boolean;
42
42
  max: number;
43
43
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>>;
44
44
  export default VroElImageUpload;
@@ -1,5 +1,9 @@
1
1
  import '../../style/base.css';
2
2
  import './index.css';
3
+ import '../../vro-el-image/style/index.css';
3
4
  /* empty css */
5
+ import "@vrojs/base/src/vro-loading/style/css";
6
+ import "@vrojs/base/src/vro-icon/style/css";
7
+ /* empty css */
4
8
  /* empty css */
5
9
  /* empty css */
@@ -1 +1 @@
1
- .vro-el-image-upload-content{display:flex;flex-wrap:wrap;margin-top:-10px}.vro-el-image-upload-item{cursor:pointer;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;margin-top:10px;margin-right:10px;font-size:24px;border-radius:4px;width:100px;height:100px;border:1px #ccc dashed}.vro-el-image-upload-item .vro-el-image-upload-image,.vro-el-image-upload-item img{position:absolute;width:100%;height:100%;top:0;left:0;object-position:center;object-fit:cover;border-radius:4px;transform:translateZ(0);background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAlQTFRFyMjI////1tbWF77ztQAAABZJREFUeJxjYGAIDWUggggNbWAgggAA918Ooanz2WEAAAAASUVORK5CYII=) center!important;background-size:j(8)!important}.vro-el-image-upload-item input{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:4px;opacity:0}.vro-el-image-upload-clear{position:absolute;color:#fff;border-radius:50%;cursor:pointer;font-size:20px;right:-6px;top:-6px;background:red}
1
+ :root,:host{--vro-el-image-upload-gap: 10px;--vro-el-image-upload-item-size: 100px;--vro-el-image-upload-item-radius: 4px;--vro-el-image-upload-item-border-color: var(--el-border-color);--vro-el-image-upload-item-icon-size: 24px;--vro-el-image-upload-checkerboard-size: 8px;--vro-el-image-upload-clear-size: 20px;--vro-el-image-upload-clear-color: #fff;--vro-el-image-upload-clear-background: var(--el-color-danger)}.vro-el-image-upload-content{display:flex;flex-wrap:wrap;margin-top:calc(var(--vro-el-image-upload-gap) * -1)}.vro-el-image-upload-item{cursor:pointer;position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:var(--vro-el-image-upload-item-size);height:var(--vro-el-image-upload-item-size);margin-top:var(--vro-el-image-upload-gap);margin-right:var(--vro-el-image-upload-gap);font-size:var(--vro-el-image-upload-item-icon-size);border:1px dashed var(--vro-el-image-upload-item-border-color);border-radius:var(--vro-el-image-upload-item-radius)}.vro-el-image-upload-item .vro-el-image-upload-image,.vro-el-image-upload-item img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAlQTFRFyMjI////1tbWF77ztQAAABZJREFUeJxjYGAIDWUggggNbWAgggAA918Ooanz2WEAAAAASUVORK5CYII=) center!important;background-size:var(--vro-el-image-upload-checkerboard-size)!important;border-radius:var(--vro-el-image-upload-item-radius);transform:translateZ(0)}.vro-el-image-upload-item input{cursor:pointer;position:absolute;top:0;left:0;width:100%;height:100%;border-radius:var(--vro-el-image-upload-item-radius);opacity:0}.vro-el-image-upload-clear{position:absolute;top:-6px;right:-6px;color:var(--vro-el-image-upload-clear-color);font-size:var(--vro-el-image-upload-clear-size);background:var(--vro-el-image-upload-clear-background);border-radius:50%;cursor:pointer}
@@ -1,9 +1,13 @@
1
1
  import '../../style/base.css';
2
2
  import './index.css';
3
+ import '../../vro-el-image/style/index.css';
3
4
  import "element-plus/es/components/image/style/css";
4
5
  import "element-plus/es/components/checkbox/style/css";
5
6
  import "element-plus/es/components/icon/style/css";
6
7
  import "element-plus/es/components/loading/style/css";
7
8
  /* empty css */
9
+ import "@vrojs/base/src/vro-loading/style/css";
10
+ import "@vrojs/base/src/vro-icon/style/css";
11
+ /* empty css */
8
12
  /* empty css */
9
13
  /* empty css */
@@ -13,28 +13,45 @@ export interface VroElImageUploadCallback<T = any> {
13
13
  params: T;
14
14
  }): Promise<VroElImageUploadUploadResult>;
15
15
  }
16
+ export interface VroElImageUploadEmits {
17
+ 'update:modelValue': [value: VroElImageUploadModelValue];
18
+ }
16
19
  export declare const vroElImageUploadProps: {
17
- /** 绑定值,字符串为单图远程地址,数组为多图或本地 File 列表 */
20
+ /**
21
+ * 绑定值,字符串为单图远程地址,数组为多图或本地 File 列表。
22
+ */
18
23
  modelValue: {
19
24
  type: PropType<VroElImageUploadModelValue>;
20
25
  default: string;
21
26
  };
22
- /** 最多可上传的图片数量 */
27
+ /**
28
+ * 最多可上传的图片数量。
29
+ */
23
30
  max: {
24
31
  type: NumberConstructor;
25
32
  default: number;
26
33
  };
27
- /** 是否禁用上传、删除和排序 */
34
+ /**
35
+ * 是否禁用上传、删除和排序。
36
+ */
28
37
  disabled: BooleanConstructor;
29
- /** 是否显示压缩开关,传入对象时可作为响应式默认值 */
38
+ /**
39
+ * 是否显示压缩开关,传入对象时可作为响应式默认值。
40
+ */
30
41
  compressible: PropType<boolean | {
31
42
  value: boolean;
32
43
  }>;
33
- /** 上传时透传给 upload 回调的自定义参数 */
44
+ /**
45
+ * 上传时透传给 upload 回调的自定义参数。
46
+ */
34
47
  params: PropType<Record<string, any>>;
35
- /** 透传给 Element Plus Image 的属性 */
48
+ /**
49
+ * 透传给 VroElImage 的属性。
50
+ */
36
51
  imageProps: PropType<Partial<VroElImageProps>>;
37
- /** 自定义上传方法,默认返回 File 列表用于本地预览和后续业务处理 */
52
+ /**
53
+ * 自定义上传方法,默认返回 File 列表用于本地预览和后续业务处理。
54
+ */
38
55
  upload: PropType<VroElImageUploadCallback>;
39
56
  };
40
57
  export type VroElImageUploadProps = ExtractPropTypes<typeof vroElImageUploadProps>;
@@ -1,23 +1,37 @@
1
1
  const e = {
2
- /** 绑定值,字符串为单图远程地址,数组为多图或本地 File 列表 */
2
+ /**
3
+ * 绑定值,字符串为单图远程地址,数组为多图或本地 File 列表。
4
+ */
3
5
  modelValue: {
4
6
  type: [String, Array],
5
7
  default: ""
6
8
  },
7
- /** 最多可上传的图片数量 */
9
+ /**
10
+ * 最多可上传的图片数量。
11
+ */
8
12
  max: {
9
13
  type: Number,
10
14
  default: 1
11
15
  },
12
- /** 是否禁用上传、删除和排序 */
16
+ /**
17
+ * 是否禁用上传、删除和排序。
18
+ */
13
19
  disabled: Boolean,
14
- /** 是否显示压缩开关,传入对象时可作为响应式默认值 */
20
+ /**
21
+ * 是否显示压缩开关,传入对象时可作为响应式默认值。
22
+ */
15
23
  compressible: [Boolean, Object],
16
- /** 上传时透传给 upload 回调的自定义参数 */
24
+ /**
25
+ * 上传时透传给 upload 回调的自定义参数。
26
+ */
17
27
  params: Object,
18
- /** 透传给 Element Plus Image 的属性 */
28
+ /**
29
+ * 透传给 VroElImage 的属性。
30
+ */
19
31
  imageProps: Object,
20
- /** 自定义上传方法,默认返回 File 列表用于本地预览和后续业务处理 */
32
+ /**
33
+ * 自定义上传方法,默认返回 File 列表用于本地预览和后续业务处理。
34
+ */
21
35
  upload: Function
22
36
  };
23
37
  export {
@@ -36,8 +36,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
36
36
  }>> & Readonly<{
37
37
  "onUpdate:modelValue"?: ((value: VroElImageUploadModelValue) => any) | undefined;
38
38
  }>, {
39
- disabled: boolean;
40
39
  modelValue: VroElImageUploadModelValue;
40
+ disabled: boolean;
41
41
  max: number;
42
42
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
43
43
  export default _default;
@@ -1,126 +1,140 @@
1
- import { defineComponent as A, computed as g, ref as M, onBeforeUnmount as O, createElementBlock as m, openBlock as s, createVNode as i, createBlock as k, createCommentVNode as V, unref as o, withCtx as c, withDirectives as T, Fragment as j, renderList as S, mergeProps as z, createElementVNode as K, createTextVNode as q, toDisplayString as G } from "vue";
2
- import { omitBy as H, isUndefined as J, isBoolean as Q, isArray as p } from "@daysnap/utils";
3
- import { CircleCloseFilled as W, Plus as X } from "@element-plus/icons-vue";
4
- import { useAsyncTask as Y } from "@vrojs/use";
5
- import { ElLoading as Z, ElIcon as w, ElCheckbox as ee } from "element-plus";
6
- import { VueDraggable as le } from "vue-draggable-plus";
7
- import { useLocale as ae } from "../locale/useLocale.js";
8
- import { VroElImage as oe } from "../vro-el-image/index.js";
9
- import { vroElImageUploadProps as te } from "./types.js";
10
- import { getVroElImageUploadOptions as re } from "./utils.js";
11
- const se = { class: "vro-el-image-upload" }, ue = {
1
+ import { defineComponent as j, computed as g, ref as A, watch as M, onBeforeUnmount as T, createElementBlock as c, openBlock as i, createVNode as d, createBlock as w, createCommentVNode as V, unref as t, withCtx as p, withDirectives as S, Fragment as z, renderList as K, mergeProps as q, createElementVNode as G, createTextVNode as H, toDisplayString as J } from "vue";
2
+ import { omitBy as Q, isUndefined as W, isBoolean as X, isArray as v } from "@daysnap/utils";
3
+ import { CircleCloseFilled as Y, Plus as Z } from "@element-plus/icons-vue";
4
+ import { useAsyncTask as ee } from "@vrojs/use";
5
+ import { ElLoading as le, ElIcon as E, ElCheckbox as ae } from "element-plus";
6
+ import { VueDraggable as oe } from "vue-draggable-plus";
7
+ import { useLocale as te } from "../locale/useLocale.js";
8
+ import { VroElImage as re } from "../vro-el-image/index.js";
9
+ import { vroElImageUploadProps as se } from "./types.js";
10
+ import { getVroElImageUploadOptions as ue } from "./utils.js";
11
+ const ie = { class: "vro-el-image-upload" }, ne = {
12
12
  key: 0,
13
13
  class: "vro-el-image-upload-item vro-el-image-upload-btn"
14
- }, ie = ["multiple"], ye = /* @__PURE__ */ A({
14
+ }, de = ["disabled", "multiple"], he = /* @__PURE__ */ j({
15
15
  name: "VroElImageUpload",
16
16
  __name: "vro-el-image-upload",
17
- props: te,
17
+ props: se,
18
18
  emits: ["update:modelValue"],
19
- setup(E, { emit: x }) {
20
- const v = x, C = E, { t: L } = ae(), n = /* @__PURE__ */ new Map(), U = async (e) => e, a = g(() => {
19
+ setup(L, { emit: C }) {
20
+ const f = C, x = L, { t: P } = te(), r = /* @__PURE__ */ new Map(), U = async (e) => e, a = g(() => {
21
21
  const {
22
22
  compressible: e = !1,
23
23
  upload: l = U,
24
- ...t
24
+ ...o
25
25
  } = {
26
- ...re(),
27
- ...H(C, J)
26
+ ...ue(),
27
+ ...Q(x, W)
28
28
  };
29
29
  return {
30
30
  upload: l,
31
31
  compressible: e,
32
- compress: Q(e) ? e : e.value,
33
- ...t
32
+ compress: X(e) ? e : e.value,
33
+ ...o
34
34
  };
35
- }), B = Z.directive, f = M(a.value.compress), u = g(() => {
35
+ }), $ = le.directive, m = A(a.value.compress), s = g(() => {
36
36
  const { modelValue: e } = a.value;
37
- return p(e) ? e : e ? [e] : [];
38
- }), y = g(() => u.value.map((e) => I(e))), I = (e) => {
37
+ return v(e) ? e : e ? [e] : [];
38
+ }), b = g(() => s.value.map((e) => B(e))), B = (e) => {
39
39
  if (typeof e == "string")
40
40
  return e;
41
- let l = n.get(e);
42
- return l || (l = URL.createObjectURL(e), n.set(e, l)), l;
43
- }, P = (e, l) => typeof e == "string" ? e : `${e.name}-${e.size}-${e.lastModified}-${l}`, $ = (e) => e.some((l) => l instanceof File), D = (e) => {
44
- p(a.value.modelValue) && v("update:modelValue", e);
45
- }, F = (e) => {
41
+ let l = r.get(e);
42
+ return l || (l = URL.createObjectURL(e), r.set(e, l)), l;
43
+ }, I = (e, l) => typeof e == "string" ? `${e}-${l}` : `${e.name}-${e.size}-${e.lastModified}-${l}`, R = (e) => {
44
+ if (typeof e == "string")
45
+ return;
46
+ const l = r.get(e);
47
+ l && (URL.revokeObjectURL(l), r.delete(e));
48
+ }, D = (e) => e.some((l) => l instanceof File), F = (e) => {
49
+ v(a.value.modelValue) && f("update:modelValue", e);
50
+ }, N = (e) => {
46
51
  let l = "";
47
- p(a.value.modelValue) && (l = [...a.value.modelValue], l.splice(e, 1)), v("update:modelValue", l);
48
- }, { loading: N, trigger: b } = Y(
52
+ const o = s.value[e];
53
+ o && R(o), v(a.value.modelValue) && (l = [...a.value.modelValue], l.splice(e, 1)), f("update:modelValue", l);
54
+ }, { loading: y, trigger: h } = ee(
49
55
  async (e) => {
50
- const l = e.target, t = Array.from(l.files ?? []);
51
- if (l.value = "", !t?.length)
56
+ const l = e.target, o = Array.from(l.files ?? []);
57
+ if (l.value = "", !o?.length)
52
58
  return;
53
- const { max: r, upload: _ = U, params: R } = a.value, d = await _(t.slice(0, r - u.value.length), {
54
- compress: f.value,
55
- params: R
59
+ const { max: u, upload: k = U, params: O } = a.value, n = await k(o.slice(0, u - s.value.length), {
60
+ compress: m.value,
61
+ params: O
56
62
  });
57
- let h = $(d) ? d : d[0];
58
- p(a.value.modelValue) && (h = [...a.value.modelValue, ...d]), v("update:modelValue", h);
63
+ if (!n.length)
64
+ return;
65
+ let _ = D(n) ? n : n[0];
66
+ v(a.value.modelValue) && (_ = [...a.value.modelValue, ...n]), f("update:modelValue", _);
59
67
  },
60
68
  {
61
69
  throwError: !0
62
70
  }
63
71
  );
64
- return O(() => {
65
- n.forEach((e) => URL.revokeObjectURL(e)), n.clear();
66
- }), (e, l) => (s(), m("div", se, [
67
- i(o(le), {
72
+ return M(
73
+ () => a.value.compress,
74
+ (e) => {
75
+ m.value = e;
76
+ }
77
+ ), T(() => {
78
+ r.forEach((e) => URL.revokeObjectURL(e)), r.clear();
79
+ }), (e, l) => (i(), c("div", ie, [
80
+ d(t(oe), {
68
81
  class: "vro-el-image-upload-content",
69
82
  disabled: a.value.disabled || a.value.max <= 1,
70
83
  animation: 150,
71
- "model-value": u.value,
84
+ "model-value": s.value,
72
85
  filter: ".vro-el-image-upload-btn",
73
- "onUpdate:modelValue": D
86
+ "onUpdate:modelValue": F
74
87
  }, {
75
- default: c(() => [
76
- (s(!0), m(j, null, S(u.value, (t, r) => (s(), m("div", {
88
+ default: p(() => [
89
+ (i(!0), c(z, null, K(s.value, (o, u) => (i(), c("div", {
77
90
  class: "vro-el-image-upload-item",
78
- key: P(t, r)
91
+ key: I(o, u)
79
92
  }, [
80
- i(o(oe), z({ ref_for: !0 }, a.value.imageProps, {
93
+ d(t(re), q({ ref_for: !0 }, a.value.imageProps, {
81
94
  class: "vro-el-image-upload-image",
82
- src: y.value[r],
83
- "preview-src-list": y.value,
84
- "initial-index": r
95
+ src: b.value[u],
96
+ "preview-src-list": b.value,
97
+ "initial-index": u
85
98
  }), null, 16, ["src", "preview-src-list", "initial-index"]),
86
- a.value.disabled ? V("", !0) : (s(), k(o(w), {
99
+ a.value.disabled ? V("", !0) : (i(), w(t(E), {
87
100
  key: 0,
88
101
  class: "vro-el-image-upload-clear",
89
- onClick: (_) => F(r)
102
+ onClick: (k) => N(u)
90
103
  }, {
91
- default: c(() => [
92
- i(o(W))
104
+ default: p(() => [
105
+ d(t(Y))
93
106
  ]),
94
107
  _: 1
95
108
  }, 8, ["onClick"]))
96
109
  ]))), 128)),
97
- u.value.length < a.value.max && !a.value.disabled ? T((s(), m("div", ue, [
98
- i(o(w), { class: "vro-el-image-upload-add" }, {
99
- default: c(() => [
100
- i(o(X))
110
+ s.value.length < a.value.max && !a.value.disabled ? S((i(), c("div", ne, [
111
+ d(t(E), { class: "vro-el-image-upload-add" }, {
112
+ default: p(() => [
113
+ d(t(Z))
101
114
  ]),
102
115
  _: 1
103
116
  }),
104
- K("input", {
117
+ G("input", {
105
118
  type: "file",
106
119
  accept: "image/*",
120
+ disabled: t(y),
107
121
  multiple: a.value.max > 1,
108
122
  onChange: l[0] || (l[0] = //@ts-ignore
109
- (...t) => o(b) && o(b)(...t))
110
- }, null, 40, ie)
123
+ (...o) => t(h) && t(h)(...o))
124
+ }, null, 40, de)
111
125
  ])), [
112
- [o(B), o(N)]
126
+ [t($), t(y)]
113
127
  ]) : V("", !0)
114
128
  ]),
115
129
  _: 1
116
130
  }, 8, ["disabled", "model-value"]),
117
- !a.value.disabled && a.value.compressible ? (s(), k(o(ee), {
131
+ !a.value.disabled && a.value.compressible ? (i(), w(t(ae), {
118
132
  key: 0,
119
- modelValue: f.value,
120
- "onUpdate:modelValue": l[1] || (l[1] = (t) => f.value = t)
133
+ modelValue: m.value,
134
+ "onUpdate:modelValue": l[1] || (l[1] = (o) => m.value = o)
121
135
  }, {
122
- default: c(() => [
123
- q(G(o(L)("imageUpload.compressText")), 1)
136
+ default: p(() => [
137
+ H(J(t(P)("imageUpload.compressText")), 1)
124
138
  ]),
125
139
  _: 1
126
140
  }, 8, ["modelValue"])) : V("", !0)
@@ -128,5 +142,5 @@ const se = { class: "vro-el-image-upload" }, ue = {
128
142
  }
129
143
  });
130
144
  export {
131
- ye as default
145
+ he as default
132
146
  };
@@ -62,9 +62,9 @@ export declare const VroElRadioGroup: import('@vrojs/base').WithInstall<import('
62
62
  name: string;
63
63
  type: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "button" | "radio", unknown>;
64
64
  props: import('element-plus').radioOptionProp;
65
+ modelValue: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown>;
65
66
  id: string;
66
67
  disabled: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
67
- modelValue: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown>;
68
68
  labelKey: string;
69
69
  valueKey: string;
70
70
  textColor: string;
@@ -61,9 +61,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
61
61
  name: string;
62
62
  type: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<StringConstructor, "button" | "radio", unknown>;
63
63
  props: import('element-plus').radioOptionProp;
64
+ modelValue: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown>;
64
65
  id: string;
65
66
  disabled: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
66
- modelValue: import('element-plus/es/utils/vue/props/types.mjs').EpPropMergeType<readonly [StringConstructor, NumberConstructor, BooleanConstructor], unknown, unknown>;
67
67
  labelKey: string;
68
68
  valueKey: string;
69
69
  textColor: string;
@@ -1,26 +1,26 @@
1
- import { defineComponent as i, computed as f, createBlock as l, openBlock as a, unref as t, mergeProps as u, withCtx as p, createElementBlock as g, Fragment as v, renderList as c, createTextVNode as k, toDisplayString as y } from "vue";
2
- import { pick as E } from "@daysnap/utils";
3
- import { radioGroupProps as V, ElRadioGroup as G, ElRadio as P } from "element-plus";
4
- import { vroElRadioGroupProps as R } from "./types.js";
5
- const $ = /* @__PURE__ */ i({
1
+ import { defineComponent as i, computed as f, createBlock as l, openBlock as a, unref as t, mergeProps as u, withCtx as p, createElementBlock as g, Fragment as v, renderList as y, createTextVNode as c, toDisplayString as k } from "vue";
2
+ import { pick as E, typedKeys as V } from "@daysnap/utils";
3
+ import { radioGroupProps as G, ElRadioGroup as P, ElRadio as R } from "element-plus";
4
+ import { vroElRadioGroupProps as B } from "./types.js";
5
+ const h = /* @__PURE__ */ i({
6
6
  name: "VroElRadioGroup",
7
7
  __name: "vro-el-radio-group",
8
- props: R,
8
+ props: B,
9
9
  emits: ["update:modelValue", "change"],
10
10
  setup(m) {
11
- const n = m, s = f(() => E(n, Object.keys(V)));
12
- return (r, o) => (a(), l(t(G), u(s.value, {
11
+ const n = m, d = f(() => E(n, V(G)));
12
+ return (r, o) => (a(), l(t(P), u(d.value, {
13
13
  class: "vro-el-radio-group",
14
14
  "onUpdate:modelValue": o[0] || (o[0] = (e) => r.$emit("update:modelValue", e)),
15
15
  onChange: o[1] || (o[1] = (e) => r.$emit("change", e))
16
16
  }), {
17
17
  default: p(() => [
18
- (a(!0), g(v, null, c(r.options, (e, d) => (a(), l(t(P), u({ ref_for: !0 }, e.props, {
19
- key: d,
18
+ (a(!0), g(v, null, y(r.options, (e, s) => (a(), l(t(R), u({ ref_for: !0 }, e.props, {
19
+ key: s,
20
20
  value: e[r.valueKey || "value"] ?? e
21
21
  }), {
22
22
  default: p(() => [
23
- k(y(e[r.labelKey || "label"] ?? e), 1)
23
+ c(k(e[r.labelKey || "label"] ?? e), 1)
24
24
  ]),
25
25
  _: 2
26
26
  }, 1040, ["value"]))), 128))
@@ -30,5 +30,5 @@ const $ = /* @__PURE__ */ i({
30
30
  }
31
31
  });
32
32
  export {
33
- $ as default
33
+ h as default
34
34
  };