@vunk/form 2.5.2 → 2.5.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.
@@ -24,6 +24,10 @@ const props = {
24
24
  cascaderSlots: {
25
25
  type: Object,
26
26
  default: () => ({})
27
+ },
28
+ cascaderRef: {
29
+ type: Function,
30
+ required: false
27
31
  }
28
32
  };
29
33
  const createBindProps = utilsVue.bindPropsFactory(props);
@@ -101,7 +105,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
101
105
  vue.normalizeProps(vue.guardReactiveProps(_ctx.formItemBindProps)),
102
106
  {
103
107
  default: vue.withCtx(() => [
104
- vue.createVNode(_component_ElCascader, vue.mergeProps(_ctx.coreBindProps, {
108
+ vue.createVNode(_component_ElCascader, vue.mergeProps({ ref: _ctx.cascaderRef }, _ctx.coreBindProps, {
105
109
  readonly: _ctx.readonly,
106
110
  disabled: _ctx.readonly || _ctx.disabled,
107
111
  options: _ctx.options,
@@ -20,6 +20,10 @@ const props = {
20
20
  cascaderSlots: {
21
21
  type: Object,
22
22
  default: () => ({})
23
+ },
24
+ cascaderRef: {
25
+ type: Function,
26
+ required: false
23
27
  }
24
28
  };
25
29
  const createBindProps = bindPropsFactory(props);
@@ -97,7 +101,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
97
101
  normalizeProps(guardReactiveProps(_ctx.formItemBindProps)),
98
102
  {
99
103
  default: withCtx(() => [
100
- createVNode(_component_ElCascader, mergeProps(_ctx.coreBindProps, {
104
+ createVNode(_component_ElCascader, mergeProps({ ref: _ctx.cascaderRef }, _ctx.coreBindProps, {
101
105
  readonly: _ctx.readonly,
102
106
  disabled: _ctx.readonly || _ctx.disabled,
103
107
  options: _ctx.options,
@@ -13,6 +13,10 @@ export declare const props: {
13
13
  type: PropType<NormalObject>;
14
14
  default: () => {};
15
15
  };
16
+ cascaderRef: {
17
+ type: PropType<any>;
18
+ required: boolean;
19
+ };
16
20
  required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
17
21
  formItemSize: {
18
22
  type: PropType<"default" | "small" | "large">;
@@ -133,7 +137,7 @@ export declare const props: {
133
137
  options: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]) | ((new (...args: any[]) => import("element-plus").CascaderOption[]) | (() => import("element-plus").CascaderOption[]))[], unknown, unknown, () => import("element-plus").CascaderOption[], boolean>;
134
138
  props: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps) | ((new (...args: any[]) => import("element-plus").CascaderProps) | (() => import("element-plus").CascaderProps))[], unknown, unknown, () => import("element-plus").CascaderProps, boolean>;
135
139
  };
136
- export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"persistent", keyof T2> | Extract<"teleported", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"placement", keyof T2> | Extract<"props", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"options", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"filterable", keyof T2> | Extract<"separator", keyof T2> | Extract<"showAllLevels", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"debounce", keyof T2> | Extract<"beforeFilter", keyof T2> | Extract<"tagType", keyof T2> | Extract<"tagEffect", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"cascaderSlots", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "persistent" | "teleported" | "popperClass" | "fallbackPlacements" | "placement" | "props" | "modelValue" | "clearable" | "placeholder" | "filterMethod" | "options" | "emptyValues" | "valueOnClear" | "filterable" | "separator" | "showAllLevels" | "collapseTags" | "maxCollapseTags" | "collapseTagsTooltip" | "debounce" | "beforeFilter" | "tagType" | "tagEffect" | "validateEvent" | "optionsUrl" | "cascaderSlots", keyof T2>, KE> : Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "persistent" | "teleported" | "popperClass" | "fallbackPlacements" | "placement" | "props" | "modelValue" | "clearable" | "placeholder" | "filterMethod" | "options" | "emptyValues" | "valueOnClear" | "filterable" | "separator" | "showAllLevels" | "collapseTags" | "maxCollapseTags" | "collapseTagsTooltip" | "debounce" | "beforeFilter" | "tagType" | "tagEffect" | "validateEvent" | "optionsUrl" | "cascaderSlots", keyof T2>]: { [k in Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "persistent" | "teleported" | "popperClass" | "fallbackPlacements" | "placement" | "props" | "modelValue" | "clearable" | "placeholder" | "filterMethod" | "options" | "emptyValues" | "valueOnClear" | "filterable" | "separator" | "showAllLevels" | "collapseTags" | "maxCollapseTags" | "collapseTagsTooltip" | "debounce" | "beforeFilter" | "tagType" | "tagEffect" | "validateEvent" | "optionsUrl" | "cascaderSlots", keyof T2>]: T2[k]; }[P]; }>;
140
+ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"required", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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<"disabled", keyof T2> | Extract<"persistent", keyof T2> | Extract<"teleported", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"placement", keyof T2> | Extract<"props", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"options", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"filterable", keyof T2> | Extract<"separator", keyof T2> | Extract<"showAllLevels", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"debounce", keyof T2> | Extract<"beforeFilter", keyof T2> | Extract<"tagType", keyof T2> | Extract<"tagEffect", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"optionsUrl", keyof T2> | Extract<"cascaderSlots", keyof T2> | Extract<"cascaderRef", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "persistent" | "teleported" | "popperClass" | "fallbackPlacements" | "placement" | "props" | "modelValue" | "clearable" | "placeholder" | "filterMethod" | "options" | "emptyValues" | "valueOnClear" | "filterable" | "separator" | "showAllLevels" | "collapseTags" | "maxCollapseTags" | "collapseTagsTooltip" | "debounce" | "beforeFilter" | "tagType" | "tagEffect" | "validateEvent" | "optionsUrl" | "cascaderSlots" | "cascaderRef", keyof T2>, KE> : Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "persistent" | "teleported" | "popperClass" | "fallbackPlacements" | "placement" | "props" | "modelValue" | "clearable" | "placeholder" | "filterMethod" | "options" | "emptyValues" | "valueOnClear" | "filterable" | "separator" | "showAllLevels" | "collapseTags" | "maxCollapseTags" | "collapseTagsTooltip" | "debounce" | "beforeFilter" | "tagType" | "tagEffect" | "validateEvent" | "optionsUrl" | "cascaderSlots" | "cascaderRef", keyof T2>]: { [k in Extract<"size" | "required" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "information" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "disabled" | "persistent" | "teleported" | "popperClass" | "fallbackPlacements" | "placement" | "props" | "modelValue" | "clearable" | "placeholder" | "filterMethod" | "options" | "emptyValues" | "valueOnClear" | "filterable" | "separator" | "showAllLevels" | "collapseTags" | "maxCollapseTags" | "collapseTagsTooltip" | "debounce" | "beforeFilter" | "tagType" | "tagEffect" | "validateEvent" | "optionsUrl" | "cascaderSlots" | "cascaderRef", keyof T2>]: T2[k]; }[P]; }>;
137
141
  export declare const emits: {
138
142
  "update:modelValue": (_: import("element-plus").CascaderValue) => boolean;
139
143
  change: (_: import("element-plus").CascaderValue) => boolean;
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11
11
  type: import("vue").PropType<import("@vunk/shared").NormalObject>;
12
12
  default: () => {};
13
13
  };
14
+ cascaderRef: {
15
+ type: import("vue").PropType<any>;
16
+ required: boolean;
17
+ };
14
18
  required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
15
19
  formItemSize: {
16
20
  type: import("vue").PropType<"default" | "small" | "large">;
@@ -184,6 +188,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
184
188
  type: import("vue").PropType<import("@vunk/shared").NormalObject>;
185
189
  default: () => {};
186
190
  };
191
+ cascaderRef: {
192
+ type: import("vue").PropType<any>;
193
+ required: boolean;
194
+ };
187
195
  required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
188
196
  formItemSize: {
189
197
  type: import("vue").PropType<"default" | "small" | "large">;
@@ -11,6 +11,10 @@ export declare const props: {
11
11
  type: import("vue").PropType<import("@vunk/shared").NormalObject>;
12
12
  default: () => {};
13
13
  };
14
+ cascaderRef: {
15
+ type: import("vue").PropType<any>;
16
+ required: boolean;
17
+ };
14
18
  required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
15
19
  formItemSize: {
16
20
  type: import("vue").PropType<"default" | "small" | "large">;
@@ -13,6 +13,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
13
13
  type: import("vue").PropType<import("@vunk/shared").NormalObject>;
14
14
  default: () => {};
15
15
  };
16
+ cascaderRef: {
17
+ type: import("vue").PropType<any>;
18
+ required: boolean;
19
+ };
16
20
  required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
17
21
  formItemSize: {
18
22
  type: import("vue").PropType<"default" | "small" | "large">;
@@ -164,6 +168,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
164
168
  type: import("vue").PropType<import("@vunk/shared").NormalObject>;
165
169
  default: () => {};
166
170
  };
171
+ cascaderRef: {
172
+ type: import("vue").PropType<any>;
173
+ required: boolean;
174
+ };
167
175
  required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
168
176
  formItemSize: {
169
177
  type: import("vue").PropType<"default" | "small" | "large">;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {