@vunk/form 2.14.16 → 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.
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var vue = require('vue');
5
6
  var formItem = require('@vunk/form/components/form-item');
6
7
  var elementPlus = require('@vunk/form/shared/element-plus');
7
8
  var utilsVue = require('@vunk/core/shared/utils-vue');
8
- var vue = require('vue');
9
9
  var elementPlus$1 = require('element-plus');
10
10
  var utilsObject = require('@vunk/core/shared/utils-object');
11
11
  var composables = require('@vunk/form/composables');
@@ -34,7 +34,8 @@ const props = {
34
34
  stringify: {
35
35
  type: Boolean,
36
36
  default: false
37
- }
37
+ },
38
+ slots: null
38
39
  };
39
40
  const createBindProps = utilsVue.bindPropsFactory(props);
40
41
  const emits = {
@@ -50,7 +51,7 @@ var ctx = /*#__PURE__*/Object.freeze({
50
51
  props: props
51
52
  });
52
53
 
53
- var _sfc_main = vue.defineComponent({
54
+ var _sfc_main$1 = vue.defineComponent({
54
55
  name: "VkfSelect",
55
56
  components: {
56
57
  VkfFormItem: formItem.VkfFormItem,
@@ -166,9 +167,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
166
167
  vue.mergeProps({ ref_for: true }, item, {
167
168
  key: item.key
168
169
  }),
169
- null,
170
- 16
171
- /* FULL_PROPS */
170
+ {
171
+ default: vue.withCtx(() => [
172
+ vue.renderSlot(_ctx.$slots, "option", vue.mergeProps({ ref_for: true }, item))
173
+ ]),
174
+ _: 2
175
+ /* DYNAMIC */
176
+ },
177
+ 1040
178
+ /* FULL_PROPS, DYNAMIC_SLOTS */
172
179
  );
173
180
  }),
174
181
  128
@@ -196,7 +203,24 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
196
203
  /* FULL_PROPS */
197
204
  );
198
205
  }
199
- var VkfSelect = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/select/src/index.vue"]]);
206
+ var Core = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/select/src/core.vue"]]);
207
+
208
+ var _sfc_main = vue.defineComponent({
209
+ props,
210
+ emits,
211
+ setup(props2, { emit, slots }) {
212
+ const coreEmits = createOnEmits(emit);
213
+ return () => vue.h(Core, {
214
+ ...props2,
215
+ ...utilsVue.vOn(coreEmits)
216
+ }, {
217
+ ...props2.slots,
218
+ ...slots
219
+ });
220
+ }
221
+ });
222
+
223
+ var VkfSelect = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/select/src/index.vue"]]);
200
224
 
201
225
  var types = /*#__PURE__*/Object.freeze({
202
226
  __proto__: null
@@ -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