@xto/form 1.6.7 → 1.6.9

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 (75) hide show
  1. package/es/AutoComplete/index.d.ts +29 -0
  2. package/es/AutoComplete/index.vue.d.ts +70 -0
  3. package/es/Cascader/index.d.ts +40 -0
  4. package/es/Cascader/index.vue.d.ts +58 -0
  5. package/es/Checkbox/group.vue.d.ts +34 -0
  6. package/es/Checkbox/index.d.ts +49 -0
  7. package/es/Checkbox/index.vue.d.ts +31 -0
  8. package/es/Checkbox/types.d.ts +106 -0
  9. package/es/ColorPicker/index.d.ts +15 -0
  10. package/es/ColorPicker/index.vue.d.ts +29 -0
  11. package/es/DatePicker/components/DateTable.vue.d.ts +36 -0
  12. package/es/DatePicker/components/MonthTable.vue.d.ts +14 -0
  13. package/es/DatePicker/components/YearTable.vue.d.ts +14 -0
  14. package/es/DatePicker/index.d.ts +35 -0
  15. package/es/DatePicker/index.vue.d.ts +57 -0
  16. package/es/DatePicker/types.d.ts +112 -0
  17. package/es/DatePicker/utils.d.ts +21 -0
  18. package/es/DynamicFields/index.d.ts +2 -0
  19. package/es/DynamicFields/index.vue.d.ts +52 -0
  20. package/es/DynamicFields/types.d.ts +36 -0
  21. package/es/Form/index.d.ts +77 -0
  22. package/es/Form/index.vue.d.ts +64 -0
  23. package/es/Form/item.vue.d.ts +31 -0
  24. package/es/Form/types.d.ts +239 -0
  25. package/es/Form/validators.d.ts +60 -0
  26. package/es/Input/index.d.ts +29 -0
  27. package/es/Input/index.vue.d.ts +70 -0
  28. package/es/Input/types.d.ts +97 -0
  29. package/es/InputNumber/index.vue.d.ts +57 -0
  30. package/es/InputNumber/types.d.ts +83 -0
  31. package/es/Mention/index.d.ts +27 -0
  32. package/es/Mention/index.vue.d.ts +45 -0
  33. package/es/Radio/button.vue.d.ts +29 -0
  34. package/es/Radio/group.vue.d.ts +35 -0
  35. package/es/Radio/index.d.ts +61 -0
  36. package/es/Radio/index.vue.d.ts +30 -0
  37. package/es/Radio/types.d.ts +83 -0
  38. package/es/Rate/index.d.ts +41 -0
  39. package/es/Rate/index.vue.d.ts +49 -0
  40. package/es/Rate/types.d.ts +71 -0
  41. package/es/RichEditor/index.d.ts +19 -0
  42. package/es/RichEditor/index.vue.d.ts +41 -0
  43. package/es/Segmented/index.d.ts +20 -0
  44. package/es/Segmented/index.vue.d.ts +52 -0
  45. package/es/Select/Option.vue.d.ts +9 -0
  46. package/es/Select/index.d.ts +48 -0
  47. package/es/Select/index.vue.d.ts +93 -0
  48. package/es/Select/types.d.ts +137 -0
  49. package/es/Select/utils.d.ts +8 -0
  50. package/es/Slider/index.d.ts +52 -0
  51. package/es/Slider/index.vue.d.ts +39 -0
  52. package/es/Slider/types.d.ts +77 -0
  53. package/es/Switch/index.d.ts +16 -0
  54. package/es/Switch/index.vue.d.ts +44 -0
  55. package/es/Switch/types.d.ts +69 -0
  56. package/es/Textarea/index.d.ts +48 -0
  57. package/es/Textarea/index.vue.d.ts +51 -0
  58. package/es/Textarea/types.d.ts +91 -0
  59. package/es/TimePicker/components/TimePanel.vue.d.ts +28 -0
  60. package/es/TimePicker/index.d.ts +39 -0
  61. package/es/TimePicker/index.vue.d.ts +57 -0
  62. package/es/TimePicker/types.d.ts +117 -0
  63. package/es/TimePicker/utils.d.ts +10 -0
  64. package/es/Transfer/index.d.ts +58 -0
  65. package/es/Transfer/index.vue.d.ts +62 -0
  66. package/es/Transfer/types.d.ts +117 -0
  67. package/es/Upload/index.d.ts +110 -0
  68. package/es/Upload/index.vue.d.ts +140 -0
  69. package/es/Upload/types.d.ts +238 -0
  70. package/es/index.d.ts +41 -0
  71. package/es/index.mjs +503 -496
  72. package/es/style.css +1 -1
  73. package/lib/index.cjs +1 -1
  74. package/lib/style.css +1 -1
  75. package/package.json +10 -10
@@ -0,0 +1,29 @@
1
+ import { ComponentSize } from '@xto/core';
2
+ export interface InputProps {
3
+ /** Input value */
4
+ modelValue?: string | number;
5
+ /** Input type */
6
+ type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
7
+ /** Placeholder text */
8
+ placeholder?: string;
9
+ /** Input size */
10
+ size?: ComponentSize;
11
+ /** Whether input is disabled */
12
+ disabled?: boolean;
13
+ /** Whether input is readonly */
14
+ readonly?: boolean;
15
+ /** Maximum input length */
16
+ maxlength?: number | string;
17
+ /** Minimum input length */
18
+ minlength?: number | string;
19
+ /** Whether to show word count */
20
+ showWordLimit?: boolean;
21
+ /** Whether input is clearable */
22
+ clearable?: boolean;
23
+ /** Whether to show password toggle */
24
+ showPassword?: boolean;
25
+ /** Prefix icon */
26
+ prefixIcon?: string;
27
+ /** Suffix icon */
28
+ suffixIcon?: string;
29
+ }
@@ -0,0 +1,70 @@
1
+ import { ComponentSize } from '@xto/core';
2
+ type __VLS_Props = {
3
+ modelValue?: string | number;
4
+ value?: string | number;
5
+ type?: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
6
+ placeholder?: string;
7
+ size?: ComponentSize;
8
+ disabled?: boolean;
9
+ readonly?: boolean;
10
+ maxlength?: number | string;
11
+ minlength?: number | string;
12
+ showWordLimit?: boolean;
13
+ clearable?: boolean;
14
+ showPassword?: boolean;
15
+ prefixIcon?: string;
16
+ suffixIcon?: string;
17
+ };
18
+ declare function __VLS_template(): {
19
+ attrs: Partial<{}>;
20
+ slots: {
21
+ prefix?(_: {}): any;
22
+ suffix?(_: {}): any;
23
+ };
24
+ refs: {
25
+ inputRef: HTMLInputElement;
26
+ };
27
+ rootEl: HTMLDivElement;
28
+ };
29
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
31
+ focus: () => void;
32
+ blur: () => void;
33
+ inputRef: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
34
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
+ "update:modelValue": (value: string | number) => any;
36
+ "update:value": (value: string | number) => any;
37
+ input: (value: string | number) => any;
38
+ change: (value: string | number) => any;
39
+ focus: (event: FocusEvent) => any;
40
+ blur: (event: FocusEvent) => any;
41
+ clear: () => any;
42
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
43
+ "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
44
+ "onUpdate:value"?: ((value: string | number) => any) | undefined;
45
+ onInput?: ((value: string | number) => any) | undefined;
46
+ onChange?: ((value: string | number) => any) | undefined;
47
+ onFocus?: ((event: FocusEvent) => any) | undefined;
48
+ onBlur?: ((event: FocusEvent) => any) | undefined;
49
+ onClear?: (() => any) | undefined;
50
+ }>, {
51
+ modelValue: string | number;
52
+ value: string | number;
53
+ type: "text" | "password" | "email" | "number" | "tel" | "url";
54
+ placeholder: string;
55
+ size: ComponentSize;
56
+ disabled: boolean;
57
+ readonly: boolean;
58
+ showWordLimit: boolean;
59
+ clearable: boolean;
60
+ showPassword: boolean;
61
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
62
+ inputRef: HTMLInputElement;
63
+ }, HTMLDivElement>;
64
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
65
+ export default _default;
66
+ type __VLS_WithTemplateSlots<T, S> = T & {
67
+ new (): {
68
+ $slots: S;
69
+ };
70
+ };
@@ -0,0 +1,97 @@
1
+ import { ComponentSize } from '@xto/core';
2
+ /**
3
+ * Input 类型
4
+ */
5
+ export type InputType = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
6
+ /**
7
+ * Input Props
8
+ */
9
+ export interface InputProps {
10
+ /**
11
+ * 绑定值
12
+ */
13
+ modelValue?: string | number;
14
+ /**
15
+ * 绑定值(别名)
16
+ */
17
+ value?: string | number;
18
+ /**
19
+ * 输入框类型
20
+ * @default 'text'
21
+ */
22
+ type?: InputType;
23
+ /**
24
+ * 占位文本
25
+ */
26
+ placeholder?: string;
27
+ /**
28
+ * 输入框尺寸
29
+ * @default 'default'
30
+ */
31
+ size?: ComponentSize;
32
+ /**
33
+ * 是否禁用
34
+ * @default false
35
+ */
36
+ disabled?: boolean;
37
+ /**
38
+ * 是否只读
39
+ * @default false
40
+ */
41
+ readonly?: boolean;
42
+ /**
43
+ * 最大输入长度
44
+ */
45
+ maxlength?: number | string;
46
+ /**
47
+ * 最小输入长度
48
+ */
49
+ minlength?: number | string;
50
+ /**
51
+ * 是否显示字数统计
52
+ * @default false
53
+ */
54
+ showWordLimit?: boolean;
55
+ /**
56
+ * 是否可清空
57
+ * @default false
58
+ */
59
+ clearable?: boolean;
60
+ /**
61
+ * 是否显示密码切换按钮
62
+ * @default false
63
+ */
64
+ showPassword?: boolean;
65
+ /**
66
+ * 前缀图标
67
+ */
68
+ prefixIcon?: string;
69
+ /**
70
+ * 后缀图标
71
+ */
72
+ suffixIcon?: string;
73
+ }
74
+ /**
75
+ * Input Emits
76
+ */
77
+ export interface InputEmits {
78
+ (e: 'update:modelValue', value: string | number): void;
79
+ (e: 'update:value', value: string | number): void;
80
+ (e: 'input', value: string | number): void;
81
+ (e: 'change', value: string | number): void;
82
+ (e: 'focus', event: FocusEvent): void;
83
+ (e: 'blur', event: FocusEvent): void;
84
+ (e: 'clear'): void;
85
+ }
86
+ /**
87
+ * Input Expose
88
+ */
89
+ export interface InputExpose {
90
+ focus: () => void;
91
+ blur: () => void;
92
+ inputRef: HTMLInputElement | undefined;
93
+ }
94
+ /**
95
+ * Input 组件实例类型
96
+ */
97
+ export type InputInstance = InstanceType<typeof import('./index.vue').default>;
@@ -0,0 +1,57 @@
1
+ import { ComponentSize } from '@xto/core';
2
+ type __VLS_Props = {
3
+ modelValue?: number;
4
+ value?: number;
5
+ min?: number;
6
+ max?: number;
7
+ step?: number;
8
+ stepStrictly?: boolean;
9
+ precision?: number;
10
+ size?: ComponentSize;
11
+ disabled?: boolean;
12
+ controls?: boolean;
13
+ controlsPosition?: '' | 'right';
14
+ placeholder?: string;
15
+ valueOnClear?: number | null;
16
+ };
17
+ declare function increase(): void;
18
+ declare function decrease(): void;
19
+ declare function clear(): void;
20
+ declare function focus(): void;
21
+ declare function blur(): void;
22
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
23
+ focus: typeof focus;
24
+ blur: typeof blur;
25
+ clear: typeof clear;
26
+ increase: typeof increase;
27
+ decrease: typeof decrease;
28
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
+ "update:modelValue": (value: number | undefined) => any;
30
+ "update:value": (value: number | undefined) => any;
31
+ change: (currentValue: number | undefined, oldValue: number | undefined) => any;
32
+ focus: (event: FocusEvent) => any;
33
+ blur: (event: FocusEvent) => any;
34
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
35
+ "onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
36
+ "onUpdate:value"?: ((value: number | undefined) => any) | undefined;
37
+ onChange?: ((currentValue: number | undefined, oldValue: number | undefined) => any) | undefined;
38
+ onFocus?: ((event: FocusEvent) => any) | undefined;
39
+ onBlur?: ((event: FocusEvent) => any) | undefined;
40
+ }>, {
41
+ modelValue: number;
42
+ value: number;
43
+ placeholder: string;
44
+ size: ComponentSize;
45
+ disabled: boolean;
46
+ min: number;
47
+ max: number;
48
+ step: number;
49
+ stepStrictly: boolean;
50
+ precision: number;
51
+ controls: boolean;
52
+ controlsPosition: "" | "right";
53
+ valueOnClear: number | null;
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
55
+ inputRef: HTMLInputElement;
56
+ }, HTMLDivElement>;
57
+ export default _default;
@@ -0,0 +1,83 @@
1
+ import { ComponentSize } from '@xto/core';
2
+ /**
3
+ * InputNumber Props
4
+ */
5
+ export interface InputNumberProps {
6
+ /**
7
+ * 绑定值
8
+ */
9
+ modelValue?: number;
10
+ /**
11
+ * 最小值
12
+ */
13
+ min?: number;
14
+ /**
15
+ * 最大值
16
+ */
17
+ max?: number;
18
+ /**
19
+ * 步长
20
+ * @default 1
21
+ */
22
+ step?: number;
23
+ /**
24
+ * 步长精度
25
+ */
26
+ precision?: number;
27
+ /**
28
+ * 输入框尺寸
29
+ * @default 'default'
30
+ */
31
+ size?: ComponentSize;
32
+ /**
33
+ * 是否禁用
34
+ * @default false
35
+ */
36
+ disabled?: boolean;
37
+ /**
38
+ * 是否只读
39
+ * @default false
40
+ */
41
+ readonly?: boolean;
42
+ /**
43
+ * 是否可清空
44
+ * @default false
45
+ */
46
+ clearable?: boolean;
47
+ /**
48
+ * 是否显示控制按钮
49
+ * @default true
50
+ */
51
+ controls?: boolean;
52
+ /**
53
+ * 控制按钮位置
54
+ * @default 'right'
55
+ */
56
+ controlsPosition?: 'left' | 'right';
57
+ /**
58
+ * 占位文本
59
+ */
60
+ placeholder?: string;
61
+ }
62
+ /**
63
+ * InputNumber Emits
64
+ */
65
+ export interface InputNumberEmits {
66
+ (e: 'update:modelValue', value: number): void;
67
+ (e: 'change', value: number): void;
68
+ (e: 'focus', event: FocusEvent): void;
69
+ (e: 'blur', event: FocusEvent): void;
70
+ }
71
+ /**
72
+ * InputNumber Expose
73
+ */
74
+ export interface InputNumberExpose {
75
+ focus: () => void;
76
+ blur: () => void;
77
+ increase: () => void;
78
+ decrease: () => void;
79
+ }
80
+ /**
81
+ * InputNumber 组件实例类型
82
+ */
83
+ export type InputNumberInstance = InstanceType<typeof import('./index.vue').default>;
@@ -0,0 +1,27 @@
1
+ import { default as Mention } from './index.vue';
2
+ export { Mention };
3
+ export default Mention;
4
+ export type MentionOption = {
5
+ value: string;
6
+ label?: string;
7
+ avatar?: string;
8
+ disabled?: boolean;
9
+ };
10
+ export type MentionProps = {
11
+ /** 绑定值 */
12
+ modelValue?: string;
13
+ /** 提及选项 */
14
+ options?: MentionOption[];
15
+ /** 触发字符 */
16
+ prefix?: string;
17
+ /** 占位符 */
18
+ placeholder?: string;
19
+ /** 是否禁用 */
20
+ disabled?: boolean;
21
+ /** 是否可清空 */
22
+ clearable?: boolean;
23
+ /** 分隔符 */
24
+ split?: string;
25
+ /** 尺寸 */
26
+ size?: 'large' | 'default' | 'small';
27
+ };
@@ -0,0 +1,45 @@
1
+ interface MentionOption {
2
+ value: string;
3
+ label?: string;
4
+ avatar?: string;
5
+ disabled?: boolean;
6
+ }
7
+ type __VLS_Props = {
8
+ /** 绑定值 */
9
+ modelValue?: string;
10
+ /** 提及选项 */
11
+ options?: MentionOption[];
12
+ /** 触发字符 */
13
+ prefix?: string;
14
+ /** 占位符 */
15
+ placeholder?: string;
16
+ /** 是否禁用 */
17
+ disabled?: boolean;
18
+ /** 是否可清空 */
19
+ clearable?: boolean;
20
+ /** 分隔符 */
21
+ split?: string;
22
+ /** 尺寸 */
23
+ size?: 'large' | 'default' | 'small';
24
+ };
25
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
+ "update:modelValue": (value: string) => any;
27
+ change: (value: string) => any;
28
+ select: (option: MentionOption, prefix: string) => any;
29
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
30
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
31
+ onChange?: ((value: string) => any) | undefined;
32
+ onSelect?: ((option: MentionOption, prefix: string) => any) | undefined;
33
+ }>, {
34
+ modelValue: string;
35
+ placeholder: string;
36
+ size: "large" | "default" | "small";
37
+ disabled: boolean;
38
+ clearable: boolean;
39
+ split: string;
40
+ prefix: string;
41
+ options: MentionOption[];
42
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
43
+ inputRef: HTMLInputElement;
44
+ }, HTMLDivElement>;
45
+ export default _default;
@@ -0,0 +1,29 @@
1
+ type __VLS_Props = {
2
+ value?: string | number | boolean;
3
+ label?: string | number;
4
+ disabled?: boolean;
5
+ name?: string;
6
+ };
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLLabelElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:modelValue": (value: string | number | boolean) => any;
18
+ change: (value: string | number | boolean) => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
21
+ onChange?: ((value: string | number | boolean) => any) | undefined;
22
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,35 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string | number | boolean;
3
+ value?: string | number | boolean;
4
+ disabled?: boolean;
5
+ name?: string;
6
+ };
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ };
12
+ refs: {};
13
+ rootEl: HTMLDivElement;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ "update:modelValue": (value: string | number | boolean) => any;
18
+ "update:value": (value: string | number | boolean) => any;
19
+ change: (value: string | number | boolean) => any;
20
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
22
+ "onUpdate:value"?: ((value: string | number | boolean) => any) | undefined;
23
+ onChange?: ((value: string | number | boolean) => any) | undefined;
24
+ }>, {
25
+ modelValue: string | number | boolean;
26
+ value: string | number | boolean;
27
+ disabled: boolean;
28
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
30
+ export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -0,0 +1,61 @@
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export declare const radioProps: {
3
+ readonly modelValue: {
4
+ readonly type: PropType<string | number | boolean>;
5
+ readonly default: "";
6
+ };
7
+ readonly value: {
8
+ readonly type: PropType<string | number | boolean>;
9
+ readonly default: undefined;
10
+ };
11
+ readonly label: {
12
+ readonly type: PropType<string | number>;
13
+ readonly default: undefined;
14
+ };
15
+ readonly disabled: {
16
+ readonly type: BooleanConstructor;
17
+ readonly default: false;
18
+ };
19
+ readonly name: {
20
+ readonly type: StringConstructor;
21
+ readonly default: undefined;
22
+ };
23
+ };
24
+ export declare const radioGroupProps: {
25
+ readonly modelValue: {
26
+ readonly type: PropType<string | number | boolean>;
27
+ readonly default: "";
28
+ };
29
+ readonly disabled: {
30
+ readonly type: BooleanConstructor;
31
+ readonly default: false;
32
+ };
33
+ readonly name: {
34
+ readonly type: StringConstructor;
35
+ readonly default: undefined;
36
+ };
37
+ };
38
+ export declare const radioButtonProps: {
39
+ readonly value: {
40
+ readonly type: PropType<string | number | boolean>;
41
+ readonly default: undefined;
42
+ };
43
+ readonly label: {
44
+ readonly type: PropType<string | number>;
45
+ readonly default: undefined;
46
+ };
47
+ readonly disabled: {
48
+ readonly type: BooleanConstructor;
49
+ readonly default: false;
50
+ };
51
+ readonly name: {
52
+ readonly type: StringConstructor;
53
+ readonly default: undefined;
54
+ };
55
+ };
56
+ export type RadioProps = ExtractPropTypes<typeof radioProps>;
57
+ export type RadioGroupProps = ExtractPropTypes<typeof radioGroupProps>;
58
+ export type RadioButtonProps = ExtractPropTypes<typeof radioButtonProps>;
59
+ export { default as Radio } from './index.vue';
60
+ export { default as RadioGroup } from './group.vue';
61
+ export { default as RadioButton } from './button.vue';
@@ -0,0 +1,30 @@
1
+ type __VLS_Props = {
2
+ modelValue?: string | number | boolean;
3
+ value?: string | number | boolean;
4
+ label?: string | number;
5
+ disabled?: boolean;
6
+ name?: string;
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: HTMLLabelElement;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:modelValue": (value: string | number | boolean) => any;
19
+ change: (value: string | number | boolean) => any;
20
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
21
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
22
+ onChange?: ((value: string | number | boolean) => any) | undefined;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLabelElement>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1,83 @@
1
+ import { ComponentSize } from '@xto/core';
2
+ /**
3
+ * Radio Props
4
+ */
5
+ export interface RadioProps {
6
+ /**
7
+ * 绑定值
8
+ */
9
+ modelValue?: string | number | boolean;
10
+ /**
11
+ * 选项值
12
+ */
13
+ value?: string | number | boolean;
14
+ /**
15
+ * 是否禁用
16
+ * @default false
17
+ */
18
+ disabled?: boolean;
19
+ /**
20
+ * 是否显示边框
21
+ * @default false
22
+ */
23
+ border?: boolean;
24
+ /**
25
+ * 单选框尺寸
26
+ * @default 'default'
27
+ */
28
+ size?: ComponentSize;
29
+ /**
30
+ * 原生 name 属性
31
+ */
32
+ name?: string;
33
+ }
34
+ /**
35
+ * Radio Emits
36
+ */
37
+ export interface RadioEmits {
38
+ (e: 'update:modelValue', value: string | number | boolean): void;
39
+ (e: 'change', value: string | number | boolean): void;
40
+ }
41
+ /**
42
+ * Radio 组件实例类型
43
+ */
44
+ export type RadioInstance = InstanceType<typeof import('./index.vue').default>;
45
+ /**
46
+ * RadioGroup Props
47
+ */
48
+ export interface RadioGroupProps {
49
+ /**
50
+ * 绑定值
51
+ */
52
+ modelValue?: string | number | boolean;
53
+ /**
54
+ * 是否禁用
55
+ * @default false
56
+ */
57
+ disabled?: boolean;
58
+ /**
59
+ * 单选框尺寸
60
+ * @default 'default'
61
+ */
62
+ size?: ComponentSize;
63
+ /**
64
+ * 是否显示边框
65
+ * @default false
66
+ */
67
+ border?: boolean;
68
+ /**
69
+ * 原生 name 属性
70
+ */
71
+ name?: string;
72
+ }
73
+ /**
74
+ * RadioGroup Emits
75
+ */
76
+ export interface RadioGroupEmits {
77
+ (e: 'update:modelValue', value: string | number | boolean): void;
78
+ (e: 'change', value: string | number | boolean): void;
79
+ }
80
+ /**
81
+ * RadioGroup 组件实例类型
82
+ */
83
+ export type RadioGroupInstance = InstanceType<typeof import('./group.vue').default>;
@@ -0,0 +1,41 @@
1
+ export interface RateProps {
2
+ /** 绑定值 */
3
+ modelValue?: number;
4
+ /** 最大分值 */
5
+ max?: number;
6
+ /** 是否禁用 */
7
+ disabled?: boolean;
8
+ /** 是否只读 */
9
+ readonly?: boolean;
10
+ /** 是否允许半选 */
11
+ allowHalf?: boolean;
12
+ /** 低分和中等分数的界限值 */
13
+ lowThreshold?: number;
14
+ /** 高分和中等分数的界限值 */
15
+ highThreshold?: number;
16
+ /** 自定义颜色数组 */
17
+ colors?: string[];
18
+ /** 未选中时的颜色 */
19
+ voidColor?: string;
20
+ /** 禁用时的颜色 */
21
+ disabledVoidColor?: string;
22
+ /** 选中时的图标 */
23
+ icon?: string;
24
+ /** 未选中时的图标 */
25
+ voidIcon?: string;
26
+ /** 禁用时的图标 */
27
+ disabledVoidIcon?: string;
28
+ /** 是否显示辅助文字 */
29
+ showText?: boolean;
30
+ /** 是否显示当前分数 */
31
+ showScore?: boolean;
32
+ /** 辅助文字颜色 */
33
+ textColor?: string;
34
+ /** 辅助文字数组 */
35
+ texts?: string[];
36
+ /** 分数显示模板 */
37
+ scoreTemplate?: string;
38
+ /** 尺寸 */
39
+ size?: 'large' | 'default' | 'small';
40
+ }
41
+ export { default as Rate } from './index.vue';