@vunk/form 2.14.15 → 2.14.17

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.
@@ -1,7 +1,7 @@
1
+ import { defineComponent, computed, ref, watch, nextTick, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, mergeProps, toHandlers, createSlots, createElementBlock, Fragment, renderList, renderSlot, resolveDynamicComponent, createCommentVNode, h } from 'vue';
1
2
  import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
2
3
  import { selectProps, selectEmits, createSelectBindProps, createSelectOnEmits } from '@vunk/form/shared/element-plus';
3
- import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
4
- import { defineComponent, computed, ref, watch, nextTick, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, mergeProps, toHandlers, createSlots, createElementBlock, Fragment, renderList, resolveDynamicComponent, createCommentVNode, renderSlot } from 'vue';
4
+ import { bindPropsFactory, onEmitsFactory, vOn } from '@vunk/core/shared/utils-vue';
5
5
  import { ElSelect, ElOption } from 'element-plus';
6
6
  import { isNotEmptyObject, isPlainObject } from '@vunk/core/shared/utils-object';
7
7
  import { useComputedReadonly } from '@vunk/form/composables';
@@ -30,7 +30,8 @@ const props = {
30
30
  stringify: {
31
31
  type: Boolean,
32
32
  default: false
33
- }
33
+ },
34
+ slots: null
34
35
  };
35
36
  const createBindProps = bindPropsFactory(props);
36
37
  const emits = {
@@ -46,7 +47,7 @@ var ctx = /*#__PURE__*/Object.freeze({
46
47
  props: props
47
48
  });
48
49
 
49
- var _sfc_main = defineComponent({
50
+ var _sfc_main$1 = defineComponent({
50
51
  name: "VkfSelect",
51
52
  components: {
52
53
  VkfFormItem,
@@ -162,9 +163,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
162
163
  mergeProps({ ref_for: true }, item, {
163
164
  key: item.key
164
165
  }),
165
- null,
166
- 16
167
- /* FULL_PROPS */
166
+ {
167
+ default: withCtx(() => [
168
+ renderSlot(_ctx.$slots, "option", mergeProps({ ref_for: true }, item))
169
+ ]),
170
+ _: 2
171
+ /* DYNAMIC */
172
+ },
173
+ 1040
174
+ /* FULL_PROPS, DYNAMIC_SLOTS */
168
175
  );
169
176
  }),
170
177
  128
@@ -192,7 +199,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
192
199
  /* FULL_PROPS */
193
200
  );
194
201
  }
195
- var VkfSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/select/src/index.vue"]]);
202
+ var Core = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/select/src/core.vue"]]);
203
+
204
+ var _sfc_main = defineComponent({
205
+ props,
206
+ emits,
207
+ setup(props2, { emit, slots }) {
208
+ const coreEmits = createOnEmits(emit);
209
+ return () => h(Core, {
210
+ ...props2,
211
+ ...vOn(coreEmits)
212
+ }, {
213
+ ...props2.slots,
214
+ ...slots
215
+ });
216
+ }
217
+ });
218
+
219
+ var VkfSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/select/src/index.vue"]]);
196
220
 
197
221
  var types = /*#__PURE__*/Object.freeze({
198
222
  __proto__: null