rx-compo 1.0.55 → 1.0.56
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/RxButton/index.d.ts +1 -1
- package/es/components/RxButton/index.js +1 -1
- package/es/components/RxButton/src/RxButton.d.ts +6 -3
- package/es/components/RxButton/src/RxButton.vue.d.ts +2 -0
- package/es/components/RxCheckbox/index.d.ts +4 -0
- package/es/components/RxCheckbox/index.js +1 -0
- package/es/components/RxCheckbox/src/RxCheckbox.d.ts +9 -0
- package/es/components/RxCheckbox/src/RxCheckbox.vue.d.ts +14 -0
- package/es/components/RxDatePicker/index.d.ts +4 -0
- package/es/components/RxDatePicker/index.js +1 -0
- package/es/components/RxDatePicker/src/RxDatePicker.d.ts +9 -0
- package/es/components/RxInput/index.d.ts +4 -0
- package/es/components/RxInput/index.js +1 -0
- package/es/components/RxInput/src/RxInput.d.ts +21 -0
- package/es/components/RxInput/src/RxInput.vue.d.ts +34 -0
- package/es/components/RxInput/src/hooks/useTotalInput.d.ts +6 -0
- package/es/components/RxOption/index.d.ts +5 -0
- package/es/components/RxOption/index.js +1 -0
- package/es/components/RxOption/src/RxOption.d.ts +3 -0
- package/es/components/RxOption/src/RxOption.vue.d.ts +4 -0
- package/es/components/RxScrollbar/index.d.ts +3 -0
- package/es/components/RxScrollbar/index.js +1 -0
- package/es/components/RxScrollbar/src/RxScrollbar.d.ts +3 -0
- package/es/components/RxScrollbar/src/RxScrollbar.vue.d.ts +8 -0
- package/es/components/RxSelect/index.d.ts +6 -0
- package/es/components/RxSelect/index.js +1 -0
- package/es/components/RxSelect/src/RxSelect.d.ts +14 -0
- package/es/components/RxSelect/src/RxSelect.vue.d.ts +27 -0
- package/es/components/RxSelect/src/hooks/useController.d.ts +1 -0
- package/es/components/RxSelect/src/hooks/useOptionClass.d.ts +6 -0
- package/es/components/RxSelect/src/hooks/useRxSelect.d.ts +6 -0
- package/es/components/RxSelectPlus/index.d.ts +6 -0
- package/es/components/RxSelectPlus/index.js +1 -0
- package/es/components/RxSelectPlus/src/RxSelectPlus.d.ts +252 -0
- package/es/components/RxSelectPlus/src/RxSelectPlus.vue.d.ts +504 -0
- package/es/components/RxSelectPlus/src/hooks/useController.d.ts +2 -0
- package/es/components/RxSelectPlus/src/hooks/useRxSelect.d.ts +6 -0
- package/es/components/RxSuperCondition/index.d.ts +3 -0
- package/es/components/RxSuperCondition/index.js +1 -0
- package/es/components/RxSuperCondition/src/RxSuperCondition.d.ts +50 -0
- package/es/components/RxSuperCondition/src/RxSuperCondition.vue.d.ts +84 -0
- package/es/components/RxSuperCondition/src/components/RxAddConditionButton/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxAddConditionButton/index.vue.d.ts +13 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.vue.d.ts +18 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/chooseDate.vue.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/index.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLess.vue.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLessDisabled.vue.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputMax.vue.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/moreSelect.vue.d.ts +12 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/numberRange.vue.d.ts +10 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/timeRange.vue.d.ts +10 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/totalInput.vue.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/const/index.d.ts +52 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.vue.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.vue.d.ts +32 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/index.vue.d.ts +48 -0
- package/es/components/RxSuperCondition/src/components/RxTemplateList/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxTemplateList/index.vue.d.ts +20 -0
- package/es/components/RxSuperCondition/src/hooks/useConditionContext.d.ts +4 -0
- package/es/components/RxSuperCondition/src/hooks/useContext.d.ts +10 -0
- package/es/components/RxSuperCondition/src/hooks/useControlCondition.d.ts +12 -0
- package/es/components/RxSuperCondition/src/hooks/useControlTemplate.d.ts +20 -0
- package/es/components/RxSuperCondition/src/hooks/useDialog.d.ts +8 -0
- package/es/components/RxSuperCondition/src/hooks/useInit.d.ts +7 -0
- package/es/components/RxSuperCondition/src/hooks/useStorageSevise.d.ts +15 -0
- package/es/components/RxTooltip/index.d.ts +5 -0
- package/es/components/RxTooltip/index.js +1 -0
- package/es/components/RxTooltip/src/RxTooltip.d.ts +4 -0
- package/es/components/RxTooltip/src/RxTooltip.vue.d.ts +10 -0
- package/es/components/RxTooltip/src/hooks/useBase.d.ts +4 -0
- package/es/components/RxTooltip/src/hooks/useController.d.ts +1 -0
- package/es/components/index.d.ts +9 -2
- package/es/components/index.js +1 -1
- package/es/utils/useTextOverflow.d.ts +4 -0
- package/es/utils/useTextOverflow.js +13 -0
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/lib/components/RxButton/index.d.ts +1 -1
- package/lib/components/RxButton/index.js +1 -1
- package/lib/components/RxButton/src/RxButton.d.ts +6 -3
- package/lib/components/RxButton/src/RxButton.vue.d.ts +2 -0
- package/lib/components/RxCheckbox/index.d.ts +4 -0
- package/lib/components/RxCheckbox/index.js +1 -0
- package/lib/components/RxCheckbox/src/RxCheckbox.d.ts +9 -0
- package/lib/components/RxCheckbox/src/RxCheckbox.vue.d.ts +14 -0
- package/lib/components/RxDatePicker/index.d.ts +4 -0
- package/lib/components/RxDatePicker/index.js +1 -0
- package/lib/components/RxDatePicker/src/RxDatePicker.d.ts +9 -0
- package/lib/components/RxInput/index.d.ts +4 -0
- package/lib/components/RxInput/index.js +1 -0
- package/lib/components/RxInput/src/RxInput.d.ts +21 -0
- package/lib/components/RxInput/src/RxInput.vue.d.ts +34 -0
- package/lib/components/RxInput/src/hooks/useTotalInput.d.ts +6 -0
- package/lib/components/RxOption/index.d.ts +5 -0
- package/lib/components/RxOption/index.js +1 -0
- package/lib/components/RxOption/src/RxOption.d.ts +3 -0
- package/lib/components/RxOption/src/RxOption.vue.d.ts +4 -0
- package/lib/components/RxScrollbar/index.d.ts +3 -0
- package/lib/components/RxScrollbar/index.js +1 -0
- package/lib/components/RxScrollbar/src/RxScrollbar.d.ts +3 -0
- package/lib/components/RxScrollbar/src/RxScrollbar.vue.d.ts +8 -0
- package/lib/components/RxSelect/index.d.ts +6 -0
- package/lib/components/RxSelect/index.js +1 -0
- package/lib/components/RxSelect/src/RxSelect.d.ts +14 -0
- package/lib/components/RxSelect/src/RxSelect.vue.d.ts +27 -0
- package/lib/components/RxSelect/src/hooks/useController.d.ts +1 -0
- package/lib/components/RxSelect/src/hooks/useOptionClass.d.ts +6 -0
- package/lib/components/RxSelect/src/hooks/useRxSelect.d.ts +6 -0
- package/lib/components/RxSelectPlus/index.d.ts +6 -0
- package/lib/components/RxSelectPlus/index.js +1 -0
- package/lib/components/RxSelectPlus/src/RxSelectPlus.d.ts +252 -0
- package/lib/components/RxSelectPlus/src/RxSelectPlus.vue.d.ts +504 -0
- package/lib/components/RxSelectPlus/src/hooks/useController.d.ts +2 -0
- package/lib/components/RxSelectPlus/src/hooks/useRxSelect.d.ts +6 -0
- package/lib/components/RxSuperCondition/index.d.ts +3 -0
- package/lib/components/RxSuperCondition/index.js +1 -0
- package/lib/components/RxSuperCondition/src/RxSuperCondition.d.ts +50 -0
- package/lib/components/RxSuperCondition/src/RxSuperCondition.vue.d.ts +84 -0
- package/lib/components/RxSuperCondition/src/components/RxAddConditionButton/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxAddConditionButton/index.vue.d.ts +13 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.vue.d.ts +18 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/chooseDate.vue.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/index.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLess.vue.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLessDisabled.vue.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputMax.vue.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/moreSelect.vue.d.ts +12 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/numberRange.vue.d.ts +10 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/timeRange.vue.d.ts +10 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/totalInput.vue.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/const/index.d.ts +52 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.vue.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.vue.d.ts +32 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/index.vue.d.ts +48 -0
- package/lib/components/RxSuperCondition/src/components/RxTemplateList/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxTemplateList/index.vue.d.ts +20 -0
- package/lib/components/RxSuperCondition/src/hooks/useConditionContext.d.ts +4 -0
- package/lib/components/RxSuperCondition/src/hooks/useContext.d.ts +10 -0
- package/lib/components/RxSuperCondition/src/hooks/useControlCondition.d.ts +12 -0
- package/lib/components/RxSuperCondition/src/hooks/useControlTemplate.d.ts +20 -0
- package/lib/components/RxSuperCondition/src/hooks/useDialog.d.ts +8 -0
- package/lib/components/RxSuperCondition/src/hooks/useInit.d.ts +7 -0
- package/lib/components/RxSuperCondition/src/hooks/useStorageSevise.d.ts +15 -0
- package/lib/components/RxTooltip/index.d.ts +5 -0
- package/lib/components/RxTooltip/index.js +1 -0
- package/lib/components/RxTooltip/src/RxTooltip.d.ts +4 -0
- package/lib/components/RxTooltip/src/RxTooltip.vue.d.ts +10 -0
- package/lib/components/RxTooltip/src/hooks/useBase.d.ts +4 -0
- package/lib/components/RxTooltip/src/hooks/useController.d.ts +1 -0
- package/lib/components/index.d.ts +9 -2
- package/lib/components/index.js +1 -1
- package/lib/utils/useTextOverflow.d.ts +4 -0
- package/lib/utils/useTextOverflow.js +17 -0
- package/package.json +28 -22
- package/theme-chalk/icon.css +1 -1
- package/theme-chalk/index.css +1 -2
- package/theme-chalk/rx-button.css +1 -0
- package/theme-chalk/rx-checkbox.css +1 -0
- package/theme-chalk/rx-input.css +1 -0
- package/theme-chalk/rx-option.css +1 -0
- package/theme-chalk/rx-select.css +1 -0
- package/types/index.d.ts +8 -4
- package/es/components/date/index.d.ts +0 -4
- package/es/components/date/index.js +0 -1
- package/es/components/date/src/date.d.ts +0 -24
- package/es/components/date/src/date.vue.d.ts +0 -32
- package/es/components/icon/index.css +0 -1
- package/es/components/icon/index.d.ts +0 -4
- package/es/components/icon/index.js +0 -1
- package/es/components/icon/src/icon.d.ts +0 -25
- package/es/components/icon/src/icon.vue.d.ts +0 -37
- package/lib/components/date/index.d.ts +0 -4
- package/lib/components/date/index.js +0 -1
- package/lib/components/date/src/date.d.ts +0 -24
- package/lib/components/date/src/date.vue.d.ts +0 -32
- package/lib/components/icon/index.css +0 -1
- package/lib/components/icon/index.d.ts +0 -4
- package/lib/components/icon/index.js +0 -1
- package/lib/components/icon/src/icon.d.ts +0 -25
- package/lib/components/icon/src/icon.vue.d.ts +0 -37
- package/theme-chalk/components-style.css +0 -1
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
titleList: {
|
|
3
|
+
type: import("vue").PropType<any[]>;
|
|
4
|
+
default: () => any[];
|
|
5
|
+
};
|
|
6
|
+
enumList: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
};
|
|
9
|
+
templateList: {
|
|
10
|
+
type: import("vue").PropType<any[]>;
|
|
11
|
+
default: () => any[];
|
|
12
|
+
};
|
|
13
|
+
conditions: {
|
|
14
|
+
type: any;
|
|
15
|
+
default: any;
|
|
16
|
+
};
|
|
17
|
+
localKey: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
deleteTemFunc: {
|
|
22
|
+
type: FunctionConstructor;
|
|
23
|
+
};
|
|
24
|
+
addTemFunc: {
|
|
25
|
+
type: FunctionConstructor;
|
|
26
|
+
};
|
|
27
|
+
submit: {
|
|
28
|
+
type: FunctionConstructor;
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
rules: any;
|
|
32
|
+
addTemplateFormRef: import("vue").Ref<any>;
|
|
33
|
+
addTemplateFormData: import("vue").Ref<{
|
|
34
|
+
name: any;
|
|
35
|
+
uuid: any;
|
|
36
|
+
condition: any;
|
|
37
|
+
}>;
|
|
38
|
+
addTemplateDialogVisible: import("vue").Ref<boolean>;
|
|
39
|
+
templateListLocal: any;
|
|
40
|
+
dialogVisible: import("vue").Ref<boolean>;
|
|
41
|
+
isEmptyCondition: import("vue").ComputedRef<boolean>;
|
|
42
|
+
conditionsLocal: any;
|
|
43
|
+
handleOpenDialog: () => void;
|
|
44
|
+
handleCloseDialog: () => void;
|
|
45
|
+
handleSaveDialog: () => Promise<void>;
|
|
46
|
+
handleCancelDialog: () => void;
|
|
47
|
+
addTemSubmit: () => Promise<void>;
|
|
48
|
+
handleCancelAddTemplate: () => void;
|
|
49
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
+
titleList: {
|
|
51
|
+
type: import("vue").PropType<any[]>;
|
|
52
|
+
default: () => any[];
|
|
53
|
+
};
|
|
54
|
+
enumList: {
|
|
55
|
+
type: ObjectConstructor;
|
|
56
|
+
};
|
|
57
|
+
templateList: {
|
|
58
|
+
type: import("vue").PropType<any[]>;
|
|
59
|
+
default: () => any[];
|
|
60
|
+
};
|
|
61
|
+
conditions: {
|
|
62
|
+
type: any;
|
|
63
|
+
default: any;
|
|
64
|
+
};
|
|
65
|
+
localKey: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
deleteTemFunc: {
|
|
70
|
+
type: FunctionConstructor;
|
|
71
|
+
};
|
|
72
|
+
addTemFunc: {
|
|
73
|
+
type: FunctionConstructor;
|
|
74
|
+
};
|
|
75
|
+
submit: {
|
|
76
|
+
type: FunctionConstructor;
|
|
77
|
+
};
|
|
78
|
+
}>>, {
|
|
79
|
+
conditions: any;
|
|
80
|
+
templateList: any[];
|
|
81
|
+
titleList: any[];
|
|
82
|
+
localKey: string;
|
|
83
|
+
}>;
|
|
84
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
conditions: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
};
|
|
5
|
+
}, {
|
|
6
|
+
addCondition: any;
|
|
7
|
+
addConditionGroup: any;
|
|
8
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
conditions: {
|
|
10
|
+
type: ObjectConstructor;
|
|
11
|
+
};
|
|
12
|
+
}>>, {}>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
logical: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
turnText: import("vue").ComputedRef<"且" | "或">;
|
|
8
|
+
logicalLocal: import("vue").Ref<number> | import("vue").WritableComputedRef<number>;
|
|
9
|
+
handleClickChange: () => void;
|
|
10
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
logical: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
}>>, {
|
|
16
|
+
logical: number;
|
|
17
|
+
}>;
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
valuePass: ArrayConstructor;
|
|
3
|
+
}, {
|
|
4
|
+
inputValue: import("vue").WritableComputedRef<unknown>;
|
|
5
|
+
valuePassLocal: import("vue").Ref<unknown[]> | import("vue").WritableComputedRef<unknown[]>;
|
|
6
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
valuePass: ArrayConstructor;
|
|
8
|
+
}>>, {}>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import chooseDate from './chooseDate.vue';
|
|
2
|
+
import inputLess from './inputLess.vue';
|
|
3
|
+
import inputLessDisabled from './inputLessDisabled.vue';
|
|
4
|
+
import inputMax from './inputMax.vue';
|
|
5
|
+
import moreSelect from './moreSelect.vue';
|
|
6
|
+
import numberRange from './numberRange.vue';
|
|
7
|
+
import timeRange from './timeRange.vue';
|
|
8
|
+
import totalInput from './totalInput.vue';
|
|
9
|
+
export { chooseDate, inputLess, inputLessDisabled, inputMax, moreSelect, numberRange, timeRange, totalInput };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
valuePass: ArrayConstructor;
|
|
3
|
+
}, {
|
|
4
|
+
inputValue: import("vue").WritableComputedRef<unknown>;
|
|
5
|
+
valueLocal: import("vue").Ref<unknown[]> | import("vue").WritableComputedRef<unknown[]>;
|
|
6
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
valuePass: ArrayConstructor;
|
|
8
|
+
}>>, {}>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
valuePass: ArrayConstructor;
|
|
3
|
+
}, {
|
|
4
|
+
inputValue: import("vue").WritableComputedRef<unknown>;
|
|
5
|
+
valueLocal: import("vue").Ref<unknown[]> | import("vue").WritableComputedRef<unknown[]>;
|
|
6
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
valuePass: ArrayConstructor;
|
|
8
|
+
}>>, {}>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
valuePass: ArrayConstructor;
|
|
3
|
+
}, {
|
|
4
|
+
inputValue: import("vue").WritableComputedRef<unknown>;
|
|
5
|
+
valueLocal: import("vue").Ref<unknown[]> | import("vue").WritableComputedRef<unknown[]>;
|
|
6
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
valuePass: ArrayConstructor;
|
|
8
|
+
}>>, {}>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
valuePass: ArrayConstructor;
|
|
3
|
+
condition: ObjectConstructor;
|
|
4
|
+
}, {
|
|
5
|
+
options: import("vue").ComputedRef<any>;
|
|
6
|
+
enumListComputed: any;
|
|
7
|
+
valuePassLocal: import("vue").Ref<unknown[]> | import("vue").WritableComputedRef<unknown[]>;
|
|
8
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
valuePass: ArrayConstructor;
|
|
10
|
+
condition: ObjectConstructor;
|
|
11
|
+
}>>, {}>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
valuePass: ArrayConstructor;
|
|
3
|
+
}, {
|
|
4
|
+
inputValue1: import("vue").WritableComputedRef<unknown>;
|
|
5
|
+
inputValue2: import("vue").WritableComputedRef<unknown>;
|
|
6
|
+
valueLocal: import("vue").Ref<unknown[]> | import("vue").WritableComputedRef<unknown[]>;
|
|
7
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
valuePass: ArrayConstructor;
|
|
9
|
+
}>>, {}>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
valuePass: ArrayConstructor;
|
|
3
|
+
}, {
|
|
4
|
+
inputValue1: import("vue").WritableComputedRef<unknown>;
|
|
5
|
+
inputValue2: import("vue").WritableComputedRef<unknown>;
|
|
6
|
+
valuePassLocal: import("vue").Ref<unknown[]> | import("vue").WritableComputedRef<unknown[]>;
|
|
7
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
|
+
valuePass: ArrayConstructor;
|
|
9
|
+
}>>, {}>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
valuePass: ArrayConstructor;
|
|
3
|
+
}, {
|
|
4
|
+
inputValue: import("vue").WritableComputedRef<unknown>;
|
|
5
|
+
valueLocal: import("vue").Ref<unknown[]> | import("vue").WritableComputedRef<unknown[]>;
|
|
6
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
valuePass: ArrayConstructor;
|
|
8
|
+
}>>, {}>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export declare const symbolConst: {
|
|
2
|
+
value: string;
|
|
3
|
+
label: string;
|
|
4
|
+
}[];
|
|
5
|
+
export declare const stringSymbol: string[];
|
|
6
|
+
export declare const stringSymbolOptions: {
|
|
7
|
+
value: string;
|
|
8
|
+
label: string;
|
|
9
|
+
}[];
|
|
10
|
+
export declare const numberSymbol: string[];
|
|
11
|
+
export declare const numberSymbolOptions: {
|
|
12
|
+
value: string;
|
|
13
|
+
label: string;
|
|
14
|
+
}[];
|
|
15
|
+
export declare const budgetSymbol: string[];
|
|
16
|
+
export declare const budgetSymbolOptions: {
|
|
17
|
+
value: string;
|
|
18
|
+
label: string;
|
|
19
|
+
}[];
|
|
20
|
+
export declare const enumSymbol: string[];
|
|
21
|
+
export declare const enumSymbolOptions: {
|
|
22
|
+
value: string;
|
|
23
|
+
label: string;
|
|
24
|
+
}[];
|
|
25
|
+
export declare const timeSymbol: string[];
|
|
26
|
+
export declare const timeSymbolOptions: {
|
|
27
|
+
value: string;
|
|
28
|
+
label: string;
|
|
29
|
+
}[];
|
|
30
|
+
export declare const optionsHash: {
|
|
31
|
+
string: {
|
|
32
|
+
value: string;
|
|
33
|
+
label: string;
|
|
34
|
+
}[];
|
|
35
|
+
number: {
|
|
36
|
+
value: string;
|
|
37
|
+
label: string;
|
|
38
|
+
}[];
|
|
39
|
+
budget: {
|
|
40
|
+
value: string;
|
|
41
|
+
label: string;
|
|
42
|
+
}[];
|
|
43
|
+
enum: {
|
|
44
|
+
value: string;
|
|
45
|
+
label: string;
|
|
46
|
+
}[];
|
|
47
|
+
time: {
|
|
48
|
+
value: string;
|
|
49
|
+
label: string;
|
|
50
|
+
}[];
|
|
51
|
+
};
|
|
52
|
+
export declare const valueSetEmpty: string[];
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
isGroup: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
};
|
|
5
|
+
conditions: {
|
|
6
|
+
type: ObjectConstructor;
|
|
7
|
+
};
|
|
8
|
+
fatherCondition: {
|
|
9
|
+
type: ObjectConstructor;
|
|
10
|
+
};
|
|
11
|
+
groupIdx: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
handleDel: () => void;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
isGroup: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
};
|
|
20
|
+
conditions: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
};
|
|
23
|
+
fatherCondition: {
|
|
24
|
+
type: ObjectConstructor;
|
|
25
|
+
};
|
|
26
|
+
groupIdx: {
|
|
27
|
+
type: NumberConstructor;
|
|
28
|
+
};
|
|
29
|
+
}>>, {
|
|
30
|
+
isGroup: boolean;
|
|
31
|
+
}>;
|
|
32
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
conditions: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {
|
|
5
|
+
is_group: boolean;
|
|
6
|
+
logical: number;
|
|
7
|
+
uuid: string;
|
|
8
|
+
children: any[];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
isRoot: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
defaullt: boolean;
|
|
14
|
+
};
|
|
15
|
+
fatherCondition: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
};
|
|
18
|
+
groupIdx: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
};
|
|
21
|
+
}, {
|
|
22
|
+
clearCondition: any;
|
|
23
|
+
conditionsLocal: import("vue").Ref<Record<string, any>> | import("vue").WritableComputedRef<Record<string, any>>;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
conditions: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
default: () => {
|
|
28
|
+
is_group: boolean;
|
|
29
|
+
logical: number;
|
|
30
|
+
uuid: string;
|
|
31
|
+
children: any[];
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
isRoot: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
defaullt: boolean;
|
|
37
|
+
};
|
|
38
|
+
fatherCondition: {
|
|
39
|
+
type: ObjectConstructor;
|
|
40
|
+
};
|
|
41
|
+
groupIdx: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
};
|
|
44
|
+
}>>, {
|
|
45
|
+
conditions: Record<string, any>;
|
|
46
|
+
isRoot: boolean;
|
|
47
|
+
}>;
|
|
48
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
templateList: {
|
|
4
|
+
type: PropType<any>;
|
|
5
|
+
default: () => any[];
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
templateParams: any;
|
|
9
|
+
selectTemplate: any;
|
|
10
|
+
delTemplate: any;
|
|
11
|
+
templateListLocal: import("vue").Ref<any> | import("vue").WritableComputedRef<any>;
|
|
12
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
templateList: {
|
|
14
|
+
type: PropType<any>;
|
|
15
|
+
default: () => any[];
|
|
16
|
+
};
|
|
17
|
+
}>>, {
|
|
18
|
+
templateList: any;
|
|
19
|
+
}>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
2
|
+
export interface CreateContextOptions {
|
|
3
|
+
readonly?: boolean;
|
|
4
|
+
createProvider?: boolean;
|
|
5
|
+
native?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function createContext<T>(context: any, key?: InjectionKey<T>, options?: CreateContextOptions): {
|
|
8
|
+
state: any;
|
|
9
|
+
};
|
|
10
|
+
export declare function useContext<T>(key: InjectionKey<T>, native?: boolean): T;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RxSuperConditionPropsType } from 'rx-compo/es/components/RxSuperCondition/src/RxSuperCondition';
|
|
2
|
+
export declare function useControlCondition(props: RxSuperConditionPropsType): {
|
|
3
|
+
isEmptyCondition: import("vue").ComputedRef<boolean>;
|
|
4
|
+
conditionsLocal: any;
|
|
5
|
+
addCondition: (item: any) => void;
|
|
6
|
+
addConditionGroup: (item: any) => void;
|
|
7
|
+
delCondition: (item: any, father: any, index: number) => void;
|
|
8
|
+
delConditionGroup: (item: any, father: any, index: number) => void;
|
|
9
|
+
setCondition: (item: any) => void;
|
|
10
|
+
clearCondition: () => void;
|
|
11
|
+
getCondition: () => any;
|
|
12
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RxSuperConditionPropsType } from '../RxSuperCondition';
|
|
2
|
+
export declare function useControlTemplate(props: RxSuperConditionPropsType, setCondition: (value: any) => void, getCondition: () => any): {
|
|
3
|
+
rules: any;
|
|
4
|
+
addTemplateFormRef: import("vue").Ref<any>;
|
|
5
|
+
addTemplateFormData: import("vue").Ref<{
|
|
6
|
+
name: any;
|
|
7
|
+
uuid: any;
|
|
8
|
+
condition: any;
|
|
9
|
+
}>;
|
|
10
|
+
templateListLocal: any;
|
|
11
|
+
templateParams: import("vue").Ref<{
|
|
12
|
+
loading: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
addTemplateDialogVisible: import("vue").Ref<boolean>;
|
|
15
|
+
addTemplate: () => Promise<void>;
|
|
16
|
+
delTemplate: (item: any, index: number) => Promise<void>;
|
|
17
|
+
selectTemplate: (item: any) => Promise<void>;
|
|
18
|
+
addTemSubmit: () => Promise<void>;
|
|
19
|
+
handleCancelAddTemplate: () => void;
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RxSuperConditionPropsType } from '../RxSuperCondition';
|
|
2
|
+
export declare function useDialog(props: RxSuperConditionPropsType, getCondition: () => any): {
|
|
3
|
+
dialogVisible: import("vue").Ref<boolean>;
|
|
4
|
+
handleOpenDialog: () => void;
|
|
5
|
+
handleCloseDialog: () => void;
|
|
6
|
+
handleSaveDialog: () => Promise<void>;
|
|
7
|
+
handleCancelDialog: () => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RxSuperConditionPropsType } from 'rx-compo/es/components/RxSuperCondition/src/RxSuperCondition';
|
|
2
|
+
export declare function useInit(props: RxSuperConditionPropsType): {
|
|
3
|
+
enumListComputed: import("vue").ComputedRef<Record<string, any>>;
|
|
4
|
+
dataTypeHash: any;
|
|
5
|
+
titleHash: any;
|
|
6
|
+
titleListLocal: any;
|
|
7
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const SessionStorageService: {
|
|
2
|
+
get: (key: string) => any;
|
|
3
|
+
set: (key: string, value: any) => any;
|
|
4
|
+
remove: (key: string) => any;
|
|
5
|
+
clearExcept: (key: string | string[]) => void;
|
|
6
|
+
clearAll: () => void;
|
|
7
|
+
};
|
|
8
|
+
declare const LocalStorageService: {
|
|
9
|
+
get: (key: string) => any;
|
|
10
|
+
set: (key: string, value: any) => any;
|
|
11
|
+
remove: (key: string) => any;
|
|
12
|
+
clearExcept: (key: string | string[]) => void;
|
|
13
|
+
clearAll: () => void;
|
|
14
|
+
};
|
|
15
|
+
export { SessionStorageService, LocalStorageService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("rx-compo/lib/utils/with-install"),e=require("vue"),o=require("element-plus");var n=e.defineComponent({name:"RxTooltip",components:{ElTooltip:o.ElTooltip},props:{},setup(t,{attrs:o}){const{rxToolTipOptions:n,init:r}=function(t,o){const n=e.ref();return{rxToolTipOptions:n,init:function(){const{popperClass:t}=o;n.value=Object.assign(Object.assign({},o),{popperClass:t||"rx-tooltip"})}}}(0,o);return e.onMounted((()=>{!function(t,o,n){e.watch((()=>o),(()=>{e.nextTick((()=>n()))}),{deep:!0,immediate:!0})}(0,o,r)})),{rxToolTipOptions:n}}});n.render=function(t,o,n,r,i,s){const l=e.resolveComponent("el-tooltip");return e.openBlock(),e.createBlock(l,e.normalizeProps(e.guardReactiveProps(t.$attrs)),{default:e.withCtx((()=>[e.renderSlot(t.$slots,"default")])),content:e.withCtx((()=>[e.renderSlot(t.$slots,"content")])),_:3},16)},n.__file="packages/components/RxTooltip/src/RxTooltip.vue";const r=t.withInstall(n);exports.RxTooltip=r,exports.default=r;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
2
|
+
[x: string]: unknown;
|
|
3
|
+
}>>, {
|
|
4
|
+
rxToolTipOptions: import("vue").Ref<any>;
|
|
5
|
+
}, 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<{
|
|
6
|
+
[x: string]: unknown;
|
|
7
|
+
}>>>>, {
|
|
8
|
+
[x: number]: string;
|
|
9
|
+
} | {}>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useController(props: any, attrs: any, init: Function): {};
|
|
@@ -4,6 +4,13 @@ declare const _default: {
|
|
|
4
4
|
install: (app: App<any>) => void;
|
|
5
5
|
};
|
|
6
6
|
export default _default;
|
|
7
|
-
export * from './icon';
|
|
8
|
-
export * from './date';
|
|
9
7
|
export * from './RxButton';
|
|
8
|
+
export * from './RxCheckbox';
|
|
9
|
+
export * from './RxDatePicker';
|
|
10
|
+
export * from './RxInput';
|
|
11
|
+
export * from './RxOption';
|
|
12
|
+
export * from './RxSelect';
|
|
13
|
+
export * from './RxTooltip';
|
|
14
|
+
export * from './RxSelectPlus';
|
|
15
|
+
export * from './RxScrollbar';
|
|
16
|
+
export * from './RxSuperCondition';
|
package/lib/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("element-plus");require("element-plus/dist/index.css");var t=require("@element-plus/icons-vue"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("element-plus");require("element-plus/dist/index.css");var t=require("@element-plus/icons-vue"),r=require("./RxButton"),n=require("./RxCheckbox"),u=require("./RxDatePicker"),o=require("./RxInput"),f=require("./RxOption"),c=require("./RxSelect"),a=require("./RxTooltip"),i=require("./RxSelectPlus"),s=require("./RxScrollbar"),l=require("./RxSuperCondition");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var b=p(e),O=d(t),y=p(r),x=p(n),j=p(u),P=p(o),h=p(f),m=p(c),g=p(a),k=p(i),q=p(s),E=p(l);const w=[y.default,x.default,j.default,P.default,h.default,m.default,g.default,k.default,q.default,E.default];var R={install:function(e){w.forEach((t=>{e.component(t.name,t)})),e.use(b.default),Object.entries(O).forEach((([t,r])=>{e.component(t,r)}))}};exports.default=R,Object.keys(r).forEach((function(e){"default"===e||exports.hasOwnProperty(e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})})),Object.keys(n).forEach((function(e){"default"===e||exports.hasOwnProperty(e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})})),Object.keys(u).forEach((function(e){"default"===e||exports.hasOwnProperty(e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return u[e]}})})),Object.keys(o).forEach((function(e){"default"===e||exports.hasOwnProperty(e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return o[e]}})})),Object.keys(f).forEach((function(e){"default"===e||exports.hasOwnProperty(e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return f[e]}})})),Object.keys(c).forEach((function(e){"default"===e||exports.hasOwnProperty(e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return c[e]}})})),Object.keys(a).forEach((function(e){"default"===e||exports.hasOwnProperty(e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return a[e]}})})),Object.keys(i).forEach((function(e){"default"===e||exports.hasOwnProperty(e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return i[e]}})})),Object.keys(s).forEach((function(e){"default"===e||exports.hasOwnProperty(e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return s[e]}})})),Object.keys(l).forEach((function(e){"default"===e||exports.hasOwnProperty(e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return l[e]}})}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useTextOverflow = void 0;
|
|
4
|
+
const vue_1 = require("vue");
|
|
5
|
+
function useTextOverflow(componentsName) {
|
|
6
|
+
const isOverflowed = (0, vue_1.ref)(false);
|
|
7
|
+
function checkOverflowCustom(node) {
|
|
8
|
+
switch (componentsName) {
|
|
9
|
+
case 'RxSelectPlus':
|
|
10
|
+
const textElement = node.getElementsByClassName('el-input__inner')[0];
|
|
11
|
+
isOverflowed.value = textElement.scrollWidth > textElement.offsetWidth;
|
|
12
|
+
break;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return { isOverflowed, checkOverflowCustom };
|
|
16
|
+
}
|
|
17
|
+
exports.useTextOverflow = useTextOverflow;
|