@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.
Files changed (44) hide show
  1. package/components/button/index.d.ts +4 -0
  2. package/components/button/index.js +121 -0
  3. package/components/button/src/ctx.d.ts +82 -0
  4. package/components/button/src/ctx.js +39 -0
  5. package/components/button/src/index.vue.d.ts +222 -0
  6. package/components/button/src/types.d.ts +7 -0
  7. package/components/button/src/types.js +1 -0
  8. package/components/checkbox/src/ctx.d.ts +4 -0
  9. package/components/checkbox/src/index.vue.d.ts +13 -3
  10. package/components/color-picker/src/ctx.d.ts +4 -0
  11. package/components/color-picker/src/index.vue.d.ts +12 -2
  12. package/components/date-picker/src/ctx.d.ts +4 -0
  13. package/components/date-picker/src/index.vue.d.ts +15 -5
  14. package/components/form/index.js +10 -3
  15. package/components/form/src/ctx.d.ts +2 -2
  16. package/components/form/src/index.vue.d.ts +7 -5
  17. package/components/form-item/index.css +4 -0
  18. package/components/form-item/index.js +10 -2
  19. package/components/form-item/src/ctx.d.ts +5 -1
  20. package/components/form-item/src/ctx.js +4 -0
  21. package/components/form-item/src/index.vue.d.ts +9 -0
  22. package/components/form-item-renderer-template-default/index.js +12 -3
  23. package/components/input/src/ctx.d.ts +6 -2
  24. package/components/input/src/index.vue.d.ts +28 -18
  25. package/components/input-number/src/ctx.d.ts +4 -0
  26. package/components/input-number/src/index.vue.d.ts +17 -7
  27. package/components/radio/src/ctx.d.ts +4 -0
  28. package/components/radio/src/index.vue.d.ts +13 -3
  29. package/components/select/src/ctx.d.ts +4 -0
  30. package/components/select/src/index.vue.d.ts +19 -9
  31. package/components/switch/src/ctx.d.ts +4 -0
  32. package/components/switch/src/index.vue.d.ts +19 -9
  33. package/components/upload/src/ctx.d.ts +5 -1
  34. package/components/upload/src/file.vue.d.ts +3 -3
  35. package/components/upload/src/index.vue.d.ts +16 -6
  36. package/index.css +5 -0
  37. package/package.json +1 -1
  38. package/shared/default-renderer-source/index.d.ts +12 -0
  39. package/shared/default-renderer-source/index.js +83 -0
  40. package/shared/element-plus/ctx.d.ts +7 -3
  41. package/shared/element-plus/index.js +4 -2
  42. package/shared/types/basic-source/index.d.ts +1 -0
  43. package/shared/types/renderer-source/button.d.ts +7 -0
  44. 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 };
@@ -2,4 +2,5 @@ import { NormalObject } from '@vunk/core';
2
2
  export interface BasicSource {
3
3
  templateIf?: ((data?: NormalObject) => boolean) | string | boolean;
4
4
  templateType?: string;
5
+ class?: any;
5
6
  }
@@ -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 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> | ComponentSource;
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;