@vunk/form 0.0.1-alpha.12 → 0.0.1-alpha.15

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 (35) hide show
  1. package/components/checkbox/index.d.ts +4 -0
  2. package/components/checkbox/index.js +107 -0
  3. package/components/checkbox/src/ctx.d.ts +95 -0
  4. package/components/checkbox/src/ctx.js +35 -0
  5. package/components/checkbox/src/index.vue.d.ts +241 -0
  6. package/components/checkbox/src/types.d.ts +1 -0
  7. package/components/checkbox/src/types.js +1 -0
  8. package/components/date-picker/src/ctx.d.ts +1 -1
  9. package/components/date-picker/src/index.vue.d.ts +13 -13
  10. package/components/form-item-renderer/index.js +2 -2
  11. package/components/form-item-renderer-template-default/index.js +46 -14
  12. package/components/form-item-renderer-template-layout/index.js +6 -6
  13. package/components/input/src/ctx.d.ts +1 -1
  14. package/components/input/src/index.vue.d.ts +7 -7
  15. package/components/input-number/src/index.vue.d.ts +12 -12
  16. package/components/radio/index.d.ts +4 -0
  17. package/components/radio/index.js +107 -0
  18. package/components/radio/src/ctx.d.ts +66 -0
  19. package/components/radio/src/ctx.js +35 -0
  20. package/components/radio/src/index.vue.d.ts +179 -0
  21. package/components/radio/src/types.d.ts +1 -0
  22. package/components/radio/src/types.js +1 -0
  23. package/components/select/index.js +13 -4
  24. package/components/select/src/index.vue.d.ts +27 -26
  25. package/components/switch/src/index.vue.d.ts +5 -5
  26. package/package.json +4 -1
  27. package/shared/element-plus/ctx.d.ts +15 -5
  28. package/shared/element-plus/index.js +6 -2
  29. package/shared/types/form/checkbox.d.ts +13 -0
  30. package/shared/types/form/index.d.ts +2 -0
  31. package/shared/types/form/index.js +1 -0
  32. package/shared/types/form/radio.d.ts +8 -0
  33. package/shared/types/renderer-source/checkbox.d.ts +7 -0
  34. package/shared/types/renderer-source/index.d.ts +5 -1
  35. package/shared/types/renderer-source/radio.d.ts +7 -0
@@ -0,0 +1,13 @@
1
+ export interface CheckboxProps {
2
+ value?: string | number;
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,2 @@
1
+ export * from './radio';
2
+ export * from './checkbox';
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,8 @@
1
+ export interface RadioProps {
2
+ border?: boolean;
3
+ name?: string;
4
+ size?: '' | 'default' | 'small' | 'large';
5
+ disabled?: boolean;
6
+ value?: string | number;
7
+ label?: string;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { VkfCheckbox } from '@vunk/form/components/checkbox';
2
+ import { VueComponentPropsType } from '@vunk/core';
3
+ import { BasicSource } from '@vunk/form/shared/types/basic-source';
4
+ export interface VkfCheckboxSource<P extends string = string> extends VueComponentPropsType<typeof VkfCheckbox>, BasicSource {
5
+ prop: P;
6
+ templateType: 'VkfCheckbox';
7
+ }
@@ -4,10 +4,14 @@ import type { VkfInputSource } from './input';
4
4
  import type { VkfSelectSource } from './select';
5
5
  import type { VkfSwitchSource } from './switch';
6
6
  import type { VkfInputNumberSource } from './input-number';
7
+ import type { VkfRadioSource } from './radio';
8
+ import type { VkfCheckboxSource } from './checkbox';
7
9
  export * from './compoent';
8
10
  export * from './date-picker';
9
11
  export * from './input';
10
12
  export * from './select';
11
13
  export * from './switch';
12
14
  export * from './input-number';
13
- export declare type FormItemRendererSource<P extends string = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P> | VkfInputNumberSource<P> | ComponentSource;
15
+ export * from './radio';
16
+ export * from './checkbox';
17
+ export declare type FormItemRendererSource<P extends string = string> = VkfInputSource<P> | VkfSwitchSource<P> | VkfSelectSource<P> | VkfDatePickerSource<P> | VkfInputNumberSource<P> | VkfRadioSource<P> | VkfCheckboxSource<P> | ComponentSource;
@@ -0,0 +1,7 @@
1
+ import VkfRadio from '@vunk/form/components/radio';
2
+ import { VueComponentPropsType } from '@vunk/core';
3
+ import { BasicSource } from '@vunk/form/shared/types/basic-source';
4
+ export interface VkfRadioSource<P extends string = string> extends VueComponentPropsType<typeof VkfRadio>, BasicSource {
5
+ prop: P;
6
+ templateType: 'VkfRadio';
7
+ }