@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.
- package/es/_components/icon-hover.js +8 -5
- package/es/_components/icon-hover.vue.d.ts +4 -2
- package/es/_components/icon-hover.vue_vue_type_script_lang.js +1 -0
- package/es/_components/picker/input-range.vue.d.ts +4 -2
- package/es/_components/picker/input.vue.d.ts +4 -2
- package/es/_hooks/use-input.d.ts +1 -1
- package/es/_hooks/use-pagination.d.ts +7 -4
- package/es/_hooks/use-popup-overflow-hidden.js +2 -1
- package/es/_utils/debounce.d.ts +1 -1
- package/es/_utils/get-value-by-path.d.ts +2 -2
- package/es/_utils/is-equal.js +1 -1
- package/es/_utils/is.d.ts +3 -3
- package/es/_utils/is.js +1 -1
- package/es/_utils/omit.d.ts +1 -1
- package/es/_utils/pick.d.ts +1 -1
- package/es/_utils/pick.js +1 -2
- package/es/_utils/throttle-by-raf.d.ts +2 -2
- package/es/_utils/types.d.ts +1 -1
- package/es/affix/affix.vue.d.ts +1 -1
- package/es/affix/index.d.ts +3 -3
- package/es/alert/alert.vue.d.ts +4 -2
- package/es/alert/index.d.ts +8 -4
- package/es/auto-complete/auto-complete.js +2 -3
- package/es/calendar/components/cell.vue.d.ts +2 -2
- package/es/calendar/components/event.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/calendar/context.d.ts +2 -1
- package/es/cascader/base-cascader-panel.js +4 -5
- package/es/cascader/cascader-option.js +6 -8
- package/es/checkbox/checkbox.d.ts +4 -2
- package/es/checkbox/index.d.ts +8 -4
- package/es/collapse/collapse-item.d.ts +4 -2
- package/es/collapse/index.d.ts +4 -2
- package/es/date-picker/context.d.ts +1 -1
- package/es/date-picker/hooks/use-inject-datepicker-transform.d.ts +1 -1
- package/es/date-picker/hooks/use-provide-datepicker-transform.d.ts +1 -1
- package/es/date-picker/hooks/use-range-header-value.d.ts +3 -3
- package/es/date-picker/index.d.ts +15 -13
- package/es/date-picker/interface.d.ts +1 -1
- package/es/date-picker/panels/date/index.vue.d.ts +2 -2
- package/es/date-picker/panels/footer.vue.d.ts +1 -1
- package/es/date-picker/panels/month/index.vue.d.ts +1 -1
- package/es/date-picker/panels/shortcuts.vue.d.ts +1 -1
- package/es/date-picker/panels/week/index.vue.d.ts +2 -2
- package/es/date-picker/picker-panel.vue.d.ts +7 -7
- package/es/date-picker/picker.vue.d.ts +11 -9
- package/es/date-picker/range-picker-panel.vue.d.ts +9 -9
- package/es/date-picker/range-picker.vue.d.ts +15 -13
- package/es/drawer/drawer.vue.d.ts +5 -3
- package/es/drawer/index.d.ts +11 -7
- package/es/dropdown/dropdown-button.vue.d.ts +2 -2
- package/es/dropdown/dropdown.vue.d.ts +2 -2
- package/es/dropdown/index.d.ts +7 -7
- package/es/dropdown/interface.d.ts +2 -2
- package/es/form/context.d.ts +7 -6
- package/es/form/form-item.vue.d.ts +6 -10
- package/es/form/index.d.ts +6 -10
- package/es/form/interface.d.ts +2 -2
- package/es/grid/grid-col.vue.d.ts +3 -7
- package/es/grid/hook/use-responsive-value.d.ts +7 -19
- package/es/grid/index.d.ts +2 -6
- package/es/grid/interface.d.ts +11 -18
- package/es/image/image.vue.d.ts +2 -2
- package/es/image/interface.d.ts +1 -1
- package/es/image/preview-group.vue.d.ts +1 -1
- package/es/image/preview.vue.d.ts +1 -1
- package/es/input/index.d.ts +4 -2
- package/es/input/input-password.vue.d.ts +4 -2
- package/es/input/input.js +3 -4
- package/es/input-number/input-number.js +20 -19
- package/es/input-tag/input-tag.js +10 -12
- package/es/list/use-pagination.d.ts +7 -4
- package/es/locale/index.d.ts +1 -1
- package/es/locale/index.js +1 -1
- package/es/locale/interface.d.ts +1 -0
- package/es/mention/mention.js +10 -10
- package/es/menu/interface.d.ts +1 -3
- package/es/menu/sub-menu-pop.vue.d.ts +2 -2
- package/es/message/message.vue.d.ts +4 -2
- package/es/modal/index.d.ts +8 -4
- package/es/modal/interface.d.ts +2 -2
- package/es/modal/modal.vue.d.ts +4 -2
- package/es/notification/notification.vue.d.ts +4 -2
- package/es/page-header/index.d.ts +8 -4
- package/es/page-header/page-header.vue.d.ts +4 -2
- package/es/pagination/page-jumper.vue.d.ts +1 -1
- package/es/pagination/page-options.vue.d.ts +16 -8
- package/es/popconfirm/index.d.ts +3 -3
- package/es/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/radio/index.d.ts +8 -4
- package/es/radio/radio.d.ts +4 -2
- package/es/scrollbar/interface.d.ts +1 -1
- package/es/select/index.d.ts +16 -8
- package/es/select/select.d.ts +8 -4
- package/es/select/select.js +6 -4
- package/es/statistic/statistic.vue_vue_type_script_lang.js +2 -2
- package/es/table/table-operation-td.d.ts +16 -8
- package/es/table/table-operation-td.js +10 -13
- package/es/table/table-th.js +17 -6
- package/es/table/table.js +33 -34
- package/es/tabs/tabs-tab.vue.d.ts +4 -2
- package/es/textarea/index.d.ts +8 -4
- package/es/textarea/textarea.vue.d.ts +4 -2
- package/es/time-picker/index.d.ts +23 -15
- package/es/time-picker/panel.vue.d.ts +1 -1
- package/es/time-picker/range-panel.d.ts +1 -1
- package/es/time-picker/range-panel.js +6 -7
- package/es/time-picker/time-picker.vue.d.ts +11 -7
- package/es/time-picker/utils/index.d.ts +1 -1
- package/es/transfer/index.d.ts +24 -12
- package/es/transfer/transfer-list-item.js +2 -5
- package/es/transfer/transfer-view.vue.d.ts +12 -6
- package/es/transfer/transfer.vue.d.ts +12 -6
- package/es/tree/base-node.vue.d.ts +8 -4
- package/es/tree/interface.d.ts +1 -1
- package/es/tree/transition-node-list.vue.d.ts +8 -4
- package/es/tree/tree.vue.d.ts +2 -2
- package/es/tree-select/panel.js +5 -3
- package/es/tree-select/tree-select.vue.d.ts +1 -1
- package/es/trigger/context.d.ts +3 -3
- package/es/trigger/interface.d.ts +3 -2
- package/es/trigger/trigger.js +17 -16
- package/es/typography/base.js +2 -2
- package/es/typography/edit-content.vue.d.ts +12 -6
- package/es/typography/interface.d.ts +1 -1
- package/es/typography/operations.vue.d.ts +1 -1
- package/es/upload/interfaces.d.ts +3 -3
- package/es/upload/upload-list.js +2 -5
- package/es/upload/upload.js +4 -5
- package/es/verification-code/verification-code.js +7 -6
- package/json/web-types.json +2 -2
- 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", {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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,
|
|
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,
|
|
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,
|
|
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>;
|
package/es/_hooks/use-input.d.ts
CHANGED
|
@@ -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<
|
|
7
|
+
emit: EmitFn<string>;
|
|
8
8
|
eventName?: string;
|
|
9
9
|
updateEventName?: string;
|
|
10
10
|
eventHandlers?: Ref<FormItemEventHandler>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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<
|
|
5
|
-
pageSize: import("vue").ComputedRef<
|
|
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
|
-
|
|
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;
|
package/es/_utils/debounce.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function debounce(callback: (...args:
|
|
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 =
|
|
3
|
-
export declare const setValueByPath: (obj: Data | undefined, path: string | undefined, value:
|
|
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;
|
package/es/_utils/is-equal.js
CHANGED
|
@@ -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
|
|
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
|
|
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:
|
|
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:
|
|
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
package/es/_utils/omit.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Data } from './types';
|
|
2
|
-
export declare const omit: <T extends Data, K extends keyof
|
|
2
|
+
export declare const omit: <T extends Data, K extends keyof T>(object: T, path: Array<K>) => Omit<T, K>;
|
package/es/_utils/pick.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function pick<T extends object, K extends keyof T>(obj: T, keys: Array<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
package/es/_utils/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface SDIconOptions {
|
|
|
10
10
|
export interface SDGlobalConfig {
|
|
11
11
|
classPrefix?: string;
|
|
12
12
|
}
|
|
13
|
-
type UnionToIntersection<U> = (U extends
|
|
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>;
|
package/es/affix/affix.vue.d.ts
CHANGED
|
@@ -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
|
-
(
|
|
27
|
+
(): void;
|
|
28
28
|
cancel(): void;
|
|
29
29
|
};
|
|
30
30
|
}, {}, {}, {
|
package/es/affix/index.d.ts
CHANGED
|
@@ -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
|
-
(
|
|
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
|
-
(
|
|
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
|
-
(
|
|
113
|
+
(): void;
|
|
114
114
|
cancel(): void;
|
|
115
115
|
};
|
|
116
116
|
}, {}, {}, {
|
package/es/alert/alert.vue.d.ts
CHANGED
|
@@ -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,
|
|
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>;
|
package/es/alert/index.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ declare const Alert: {
|
|
|
59
59
|
};
|
|
60
60
|
}>, {
|
|
61
61
|
prefixCls: string;
|
|
62
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
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,
|
|
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
|
-
|
|
302
|
-
}), slots)],
|
|
300
|
+
"onClear": handleClear
|
|
301
|
+
}, { onKeydown: handleKeyDown }), slots)],
|
|
303
302
|
content: renderDropdown
|
|
304
303
|
});
|
|
305
304
|
return {
|
|
@@ -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,
|
|
200
|
-
|
|
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();
|
package/es/calendar/context.d.ts
CHANGED
|
@@ -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:
|
|
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
|
-
|
|
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
|
-
|
|
117
|
-
|
|
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
|
-
|
|
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,
|
|
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>;
|
package/es/checkbox/index.d.ts
CHANGED
|
@@ -55,7 +55,7 @@ declare const Checkbox: {
|
|
|
55
55
|
};
|
|
56
56
|
}>, {
|
|
57
57
|
prefixCls: string;
|
|
58
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
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,
|
|
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,
|
|
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>;
|
package/es/collapse/index.d.ts
CHANGED
|
@@ -203,7 +203,7 @@ declare const Collapse: {
|
|
|
203
203
|
};
|
|
204
204
|
}>, {
|
|
205
205
|
prefixCls: string;
|
|
206
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
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 +1 @@
|
|
|
1
|
-
export default function useDatePickerTransform(): (key: string, ...args:
|
|
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:
|
|
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<
|
|
17
|
-
endHeaderOperations: import("vue").ComputedRef<Pick<
|
|
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
|
};
|