@vunk/form 0.0.1-alpha.11 → 0.0.1-alpha.14

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.
@@ -66,7 +66,7 @@ const VkfFormItemRenderer = defineComponent({
66
66
  Reflect.deleteProperty(slotData, "templateType");
67
67
  Reflect.deleteProperty(slotData, "templateSlots");
68
68
  Reflect.deleteProperty(slotData, "templateIf");
69
- const createIsShow = () => {
69
+ const createTemplateIf = () => {
70
70
  if (typeof c.templateIf === "boolean") {
71
71
  const flag = c.templateIf;
72
72
  return () => flag;
@@ -83,7 +83,7 @@ const VkfFormItemRenderer = defineComponent({
83
83
  raw: c,
84
84
  Renderer,
85
85
  k: currentK,
86
- isShow: createIsShow()
86
+ templateIf: createTemplateIf()
87
87
  });
88
88
  nodes && a.push(nodes);
89
89
  } else if ((_c = c.templateSlots) == null ? void 0 : _c.default) {
@@ -47,8 +47,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
47
47
  const _component_VkfInputNumber = resolveComponent("VkfInputNumber");
48
48
  return openBlock(), createElementBlock(Fragment, null, [
49
49
  createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInput" }, {
50
- default: withCtx(({ data: sourceData, isShow }) => [
51
- isShow(_ctx.data) ? (openBlock(), createBlock(_component_VkfInput, mergeProps({
50
+ default: withCtx(({ data: sourceData, templateIf }) => [
51
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInput, mergeProps({
52
52
  key: 0,
53
53
  modelValue: _ctx.getValue(_ctx.data, sourceData.prop),
54
54
  "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
@@ -60,8 +60,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
60
60
  _: 1
61
61
  }),
62
62
  createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSwitch" }, {
63
- default: withCtx(({ data: sourceData, isShow }) => [
64
- isShow(_ctx.data) ? (openBlock(), createBlock(_component_VkfSwitch, mergeProps({
63
+ default: withCtx(({ data: sourceData, templateIf }) => [
64
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSwitch, mergeProps({
65
65
  key: 0,
66
66
  modelValue: _ctx.getValue(_ctx.data, sourceData.prop),
67
67
  "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
@@ -73,8 +73,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
73
73
  _: 1
74
74
  }),
75
75
  createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfSelect" }, {
76
- default: withCtx(({ data: sourceData, isShow }) => [
77
- isShow(_ctx.data) ? (openBlock(), createBlock(_component_VkfSelect, mergeProps({
76
+ default: withCtx(({ data: sourceData, templateIf }) => [
77
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfSelect, mergeProps({
78
78
  key: 0,
79
79
  modelValue: _ctx.getValue(_ctx.data, sourceData.prop),
80
80
  "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
@@ -86,8 +86,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
86
86
  _: 1
87
87
  }),
88
88
  createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfDatePicker" }, {
89
- default: withCtx(({ data: sourceData, isShow }) => [
90
- isShow(_ctx.data) ? (openBlock(), createBlock(_component_VkfDatePicker, mergeProps({
89
+ default: withCtx(({ data: sourceData, templateIf }) => [
90
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfDatePicker, mergeProps({
91
91
  key: 0,
92
92
  modelValue: _ctx.getValue(_ctx.data, sourceData.prop),
93
93
  "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
@@ -99,8 +99,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
99
99
  _: 1
100
100
  }),
101
101
  createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfInputNumber" }, {
102
- default: withCtx(({ data: sourceData, isShow }) => [
103
- isShow(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputNumber, mergeProps({
102
+ default: withCtx(({ data: sourceData, templateIf }) => [
103
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfInputNumber, mergeProps({
104
104
  key: 0,
105
105
  modelValue: _ctx.getValue(_ctx.data, sourceData.prop),
106
106
  "onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
@@ -112,8 +112,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
112
112
  _: 1
113
113
  }),
114
114
  createVNode(_component_VkfFormItemRendererTemplate, { type: "Component" }, {
115
- default: withCtx(({ data, raw, isShow }) => [
116
- isShow(data) ? (openBlock(), createBlock(resolveDynamicComponent(typeof data.is === "function" ? data.is(raw) : data.is), normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(data, { excludes: ["is"] }))), null, 16)) : createCommentVNode("v-if", true)
115
+ default: withCtx(({ data, raw, templateIf }) => [
116
+ templateIf(data) ? (openBlock(), createBlock(resolveDynamicComponent(typeof data.is === "function" ? data.is(raw) : data.is), normalizeProps(mergeProps({ key: 0 }, _ctx.pickObject(data, { excludes: ["is"] }))), null, 16)) : createCommentVNode("v-if", true)
117
117
  ]),
118
118
  _: 1
119
119
  })
@@ -31,8 +31,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
31
31
  const _component_ElCol = resolveComponent("ElCol");
32
32
  return openBlock(), createElementBlock(Fragment, null, [
33
33
  createVNode(_component_VkfFormItemRendererTemplate, { type: "ElRow" }, {
34
- default: withCtx(({ data: props, Renderer, raw, k, isShow }) => [
35
- isShow(_ctx.data) ? (openBlock(), createBlock(_component_ElRow, normalizeProps(mergeProps({ key: 0 }, props)), {
34
+ default: withCtx(({ data: props, Renderer, raw, k, templateIf }) => [
35
+ templateIf(_ctx.data) ? (openBlock(), createBlock(_component_ElRow, normalizeProps(mergeProps({ key: 0 }, props)), {
36
36
  default: withCtx(() => [
37
37
  (openBlock(), createBlock(resolveDynamicComponent(Renderer), {
38
38
  source: raw.templateSlots,
@@ -45,8 +45,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
45
45
  _: 1
46
46
  }),
47
47
  createVNode(_component_VkfFormItemRendererTemplate, { type: "ElCol" }, {
48
- default: withCtx(({ data, Renderer, raw, k, isShow }) => [
49
- isShow(data) ? (openBlock(), createBlock(_component_ElCol, normalizeProps(mergeProps({ key: 0 }, data)), {
48
+ default: withCtx(({ data, Renderer, raw, k, templateIf }) => [
49
+ templateIf(data) ? (openBlock(), createBlock(_component_ElCol, normalizeProps(mergeProps({ key: 0 }, data)), {
50
50
  default: withCtx(() => [
51
51
  (openBlock(), createBlock(resolveDynamicComponent(Renderer), {
52
52
  source: raw.templateSlots,
@@ -59,8 +59,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
59
59
  _: 1
60
60
  }),
61
61
  createVNode(_component_VkfFormItemRendererTemplate, { type: "VkfFlex" }, {
62
- default: withCtx(({ data, Renderer, raw, k, isShow }) => [
63
- isShow(data) ? (openBlock(), createElementBlock("div", mergeProps({
62
+ default: withCtx(({ data, Renderer, raw, k, templateIf }) => [
63
+ templateIf(data) ? (openBlock(), createElementBlock("div", mergeProps({
64
64
  key: 0,
65
65
  class: "vkf-flex",
66
66
  style: {
@@ -35,6 +35,10 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
35
35
  inputSlots: {
36
36
  type: Object,
37
37
  default: void 0
38
+ },
39
+ rows: {
40
+ type: Number,
41
+ default: void 0
38
42
  }
39
43
  });
40
44
  const createBindProps = bindPropsFactory(props);
@@ -76,7 +80,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
76
80
  default: withCtx(() => [
77
81
  createVNode(_component_ElInput, mergeProps({
78
82
  maxlength: _ctx.maxlength,
79
- minlength: _ctx.minlength
83
+ minlength: _ctx.minlength,
84
+ rows: _ctx.rows
80
85
  }, _ctx.inputBindProps, toHandlers(_ctx.inputOnEmits)), createSlots({
81
86
  default: withCtx(() => [
82
87
  renderSlot(_ctx.$slots, "default")
@@ -91,7 +96,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
91
96
  ])
92
97
  };
93
98
  })
94
- ]), 1040, ["maxlength", "minlength"])
99
+ ]), 1040, ["maxlength", "minlength", "rows"])
95
100
  ]),
96
101
  _: 3
97
102
  }, 16);
@@ -13,6 +13,10 @@ export declare const props: {
13
13
  type: PropType<InputSlots>;
14
14
  default: undefined;
15
15
  };
16
+ rows: {
17
+ type: NumberConstructor;
18
+ default: undefined;
19
+ };
16
20
  id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
17
21
  size: {
18
22
  readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
@@ -98,7 +102,7 @@ export declare const props: {
98
102
  required: boolean;
99
103
  };
100
104
  };
101
- export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"id", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"disabled", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"id", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"disabled", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"id", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"disabled", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2>]: T2[k]; }[P]; }>;
105
+ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"id", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"disabled", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"id", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"disabled", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"id", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"readonly", keyof T2> | Extract<"disabled", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2>]: T2[k]; }[P]; }>;
102
106
  export declare const emits: {
103
107
  "update:modelValue": (value: string) => boolean;
104
108
  input: (value: string) => boolean;
@@ -33,6 +33,10 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
33
33
  inputSlots: {
34
34
  type: Object,
35
35
  default: void 0
36
+ },
37
+ rows: {
38
+ type: Number,
39
+ default: void 0
36
40
  }
37
41
  });
38
42
  const createBindProps = bindPropsFactory(props);
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: import("vue").PropType<import("./types").InputSlots>;
12
12
  default: undefined;
13
13
  };
14
+ rows: {
15
+ type: NumberConstructor;
16
+ default: undefined;
17
+ };
14
18
  id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
15
19
  size: {
16
20
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
@@ -176,6 +180,10 @@ declare const _default: import("vue").DefineComponent<{
176
180
  type: import("vue").PropType<import("./types").InputSlots>;
177
181
  default: undefined;
178
182
  };
183
+ rows: {
184
+ type: NumberConstructor;
185
+ default: undefined;
186
+ };
179
187
  id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
180
188
  size: {
181
189
  readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
@@ -299,5 +307,6 @@ declare const _default: import("vue").DefineComponent<{
299
307
  containerRole: string;
300
308
  inputStyle: import("vue").StyleValue;
301
309
  inputSlots: import("./types").InputSlots;
310
+ rows: number;
302
311
  }>;
303
312
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
2
2
  import { selectProps, selectEmits, createSelectBindProps, createSelectOnEmits } from '@vunk/form/shared/element-plus';
3
- import { defineComponent, computed, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, mergeProps, toHandlers, createSlots, createElementBlock, Fragment, renderList, renderSlot, resolveDynamicComponent } from 'vue';
3
+ import { defineComponent, computed, ref, watch, nextTick, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, mergeProps, toHandlers, createSlots, createElementBlock, Fragment, renderList, renderSlot, resolveDynamicComponent, createCommentVNode } from 'vue';
4
4
  import { ElSelect, ElOption } from 'element-plus';
5
5
  import { isPlainObject } from '@vunk/core/shared/utils-object';
6
6
 
@@ -79,11 +79,20 @@ var script = defineComponent({
79
79
  return a;
80
80
  }, []);
81
81
  });
82
+ const reshow = ref(true);
83
+ watch(() => selectBindProps.value.multiple, () => {
84
+ emit("update:modelValue", void 0);
85
+ reshow.value = false;
86
+ nextTick(() => {
87
+ reshow.value = true;
88
+ });
89
+ });
82
90
  return {
83
91
  formItemBindProps,
84
92
  selectBindProps,
85
93
  selectOnEmits,
86
- selectOptions
94
+ selectOptions,
95
+ reshow
87
96
  };
88
97
  }
89
98
  });
@@ -94,7 +103,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
94
103
  const _component_VkfFormItem = resolveComponent("VkfFormItem");
95
104
  return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
96
105
  default: withCtx(() => [
97
- createVNode(_component_ElSelect, mergeProps(_ctx.selectBindProps, toHandlers(_ctx.selectOnEmits)), createSlots({
106
+ _ctx.reshow ? (openBlock(), createBlock(_component_ElSelect, mergeProps({ key: 0 }, _ctx.selectBindProps, toHandlers(_ctx.selectOnEmits)), createSlots({
98
107
  default: withCtx(() => [
99
108
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.selectOptions, (item) => {
100
109
  return openBlock(), createBlock(_component_ElOption, mergeProps(item, {
@@ -113,7 +122,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
113
122
  ])
114
123
  };
115
124
  })
116
- ]), 1040)
125
+ ]), 1040)) : createCommentVNode("v-if", true)
117
126
  ]),
118
127
  _: 3
119
128
  }, 16);
@@ -304,6 +304,7 @@ declare const _default: import("vue").DefineComponent<{
304
304
  }>>> & {
305
305
  key: any;
306
306
  })[]>;
307
+ reshow: import("vue").Ref<boolean>;
307
308
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
308
309
  'update:modelValue': null;
309
310
  change: null;
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "0.0.1-alpha.11",
3
+ "version": "0.0.1-alpha.14",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {
7
7
  "build": "gulp -f gulpfile.ts"
8
8
  },
9
+ "dependencies": {
10
+ "@vunk/core": "^0.0.0-alpha.19"
11
+ },
9
12
  "keywords": [],
10
13
  "author": "",
11
14
  "license": "ISC",