@vunk/form 0.0.1-alpha.19 → 0.0.1-alpha.21
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 +4 -0
- package/components/button/index.js +121 -0
- package/components/button/src/ctx.d.ts +82 -0
- package/components/button/src/ctx.js +39 -0
- package/components/button/src/index.vue.d.ts +222 -0
- package/components/button/src/types.d.ts +7 -0
- package/components/button/src/types.js +1 -0
- package/components/checkbox/src/ctx.d.ts +4 -0
- package/components/checkbox/src/index.vue.d.ts +13 -3
- package/components/color-picker/src/ctx.d.ts +4 -0
- package/components/color-picker/src/index.vue.d.ts +12 -2
- package/components/date-picker/src/ctx.d.ts +4 -0
- package/components/date-picker/src/index.vue.d.ts +15 -5
- package/components/form/index.js +10 -3
- package/components/form/src/ctx.d.ts +2 -2
- package/components/form/src/index.vue.d.ts +7 -5
- package/components/form-item/index.css +4 -0
- package/components/form-item/index.js +10 -2
- package/components/form-item/src/ctx.d.ts +5 -1
- package/components/form-item/src/ctx.js +4 -0
- package/components/form-item/src/index.vue.d.ts +9 -0
- package/components/form-item-renderer-template-default/index.js +12 -3
- package/components/input/src/ctx.d.ts +6 -2
- package/components/input/src/index.vue.d.ts +28 -18
- package/components/input-number/src/ctx.d.ts +4 -0
- package/components/input-number/src/index.vue.d.ts +17 -7
- package/components/radio/src/ctx.d.ts +4 -0
- package/components/radio/src/index.vue.d.ts +13 -3
- package/components/select/src/ctx.d.ts +4 -0
- package/components/select/src/index.vue.d.ts +19 -9
- package/components/switch/src/ctx.d.ts +4 -0
- package/components/switch/src/index.vue.d.ts +19 -9
- package/components/upload/src/ctx.d.ts +5 -1
- package/components/upload/src/file.vue.d.ts +3 -3
- package/components/upload/src/index.vue.d.ts +16 -6
- package/index.css +5 -0
- package/package.json +1 -1
- package/shared/default-renderer-source/index.d.ts +12 -0
- package/shared/default-renderer-source/index.js +83 -0
- package/shared/element-plus/ctx.d.ts +7 -3
- package/shared/element-plus/index.js +4 -2
- package/shared/types/basic-source/index.d.ts +1 -0
- package/shared/types/renderer-source/button.d.ts +7 -0
- package/shared/types/renderer-source/index.d.ts +3 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { componentSizes, useTooltipContentProps, tagProps, timePickerDefaultProps, inputProps, inputEmits, formProps, formEmits, formItemProps, switchProps, switchEmits, inputNumberProps, inputNumberEmits, radioGroupProps, radioGroupEmits, useCheckboxGroupProps, checkboxGroupEmits, uploadProps } from 'element-plus';
|
|
1
|
+
import { componentSizes, useTooltipContentProps, tagProps, timePickerDefaultProps, inputProps, inputEmits, formProps, formEmits, formItemProps, switchProps, switchEmits, inputNumberProps, inputNumberEmits, radioGroupProps, radioGroupEmits, useCheckboxGroupProps, checkboxGroupEmits, uploadProps, buttonProps, buttonEmits } from 'element-plus';
|
|
2
2
|
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
3
3
|
import { openBlock, createElementBlock, createElementVNode } from 'vue';
|
|
4
4
|
|
|
@@ -224,5 +224,7 @@ const createCheckboxGroupOnEmits = onEmitsFactory(checkboxGroupEmits);
|
|
|
224
224
|
const createUploadBindProps = bindPropsFactory(uploadProps);
|
|
225
225
|
const createColorPickerBindProps = bindPropsFactory(colorPickerProps);
|
|
226
226
|
const createColorPickerOnEmits = onEmitsFactory(colorPickerEmits);
|
|
227
|
+
const createButtonBindProps = bindPropsFactory(buttonProps);
|
|
228
|
+
const createButtonOnEmits = onEmitsFactory(buttonEmits);
|
|
227
229
|
|
|
228
|
-
export { colorPickerEmits, colorPickerProps, createCheckboxGroupBindProps, createCheckboxGroupOnEmits, createColorPickerBindProps, createColorPickerOnEmits, createDatePickerBindProps, createDatePickerOnEmits, createFormBindProps, createFormItemBindProps, createFormOnEmits, createInputBindProps, createInputNumberBindProps, createInputNumberOnEmits, createInputOnEmits, createRadioGroupBindProps, createRadioGroupOnEmits, createSelectBindProps, createSelectOnEmits, createSwitchBindProps, createSwitchOnEmits, createUploadBindProps, datePickerEmits, datePickerProps, selectEmits, selectProps };
|
|
230
|
+
export { colorPickerEmits, colorPickerProps, createButtonBindProps, createButtonOnEmits, createCheckboxGroupBindProps, createCheckboxGroupOnEmits, createColorPickerBindProps, createColorPickerOnEmits, createDatePickerBindProps, createDatePickerOnEmits, createFormBindProps, createFormItemBindProps, createFormOnEmits, createInputBindProps, createInputNumberBindProps, createInputNumberOnEmits, createInputOnEmits, createRadioGroupBindProps, createRadioGroupOnEmits, createSelectBindProps, createSelectOnEmits, createSwitchBindProps, createSwitchOnEmits, createUploadBindProps, datePickerEmits, datePickerProps, selectEmits, selectProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VkfButton } from '@vunk/form/components/button';
|
|
2
|
+
import { VueComponentPropsType } from '@vunk/core';
|
|
3
|
+
import { BasicSource } from '@vunk/form/shared/types/basic-source';
|
|
4
|
+
export interface VkfButtonSource<P extends string = string> extends VueComponentPropsType<typeof VkfButton>, BasicSource {
|
|
5
|
+
prop?: P;
|
|
6
|
+
templateType: 'VkfButton';
|
|
7
|
+
}
|
|
@@ -8,6 +8,7 @@ import type { VkfRadioSource } from './radio';
|
|
|
8
8
|
import type { VkfCheckboxSource } from './checkbox';
|
|
9
9
|
import type { VkfUploadSource } from './upload';
|
|
10
10
|
import type { VkfColorPickerSource } from './color-picker';
|
|
11
|
+
import type { VkfButtonSource } from './button';
|
|
11
12
|
export * from './compoent';
|
|
12
13
|
export * from './date-picker';
|
|
13
14
|
export * from './input';
|
|
@@ -18,4 +19,5 @@ export * from './radio';
|
|
|
18
19
|
export * from './checkbox';
|
|
19
20
|
export * from './upload';
|
|
20
21
|
export * from './color-picker';
|
|
21
|
-
export
|
|
22
|
+
export * from './button';
|
|
23
|
+
export declare type FormItemRendererSource<P extends string = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P> | VkfInputNumberSource<P> | VkfRadioSource<P> | VkfCheckboxSource<P> | VkfUploadSource<P> | VkfColorPickerSource<P> | VkfButtonSource<P> | ComponentSource;
|