@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
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.133.0/helpers/esm/objectSpread2.js";
|
|
2
1
|
import { isUndefined } from "../_utils/is.js";
|
|
3
2
|
import { isValidRangeValue } from "./utils/index.js";
|
|
4
3
|
import panel_default from "./panel.js";
|
|
5
|
-
import { computed, createVNode, defineComponent, ref, toRefs, watch } from "vue";
|
|
4
|
+
import { computed, createVNode, defineComponent, mergeProps, ref, toRefs, watch } from "vue";
|
|
6
5
|
//#region components/time-picker/range-panel.tsx
|
|
7
6
|
var range_panel_default = /* @__PURE__ */ defineComponent({
|
|
8
7
|
name: "TimePickerRangePanel",
|
|
@@ -47,11 +46,11 @@ var range_panel_default = /* @__PURE__ */ defineComponent({
|
|
|
47
46
|
};
|
|
48
47
|
},
|
|
49
48
|
render() {
|
|
50
|
-
return createVNode(panel_default,
|
|
51
|
-
isRange: true,
|
|
52
|
-
value: this.displayValue,
|
|
53
|
-
onSelect: this.onSelect,
|
|
54
|
-
onConfirm: this.onConfirm
|
|
49
|
+
return createVNode(panel_default, mergeProps(this.$attrs, {
|
|
50
|
+
"isRange": true,
|
|
51
|
+
"value": this.displayValue,
|
|
52
|
+
"onSelect": this.onSelect,
|
|
53
|
+
"onConfirm": this.onConfirm
|
|
55
54
|
}), this.$slots);
|
|
56
55
|
}
|
|
57
56
|
});
|
|
@@ -115,7 +115,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
115
115
|
onDisplayIndexChange?: undefined;
|
|
116
116
|
}>;
|
|
117
117
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
118
|
-
onPanelVisibleChange:
|
|
118
|
+
onPanelVisibleChange: (newVisible: boolean) => void;
|
|
119
119
|
onInputClear: (e: Event) => void;
|
|
120
120
|
onPanelSelect: (value: Dayjs | Array<Dayjs | undefined>) => void;
|
|
121
121
|
onPanelConfirm: (value: Dayjs | Dayjs[]) => void;
|
|
@@ -896,7 +896,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
896
896
|
};
|
|
897
897
|
}>, {
|
|
898
898
|
prefixCls: string;
|
|
899
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
899
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
900
900
|
prefix: {
|
|
901
901
|
type: StringConstructor;
|
|
902
902
|
};
|
|
@@ -908,7 +908,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
908
908
|
type: BooleanConstructor;
|
|
909
909
|
default: boolean;
|
|
910
910
|
};
|
|
911
|
-
}>> & Readonly<{
|
|
911
|
+
}>> & Readonly<{
|
|
912
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
913
|
+
}>, {
|
|
912
914
|
size: "medium" | "large" | "small" | "mini";
|
|
913
915
|
disabled: boolean;
|
|
914
916
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1660,7 +1662,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1660
1662
|
};
|
|
1661
1663
|
}>, {
|
|
1662
1664
|
prefixCls: string;
|
|
1663
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
1665
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1664
1666
|
prefix: {
|
|
1665
1667
|
type: StringConstructor;
|
|
1666
1668
|
};
|
|
@@ -1672,7 +1674,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1672
1674
|
type: BooleanConstructor;
|
|
1673
1675
|
default: boolean;
|
|
1674
1676
|
};
|
|
1675
|
-
}>> & Readonly<{
|
|
1677
|
+
}>> & Readonly<{
|
|
1678
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
1679
|
+
}>, {
|
|
1676
1680
|
size: "medium" | "large" | "small" | "mini";
|
|
1677
1681
|
disabled: boolean;
|
|
1678
1682
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -2314,7 +2318,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
2314
2318
|
hideDisabledOptions: boolean;
|
|
2315
2319
|
}, {
|
|
2316
2320
|
prefixCls: string;
|
|
2317
|
-
t: (key: string, ...args:
|
|
2321
|
+
t: (key: string, ...args: unknown[]) => string;
|
|
2318
2322
|
hours: import("vue").ComputedRef<import("./interface.js").TimeList>;
|
|
2319
2323
|
minutes: import("vue").ComputedRef<import("./interface.js").TimeList>;
|
|
2320
2324
|
seconds: import("vue").ComputedRef<import("./interface.js").TimeList>;
|
|
@@ -3074,7 +3078,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
3074
3078
|
hideDisabledOptions: boolean;
|
|
3075
3079
|
}, {
|
|
3076
3080
|
prefixCls: string;
|
|
3077
|
-
t: (key: string, ...args:
|
|
3081
|
+
t: (key: string, ...args: unknown[]) => string;
|
|
3078
3082
|
hours: import("vue").ComputedRef<import("./interface.js").TimeList>;
|
|
3079
3083
|
minutes: import("vue").ComputedRef<import("./interface.js").TimeList>;
|
|
3080
3084
|
seconds: import("vue").ComputedRef<import("./interface.js").TimeList>;
|
|
@@ -9,7 +9,7 @@ export declare function getFormattedValue(time: Dayjs, format: string): string;
|
|
|
9
9
|
export declare function getFormattedValue(time: Dayjs | undefined, format: string): string | undefined;
|
|
10
10
|
export declare function getFormattedValue(time: Array<Dayjs | undefined> | undefined, format: string): Array<string | undefined> | undefined;
|
|
11
11
|
export declare function getFormattedValue(time: Dayjs | Array<Dayjs | undefined> | undefined, format: string): string | Array<string | undefined> | undefined;
|
|
12
|
-
export declare function isValidRangeValue(value:
|
|
12
|
+
export declare function isValidRangeValue(value: unknown): value is undefined | Dayjs[];
|
|
13
13
|
export declare function isValidInputValue(time: string, format: string): boolean;
|
|
14
14
|
export declare function isDisabledTime(value: Dayjs | undefined, { disabledHours, disabledMinutes, disabledSeconds, }: {
|
|
15
15
|
disabledHours: TimePickerProps['disabledHours'];
|
package/es/transfer/index.d.ts
CHANGED
|
@@ -680,7 +680,7 @@ declare const Transfer: {
|
|
|
680
680
|
};
|
|
681
681
|
}>, {
|
|
682
682
|
prefixCls: string;
|
|
683
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
683
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
684
684
|
prefix: {
|
|
685
685
|
type: StringConstructor;
|
|
686
686
|
};
|
|
@@ -692,7 +692,9 @@ declare const Transfer: {
|
|
|
692
692
|
type: BooleanConstructor;
|
|
693
693
|
default: boolean;
|
|
694
694
|
};
|
|
695
|
-
}>> & Readonly<{
|
|
695
|
+
}>> & Readonly<{
|
|
696
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
697
|
+
}>, {
|
|
696
698
|
size: "medium" | "large" | "small" | "mini";
|
|
697
699
|
disabled: boolean;
|
|
698
700
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -792,7 +794,7 @@ declare const Transfer: {
|
|
|
792
794
|
};
|
|
793
795
|
}>, {
|
|
794
796
|
prefixCls: string;
|
|
795
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
797
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
796
798
|
prefix: {
|
|
797
799
|
type: StringConstructor;
|
|
798
800
|
};
|
|
@@ -804,7 +806,9 @@ declare const Transfer: {
|
|
|
804
806
|
type: BooleanConstructor;
|
|
805
807
|
default: boolean;
|
|
806
808
|
};
|
|
807
|
-
}>> & Readonly<{
|
|
809
|
+
}>> & Readonly<{
|
|
810
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
811
|
+
}>, {
|
|
808
812
|
size: "medium" | "large" | "small" | "mini";
|
|
809
813
|
disabled: boolean;
|
|
810
814
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -883,7 +887,7 @@ declare const Transfer: {
|
|
|
883
887
|
};
|
|
884
888
|
}>, {
|
|
885
889
|
prefixCls: string;
|
|
886
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
890
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
887
891
|
prefix: {
|
|
888
892
|
type: StringConstructor;
|
|
889
893
|
};
|
|
@@ -895,7 +899,9 @@ declare const Transfer: {
|
|
|
895
899
|
type: BooleanConstructor;
|
|
896
900
|
default: boolean;
|
|
897
901
|
};
|
|
898
|
-
}>> & Readonly<{
|
|
902
|
+
}>> & Readonly<{
|
|
903
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
904
|
+
}>, {
|
|
899
905
|
size: "medium" | "large" | "small" | "mini";
|
|
900
906
|
disabled: boolean;
|
|
901
907
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -2829,7 +2835,7 @@ declare const Transfer: {
|
|
|
2829
2835
|
};
|
|
2830
2836
|
}>, {
|
|
2831
2837
|
prefixCls: string;
|
|
2832
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
2838
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2833
2839
|
prefix: {
|
|
2834
2840
|
type: StringConstructor;
|
|
2835
2841
|
};
|
|
@@ -2841,7 +2847,9 @@ declare const Transfer: {
|
|
|
2841
2847
|
type: BooleanConstructor;
|
|
2842
2848
|
default: boolean;
|
|
2843
2849
|
};
|
|
2844
|
-
}>> & Readonly<{
|
|
2850
|
+
}>> & Readonly<{
|
|
2851
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
2852
|
+
}>, {
|
|
2845
2853
|
size: "medium" | "large" | "small" | "mini";
|
|
2846
2854
|
disabled: boolean;
|
|
2847
2855
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -2941,7 +2949,7 @@ declare const Transfer: {
|
|
|
2941
2949
|
};
|
|
2942
2950
|
}>, {
|
|
2943
2951
|
prefixCls: string;
|
|
2944
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
2952
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2945
2953
|
prefix: {
|
|
2946
2954
|
type: StringConstructor;
|
|
2947
2955
|
};
|
|
@@ -2953,7 +2961,9 @@ declare const Transfer: {
|
|
|
2953
2961
|
type: BooleanConstructor;
|
|
2954
2962
|
default: boolean;
|
|
2955
2963
|
};
|
|
2956
|
-
}>> & Readonly<{
|
|
2964
|
+
}>> & Readonly<{
|
|
2965
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
2966
|
+
}>, {
|
|
2957
2967
|
size: "medium" | "large" | "small" | "mini";
|
|
2958
2968
|
disabled: boolean;
|
|
2959
2969
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -3032,7 +3042,7 @@ declare const Transfer: {
|
|
|
3032
3042
|
};
|
|
3033
3043
|
}>, {
|
|
3034
3044
|
prefixCls: string;
|
|
3035
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
3045
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3036
3046
|
prefix: {
|
|
3037
3047
|
type: StringConstructor;
|
|
3038
3048
|
};
|
|
@@ -3044,7 +3054,9 @@ declare const Transfer: {
|
|
|
3044
3054
|
type: BooleanConstructor;
|
|
3045
3055
|
default: boolean;
|
|
3046
3056
|
};
|
|
3047
|
-
}>> & Readonly<{
|
|
3057
|
+
}>> & Readonly<{
|
|
3058
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
3059
|
+
}>, {
|
|
3048
3060
|
size: "medium" | "large" | "small" | "mini";
|
|
3049
3061
|
disabled: boolean;
|
|
3050
3062
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -3,7 +3,7 @@ import icon_hover_default from "../_components/icon-hover.js";
|
|
|
3
3
|
import IconClose from "../icon/icon-close/index.js";
|
|
4
4
|
import Checkbox from "../checkbox/index.js";
|
|
5
5
|
import { transferInjectionKey } from "./context.js";
|
|
6
|
-
import { computed, createVNode, defineComponent, inject } from "vue";
|
|
6
|
+
import { computed, createVNode, defineComponent, inject, mergeProps } from "vue";
|
|
7
7
|
//#region components/transfer/transfer-list-item.tsx
|
|
8
8
|
var transfer_list_item_default = /* @__PURE__ */ defineComponent({
|
|
9
9
|
name: "TransferListItem",
|
|
@@ -52,10 +52,7 @@ var transfer_list_item_default = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
label: props.data.label,
|
|
53
53
|
value: props.data.value
|
|
54
54
|
})) !== null && _transferCtx$slots$it3 !== void 0 ? _transferCtx$slots$it3 : props.data.label];
|
|
55
|
-
} }), props.allowClear && !props.disabled && createVNode(icon_hover_default, {
|
|
56
|
-
"class": `${prefixCls}-remove-btn`,
|
|
57
|
-
"onClick": handleRemove
|
|
58
|
-
}, { default: () => [createVNode(IconClose, null, null)] })]);
|
|
55
|
+
} }), props.allowClear && !props.disabled && createVNode(icon_hover_default, mergeProps({ "class": `${prefixCls}-remove-btn` }, { onClick: handleRemove }), { default: () => [createVNode(IconClose, null, null)] })]);
|
|
59
56
|
};
|
|
60
57
|
}
|
|
61
58
|
});
|
|
@@ -145,7 +145,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
145
145
|
};
|
|
146
146
|
}>, {
|
|
147
147
|
prefixCls: string;
|
|
148
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
148
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
149
149
|
prefix: {
|
|
150
150
|
type: StringConstructor;
|
|
151
151
|
};
|
|
@@ -157,7 +157,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
157
157
|
type: BooleanConstructor;
|
|
158
158
|
default: boolean;
|
|
159
159
|
};
|
|
160
|
-
}>> & Readonly<{
|
|
160
|
+
}>> & Readonly<{
|
|
161
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
162
|
+
}>, {
|
|
161
163
|
size: "medium" | "large" | "small" | "mini";
|
|
162
164
|
disabled: boolean;
|
|
163
165
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -257,7 +259,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
257
259
|
};
|
|
258
260
|
}>, {
|
|
259
261
|
prefixCls: string;
|
|
260
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
262
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
261
263
|
prefix: {
|
|
262
264
|
type: StringConstructor;
|
|
263
265
|
};
|
|
@@ -269,7 +271,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
269
271
|
type: BooleanConstructor;
|
|
270
272
|
default: boolean;
|
|
271
273
|
};
|
|
272
|
-
}>> & Readonly<{
|
|
274
|
+
}>> & Readonly<{
|
|
275
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
276
|
+
}>, {
|
|
273
277
|
size: "medium" | "large" | "small" | "mini";
|
|
274
278
|
disabled: boolean;
|
|
275
279
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -348,7 +352,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
348
352
|
};
|
|
349
353
|
}>, {
|
|
350
354
|
prefixCls: string;
|
|
351
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
355
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
352
356
|
prefix: {
|
|
353
357
|
type: StringConstructor;
|
|
354
358
|
};
|
|
@@ -360,7 +364,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
360
364
|
type: BooleanConstructor;
|
|
361
365
|
default: boolean;
|
|
362
366
|
};
|
|
363
|
-
}>> & Readonly<{
|
|
367
|
+
}>> & Readonly<{
|
|
368
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
369
|
+
}>, {
|
|
364
370
|
size: "medium" | "large" | "small" | "mini";
|
|
365
371
|
disabled: boolean;
|
|
366
372
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -731,7 +731,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
731
731
|
};
|
|
732
732
|
}>, {
|
|
733
733
|
prefixCls: string;
|
|
734
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
734
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
735
735
|
prefix: {
|
|
736
736
|
type: StringConstructor;
|
|
737
737
|
};
|
|
@@ -743,7 +743,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
743
743
|
type: BooleanConstructor;
|
|
744
744
|
default: boolean;
|
|
745
745
|
};
|
|
746
|
-
}>> & Readonly<{
|
|
746
|
+
}>> & Readonly<{
|
|
747
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
748
|
+
}>, {
|
|
747
749
|
size: "medium" | "large" | "small" | "mini";
|
|
748
750
|
disabled: boolean;
|
|
749
751
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -843,7 +845,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
843
845
|
};
|
|
844
846
|
}>, {
|
|
845
847
|
prefixCls: string;
|
|
846
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
848
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
847
849
|
prefix: {
|
|
848
850
|
type: StringConstructor;
|
|
849
851
|
};
|
|
@@ -855,7 +857,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
855
857
|
type: BooleanConstructor;
|
|
856
858
|
default: boolean;
|
|
857
859
|
};
|
|
858
|
-
}>> & Readonly<{
|
|
860
|
+
}>> & Readonly<{
|
|
861
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
862
|
+
}>, {
|
|
859
863
|
size: "medium" | "large" | "small" | "mini";
|
|
860
864
|
disabled: boolean;
|
|
861
865
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -934,7 +938,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
934
938
|
};
|
|
935
939
|
}>, {
|
|
936
940
|
prefixCls: string;
|
|
937
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
941
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
938
942
|
prefix: {
|
|
939
943
|
type: StringConstructor;
|
|
940
944
|
};
|
|
@@ -946,7 +950,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
946
950
|
type: BooleanConstructor;
|
|
947
951
|
default: boolean;
|
|
948
952
|
};
|
|
949
|
-
}>> & Readonly<{
|
|
953
|
+
}>> & Readonly<{
|
|
954
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
955
|
+
}>, {
|
|
950
956
|
size: "medium" | "large" | "small" | "mini";
|
|
951
957
|
disabled: boolean;
|
|
952
958
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -400,7 +400,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
400
400
|
};
|
|
401
401
|
}>, {
|
|
402
402
|
prefixCls: string;
|
|
403
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
403
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
404
404
|
prefix: {
|
|
405
405
|
type: StringConstructor;
|
|
406
406
|
};
|
|
@@ -412,7 +412,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
412
412
|
type: BooleanConstructor;
|
|
413
413
|
default: boolean;
|
|
414
414
|
};
|
|
415
|
-
}>> & Readonly<{
|
|
415
|
+
}>> & Readonly<{
|
|
416
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
417
|
+
}>, {
|
|
416
418
|
size: "medium" | "large" | "small" | "mini";
|
|
417
419
|
disabled: boolean;
|
|
418
420
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -512,7 +514,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
512
514
|
};
|
|
513
515
|
}>, {
|
|
514
516
|
prefixCls: string;
|
|
515
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
517
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
516
518
|
prefix: {
|
|
517
519
|
type: StringConstructor;
|
|
518
520
|
};
|
|
@@ -524,7 +526,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
524
526
|
type: BooleanConstructor;
|
|
525
527
|
default: boolean;
|
|
526
528
|
};
|
|
527
|
-
}>> & Readonly<{
|
|
529
|
+
}>> & Readonly<{
|
|
530
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
531
|
+
}>, {
|
|
528
532
|
size: "medium" | "large" | "small" | "mini";
|
|
529
533
|
disabled: boolean;
|
|
530
534
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/es/tree/interface.d.ts
CHANGED
|
@@ -431,7 +431,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
431
431
|
};
|
|
432
432
|
}>, {
|
|
433
433
|
prefixCls: string;
|
|
434
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
434
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
435
435
|
prefix: {
|
|
436
436
|
type: StringConstructor;
|
|
437
437
|
};
|
|
@@ -443,7 +443,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
443
443
|
type: BooleanConstructor;
|
|
444
444
|
default: boolean;
|
|
445
445
|
};
|
|
446
|
-
}>> & Readonly<{
|
|
446
|
+
}>> & Readonly<{
|
|
447
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
448
|
+
}>, {
|
|
447
449
|
size: "medium" | "large" | "small" | "mini";
|
|
448
450
|
disabled: boolean;
|
|
449
451
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -543,7 +545,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
543
545
|
};
|
|
544
546
|
}>, {
|
|
545
547
|
prefixCls: string;
|
|
546
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
548
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
547
549
|
prefix: {
|
|
548
550
|
type: StringConstructor;
|
|
549
551
|
};
|
|
@@ -555,7 +557,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
555
557
|
type: BooleanConstructor;
|
|
556
558
|
default: boolean;
|
|
557
559
|
};
|
|
558
|
-
}>> & Readonly<{
|
|
560
|
+
}>> & Readonly<{
|
|
561
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
562
|
+
}>, {
|
|
559
563
|
size: "medium" | "large" | "small" | "mini";
|
|
560
564
|
disabled: boolean;
|
|
561
565
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/es/tree/tree.vue.d.ts
CHANGED
|
@@ -215,7 +215,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
215
215
|
enabled?: boolean | undefined;
|
|
216
216
|
scrollbar?: boolean | {
|
|
217
217
|
type?: import("..").ScrollbarType | undefined;
|
|
218
|
-
outerClass?: (string | Record<string,
|
|
218
|
+
outerClass?: (string | Record<string, unknown> | unknown[]) | undefined;
|
|
219
219
|
outerStyle?: {
|
|
220
220
|
[x: `--${string}`]: string | number | undefined;
|
|
221
221
|
accentColor?: import("csstype").Property.AccentColor | undefined;
|
|
@@ -5262,7 +5262,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
5262
5262
|
enabled?: boolean | undefined;
|
|
5263
5263
|
scrollbar?: boolean | {
|
|
5264
5264
|
type?: import("..").ScrollbarType | undefined;
|
|
5265
|
-
outerClass?: (string | Record<string,
|
|
5265
|
+
outerClass?: (string | Record<string, unknown> | unknown[]) | undefined;
|
|
5266
5266
|
outerStyle?: {
|
|
5267
5267
|
[x: `--${string}`]: string | number | undefined;
|
|
5268
5268
|
accentColor?: import("csstype").Property.AccentColor | undefined;
|
package/es/tree-select/panel.js
CHANGED
|
@@ -41,10 +41,12 @@ var panel_default = /* @__PURE__ */ defineComponent({
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
const treeWrapperClassName = computed(() => [`${prefixCls}-tree-wrapper`, computedTreeProps.value.virtualListProps && `${prefixCls}-tree-wrapper-virtual`]);
|
|
44
|
-
const onSelect = (newVal,
|
|
44
|
+
const onSelect = (newVal, event) => {
|
|
45
45
|
if (showCheckable.value) {
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
if (newVal[0] !== void 0 && event.e) {
|
|
47
|
+
var _refTree$value, _refTree$value$toggle;
|
|
48
|
+
(_refTree$value = refTree.value) === null || _refTree$value === void 0 || (_refTree$value$toggle = _refTree$value.toggleCheck) === null || _refTree$value$toggle === void 0 || _refTree$value$toggle.call(_refTree$value, newVal[0], event.e);
|
|
49
|
+
}
|
|
48
50
|
} else emit("change", newVal);
|
|
49
51
|
};
|
|
50
52
|
const onCheck = (newVal) => {
|
|
@@ -264,7 +264,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
264
264
|
e: DragEvent;
|
|
265
265
|
dragNode: TreeNodeData;
|
|
266
266
|
dropNode: TreeNodeData;
|
|
267
|
-
dropPosition:
|
|
267
|
+
dropPosition: number;
|
|
268
268
|
}) => void;
|
|
269
269
|
filterTreeNode?: (node: TreeNodeData) => boolean;
|
|
270
270
|
}>;
|
package/es/trigger/context.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { InjectionKey } from 'vue';
|
|
1
|
+
import type { ComponentPublicInstance, InjectionKey } from 'vue';
|
|
2
2
|
export interface TriggerContext {
|
|
3
3
|
onMouseenter: (ev: MouseEvent) => void;
|
|
4
4
|
onMouseleave: (ev: MouseEvent) => void;
|
|
5
|
-
addChildRef: (ref:
|
|
6
|
-
removeChildRef: (ref:
|
|
5
|
+
addChildRef: (ref: HTMLElement | ComponentPublicInstance) => void;
|
|
6
|
+
removeChildRef: (ref: HTMLElement | ComponentPublicInstance) => void;
|
|
7
7
|
}
|
|
8
8
|
export declare const triggerInjectionKey: InjectionKey<TriggerContext>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
+
import type { ClassName } from '../_utils/types';
|
|
2
3
|
import { TriggerEvent, TriggerPosition } from '../_utils/constant';
|
|
3
4
|
export type TriggerPopupTranslate = [number, number] | {
|
|
4
5
|
[key in TriggerPosition]?: [number, number];
|
|
@@ -18,9 +19,9 @@ export interface TriggerProps {
|
|
|
18
19
|
clickToClose?: boolean;
|
|
19
20
|
clickOutsideToClose?: boolean;
|
|
20
21
|
unmountOnClose?: boolean;
|
|
21
|
-
contentClass?:
|
|
22
|
+
contentClass?: ClassName;
|
|
22
23
|
contentStyle?: CSSProperties;
|
|
23
|
-
arrowClass?:
|
|
24
|
+
arrowClass?: ClassName;
|
|
24
25
|
arrowStyle?: CSSProperties;
|
|
25
26
|
popupStyle?: CSSProperties;
|
|
26
27
|
animationName?: string;
|
package/es/trigger/trigger.js
CHANGED
|
@@ -330,6 +330,7 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
330
330
|
* @slot content
|
|
331
331
|
*/
|
|
332
332
|
setup(props, { emit, slots, attrs }) {
|
|
333
|
+
const triggerEventAttrs = attrs;
|
|
333
334
|
const prefixCls = getPrefixCls("trigger");
|
|
334
335
|
const popupAttrs = computed(() => omit(attrs, TRIGGER_EVENTS));
|
|
335
336
|
const configCtx = inject(configProviderInjectionKey, void 0);
|
|
@@ -435,8 +436,8 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
435
436
|
} else update();
|
|
436
437
|
};
|
|
437
438
|
const handleClick = (e) => {
|
|
438
|
-
var
|
|
439
|
-
(
|
|
439
|
+
var _triggerEventAttrs$on;
|
|
440
|
+
(_triggerEventAttrs$on = triggerEventAttrs.onClick) === null || _triggerEventAttrs$on === void 0 || _triggerEventAttrs$on.call(triggerEventAttrs, e);
|
|
440
441
|
if (props.disabled || computedVisible.value && !props.clickToClose) return;
|
|
441
442
|
if (triggerMethods.value.includes("click")) {
|
|
442
443
|
updateMousePosition(e);
|
|
@@ -444,8 +445,8 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
444
445
|
} else if (triggerMethods.value.includes("contextMenu") && computedVisible.value) changeVisible(false);
|
|
445
446
|
};
|
|
446
447
|
const handleMouseEnter = (e) => {
|
|
447
|
-
var
|
|
448
|
-
(
|
|
448
|
+
var _triggerEventAttrs$on2;
|
|
449
|
+
(_triggerEventAttrs$on2 = triggerEventAttrs.onMouseenter) === null || _triggerEventAttrs$on2 === void 0 || _triggerEventAttrs$on2.call(triggerEventAttrs, e);
|
|
449
450
|
if (props.disabled || !triggerMethods.value.includes("hover")) return;
|
|
450
451
|
updateMousePosition(e);
|
|
451
452
|
changeVisible(true, props.mouseEnterDelay);
|
|
@@ -455,8 +456,8 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
455
456
|
handleMouseEnter(e);
|
|
456
457
|
};
|
|
457
458
|
const handleMouseLeave = (e) => {
|
|
458
|
-
var
|
|
459
|
-
(
|
|
459
|
+
var _triggerEventAttrs$on3;
|
|
460
|
+
(_triggerEventAttrs$on3 = triggerEventAttrs.onMouseleave) === null || _triggerEventAttrs$on3 === void 0 || _triggerEventAttrs$on3.call(triggerEventAttrs, e);
|
|
460
461
|
if (props.disabled || !triggerMethods.value.includes("hover")) return;
|
|
461
462
|
changeVisible(false, props.mouseLeaveDelay);
|
|
462
463
|
};
|
|
@@ -465,21 +466,21 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
465
466
|
handleMouseLeave(e);
|
|
466
467
|
};
|
|
467
468
|
const handleFocusin = (e) => {
|
|
468
|
-
var
|
|
469
|
-
(
|
|
469
|
+
var _triggerEventAttrs$on4;
|
|
470
|
+
(_triggerEventAttrs$on4 = triggerEventAttrs.onFocusin) === null || _triggerEventAttrs$on4 === void 0 || _triggerEventAttrs$on4.call(triggerEventAttrs, e);
|
|
470
471
|
if (props.disabled || !triggerMethods.value.includes("focus")) return;
|
|
471
472
|
changeVisible(true, props.focusDelay);
|
|
472
473
|
};
|
|
473
474
|
const handleFocusout = (e) => {
|
|
474
|
-
var
|
|
475
|
-
(
|
|
475
|
+
var _triggerEventAttrs$on5;
|
|
476
|
+
(_triggerEventAttrs$on5 = triggerEventAttrs.onFocusout) === null || _triggerEventAttrs$on5 === void 0 || _triggerEventAttrs$on5.call(triggerEventAttrs, e);
|
|
476
477
|
if (props.disabled || !triggerMethods.value.includes("focus")) return;
|
|
477
478
|
if (!props.blurToClose) return;
|
|
478
479
|
changeVisible(false);
|
|
479
480
|
};
|
|
480
481
|
const handleContextmenu = (e) => {
|
|
481
|
-
var
|
|
482
|
-
(
|
|
482
|
+
var _triggerEventAttrs$on6;
|
|
483
|
+
(_triggerEventAttrs$on6 = triggerEventAttrs.onContextmenu) === null || _triggerEventAttrs$on6 === void 0 || _triggerEventAttrs$on6.call(triggerEventAttrs, e);
|
|
483
484
|
if (props.disabled || !triggerMethods.value.includes("contextMenu") || computedVisible.value && !props.clickToClose) return;
|
|
484
485
|
updateMousePosition(e);
|
|
485
486
|
changeVisible(!computedVisible.value);
|
|
@@ -512,8 +513,8 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
512
513
|
var _firstElement$value, _popupRef$value;
|
|
513
514
|
if (((_firstElement$value = firstElement.value) === null || _firstElement$value === void 0 ? void 0 : _firstElement$value.contains(e.target)) || ((_popupRef$value = popupRef.value) === null || _popupRef$value === void 0 ? void 0 : _popupRef$value.contains(e.target))) return;
|
|
514
515
|
for (const item of childrenRefs) {
|
|
515
|
-
|
|
516
|
-
if (
|
|
516
|
+
const element = "value" in item ? item.value : item;
|
|
517
|
+
if (element === null || element === void 0 ? void 0 : element.contains(e.target)) return;
|
|
517
518
|
}
|
|
518
519
|
removeOutsideListener();
|
|
519
520
|
changeVisible(false);
|
|
@@ -553,7 +554,7 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
553
554
|
const handlePopupMouseDown = (e) => {
|
|
554
555
|
if (props.preventFocus) e.preventDefault();
|
|
555
556
|
};
|
|
556
|
-
triggerCtx === null || triggerCtx === void 0 || triggerCtx.addChildRef(popupRef);
|
|
557
|
+
triggerCtx === null || triggerCtx === void 0 || triggerCtx.addChildRef(popupRef.value);
|
|
557
558
|
const triggerCls = computed(() => {
|
|
558
559
|
return computedVisible.value ? props.openedClass : void 0;
|
|
559
560
|
});
|
|
@@ -609,7 +610,7 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
609
610
|
changeVisible(false);
|
|
610
611
|
});
|
|
611
612
|
onBeforeUnmount(() => {
|
|
612
|
-
triggerCtx === null || triggerCtx === void 0 || triggerCtx.removeChildRef(popupRef);
|
|
613
|
+
triggerCtx === null || triggerCtx === void 0 || triggerCtx.removeChildRef(popupRef.value);
|
|
613
614
|
destroyResizeObserver();
|
|
614
615
|
if (outsideListener) removeOutsideListener();
|
|
615
616
|
if (windowListener) removeWindowScroll();
|