@sdata/web-vue 2.1.0 → 2.1.1

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 (131) hide show
  1. package/es/_components/icon-hover.js +8 -5
  2. package/es/_components/icon-hover.vue.d.ts +4 -2
  3. package/es/_components/icon-hover.vue_vue_type_script_lang.js +1 -0
  4. package/es/_components/picker/input-range.vue.d.ts +4 -2
  5. package/es/_components/picker/input.vue.d.ts +4 -2
  6. package/es/_hooks/use-input.d.ts +1 -1
  7. package/es/_hooks/use-pagination.d.ts +7 -4
  8. package/es/_hooks/use-popup-overflow-hidden.js +2 -1
  9. package/es/_utils/debounce.d.ts +1 -1
  10. package/es/_utils/get-value-by-path.d.ts +2 -2
  11. package/es/_utils/is-equal.js +1 -1
  12. package/es/_utils/is.d.ts +3 -3
  13. package/es/_utils/is.js +1 -1
  14. package/es/_utils/omit.d.ts +1 -1
  15. package/es/_utils/pick.d.ts +1 -1
  16. package/es/_utils/pick.js +1 -2
  17. package/es/_utils/throttle-by-raf.d.ts +2 -2
  18. package/es/_utils/types.d.ts +1 -1
  19. package/es/affix/affix.vue.d.ts +1 -1
  20. package/es/affix/index.d.ts +3 -3
  21. package/es/alert/alert.vue.d.ts +4 -2
  22. package/es/alert/index.d.ts +8 -4
  23. package/es/auto-complete/auto-complete.js +2 -3
  24. package/es/calendar/components/cell.vue.d.ts +2 -2
  25. package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +3 -2
  26. package/es/calendar/context.d.ts +2 -1
  27. package/es/cascader/base-cascader-panel.js +4 -5
  28. package/es/cascader/cascader-option.js +6 -8
  29. package/es/checkbox/checkbox.d.ts +4 -2
  30. package/es/checkbox/index.d.ts +8 -4
  31. package/es/collapse/collapse-item.d.ts +4 -2
  32. package/es/collapse/index.d.ts +4 -2
  33. package/es/date-picker/context.d.ts +1 -1
  34. package/es/date-picker/hooks/use-inject-datepicker-transform.d.ts +1 -1
  35. package/es/date-picker/hooks/use-provide-datepicker-transform.d.ts +1 -1
  36. package/es/date-picker/hooks/use-range-header-value.d.ts +3 -3
  37. package/es/date-picker/index.d.ts +15 -13
  38. package/es/date-picker/interface.d.ts +1 -1
  39. package/es/date-picker/panels/date/index.vue.d.ts +2 -2
  40. package/es/date-picker/panels/footer.vue.d.ts +1 -1
  41. package/es/date-picker/panels/month/index.vue.d.ts +1 -1
  42. package/es/date-picker/panels/shortcuts.vue.d.ts +1 -1
  43. package/es/date-picker/panels/week/index.vue.d.ts +2 -2
  44. package/es/date-picker/picker-panel.vue.d.ts +7 -7
  45. package/es/date-picker/picker.vue.d.ts +11 -9
  46. package/es/date-picker/range-picker-panel.vue.d.ts +9 -9
  47. package/es/date-picker/range-picker.vue.d.ts +15 -13
  48. package/es/drawer/drawer.vue.d.ts +5 -3
  49. package/es/drawer/index.d.ts +11 -7
  50. package/es/dropdown/dropdown-button.vue.d.ts +2 -2
  51. package/es/dropdown/dropdown.vue.d.ts +2 -2
  52. package/es/dropdown/index.d.ts +7 -7
  53. package/es/dropdown/interface.d.ts +2 -2
  54. package/es/form/context.d.ts +7 -6
  55. package/es/form/form-item.vue.d.ts +6 -10
  56. package/es/form/index.d.ts +6 -10
  57. package/es/form/interface.d.ts +2 -2
  58. package/es/grid/grid-col.vue.d.ts +3 -7
  59. package/es/grid/hook/use-responsive-value.d.ts +7 -19
  60. package/es/grid/index.d.ts +2 -6
  61. package/es/grid/interface.d.ts +11 -18
  62. package/es/image/image.vue.d.ts +2 -2
  63. package/es/image/interface.d.ts +1 -1
  64. package/es/image/preview-group.vue.d.ts +1 -1
  65. package/es/image/preview.vue.d.ts +1 -1
  66. package/es/input/index.d.ts +4 -2
  67. package/es/input/input-password.vue.d.ts +4 -2
  68. package/es/input/input.js +3 -4
  69. package/es/input-number/input-number.js +20 -19
  70. package/es/input-tag/input-tag.js +10 -12
  71. package/es/list/use-pagination.d.ts +7 -4
  72. package/es/locale/index.d.ts +1 -1
  73. package/es/locale/index.js +1 -1
  74. package/es/locale/interface.d.ts +1 -0
  75. package/es/mention/mention.js +10 -10
  76. package/es/menu/interface.d.ts +1 -3
  77. package/es/menu/sub-menu-pop.vue.d.ts +2 -2
  78. package/es/message/message.vue.d.ts +4 -2
  79. package/es/modal/index.d.ts +8 -4
  80. package/es/modal/interface.d.ts +2 -2
  81. package/es/modal/modal.vue.d.ts +4 -2
  82. package/es/notification/notification.vue.d.ts +4 -2
  83. package/es/page-header/index.d.ts +8 -4
  84. package/es/page-header/page-header.vue.d.ts +4 -2
  85. package/es/pagination/page-jumper.vue.d.ts +1 -1
  86. package/es/pagination/page-options.vue.d.ts +16 -8
  87. package/es/popconfirm/index.d.ts +3 -3
  88. package/es/popconfirm/popconfirm.vue.d.ts +1 -1
  89. package/es/radio/index.d.ts +8 -4
  90. package/es/radio/radio.d.ts +4 -2
  91. package/es/scrollbar/interface.d.ts +1 -1
  92. package/es/select/index.d.ts +16 -8
  93. package/es/select/select.d.ts +8 -4
  94. package/es/select/select.js +6 -4
  95. package/es/statistic/statistic.vue_vue_type_script_lang.js +2 -2
  96. package/es/table/table-operation-td.d.ts +16 -8
  97. package/es/table/table-operation-td.js +10 -13
  98. package/es/table/table-th.js +17 -6
  99. package/es/table/table.js +33 -34
  100. package/es/tabs/tabs-tab.vue.d.ts +4 -2
  101. package/es/textarea/index.d.ts +8 -4
  102. package/es/textarea/textarea.vue.d.ts +4 -2
  103. package/es/time-picker/index.d.ts +23 -15
  104. package/es/time-picker/panel.vue.d.ts +1 -1
  105. package/es/time-picker/range-panel.d.ts +1 -1
  106. package/es/time-picker/range-panel.js +6 -7
  107. package/es/time-picker/time-picker.vue.d.ts +11 -7
  108. package/es/time-picker/utils/index.d.ts +1 -1
  109. package/es/transfer/index.d.ts +24 -12
  110. package/es/transfer/transfer-list-item.js +2 -5
  111. package/es/transfer/transfer-view.vue.d.ts +12 -6
  112. package/es/transfer/transfer.vue.d.ts +12 -6
  113. package/es/tree/base-node.vue.d.ts +8 -4
  114. package/es/tree/interface.d.ts +1 -1
  115. package/es/tree/transition-node-list.vue.d.ts +8 -4
  116. package/es/tree/tree.vue.d.ts +2 -2
  117. package/es/tree-select/panel.js +5 -3
  118. package/es/tree-select/tree-select.vue.d.ts +1 -1
  119. package/es/trigger/context.d.ts +3 -3
  120. package/es/trigger/interface.d.ts +3 -2
  121. package/es/trigger/trigger.js +17 -16
  122. package/es/typography/base.js +2 -2
  123. package/es/typography/edit-content.vue.d.ts +12 -6
  124. package/es/typography/interface.d.ts +1 -1
  125. package/es/typography/operations.vue.d.ts +1 -1
  126. package/es/upload/interfaces.d.ts +3 -3
  127. package/es/upload/upload-list.js +2 -5
  128. package/es/upload/upload.js +4 -5
  129. package/es/verification-code/verification-code.js +7 -6
  130. package/json/web-types.json +2 -2
  131. package/package.json +1 -1
@@ -3,11 +3,14 @@ import icon_hover_vue_vue_type_script_lang_default from "./icon-hover.vue_vue_ty
3
3
  import { createElementBlock, normalizeClass, openBlock, renderSlot } from "vue";
4
4
  //#region components/_components/icon-hover.vue
5
5
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
6
- return openBlock(), createElementBlock("span", { class: normalizeClass([_ctx.prefixCls, {
7
- [`${_ctx.prefix}-icon-hover`]: _ctx.prefix,
8
- [`${_ctx.prefixCls}-size-${_ctx.size}`]: _ctx.size !== "medium",
9
- [`${_ctx.prefixCls}-disabled`]: _ctx.disabled
10
- }]) }, [renderSlot(_ctx.$slots, "default")], 2);
6
+ return openBlock(), createElementBlock("span", {
7
+ class: normalizeClass([_ctx.prefixCls, {
8
+ [`${_ctx.prefix}-icon-hover`]: _ctx.prefix,
9
+ [`${_ctx.prefixCls}-size-${_ctx.size}`]: _ctx.size !== "medium",
10
+ [`${_ctx.prefixCls}-disabled`]: _ctx.disabled
11
+ }]),
12
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("click", $event))
13
+ }, [renderSlot(_ctx.$slots, "default")], 2);
11
14
  }
12
15
  var icon_hover_default = /*#__PURE__*/ _plugin_vue_export_helper_default(icon_hover_vue_vue_type_script_lang_default, [["render", _sfc_render]]);
13
16
  //#endregion
@@ -16,7 +16,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
16
16
  };
17
17
  }>, {
18
18
  prefixCls: string;
19
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
20
20
  prefix: {
21
21
  type: StringConstructor;
22
22
  };
@@ -28,7 +28,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
28
28
  type: BooleanConstructor;
29
29
  default: boolean;
30
30
  };
31
- }>> & Readonly<{}>, {
31
+ }>> & Readonly<{
32
+ onClick?: ((...args: any[]) => any) | undefined;
33
+ }>, {
32
34
  size: "medium" | "large" | "small" | "mini";
33
35
  disabled: boolean;
34
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -3,6 +3,7 @@ import { defineComponent } from "vue";
3
3
  //#region components/_components/icon-hover.vue?vue&type=script&lang.ts
4
4
  var icon_hover_vue_vue_type_script_lang_default = defineComponent({
5
5
  name: "IconHover",
6
+ emits: ["click"],
6
7
  props: {
7
8
  prefix: { type: String },
8
9
  size: {
@@ -132,7 +132,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
132
132
  };
133
133
  }>, {
134
134
  prefixCls: string;
135
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
135
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
136
136
  prefix: {
137
137
  type: StringConstructor;
138
138
  };
@@ -144,7 +144,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
144
144
  type: BooleanConstructor;
145
145
  default: boolean;
146
146
  };
147
- }>> & Readonly<{}>, {
147
+ }>> & Readonly<{
148
+ onClick?: ((...args: any[]) => any) | undefined;
149
+ }>, {
148
150
  size: "medium" | "large" | "small" | "mini";
149
151
  disabled: boolean;
150
152
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -108,7 +108,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
108
108
  };
109
109
  }>, {
110
110
  prefixCls: string;
111
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
111
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
112
112
  prefix: {
113
113
  type: StringConstructor;
114
114
  };
@@ -120,7 +120,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
120
120
  type: BooleanConstructor;
121
121
  default: boolean;
122
122
  };
123
- }>> & Readonly<{}>, {
123
+ }>> & Readonly<{
124
+ onClick?: ((...args: any[]) => any) | undefined;
125
+ }>, {
124
126
  size: "medium" | "large" | "small" | "mini";
125
127
  disabled: boolean;
126
128
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -4,7 +4,7 @@ import { FormItemEventHandler } from '../form/interface';
4
4
  export declare const useInput: ({ defaultValue, modelValue, emit, eventName, updateEventName, eventHandlers, }: {
5
5
  defaultValue?: Ref<string>;
6
6
  modelValue?: Ref<string>;
7
- emit: EmitFn<any>;
7
+ emit: EmitFn<string>;
8
8
  eventName?: string;
9
9
  updateEventName?: string;
10
10
  eventHandlers?: Ref<FormItemEventHandler>;
@@ -1,8 +1,11 @@
1
- export declare const usePagination: (props: any, { emit }: {
2
- emit: any;
1
+ import type { PaginationProps } from '../pagination/interface';
2
+ export declare const usePagination: (props: {
3
+ pagination?: PaginationProps;
4
+ }, { emit }: {
5
+ emit: (event: string, ...args: unknown[]) => void;
3
6
  }) => {
4
- current: import("vue").ComputedRef<any>;
5
- pageSize: import("vue").ComputedRef<any>;
7
+ current: import("vue").ComputedRef<number>;
8
+ pageSize: import("vue").ComputedRef<number>;
6
9
  handlePageChange: (page: number) => void;
7
10
  handlePageSizeChange: (pageSize: number) => void;
8
11
  };
@@ -24,7 +24,8 @@ function usePopupOverflowHidden(props) {
24
24
  if (container.value && needResetContainerStyle) {
25
25
  const originStyle = originContainerStyle;
26
26
  Object.keys(originStyle).forEach((i) => {
27
- container.value.style[i] = originStyle[i];
27
+ var _originStyle$i;
28
+ container.value.style[i] = (_originStyle$i = originStyle[i]) !== null && _originStyle$i !== void 0 ? _originStyle$i : "";
28
29
  });
29
30
  }
30
31
  needResetContainerStyle = false;
@@ -1 +1 @@
1
- export declare function debounce(callback: (...args: any[]) => void, delay: number): (...args: any[]) => void;
1
+ export declare function debounce<T extends unknown[]>(callback: (...args: T) => void, delay: number): (...args: T) => void;
@@ -1,5 +1,5 @@
1
1
  import { Data } from './types';
2
- export declare const getValueByPath: <T = any>(obj: Data | undefined, path: string | undefined) => T | undefined;
3
- export declare const setValueByPath: (obj: Data | undefined, path: string | undefined, value: any, { addPath }?: {
2
+ export declare const getValueByPath: <T = Data>(obj: Data | undefined, path: string | undefined) => T | undefined;
3
+ export declare const setValueByPath: (obj: Data | undefined, path: string | undefined, value: Data[keyof Data], { addPath }?: {
4
4
  addPath?: boolean;
5
5
  }) => void;
@@ -19,7 +19,7 @@ var isEqual = (a, b) => {
19
19
  if (type === "[object Array]") return isEqualArray(a, b);
20
20
  if (type === "[object Function]") {
21
21
  if (a === b) return true;
22
- return a.toString() === b.toString();
22
+ return String(a) === String(b);
23
23
  }
24
24
  return a === b;
25
25
  };
package/es/_utils/is.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import type { ComponentPublicInstance, VNodeNormalizedChildren } from 'vue';
2
2
  import { VNode } from 'vue';
3
3
  import { Dayjs } from 'dayjs';
4
- export declare function isArray(obj: any): obj is any[];
4
+ export declare function isArray(obj: any): obj is unknown[];
5
5
  export declare function isNull(obj: any): obj is null;
6
6
  export declare function isBoolean(obj: unknown): obj is boolean;
7
7
  export declare function isObject<T extends unknown>(obj: T): obj is Extract<T, Record<string, any>>;
@@ -10,11 +10,11 @@ export declare function isString(obj: any): obj is string;
10
10
  export declare function isNumber(obj: any): obj is number;
11
11
  export declare function isRegExp(obj: any): boolean;
12
12
  export declare function isDate(obj: any): boolean;
13
- export declare function isColor(color: any): boolean;
13
+ export declare function isColor(color: string): boolean;
14
14
  export declare function isUndefined(obj: any): obj is undefined;
15
15
  export declare function isFunction(obj: any): obj is (...args: any[]) => any;
16
16
  export declare function isEmptyObject(obj: any): boolean;
17
- export declare function isExist(obj: any): boolean;
17
+ export declare function isExist(obj: unknown): boolean;
18
18
  export declare function isWindow(el: any): el is Window;
19
19
  export declare const isComponentInstance: (value: any) => value is ComponentPublicInstance;
20
20
  export declare const isArrayChildren: (children: VNodeNormalizedChildren) => children is VNode[];
package/es/_utils/is.js CHANGED
@@ -31,7 +31,7 @@ function isEmptyObject(obj) {
31
31
  return isObject(obj) && Object.keys(obj).length === 0;
32
32
  }
33
33
  function isExist(obj) {
34
- return obj || obj === 0;
34
+ return obj !== void 0 && obj !== null;
35
35
  }
36
36
  function isWindow(el) {
37
37
  return el === window;
@@ -1,2 +1,2 @@
1
1
  import type { Data } from './types';
2
- export declare const omit: <T extends Data, K extends keyof any>(object: T, path: Array<K>) => Omit<T, K>;
2
+ export declare const omit: <T extends Data, K extends keyof T>(object: T, path: Array<K>) => Omit<T, K>;
@@ -1 +1 @@
1
- export default function pick<T extends object, K extends keyof T>(obj: T, keys: Array<K | string>): Pick<T, K>;
1
+ export default function pick<T extends object, K extends keyof T>(obj: T, keys: Array<K>): Pick<T, K>;
package/es/_utils/pick.js CHANGED
@@ -2,8 +2,7 @@
2
2
  function pick(obj, keys) {
3
3
  const clone = {};
4
4
  keys.forEach((key) => {
5
- const k = key;
6
- if (key in obj) clone[k] = obj[k];
5
+ if (key in obj) clone[key] = obj[key];
7
6
  });
8
7
  return clone;
9
8
  }
@@ -1,4 +1,4 @@
1
- export declare function throttleByRaf(cb: (...args: any[]) => void): {
2
- (...args: any[]): void;
1
+ export declare function throttleByRaf<T extends unknown[]>(cb: (...args: T) => void): {
2
+ (...args: T): void;
3
3
  cancel(): void;
4
4
  };
@@ -10,7 +10,7 @@ export interface SDIconOptions {
10
10
  export interface SDGlobalConfig {
11
11
  classPrefix?: string;
12
12
  }
13
- type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
13
+ type UnionToIntersection<U> = (U extends unknown ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
14
14
  export type BaseType = string | number;
15
15
  export type UnionType = BaseType | Record<string, any>;
16
16
  export type Data = Record<string, any>;
@@ -24,7 +24,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
24
24
  placeholderStyles: Ref<CSSProperties, CSSProperties>;
25
25
  fixedStyles: Ref<CSSProperties, CSSProperties>;
26
26
  updatePositionThrottle: {
27
- (...args: any[]): void;
27
+ (): void;
28
28
  cancel(): void;
29
29
  };
30
30
  }, {}, {}, {
@@ -27,7 +27,7 @@ declare const Affix: {
27
27
  placeholderStyles: import("vue").Ref<import("vue").CSSProperties, import("vue").CSSProperties>;
28
28
  fixedStyles: import("vue").Ref<import("vue").CSSProperties, import("vue").CSSProperties>;
29
29
  updatePositionThrottle: {
30
- (...args: any[]): void;
30
+ (): void;
31
31
  cancel(): void;
32
32
  };
33
33
  }, {}, {}, {
@@ -74,7 +74,7 @@ declare const Affix: {
74
74
  placeholderStyles: import("vue").Ref<import("vue").CSSProperties, import("vue").CSSProperties>;
75
75
  fixedStyles: import("vue").Ref<import("vue").CSSProperties, import("vue").CSSProperties>;
76
76
  updatePositionThrottle: {
77
- (...args: any[]): void;
77
+ (): void;
78
78
  cancel(): void;
79
79
  };
80
80
  }, {}, {}, {
@@ -110,7 +110,7 @@ declare const Affix: {
110
110
  placeholderStyles: import("vue").Ref<import("vue").CSSProperties, import("vue").CSSProperties>;
111
111
  fixedStyles: import("vue").Ref<import("vue").CSSProperties, import("vue").CSSProperties>;
112
112
  updatePositionThrottle: {
113
- (...args: any[]): void;
113
+ (): void;
114
114
  cancel(): void;
115
115
  };
116
116
  }, {}, {}, {
@@ -81,7 +81,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
81
81
  };
82
82
  }>, {
83
83
  prefixCls: string;
84
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
84
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
85
85
  prefix: {
86
86
  type: StringConstructor;
87
87
  };
@@ -93,7 +93,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
93
93
  type: BooleanConstructor;
94
94
  default: boolean;
95
95
  };
96
- }>> & Readonly<{}>, {
96
+ }>> & Readonly<{
97
+ onClick?: ((...args: any[]) => any) | undefined;
98
+ }>, {
97
99
  size: "medium" | "large" | "small" | "mini";
98
100
  disabled: boolean;
99
101
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -59,7 +59,7 @@ declare const Alert: {
59
59
  };
60
60
  }>, {
61
61
  prefixCls: string;
62
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
62
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
63
63
  prefix: {
64
64
  type: StringConstructor;
65
65
  };
@@ -71,7 +71,9 @@ declare const Alert: {
71
71
  type: BooleanConstructor;
72
72
  default: boolean;
73
73
  };
74
- }>> & Readonly<{}>, {
74
+ }>> & Readonly<{
75
+ onClick?: ((...args: any[]) => any) | undefined;
76
+ }>, {
75
77
  size: "medium" | "large" | "small" | "mini";
76
78
  disabled: boolean;
77
79
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -787,7 +789,7 @@ declare const Alert: {
787
789
  };
788
790
  }>, {
789
791
  prefixCls: string;
790
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
792
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
791
793
  prefix: {
792
794
  type: StringConstructor;
793
795
  };
@@ -799,7 +801,9 @@ declare const Alert: {
799
801
  type: BooleanConstructor;
800
802
  default: boolean;
801
803
  };
802
- }>> & Readonly<{}>, {
804
+ }>> & Readonly<{
805
+ onClick?: ((...args: any[]) => any) | undefined;
806
+ }>, {
803
807
  size: "medium" | "large" | "small" | "mini";
804
808
  disabled: boolean;
805
809
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -297,9 +297,8 @@ var auto_complete_default = /* @__PURE__ */ defineComponent({
297
297
  "modelValue": computedValue.value,
298
298
  "disabled": mergedDisabled.value,
299
299
  "onInput": handleInputValueChange,
300
- "onClear": handleClear,
301
- "onKeydown": handleKeyDown
302
- }), slots)],
300
+ "onClear": handleClear
301
+ }, { onKeydown: handleKeyDown }), slots)],
303
302
  content: renderDropdown
304
303
  });
305
304
  return {
@@ -16,8 +16,8 @@ declare var __VLS_1: {
16
16
  style: {
17
17
  [x: string]: string;
18
18
  };
19
- label: any;
20
- class: any;
19
+ label: string | undefined;
20
+ class: string | undefined;
21
21
  };
22
22
  }, __VLS_5: {
23
23
  range: any;
@@ -196,8 +196,9 @@ var event_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComp
196
196
  let cachedRect = null;
197
197
  let rectCacheTime = 0;
198
198
  const onMousedown = (e) => {
199
- var _e$touches, _domEvent$target, _e$touches2, _e$touches3;
200
- touch.fromResizer = !!((_domEvent$target = (((_e$touches = e.touches) === null || _e$touches === void 0 ? void 0 : _e$touches[0]) || e).target) === null || _domEvent$target === void 0 ? void 0 : _domEvent$target.closest(`.${prefixCls}__event-resizer`));
199
+ var _e$touches, _e$touches2, _e$touches3;
200
+ const eventTarget = (((_e$touches = e.touches) === null || _e$touches === void 0 ? void 0 : _e$touches[0]) || e).target;
201
+ touch.fromResizer = !!(eventTarget === null || eventTarget === void 0 ? void 0 : eventTarget.closest(`.${prefixCls}__event-resizer`));
201
202
  const now = Date.now();
202
203
  if (!cachedRect || now - rectCacheTime > RECT_CACHE_DURATION) {
203
204
  cachedRect = eventEl.value.getBoundingClientRect();
@@ -1,8 +1,9 @@
1
1
  import type { InjectionKey, Ref } from 'vue';
2
+ import type { EmitFn } from '../_utils/types';
2
3
  export interface CalendarState {
3
4
  uid: string | number;
4
5
  prefixCls: string;
5
- emit: (event: string, ...args: any[]) => void;
6
+ emit: EmitFn<string>;
6
7
  texts: Record<string, any>;
7
8
  dateUtils: Record<string, any>;
8
9
  now: Date;
@@ -3,7 +3,7 @@ import { getPrefixCls } from "../_utils/global-config.js";
3
3
  import Empty from "../empty/index.js";
4
4
  import Spin from "../spin/index.js";
5
5
  import cascader_column_default from "./cascader-column.js";
6
- import { TransitionGroup, createVNode, defineComponent, inject, isVNode } from "vue";
6
+ import { TransitionGroup, createVNode, defineComponent, inject, isVNode, mergeProps } from "vue";
7
7
  //#region components/cascader/base-cascader-panel.tsx
8
8
  function _isSlot(s) {
9
9
  return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
@@ -60,11 +60,10 @@ var base_cascader_panel_default = /* @__PURE__ */ defineComponent({
60
60
  };
61
61
  return () => {
62
62
  let _slot;
63
- return createVNode(TransitionGroup, {
63
+ return createVNode(TransitionGroup, mergeProps({
64
64
  "tag": "div",
65
- "name": "cascader-slide",
66
- "class": [`${prefixCls}-panel`, { [`${prefixCls}-dropdown-panel`]: props.dropdown }]
67
- }, _isSlot(_slot = renderContent()) ? _slot : { default: () => [_slot] });
65
+ "name": "cascader-slide"
66
+ }, { class: [`${prefixCls}-panel`, { [`${prefixCls}-dropdown-panel`]: props.dropdown }] }), _isSlot(_slot = renderContent()) ? _slot : { default: () => [_slot] });
68
67
  };
69
68
  }
70
69
  });
@@ -102,7 +102,7 @@ var cascader_option_default = /* @__PURE__ */ defineComponent({
102
102
  "title": props.option.label,
103
103
  "class": cls.value
104
104
  }, events), [
105
- props.multiple && createVNode(Checkbox, {
105
+ props.multiple && createVNode(Checkbox, mergeProps({
106
106
  "modelValue": checkedStatus.value.checked,
107
107
  "indeterminate": checkedStatus.value.indeterminate,
108
108
  "disabled": props.option.disabled || props.option.selectionDisabled,
@@ -112,10 +112,9 @@ var cascader_option_default = /* @__PURE__ */ defineComponent({
112
112
  ev.stopPropagation();
113
113
  handlePathChange(ev);
114
114
  (_cascaderCtx$onClickO2 = cascaderCtx.onClickOption) === null || _cascaderCtx$onClickO2 === void 0 || _cascaderCtx$onClickO2.call(cascaderCtx, props.option, !checkedStatus.value.checked);
115
- },
116
- "onClick": (ev) => ev.stopPropagation()
117
- }, null),
118
- props.checkStrictly && !props.multiple && createVNode(Radio, {
115
+ }
116
+ }, { onClick: (ev) => ev.stopPropagation() }), null),
117
+ props.checkStrictly && !props.multiple && createVNode(Radio, mergeProps({
119
118
  "modelValue": (_cascaderCtx$valueMap2 = cascaderCtx.valueMap) === null || _cascaderCtx$valueMap2 === void 0 ? void 0 : _cascaderCtx$valueMap2.has(props.option.key),
120
119
  "disabled": props.option.disabled,
121
120
  "uninjectGroupContext": true,
@@ -124,9 +123,8 @@ var cascader_option_default = /* @__PURE__ */ defineComponent({
124
123
  ev.stopPropagation();
125
124
  handlePathChange(ev);
126
125
  (_cascaderCtx$onClickO3 = cascaderCtx.onClickOption) === null || _cascaderCtx$onClickO3 === void 0 || _cascaderCtx$onClickO3.call(cascaderCtx, props.option, true);
127
- },
128
- "onClick": (ev) => ev.stopPropagation()
129
- }, null),
126
+ }
127
+ }, { onClick: (ev) => ev.stopPropagation() }), null),
130
128
  createVNode("div", { "class": `${prefixCls}-label` }, [renderLabelContent(), renderIcon()])
131
129
  ])]);
132
130
  };
@@ -75,7 +75,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
75
75
  };
76
76
  }>, {
77
77
  prefixCls: string;
78
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
78
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
79
79
  prefix: {
80
80
  type: StringConstructor;
81
81
  };
@@ -87,7 +87,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
87
87
  type: BooleanConstructor;
88
88
  default: boolean;
89
89
  };
90
- }>> & Readonly<{}>, {
90
+ }>> & Readonly<{
91
+ onClick?: ((...args: any[]) => any) | undefined;
92
+ }>, {
91
93
  size: "medium" | "large" | "small" | "mini";
92
94
  disabled: boolean;
93
95
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -55,7 +55,7 @@ declare const Checkbox: {
55
55
  };
56
56
  }>, {
57
57
  prefixCls: string;
58
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
58
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
59
59
  prefix: {
60
60
  type: StringConstructor;
61
61
  };
@@ -67,7 +67,9 @@ declare const Checkbox: {
67
67
  type: BooleanConstructor;
68
68
  default: boolean;
69
69
  };
70
- }>> & Readonly<{}>, {
70
+ }>> & Readonly<{
71
+ onClick?: ((...args: any[]) => any) | undefined;
72
+ }>, {
71
73
  size: "medium" | "large" | "small" | "mini";
72
74
  disabled: boolean;
73
75
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -167,7 +169,7 @@ declare const Checkbox: {
167
169
  };
168
170
  }>, {
169
171
  prefixCls: string;
170
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
172
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
171
173
  prefix: {
172
174
  type: StringConstructor;
173
175
  };
@@ -179,7 +181,9 @@ declare const Checkbox: {
179
181
  type: BooleanConstructor;
180
182
  default: boolean;
181
183
  };
182
- }>> & Readonly<{}>, {
184
+ }>> & Readonly<{
185
+ onClick?: ((...args: any[]) => any) | undefined;
186
+ }>, {
183
187
  size: "medium" | "large" | "small" | "mini";
184
188
  disabled: boolean;
185
189
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -45,7 +45,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
45
45
  };
46
46
  }>, {
47
47
  prefixCls: string;
48
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
48
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
49
49
  prefix: {
50
50
  type: StringConstructor;
51
51
  };
@@ -57,7 +57,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
57
57
  type: BooleanConstructor;
58
58
  default: boolean;
59
59
  };
60
- }>> & Readonly<{}>, {
60
+ }>> & Readonly<{
61
+ onClick?: ((...args: any[]) => any) | undefined;
62
+ }>, {
61
63
  size: "medium" | "large" | "small" | "mini";
62
64
  disabled: boolean;
63
65
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -203,7 +203,7 @@ declare const Collapse: {
203
203
  };
204
204
  }>, {
205
205
  prefixCls: string;
206
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
206
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
207
207
  prefix: {
208
208
  type: StringConstructor;
209
209
  };
@@ -215,7 +215,9 @@ declare const Collapse: {
215
215
  type: BooleanConstructor;
216
216
  default: boolean;
217
217
  };
218
- }>> & Readonly<{}>, {
218
+ }>> & Readonly<{
219
+ onClick?: ((...args: any[]) => any) | undefined;
220
+ }>, {
219
221
  size: "medium" | "large" | "small" | "mini";
220
222
  disabled: boolean;
221
223
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,5 +1,5 @@
1
1
  import { InjectionKey } from 'vue';
2
2
  export declare const PickerInjectionKey: InjectionKey<string>;
3
3
  export type PickerContext = Readonly<{
4
- datePickerT: (key: string, ...args: any[]) => any;
4
+ datePickerT: (key: string, ...args: unknown[]) => string;
5
5
  }>;
@@ -1 +1 @@
1
- export default function useDatePickerTransform(): (key: string, ...args: any[]) => any;
1
+ export default function useDatePickerTransform(): (key: string, ...args: unknown[]) => string;
@@ -2,5 +2,5 @@ import { BasePickerProps } from '../interface';
2
2
  interface DatePickerTransform {
3
3
  locale?: BasePickerProps['locale'];
4
4
  }
5
- export default function useDatePickerTransform(props: DatePickerTransform): (key: string, ...args: any[]) => string;
5
+ export default function useDatePickerTransform(props: DatePickerTransform): (key: string, ...args: unknown[]) => string;
6
6
  export {};
@@ -1,5 +1,5 @@
1
1
  import { Dayjs } from 'dayjs';
2
- import { CalendarValue, Mode } from '../interface';
2
+ import { CalendarValue, HeaderOperations, Mode } from '../interface';
3
3
  interface RangeHeaderValueProps {
4
4
  mode: Mode;
5
5
  startHeaderMode?: Mode;
@@ -13,8 +13,8 @@ interface RangeHeaderValueProps {
13
13
  export default function useRangeHeaderValue(props: RangeHeaderValueProps): {
14
14
  startHeaderValue: import("vue").ComputedRef<Dayjs>;
15
15
  endHeaderValue: import("vue").ComputedRef<Dayjs>;
16
- startHeaderOperations: import("vue").ComputedRef<Pick<any, string>>;
17
- endHeaderOperations: import("vue").ComputedRef<Pick<any, string>>;
16
+ startHeaderOperations: import("vue").ComputedRef<Pick<HeaderOperations, keyof HeaderOperations>>;
17
+ endHeaderOperations: import("vue").ComputedRef<Pick<HeaderOperations, keyof HeaderOperations>>;
18
18
  setHeaderValue: (newVal: Dayjs[]) => void;
19
19
  resetHeaderValue: () => void;
20
20
  };