@kengic/uni 0.3.2-beta.3

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 (108) hide show
  1. package/README.md +1 -0
  2. package/dist/index.css +1 -0
  3. package/dist/kengic-uni.js +1374 -0
  4. package/dist/src/components/index.d.ts +5 -0
  5. package/dist/src/components/uni-ui/uni-badge/uni-badge.vue.d.ts +108 -0
  6. package/dist/src/components/uni-ui/uni-breadcrumb/uni-breadcrumb.vue.d.ts +23 -0
  7. package/dist/src/components/uni-ui/uni-breadcrumb-item/uni-breadcrumb-item.vue.d.ts +30 -0
  8. package/dist/src/components/uni-ui/uni-calendar/calendar.d.ts +67 -0
  9. package/dist/src/components/uni-ui/uni-calendar/i18n/index.d.ts +39 -0
  10. package/dist/src/components/uni-ui/uni-calendar/uni-calendar-item.vue.d.ts +47 -0
  11. package/dist/src/components/uni-ui/uni-calendar/uni-calendar.vue.d.ts +166 -0
  12. package/dist/src/components/uni-ui/uni-calendar/util.d.ts +211 -0
  13. package/dist/src/components/uni-ui/uni-card/uni-card.vue.d.ts +117 -0
  14. package/dist/src/components/uni-ui/uni-col/uni-col.vue.d.ts +70 -0
  15. package/dist/src/components/uni-ui/uni-collapse/uni-collapse.vue.d.ts +45 -0
  16. package/dist/src/components/uni-ui/uni-collapse-item/uni-collapse-item.vue.d.ts +102 -0
  17. package/dist/src/components/uni-ui/uni-combox/uni-combox.vue.d.ts +95 -0
  18. package/dist/src/components/uni-ui/uni-countdown/i18n/index.d.ts +21 -0
  19. package/dist/src/components/uni-ui/uni-countdown/uni-countdown.vue.d.ts +158 -0
  20. package/dist/src/components/uni-ui/uni-data-checkbox/uni-data-checkbox.vue.d.ts +192 -0
  21. package/dist/src/components/uni-ui/uni-data-picker/uni-data-picker.vue.d.ts +267 -0
  22. package/dist/src/components/uni-ui/uni-data-pickerview/uni-data-picker.d.ts +221 -0
  23. package/dist/src/components/uni-ui/uni-data-pickerview/uni-data-pickerview.vue.d.ts +169 -0
  24. package/dist/src/components/uni-ui/uni-data-select/uni-data-select.vue.d.ts +125 -0
  25. package/dist/src/components/uni-ui/uni-dateformat/date-format.d.ts +6 -0
  26. package/dist/src/components/uni-ui/uni-dateformat/uni-dateformat.vue.d.ts +57 -0
  27. package/dist/src/components/uni-ui/uni-datetime-picker/calendar-item.vue.d.ts +44 -0
  28. package/dist/src/components/uni-ui/uni-datetime-picker/calendar.vue.d.ts +253 -0
  29. package/dist/src/components/uni-ui/uni-datetime-picker/i18n/index.d.ts +69 -0
  30. package/dist/src/components/uni-ui/uni-datetime-picker/time-picker.vue.d.ts +225 -0
  31. package/dist/src/components/uni-ui/uni-datetime-picker/uni-datetime-picker.vue.d.ts +236 -0
  32. package/dist/src/components/uni-ui/uni-datetime-picker/util.d.ts +171 -0
  33. package/dist/src/components/uni-ui/uni-drawer/keypress.d.ts +14 -0
  34. package/dist/src/components/uni-ui/uni-drawer/uni-drawer.vue.d.ts +78 -0
  35. package/dist/src/components/uni-ui/uni-easyinput/uni-easyinput.vue.d.ts +269 -0
  36. package/dist/src/components/uni-ui/uni-fab/uni-fab.vue.d.ts +109 -0
  37. package/dist/src/components/uni-ui/uni-fav/i18n/index.d.ts +15 -0
  38. package/dist/src/components/uni-ui/uni-fav/uni-fav.vue.d.ts +99 -0
  39. package/dist/src/components/uni-ui/uni-file-picker/choose-and-upload-file.d.ts +4 -0
  40. package/dist/src/components/uni-ui/uni-file-picker/uni-file-picker.vue.d.ts +254 -0
  41. package/dist/src/components/uni-ui/uni-file-picker/upload-file.vue.d.ts +81 -0
  42. package/dist/src/components/uni-ui/uni-file-picker/upload-image.vue.d.ts +90 -0
  43. package/dist/src/components/uni-ui/uni-file-picker/utils.d.ts +22 -0
  44. package/dist/src/components/uni-ui/uni-forms/uni-forms.vue.d.ts +160 -0
  45. package/dist/src/components/uni-ui/uni-forms/utils.d.ts +20 -0
  46. package/dist/src/components/uni-ui/uni-forms/validate.d.ts +42 -0
  47. package/dist/src/components/uni-ui/uni-forms-item/uni-forms-item.vue.d.ts +127 -0
  48. package/dist/src/components/uni-ui/uni-goods-nav/i18n/index.d.ts +21 -0
  49. package/dist/src/components/uni-ui/uni-goods-nav/uni-goods-nav.vue.d.ts +61 -0
  50. package/dist/src/components/uni-ui/uni-grid/uni-grid.vue.d.ts +59 -0
  51. package/dist/src/components/uni-ui/uni-grid-item/uni-grid-item.vue.d.ts +26 -0
  52. package/dist/src/components/uni-ui/uni-group/uni-group.vue.d.ts +52 -0
  53. package/dist/src/components/uni-ui/uni-icons/icons.d.ts +15 -0
  54. package/dist/src/components/uni-ui/uni-icons/uni-icons.vue.d.ts +56 -0
  55. package/dist/src/components/uni-ui/uni-indexed-list/uni-indexed-list-item.vue.d.ts +45 -0
  56. package/dist/src/components/uni-ui/uni-indexed-list/uni-indexed-list.vue.d.ts +49 -0
  57. package/dist/src/components/uni-ui/uni-link/uni-link.vue.d.ts +75 -0
  58. package/dist/src/components/uni-ui/uni-list/uni-list.vue.d.ts +53 -0
  59. package/dist/src/components/uni-ui/uni-list/uni-refresh.vue.d.ts +22 -0
  60. package/dist/src/components/uni-ui/uni-list-ad/uni-list-ad.vue.d.ts +25 -0
  61. package/dist/src/components/uni-ui/uni-list-chat/uni-list-chat.vue.d.ts +123 -0
  62. package/dist/src/components/uni-ui/uni-list-item/uni-list-item.vue.d.ts +248 -0
  63. package/dist/src/components/uni-ui/uni-load-more/i18n/index.d.ts +18 -0
  64. package/dist/src/components/uni-ui/uni-load-more/uni-load-more.vue.d.ts +89 -0
  65. package/dist/src/components/uni-ui/uni-nav-bar/uni-nav-bar.vue.d.ts +163 -0
  66. package/dist/src/components/uni-ui/uni-nav-bar/uni-status-bar.vue.d.ts +4 -0
  67. package/dist/src/components/uni-ui/uni-notice-bar/uni-notice-bar.vue.d.ts +138 -0
  68. package/dist/src/components/uni-ui/uni-number-box/uni-number-box.vue.d.ts +90 -0
  69. package/dist/src/components/uni-ui/uni-pagination/i18n/index.d.ts +28 -0
  70. package/dist/src/components/uni-ui/uni-pagination/uni-pagination.vue.d.ts +127 -0
  71. package/dist/src/components/uni-ui/uni-popup/i18n/index.d.ts +24 -0
  72. package/dist/src/components/uni-ui/uni-popup/keypress.d.ts +14 -0
  73. package/dist/src/components/uni-ui/uni-popup/popup.d.ts +17 -0
  74. package/dist/src/components/uni-ui/uni-popup/uni-popup.vue.d.ts +136 -0
  75. package/dist/src/components/uni-ui/uni-popup-dialog/uni-popup-dialog.vue.d.ts +123 -0
  76. package/dist/src/components/uni-ui/uni-popup-message/uni-popup-message.vue.d.ts +67 -0
  77. package/dist/src/components/uni-ui/uni-popup-share/uni-popup-share.vue.d.ts +49 -0
  78. package/dist/src/components/uni-ui/uni-rate/uni-rate.vue.d.ts +154 -0
  79. package/dist/src/components/uni-ui/uni-row/uni-row.vue.d.ts +41 -0
  80. package/dist/src/components/uni-ui/uni-search-bar/i18n/index.d.ts +15 -0
  81. package/dist/src/components/uni-ui/uni-search-bar/uni-search-bar.vue.d.ts +126 -0
  82. package/dist/src/components/uni-ui/uni-section/uni-section.vue.d.ts +85 -0
  83. package/dist/src/components/uni-ui/uni-segmented-control/uni-segmented-control.vue.d.ts +47 -0
  84. package/dist/src/components/uni-ui/uni-steps/uni-steps.vue.d.ts +59 -0
  85. package/dist/src/components/uni-ui/uni-swipe-action/uni-swipe-action.vue.d.ts +6 -0
  86. package/dist/src/components/uni-ui/uni-swiper-dot/uni-swiper-dot.vue.d.ts +65 -0
  87. package/dist/src/components/uni-ui/uni-table/uni-table.vue.d.ts +99 -0
  88. package/dist/src/components/uni-ui/uni-tag/uni-tag.vue.d.ts +84 -0
  89. package/dist/src/components/uni-ui/uni-tbody/uni-tbody.vue.d.ts +2 -0
  90. package/dist/src/components/uni-ui/uni-td/uni-td.vue.d.ts +48 -0
  91. package/dist/src/components/uni-ui/uni-th/filter-dropdown.vue.d.ts +99 -0
  92. package/dist/src/components/uni-ui/uni-th/uni-th.vue.d.ts +97 -0
  93. package/dist/src/components/uni-ui/uni-thead/uni-thead.vue.d.ts +15 -0
  94. package/dist/src/components/uni-ui/uni-title/uni-title.vue.d.ts +54 -0
  95. package/dist/src/components/uni-ui/uni-tooltip/uni-tooltip.vue.d.ts +23 -0
  96. package/dist/src/components/uni-ui/uni-tr/table-checkbox.vue.d.ts +58 -0
  97. package/dist/src/components/uni-ui/uni-tr/uni-tr.vue.d.ts +39 -0
  98. package/dist/src/components/uni-ui/uni-transition/createAnimation.d.ts +16 -0
  99. package/dist/src/components/uni-ui/uni-transition/uni-transition.vue.d.ts +240 -0
  100. package/dist/src/consts/i18n/en.d.ts +45 -0
  101. package/dist/src/consts/i18n/index.d.ts +90 -0
  102. package/dist/src/consts/i18n/zh_CN.d.ts +45 -0
  103. package/dist/src/consts/index.d.ts +1 -0
  104. package/dist/src/helpers/tsx.helper.d.ts +13 -0
  105. package/dist/src/index.d.ts +3 -0
  106. package/dist/src/utils/index.d.ts +1 -0
  107. package/dist/src/utils/kg.util.d.ts +5 -0
  108. package/package.json +79 -0
@@ -0,0 +1,5 @@
1
+ export { default as UniBadge } from './uni-ui/uni-badge/uni-badge.vue';
2
+ export { default as UniCard } from './uni-ui/uni-card/uni-card.vue';
3
+ export { default as UniEasyinput } from './uni-ui/uni-easyinput/uni-easyinput.vue';
4
+ export { default as UniForms } from './uni-ui/uni-forms/uni-forms.vue';
5
+ export { default as UniFormsItem } from './uni-ui/uni-forms-item/uni-forms-item.vue';
@@ -0,0 +1,108 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ type: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ inverted: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ isDot: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ maxNum: {
15
+ type: NumberConstructor;
16
+ default: number;
17
+ };
18
+ absolute: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ offset: {
23
+ type: ArrayConstructor;
24
+ default(): number[];
25
+ };
26
+ text: {
27
+ type: (StringConstructor | NumberConstructor)[];
28
+ default: string;
29
+ };
30
+ size: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ customStyle: {
35
+ type: ObjectConstructor;
36
+ default(): {};
37
+ };
38
+ }, any, {}, {
39
+ width(): number;
40
+ classNames(): string;
41
+ positionStyle(): any;
42
+ dotStyle(): {
43
+ width?: undefined;
44
+ minWidth?: undefined;
45
+ height?: undefined;
46
+ padding?: undefined;
47
+ borderRadius?: undefined;
48
+ } | {
49
+ width: string;
50
+ minWidth: string;
51
+ height: string;
52
+ padding: string;
53
+ borderRadius: string;
54
+ };
55
+ displayValue(): string | number;
56
+ }, {
57
+ onClick(): void;
58
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
59
+ type: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ inverted: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ isDot: {
68
+ type: BooleanConstructor;
69
+ default: boolean;
70
+ };
71
+ maxNum: {
72
+ type: NumberConstructor;
73
+ default: number;
74
+ };
75
+ absolute: {
76
+ type: StringConstructor;
77
+ default: string;
78
+ };
79
+ offset: {
80
+ type: ArrayConstructor;
81
+ default(): number[];
82
+ };
83
+ text: {
84
+ type: (StringConstructor | NumberConstructor)[];
85
+ default: string;
86
+ };
87
+ size: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ customStyle: {
92
+ type: ObjectConstructor;
93
+ default(): {};
94
+ };
95
+ }>> & {
96
+ onClick?: ((...args: any[]) => any) | undefined;
97
+ }, {
98
+ type: string;
99
+ inverted: boolean;
100
+ isDot: boolean;
101
+ maxNum: number;
102
+ absolute: string;
103
+ offset: unknown[];
104
+ text: string | number;
105
+ size: string;
106
+ customStyle: Record<string, any>;
107
+ }>;
108
+ export default _default;
@@ -0,0 +1,23 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ separator: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ separatorClass: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }, any, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
11
+ separator: {
12
+ type: StringConstructor;
13
+ default: string;
14
+ };
15
+ separatorClass: {
16
+ type: StringConstructor;
17
+ default: string;
18
+ };
19
+ }>>, {
20
+ separator: string;
21
+ separatorClass: string;
22
+ }>;
23
+ export default _default;
@@ -0,0 +1,30 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ to: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ replace: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ }, any, {
11
+ currentPage: string;
12
+ }, {
13
+ separator(): any;
14
+ separatorClass(): any;
15
+ }, {
16
+ navTo(): void;
17
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ to: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ replace: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ }>>, {
27
+ replace: boolean;
28
+ to: string;
29
+ }>;
30
+ export default _default;
@@ -0,0 +1,67 @@
1
+ export default calendar;
2
+ declare namespace calendar {
3
+ const lunarInfo: number[];
4
+ const solarMonth: number[];
5
+ const Gan: string[];
6
+ const Zhi: string[];
7
+ const Animals: string[];
8
+ const solarTerm: string[];
9
+ const sTermInfo: string[];
10
+ const nStr1: string[];
11
+ const nStr2: string[];
12
+ const nStr3: string[];
13
+ function lYearDays(y: any): number;
14
+ function leapMonth(y: any): number;
15
+ function leapDays(y: any): 0 | 30 | 29;
16
+ function monthDays(y: any, m: any): 30 | 29 | -1;
17
+ function solarDays(y: any, m: any): number;
18
+ function toGanZhiYear(lYear: any): string;
19
+ function toAstro(cMonth: any, cDay: any): string;
20
+ function toGanZhi(offset: any): string;
21
+ function getTerm(y: any, n: any): number;
22
+ function toChinaMonth(m: any): string | -1;
23
+ function toChinaDay(d: any): string;
24
+ function getAnimal(y: any): string;
25
+ function solar2lunar(y: any, m: any, d: any): -1 | {
26
+ lYear: number;
27
+ lMonth: number;
28
+ lDay: number;
29
+ Animal: string;
30
+ IMonthCn: string;
31
+ IDayCn: string;
32
+ cYear: any;
33
+ cMonth: any;
34
+ cDay: any;
35
+ gzYear: string;
36
+ gzMonth: string;
37
+ gzDay: string;
38
+ isToday: boolean;
39
+ isLeap: boolean;
40
+ nWeek: number;
41
+ ncWeek: string;
42
+ isTerm: boolean;
43
+ Term: string | null;
44
+ astro: string;
45
+ };
46
+ function lunar2solar(y: any, m: any, d: any, isLeapMonth: any): -1 | {
47
+ lYear: number;
48
+ lMonth: number;
49
+ lDay: number;
50
+ Animal: string;
51
+ IMonthCn: string;
52
+ IDayCn: string;
53
+ cYear: any;
54
+ cMonth: any;
55
+ cDay: any;
56
+ gzYear: string;
57
+ gzMonth: string;
58
+ gzDay: string;
59
+ isToday: boolean;
60
+ isLeap: boolean;
61
+ nWeek: number;
62
+ ncWeek: string;
63
+ isTerm: boolean;
64
+ Term: string | null;
65
+ astro: string;
66
+ };
67
+ }
@@ -0,0 +1,39 @@
1
+ declare const _default: {
2
+ en: {
3
+ "uni-calender.ok": string;
4
+ "uni-calender.cancel": string;
5
+ "uni-calender.today": string;
6
+ "uni-calender.MON": string;
7
+ "uni-calender.TUE": string;
8
+ "uni-calender.WED": string;
9
+ "uni-calender.THU": string;
10
+ "uni-calender.FRI": string;
11
+ "uni-calender.SAT": string;
12
+ "uni-calender.SUN": string;
13
+ };
14
+ 'zh-Hans': {
15
+ "uni-calender.ok": string;
16
+ "uni-calender.cancel": string;
17
+ "uni-calender.today": string;
18
+ "uni-calender.SUN": string;
19
+ "uni-calender.MON": string;
20
+ "uni-calender.TUE": string;
21
+ "uni-calender.WED": string;
22
+ "uni-calender.THU": string;
23
+ "uni-calender.FRI": string;
24
+ "uni-calender.SAT": string;
25
+ };
26
+ 'zh-Hant': {
27
+ "uni-calender.ok": string;
28
+ "uni-calender.cancel": string;
29
+ "uni-calender.today": string;
30
+ "uni-calender.SUN": string;
31
+ "uni-calender.MON": string;
32
+ "uni-calender.TUE": string;
33
+ "uni-calender.WED": string;
34
+ "uni-calender.THU": string;
35
+ "uni-calender.FRI": string;
36
+ "uni-calender.SAT": string;
37
+ };
38
+ };
39
+ export default _default;
@@ -0,0 +1,47 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ weeks: {
3
+ type: ObjectConstructor;
4
+ default(): {};
5
+ };
6
+ calendar: {
7
+ type: ObjectConstructor;
8
+ default: () => {};
9
+ };
10
+ selected: {
11
+ type: ArrayConstructor;
12
+ default: () => never[];
13
+ };
14
+ lunar: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ }, any, any, {
19
+ todayText(): any;
20
+ }, {
21
+ choiceDate(weeks: any): void;
22
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
+ weeks: {
24
+ type: ObjectConstructor;
25
+ default(): {};
26
+ };
27
+ calendar: {
28
+ type: ObjectConstructor;
29
+ default: () => {};
30
+ };
31
+ selected: {
32
+ type: ArrayConstructor;
33
+ default: () => never[];
34
+ };
35
+ lunar: {
36
+ type: BooleanConstructor;
37
+ default: boolean;
38
+ };
39
+ }>> & {
40
+ onChange?: ((...args: any[]) => any) | undefined;
41
+ }, {
42
+ weeks: Record<string, any>;
43
+ calendar: Record<string, any>;
44
+ selected: unknown[];
45
+ lunar: boolean;
46
+ }>;
47
+ export default _default;
@@ -0,0 +1,166 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ date: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ selected: {
7
+ type: ArrayConstructor;
8
+ default(): never[];
9
+ };
10
+ lunar: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ startDate: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ endDate: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ range: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ insert: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ showMonth: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ clearDate: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ }, any, {
39
+ show: boolean;
40
+ weeks: never[];
41
+ calendar: {};
42
+ nowDate: string;
43
+ aniMaskShow: boolean;
44
+ }, {
45
+ /**
46
+ * for i18n
47
+ */
48
+ okText(): any;
49
+ cancelText(): any;
50
+ todayText(): any;
51
+ monText(): any;
52
+ TUEText(): any;
53
+ WEDText(): any;
54
+ THUText(): any;
55
+ FRIText(): any;
56
+ SATText(): any;
57
+ SUNText(): any;
58
+ }, {
59
+ clean(): void;
60
+ bindDateChange(e: any): void;
61
+ /**
62
+ * 初始化日期显示
63
+ * @param {Object} date
64
+ */
65
+ init(date: Object): void;
66
+ /**
67
+ * 打开日历弹窗
68
+ */
69
+ open(): void;
70
+ /**
71
+ * 关闭日历弹窗
72
+ */
73
+ close(): void;
74
+ /**
75
+ * 确认按钮
76
+ */
77
+ confirm(): void;
78
+ /**
79
+ * 变化触发
80
+ */
81
+ change(): void;
82
+ /**
83
+ * 选择月份触发
84
+ */
85
+ monthSwitch(): void;
86
+ /**
87
+ * 派发事件
88
+ * @param {Object} name
89
+ */
90
+ setEmit(name: Object): void;
91
+ /**
92
+ * 选择天触发
93
+ * @param {Object} weeks
94
+ */
95
+ choiceDate(weeks: Object): void;
96
+ /**
97
+ * 回到今天
98
+ */
99
+ backToday(): void;
100
+ /**
101
+ * 上个月
102
+ */
103
+ pre(): void;
104
+ /**
105
+ * 下个月
106
+ */
107
+ next(): void;
108
+ /**
109
+ * 设置日期
110
+ * @param {Object} date
111
+ */
112
+ setDate(date: Object): void;
113
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "close" | "confirm" | "monthSwitch")[], "change" | "close" | "confirm" | "monthSwitch", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
114
+ date: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ };
118
+ selected: {
119
+ type: ArrayConstructor;
120
+ default(): never[];
121
+ };
122
+ lunar: {
123
+ type: BooleanConstructor;
124
+ default: boolean;
125
+ };
126
+ startDate: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
130
+ endDate: {
131
+ type: StringConstructor;
132
+ default: string;
133
+ };
134
+ range: {
135
+ type: BooleanConstructor;
136
+ default: boolean;
137
+ };
138
+ insert: {
139
+ type: BooleanConstructor;
140
+ default: boolean;
141
+ };
142
+ showMonth: {
143
+ type: BooleanConstructor;
144
+ default: boolean;
145
+ };
146
+ clearDate: {
147
+ type: BooleanConstructor;
148
+ default: boolean;
149
+ };
150
+ }>> & {
151
+ onChange?: ((...args: any[]) => any) | undefined;
152
+ onClose?: ((...args: any[]) => any) | undefined;
153
+ onConfirm?: ((...args: any[]) => any) | undefined;
154
+ onMonthSwitch?: ((...args: any[]) => any) | undefined;
155
+ }, {
156
+ selected: unknown[];
157
+ lunar: boolean;
158
+ date: string;
159
+ startDate: string;
160
+ endDate: string;
161
+ range: boolean;
162
+ insert: boolean;
163
+ showMonth: boolean;
164
+ clearDate: boolean;
165
+ }>;
166
+ export default _default;
@@ -0,0 +1,211 @@
1
+ export default Calendar;
2
+ declare class Calendar {
3
+ constructor({ date, selected, startDate, endDate, range }?: {
4
+ date: any;
5
+ selected: any;
6
+ startDate: any;
7
+ endDate: any;
8
+ range: any;
9
+ });
10
+ date: {
11
+ fullDate: string;
12
+ year: number;
13
+ month: string | number;
14
+ date: string | number;
15
+ day: number;
16
+ };
17
+ selected: any;
18
+ startDate: any;
19
+ endDate: any;
20
+ range: any;
21
+ weeks: {};
22
+ /**
23
+ * 设置日期
24
+ * @param {Object} date
25
+ */
26
+ setDate(date: Object): void;
27
+ selectDate: {
28
+ fullDate: string;
29
+ year: number;
30
+ month: string | number;
31
+ date: string | number;
32
+ day: number;
33
+ } | undefined;
34
+ /**
35
+ * 清理多选状态
36
+ */
37
+ cleanMultipleStatus(): void;
38
+ multipleStatus: {
39
+ before: string;
40
+ after: string;
41
+ data: never[];
42
+ } | undefined;
43
+ /**
44
+ * 重置开始日期
45
+ */
46
+ resetSatrtDate(startDate: any): void;
47
+ /**
48
+ * 重置结束日期
49
+ */
50
+ resetEndDate(endDate: any): void;
51
+ /**
52
+ * 获取任意时间
53
+ */
54
+ getDate(date: any, AddDayCount?: number, str?: string): {
55
+ fullDate: string;
56
+ year: number;
57
+ month: string | number;
58
+ date: string | number;
59
+ day: number;
60
+ };
61
+ /**
62
+ * 获取上月剩余天数
63
+ */
64
+ _getLastMonthDays(firstDay: any, full: any): {
65
+ date: number;
66
+ month: number;
67
+ lunar: number | {
68
+ lYear: number;
69
+ lMonth: number;
70
+ lDay: number;
71
+ Animal: string;
72
+ IMonthCn: string;
73
+ IDayCn: string;
74
+ cYear: any;
75
+ cMonth: any;
76
+ cDay: any;
77
+ gzYear: string;
78
+ gzMonth: string;
79
+ gzDay: string;
80
+ isToday: boolean;
81
+ isLeap: boolean;
82
+ nWeek: number;
83
+ ncWeek: string;
84
+ isTerm: boolean;
85
+ Term: string | null;
86
+ astro: string;
87
+ };
88
+ disable: boolean;
89
+ }[];
90
+ /**
91
+ * 获取本月天数
92
+ */
93
+ _currentMonthDys(dateData: any, full: any): {
94
+ fullDate: string;
95
+ year: any;
96
+ date: number;
97
+ multiple: boolean;
98
+ beforeMultiple: boolean;
99
+ afterMultiple: boolean;
100
+ month: any;
101
+ lunar: number | {
102
+ lYear: number;
103
+ lMonth: number;
104
+ lDay: number;
105
+ Animal: string;
106
+ IMonthCn: string;
107
+ IDayCn: string;
108
+ cYear: any;
109
+ cMonth: any;
110
+ cDay: any;
111
+ gzYear: string;
112
+ gzMonth: string;
113
+ gzDay: string;
114
+ isToday: boolean;
115
+ isLeap: boolean;
116
+ nWeek: number;
117
+ ncWeek: string;
118
+ isTerm: boolean;
119
+ Term: string | null;
120
+ astro: string;
121
+ };
122
+ disable: boolean;
123
+ isDay: boolean;
124
+ }[];
125
+ /**
126
+ * 获取下月天数
127
+ */
128
+ _getNextMonthDays(surplus: any, full: any): {
129
+ date: number;
130
+ month: number;
131
+ lunar: number | {
132
+ lYear: number;
133
+ lMonth: number;
134
+ lDay: number;
135
+ Animal: string;
136
+ IMonthCn: string;
137
+ IDayCn: string;
138
+ cYear: any;
139
+ cMonth: any;
140
+ cDay: any;
141
+ gzYear: string;
142
+ gzMonth: string;
143
+ gzDay: string;
144
+ isToday: boolean;
145
+ isLeap: boolean;
146
+ nWeek: number;
147
+ ncWeek: string;
148
+ isTerm: boolean;
149
+ Term: string | null;
150
+ astro: string;
151
+ };
152
+ disable: boolean;
153
+ }[];
154
+ /**
155
+ * 获取当前日期详情
156
+ * @param {Object} date
157
+ */
158
+ getInfo(date: Object): any;
159
+ /**
160
+ * 比较时间大小
161
+ */
162
+ dateCompare(startDate: any, endDate: any): boolean;
163
+ /**
164
+ * 比较时间是否相等
165
+ */
166
+ dateEqual(before: any, after: any): boolean;
167
+ /**
168
+ * 获取日期范围内所有日期
169
+ * @param {Object} begin
170
+ * @param {Object} end
171
+ */
172
+ geDateAll(begin: Object, end: Object): string[];
173
+ /**
174
+ * 计算阴历日期显示
175
+ */
176
+ getlunar(year: any, month: any, date: any): -1 | {
177
+ lYear: number;
178
+ lMonth: number;
179
+ lDay: number;
180
+ Animal: string;
181
+ IMonthCn: string;
182
+ IDayCn: string;
183
+ cYear: any;
184
+ cMonth: any;
185
+ cDay: any;
186
+ gzYear: string;
187
+ gzMonth: string;
188
+ gzDay: string;
189
+ isToday: boolean;
190
+ isLeap: boolean;
191
+ nWeek: number;
192
+ ncWeek: string;
193
+ isTerm: boolean;
194
+ Term: string | null;
195
+ astro: string;
196
+ };
197
+ /**
198
+ * 设置打点
199
+ */
200
+ setSelectInfo(data: any, value: any): void;
201
+ /**
202
+ * 获取多选状态
203
+ */
204
+ setMultiple(fullDate: any): void;
205
+ /**
206
+ * 获取每周数据
207
+ * @param {Object} dateData
208
+ */
209
+ _getWeek(dateData: Object): void;
210
+ canlender: any[] | undefined;
211
+ }