@vunk/form 2.3.1 → 2.3.3

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.
@@ -217,12 +217,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
217
217
  onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event))
218
218
  }, {
219
219
  default: vue.withCtx(() => [
220
- vue.createVNode(_component_VkfFormItemRenderer, { source: _ctx.rendererSource }, null, 8, ["source"])
220
+ vue.createVNode(_component_VkfFormItemRenderer, { source: _ctx.rendererSource }, null, 8, ["source"]),
221
+ vue.renderSlot(_ctx.$slots, "default")
221
222
  ]),
222
- _: 1
223
- /* STABLE */
224
- }, 8, ["data"]),
225
- vue.renderSlot(_ctx.$slots, "default")
223
+ _: 3
224
+ /* FORWARDED */
225
+ }, 8, ["data"])
226
226
  ]),
227
227
  _: 3
228
228
  /* FORWARDED */
@@ -213,12 +213,12 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
213
213
  onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event))
214
214
  }, {
215
215
  default: withCtx(() => [
216
- createVNode(_component_VkfFormItemRenderer, { source: _ctx.rendererSource }, null, 8, ["source"])
216
+ createVNode(_component_VkfFormItemRenderer, { source: _ctx.rendererSource }, null, 8, ["source"]),
217
+ renderSlot(_ctx.$slots, "default")
217
218
  ]),
218
- _: 1
219
- /* STABLE */
220
- }, 8, ["data"]),
221
- renderSlot(_ctx.$slots, "default")
219
+ _: 3
220
+ /* FORWARDED */
221
+ }, 8, ["data"])
222
222
  ]),
223
223
  _: 3
224
224
  /* FORWARDED */
@@ -8,7 +8,7 @@ export interface DefaultSlotArguments {
8
8
  /**
9
9
  * 根据 templateIf 生成的控制显隐事件
10
10
  */
11
- templateIf: (e?: NormalObject) => boolean;
11
+ templateIf: (e: NormalObject) => boolean;
12
12
  /**
13
13
  * @deprecated use props
14
14
  */
@@ -97,6 +97,7 @@ var ctx = /*#__PURE__*/Object.freeze({
97
97
 
98
98
  var _sfc_main = vue.defineComponent({
99
99
  name: "VkfTablesSelect",
100
+ inheritAttrs: false,
100
101
  components: {
101
102
  VkfSelect: select.VkfSelect,
102
103
  VkTablesV1Checkbox: tablesV1Checkbox.VkTablesV1Checkbox,
@@ -205,7 +206,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
205
206
  vue.Fragment,
206
207
  null,
207
208
  [
208
- vue.createVNode(_component_VkfSelect, vue.mergeProps(_ctx.formItemProps, {
209
+ vue.createVNode(_component_VkfSelect, vue.mergeProps({
210
+ ..._ctx.formItemProps,
211
+ ..._ctx.$attrs
212
+ }, {
209
213
  multiple: _ctx.multiple,
210
214
  options: _ctx.selectOptions,
211
215
  "model-value": _ctx.selectValue,
@@ -93,6 +93,7 @@ var ctx = /*#__PURE__*/Object.freeze({
93
93
 
94
94
  var _sfc_main = defineComponent({
95
95
  name: "VkfTablesSelect",
96
+ inheritAttrs: false,
96
97
  components: {
97
98
  VkfSelect,
98
99
  VkTablesV1Checkbox,
@@ -201,7 +202,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
201
202
  Fragment,
202
203
  null,
203
204
  [
204
- createVNode(_component_VkfSelect, mergeProps(_ctx.formItemProps, {
205
+ createVNode(_component_VkfSelect, mergeProps({
206
+ ..._ctx.formItemProps,
207
+ ..._ctx.$attrs
208
+ }, {
205
209
  multiple: _ctx.multiple,
206
210
  options: _ctx.selectOptions,
207
211
  "model-value": _ctx.selectValue,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {
@@ -5,7 +5,7 @@ import { __VkfTemplatesEsri } from '@vunk/form/components/templates-esri';
5
5
  import { NormalObject } from '@vunk/core';
6
6
  import { __VkfTemplatesVariant } from '@vunk/form/components/templates-variant';
7
7
  export interface BasicSource {
8
- templateIf?: ((data?: NormalObject) => boolean) | string | boolean;
8
+ templateIf?: ((data: NormalObject) => boolean) | string | boolean;
9
9
  templateType?: string;
10
10
  class?: any;
11
11
  prop?: any;