rx-compo 1.0.55 → 1.0.57
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,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;
|
package/package.json
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rx-compo",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"private": false,
|
|
5
|
-
"description": "
|
|
6
|
-
"main": "lib/index.js",
|
|
7
|
-
"module": "es/index.js",
|
|
8
|
-
"keywords": [
|
|
9
|
-
"rx-compo"
|
|
10
|
-
],
|
|
11
|
-
"scripts": {
|
|
12
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
-
},
|
|
14
|
-
"author": "
|
|
15
|
-
"license": "ISC",
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"vue
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "rx-compo",
|
|
3
|
+
"version": "1.0.57",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "conponents for ruixue",
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"module": "es/index.js",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"rx-compo"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
+
},
|
|
14
|
+
"author": "xujichao",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@element-plus/icons-vue": "^2.0.6",
|
|
18
|
+
"@vueuse/core": "^10.2.1",
|
|
19
|
+
"element-plus": "^2.2.4",
|
|
20
|
+
"lodash-es": "^4.17.21",
|
|
21
|
+
"moment": "^2.29.3",
|
|
22
|
+
"uuid": "^9.0.0",
|
|
23
|
+
"vue-types": "^4.1.1"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/lodash-es": "^4.17.8"
|
|
27
|
+
}
|
|
28
|
+
}
|
package/theme-chalk/icon.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:rx-compo-icons;src:url(fonts/iconfont.woff2) format("woff2"),url(fonts/iconfont.woff) format("woff"),url(fonts/iconfont.ttf) format("truetype")}[class*=
|
|
1
|
+
@font-face{font-family:rx-compo-icons;src:url(fonts/iconfont.woff2) format("woff2"),url(fonts/iconfont.woff) format("woff"),url(fonts/iconfont.ttf) format("truetype")}[class*=rx-icon],[class^=rx-icon]{font-family:rx-compo-icons!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.rx-icon-duihao:before{content:"\e6ca"}.rx-icon-bumengaikuang:before{content:"\e60d"}.rx-icon-jishuzhuanyi:before{content:"\e60e"}.rx-icon-kejituandui:before{content:"\e60f"}.rx-icon-kexuejishu:before{content:"\e610"}.rx-icon-tongzhigonggao:before{content:"\e611"}.rx-icon-kexuejishu2:before{content:"\e612"}.rx-icon-xiazaizhongxin:before{content:"\e613"}.rx-icon-xinwendongtai:before{content:"\e614"}.rx-icon-xueshujiangzuo:before{content:"\e615"}.rx-icon-yewuliucheng:before{content:"\e616"}.rx-icon-youqinglianjie:before{content:"\e617"}.rx-icon-zhengceguizhang:before{content:"\e618"}
|