@nutui/nutui 4.3.4 → 4.3.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.
Files changed (88) hide show
  1. package/CHANGELOG.md +40 -1
  2. package/dist/nutui.es.js +1 -1
  3. package/dist/nutui.js +5358 -5629
  4. package/dist/nutui.umd.js +1 -1
  5. package/dist/packages/audio/Audio.js +2 -1
  6. package/dist/packages/audiooperate/AudioOperate.js +2 -1
  7. package/dist/packages/cell/Cell.js +89 -80
  8. package/dist/packages/cellgroup/CellGroup.js +44 -21
  9. package/dist/packages/checkbox/Checkbox.js +1 -1
  10. package/dist/packages/{common-DRG0ue26.js → common-BH7uB7Cn.js} +4 -2
  11. package/dist/packages/countdown/Countdown.js +130 -173
  12. package/dist/packages/form/Form.js +5 -5
  13. package/dist/packages/formitem/FormItem.js +5 -5
  14. package/dist/packages/grid/Grid.js +68 -5
  15. package/dist/packages/griditem/GridItem.js +61 -81
  16. package/dist/packages/input/Input.js +1 -1
  17. package/dist/packages/inputnumber/InputNumber.js +7 -7
  18. package/dist/packages/invoice/Invoice.js +4 -4
  19. package/dist/packages/picker/Picker.js +1 -1
  20. package/dist/packages/radio/Radio.js +112 -1
  21. package/dist/packages/radiogroup/RadioGroup.js +60 -1
  22. package/dist/packages/range/Range.js +1 -1
  23. package/dist/packages/rate/Rate.js +1 -1
  24. package/dist/packages/searchbar/Searchbar.js +1 -1
  25. package/dist/packages/skeleton/Skeleton.js +88 -123
  26. package/dist/packages/step/Step.js +64 -83
  27. package/dist/packages/steps/Steps.js +44 -40
  28. package/dist/packages/switch/Switch.js +1 -1
  29. package/dist/packages/tabpane/TabPane.js +2 -1
  30. package/dist/packages/tabs/Tabs.js +2 -1
  31. package/dist/packages/textarea/Textarea.js +1 -1
  32. package/dist/packages/types-BMA1Y94E.js +4 -0
  33. package/dist/packages/types-BXlnzugj.js +4 -0
  34. package/dist/packages/types-CJeZIBld.js +4 -0
  35. package/dist/packages/uploader/Uploader.js +1 -1
  36. package/dist/smartips/web-types.json +446 -26
  37. package/dist/types/__VUE/audio/index.vue.d.ts +2 -2
  38. package/dist/types/__VUE/audio/types.d.ts +2 -0
  39. package/dist/types/__VUE/audiooperate/index.vue.d.ts +1 -1
  40. package/dist/types/__VUE/cell/cell.vue.d.ts +113 -0
  41. package/dist/types/__VUE/cell/index.d.ts +6 -0
  42. package/dist/types/__VUE/cellgroup/cell-group.vue.d.ts +55 -0
  43. package/dist/types/__VUE/cellgroup/index.d.ts +5 -0
  44. package/dist/types/__VUE/countdown/countdown.vue.d.ts +108 -0
  45. package/dist/types/__VUE/countdown/index.d.ts +5 -0
  46. package/dist/types/__VUE/countdown/util.d.ts +14 -0
  47. package/dist/types/__VUE/form/common.d.ts +1 -0
  48. package/dist/types/__VUE/grid/grid.vue.d.ts +87 -0
  49. package/dist/types/__VUE/grid/index.d.ts +6 -0
  50. package/dist/types/__VUE/grid/types.d.ts +2 -0
  51. package/dist/types/__VUE/griditem/grid-item.vue.d.ts +64 -0
  52. package/dist/types/__VUE/griditem/index.d.ts +5 -0
  53. package/dist/types/__VUE/navbar/navbar.vue.d.ts +1 -1
  54. package/dist/types/__VUE/picker/Column.vue.d.ts +2 -2
  55. package/dist/types/__VUE/radio/index.d.ts +6 -0
  56. package/dist/types/__VUE/radio/radio.vue.d.ts +74 -0
  57. package/dist/types/__VUE/radiogroup/index.d.ts +5 -0
  58. package/dist/types/__VUE/radiogroup/radio-group.vue.d.ts +66 -0
  59. package/dist/types/__VUE/skeleton/index.d.ts +5 -0
  60. package/dist/types/__VUE/skeleton/skeleton.vue.d.ts +102 -0
  61. package/dist/types/__VUE/step/index.d.ts +5 -0
  62. package/dist/types/__VUE/step/step.vue.d.ts +55 -0
  63. package/dist/types/__VUE/steps/index.d.ts +6 -0
  64. package/dist/types/__VUE/steps/steps.vue.d.ts +64 -0
  65. package/dist/types/__VUE/swiper/index.vue.d.ts +2 -2
  66. package/dist/types/__VUE/tabs/index.vue.d.ts +1 -1
  67. package/dist/types/__VUE/tabs/types.d.ts +1 -0
  68. package/dist/types/__VUE/uploader/index.vue.d.ts +1 -1
  69. package/dist/types/index.d.ts +21 -11
  70. package/dist/types/utils/Interceptor.d.ts +2 -2
  71. package/dist/types/utils/index.d.ts +2 -0
  72. package/dist/types/utils/useRelation/useParent.d.ts +1 -1
  73. package/package.json +1 -1
  74. package/dist/packages/common-Chr7cC9o.js +0 -145
  75. package/dist/packages/index.vue_vue_type_script_lang-CTQUvlgN.js +0 -99
  76. package/dist/packages/index.vue_vue_type_script_lang-CaSiRl9x.js +0 -46
  77. package/dist/types/__VUE/audiooperate/types.d.ts +0 -1
  78. package/dist/types/__VUE/cell/index.vue.d.ts +0 -120
  79. package/dist/types/__VUE/cellgroup/index.vue.d.ts +0 -33
  80. package/dist/types/__VUE/countdown/index.vue.d.ts +0 -125
  81. package/dist/types/__VUE/grid/common.d.ts +0 -73
  82. package/dist/types/__VUE/grid/index.vue.d.ts +0 -84
  83. package/dist/types/__VUE/griditem/index.vue.d.ts +0 -47
  84. package/dist/types/__VUE/radio/index.vue.d.ts +0 -64
  85. package/dist/types/__VUE/radiogroup/index.vue.d.ts +0 -49
  86. package/dist/types/__VUE/skeleton/index.vue.d.ts +0 -117
  87. package/dist/types/__VUE/step/index.vue.d.ts +0 -42
  88. package/dist/types/__VUE/steps/index.vue.d.ts +0 -48
@@ -1 +1,3 @@
1
1
  export type AudioType = 'progress' | 'icon' | 'controls' | 'none';
2
+ export type AudioOperateType = 'play' | 'back' | 'forward' | 'mute';
3
+ export declare const AUDIO_KEY: unique symbol;
@@ -1,5 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
- import type { AudioOperateType } from './types';
2
+ import { type AudioOperateType } from '../audio/types';
3
3
 
4
4
  declare type Install<T> = T & {
5
5
  install(app: import('vue').App): void;
@@ -0,0 +1,113 @@
1
+ import type { WithInstall } from '../../utils';
2
+ import type { CellSize } from './types';
3
+ export type CellProps = Partial<{
4
+ title: string;
5
+ subTitle: string;
6
+ desc: string;
7
+ descTextAlign: string;
8
+ isLink: boolean;
9
+ roundRadius: string | number;
10
+ center: boolean;
11
+ size: CellSize;
12
+ to: string | object;
13
+ replace: boolean;
14
+ url: string;
15
+ }>;
16
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
17
+ title: string;
18
+ subTitle: string;
19
+ desc: string;
20
+ descTextAlign: string;
21
+ isLink: boolean;
22
+ roundRadius: string | number;
23
+ center: boolean;
24
+ size: CellSize;
25
+ to: string | object;
26
+ replace: boolean;
27
+ url: string;
28
+ }>>, {
29
+ title: string;
30
+ subTitle: string;
31
+ desc: string;
32
+ descTextAlign: string;
33
+ isLink: boolean;
34
+ roundRadius: string;
35
+ center: boolean;
36
+ size: string;
37
+ replace: boolean;
38
+ url: string;
39
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ click: (...args: any[]) => void;
41
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
42
+ title: string;
43
+ subTitle: string;
44
+ desc: string;
45
+ descTextAlign: string;
46
+ isLink: boolean;
47
+ roundRadius: string | number;
48
+ center: boolean;
49
+ size: CellSize;
50
+ to: string | object;
51
+ replace: boolean;
52
+ url: string;
53
+ }>>, {
54
+ title: string;
55
+ subTitle: string;
56
+ desc: string;
57
+ descTextAlign: string;
58
+ isLink: boolean;
59
+ roundRadius: string;
60
+ center: boolean;
61
+ size: string;
62
+ replace: boolean;
63
+ url: string;
64
+ }>>> & {
65
+ onClick?: ((...args: any[]) => any) | undefined;
66
+ }, {
67
+ size: CellSize;
68
+ replace: boolean;
69
+ title: string;
70
+ desc: string;
71
+ center: boolean;
72
+ subTitle: string;
73
+ descTextAlign: string;
74
+ isLink: boolean;
75
+ roundRadius: string | number;
76
+ url: string;
77
+ }, {}>, {
78
+ default?(_: {}): any;
79
+ icon?(_: {}): any;
80
+ title?(_: {}): any;
81
+ desc?(_: {}): any;
82
+ link?(_: {}): any;
83
+ }>;
84
+ declare const _nut_default: WithInstall<typeof _default>;
85
+ export default _nut_default;
86
+
87
+ declare module 'vue' {
88
+ interface GlobalComponents {
89
+ NutCell: typeof _default;
90
+ }
91
+ }
92
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
93
+ type __VLS_TypePropsToRuntimeProps<T> = {
94
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
95
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
96
+ } : {
97
+ type: import('vue').PropType<T[K]>;
98
+ required: true;
99
+ };
100
+ };
101
+ type __VLS_WithDefaults<P, D> = {
102
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
103
+ default: D[K];
104
+ }> : P[K];
105
+ };
106
+ type __VLS_Prettify<T> = {
107
+ [K in keyof T]: T[K];
108
+ } & {};
109
+ type __VLS_WithTemplateSlots<T, S> = T & {
110
+ new (): {
111
+ $slots: S;
112
+ };
113
+ };
@@ -0,0 +1,6 @@
1
+ import Cell from './cell.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { CellProps } from './cell.vue';
4
+ export type { CellSize } from './types';
5
+ export type CellInstance = ComponentPublicInstance & InstanceType<typeof Cell>;
6
+ export { Cell, Cell as default };
@@ -0,0 +1,55 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export type CellGroupProps = Partial<{
3
+ title: string;
4
+ desc: string;
5
+ }>;
6
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
7
+ title: string;
8
+ desc: string;
9
+ }>>, {
10
+ title: string;
11
+ desc: string;
12
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
13
+ title: string;
14
+ desc: string;
15
+ }>>, {
16
+ title: string;
17
+ desc: string;
18
+ }>>>, {
19
+ title: string;
20
+ desc: string;
21
+ }, {}>, {
22
+ title?(_: {}): any;
23
+ desc?(_: {}): any;
24
+ default?(_: {}): any;
25
+ }>;
26
+ declare const _nut_default: WithInstall<typeof _default>;
27
+ export default _nut_default;
28
+
29
+ declare module 'vue' {
30
+ interface GlobalComponents {
31
+ NutCellGroup: typeof _default;
32
+ }
33
+ }
34
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
35
+ type __VLS_TypePropsToRuntimeProps<T> = {
36
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
37
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
38
+ } : {
39
+ type: import('vue').PropType<T[K]>;
40
+ required: true;
41
+ };
42
+ };
43
+ type __VLS_WithDefaults<P, D> = {
44
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
45
+ default: D[K];
46
+ }> : P[K];
47
+ };
48
+ type __VLS_Prettify<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
51
+ type __VLS_WithTemplateSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
55
+ };
@@ -0,0 +1,5 @@
1
+ import CellGroup from './cell-group.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { CellGroupProps } from './cell-group.vue';
4
+ export type CellGroupInstance = ComponentPublicInstance & InstanceType<typeof CellGroup>;
5
+ export { CellGroup, CellGroup as default };
@@ -0,0 +1,108 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export type CountdownProps = Partial<{
3
+ modelValue: Record<string, string>;
4
+ paused: boolean;
5
+ startTime: number | string;
6
+ endTime: number | string;
7
+ millisecond: boolean;
8
+ format: string;
9
+ autoStart: boolean;
10
+ time: number | string;
11
+ }>;
12
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
13
+ modelValue: Record<string, string>;
14
+ paused: boolean;
15
+ startTime: string | number;
16
+ endTime: string | number;
17
+ millisecond: boolean;
18
+ format: string;
19
+ autoStart: boolean;
20
+ time: string | number;
21
+ }>>, {
22
+ paused: boolean;
23
+ startTime: string;
24
+ endTime: string;
25
+ millisecond: boolean;
26
+ format: string;
27
+ autoStart: boolean;
28
+ time: number;
29
+ }>, {
30
+ start: () => void;
31
+ pause: () => void;
32
+ reset: () => void;
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
+ input: (...args: any[]) => void;
35
+ end: (...args: any[]) => void;
36
+ paused: (...args: any[]) => void;
37
+ "update:modelValue": (...args: any[]) => void;
38
+ restart: (...args: any[]) => void;
39
+ onEnd: (...args: any[]) => void;
40
+ onRestart: (...args: any[]) => void;
41
+ onPaused: (...args: any[]) => void;
42
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
43
+ modelValue: Record<string, string>;
44
+ paused: boolean;
45
+ startTime: string | number;
46
+ endTime: string | number;
47
+ millisecond: boolean;
48
+ format: string;
49
+ autoStart: boolean;
50
+ time: string | number;
51
+ }>>, {
52
+ paused: boolean;
53
+ startTime: string;
54
+ endTime: string;
55
+ millisecond: boolean;
56
+ format: string;
57
+ autoStart: boolean;
58
+ time: number;
59
+ }>>> & {
60
+ onInput?: ((...args: any[]) => any) | undefined;
61
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
62
+ onEnd?: ((...args: any[]) => any) | undefined;
63
+ onRestart?: ((...args: any[]) => any) | undefined;
64
+ onPaused?: ((...args: any[]) => any) | undefined;
65
+ onOnEnd?: ((...args: any[]) => any) | undefined;
66
+ onOnRestart?: ((...args: any[]) => any) | undefined;
67
+ onOnPaused?: ((...args: any[]) => any) | undefined;
68
+ }, {
69
+ time: string | number;
70
+ paused: boolean;
71
+ startTime: string | number;
72
+ endTime: string | number;
73
+ millisecond: boolean;
74
+ format: string;
75
+ autoStart: boolean;
76
+ }, {}>, {
77
+ default?(_: {}): any;
78
+ }>;
79
+ declare const _nut_default: WithInstall<typeof _default>;
80
+ export default _nut_default;
81
+
82
+ declare module 'vue' {
83
+ interface GlobalComponents {
84
+ NutCountdown: typeof _default;
85
+ }
86
+ }
87
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
88
+ type __VLS_TypePropsToRuntimeProps<T> = {
89
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
90
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
91
+ } : {
92
+ type: import('vue').PropType<T[K]>;
93
+ required: true;
94
+ };
95
+ };
96
+ type __VLS_WithDefaults<P, D> = {
97
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
98
+ default: D[K];
99
+ }> : P[K];
100
+ };
101
+ type __VLS_Prettify<T> = {
102
+ [K in keyof T]: T[K];
103
+ } & {};
104
+ type __VLS_WithTemplateSlots<T, S> = T & {
105
+ new (): {
106
+ $slots: S;
107
+ };
108
+ };
@@ -0,0 +1,5 @@
1
+ import Countdown from './countdown.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { CountdownProps } from './countdown.vue';
4
+ export type CountdownInstance = ComponentPublicInstance & InstanceType<typeof Countdown>;
5
+ export { Countdown, Countdown as default };
@@ -1 +1,15 @@
1
1
  export declare const getTimeStamp: (timeStr?: string | number) => number;
2
+ export declare const parseFormat: (time: {
3
+ d: number;
4
+ h: number;
5
+ m: number;
6
+ s: number;
7
+ ms: number;
8
+ }, format: string) => string;
9
+ export declare const formatRemainTime: (t: number, format: string, type?: string) => string | {
10
+ d: number;
11
+ h: number;
12
+ m: number;
13
+ s: number;
14
+ ms: number;
15
+ };
@@ -1,4 +1,5 @@
1
1
  import type { ComputedRef, Ref } from 'vue';
2
2
  export declare const FORM_KEY: unique symbol;
3
3
  export declare const FORM_DISABLED_KEY: unique symbol;
4
+ export declare const FORM_TIP_KEY: unique symbol;
4
5
  export declare const useFormDisabled: (disabled: Ref<boolean>) => ComputedRef<boolean>;
@@ -0,0 +1,87 @@
1
+ import type { WithInstall } from '../../utils';
2
+ import { type GridDirection } from './types';
3
+ export type GridProps = Partial<{
4
+ columnNum: string | number;
5
+ border: boolean;
6
+ gutter: string | number;
7
+ center: boolean;
8
+ square: boolean;
9
+ reverse: boolean;
10
+ direction: GridDirection;
11
+ clickable: boolean;
12
+ }>;
13
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
14
+ columnNum: string | number;
15
+ border: boolean;
16
+ gutter: string | number;
17
+ center: boolean;
18
+ square: boolean;
19
+ reverse: boolean;
20
+ direction: GridDirection;
21
+ clickable: boolean;
22
+ }>>, {
23
+ columnNum: number;
24
+ border: boolean;
25
+ gutter: number;
26
+ center: boolean;
27
+ square: boolean;
28
+ reverse: boolean;
29
+ clickable: boolean;
30
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
31
+ columnNum: string | number;
32
+ border: boolean;
33
+ gutter: string | number;
34
+ center: boolean;
35
+ square: boolean;
36
+ reverse: boolean;
37
+ direction: GridDirection;
38
+ clickable: boolean;
39
+ }>>, {
40
+ columnNum: number;
41
+ border: boolean;
42
+ gutter: number;
43
+ center: boolean;
44
+ square: boolean;
45
+ reverse: boolean;
46
+ clickable: boolean;
47
+ }>>>, {
48
+ square: boolean;
49
+ reverse: boolean;
50
+ center: boolean;
51
+ border: boolean;
52
+ gutter: string | number;
53
+ columnNum: string | number;
54
+ clickable: boolean;
55
+ }, {}>, {
56
+ default?(_: {}): any;
57
+ }>;
58
+ declare const _nut_default: WithInstall<typeof _default>;
59
+ export default _nut_default;
60
+
61
+ declare module 'vue' {
62
+ interface GlobalComponents {
63
+ NutGrid: typeof _default;
64
+ }
65
+ }
66
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
67
+ type __VLS_TypePropsToRuntimeProps<T> = {
68
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
69
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
70
+ } : {
71
+ type: import('vue').PropType<T[K]>;
72
+ required: true;
73
+ };
74
+ };
75
+ type __VLS_WithDefaults<P, D> = {
76
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
77
+ default: D[K];
78
+ }> : P[K];
79
+ };
80
+ type __VLS_Prettify<T> = {
81
+ [K in keyof T]: T[K];
82
+ } & {};
83
+ type __VLS_WithTemplateSlots<T, S> = T & {
84
+ new (): {
85
+ $slots: S;
86
+ };
87
+ };
@@ -0,0 +1,6 @@
1
+ import Grid from './grid.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { GridProps } from './grid.vue';
4
+ export type { GridDirection } from './types';
5
+ export type GridInstance = ComponentPublicInstance & InstanceType<typeof Grid>;
6
+ export { Grid, Grid as default };
@@ -0,0 +1,2 @@
1
+ export declare const GRID_KEY: unique symbol;
2
+ export type GridDirection = 'horizontal' | 'vertical';
@@ -0,0 +1,64 @@
1
+ import type { WithInstall } from '../../utils';
2
+ export type GridItemProps = Partial<{
3
+ text: string;
4
+ to: string | object;
5
+ url: string;
6
+ replace: boolean;
7
+ }>;
8
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
9
+ text: string;
10
+ to: string | object;
11
+ url: string;
12
+ replace: boolean;
13
+ }>>, {
14
+ url: string;
15
+ replace: boolean;
16
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
17
+ click: (...args: any[]) => void;
18
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
19
+ text: string;
20
+ to: string | object;
21
+ url: string;
22
+ replace: boolean;
23
+ }>>, {
24
+ url: string;
25
+ replace: boolean;
26
+ }>>> & {
27
+ onClick?: ((...args: any[]) => any) | undefined;
28
+ }, {
29
+ replace: boolean;
30
+ url: string;
31
+ }, {}>, {
32
+ default?(_: {}): any;
33
+ text?(_: {}): any;
34
+ }>;
35
+ declare const _nut_default: WithInstall<typeof _default>;
36
+ export default _nut_default;
37
+
38
+ declare module 'vue' {
39
+ interface GlobalComponents {
40
+ NutGridItem: typeof _default;
41
+ }
42
+ }
43
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
44
+ type __VLS_TypePropsToRuntimeProps<T> = {
45
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
46
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
47
+ } : {
48
+ type: import('vue').PropType<T[K]>;
49
+ required: true;
50
+ };
51
+ };
52
+ type __VLS_WithDefaults<P, D> = {
53
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
+ default: D[K];
55
+ }> : P[K];
56
+ };
57
+ type __VLS_Prettify<T> = {
58
+ [K in keyof T]: T[K];
59
+ } & {};
60
+ type __VLS_WithTemplateSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
@@ -0,0 +1,5 @@
1
+ import GridItem from './grid-item.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { GridItemProps } from './grid-item.vue';
4
+ export type GridItemInstance = ComponentPublicInstance & InstanceType<typeof GridItem>;
5
+ export { GridItem, GridItem as default };
@@ -74,9 +74,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
74
74
  onOnClickIcon?: ((...args: any[]) => any) | undefined;
75
75
  onOnClickRight?: ((...args: any[]) => any) | undefined;
76
76
  }, {
77
+ fixed: boolean;
77
78
  title: string;
78
79
  desc: string;
79
- fixed: boolean;
80
80
  zIndex: string | number;
81
81
  border: boolean;
82
82
  leftShow: boolean;
@@ -33,7 +33,7 @@ declare const _default: Install< import("vue").DefineComponent<{
33
33
  };
34
34
  taro: {
35
35
  type: BooleanConstructor;
36
- defualt: boolean;
36
+ default: boolean;
37
37
  };
38
38
  }, {
39
39
  setRollerStyle: (index: number) => string;
@@ -111,7 +111,7 @@ declare const _default: Install< import("vue").DefineComponent<{
111
111
  };
112
112
  taro: {
113
113
  type: BooleanConstructor;
114
- defualt: boolean;
114
+ default: boolean;
115
115
  };
116
116
  }>> & {
117
117
  onClick?: ((...args: any[]) => any) | undefined;
@@ -0,0 +1,6 @@
1
+ import Radio from './radio.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { RadioProps } from './radio.vue';
4
+ export type { RadioShape, RadioButtonSize, RadioGroupDirection, RadioGroupTextPosition } from './types';
5
+ export type RadioInstance = ComponentPublicInstance & InstanceType<typeof Radio>;
6
+ export { Radio, Radio as default };
@@ -0,0 +1,74 @@
1
+ import type { WithInstall } from '../../utils';
2
+ import { type RadioShape, type RadioButtonSize } from './types';
3
+ export type RadioProps = Partial<{
4
+ disabled: boolean;
5
+ shape: RadioShape;
6
+ label: string | number | boolean;
7
+ iconSize: string | number;
8
+ size: RadioButtonSize;
9
+ }>;
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
11
+ disabled: boolean;
12
+ shape: RadioShape;
13
+ label: string | number | boolean;
14
+ iconSize: string | number;
15
+ size: RadioButtonSize;
16
+ }>>, {
17
+ disabled: boolean;
18
+ shape: string;
19
+ label: string;
20
+ iconSize: string;
21
+ size: string;
22
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Partial<{
23
+ disabled: boolean;
24
+ shape: RadioShape;
25
+ label: string | number | boolean;
26
+ iconSize: string | number;
27
+ size: RadioButtonSize;
28
+ }>>, {
29
+ disabled: boolean;
30
+ shape: string;
31
+ label: string;
32
+ iconSize: string;
33
+ size: string;
34
+ }>>>, {
35
+ shape: RadioShape;
36
+ disabled: boolean;
37
+ size: RadioButtonSize;
38
+ label: string | number | boolean;
39
+ iconSize: string | number;
40
+ }, {}>, {
41
+ default?(_: {}): any;
42
+ checkedIcon?(_: {}): any;
43
+ icon?(_: {}): any;
44
+ }>;
45
+ declare const _nut_default: WithInstall<typeof _default>;
46
+ export default _nut_default;
47
+
48
+ declare module 'vue' {
49
+ interface GlobalComponents {
50
+ NutRadio: typeof _default;
51
+ }
52
+ }
53
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
+ type __VLS_TypePropsToRuntimeProps<T> = {
55
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
56
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
57
+ } : {
58
+ type: import('vue').PropType<T[K]>;
59
+ required: true;
60
+ };
61
+ };
62
+ type __VLS_WithDefaults<P, D> = {
63
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
64
+ default: D[K];
65
+ }> : P[K];
66
+ };
67
+ type __VLS_Prettify<T> = {
68
+ [K in keyof T]: T[K];
69
+ } & {};
70
+ type __VLS_WithTemplateSlots<T, S> = T & {
71
+ new (): {
72
+ $slots: S;
73
+ };
74
+ };
@@ -0,0 +1,5 @@
1
+ import RadioGroup from './radio-group.vue';
2
+ import type { ComponentPublicInstance } from 'vue';
3
+ export type { RadioGroupProps } from './radio-group.vue';
4
+ export type RadioGroupInstance = ComponentPublicInstance & InstanceType<typeof RadioGroup>;
5
+ export { RadioGroup, RadioGroup as default };