@vunk/form 1.1.5 → 1.1.6
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/button/index.d.ts +1 -1
- package/components/button/src/types.d.ts +1 -1
- package/components/cascader/index.d.ts +1 -1
- package/components/checkbox/index.d.ts +1 -1
- package/components/color-picker/index.d.ts +1 -1
- package/components/date-picker/index.d.ts +1 -1
- package/components/date-picker/src/types.d.ts +1 -1
- package/components/form/index.d.ts +1 -1
- package/components/form-item/index.d.ts +1 -1
- package/components/form-item-renderer/index.d.ts +1 -1
- package/components/form-item-renderer-template/index.d.ts +1 -1
- package/components/geoinput/index.d.ts +1 -1
- package/components/geoinput/src/types.d.ts +1 -1
- package/components/geoinput-read/index.d.ts +1 -1
- package/components/geoinput-update/index.d.ts +1 -1
- package/components/input/index.d.ts +1 -1
- package/components/input/src/types.d.ts +1 -1
- package/components/input-link/index.d.ts +1 -1
- package/components/input-number/index.d.ts +1 -1
- package/components/input-number/src/types.d.ts +1 -1
- package/components/radio/index.d.ts +1 -1
- package/components/radio/src/types.d.ts +1 -1
- package/components/select/index.d.ts +1 -1
- package/components/select/src/types.d.ts +1 -1
- package/components/switch/index.d.ts +1 -1
- package/components/switch/src/types.d.ts +1 -1
- package/components/templates-default/index.d.ts +1 -1
- package/components/templates-default/index.js +1 -9
- package/components/templates-default/src/ctx.d.ts +2 -2
- package/components/templates-default/src/ctx.js +2 -9
- package/components/templates-element-plus/index.d.ts +1 -1
- package/components/templates-layout/index.d.ts +1 -1
- package/components/templates-mapbox/index.d.ts +1 -1
- package/components/upload/index.d.ts +1 -1
- package/components/vditor/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Func, VueComponentPropsType } from '@vunk/core';
|
|
2
2
|
import { BasicSource } from '@vunk/form/shared';
|
|
3
|
-
import VkfDatePicker from './index.vue';
|
|
3
|
+
import VkfDatePicker from './index.vue.d';
|
|
4
4
|
export declare type DatePickerSlots = {
|
|
5
5
|
default?: Func;
|
|
6
6
|
'range-separator'?: Func;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import VkfFormItemRendererTemplate from './src/index.vue';
|
|
1
|
+
import VkfFormItemRendererTemplate from './src/index.vue.d';
|
|
2
2
|
export * as __VkfFormItemRendererTemplate from './src/types';
|
|
3
3
|
export { VkfFormItemRendererTemplate, };
|
|
4
4
|
export default VkfFormItemRendererTemplate;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AnyFunc, VueComponentPropsType } from '@vunk/core';
|
|
2
|
-
import VkfGeoinput from './index.vue';
|
|
2
|
+
import VkfGeoinput from './index.vue.d';
|
|
3
3
|
import { BasicSource } from '@vunk/form/shared';
|
|
4
4
|
export declare type EditType = 'point' | 'polygon' | 'line_string' | 'trash';
|
|
5
5
|
export declare type Slots = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BasicSource } from '@vunk/form/shared';
|
|
2
2
|
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
-
import VkfInputNumber from './index.vue';
|
|
3
|
+
import VkfInputNumber from './index.vue.d';
|
|
4
4
|
export interface Source<P extends string = string> extends VueComponentPropsType<typeof VkfInputNumber>, BasicSource {
|
|
5
5
|
prop: P;
|
|
6
6
|
templateType: 'VkfInputNumber';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BasicSource } from '@vunk/form/shared';
|
|
2
2
|
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
-
import VkfRadio from './index.vue';
|
|
3
|
+
import VkfRadio from './index.vue.d';
|
|
4
4
|
export interface Source<P extends string = string> extends VueComponentPropsType<typeof VkfRadio>, BasicSource {
|
|
5
5
|
prop: P;
|
|
6
6
|
templateType: 'VkfRadio';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BasicSource } from '@vunk/form/shared';
|
|
2
2
|
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
-
import VkfSwitch from './index.vue';
|
|
3
|
+
import VkfSwitch from './index.vue.d';
|
|
4
4
|
export interface Source<P extends string = string> extends VueComponentPropsType<typeof VkfSwitch>, BasicSource {
|
|
5
5
|
prop: P;
|
|
6
6
|
templateType: 'VkfSwitch';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { defaultIntoUndefined } from '@vunk/core';
|
|
1
2
|
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createVNode, withCtx, createBlock, normalizeProps, mergeProps, createCommentVNode, resolveDynamicComponent } from 'vue';
|
|
2
3
|
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
3
4
|
import { VkfInput } from '@vunk/form/components/input';
|
|
@@ -15,15 +16,6 @@ import { VkfButton } from '@vunk/form/components/button';
|
|
|
15
16
|
import { VkfCascader } from '@vunk/form/components/cascader';
|
|
16
17
|
import { VkfInputLink } from '@vunk/form/components/input-link';
|
|
17
18
|
|
|
18
|
-
const defaultIntoUndefined = (currentData, currentK, nextK) => {
|
|
19
|
-
if (nextK === void 0)
|
|
20
|
-
return;
|
|
21
|
-
if (typeof nextK === "number") {
|
|
22
|
-
currentData[currentK] = [];
|
|
23
|
-
} else {
|
|
24
|
-
currentData[currentK] = {};
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
19
|
const createIntoUndefined = () => defaultIntoUndefined;
|
|
28
20
|
const props = {
|
|
29
21
|
data: {
|
|
@@ -9,11 +9,11 @@ export declare const props: {
|
|
|
9
9
|
type: PropType<(arg: {
|
|
10
10
|
raw: any;
|
|
11
11
|
data: Record<string, any>;
|
|
12
|
-
}) => import("@vunk/core
|
|
12
|
+
}) => import("@vunk/core").IntoUndefined>;
|
|
13
13
|
default: (arg: {
|
|
14
14
|
raw: any;
|
|
15
15
|
data: Record<string, any>;
|
|
16
|
-
}) => import("@vunk/core
|
|
16
|
+
}) => import("@vunk/core").IntoUndefined;
|
|
17
17
|
};
|
|
18
18
|
};
|
|
19
19
|
export declare const emits: {
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
return;
|
|
4
|
-
if (typeof nextK === "number") {
|
|
5
|
-
currentData[currentK] = [];
|
|
6
|
-
} else {
|
|
7
|
-
currentData[currentK] = {};
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
import { defaultIntoUndefined } from '@vunk/core';
|
|
2
|
+
|
|
10
3
|
const createIntoUndefined = () => defaultIntoUndefined;
|
|
11
4
|
const props = {
|
|
12
5
|
data: {
|