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.
Files changed (190) hide show
  1. package/es/components/RxButton/index.d.ts +1 -1
  2. package/es/components/RxButton/index.js +1 -1
  3. package/es/components/RxButton/src/RxButton.d.ts +6 -3
  4. package/es/components/RxButton/src/RxButton.vue.d.ts +2 -0
  5. package/es/components/RxCheckbox/index.d.ts +4 -0
  6. package/es/components/RxCheckbox/index.js +1 -0
  7. package/es/components/RxCheckbox/src/RxCheckbox.d.ts +9 -0
  8. package/es/components/RxCheckbox/src/RxCheckbox.vue.d.ts +14 -0
  9. package/es/components/RxDatePicker/index.d.ts +4 -0
  10. package/es/components/RxDatePicker/index.js +1 -0
  11. package/es/components/RxDatePicker/src/RxDatePicker.d.ts +9 -0
  12. package/es/components/RxInput/index.d.ts +4 -0
  13. package/es/components/RxInput/index.js +1 -0
  14. package/es/components/RxInput/src/RxInput.d.ts +21 -0
  15. package/es/components/RxInput/src/RxInput.vue.d.ts +34 -0
  16. package/es/components/RxInput/src/hooks/useTotalInput.d.ts +6 -0
  17. package/es/components/RxOption/index.d.ts +5 -0
  18. package/es/components/RxOption/index.js +1 -0
  19. package/es/components/RxOption/src/RxOption.d.ts +3 -0
  20. package/es/components/RxOption/src/RxOption.vue.d.ts +4 -0
  21. package/es/components/RxScrollbar/index.d.ts +3 -0
  22. package/es/components/RxScrollbar/index.js +1 -0
  23. package/es/components/RxScrollbar/src/RxScrollbar.d.ts +3 -0
  24. package/es/components/RxScrollbar/src/RxScrollbar.vue.d.ts +8 -0
  25. package/es/components/RxSelect/index.d.ts +6 -0
  26. package/es/components/RxSelect/index.js +1 -0
  27. package/es/components/RxSelect/src/RxSelect.d.ts +14 -0
  28. package/es/components/RxSelect/src/RxSelect.vue.d.ts +27 -0
  29. package/es/components/RxSelect/src/hooks/useController.d.ts +1 -0
  30. package/es/components/RxSelect/src/hooks/useOptionClass.d.ts +6 -0
  31. package/es/components/RxSelect/src/hooks/useRxSelect.d.ts +6 -0
  32. package/es/components/RxSelectPlus/index.d.ts +6 -0
  33. package/es/components/RxSelectPlus/index.js +1 -0
  34. package/es/components/RxSelectPlus/src/RxSelectPlus.d.ts +252 -0
  35. package/es/components/RxSelectPlus/src/RxSelectPlus.vue.d.ts +504 -0
  36. package/es/components/RxSelectPlus/src/hooks/useController.d.ts +2 -0
  37. package/es/components/RxSelectPlus/src/hooks/useRxSelect.d.ts +6 -0
  38. package/es/components/RxSuperCondition/index.d.ts +3 -0
  39. package/es/components/RxSuperCondition/index.js +1 -0
  40. package/es/components/RxSuperCondition/src/RxSuperCondition.d.ts +50 -0
  41. package/es/components/RxSuperCondition/src/RxSuperCondition.vue.d.ts +84 -0
  42. package/es/components/RxSuperCondition/src/components/RxAddConditionButton/index.d.ts +2 -0
  43. package/es/components/RxSuperCondition/src/components/RxAddConditionButton/index.vue.d.ts +13 -0
  44. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.d.ts +2 -0
  45. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.vue.d.ts +18 -0
  46. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/chooseDate.vue.d.ts +9 -0
  47. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/index.d.ts +9 -0
  48. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLess.vue.d.ts +9 -0
  49. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLessDisabled.vue.d.ts +9 -0
  50. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputMax.vue.d.ts +9 -0
  51. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/moreSelect.vue.d.ts +12 -0
  52. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/numberRange.vue.d.ts +10 -0
  53. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/timeRange.vue.d.ts +10 -0
  54. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/totalInput.vue.d.ts +9 -0
  55. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/const/index.d.ts +52 -0
  56. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.d.ts +2 -0
  57. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.vue.d.ts +2 -0
  58. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.d.ts +2 -0
  59. package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.vue.d.ts +32 -0
  60. package/es/components/RxSuperCondition/src/components/RxConditionRender/index.d.ts +2 -0
  61. package/es/components/RxSuperCondition/src/components/RxConditionRender/index.vue.d.ts +48 -0
  62. package/es/components/RxSuperCondition/src/components/RxTemplateList/index.d.ts +2 -0
  63. package/es/components/RxSuperCondition/src/components/RxTemplateList/index.vue.d.ts +20 -0
  64. package/es/components/RxSuperCondition/src/hooks/useConditionContext.d.ts +4 -0
  65. package/es/components/RxSuperCondition/src/hooks/useContext.d.ts +10 -0
  66. package/es/components/RxSuperCondition/src/hooks/useControlCondition.d.ts +12 -0
  67. package/es/components/RxSuperCondition/src/hooks/useControlTemplate.d.ts +20 -0
  68. package/es/components/RxSuperCondition/src/hooks/useDialog.d.ts +8 -0
  69. package/es/components/RxSuperCondition/src/hooks/useInit.d.ts +7 -0
  70. package/es/components/RxSuperCondition/src/hooks/useStorageSevise.d.ts +15 -0
  71. package/es/components/RxTooltip/index.d.ts +5 -0
  72. package/es/components/RxTooltip/index.js +1 -0
  73. package/es/components/RxTooltip/src/RxTooltip.d.ts +4 -0
  74. package/es/components/RxTooltip/src/RxTooltip.vue.d.ts +10 -0
  75. package/es/components/RxTooltip/src/hooks/useBase.d.ts +4 -0
  76. package/es/components/RxTooltip/src/hooks/useController.d.ts +1 -0
  77. package/es/components/index.d.ts +9 -2
  78. package/es/components/index.js +1 -1
  79. package/es/utils/useTextOverflow.d.ts +4 -0
  80. package/es/utils/useTextOverflow.js +13 -0
  81. package/index.esm.js +1 -1
  82. package/index.js +1 -1
  83. package/lib/components/RxButton/index.d.ts +1 -1
  84. package/lib/components/RxButton/index.js +1 -1
  85. package/lib/components/RxButton/src/RxButton.d.ts +6 -3
  86. package/lib/components/RxButton/src/RxButton.vue.d.ts +2 -0
  87. package/lib/components/RxCheckbox/index.d.ts +4 -0
  88. package/lib/components/RxCheckbox/index.js +1 -0
  89. package/lib/components/RxCheckbox/src/RxCheckbox.d.ts +9 -0
  90. package/lib/components/RxCheckbox/src/RxCheckbox.vue.d.ts +14 -0
  91. package/lib/components/RxDatePicker/index.d.ts +4 -0
  92. package/lib/components/RxDatePicker/index.js +1 -0
  93. package/lib/components/RxDatePicker/src/RxDatePicker.d.ts +9 -0
  94. package/lib/components/RxInput/index.d.ts +4 -0
  95. package/lib/components/RxInput/index.js +1 -0
  96. package/lib/components/RxInput/src/RxInput.d.ts +21 -0
  97. package/lib/components/RxInput/src/RxInput.vue.d.ts +34 -0
  98. package/lib/components/RxInput/src/hooks/useTotalInput.d.ts +6 -0
  99. package/lib/components/RxOption/index.d.ts +5 -0
  100. package/lib/components/RxOption/index.js +1 -0
  101. package/lib/components/RxOption/src/RxOption.d.ts +3 -0
  102. package/lib/components/RxOption/src/RxOption.vue.d.ts +4 -0
  103. package/lib/components/RxScrollbar/index.d.ts +3 -0
  104. package/lib/components/RxScrollbar/index.js +1 -0
  105. package/lib/components/RxScrollbar/src/RxScrollbar.d.ts +3 -0
  106. package/lib/components/RxScrollbar/src/RxScrollbar.vue.d.ts +8 -0
  107. package/lib/components/RxSelect/index.d.ts +6 -0
  108. package/lib/components/RxSelect/index.js +1 -0
  109. package/lib/components/RxSelect/src/RxSelect.d.ts +14 -0
  110. package/lib/components/RxSelect/src/RxSelect.vue.d.ts +27 -0
  111. package/lib/components/RxSelect/src/hooks/useController.d.ts +1 -0
  112. package/lib/components/RxSelect/src/hooks/useOptionClass.d.ts +6 -0
  113. package/lib/components/RxSelect/src/hooks/useRxSelect.d.ts +6 -0
  114. package/lib/components/RxSelectPlus/index.d.ts +6 -0
  115. package/lib/components/RxSelectPlus/index.js +1 -0
  116. package/lib/components/RxSelectPlus/src/RxSelectPlus.d.ts +252 -0
  117. package/lib/components/RxSelectPlus/src/RxSelectPlus.vue.d.ts +504 -0
  118. package/lib/components/RxSelectPlus/src/hooks/useController.d.ts +2 -0
  119. package/lib/components/RxSelectPlus/src/hooks/useRxSelect.d.ts +6 -0
  120. package/lib/components/RxSuperCondition/index.d.ts +3 -0
  121. package/lib/components/RxSuperCondition/index.js +1 -0
  122. package/lib/components/RxSuperCondition/src/RxSuperCondition.d.ts +50 -0
  123. package/lib/components/RxSuperCondition/src/RxSuperCondition.vue.d.ts +84 -0
  124. package/lib/components/RxSuperCondition/src/components/RxAddConditionButton/index.d.ts +2 -0
  125. package/lib/components/RxSuperCondition/src/components/RxAddConditionButton/index.vue.d.ts +13 -0
  126. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.d.ts +2 -0
  127. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.vue.d.ts +18 -0
  128. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/chooseDate.vue.d.ts +9 -0
  129. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/index.d.ts +9 -0
  130. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLess.vue.d.ts +9 -0
  131. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLessDisabled.vue.d.ts +9 -0
  132. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputMax.vue.d.ts +9 -0
  133. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/moreSelect.vue.d.ts +12 -0
  134. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/numberRange.vue.d.ts +10 -0
  135. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/timeRange.vue.d.ts +10 -0
  136. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/totalInput.vue.d.ts +9 -0
  137. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/const/index.d.ts +52 -0
  138. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.d.ts +2 -0
  139. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.vue.d.ts +2 -0
  140. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.d.ts +2 -0
  141. package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.vue.d.ts +32 -0
  142. package/lib/components/RxSuperCondition/src/components/RxConditionRender/index.d.ts +2 -0
  143. package/lib/components/RxSuperCondition/src/components/RxConditionRender/index.vue.d.ts +48 -0
  144. package/lib/components/RxSuperCondition/src/components/RxTemplateList/index.d.ts +2 -0
  145. package/lib/components/RxSuperCondition/src/components/RxTemplateList/index.vue.d.ts +20 -0
  146. package/lib/components/RxSuperCondition/src/hooks/useConditionContext.d.ts +4 -0
  147. package/lib/components/RxSuperCondition/src/hooks/useContext.d.ts +10 -0
  148. package/lib/components/RxSuperCondition/src/hooks/useControlCondition.d.ts +12 -0
  149. package/lib/components/RxSuperCondition/src/hooks/useControlTemplate.d.ts +20 -0
  150. package/lib/components/RxSuperCondition/src/hooks/useDialog.d.ts +8 -0
  151. package/lib/components/RxSuperCondition/src/hooks/useInit.d.ts +7 -0
  152. package/lib/components/RxSuperCondition/src/hooks/useStorageSevise.d.ts +15 -0
  153. package/lib/components/RxTooltip/index.d.ts +5 -0
  154. package/lib/components/RxTooltip/index.js +1 -0
  155. package/lib/components/RxTooltip/src/RxTooltip.d.ts +4 -0
  156. package/lib/components/RxTooltip/src/RxTooltip.vue.d.ts +10 -0
  157. package/lib/components/RxTooltip/src/hooks/useBase.d.ts +4 -0
  158. package/lib/components/RxTooltip/src/hooks/useController.d.ts +1 -0
  159. package/lib/components/index.d.ts +9 -2
  160. package/lib/components/index.js +1 -1
  161. package/lib/utils/useTextOverflow.d.ts +4 -0
  162. package/lib/utils/useTextOverflow.js +17 -0
  163. package/package.json +28 -22
  164. package/theme-chalk/icon.css +1 -1
  165. package/theme-chalk/index.css +1 -2
  166. package/theme-chalk/rx-button.css +1 -0
  167. package/theme-chalk/rx-checkbox.css +1 -0
  168. package/theme-chalk/rx-input.css +1 -0
  169. package/theme-chalk/rx-option.css +1 -0
  170. package/theme-chalk/rx-select.css +1 -0
  171. package/types/index.d.ts +8 -4
  172. package/es/components/date/index.d.ts +0 -4
  173. package/es/components/date/index.js +0 -1
  174. package/es/components/date/src/date.d.ts +0 -24
  175. package/es/components/date/src/date.vue.d.ts +0 -32
  176. package/es/components/icon/index.css +0 -1
  177. package/es/components/icon/index.d.ts +0 -4
  178. package/es/components/icon/index.js +0 -1
  179. package/es/components/icon/src/icon.d.ts +0 -25
  180. package/es/components/icon/src/icon.vue.d.ts +0 -37
  181. package/lib/components/date/index.d.ts +0 -4
  182. package/lib/components/date/index.js +0 -1
  183. package/lib/components/date/src/date.d.ts +0 -24
  184. package/lib/components/date/src/date.vue.d.ts +0 -32
  185. package/lib/components/icon/index.css +0 -1
  186. package/lib/components/icon/index.d.ts +0 -4
  187. package/lib/components/icon/index.js +0 -1
  188. package/lib/components/icon/src/icon.d.ts +0 -25
  189. package/lib/components/icon/src/icon.vue.d.ts +0 -37
  190. package/theme-chalk/components-style.css +0 -1
@@ -0,0 +1,4 @@
1
+ export declare function createConditionProviderContext(context: any): {
2
+ state: any;
3
+ };
4
+ export declare function useConditionProviderContext(): any;
@@ -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,5 @@
1
+ import { RxTooltipPropsType } from './src/RxTooltip';
2
+ declare const RxTooltip: any;
3
+ export { RxTooltip };
4
+ export type { RxTooltipPropsType };
5
+ export default RxTooltip;
@@ -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,4 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ import type { ElTooltipProps } from 'element-plus';
3
+ export declare const RxTooltipProps: {};
4
+ export declare type RxTooltipPropsType = ExtractPropTypes<typeof RxTooltipProps & ElTooltipProps>;
@@ -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,4 @@
1
+ export declare function useBase(props: any, attrs: any): {
2
+ rxToolTipOptions: import("vue").Ref<any>;
3
+ init: () => void;
4
+ };
@@ -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';
@@ -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("./icon"),n=require("./date"),u=require("./RxButton");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(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 f=o(e),a=c(t),i=o(r),s=o(n);const l=[i.default,s.default];var p={install:function(e){l.forEach((t=>{e.component(t.name,t)})),e.use(f.default),Object.entries(a).forEach((([t,r])=>{e.component(t,r)}))}};exports.default=p,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]}})}));
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,4 @@
1
+ export declare function useTextOverflow(componentsName: string): {
2
+ isOverflowed: import("@vue/reactivity").Ref<boolean>;
3
+ checkOverflowCustom: (node: any) => void;
4
+ };
@@ -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.55",
4
- "private": false,
5
- "description": "rx-compo",
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": "cheerqjy",
15
- "license": "ISC",
16
- "dependencies": {
17
- "vue-types": "^4.1.1",
18
- "element-plus": "^2.2.4",
19
- "@element-plus/icons-vue": "^2.0.6",
20
- "moment": "^2.29.3"
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
+ }
@@ -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*=qi-icon],[class^=qi-icon]{font-family:rx-compo-icons!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.qi-icon-duihao:before{content:"\e6ca"}.qi-icon-bumengaikuang:before{content:"\e60d"}.qi-icon-jishuzhuanyi:before{content:"\e60e"}.qi-icon-kejituandui:before{content:"\e60f"}.qi-icon-kexuejishu:before{content:"\e610"}.qi-icon-tongzhigonggao:before{content:"\e611"}.qi-icon-kexuejishu2:before{content:"\e612"}.qi-icon-xiazaizhongxin:before{content:"\e613"}.qi-icon-xinwendongtai:before{content:"\e614"}.qi-icon-xueshujiangzuo:before{content:"\e615"}.qi-icon-yewuliucheng:before{content:"\e616"}.qi-icon-youqinglianjie:before{content:"\e617"}.qi-icon-zhengceguizhang:before{content:"\e618"}
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"}