rx-compo 1.0.71 → 1.0.73
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/RxCheckbox/index.d.ts +1 -1
- package/es/components/RxCheckboxButton/index.d.ts +1 -1
- package/es/components/RxCheckboxGroup/index.d.ts +1 -1
- package/es/components/RxCheckboxGroup/index.js +1 -1
- package/es/components/RxCheckboxGroup/src/RxCheckboxGroup.d.ts +4 -0
- package/es/components/RxCheckboxGroup/src/RxCheckboxGroup.vue.d.ts +14 -5
- package/es/components/RxCheckboxGroup/src/hooks/useCheckboxGroup.d.ts +5 -2
- package/es/components/RxCheckboxGroup/src/hooks/useController.d.ts +4 -5
- package/es/components/RxDatePicker/index.d.ts +1 -1
- package/es/components/RxDatePicker/index.js +1 -1
- package/es/components/RxDatePicker/src/RxDatePicker.d.ts +2 -2
- package/es/components/RxDropDown/index.d.ts +4 -0
- package/es/components/RxDropDown/index.js +1 -0
- package/es/components/RxDropDown/src/RxDropDown.d.ts +7 -0
- package/es/components/RxDropDown/src/RxDropDown.vue.d.ts +8 -0
- package/es/components/RxDropDownItem/index.d.ts +4 -0
- package/es/components/RxDropDownItem/index.js +1 -0
- package/es/components/RxDropDownItem/src/RxDropDownItem.d.ts +5 -0
- package/es/components/RxDropDownItem/src/RxDropDownItem.vue.d.ts +8 -0
- package/es/components/RxDropDownMenu/index.d.ts +4 -0
- package/es/components/RxDropDownMenu/index.js +1 -0
- package/es/components/RxDropDownMenu/src/RxDropDownMenu.d.ts +5 -0
- package/es/components/RxDropDownMenu/src/RxDropDownMenu.vue.d.ts +8 -0
- package/es/components/RxFormPlus/index.js +1 -1
- package/es/components/RxFormPlusBeta/index.d.ts +4 -0
- package/es/components/RxFormPlusBeta/index.js +1 -0
- package/es/components/RxFormPlusBeta/src/RxFormPlusBeta.d.ts +10 -0
- package/es/components/RxFormPlusBeta/src/RxFormPlusBeta.vue.d.ts +14 -0
- package/es/components/RxFormPlusBeta/src/componentMap.d.ts +12 -0
- package/es/components/RxFormPlusBeta/src/components/formComponent/index.d.ts +2 -0
- package/es/components/RxFormPlusBeta/src/components/formComponent/index.vue.d.ts +36 -0
- package/es/components/RxFormPlusBeta/src/components/formComponent/props.d.ts +14 -0
- package/es/components/RxFormPlusBeta/src/components/formDatePicker/hooks/useController.d.ts +5 -0
- package/es/components/RxFormPlusBeta/src/components/formDatePicker/hooks/useFormDatePicker.d.ts +7 -0
- package/es/components/RxFormPlusBeta/src/components/formDatePicker/index.d.ts +2 -0
- package/es/components/RxFormPlusBeta/src/components/formDatePicker/index.vue.d.ts +304 -0
- package/es/components/RxFormPlusBeta/src/components/formDatePicker/props.d.ts +123 -0
- package/es/components/RxFormPlusBeta/src/components/formDatePicker/utils/index.d.ts +2 -0
- package/es/components/RxFormPlusBeta/src/components/formInput/hooks/useController.d.ts +2 -0
- package/es/components/RxFormPlusBeta/src/components/formInput/hooks/useFormInput.d.ts +8 -0
- package/es/components/RxFormPlusBeta/src/components/formInput/index.d.ts +2 -0
- package/es/components/RxFormPlusBeta/src/components/formInput/index.vue.d.ts +231 -0
- package/es/components/RxFormPlusBeta/src/components/formInput/props.d.ts +111 -0
- package/es/components/RxFormPlusBeta/src/components/formSelect/hooks/useController.d.ts +2 -0
- package/es/components/RxFormPlusBeta/src/components/formSelect/index.d.ts +2 -0
- package/es/components/RxFormPlusBeta/src/hooks/useRxFormColumns.d.ts +1 -0
- package/es/components/RxFormSelect/index.d.ts +4 -0
- package/es/components/RxFormSelect/index.js +1 -0
- package/es/components/RxFormSelect/src/RxFormSelect.d.ts +145 -0
- package/es/components/RxFormSelect/src/RxFormSelect.vue.d.ts +282 -0
- package/es/components/RxFormSelect/src/hooks/useController.d.ts +9 -0
- package/es/components/RxFormSelect/src/hooks/useFormSelect.d.ts +13 -0
- package/es/components/RxFormSelect/src/hooks/useScrollbar.d.ts +6 -0
- package/es/components/RxFormSelect/src/hooks/useSelectValue.d.ts +9 -0
- package/es/components/RxFormSelect/src/hooks/useVagueSearch.d.ts +7 -0
- package/es/components/RxOption/index.d.ts +1 -2
- package/es/components/RxOption/src/RxOption.d.ts +3 -1
- package/es/components/RxPopover/index.d.ts +4 -0
- package/es/components/RxPopover/index.js +1 -0
- package/es/components/RxPopover/src/RxPopover.d.ts +5 -0
- package/es/components/RxPopover/src/RxPopover.vue.d.ts +8 -0
- package/es/components/RxRadio/index.d.ts +1 -1
- package/es/components/RxRadio/src/RxRadio.d.ts +4 -5
- package/es/components/RxRadioButton/index.d.ts +1 -1
- package/es/components/RxRadioButton/src/RxRadioButton.d.ts +4 -5
- package/es/components/RxRadioGroup/index.d.ts +1 -1
- package/es/components/RxRadioGroup/index.js +1 -1
- package/es/components/RxRadioGroup/src/RxRadioGroup.d.ts +4 -0
- package/es/components/RxRadioGroup/src/RxRadioGroup.vue.d.ts +14 -3
- package/es/components/RxRadioGroup/src/hooks/useController.d.ts +5 -5
- package/es/components/RxRadioGroup/src/hooks/useRadioGroup.d.ts +5 -2
- package/es/components/RxScrollbar/index.d.ts +1 -0
- package/es/components/RxScrollbar/src/RxScrollbar.d.ts +3 -1
- package/es/components/RxSelect/index.d.ts +1 -1
- package/es/components/RxSelectPlus/index.d.ts +1 -1
- package/es/components/RxSelectPlus/index.js +1 -1
- package/es/components/RxSelectPlus/src/RxSelectPlus.vue.d.ts +1 -0
- package/es/components/RxSelectPlus/src/hooks/useRxSelect.d.ts +1 -0
- package/es/components/RxSuperCondition/index.js +1 -1
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/timeRange.vue.d.ts +0 -2
- package/es/components/RxTabPane/index.d.ts +4 -0
- package/es/components/RxTabPane/index.js +1 -0
- package/es/components/RxTabPane/src/RxTabPane.d.ts +26 -0
- package/es/components/RxTabPane/src/RxTabPane.vue.d.ts +50 -0
- package/es/components/RxTabs/index.css +1 -0
- package/es/components/RxTabs/index.d.ts +4 -0
- package/es/components/RxTabs/index.js +1 -0
- package/es/components/RxTabs/src/RxTabs.d.ts +53 -0
- package/es/components/RxTabs/src/RxTabs.vue.d.ts +109 -0
- package/es/components/RxTabs/src/enums/base.d.ts +2 -0
- package/es/components/RxTabs/src/hooks/useController.d.ts +18 -0
- package/es/components/RxTabs/src/hooks/useTabs.d.ts +4 -0
- package/es/components/RxTooltip/index.d.ts +1 -2
- package/es/components/RxTooltip/index.js +1 -1
- package/es/components/RxTooltip/src/RxTooltip.d.ts +3 -1
- package/es/components/RxTooltip/src/RxTooltip.vue.d.ts +1 -0
- package/es/components/RxTooltip/src/hooks/useBase.d.ts +1 -0
- package/es/components/index.d.ts +8 -0
- package/es/components/index.js +1 -1
- package/es/utils/useTextOverflow.js +6 -2
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/lib/components/RxCheckbox/index.d.ts +1 -1
- package/lib/components/RxCheckboxButton/index.d.ts +1 -1
- package/lib/components/RxCheckboxGroup/index.d.ts +1 -1
- package/lib/components/RxCheckboxGroup/index.js +1 -1
- package/lib/components/RxCheckboxGroup/src/RxCheckboxGroup.d.ts +4 -0
- package/lib/components/RxCheckboxGroup/src/RxCheckboxGroup.vue.d.ts +14 -5
- package/lib/components/RxCheckboxGroup/src/hooks/useCheckboxGroup.d.ts +5 -2
- package/lib/components/RxCheckboxGroup/src/hooks/useController.d.ts +4 -5
- package/lib/components/RxDatePicker/index.d.ts +1 -1
- package/lib/components/RxDatePicker/index.js +1 -1
- package/lib/components/RxDatePicker/src/RxDatePicker.d.ts +2 -2
- package/lib/components/RxDropDown/index.d.ts +4 -0
- package/lib/components/RxDropDown/index.js +1 -0
- package/lib/components/RxDropDown/src/RxDropDown.d.ts +7 -0
- package/lib/components/RxDropDown/src/RxDropDown.vue.d.ts +8 -0
- package/lib/components/RxDropDownItem/index.d.ts +4 -0
- package/lib/components/RxDropDownItem/index.js +1 -0
- package/lib/components/RxDropDownItem/src/RxDropDownItem.d.ts +5 -0
- package/lib/components/RxDropDownItem/src/RxDropDownItem.vue.d.ts +8 -0
- package/lib/components/RxDropDownMenu/index.d.ts +4 -0
- package/lib/components/RxDropDownMenu/index.js +1 -0
- package/lib/components/RxDropDownMenu/src/RxDropDownMenu.d.ts +5 -0
- package/lib/components/RxDropDownMenu/src/RxDropDownMenu.vue.d.ts +8 -0
- package/lib/components/RxFormPlus/index.js +1 -1
- package/lib/components/RxFormPlusBeta/index.d.ts +4 -0
- package/lib/components/RxFormPlusBeta/index.js +1 -0
- package/lib/components/RxFormPlusBeta/src/RxFormPlusBeta.d.ts +10 -0
- package/lib/components/RxFormPlusBeta/src/RxFormPlusBeta.vue.d.ts +14 -0
- package/lib/components/RxFormPlusBeta/src/componentMap.d.ts +12 -0
- package/lib/components/RxFormPlusBeta/src/components/formComponent/index.d.ts +2 -0
- package/lib/components/RxFormPlusBeta/src/components/formComponent/index.vue.d.ts +36 -0
- package/lib/components/RxFormPlusBeta/src/components/formComponent/props.d.ts +14 -0
- package/lib/components/RxFormPlusBeta/src/components/formDatePicker/hooks/useController.d.ts +5 -0
- package/lib/components/RxFormPlusBeta/src/components/formDatePicker/hooks/useFormDatePicker.d.ts +7 -0
- package/lib/components/RxFormPlusBeta/src/components/formDatePicker/index.d.ts +2 -0
- package/lib/components/RxFormPlusBeta/src/components/formDatePicker/index.vue.d.ts +304 -0
- package/lib/components/RxFormPlusBeta/src/components/formDatePicker/props.d.ts +123 -0
- package/lib/components/RxFormPlusBeta/src/components/formDatePicker/utils/index.d.ts +2 -0
- package/lib/components/RxFormPlusBeta/src/components/formInput/hooks/useController.d.ts +2 -0
- package/lib/components/RxFormPlusBeta/src/components/formInput/hooks/useFormInput.d.ts +8 -0
- package/lib/components/RxFormPlusBeta/src/components/formInput/index.d.ts +2 -0
- package/lib/components/RxFormPlusBeta/src/components/formInput/index.vue.d.ts +231 -0
- package/lib/components/RxFormPlusBeta/src/components/formInput/props.d.ts +111 -0
- package/lib/components/RxFormPlusBeta/src/components/formSelect/hooks/useController.d.ts +2 -0
- package/lib/components/RxFormPlusBeta/src/components/formSelect/index.d.ts +2 -0
- package/lib/components/RxFormPlusBeta/src/hooks/useRxFormColumns.d.ts +1 -0
- package/lib/components/RxFormSelect/index.d.ts +4 -0
- package/lib/components/RxFormSelect/index.js +1 -0
- package/lib/components/RxFormSelect/src/RxFormSelect.d.ts +145 -0
- package/lib/components/RxFormSelect/src/RxFormSelect.vue.d.ts +282 -0
- package/lib/components/RxFormSelect/src/hooks/useController.d.ts +9 -0
- package/lib/components/RxFormSelect/src/hooks/useFormSelect.d.ts +13 -0
- package/lib/components/RxFormSelect/src/hooks/useScrollbar.d.ts +6 -0
- package/lib/components/RxFormSelect/src/hooks/useSelectValue.d.ts +9 -0
- package/lib/components/RxFormSelect/src/hooks/useVagueSearch.d.ts +7 -0
- package/lib/components/RxOption/index.d.ts +1 -2
- package/lib/components/RxOption/src/RxOption.d.ts +3 -1
- package/lib/components/RxPopover/index.d.ts +4 -0
- package/lib/components/RxPopover/index.js +1 -0
- package/lib/components/RxPopover/src/RxPopover.d.ts +5 -0
- package/lib/components/RxPopover/src/RxPopover.vue.d.ts +8 -0
- package/lib/components/RxRadio/index.d.ts +1 -1
- package/lib/components/RxRadio/src/RxRadio.d.ts +4 -5
- package/lib/components/RxRadioButton/index.d.ts +1 -1
- package/lib/components/RxRadioButton/src/RxRadioButton.d.ts +4 -5
- package/lib/components/RxRadioGroup/index.d.ts +1 -1
- package/lib/components/RxRadioGroup/index.js +1 -1
- package/lib/components/RxRadioGroup/src/RxRadioGroup.d.ts +4 -0
- package/lib/components/RxRadioGroup/src/RxRadioGroup.vue.d.ts +14 -3
- package/lib/components/RxRadioGroup/src/hooks/useController.d.ts +5 -5
- package/lib/components/RxRadioGroup/src/hooks/useRadioGroup.d.ts +5 -2
- package/lib/components/RxScrollbar/index.d.ts +1 -0
- package/lib/components/RxScrollbar/src/RxScrollbar.d.ts +3 -1
- package/lib/components/RxSelect/index.d.ts +1 -1
- package/lib/components/RxSelectPlus/index.d.ts +1 -1
- package/lib/components/RxSelectPlus/index.js +1 -1
- package/lib/components/RxSelectPlus/src/RxSelectPlus.vue.d.ts +1 -0
- package/lib/components/RxSelectPlus/src/hooks/useRxSelect.d.ts +1 -0
- package/lib/components/RxSuperCondition/index.js +1 -1
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/timeRange.vue.d.ts +0 -2
- package/lib/components/RxTabPane/index.d.ts +4 -0
- package/lib/components/RxTabPane/index.js +1 -0
- package/lib/components/RxTabPane/src/RxTabPane.d.ts +26 -0
- package/lib/components/RxTabPane/src/RxTabPane.vue.d.ts +50 -0
- package/lib/components/RxTabs/index.css +1 -0
- package/lib/components/RxTabs/index.d.ts +4 -0
- package/lib/components/RxTabs/index.js +1 -0
- package/lib/components/RxTabs/src/RxTabs.d.ts +53 -0
- package/lib/components/RxTabs/src/RxTabs.vue.d.ts +109 -0
- package/lib/components/RxTabs/src/enums/base.d.ts +2 -0
- package/lib/components/RxTabs/src/hooks/useController.d.ts +18 -0
- package/lib/components/RxTabs/src/hooks/useTabs.d.ts +4 -0
- package/lib/components/RxTooltip/index.d.ts +1 -2
- package/lib/components/RxTooltip/index.js +1 -1
- package/lib/components/RxTooltip/src/RxTooltip.d.ts +3 -1
- package/lib/components/RxTooltip/src/RxTooltip.vue.d.ts +1 -0
- package/lib/components/RxTooltip/src/hooks/useBase.d.ts +1 -0
- package/lib/components/index.d.ts +8 -0
- package/lib/components/index.js +1 -1
- package/lib/utils/useTextOverflow.js +6 -2
- package/package.json +29 -29
- package/theme-chalk/components-style.css +2 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/rx-date-picker.css +1 -1
- package/theme-chalk/rx-drop-down-item.css +1 -0
- package/theme-chalk/rx-drop-down-menu.css +0 -0
- package/theme-chalk/rx-drop-down.css +0 -0
- package/theme-chalk/rx-form-plus-beta.css +0 -0
- package/theme-chalk/rx-form-select.css +0 -0
- package/theme-chalk/rx-popover.css +0 -0
- package/theme-chalk/rx-preview-assets.css +1 -0
- package/theme-chalk/rx-radio-button.css +1 -0
- package/theme-chalk/rx-radio.css +1 -1
- package/theme-chalk/rx-super-condition.css +0 -0
- package/theme-chalk/rx-tab-pane.css +0 -0
- package/theme-chalk/rx-tabs.css +1 -0
- package/theme-chalk/rx-transfer-plus.css +1 -0
- package/theme-chalk/rx-transfer.css +1 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
4
|
+
default: any;
|
|
5
|
+
};
|
|
6
|
+
rxFormSelectOptions: {
|
|
7
|
+
type: import("vue").PropType<import("./RxFormSelect").RxFormSelectOptionsType[]>;
|
|
8
|
+
default: any[];
|
|
9
|
+
};
|
|
10
|
+
popoerConfig: {
|
|
11
|
+
type: import("vue").PropType<import("./RxFormSelect").RxFormSelectPoperConfigType>;
|
|
12
|
+
default: {
|
|
13
|
+
width: number;
|
|
14
|
+
defaultClass: string;
|
|
15
|
+
popperClass: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
toolTipConfig: {
|
|
19
|
+
type: import("vue").PropType<{} & {
|
|
20
|
+
readonly disabled?: boolean;
|
|
21
|
+
readonly onClick?: Function;
|
|
22
|
+
readonly style?: import("vue").StyleValue;
|
|
23
|
+
readonly id?: string;
|
|
24
|
+
readonly popperClass?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | {
|
|
25
|
+
[x: string]: boolean;
|
|
26
|
+
} | (string | {
|
|
27
|
+
[x: string]: boolean;
|
|
28
|
+
} | (string | {
|
|
29
|
+
[x: string]: boolean;
|
|
30
|
+
} | (string | {
|
|
31
|
+
[x: string]: boolean;
|
|
32
|
+
} | (string | {
|
|
33
|
+
[x: string]: boolean;
|
|
34
|
+
} | (string | {
|
|
35
|
+
[x: string]: boolean;
|
|
36
|
+
} | (string | {
|
|
37
|
+
[x: string]: boolean;
|
|
38
|
+
} | (string | {
|
|
39
|
+
[x: string]: boolean;
|
|
40
|
+
} | (string | {
|
|
41
|
+
[x: string]: boolean;
|
|
42
|
+
} | (string | {
|
|
43
|
+
[x: string]: boolean;
|
|
44
|
+
} | (string | any[] | {
|
|
45
|
+
[x: string]: boolean;
|
|
46
|
+
})[])[])[])[])[])[])[])[])[])[]>, unknown, unknown>;
|
|
47
|
+
readonly popperOptions?: unknown;
|
|
48
|
+
readonly zIndex?: number;
|
|
49
|
+
readonly onBlur?: Function;
|
|
50
|
+
readonly onFocus?: Function;
|
|
51
|
+
readonly onMouseleave?: Function;
|
|
52
|
+
readonly onMouseenter?: Function;
|
|
53
|
+
readonly onKeydown?: Function;
|
|
54
|
+
readonly visible?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<boolean>, unknown, unknown>;
|
|
55
|
+
readonly effect?: string;
|
|
56
|
+
readonly teleported?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
57
|
+
readonly persistent?: boolean;
|
|
58
|
+
openDelay?: number;
|
|
59
|
+
visibleArrow?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
60
|
+
readonly hideAfter?: number;
|
|
61
|
+
showArrow?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
62
|
+
readonly appendTo?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
63
|
+
readonly content?: string;
|
|
64
|
+
readonly rawContent?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
65
|
+
readonly ariaLabel?: string;
|
|
66
|
+
readonly transition?: string;
|
|
67
|
+
readonly className?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | {
|
|
68
|
+
[x: string]: boolean;
|
|
69
|
+
} | (string | {
|
|
70
|
+
[x: string]: boolean;
|
|
71
|
+
} | (string | {
|
|
72
|
+
[x: string]: boolean;
|
|
73
|
+
} | (string | {
|
|
74
|
+
[x: string]: boolean;
|
|
75
|
+
} | (string | {
|
|
76
|
+
[x: string]: boolean;
|
|
77
|
+
} | (string | {
|
|
78
|
+
[x: string]: boolean;
|
|
79
|
+
} | (string | {
|
|
80
|
+
[x: string]: boolean;
|
|
81
|
+
} | (string | {
|
|
82
|
+
[x: string]: boolean;
|
|
83
|
+
} | (string | {
|
|
84
|
+
[x: string]: boolean;
|
|
85
|
+
} | (string | {
|
|
86
|
+
[x: string]: boolean;
|
|
87
|
+
} | (string | any[] | {
|
|
88
|
+
[x: string]: boolean;
|
|
89
|
+
})[])[])[])[])[])[])[])[])[])[]>, unknown, unknown>;
|
|
90
|
+
readonly enterable?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
91
|
+
readonly pure?: boolean;
|
|
92
|
+
readonly popperStyle?: import("vue").StyleValue;
|
|
93
|
+
readonly referenceEl?: HTMLElement;
|
|
94
|
+
readonly stopPopperMouseEvent?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
95
|
+
readonly boundariesPadding?: number;
|
|
96
|
+
readonly fallbackPlacements?: import("element-plus").Placement;
|
|
97
|
+
readonly gpuAcceleration?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
98
|
+
readonly offset?: number;
|
|
99
|
+
readonly placement?: import("element-plus/es/utils").BuildPropType<StringConstructor, import("element-plus").Placement, unknown>;
|
|
100
|
+
readonly strategy?: import("element-plus/es/utils").BuildPropType<StringConstructor, "fixed" | "absolute", unknown>;
|
|
101
|
+
readonly showAfter?: number;
|
|
102
|
+
readonly trigger?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<"focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]>, unknown, unknown>;
|
|
103
|
+
readonly virtualRef?: import("element-plus").Measurable;
|
|
104
|
+
readonly virtualTriggering?: boolean;
|
|
105
|
+
readonly onContextmenu?: Function;
|
|
106
|
+
readonly open?: boolean;
|
|
107
|
+
} & import("rx-compo/es/components/RxTooltip").ToolTipScrollbarCustomType>;
|
|
108
|
+
default: {
|
|
109
|
+
placement: string;
|
|
110
|
+
teleported: boolean;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
vagueSearchConfig: {
|
|
114
|
+
type: import("vue").PropType<import("./RxFormSelect").RxVagueSearchConfigType>;
|
|
115
|
+
default: {
|
|
116
|
+
showNameKey: string[];
|
|
117
|
+
isTree: boolean;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
multiple: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
}, {
|
|
125
|
+
defaultSlotPopoverRef: import("vue").Ref<any>;
|
|
126
|
+
defaultSlotPopoverHeight: import("vue").Ref<number>;
|
|
127
|
+
rxToolTipConfig: import("vue").Ref<any>;
|
|
128
|
+
isOverflowed: import("vue").Ref<boolean>;
|
|
129
|
+
searchStrRef: import("vue").Ref<string>;
|
|
130
|
+
rxFormSelectOptionsLocal: import("vue").Ref<{
|
|
131
|
+
label: string;
|
|
132
|
+
value: [string, number, boolean, object];
|
|
133
|
+
disabled: boolean;
|
|
134
|
+
defaultSlots: Function;
|
|
135
|
+
}[]>;
|
|
136
|
+
selectValue: import("vue").Ref<Map<any, any>>;
|
|
137
|
+
selectValueSize: import("vue").ComputedRef<number>;
|
|
138
|
+
setItemRef: (el: any, key: any) => void;
|
|
139
|
+
handleAfterEnter: () => void;
|
|
140
|
+
handleMouseenter: (key: any) => void;
|
|
141
|
+
rxToolTipSetItem: (el: any, key: any) => void;
|
|
142
|
+
getRxToolTipItemsRef: () => Map<any, any>;
|
|
143
|
+
handleClick: (item: import("./RxFormSelect").RxFormSelectOptionsType, index: number) => void;
|
|
144
|
+
controlSelectValue: () => Map<any, any>;
|
|
145
|
+
handleClear: () => void;
|
|
146
|
+
getIconStyle: (item: import("./RxFormSelect").RxFormSelectOptionsType) => "#999999" | "#3370FF" | "#5C6781";
|
|
147
|
+
getOptionStyle: (item: import("./RxFormSelect").RxFormSelectOptionsType) => string;
|
|
148
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
149
|
+
modelValue: {
|
|
150
|
+
type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
|
|
151
|
+
default: any;
|
|
152
|
+
};
|
|
153
|
+
rxFormSelectOptions: {
|
|
154
|
+
type: import("vue").PropType<import("./RxFormSelect").RxFormSelectOptionsType[]>;
|
|
155
|
+
default: any[];
|
|
156
|
+
};
|
|
157
|
+
popoerConfig: {
|
|
158
|
+
type: import("vue").PropType<import("./RxFormSelect").RxFormSelectPoperConfigType>;
|
|
159
|
+
default: {
|
|
160
|
+
width: number;
|
|
161
|
+
defaultClass: string;
|
|
162
|
+
popperClass: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
toolTipConfig: {
|
|
166
|
+
type: import("vue").PropType<{} & {
|
|
167
|
+
readonly disabled?: boolean;
|
|
168
|
+
readonly onClick?: Function;
|
|
169
|
+
readonly style?: import("vue").StyleValue;
|
|
170
|
+
readonly id?: string;
|
|
171
|
+
readonly popperClass?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | {
|
|
172
|
+
[x: string]: boolean;
|
|
173
|
+
} | (string | {
|
|
174
|
+
[x: string]: boolean;
|
|
175
|
+
} | (string | {
|
|
176
|
+
[x: string]: boolean;
|
|
177
|
+
} | (string | {
|
|
178
|
+
[x: string]: boolean;
|
|
179
|
+
} | (string | {
|
|
180
|
+
[x: string]: boolean;
|
|
181
|
+
} | (string | {
|
|
182
|
+
[x: string]: boolean;
|
|
183
|
+
} | (string | {
|
|
184
|
+
[x: string]: boolean;
|
|
185
|
+
} | (string | {
|
|
186
|
+
[x: string]: boolean;
|
|
187
|
+
} | (string | {
|
|
188
|
+
[x: string]: boolean;
|
|
189
|
+
} | (string | {
|
|
190
|
+
[x: string]: boolean;
|
|
191
|
+
} | (string | any[] | {
|
|
192
|
+
[x: string]: boolean;
|
|
193
|
+
})[])[])[])[])[])[])[])[])[])[]>, unknown, unknown>;
|
|
194
|
+
readonly popperOptions?: unknown;
|
|
195
|
+
readonly zIndex?: number;
|
|
196
|
+
readonly onBlur?: Function;
|
|
197
|
+
readonly onFocus?: Function;
|
|
198
|
+
readonly onMouseleave?: Function;
|
|
199
|
+
readonly onMouseenter?: Function;
|
|
200
|
+
readonly onKeydown?: Function;
|
|
201
|
+
readonly visible?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<boolean>, unknown, unknown>;
|
|
202
|
+
readonly effect?: string;
|
|
203
|
+
readonly teleported?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
204
|
+
readonly persistent?: boolean;
|
|
205
|
+
openDelay?: number;
|
|
206
|
+
visibleArrow?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
207
|
+
readonly hideAfter?: number;
|
|
208
|
+
showArrow?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
209
|
+
readonly appendTo?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
210
|
+
readonly content?: string;
|
|
211
|
+
readonly rawContent?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
212
|
+
readonly ariaLabel?: string;
|
|
213
|
+
readonly transition?: string;
|
|
214
|
+
readonly className?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | {
|
|
215
|
+
[x: string]: boolean;
|
|
216
|
+
} | (string | {
|
|
217
|
+
[x: string]: boolean;
|
|
218
|
+
} | (string | {
|
|
219
|
+
[x: string]: boolean;
|
|
220
|
+
} | (string | {
|
|
221
|
+
[x: string]: boolean;
|
|
222
|
+
} | (string | {
|
|
223
|
+
[x: string]: boolean;
|
|
224
|
+
} | (string | {
|
|
225
|
+
[x: string]: boolean;
|
|
226
|
+
} | (string | {
|
|
227
|
+
[x: string]: boolean;
|
|
228
|
+
} | (string | {
|
|
229
|
+
[x: string]: boolean;
|
|
230
|
+
} | (string | {
|
|
231
|
+
[x: string]: boolean;
|
|
232
|
+
} | (string | {
|
|
233
|
+
[x: string]: boolean;
|
|
234
|
+
} | (string | any[] | {
|
|
235
|
+
[x: string]: boolean;
|
|
236
|
+
})[])[])[])[])[])[])[])[])[])[]>, unknown, unknown>;
|
|
237
|
+
readonly enterable?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
238
|
+
readonly pure?: boolean;
|
|
239
|
+
readonly popperStyle?: import("vue").StyleValue;
|
|
240
|
+
readonly referenceEl?: HTMLElement;
|
|
241
|
+
readonly stopPopperMouseEvent?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
242
|
+
readonly boundariesPadding?: number;
|
|
243
|
+
readonly fallbackPlacements?: import("element-plus").Placement;
|
|
244
|
+
readonly gpuAcceleration?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
245
|
+
readonly offset?: number;
|
|
246
|
+
readonly placement?: import("element-plus/es/utils").BuildPropType<StringConstructor, import("element-plus").Placement, unknown>;
|
|
247
|
+
readonly strategy?: import("element-plus/es/utils").BuildPropType<StringConstructor, "fixed" | "absolute", unknown>;
|
|
248
|
+
readonly showAfter?: number;
|
|
249
|
+
readonly trigger?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<"focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]>, unknown, unknown>;
|
|
250
|
+
readonly virtualRef?: import("element-plus").Measurable;
|
|
251
|
+
readonly virtualTriggering?: boolean;
|
|
252
|
+
readonly onContextmenu?: Function;
|
|
253
|
+
readonly open?: boolean;
|
|
254
|
+
} & import("rx-compo/es/components/RxTooltip").ToolTipScrollbarCustomType>;
|
|
255
|
+
default: {
|
|
256
|
+
placement: string;
|
|
257
|
+
teleported: boolean;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
vagueSearchConfig: {
|
|
261
|
+
type: import("vue").PropType<import("./RxFormSelect").RxVagueSearchConfigType>;
|
|
262
|
+
default: {
|
|
263
|
+
showNameKey: string[];
|
|
264
|
+
isTree: boolean;
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
multiple: {
|
|
268
|
+
type: BooleanConstructor;
|
|
269
|
+
default: boolean;
|
|
270
|
+
};
|
|
271
|
+
}>>, {
|
|
272
|
+
modelValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
273
|
+
multiple: boolean;
|
|
274
|
+
toolTipConfig: {
|
|
275
|
+
placement: string;
|
|
276
|
+
teleported: boolean;
|
|
277
|
+
};
|
|
278
|
+
rxFormSelectOptions: import("./RxFormSelect").RxFormSelectOptionsType[];
|
|
279
|
+
popoerConfig: import("./RxFormSelect").RxFormSelectPoperConfigType;
|
|
280
|
+
vagueSearchConfig: import("./RxFormSelect").RxVagueSearchConfigType;
|
|
281
|
+
}>;
|
|
282
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import type { RxFormSelectPropsType, RxFormSelectOptionsType } from '../RxFormSelect';
|
|
3
|
+
export declare function useController(updateRxToolTipConfig: Function, updatePopoverConfig: Function, props: RxFormSelectPropsType, getItemsRef: Function, getRxToolTipItemsRef: Function, searchStrRef: Ref<String>, copyList: Function, FilterDataByStr: Function, controlSelectValue: Function): {
|
|
4
|
+
isOverflowed: Ref<boolean>;
|
|
5
|
+
handleMouseenter: (key: any) => void;
|
|
6
|
+
handleAfterEnter: () => void;
|
|
7
|
+
getIconStyle: (item: RxFormSelectOptionsType) => "#999999" | "#3370FF" | "#5C6781";
|
|
8
|
+
getOptionStyle: (item: RxFormSelectOptionsType) => string;
|
|
9
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const useFormSelect: () => {
|
|
2
|
+
rxFormSelectOptionsLocal: import("vue").Ref<{
|
|
3
|
+
label: string;
|
|
4
|
+
value: [string, number, boolean, object];
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
defaultSlots: Function;
|
|
7
|
+
}[]>;
|
|
8
|
+
setItemRef: (el: any, key: any) => void;
|
|
9
|
+
getItemsRef: () => Map<any, any>;
|
|
10
|
+
rxToolTipSetItem: (el: any, key: any) => void;
|
|
11
|
+
getRxToolTipItemsRef: () => Map<any, any>;
|
|
12
|
+
handleClearMap: () => void;
|
|
13
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import type { RxFormSelectPropsType, RxFormSelectOptionsType } from '../RxFormSelect';
|
|
3
|
+
export declare const useSelectValue: (props: RxFormSelectPropsType, modelValueLocal: Ref<any>) => {
|
|
4
|
+
selectValue: Ref<Map<any, any>>;
|
|
5
|
+
selectValueSize: import("vue").ComputedRef<number>;
|
|
6
|
+
controlSelectValue: () => Map<any, any>;
|
|
7
|
+
handleClick: (item: RxFormSelectOptionsType, index: number) => void;
|
|
8
|
+
handleClear: () => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function useVagueSearch(listSource: any, listSourceCopy: any, isTree: boolean, keys: string[]): {
|
|
2
|
+
checkKeys: (i: any) => boolean | [number, number];
|
|
3
|
+
clearSearchStr: () => void;
|
|
4
|
+
copyList: () => void;
|
|
5
|
+
FilterDataByStr: () => void;
|
|
6
|
+
searchStrRef: import("vue").Ref<string>;
|
|
7
|
+
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { RxOptionPropsType } from './src/RxOption';
|
|
2
1
|
declare const RxOption: any;
|
|
3
2
|
export { RxOption };
|
|
4
|
-
export type { RxOptionPropsType };
|
|
5
3
|
export default RxOption;
|
|
4
|
+
export type { RxOptionProps, RxOptionPropsType, RxOptionComponent, RxOptionInstance } from './src/RxOption';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import type { ExtractPropTypes } from 'vue';
|
|
1
|
+
import type { ExtractPropTypes, DefineComponent } from 'vue';
|
|
2
2
|
export declare const RxOptionProps: any;
|
|
3
3
|
export declare type RxOptionPropsType = ExtractPropTypes<typeof RxOptionProps>;
|
|
4
|
+
export declare type RxOptionComponent = DefineComponent<typeof RxOptionProps>;
|
|
5
|
+
export declare type RxOptionInstance = InstanceType<DefineComponent<typeof RxOptionProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{withInstall as e}from"rx-compo/es/utils/with-install";import{defineComponent as o,resolveComponent as r,openBlock as t,createBlock as s,normalizeProps as n,guardReactiveProps as p,createSlots as l,withCtx as f,renderSlot as a}from"vue";import{ElPopover as m}from"element-plus";var c=o({name:"RxPopover",components:{ElPopover:m},props:{},setup:()=>({})});c.render=function(e,o,m,c,u,i){const v=r("el-popover");return t(),s(v,n(p(e.$attrs)),l({_:2},[e.$slots.default?{name:"default",fn:f((()=>[a(e.$slots,"default")]))}:void 0,e.$slots.reference?{name:"reference",fn:f((()=>[a(e.$slots,"reference")]))}:void 0]),1040)},c.__file="packages/components/RxPopover/src/RxPopover.vue";const u=e(c);export{u as RxPopover,u as default};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ExtractPropTypes, DefineComponent } from 'vue';
|
|
2
|
+
export declare const RxPopoverProps: {};
|
|
3
|
+
export declare type RxPopoverPropsType = ExtractPropTypes<typeof RxPopoverProps>;
|
|
4
|
+
export declare type RxPopoverComponent = DefineComponent<typeof RxPopoverProps>;
|
|
5
|
+
export declare type RxPopoverInstance = InstanceType<DefineComponent<typeof RxPopoverProps>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
2
|
+
[x: string]: unknown;
|
|
3
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
|
4
|
+
[x: string]: unknown;
|
|
5
|
+
}>>>>, {
|
|
6
|
+
[x: number]: string;
|
|
7
|
+
} | {}>;
|
|
8
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const RxRadio: any;
|
|
2
2
|
export { RxRadio };
|
|
3
3
|
export default RxRadio;
|
|
4
|
-
export type {
|
|
4
|
+
export type { RxRadioProps, RxRadioPropsType, RxRadioComponent, RxRadioInstance } from './src/RxRadio';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { DefineComponent } from 'vue';
|
|
1
|
+
import type { ExtractPropTypes, DefineComponent } from 'vue';
|
|
3
2
|
export declare const RxRadioProps: {
|
|
4
3
|
modelValue: {
|
|
5
4
|
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
@@ -10,6 +9,6 @@ export declare const RxRadioProps: {
|
|
|
10
9
|
default: any;
|
|
11
10
|
};
|
|
12
11
|
};
|
|
13
|
-
export declare type RxRadioPropsType =
|
|
14
|
-
export declare type
|
|
15
|
-
export declare type
|
|
12
|
+
export declare type RxRadioPropsType = ExtractPropTypes<typeof RxRadioProps>;
|
|
13
|
+
export declare type RxRadioComponent = DefineComponent<typeof RxRadioProps>;
|
|
14
|
+
export declare type RxRadioInstance = InstanceType<DefineComponent<typeof RxRadioProps>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const RxRadioButton: any;
|
|
2
2
|
export { RxRadioButton };
|
|
3
3
|
export default RxRadioButton;
|
|
4
|
-
export type {
|
|
4
|
+
export type { RxRadioButtonProps, RxRadioButtonPropsType, RxRadioButtonComponent, RxRadioButtonInstance } from './src/RxRadioButton';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import { DefineComponent } from 'vue';
|
|
1
|
+
import type { ExtractPropTypes, DefineComponent } from 'vue';
|
|
3
2
|
export declare const RxRadioButtonProps: {
|
|
4
3
|
modelValue: {
|
|
5
4
|
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
@@ -10,6 +9,6 @@ export declare const RxRadioButtonProps: {
|
|
|
10
9
|
default: any;
|
|
11
10
|
};
|
|
12
11
|
};
|
|
13
|
-
export declare type RxRadioButtonPropsType =
|
|
14
|
-
export declare type
|
|
15
|
-
export declare type
|
|
12
|
+
export declare type RxRadioButtonPropsType = ExtractPropTypes<typeof RxRadioButtonProps>;
|
|
13
|
+
export declare type RxRadioButtonComponent = DefineComponent<typeof RxRadioButtonProps>;
|
|
14
|
+
export declare type RxRadioButtonInstance = InstanceType<DefineComponent<typeof RxRadioButtonProps>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const RxRadioGroup: any;
|
|
2
2
|
export { RxRadioGroup };
|
|
3
3
|
export default RxRadioGroup;
|
|
4
|
-
export type { RxRadioGroupPropsType, RxRadioGroupInstance, RxRadioGroupComponent } from './src/RxRadioGroup';
|
|
4
|
+
export type { RxRadioGroupProps, RxRadioGroupPropsType, RxRadioGroupInstance, RxRadioGroupComponent } from './src/RxRadioGroup';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{withInstall as o}from"rx-compo/es/utils/with-install";import{defineComponent as t,resolveComponent as e,openBlock as
|
|
1
|
+
import{withInstall as o}from"rx-compo/es/utils/with-install";import{defineComponent as t,resolveComponent as e,openBlock as l,createBlock as r,normalizeProps as i,mergeProps as n,createSlots as s,renderList as p,withCtx as a,renderSlot as u,guardReactiveProps as m,computed as d,ref as c,nextTick as f,createCommentVNode as x,createElementBlock as R,Fragment as T,createVNode as g,normalizeClass as y,resolveDynamicComponent as h,createElementVNode as C,normalizeStyle as b,createTextVNode as O,toDisplayString as v}from"vue";import{useVModel as S}from"@vueuse/core";import{ElRadioGroup as w,ElRow as $,ElCol as G}from"element-plus";import{RxTooltip as _}from"rx-compo/es/components/RxTooltip";import{RxScrollbar as k}from"rx-compo/es/components/RxScrollbar";import{IxPropTypes as B}from"rx-compo/es/utils";import{RxRadio as I}from"rx-compo/es/components/RxRadio";import{RxRadioButton as j}from"rx-compo/es/components/RxRadioButton";import{useTextOverflow as V}from"rx-compo/es/utils/useTextOverflow";const M={modelValue:{type:[String,Number,Boolean],default:!1},rxRadioGroupOptions:{type:Array,default:[]},toolTip:{type:Boolean,default:!0},toolTipFormatter:{type:Function,default:null},toolTipConfig:{type:Object,default:{placement:"top"}},gutter:B.number,justify:{type:String,default:"start"},baseColProps:{type:Object,default:()=>({xl:4,lg:6,md:8,sm:12,xs:24})},isButton:B.bool.def(!1),rxRadioAttr:{type:Object,default:{}}};var F=t({name:"RxRadioComponents",components:{RxRadio:I,RxRadioButton:j},setup:(o,{slots:t})=>({rxRadioSlots:Object.keys(t)})});F.render=function(o,t,d,c,f,x){const R=e("rx-radio-button"),T=e("rx-radio");return o.$attrs.isButton?(l(),r(R,i(n({key:0},o.$attrs.isButton)),s({_:2},[p(o.rxRadioSlots,(t=>({name:t,fn:a((e=>[u(o.$slots,`${t}`,i(m(e)))]))})))]),1040)):(l(),r(T,i(n({key:1},o.$attrs)),s({_:2},[p(o.rxRadioSlots,(t=>({name:t,fn:a((e=>[u(o.$slots,`${t}`,i(m(e)))]))})))]),1040))},F.__file="packages/components/RxRadioGroup/components/RxRadioComponents.vue";var E=t({name:"RxRadioGroup",components:{ElRadioGroup:w,ElRow:$,ElCol:G,RxRadioComponents:F,RxTooltip:_,RxScrollbar:k},props:M,setup(o,{emit:t}){const e=S(o,"modelValue",t),{rxRadioGroupOptionsComputed:l,rxToolTipSetItem:r,getRxToolTipItemsRef:i,setItemRef:n,getItemsRef:s}=function(o,t){const e=d((()=>o.rxRadioGroupOptions||[])),l=new Map,r=new Map;return{checkboxGroupValue:t,itemsRef:r,rxRadioGroupOptionsComputed:e,setItemRef:(o,t)=>{o&&r.set(t,o)},rxToolTipSetItem:(o,t)=>{o&&l.set(t,o)},getRxToolTipItemsRef:()=>l,getItemsRef:()=>r}}(o,e),{getRxToolTipConfig:p,updateRxToolTipConfig:a}=function(o){const t=c();return{getRxToolTipConfig:()=>t.value,updateRxToolTipConfig:function(e){const{toolTipConfig:l}=o,r=e.getBoundingClientRect(),i={width:(null==l?void 0:l.tooltipWidth)?l.tooltipWidth:`${null==r?void 0:r.width}px`,maxHeight:(null==l?void 0:l.maxHeight)?l.maxHeight:"80px"};t.value=Object.assign(Object.assign({},l),{style:i})}}}(o),{isOverflowed:u,componentsSwitch:m,handleMouseenter:x}=function(o,t,e,l){const{isOverflowed:r,checkOverflowCustom:i}=V("RxRadio"),n=d((()=>o.toolTip&&r.value));return{isOverflowed:r,componentsSwitch:n,handleMouseenter:function(r){if(!o.toolTip)return;const n=e().get(r).$el.getElementsByClassName("el-radio__label")[0];i(n),f((()=>{l().get(r).rxToolTipRef.onOpen(),t(n)}))}}}(o,a,s,i);return{rxRadioGroupValue:e,rxRadioGroupOptionsComputed:l,isOverflowed:u,componentsSwitch:m,getRxToolTipConfig:p,rxToolTipSetItem:r,setItemRef:n,handleMouseenter:x}}});E.render=function(o,t,s,d,c,f){const S=e("RxRadioComponents"),w=e("rx-scrollbar"),$=e("rx-tooltip"),G=e("el-col"),_=e("el-row"),k=e("el-radio-group");return l(),r(k,n({...o.$attrs,...o.$props},{modelValue:o.rxRadioGroupValue,"onUpdate:modelValue":t[0]||(t[0]=t=>o.rxRadioGroupValue=t),class:"rx-radio-group"}),{default:a((()=>[x(" 模板默认插槽 "),o.$slots.default?u(o.$slots,"default",{key:0}):(l(),R(T,{key:1},[x(" 配置 "),g(_,{gutter:o.gutter,type:"flex",class:y(`justify-${o.justify}`)},{default:a((()=>[(l(!0),R(T,null,p(o.rxRadioGroupOptionsComputed,(t=>(l(),r(G,n({key:t.label,ref_for:!0,ref:e=>o.setItemRef(e,t.label),style:`${t.colStyle||""}`,class:`${t.colClass||""}`},t.colProps||o.baseColProps),{default:a((()=>[x(" 溢出隐藏 "),g($,n({ref_for:!0,ref:e=>o.rxToolTipSetItem(e,t.label)},o.getRxToolTipConfig(),{disabled:!o.componentsSwitch}),{content:a((()=>[x(" checkBoxOptions[index].slots options可自定义配置h函数模板 "),t.toolTipSlots?(l(),r(h(t.toolTipSlots.call(null,t)),i(n({key:0},t)),null,16)):o.toolTipFormatter?(l(),R(T,{key:1},[x(" props toolTipFormatter 通配h函数模板 "),(l(),r(h(o.toolTipFormatter.call(null,t)),i(m(t)),null,16))],2112)):(l(),R(T,{key:2},[x(" 默认渲染模板 "),C("div",{style:b(o.getRxToolTipConfig().style)},[g(w,{"max-height":o.getRxToolTipConfig().style.maxHeight},{default:a((()=>[O(v(t?.toolTipContent||t?.label),1)])),_:2},1032,["max-height"])],4)],2112))])),default:a((()=>[g(S,n({...o.rxRadioAttr,...t},{isButton:o.isButton,onMouseenter:e=>o.handleMouseenter(t.label)}),null,16,["isButton","onMouseenter"])])),_:2},1040,["disabled"])])),_:2},1040,["style","class"])))),128))])),_:1},8,["gutter","class"])],64))])),_:3},16,["modelValue"])},E.__file="packages/components/RxRadioGroup/src/RxRadioGroup.vue";const H=o(E);export{H as RxRadioGroup,H as default};
|
|
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: import("vue").PropType<import("./RxRadioGroup").RadioType[]>;
|
|
8
8
|
default: any[];
|
|
9
9
|
};
|
|
10
|
+
toolTip: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
10
14
|
toolTipFormatter: {
|
|
11
15
|
type: FunctionConstructor;
|
|
12
16
|
default: any;
|
|
@@ -133,9 +137,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
133
137
|
rxRadioGroupValue: import("vue").Ref<string | number | boolean> | import("vue").WritableComputedRef<string | number | boolean>;
|
|
134
138
|
rxRadioGroupOptionsComputed: import("vue").ComputedRef<import("./RxRadioGroup").RadioType[]>;
|
|
135
139
|
isOverflowed: import("vue").Ref<boolean>;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
componentsSwitch: import("vue").ComputedRef<boolean>;
|
|
141
|
+
getRxToolTipConfig: () => any;
|
|
142
|
+
rxToolTipSetItem: (el: Element, key: string) => void;
|
|
143
|
+
setItemRef: (el: any, key: string) => void;
|
|
144
|
+
handleMouseenter: (key: string) => void;
|
|
139
145
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
140
146
|
modelValue: {
|
|
141
147
|
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
@@ -145,6 +151,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
145
151
|
type: import("vue").PropType<import("./RxRadioGroup").RadioType[]>;
|
|
146
152
|
default: any[];
|
|
147
153
|
};
|
|
154
|
+
toolTip: {
|
|
155
|
+
type: BooleanConstructor;
|
|
156
|
+
default: boolean;
|
|
157
|
+
};
|
|
148
158
|
toolTipFormatter: {
|
|
149
159
|
type: FunctionConstructor;
|
|
150
160
|
default: any;
|
|
@@ -269,6 +279,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
269
279
|
};
|
|
270
280
|
}>>, {
|
|
271
281
|
modelValue: string | number | boolean;
|
|
282
|
+
toolTip: boolean;
|
|
272
283
|
toolTipConfig: {
|
|
273
284
|
placement: string;
|
|
274
285
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function useController(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
handleMouseenter: (
|
|
1
|
+
import type { RxRadioGroupPropsType } from 'rx-compo/es/components';
|
|
2
|
+
export declare function useController(props: RxRadioGroupPropsType, updateRxToolTipConfig: Function, getItemsRef: Function, getRxToolTipItemsRef: Function): {
|
|
3
|
+
isOverflowed: import("vue").Ref<boolean>;
|
|
4
|
+
componentsSwitch: import("vue").ComputedRef<boolean>;
|
|
5
|
+
handleMouseenter: (key: string) => void;
|
|
6
6
|
};
|
|
@@ -2,7 +2,10 @@ import { Ref } from 'vue';
|
|
|
2
2
|
import { RxRadioGroupPropsType } from '../RxRadioGroup';
|
|
3
3
|
export declare function useRadioGroup(props: RxRadioGroupPropsType, checkboxGroupValue: Ref<any>): {
|
|
4
4
|
checkboxGroupValue: Ref<any>;
|
|
5
|
-
itemsRef: any
|
|
5
|
+
itemsRef: Map<any, any>;
|
|
6
6
|
rxRadioGroupOptionsComputed: import("vue").ComputedRef<import("../RxRadioGroup").RadioType[]>;
|
|
7
|
-
setItemRef: (el: any) => void;
|
|
7
|
+
setItemRef: (el: any, key: string) => void;
|
|
8
|
+
rxToolTipSetItem: (el: Element, key: string) => void;
|
|
9
|
+
getRxToolTipItemsRef: () => Map<any, any>;
|
|
10
|
+
getItemsRef: () => Map<any, any>;
|
|
8
11
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import type { ExtractPropTypes } from 'vue';
|
|
1
|
+
import type { ExtractPropTypes, DefineComponent } from 'vue';
|
|
2
2
|
export declare const RxScrollbarProps: {};
|
|
3
3
|
export declare type RxScrollbarPropsType = ExtractPropTypes<typeof RxScrollbarProps>;
|
|
4
|
+
export declare type RxScrollbarComponent = DefineComponent<typeof RxScrollbarProps>;
|
|
5
|
+
export declare type RxScrollbarInstance = InstanceType<DefineComponent<typeof RxScrollbarProps>>;
|
|
@@ -2,4 +2,4 @@ declare const RxSelect: any;
|
|
|
2
2
|
export { RxSelect };
|
|
3
3
|
export default RxSelect;
|
|
4
4
|
export type { RxSelectExpose } from './src/types';
|
|
5
|
-
export type { RxSelectPropsType, RxSelectInstance, RxSelectComponent } from './src/RxSelect';
|
|
5
|
+
export type { RxSelectProps, RxSelectPropsType, RxSelectInstance, RxSelectComponent } from './src/RxSelect';
|
|
@@ -2,4 +2,4 @@ declare const RxSelectPlus: any;
|
|
|
2
2
|
export { RxSelectPlus };
|
|
3
3
|
export default RxSelectPlus;
|
|
4
4
|
export type { RxSelectPlusExpose } from './src/types';
|
|
5
|
-
export type { RxSelectPlusPropsType, RxSelectPlusInstance, RxSelectPlusComponent } from './src/RxSelectPlus';
|
|
5
|
+
export type { RxSelectPlusProps, RxSelectPlusPropsType, RxSelectPlusInstance, RxSelectPlusComponent } from './src/RxSelectPlus';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{withInstall as e}from"rx-compo/es/utils/with-install";import{
|
|
1
|
+
import{withInstall as e}from"rx-compo/es/utils/with-install";import{ref as o,computed as t,nextTick as l,watch as n,defineComponent as i,onMounted as r,resolveComponent as s,openBlock as p,createElementBlock as u,mergeProps as c,createVNode as a,withCtx as f,createSlots as x,renderList as m,renderSlot as d,normalizeProps as T,guardReactiveProps as g,createCommentVNode as v,normalizeStyle as R,createTextVNode as S,toDisplayString as h}from"vue";import{useVModel as C}from"@vueuse/core";import{RxScrollbar as w}from"rx-compo/es/components/RxScrollbar";import{RxTooltip as y}from"rx-compo/es/components/RxTooltip";import{RxSelect as b}from"rx-compo/es/components/RxSelect";import{useTextOverflow as O}from"rx-compo/es/utils/useTextOverflow";import{find as P}from"lodash-es";var M=i({name:"RxSelectPlus",components:{RxSelect:b,RxScrollbar:w,RxTooltip:y},props:{modelValue:{type:[Array,String,Number,Boolean,Object],default:""},toolTip:{type:Boolean,default:!0},toolTipConfig:{type:Object,default:{placement:"top"}},options:{type:Array,default:[]}},setup(e,{attrs:i,slots:s,emit:p,expose:u}){const c=o(),a=o(),f=C(e,"modelValue",p),{isOverflowed:x,componentsSwitch:m,rxToolTipRef:d,handleMouseenter:T}=function(e){const n=o(),{isOverflowed:i,checkOverflowCustom:r}=O("RxSelectPlus"),s=t((()=>e.toolTip&&i.value));return{rxToolTipRef:n,isOverflowed:i,componentsSwitch:s,handleMouseenter:function(e){r(e.target),l((()=>{s.value&&n.value.rxToolTipRef.onOpen()}))}}}(e),{rxToolTipConfig:g,updateRxToolTipConfig:v,getRxToolTipConfig:R}=function(e,t,l){const n=o();return{rxToolTipConfig:n,updateRxToolTipConfig:function(){var t;const{toolTipConfig:i,options:r,modelValue:s}=e,p=l.value.getBoundingClientRect(),u={width:(null==i?void 0:i.tooltipWidth)?i.tooltipWidth:`${null==p?void 0:p.width}px`,maxHeight:(null==i?void 0:i.maxHeight)?i.maxHeight:"80px"},c=o();if(null==i?void 0:i.content){const{content:e}=i;c.value=e}else c.value=null===(t=P(r,(e=>e.value===s)))||void 0===t?void 0:t.label;n.value=Object.assign(Object.assign({},i),{style:u,content:c.value})},getRxToolTipConfig:function(){return n.value}}}(e,0,c),S=Object.keys(s);return r((()=>{!function(e,o){n((()=>e.value),(()=>{l((()=>{o()}))}),{deep:!0,immediate:!0})}(f,v)})),u({rxSelectPlusRef:c,rxSelectRef:a,updateRxToolTipConfig:v,getRxToolTipConfig:R}),{rxToolTipRef:d,rxSelectPlusRef:c,rxSelectRef:a,rxToolTipConfig:g,isOverflowed:x,rxSelectModelPlusValue:f,componentsSwitch:m,selectPlusSlots:S,handleMouseenter:T}}});M.render=function(e,o,t,l,n,i){const r=s("rx-select"),C=s("rx-scrollbar"),w=s("rx-tooltip");return p(),u("div",c({ref:"rxSelectPlusRef"},e.$attrs),[a(w,c({ref:"rxToolTipRef"},e.rxToolTipConfig,{disabled:!e.componentsSwitch}),{default:f((()=>[a(r,c({modelValue:e.rxSelectModelPlusValue,"onUpdate:modelValue":o[0]||(o[0]=o=>e.rxSelectModelPlusValue=o),class:"rx-select",ref:"rxSelectRef"},e.$attrs,{options:e.options,onMouseenter:e.handleMouseenter}),x({_:2},[m(e.selectPlusSlots,(o=>({name:o,fn:f((t=>[d(e.$slots,`${o}`,T(g(t)))]))})))]),1040,["modelValue","options","onMouseenter"])])),content:f((()=>[v(" 自定义tooltip "),e.$slots.rxToolTipSlot?d(e.$slots,"rxToolTipSlot",{key:0}):(p(),u("div",{key:1,style:R(e.rxToolTipConfig.style)},[v(" 默认模板 "),a(C,{"max-height":e.rxToolTipConfig.style.maxHeight},{default:f((()=>[S(h(e.rxToolTipConfig?.content),1)])),_:1},8,["max-height"])],4))])),_:3},16,["disabled"])],16)},M.__file="packages/components/RxSelectPlus/src/RxSelectPlus.vue";const V=e(M);export{V as RxSelectPlus,V as default};
|
|
@@ -106,6 +106,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
106
106
|
default: any[];
|
|
107
107
|
};
|
|
108
108
|
}, {
|
|
109
|
+
rxToolTipRef: import("vue").Ref<any>;
|
|
109
110
|
rxSelectPlusRef: import("vue").Ref<any>;
|
|
110
111
|
rxSelectRef: import("vue").Ref<any>;
|
|
111
112
|
rxToolTipConfig: import("vue").Ref<any>;
|