@vunk/form 1.4.6 → 1.4.8
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.
- package/components/date-picker/src/index.vue.d.ts +4 -4
- package/components/download-plus/src/index.vue.d.ts +3 -3
- package/components/input/src/index.vue.d.ts +3 -3
- package/components/input-collection/src/index.vue.d.ts +2 -1
- package/components/input-number/index.cjs +35 -16
- package/components/input-number/index.css +0 -3
- package/components/input-number/index.mjs +35 -16
- package/components/input-number/src/ctx.d.ts +11 -5
- package/components/input-number/src/index.vue.d.ts +10 -0
- package/components/input-number/src/types.d.ts +5 -1
- package/components/upload/src/index.vue.d.ts +1 -1
- package/components/upload-plus/src/index.vue.d.ts +3 -3
- package/components/van-cascader/src/index.vue.d.ts +10628 -349
- package/components/var-datetime-picker/src/index.vue.d.ts +4 -4
- package/index.css +0 -3
- package/package.json +1 -1
- package/shared/const/index.d.ts +4 -0
- package/shared/element-plus/ctx.d.ts +26 -0
- package/shared/element-plus/index.d.ts +3 -0
- package/shared/element-plus/instances.d.ts +202 -0
- package/shared/element-plus/version.d.ts +1 -0
- package/shared/form/index.d.ts +18 -0
- package/shared/helper/index.d.ts +4 -0
- package/shared/index.d.ts +2 -0
- package/shared/infer-prop/index.d.ts +17 -0
- package/shared/progress-it/index.d.ts +16 -0
- package/shared/rules/index.d.ts +35 -0
- package/shared/types/form/checkbox.d.ts +13 -0
- package/shared/types/form/index.d.ts +2 -0
- package/shared/types/form/radio.d.ts +8 -0
- package/shared/types/index.d.ts +2 -0
- package/shared/types/source/index.d.ts +21 -0
- package/shared/types/source-manager/index.d.ts +6 -0
- package/shared/upload/index.d.ts +7 -0
|
@@ -210,13 +210,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
210
210
|
__epPropKey: true;
|
|
211
211
|
};
|
|
212
212
|
readonly id: {
|
|
213
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus
|
|
213
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
|
|
214
214
|
readonly required: false;
|
|
215
215
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
216
216
|
__epPropKey: true;
|
|
217
217
|
};
|
|
218
218
|
readonly name: {
|
|
219
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus
|
|
219
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
|
|
220
220
|
readonly required: false;
|
|
221
221
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
222
222
|
__epPropKey: true;
|
|
@@ -250,13 +250,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
250
250
|
readonly startPlaceholder: StringConstructor;
|
|
251
251
|
readonly endPlaceholder: StringConstructor;
|
|
252
252
|
readonly defaultValue: {
|
|
253
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus
|
|
253
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
254
254
|
readonly required: false;
|
|
255
255
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
256
256
|
__epPropKey: true;
|
|
257
257
|
};
|
|
258
258
|
readonly defaultTime: {
|
|
259
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus
|
|
259
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
260
260
|
readonly required: false;
|
|
261
261
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
262
262
|
__epPropKey: true;
|
package/index.css
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Media } from '@vunk/core';
|
|
2
|
+
import { AllTemplatesSource } from '@vunk/form/shared';
|
|
3
|
+
export declare const CORE_FORM_TEMPLATE_OPTIONS: Media<AllTemplatesSource['templateType']>[];
|
|
4
|
+
export declare const CORE_FORM_TEMPLATE_REFLECT: Record<string, Media<"VkfInput" | "VkfInputNumber" | "VkfSelect" | "VkfRadio" | "VkfCheckbox" | "VkfSwitch" | "VkfColorPicker" | "VkfUpload" | "VkfDatePicker" | "VkfButton" | "VkfCascader" | "VkfInputLink" | "ElRow" | "ElCol" | "VkfFlex" | "ElDivider" | "ElLink" | "VkfGeoinput" | "VkfEsriInputGeojson" | "VkfDatePickerRange" | "Component" | "VkfSlider">>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const createInputBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"readonly", keyof T2> | Extract<"id", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"rows", keyof T2> | Extract<"ariaLabel", 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<"placeholder", keyof T2> | Extract<"form", keyof T2> | Extract<"clearable", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"autofocus", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type" | "size" | "disabled" | "readonly" | "id" | "maxlength" | "minlength" | "rows" | "ariaLabel" | "modelValue" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "placeholder" | "form" | "clearable" | "showPassword" | "showWordLimit" | "suffixIcon" | "prefixIcon" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "autofocus", keyof T2>, KE> : Extract<"type" | "size" | "disabled" | "readonly" | "id" | "maxlength" | "minlength" | "rows" | "ariaLabel" | "modelValue" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "placeholder" | "form" | "clearable" | "showPassword" | "showWordLimit" | "suffixIcon" | "prefixIcon" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "autofocus", keyof T2>]: { [k in Extract<"type" | "size" | "disabled" | "readonly" | "id" | "maxlength" | "minlength" | "rows" | "ariaLabel" | "modelValue" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "placeholder" | "form" | "clearable" | "showPassword" | "showWordLimit" | "suffixIcon" | "prefixIcon" | "containerRole" | "tabindex" | "validateEvent" | "inputStyle" | "autofocus", keyof T2>]: T2[k]; }[P]; }>;
|
|
2
|
+
export declare const createInputOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("clear" | "update:modelValue" | "input" | "change" | "focus" | "blur" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"clear" | "update:modelValue" | "input" | "change" | "focus" | "blur" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend", KE> : "clear" | "update:modelValue" | "input" | "change" | "focus" | "blur" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend"]: { [k in "clear" | "update:modelValue" | "input" | "change" | "focus" | "blur" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
3
|
+
export declare const createFormBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"model", keyof T2> | Extract<"rules", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"requireAsteriskPosition", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelSuffix", keyof T2> | Extract<"inline", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"statusIcon", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"validateOnRuleChange", keyof T2> | Extract<"hideRequiredAsterisk", keyof T2> | Extract<"scrollToError", keyof T2> | Extract<"scrollIntoViewOptions", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"model" | "rules" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "size" | "disabled", keyof T2>, KE> : Extract<"model" | "rules" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "size" | "disabled", keyof T2>]: { [k in Extract<"model" | "rules" | "labelPosition" | "requireAsteriskPosition" | "labelWidth" | "labelSuffix" | "inline" | "inlineMessage" | "statusIcon" | "showMessage" | "validateOnRuleChange" | "hideRequiredAsterisk" | "scrollToError" | "scrollIntoViewOptions" | "size" | "disabled", keyof T2>]: T2[k]; }[P]; }>;
|
|
4
|
+
export declare const createFormOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "validate"[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"validate", KE> : "validate"]: { [k in "validate"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
5
|
+
export declare const createFormItemBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"rules", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"size", keyof T2> | Extract<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required" | "rules" | "labelPosition" | "labelWidth" | "inlineMessage" | "showMessage" | "size" | "prop" | "label" | "error" | "validateStatus" | "for", keyof T2>, KE> : Extract<"required" | "rules" | "labelPosition" | "labelWidth" | "inlineMessage" | "showMessage" | "size" | "prop" | "label" | "error" | "validateStatus" | "for", keyof T2>]: { [k in Extract<"required" | "rules" | "labelPosition" | "labelWidth" | "inlineMessage" | "showMessage" | "size" | "prop" | "label" | "error" | "validateStatus" | "for", keyof T2>]: T2[k]; }[P]; }>;
|
|
6
|
+
export declare const createSwitchBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"loading", keyof T2> | Extract<"width", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"inactiveActionIcon", keyof T2> | Extract<"activeActionIcon", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"beforeChange", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "name" | "id" | "ariaLabel" | "modelValue" | "tabindex" | "validateEvent" | "loading" | "width" | "inlinePrompt" | "inactiveActionIcon" | "activeActionIcon" | "activeIcon" | "inactiveIcon" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue" | "beforeChange", keyof T2>, KE> : Extract<"size" | "disabled" | "name" | "id" | "ariaLabel" | "modelValue" | "tabindex" | "validateEvent" | "loading" | "width" | "inlinePrompt" | "inactiveActionIcon" | "activeActionIcon" | "activeIcon" | "inactiveIcon" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue" | "beforeChange", keyof T2>]: { [k in Extract<"size" | "disabled" | "name" | "id" | "ariaLabel" | "modelValue" | "tabindex" | "validateEvent" | "loading" | "width" | "inlinePrompt" | "inactiveActionIcon" | "activeActionIcon" | "activeIcon" | "inactiveIcon" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue" | "beforeChange", keyof T2>]: T2[k]; }[P]; }>;
|
|
7
|
+
export declare const createSwitchOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "input" | "change")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue" | "input" | "change", KE> : "update:modelValue" | "input" | "change"]: { [k in "update:modelValue" | "input" | "change"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
8
|
+
export declare const createSelectBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"multiple", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "name" | "multiple" | "id" | "modelValue" | "autocomplete" | "placeholder" | "clearable" | "suffixIcon" | "loading" | "automaticDropdown" | "effect" | "filterable" | "allowCreate" | "popperClass" | "remote" | "loadingText" | "noMatchText" | "noDataText" | "remoteMethod" | "filterMethod" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "clearIcon" | "fitInputWidth" | "tagType", keyof T2>, KE> : Extract<"size" | "disabled" | "name" | "multiple" | "id" | "modelValue" | "autocomplete" | "placeholder" | "clearable" | "suffixIcon" | "loading" | "automaticDropdown" | "effect" | "filterable" | "allowCreate" | "popperClass" | "remote" | "loadingText" | "noMatchText" | "noDataText" | "remoteMethod" | "filterMethod" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "clearIcon" | "fitInputWidth" | "tagType", keyof T2>]: { [k in Extract<"size" | "disabled" | "name" | "multiple" | "id" | "modelValue" | "autocomplete" | "placeholder" | "clearable" | "suffixIcon" | "loading" | "automaticDropdown" | "effect" | "filterable" | "allowCreate" | "popperClass" | "remote" | "loadingText" | "noMatchText" | "noDataText" | "remoteMethod" | "filterMethod" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "clearIcon" | "fitInputWidth" | "tagType", keyof T2>]: T2[k]; }[P]; }>;
|
|
9
|
+
export declare const createSelectOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("clear" | "update:modelValue" | "change" | "focus" | "blur" | "remove-tag" | "visible-change")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"clear" | "update:modelValue" | "change" | "focus" | "blur" | "remove-tag" | "visible-change", KE> : "clear" | "update:modelValue" | "change" | "focus" | "blur" | "remove-tag" | "visible-change"]: { [k in "clear" | "update:modelValue" | "change" | "focus" | "blur" | "remove-tag" | "visible-change"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
10
|
+
export declare const createDatePickerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"placement", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showNow", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"dateFormat", keyof T2> | Extract<"timeFormat", keyof T2> | Extract<"editable", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type" | "size" | "disabled" | "readonly" | "name" | "placement" | "id" | "ariaLabel" | "modelValue" | "placeholder" | "clearable" | "prefixIcon" | "tabindex" | "validateEvent" | "popperClass" | "clearIcon" | "showNow" | "emptyValues" | "valueOnClear" | "disabledDate" | "cellClassName" | "shortcuts" | "arrowControl" | "unlinkPanels" | "fallbackPlacements" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "format" | "valueFormat" | "dateFormat" | "timeFormat" | "editable" | "popperOptions" | "rangeSeparator" | "startPlaceholder" | "endPlaceholder" | "defaultValue" | "defaultTime" | "isRange", keyof T2>, KE> : Extract<"type" | "size" | "disabled" | "readonly" | "name" | "placement" | "id" | "ariaLabel" | "modelValue" | "placeholder" | "clearable" | "prefixIcon" | "tabindex" | "validateEvent" | "popperClass" | "clearIcon" | "showNow" | "emptyValues" | "valueOnClear" | "disabledDate" | "cellClassName" | "shortcuts" | "arrowControl" | "unlinkPanels" | "fallbackPlacements" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "format" | "valueFormat" | "dateFormat" | "timeFormat" | "editable" | "popperOptions" | "rangeSeparator" | "startPlaceholder" | "endPlaceholder" | "defaultValue" | "defaultTime" | "isRange", keyof T2>]: { [k in Extract<"type" | "size" | "disabled" | "readonly" | "name" | "placement" | "id" | "ariaLabel" | "modelValue" | "placeholder" | "clearable" | "prefixIcon" | "tabindex" | "validateEvent" | "popperClass" | "clearIcon" | "showNow" | "emptyValues" | "valueOnClear" | "disabledDate" | "cellClassName" | "shortcuts" | "arrowControl" | "unlinkPanels" | "fallbackPlacements" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "format" | "valueFormat" | "dateFormat" | "timeFormat" | "editable" | "popperOptions" | "rangeSeparator" | "startPlaceholder" | "endPlaceholder" | "defaultValue" | "defaultTime" | "isRange", keyof T2>]: T2[k]; }[P]; }>;
|
|
11
|
+
export declare const createDatePickerOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "keydown" | "visible-change" | "calendar-change" | "panel-change")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue" | "change" | "focus" | "blur" | "keydown" | "visible-change" | "calendar-change" | "panel-change", KE> : "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "visible-change" | "calendar-change" | "panel-change"]: { [k in "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "visible-change" | "calendar-change" | "panel-change"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
12
|
+
export declare const createInputNumberBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"id", keyof T2> | Extract<"precision", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"step", keyof T2> | Extract<"stepStrictly", keyof T2> | Extract<"controls", keyof T2> | Extract<"controlsPosition", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "readonly" | "name" | "id" | "precision" | "ariaLabel" | "modelValue" | "placeholder" | "validateEvent" | "min" | "max" | "valueOnClear" | "step" | "stepStrictly" | "controls" | "controlsPosition", keyof T2>, KE> : Extract<"size" | "disabled" | "readonly" | "name" | "id" | "precision" | "ariaLabel" | "modelValue" | "placeholder" | "validateEvent" | "min" | "max" | "valueOnClear" | "step" | "stepStrictly" | "controls" | "controlsPosition", keyof T2>]: { [k in Extract<"size" | "disabled" | "readonly" | "name" | "id" | "precision" | "ariaLabel" | "modelValue" | "placeholder" | "validateEvent" | "min" | "max" | "valueOnClear" | "step" | "stepStrictly" | "controls" | "controlsPosition", keyof T2>]: T2[k]; }[P]; }>;
|
|
13
|
+
export declare const createInputNumberOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "input" | "change" | "focus" | "blur")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue" | "input" | "change" | "focus" | "blur", KE> : "update:modelValue" | "input" | "change" | "focus" | "blur"]: { [k in "update:modelValue" | "input" | "change" | "focus" | "blur"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
14
|
+
export declare const createRadioGroupBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"fill", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"textColor", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"fill" | "size" | "disabled" | "name" | "id" | "ariaLabel" | "modelValue" | "validateEvent" | "textColor", keyof T2>, KE> : Extract<"fill" | "size" | "disabled" | "name" | "id" | "ariaLabel" | "modelValue" | "validateEvent" | "textColor", keyof T2>]: { [k in Extract<"fill" | "size" | "disabled" | "name" | "id" | "ariaLabel" | "modelValue" | "validateEvent" | "textColor", keyof T2>]: T2[k]; }[P]; }>;
|
|
15
|
+
export declare const createRadioGroupOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "change")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue" | "change", KE> : "update:modelValue" | "change"]: { [k in "update:modelValue" | "change"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
16
|
+
export declare const createCheckboxGroupBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"fill", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"tag", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"textColor", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"fill" | "size" | "disabled" | "tag" | "ariaLabel" | "modelValue" | "validateEvent" | "min" | "max" | "textColor", keyof T2>, KE> : Extract<"fill" | "size" | "disabled" | "tag" | "ariaLabel" | "modelValue" | "validateEvent" | "min" | "max" | "textColor", keyof T2>]: { [k in Extract<"fill" | "size" | "disabled" | "tag" | "ariaLabel" | "modelValue" | "validateEvent" | "min" | "max" | "textColor", keyof T2>]: T2[k]; }[P]; }>;
|
|
17
|
+
export declare const createCheckboxGroupOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "change")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue" | "change", KE> : "update:modelValue" | "change"]: { [k in "update:modelValue" | "change"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
18
|
+
export declare const createUploadBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"multiple", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"crossorigin", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"method", keyof T2> | Extract<"drag", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"listType", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"disabled" | "name" | "data" | "multiple" | "beforeUpload" | "beforeRemove" | "onRemove" | "onChange" | "onPreview" | "onSuccess" | "onProgress" | "onError" | "onExceed" | "crossorigin" | "action" | "headers" | "method" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "limit", keyof T2>, KE> : Extract<"disabled" | "name" | "data" | "multiple" | "beforeUpload" | "beforeRemove" | "onRemove" | "onChange" | "onPreview" | "onSuccess" | "onProgress" | "onError" | "onExceed" | "crossorigin" | "action" | "headers" | "method" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "limit", keyof T2>]: { [k in Extract<"disabled" | "name" | "data" | "multiple" | "beforeUpload" | "beforeRemove" | "onRemove" | "onChange" | "onPreview" | "onSuccess" | "onProgress" | "onError" | "onExceed" | "crossorigin" | "action" | "headers" | "method" | "drag" | "withCredentials" | "showFileList" | "accept" | "fileList" | "autoUpload" | "listType" | "httpRequest" | "limit", keyof T2>]: T2[k]; }[P]; }>;
|
|
19
|
+
export declare const createColorPickerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"teleported", keyof T2> | Extract<"showAlpha", keyof T2> | Extract<"colorFormat", keyof T2> | Extract<"predefine", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "id" | "ariaLabel" | "modelValue" | "tabindex" | "validateEvent" | "popperClass" | "teleported" | "showAlpha" | "colorFormat" | "predefine", keyof T2>, KE> : Extract<"size" | "disabled" | "id" | "ariaLabel" | "modelValue" | "tabindex" | "validateEvent" | "popperClass" | "teleported" | "showAlpha" | "colorFormat" | "predefine", keyof T2>]: { [k in Extract<"size" | "disabled" | "id" | "ariaLabel" | "modelValue" | "tabindex" | "validateEvent" | "popperClass" | "teleported" | "showAlpha" | "colorFormat" | "predefine", keyof T2>]: T2[k]; }[P]; }>;
|
|
20
|
+
export declare const createColorPickerOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "activeChange")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue" | "change" | "focus" | "blur" | "activeChange", KE> : "update:modelValue" | "change" | "focus" | "blur" | "activeChange"]: { [k in "update:modelValue" | "change" | "focus" | "blur" | "activeChange"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
21
|
+
export declare const createButtonBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"tag", keyof T2> | Extract<"text", keyof T2> | Extract<"link", keyof T2> | Extract<"dark", keyof T2> | Extract<"icon", keyof T2> | Extract<"circle", keyof T2> | Extract<"plain", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"loading", keyof T2> | Extract<"nativeType", keyof T2> | Extract<"loadingIcon", keyof T2> | Extract<"bg", keyof T2> | Extract<"round", keyof T2> | Extract<"color", keyof T2> | Extract<"autoInsertSpace", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type" | "size" | "disabled" | "tag" | "text" | "link" | "dark" | "icon" | "circle" | "plain" | "autofocus" | "loading" | "nativeType" | "loadingIcon" | "bg" | "round" | "color" | "autoInsertSpace", keyof T2>, KE> : Extract<"type" | "size" | "disabled" | "tag" | "text" | "link" | "dark" | "icon" | "circle" | "plain" | "autofocus" | "loading" | "nativeType" | "loadingIcon" | "bg" | "round" | "color" | "autoInsertSpace", keyof T2>]: { [k in Extract<"type" | "size" | "disabled" | "tag" | "text" | "link" | "dark" | "icon" | "circle" | "plain" | "autofocus" | "loading" | "nativeType" | "loadingIcon" | "bg" | "round" | "color" | "autoInsertSpace", keyof T2>]: T2[k]; }[P]; }>;
|
|
22
|
+
export declare const createButtonOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends "click"[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"click", KE> : "click"]: { [k in "click"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
23
|
+
export declare const createCascaderBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"props", keyof T2> | Extract<"placement", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"options", keyof T2> | Extract<"filterable", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"tagType", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"separator", keyof T2> | Extract<"showAllLevels", keyof T2> | Extract<"maxCollapseTags", keyof T2> | Extract<"debounce", keyof T2> | Extract<"beforeFilter", keyof T2> | Extract<"tagEffect", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "props" | "placement" | "modelValue" | "placeholder" | "clearable" | "validateEvent" | "options" | "filterable" | "popperClass" | "filterMethod" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "tagType" | "emptyValues" | "valueOnClear" | "fallbackPlacements" | "separator" | "showAllLevels" | "maxCollapseTags" | "debounce" | "beforeFilter" | "tagEffect", keyof T2>, KE> : Extract<"size" | "disabled" | "props" | "placement" | "modelValue" | "placeholder" | "clearable" | "validateEvent" | "options" | "filterable" | "popperClass" | "filterMethod" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "tagType" | "emptyValues" | "valueOnClear" | "fallbackPlacements" | "separator" | "showAllLevels" | "maxCollapseTags" | "debounce" | "beforeFilter" | "tagEffect", keyof T2>]: { [k in Extract<"size" | "disabled" | "props" | "placement" | "modelValue" | "placeholder" | "clearable" | "validateEvent" | "options" | "filterable" | "popperClass" | "filterMethod" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "tagType" | "emptyValues" | "valueOnClear" | "fallbackPlacements" | "separator" | "showAllLevels" | "maxCollapseTags" | "debounce" | "beforeFilter" | "tagEffect", keyof T2>]: T2[k]; }[P]; }>;
|
|
24
|
+
export declare const createCascaderOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("clear" | "update:modelValue" | "change" | "focus" | "blur" | "visibleChange" | "expandChange" | "removeTag")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"clear" | "update:modelValue" | "change" | "focus" | "blur" | "visibleChange" | "expandChange" | "removeTag", KE> : "clear" | "update:modelValue" | "change" | "focus" | "blur" | "visibleChange" | "expandChange" | "removeTag"]: { [k in "clear" | "update:modelValue" | "change" | "focus" | "blur" | "visibleChange" | "expandChange" | "removeTag"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
25
|
+
export declare const createSliderBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"placement", keyof T2> | Extract<"vertical", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"min", keyof T2> | Extract<"max", keyof T2> | Extract<"step", keyof T2> | Extract<"debounce", keyof T2> | Extract<"showInput", keyof T2> | Extract<"showInputControls", keyof T2> | Extract<"inputSize", keyof T2> | Extract<"showStops", keyof T2> | Extract<"showTooltip", keyof T2> | Extract<"formatTooltip", keyof T2> | Extract<"range", keyof T2> | Extract<"height", keyof T2> | Extract<"rangeStartLabel", keyof T2> | Extract<"rangeEndLabel", keyof T2> | Extract<"formatValueText", keyof T2> | Extract<"tooltipClass", keyof T2> | Extract<"marks", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "placement" | "vertical" | "id" | "ariaLabel" | "modelValue" | "validateEvent" | "min" | "max" | "step" | "debounce" | "showInput" | "showInputControls" | "inputSize" | "showStops" | "showTooltip" | "formatTooltip" | "range" | "height" | "rangeStartLabel" | "rangeEndLabel" | "formatValueText" | "tooltipClass" | "marks", keyof T2>, KE> : Extract<"size" | "disabled" | "placement" | "vertical" | "id" | "ariaLabel" | "modelValue" | "validateEvent" | "min" | "max" | "step" | "debounce" | "showInput" | "showInputControls" | "inputSize" | "showStops" | "showTooltip" | "formatTooltip" | "range" | "height" | "rangeStartLabel" | "rangeEndLabel" | "formatValueText" | "tooltipClass" | "marks", keyof T2>]: { [k in Extract<"size" | "disabled" | "placement" | "vertical" | "id" | "ariaLabel" | "modelValue" | "validateEvent" | "min" | "max" | "step" | "debounce" | "showInput" | "showInputControls" | "inputSize" | "showStops" | "showTooltip" | "formatTooltip" | "range" | "height" | "rangeStartLabel" | "rangeEndLabel" | "formatValueText" | "tooltipClass" | "marks", keyof T2>]: T2[k]; }[P]; }>;
|
|
26
|
+
export declare const createSliderOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "input" | "change")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue" | "input" | "change", KE> : "update:modelValue" | "input" | "change"]: { [k in "update:modelValue" | "input" | "change"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { ComponentSize, DatePickType } from 'element-plus';
|
|
2
|
+
import { PropType, Component } from 'vue';
|
|
3
|
+
export declare const datePickerProps: {
|
|
4
|
+
type: {
|
|
5
|
+
type: PropType<DatePickType>;
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
showNow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
9
|
+
ariaLabel: StringConstructor;
|
|
10
|
+
emptyValues: ArrayConstructor;
|
|
11
|
+
valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
|
|
12
|
+
disabledDate: {
|
|
13
|
+
readonly type: import("vue").PropType<Function>;
|
|
14
|
+
readonly required: false;
|
|
15
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
16
|
+
__epPropKey: true;
|
|
17
|
+
};
|
|
18
|
+
cellClassName: {
|
|
19
|
+
readonly type: import("vue").PropType<Function>;
|
|
20
|
+
readonly required: false;
|
|
21
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
|
+
__epPropKey: true;
|
|
23
|
+
};
|
|
24
|
+
shortcuts: import("element-plus/es/utils").EpPropFinalized<ArrayConstructor, unknown, unknown, () => never[], boolean>;
|
|
25
|
+
arrowControl: BooleanConstructor;
|
|
26
|
+
tabindex: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number) | (() => string | number) | ((new (...args: any[]) => string | number) | (() => string | number))[], unknown, unknown, 0, boolean>;
|
|
27
|
+
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
28
|
+
unlinkPanels: BooleanConstructor;
|
|
29
|
+
placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => import("element-plus").Placement))[], import("element-plus").Placement, unknown, "bottom", boolean>;
|
|
30
|
+
fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]) | ((new (...args: any[]) => import("element-plus").Placement[]) | (() => import("element-plus").Placement[]))[], unknown, unknown, readonly ["bottom", "top", "right", "left"], boolean>;
|
|
31
|
+
disabledHours: {
|
|
32
|
+
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledHours>;
|
|
33
|
+
readonly required: false;
|
|
34
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
|
+
__epPropKey: true;
|
|
36
|
+
};
|
|
37
|
+
disabledMinutes: {
|
|
38
|
+
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledMinutes>;
|
|
39
|
+
readonly required: false;
|
|
40
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
41
|
+
__epPropKey: true;
|
|
42
|
+
};
|
|
43
|
+
disabledSeconds: {
|
|
44
|
+
readonly type: import("vue").PropType<import("element-plus/es/components/time-picker/src/props/shared").GetDisabledSeconds>;
|
|
45
|
+
readonly required: false;
|
|
46
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
47
|
+
__epPropKey: true;
|
|
48
|
+
};
|
|
49
|
+
id: {
|
|
50
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
|
|
51
|
+
readonly required: false;
|
|
52
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
53
|
+
__epPropKey: true;
|
|
54
|
+
};
|
|
55
|
+
name: {
|
|
56
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>) | ((new (...args: any[]) => string | [string, string]) | (() => import("element-plus").SingleOrRange<string>))[], unknown, unknown>>;
|
|
57
|
+
readonly required: false;
|
|
58
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
59
|
+
__epPropKey: true;
|
|
60
|
+
};
|
|
61
|
+
popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
62
|
+
format: StringConstructor;
|
|
63
|
+
valueFormat: StringConstructor;
|
|
64
|
+
dateFormat: StringConstructor;
|
|
65
|
+
timeFormat: StringConstructor;
|
|
66
|
+
clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
67
|
+
clearIcon: {
|
|
68
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown>>;
|
|
69
|
+
readonly required: false;
|
|
70
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
71
|
+
__epPropKey: true;
|
|
72
|
+
};
|
|
73
|
+
editable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
74
|
+
prefixIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | ((new (...args: any[]) => (string | Component) & {}) | (() => string | Component))[], unknown, unknown, "", boolean>;
|
|
75
|
+
size: {
|
|
76
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
77
|
+
readonly required: false;
|
|
78
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
79
|
+
__epPropKey: true;
|
|
80
|
+
};
|
|
81
|
+
readonly: BooleanConstructor;
|
|
82
|
+
disabled: BooleanConstructor;
|
|
83
|
+
placeholder: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
84
|
+
popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>) | ((new (...args: any[]) => Partial<import("element-plus").Options>) | (() => Partial<import("element-plus").Options>))[], unknown, unknown, () => {}, boolean>;
|
|
85
|
+
modelValue: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | number | string[] | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType) | ((new (...args: any[]) => string | number | string[] | Date | [import("element-plus").DateModelType, import("element-plus").DateModelType]) | (() => import("element-plus").ModelValueType))[], unknown, unknown, "", boolean>;
|
|
86
|
+
rangeSeparator: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "-", boolean>;
|
|
87
|
+
startPlaceholder: StringConstructor;
|
|
88
|
+
endPlaceholder: StringConstructor;
|
|
89
|
+
defaultValue: {
|
|
90
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
91
|
+
readonly required: false;
|
|
92
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
93
|
+
__epPropKey: true;
|
|
94
|
+
};
|
|
95
|
+
defaultTime: {
|
|
96
|
+
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>) | ((new (...args: any[]) => Date | [Date, Date]) | (() => import("element-plus").SingleOrRange<Date>))[], unknown, unknown>>;
|
|
97
|
+
readonly required: false;
|
|
98
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
99
|
+
__epPropKey: true;
|
|
100
|
+
};
|
|
101
|
+
isRange: BooleanConstructor;
|
|
102
|
+
};
|
|
103
|
+
export declare const datePickerEmits: {
|
|
104
|
+
'update:modelValue': any;
|
|
105
|
+
change: any;
|
|
106
|
+
focus: any;
|
|
107
|
+
blur: any;
|
|
108
|
+
'calendar-change': any;
|
|
109
|
+
'panel-change': any;
|
|
110
|
+
'visible-change': any;
|
|
111
|
+
keydown: any;
|
|
112
|
+
};
|
|
113
|
+
export declare const selectProps: {
|
|
114
|
+
name: StringConstructor;
|
|
115
|
+
id: StringConstructor;
|
|
116
|
+
modelValue: {
|
|
117
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor | ArrayConstructor)[];
|
|
118
|
+
default: any;
|
|
119
|
+
};
|
|
120
|
+
autocomplete: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
automaticDropdown: BooleanConstructor;
|
|
125
|
+
size: {
|
|
126
|
+
type: PropType<ComponentSize>;
|
|
127
|
+
};
|
|
128
|
+
effect: {
|
|
129
|
+
type: PropType<"light" | "dark" | string>;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
disabled: BooleanConstructor;
|
|
133
|
+
clearable: BooleanConstructor;
|
|
134
|
+
filterable: BooleanConstructor;
|
|
135
|
+
allowCreate: BooleanConstructor;
|
|
136
|
+
loading: BooleanConstructor;
|
|
137
|
+
popperClass: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
remote: BooleanConstructor;
|
|
142
|
+
loadingText: StringConstructor;
|
|
143
|
+
noMatchText: StringConstructor;
|
|
144
|
+
noDataText: StringConstructor;
|
|
145
|
+
remoteMethod: FunctionConstructor;
|
|
146
|
+
filterMethod: FunctionConstructor;
|
|
147
|
+
multiple: BooleanConstructor;
|
|
148
|
+
multipleLimit: {
|
|
149
|
+
type: NumberConstructor;
|
|
150
|
+
default: number;
|
|
151
|
+
};
|
|
152
|
+
placeholder: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
};
|
|
155
|
+
defaultFirstOption: BooleanConstructor;
|
|
156
|
+
reserveKeyword: {
|
|
157
|
+
type: BooleanConstructor;
|
|
158
|
+
default: boolean;
|
|
159
|
+
};
|
|
160
|
+
valueKey: {
|
|
161
|
+
type: StringConstructor;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
collapseTags: BooleanConstructor;
|
|
165
|
+
collapseTagsTooltip: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: boolean;
|
|
168
|
+
};
|
|
169
|
+
teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
170
|
+
persistent: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
clearIcon: {
|
|
175
|
+
type: PropType<string | Component>;
|
|
176
|
+
default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
177
|
+
};
|
|
178
|
+
fitInputWidth: {
|
|
179
|
+
type: BooleanConstructor;
|
|
180
|
+
default: boolean;
|
|
181
|
+
};
|
|
182
|
+
suffixIcon: {
|
|
183
|
+
type: PropType<string | Component>;
|
|
184
|
+
default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
185
|
+
};
|
|
186
|
+
tagType: {
|
|
187
|
+
default: string;
|
|
188
|
+
type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>>;
|
|
189
|
+
required: false;
|
|
190
|
+
validator: ((val: unknown) => boolean) | undefined;
|
|
191
|
+
__epPropKey: true;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
export declare const selectEmits: {
|
|
195
|
+
'update:modelValue': any;
|
|
196
|
+
change: any;
|
|
197
|
+
'remove-tag': any;
|
|
198
|
+
clear: any;
|
|
199
|
+
'visible-change': any;
|
|
200
|
+
focus: any;
|
|
201
|
+
blur: any;
|
|
202
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isGte2_6_0: boolean;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Func, NormalObject } from '@vunk/core';
|
|
2
|
+
/**
|
|
3
|
+
* 表单验证失败, 处理方式
|
|
4
|
+
* 消息提示
|
|
5
|
+
* @param err Record<string, {message: string}[]>
|
|
6
|
+
*/
|
|
7
|
+
export declare const validateCatch: (err: any, init?: {
|
|
8
|
+
prefix?: string;
|
|
9
|
+
suffix?: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
/**
|
|
12
|
+
* 根据 templateIf 生成 显隐函数
|
|
13
|
+
* @param templateIfRaw
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare const genTemplateIfFunc: Func<[
|
|
17
|
+
any
|
|
18
|
+
], (e?: NormalObject) => boolean>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default';
|
|
2
|
+
export interface PropInfo {
|
|
3
|
+
prop?: string | string[];
|
|
4
|
+
type: string;
|
|
5
|
+
precision?: number;
|
|
6
|
+
}
|
|
7
|
+
export type InferPropInfo = (item: __VkfTemplatesDefault.CoreSource) => Partial<PropInfo>;
|
|
8
|
+
export declare const propInfoAction: {
|
|
9
|
+
VkfSelect: InferPropInfo;
|
|
10
|
+
VkfRadio: InferPropInfo;
|
|
11
|
+
VkfCheckbox: InferPropInfo;
|
|
12
|
+
VkfColorPicker: InferPropInfo;
|
|
13
|
+
VkfInputNumber: InferPropInfo;
|
|
14
|
+
VkfSwitch: InferPropInfo;
|
|
15
|
+
VkfUpload: InferPropInfo;
|
|
16
|
+
VkfDatePicker: InferPropInfo;
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ref: https://github1s.com/Envov/progress-it/blob/master/src/index.ts#L1-L61
|
|
3
|
+
*
|
|
4
|
+
*/
|
|
5
|
+
export type Effect = (percent: number, state: boolean | 'fail') => void;
|
|
6
|
+
export type Setter = (newState: boolean | 'fail') => Setter;
|
|
7
|
+
type progress = (effect: Effect, option?: Partial<IProgressPotions>) => (initState: boolean) => (newState: boolean | 'fail') => Setter;
|
|
8
|
+
type IProgressPotions = {
|
|
9
|
+
percent: number;
|
|
10
|
+
interval: number;
|
|
11
|
+
speed: number;
|
|
12
|
+
timeLine: number;
|
|
13
|
+
timer: number | undefined;
|
|
14
|
+
};
|
|
15
|
+
declare const progress: progress;
|
|
16
|
+
export default progress;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export declare const PATTERN: {
|
|
2
|
+
/**
|
|
3
|
+
* 由数字、26个英文字母或者下划线以及中文组成的字符串
|
|
4
|
+
*/
|
|
5
|
+
normal: RegExp;
|
|
6
|
+
/**
|
|
7
|
+
* 只能由 中文 和 英文 组成
|
|
8
|
+
*/
|
|
9
|
+
normalName: RegExp;
|
|
10
|
+
/**
|
|
11
|
+
* 只能由数字、字母、下划线组成, 且不能以下划线和数字开头
|
|
12
|
+
*/
|
|
13
|
+
code: RegExp;
|
|
14
|
+
/**
|
|
15
|
+
* 只能由数字或字母组成, 且不能以数字开头
|
|
16
|
+
*/
|
|
17
|
+
strictCode: RegExp;
|
|
18
|
+
/**
|
|
19
|
+
* 只能由字母、数字或特殊字符组成,且长度在8到16之间
|
|
20
|
+
*/
|
|
21
|
+
password: RegExp;
|
|
22
|
+
/**
|
|
23
|
+
* 要求密码必须同时包含至少一个小写字母、大写字母和数字,且长度在8到16之间。
|
|
24
|
+
*/
|
|
25
|
+
strictPassword: RegExp;
|
|
26
|
+
/**
|
|
27
|
+
* 正确的手机号码
|
|
28
|
+
*/
|
|
29
|
+
phone: RegExp;
|
|
30
|
+
};
|
|
31
|
+
export declare const PATTERN_OPTIONS: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: RegExp;
|
|
34
|
+
title: string;
|
|
35
|
+
}[];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CheckboxProps {
|
|
2
|
+
value?: string | number | boolean;
|
|
3
|
+
label?: string;
|
|
4
|
+
'trueLabel'?: string | number;
|
|
5
|
+
'falseLabel'?: string | number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
border?: boolean;
|
|
8
|
+
size?: '' | 'default' | 'small' | 'large';
|
|
9
|
+
name?: string;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
indeterminate?: boolean;
|
|
12
|
+
validateEvent?: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default';
|
|
2
|
+
import { __VkfTemplatesLayout } from '@vunk/form/components/templates-layout';
|
|
3
|
+
import { __VkfTemplatesElementPlus } from '@vunk/form/components/templates-element-plus';
|
|
4
|
+
import { __VkfTemplatesMapbox } from '@vunk/form/components/templates-mapbox';
|
|
5
|
+
import { __VkfTemplatesEsri } from '@vunk/form/components/templates-esri';
|
|
6
|
+
import { NormalObject } from '@vunk/core';
|
|
7
|
+
import { __VkfTemplatesVariant } from '@vunk/form/components/templates-variant';
|
|
8
|
+
export interface BasicSource {
|
|
9
|
+
templateIf?: ((data?: NormalObject) => boolean) | string | boolean;
|
|
10
|
+
templateType?: string;
|
|
11
|
+
class?: any;
|
|
12
|
+
prop?: any;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated use __VkfTemplatesDefault.Source<P>
|
|
16
|
+
* ```ts
|
|
17
|
+
* import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default'
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export type FormItemRendererSource<P extends string = string> = __VkfTemplatesDefault.Source<P>;
|
|
21
|
+
export type AllTemplatesSource<P extends string = string> = __VkfTemplatesDefault.Source<P> | __VkfTemplatesMapbox.Source<P> | __VkfTemplatesEsri.Source<P> | __VkfTemplatesLayout.ElRowSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.ElColSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.VkfFlexSource<AllTemplatesSource<P>> | __VkfTemplatesElementPlus.Source | __VkfTemplatesVariant.Source<P>;
|