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.
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,34 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ value: import("vue-types").VueTypeValidableDef<string> & {
3
+ default: string;
4
+ };
5
+ inputType: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ totalOption: {
10
+ type: import("vue").PropType<import("./RxInput").totalOption>;
11
+ default: any;
12
+ };
13
+ }, {
14
+ valuePass: import("vue").Ref<string> | import("vue").WritableComputedRef<string>;
15
+ formmatterTotalInputValue: (str: string) => void;
16
+ formatterTotalBlurForAddDecimal: () => void;
17
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
+ value: import("vue-types").VueTypeValidableDef<string> & {
19
+ default: string;
20
+ };
21
+ inputType: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ totalOption: {
26
+ type: import("vue").PropType<import("./RxInput").totalOption>;
27
+ default: any;
28
+ };
29
+ }>>, {
30
+ value: string;
31
+ inputType: string;
32
+ totalOption: import("./RxInput").totalOption;
33
+ }>;
34
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { Ref, WritableComputedRef } from 'vue';
2
+ export declare function useTotalInput(valuePass: Ref<string | undefined> | WritableComputedRef<string | undefined>, props: any): {
3
+ formmatterTotalInputValue: (str: string) => void;
4
+ formatterTotalBlurForAddDecimal: () => void;
5
+ checkPropsIsVaildWhenTotal: () => boolean;
6
+ };
@@ -0,0 +1,5 @@
1
+ import { RxOptionPropsType } from './src/RxOption';
2
+ declare const RxOption: any;
3
+ export { RxOption };
4
+ export type { RxOptionPropsType };
5
+ export default RxOption;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("rx-compo/lib/utils/with-install"),t=require("vue"),o=require("element-plus");var n=t.defineComponent({name:"RxOption",components:{ElOption:o.ElOption},props:{},setup:()=>({})});n.render=function(e,o,n,r,s,p){const l=t.resolveComponent("el-option");return t.openBlock(),t.createBlock(l,t.mergeProps(e.$attrs,{class:"rx-option"}),{default:t.withCtx((()=>[t.renderSlot(e.$slots,"default")])),_:3},16)},n.__file="packages/components/RxOption/src/RxOption.vue";const r=e.withInstall(n);exports.RxOption=r,exports.default=r;
@@ -0,0 +1,3 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare const RxOptionProps: any;
3
+ export declare type RxOptionPropsType = ExtractPropTypes<typeof RxOptionProps>;
@@ -0,0 +1,4 @@
1
+ declare const _default: import("vue").DefineComponent<any, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<any>, {} | {
2
+ [x: string]: any;
3
+ }>;
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const RxScrollbar: any;
2
+ export { RxScrollbar };
3
+ export default RxScrollbar;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("rx-compo/lib/utils/with-install"),r=require("vue"),l=require("element-plus");var o=r.defineComponent({name:"RxScrollbar",components:{ElScrollbar:l.ElScrollbar},props:{},setup:()=>({})});o.render=function(e,l,o,t,s,a){const n=r.resolveComponent("el-scrollbar");return r.openBlock(),r.createBlock(n,r.normalizeProps(r.guardReactiveProps(e.$attrs)),{default:r.withCtx((()=>[r.renderSlot(e.$slots,"default")])),_:3},16)},o.__file="packages/components/RxScrollbar/src/RxScrollbar.vue";const t=e.withInstall(o);exports.RxScrollbar=t,exports.default=t;
@@ -0,0 +1,3 @@
1
+ import type { ExtractPropTypes } from 'vue';
2
+ export declare const RxScrollbarProps: {};
3
+ export declare type RxScrollbarPropsType = ExtractPropTypes<typeof RxScrollbarProps>;
@@ -0,0 +1,8 @@
1
+ declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
2
+ [x: string]: unknown;
3
+ }>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
4
+ [x: string]: unknown;
5
+ }>>>>, {
6
+ [x: number]: string;
7
+ } | {}>;
8
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { RxSelectPropsType } from './src/RxSelect';
2
+ import { RxSelectExpose } from './src/types';
3
+ declare const RxSelect: any;
4
+ export { RxSelect };
5
+ export type { RxSelectPropsType, RxSelectExpose };
6
+ export default RxSelect;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("rx-compo/lib/utils/with-install"),t=require("vue"),o=require("@vueuse/core"),l=require("element-plus"),r=require("rx-compo/lib/components/RxOption");const n={modelValue:{type:[Array,String,Number,Boolean,Object],default:""},options:{type:Array,default:[]}};var c=t.defineComponent({name:"RxSelect",components:{ElSelect:l.ElSelect,RxOption:r.RxOption},props:n,setup(e,{attrs:l,emit:r,expose:n}){const c=t.ref(),s=o.useVModel(e,"modelValue",r),{rxSelectDropDownClass:u,updateRxSelectDropDown:p,getRxSelectDropDownConfig:i}=function(e,o){const l="rx-select-drop-option",r=t.ref(l);return{rxSelectDropDownClass:r,updateRxSelectDropDown:function(){const{popperClass:e}=o;r.value=e?`rx-select-drop-option ${e}`:"rx-select-drop-option"},getRxSelectDropDownConfig:function(){return r.value}}}(0,l),{rxSelectConfig:a,updateRxSelectPlusConfig:x,getRxSelectPlusConfig:f}=function(e,o){const l=t.ref();return{rxSelectConfig:l,updateRxSelectPlusConfig:function(){l.value={popperClass:t.computed((()=>t.unref(o)))}},getRxSelectPlusConfig:function(){return Object.assign(Object.assign({},e),l.value)}}}(l,u);return t.onMounted((()=>{!function(e,t){e(),t()}(p,x)})),n({rxSelectRef:c,updateRxSelectPlusConfig:x,updateRxSelectDropDown:p,getRxSelectPlusConfig:f,getRxSelectDropDownConfig:i}),{rxSelectRef:c,rxSelectConfig:a,rxSelectModelValue:s}}});c.render=function(e,o,l,r,n,c){const s=t.resolveComponent("rx-option"),u=t.resolveComponent("el-select");return t.openBlock(),t.createBlock(u,t.mergeProps({modelValue:e.rxSelectModelValue,"onUpdate:modelValue":o[0]||(o[0]=t=>e.rxSelectModelValue=t),class:"rx-select",ref:"rxSelectRef"},{...e.$attrs,...e.rxSelectConfig}),{default:t.withCtx((()=>[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.options,((e,o)=>(t.openBlock(),t.createBlock(s,t.mergeProps({key:o},e),null,16)))),128))])),prefix:t.withCtx((()=>[t.renderSlot(e.$slots,"prefix")])),empty:t.withCtx((()=>[t.renderSlot(e.$slots,"empty")])),_:3},16,["modelValue"])},c.__file="packages/components/RxSelect/src/RxSelect.vue";const s=e.withInstall(c);exports.RxSelect=s,exports.default=s;
@@ -0,0 +1,14 @@
1
+ import type { ExtractPropTypes, PropType } from 'vue';
2
+ import type { RxOptionPropsType } from 'rx-compo/es/components';
3
+ export type { RxSelectExpose } from './types';
4
+ export declare const RxSelectProps: {
5
+ modelValue: {
6
+ type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
7
+ default: string;
8
+ };
9
+ options: {
10
+ type: PropType<RxOptionPropsType[]>;
11
+ default: any[];
12
+ };
13
+ };
14
+ export declare type RxSelectPropsType = ExtractPropTypes<typeof RxSelectProps>;
@@ -0,0 +1,27 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: {
3
+ type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
4
+ default: string;
5
+ };
6
+ options: {
7
+ type: import("vue").PropType<import("rx-compo/es/components/RxOption").RxOptionPropsType[]>;
8
+ default: any[];
9
+ };
10
+ }, {
11
+ rxSelectRef: import("vue").Ref<any>;
12
+ rxSelectConfig: import("vue").Ref<any>;
13
+ rxSelectModelValue: import("vue").Ref<string | number | boolean | unknown[] | Record<string, any>> | import("vue").WritableComputedRef<string | number | boolean | unknown[] | Record<string, any>>;
14
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ modelValue: {
16
+ type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
17
+ default: string;
18
+ };
19
+ options: {
20
+ type: import("vue").PropType<import("rx-compo/es/components/RxOption").RxOptionPropsType[]>;
21
+ default: any[];
22
+ };
23
+ }>>, {
24
+ modelValue: string | number | boolean | unknown[] | Record<string, any>;
25
+ options: import("rx-compo/es/components/RxOption").RxOptionPropsType[];
26
+ }>;
27
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare function useController(updateRxSelectDropDown: Function, updateRxSelectPlusConfig: Function): {};
@@ -0,0 +1,6 @@
1
+ import { RxSelectPropsType } from '../RxSelect';
2
+ export declare function useOptionClass(props: RxSelectPropsType, attrs: any): {
3
+ rxSelectDropDownClass: import("vue").Ref<string>;
4
+ updateRxSelectDropDown: () => void;
5
+ getRxSelectDropDownConfig: () => string;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { Ref } from 'vue';
2
+ export declare function useRxSelect(attrs: any, rxSelectDropDownClass: Ref<string>): {
3
+ rxSelectConfig: Ref<any>;
4
+ updateRxSelectPlusConfig: () => void;
5
+ getRxSelectPlusConfig: () => any;
6
+ };
@@ -0,0 +1,6 @@
1
+ import { RxSelectPlusExpose } from './src/types';
2
+ declare const RxSelectPlus: any;
3
+ export { RxSelectPlus };
4
+ export type { RxSelectPlusExpose };
5
+ export default RxSelectPlus;
6
+ export type { RxSelectPlusPropsType, RxSelectPlusComponent } from './src/RxSelectPlus';
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("rx-compo/lib/utils/with-install"),o=require("vue"),t=require("@vueuse/core"),l=require("rx-compo/lib/components/RxScrollbar"),r=require("rx-compo/lib/components/RxTooltip"),n=require("rx-compo/lib/components/RxSelect"),s=require("rx-compo/lib/utils/useTextOverflow"),i=require("lodash");const c={modelValue:{type:[Array,String,Number,Boolean,Object],default:""},toolTip:{type:Boolean,default:!0},toolTipConfig:{type:Object,default:{placement:"top"}},options:{type:Array,default:[]}};var u=o.defineComponent({name:"RxSelectPlus",components:{RxSelect:n.RxSelect,RxScrollbar:l.RxScrollbar,RxTooltip:r.RxTooltip},props:c,setup(e,{attrs:l,slots:r,emit:n,expose:c}){const u=o.ref(),a=o.ref(),p=t.useVModel(e,"modelValue",n),{isOverflowed:x,componentsSwitch:d,handleMouseenter:f}=function(e){const{isOverflowed:t,checkOverflowCustom:l}=s.useTextOverflow("RxSelectPlus"),r=o.computed((()=>e.toolTip&&t.value));return{isOverflowed:t,componentsSwitch:r,handleMouseenter:function(e){l(e.target)}}}(e),{rxToolTipConfig:m,updateRxToolTipConfig:T,getRxToolTipConfig:S}=function(e,t,l){const r=o.ref();return{rxToolTipConfig:r,updateRxToolTipConfig:function(){var t;const{toolTipConfig:n,options:s,modelValue:c}=e,{width:u}=l.value.getBoundingClientRect(),a={width:`${u}px`,maxHeight:(null==n?void 0:n.maxHeight)?n.maxHeight:"80px"},p=o.ref();if(null==n?void 0:n.content){const{content:e}=n;p.value=e}else p.value=null===(t=i.find(s,(e=>e.value===c)))||void 0===t?void 0:t.label;r.value=Object.assign(Object.assign({},n),{style:a,content:p.value})},getRxToolTipConfig:function(){return r.value}}}(e,0,u),g=Object.keys(r);return o.onMounted((()=>{!function(e,t){o.watch((()=>e.value),(()=>{o.nextTick((()=>{t()}))}),{deep:!0,immediate:!0})}(p,T)})),c({rxSelectPlusRef:u,rxSelectRef:a,updateRxToolTipConfig:T,getRxToolTipConfig:S}),{rxSelectPlusRef:u,rxSelectRef:a,rxToolTipConfig:m,isOverflowed:x,rxSelectModelPlusValue:p,componentsSwitch:d,selectPlusSlots:g,handleMouseenter:f}}});u.render=function(e,t,l,r,n,s){const i=o.resolveComponent("rx-select"),c=o.resolveComponent("rx-scrollbar"),u=o.resolveComponent("rx-tooltip");return o.openBlock(),o.createElementBlock("div",o.mergeProps({ref:"rxSelectPlusRef"},e.$attrs),[e.componentsSwitch?(o.openBlock(),o.createBlock(u,o.normalizeProps(o.mergeProps({key:0},e.rxToolTipConfig)),{default:o.withCtx((()=>[o.createVNode(i,o.mergeProps({modelValue:e.rxSelectModelPlusValue,"onUpdate:modelValue":t[0]||(t[0]=o=>e.rxSelectModelPlusValue=o),class:"rx-select",ref:"rxSelectRef"},e.$attrs,{options:e.options,onMouseenter:e.handleMouseenter}),o.createSlots({_:2},[o.renderList(e.selectPlusSlots,(t=>({name:t,fn:o.withCtx((l=>[o.renderSlot(e.$slots,`${t}`,o.normalizeProps(o.guardReactiveProps(l)))]))})))]),1040,["modelValue","options","onMouseenter"])])),content:o.withCtx((()=>[o.createCommentVNode(" 自定义tooltip "),e.$slots.rxToolTipSlot?o.renderSlot(e.$slots,"rxToolTipSlot",{key:0}):(o.openBlock(),o.createElementBlock("div",{key:1,style:o.normalizeStyle(e.rxToolTipConfig.style)},[o.createCommentVNode(" 默认模板 "),o.createVNode(c,{"max-height":e.rxToolTipConfig.style.maxHeight},{default:o.withCtx((()=>[o.createTextVNode(o.toDisplayString(e.rxToolTipConfig?.content),1)])),_:1},8,["max-height"])],4))])),_:3},16)):(o.openBlock(),o.createBlock(i,o.mergeProps({key:1,modelValue:e.rxSelectModelPlusValue,"onUpdate:modelValue":t[1]||(t[1]=o=>e.rxSelectModelPlusValue=o)},e.$attrs,{ref:"rxSelectRef",class:"rx-select",options:e.options,onMouseenter:e.handleMouseenter}),o.createSlots({_:2},[o.renderList(e.selectPlusSlots,(t=>({name:t,fn:o.withCtx((l=>[o.renderSlot(e.$slots,`${t}`,o.normalizeProps(o.guardReactiveProps(l)))]))})))]),1040,["modelValue","options","onMouseenter"]))],16)},u.__file="packages/components/RxSelectPlus/src/RxSelectPlus.vue";const a=e.withInstall(u);exports.RxSelectPlus=a,exports.default=a;
@@ -0,0 +1,252 @@
1
+ import type { ExtractPropTypes, PropType, DefineComponent } from 'vue';
2
+ import type { RxOptionPropsType } from 'rx-compo/es/components';
3
+ import { ScrollbarMaxHeight } from './types';
4
+ export type { RxSelectPlusExpose } from './types';
5
+ export declare type SelectType = ExtractPropTypes<Array<any> & String>;
6
+ export declare const RxSelectPlusProps: {
7
+ modelValue: {
8
+ type: (BooleanConstructor | StringConstructor | ObjectConstructor | NumberConstructor | ArrayConstructor)[];
9
+ default: string;
10
+ };
11
+ toolTip: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ toolTipConfig: {
16
+ type: PropType<{} & {
17
+ readonly disabled?: boolean;
18
+ readonly onClick?: Function;
19
+ readonly style?: import("vue").StyleValue;
20
+ readonly id?: string;
21
+ readonly popperClass?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | {
22
+ [x: string]: boolean;
23
+ } | (string | {
24
+ [x: string]: boolean;
25
+ } | (string | {
26
+ [x: string]: boolean;
27
+ } | (string | {
28
+ [x: string]: boolean;
29
+ } | (string | {
30
+ [x: string]: boolean;
31
+ } | (string | {
32
+ [x: string]: boolean;
33
+ } | (string | {
34
+ [x: string]: boolean;
35
+ } | (string | {
36
+ [x: string]: boolean;
37
+ } | (string | {
38
+ [x: string]: boolean;
39
+ } | (string | {
40
+ [x: string]: boolean;
41
+ } | (string | any[] | {
42
+ [x: string]: boolean;
43
+ })[])[])[])[])[])[])[])[])[])[]) & {}) | (() => string | {
44
+ [x: string]: boolean;
45
+ } | (string | {
46
+ [x: string]: boolean;
47
+ } | (string | {
48
+ [x: string]: boolean;
49
+ } | (string | {
50
+ [x: string]: boolean;
51
+ } | (string | {
52
+ [x: string]: boolean;
53
+ } | (string | {
54
+ [x: string]: boolean;
55
+ } | (string | {
56
+ [x: string]: boolean;
57
+ } | (string | {
58
+ [x: string]: boolean;
59
+ } | (string | {
60
+ [x: string]: boolean;
61
+ } | (string | {
62
+ [x: string]: boolean;
63
+ } | (string | any[] | {
64
+ [x: string]: boolean;
65
+ })[])[])[])[])[])[])[])[])[])[]) | ((new (...args: any[]) => (string | {
66
+ [x: string]: boolean;
67
+ } | (string | {
68
+ [x: string]: boolean;
69
+ } | (string | {
70
+ [x: string]: boolean;
71
+ } | (string | {
72
+ [x: string]: boolean;
73
+ } | (string | {
74
+ [x: string]: boolean;
75
+ } | (string | {
76
+ [x: string]: boolean;
77
+ } | (string | {
78
+ [x: string]: boolean;
79
+ } | (string | {
80
+ [x: string]: boolean;
81
+ } | (string | {
82
+ [x: string]: boolean;
83
+ } | (string | {
84
+ [x: string]: boolean;
85
+ } | (string | any[] | {
86
+ [x: string]: boolean;
87
+ })[])[])[])[])[])[])[])[])[])[]) & {}) | (() => string | {
88
+ [x: string]: boolean;
89
+ } | (string | {
90
+ [x: string]: boolean;
91
+ } | (string | {
92
+ [x: string]: boolean;
93
+ } | (string | {
94
+ [x: string]: boolean;
95
+ } | (string | {
96
+ [x: string]: boolean;
97
+ } | (string | {
98
+ [x: string]: boolean;
99
+ } | (string | {
100
+ [x: string]: boolean;
101
+ } | (string | {
102
+ [x: string]: boolean;
103
+ } | (string | {
104
+ [x: string]: boolean;
105
+ } | (string | {
106
+ [x: string]: boolean;
107
+ } | (string | any[] | {
108
+ [x: string]: boolean;
109
+ })[])[])[])[])[])[])[])[])[])[]))[], unknown, unknown>;
110
+ readonly popperOptions?: unknown;
111
+ readonly placement?: import("element-plus/es/utils").EpPropMergeType<StringConstructor, import("element-plus").Placement, unknown>;
112
+ readonly strategy?: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "fixed" | "absolute", unknown>;
113
+ readonly zIndex?: number;
114
+ readonly onFocus?: Function;
115
+ readonly onBlur?: Function;
116
+ readonly onMouseleave?: Function;
117
+ readonly onMouseenter?: Function;
118
+ readonly onKeydown?: Function;
119
+ readonly visible?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => boolean & {}) | (() => boolean) | ((new (...args: any[]) => boolean & {}) | (() => boolean))[], unknown, unknown>;
120
+ readonly effect?: string;
121
+ readonly teleported?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
122
+ readonly persistent?: boolean;
123
+ openDelay?: number;
124
+ visibleArrow?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
125
+ readonly hideAfter?: number;
126
+ showArrow?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
127
+ readonly appendTo?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement) | ((new (...args: any[]) => (string | HTMLElement) & {}) | (() => string | HTMLElement))[], unknown, unknown>;
128
+ readonly content?: string;
129
+ readonly rawContent?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
130
+ readonly ariaLabel?: string;
131
+ readonly transition?: string;
132
+ readonly className?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | {
133
+ [x: string]: boolean;
134
+ } | (string | {
135
+ [x: string]: boolean;
136
+ } | (string | {
137
+ [x: string]: boolean;
138
+ } | (string | {
139
+ [x: string]: boolean;
140
+ } | (string | {
141
+ [x: string]: boolean;
142
+ } | (string | {
143
+ [x: string]: boolean;
144
+ } | (string | {
145
+ [x: string]: boolean;
146
+ } | (string | {
147
+ [x: string]: boolean;
148
+ } | (string | {
149
+ [x: string]: boolean;
150
+ } | (string | {
151
+ [x: string]: boolean;
152
+ } | (string | any[] | {
153
+ [x: string]: boolean;
154
+ })[])[])[])[])[])[])[])[])[])[]) & {}) | (() => string | {
155
+ [x: string]: boolean;
156
+ } | (string | {
157
+ [x: string]: boolean;
158
+ } | (string | {
159
+ [x: string]: boolean;
160
+ } | (string | {
161
+ [x: string]: boolean;
162
+ } | (string | {
163
+ [x: string]: boolean;
164
+ } | (string | {
165
+ [x: string]: boolean;
166
+ } | (string | {
167
+ [x: string]: boolean;
168
+ } | (string | {
169
+ [x: string]: boolean;
170
+ } | (string | {
171
+ [x: string]: boolean;
172
+ } | (string | {
173
+ [x: string]: boolean;
174
+ } | (string | any[] | {
175
+ [x: string]: boolean;
176
+ })[])[])[])[])[])[])[])[])[])[]) | ((new (...args: any[]) => (string | {
177
+ [x: string]: boolean;
178
+ } | (string | {
179
+ [x: string]: boolean;
180
+ } | (string | {
181
+ [x: string]: boolean;
182
+ } | (string | {
183
+ [x: string]: boolean;
184
+ } | (string | {
185
+ [x: string]: boolean;
186
+ } | (string | {
187
+ [x: string]: boolean;
188
+ } | (string | {
189
+ [x: string]: boolean;
190
+ } | (string | {
191
+ [x: string]: boolean;
192
+ } | (string | {
193
+ [x: string]: boolean;
194
+ } | (string | {
195
+ [x: string]: boolean;
196
+ } | (string | any[] | {
197
+ [x: string]: boolean;
198
+ })[])[])[])[])[])[])[])[])[])[]) & {}) | (() => string | {
199
+ [x: string]: boolean;
200
+ } | (string | {
201
+ [x: string]: boolean;
202
+ } | (string | {
203
+ [x: string]: boolean;
204
+ } | (string | {
205
+ [x: string]: boolean;
206
+ } | (string | {
207
+ [x: string]: boolean;
208
+ } | (string | {
209
+ [x: string]: boolean;
210
+ } | (string | {
211
+ [x: string]: boolean;
212
+ } | (string | {
213
+ [x: string]: boolean;
214
+ } | (string | {
215
+ [x: string]: boolean;
216
+ } | (string | {
217
+ [x: string]: boolean;
218
+ } | (string | any[] | {
219
+ [x: string]: boolean;
220
+ })[])[])[])[])[])[])[])[])[])[]))[], unknown, unknown>;
221
+ readonly enterable?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
222
+ readonly pure?: boolean;
223
+ readonly focusOnShow?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
224
+ readonly trapping?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
225
+ readonly popperStyle?: import("vue").StyleValue;
226
+ readonly referenceEl?: HTMLElement;
227
+ readonly triggerTargetEl?: HTMLElement;
228
+ readonly stopPopperMouseEvent?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
229
+ readonly virtualTriggering?: boolean;
230
+ readonly boundariesPadding?: number;
231
+ readonly fallbackPlacements?: import("element-plus").Placement;
232
+ readonly gpuAcceleration?: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
233
+ readonly offset?: number;
234
+ readonly showAfter?: number;
235
+ readonly trigger?: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => ("focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]) & {}) | (() => "focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]) | ((new (...args: any[]) => ("focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]) & {}) | (() => "focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]))[], unknown, unknown>;
236
+ readonly triggerKeys?: string;
237
+ readonly virtualRef?: import("element-plus").Measurable;
238
+ readonly onContextmenu?: Function;
239
+ readonly open?: boolean;
240
+ } & ScrollbarMaxHeight>;
241
+ default: {
242
+ placement: string;
243
+ };
244
+ };
245
+ options: {
246
+ type: PropType<RxOptionPropsType[]>;
247
+ default: any[];
248
+ };
249
+ };
250
+ export declare type RxSelectPlusPropsType = ExtractPropTypes<typeof RxSelectPlusProps>;
251
+ export declare type RxSelectPlusComponent = DefineComponent<typeof RxSelectPlusProps>;
252
+ export declare type RxSelectPlusInstance = InstanceType<DefineComponent<typeof RxSelectPlusProps>>;