rx-compo 1.0.55 → 1.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/RxButton/index.d.ts +1 -1
- package/es/components/RxButton/index.js +1 -1
- package/es/components/RxButton/src/RxButton.d.ts +6 -3
- package/es/components/RxButton/src/RxButton.vue.d.ts +2 -0
- package/es/components/RxCheckbox/index.d.ts +4 -0
- package/es/components/RxCheckbox/index.js +1 -0
- package/es/components/RxCheckbox/src/RxCheckbox.d.ts +9 -0
- package/es/components/RxCheckbox/src/RxCheckbox.vue.d.ts +14 -0
- package/es/components/RxDatePicker/index.d.ts +4 -0
- package/es/components/RxDatePicker/index.js +1 -0
- package/es/components/RxDatePicker/src/RxDatePicker.d.ts +9 -0
- package/es/components/RxInput/index.d.ts +4 -0
- package/es/components/RxInput/index.js +1 -0
- package/es/components/RxInput/src/RxInput.d.ts +21 -0
- package/es/components/RxInput/src/RxInput.vue.d.ts +34 -0
- package/es/components/RxInput/src/hooks/useTotalInput.d.ts +6 -0
- package/es/components/RxOption/index.d.ts +5 -0
- package/es/components/RxOption/index.js +1 -0
- package/es/components/RxOption/src/RxOption.d.ts +3 -0
- package/es/components/RxOption/src/RxOption.vue.d.ts +4 -0
- package/es/components/RxScrollbar/index.d.ts +3 -0
- package/es/components/RxScrollbar/index.js +1 -0
- package/es/components/RxScrollbar/src/RxScrollbar.d.ts +3 -0
- package/es/components/RxScrollbar/src/RxScrollbar.vue.d.ts +8 -0
- package/es/components/RxSelect/index.d.ts +6 -0
- package/es/components/RxSelect/index.js +1 -0
- package/es/components/RxSelect/src/RxSelect.d.ts +14 -0
- package/es/components/RxSelect/src/RxSelect.vue.d.ts +27 -0
- package/es/components/RxSelect/src/hooks/useController.d.ts +1 -0
- package/es/components/RxSelect/src/hooks/useOptionClass.d.ts +6 -0
- package/es/components/RxSelect/src/hooks/useRxSelect.d.ts +6 -0
- package/es/components/RxSelectPlus/index.d.ts +6 -0
- package/es/components/RxSelectPlus/index.js +1 -0
- package/es/components/RxSelectPlus/src/RxSelectPlus.d.ts +252 -0
- package/es/components/RxSelectPlus/src/RxSelectPlus.vue.d.ts +504 -0
- package/es/components/RxSelectPlus/src/hooks/useController.d.ts +2 -0
- package/es/components/RxSelectPlus/src/hooks/useRxSelect.d.ts +6 -0
- package/es/components/RxSuperCondition/index.d.ts +3 -0
- package/es/components/RxSuperCondition/index.js +1 -0
- package/es/components/RxSuperCondition/src/RxSuperCondition.d.ts +50 -0
- package/es/components/RxSuperCondition/src/RxSuperCondition.vue.d.ts +84 -0
- package/es/components/RxSuperCondition/src/components/RxAddConditionButton/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxAddConditionButton/index.vue.d.ts +13 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.vue.d.ts +18 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/chooseDate.vue.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/index.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLess.vue.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLessDisabled.vue.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputMax.vue.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/moreSelect.vue.d.ts +12 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/numberRange.vue.d.ts +10 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/timeRange.vue.d.ts +10 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/totalInput.vue.d.ts +9 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/const/index.d.ts +52 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.vue.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.vue.d.ts +32 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxConditionRender/index.vue.d.ts +48 -0
- package/es/components/RxSuperCondition/src/components/RxTemplateList/index.d.ts +2 -0
- package/es/components/RxSuperCondition/src/components/RxTemplateList/index.vue.d.ts +20 -0
- package/es/components/RxSuperCondition/src/hooks/useConditionContext.d.ts +4 -0
- package/es/components/RxSuperCondition/src/hooks/useContext.d.ts +10 -0
- package/es/components/RxSuperCondition/src/hooks/useControlCondition.d.ts +12 -0
- package/es/components/RxSuperCondition/src/hooks/useControlTemplate.d.ts +20 -0
- package/es/components/RxSuperCondition/src/hooks/useDialog.d.ts +8 -0
- package/es/components/RxSuperCondition/src/hooks/useInit.d.ts +7 -0
- package/es/components/RxSuperCondition/src/hooks/useStorageSevise.d.ts +15 -0
- package/es/components/RxTooltip/index.d.ts +5 -0
- package/es/components/RxTooltip/index.js +1 -0
- package/es/components/RxTooltip/src/RxTooltip.d.ts +4 -0
- package/es/components/RxTooltip/src/RxTooltip.vue.d.ts +10 -0
- package/es/components/RxTooltip/src/hooks/useBase.d.ts +4 -0
- package/es/components/RxTooltip/src/hooks/useController.d.ts +1 -0
- package/es/components/index.d.ts +9 -2
- package/es/components/index.js +1 -1
- package/es/utils/useTextOverflow.d.ts +4 -0
- package/es/utils/useTextOverflow.js +13 -0
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/lib/components/RxButton/index.d.ts +1 -1
- package/lib/components/RxButton/index.js +1 -1
- package/lib/components/RxButton/src/RxButton.d.ts +6 -3
- package/lib/components/RxButton/src/RxButton.vue.d.ts +2 -0
- package/lib/components/RxCheckbox/index.d.ts +4 -0
- package/lib/components/RxCheckbox/index.js +1 -0
- package/lib/components/RxCheckbox/src/RxCheckbox.d.ts +9 -0
- package/lib/components/RxCheckbox/src/RxCheckbox.vue.d.ts +14 -0
- package/lib/components/RxDatePicker/index.d.ts +4 -0
- package/lib/components/RxDatePicker/index.js +1 -0
- package/lib/components/RxDatePicker/src/RxDatePicker.d.ts +9 -0
- package/lib/components/RxInput/index.d.ts +4 -0
- package/lib/components/RxInput/index.js +1 -0
- package/lib/components/RxInput/src/RxInput.d.ts +21 -0
- package/lib/components/RxInput/src/RxInput.vue.d.ts +34 -0
- package/lib/components/RxInput/src/hooks/useTotalInput.d.ts +6 -0
- package/lib/components/RxOption/index.d.ts +5 -0
- package/lib/components/RxOption/index.js +1 -0
- package/lib/components/RxOption/src/RxOption.d.ts +3 -0
- package/lib/components/RxOption/src/RxOption.vue.d.ts +4 -0
- package/lib/components/RxScrollbar/index.d.ts +3 -0
- package/lib/components/RxScrollbar/index.js +1 -0
- package/lib/components/RxScrollbar/src/RxScrollbar.d.ts +3 -0
- package/lib/components/RxScrollbar/src/RxScrollbar.vue.d.ts +8 -0
- package/lib/components/RxSelect/index.d.ts +6 -0
- package/lib/components/RxSelect/index.js +1 -0
- package/lib/components/RxSelect/src/RxSelect.d.ts +14 -0
- package/lib/components/RxSelect/src/RxSelect.vue.d.ts +27 -0
- package/lib/components/RxSelect/src/hooks/useController.d.ts +1 -0
- package/lib/components/RxSelect/src/hooks/useOptionClass.d.ts +6 -0
- package/lib/components/RxSelect/src/hooks/useRxSelect.d.ts +6 -0
- package/lib/components/RxSelectPlus/index.d.ts +6 -0
- package/lib/components/RxSelectPlus/index.js +1 -0
- package/lib/components/RxSelectPlus/src/RxSelectPlus.d.ts +252 -0
- package/lib/components/RxSelectPlus/src/RxSelectPlus.vue.d.ts +504 -0
- package/lib/components/RxSelectPlus/src/hooks/useController.d.ts +2 -0
- package/lib/components/RxSelectPlus/src/hooks/useRxSelect.d.ts +6 -0
- package/lib/components/RxSuperCondition/index.d.ts +3 -0
- package/lib/components/RxSuperCondition/index.js +1 -0
- package/lib/components/RxSuperCondition/src/RxSuperCondition.d.ts +50 -0
- package/lib/components/RxSuperCondition/src/RxSuperCondition.vue.d.ts +84 -0
- package/lib/components/RxSuperCondition/src/components/RxAddConditionButton/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxAddConditionButton/index.vue.d.ts +13 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxAndOr/index.vue.d.ts +18 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/chooseDate.vue.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/index.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLess.vue.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputLessDisabled.vue.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/inputMax.vue.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/moreSelect.vue.d.ts +12 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/numberRange.vue.d.ts +10 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/timeRange.vue.d.ts +10 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/components/totalInput.vue.d.ts +9 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/const/index.d.ts +52 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxConditionItem/index.vue.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/components/RxDeConditionBtn/index.vue.d.ts +32 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxConditionRender/index.vue.d.ts +48 -0
- package/lib/components/RxSuperCondition/src/components/RxTemplateList/index.d.ts +2 -0
- package/lib/components/RxSuperCondition/src/components/RxTemplateList/index.vue.d.ts +20 -0
- package/lib/components/RxSuperCondition/src/hooks/useConditionContext.d.ts +4 -0
- package/lib/components/RxSuperCondition/src/hooks/useContext.d.ts +10 -0
- package/lib/components/RxSuperCondition/src/hooks/useControlCondition.d.ts +12 -0
- package/lib/components/RxSuperCondition/src/hooks/useControlTemplate.d.ts +20 -0
- package/lib/components/RxSuperCondition/src/hooks/useDialog.d.ts +8 -0
- package/lib/components/RxSuperCondition/src/hooks/useInit.d.ts +7 -0
- package/lib/components/RxSuperCondition/src/hooks/useStorageSevise.d.ts +15 -0
- package/lib/components/RxTooltip/index.d.ts +5 -0
- package/lib/components/RxTooltip/index.js +1 -0
- package/lib/components/RxTooltip/src/RxTooltip.d.ts +4 -0
- package/lib/components/RxTooltip/src/RxTooltip.vue.d.ts +10 -0
- package/lib/components/RxTooltip/src/hooks/useBase.d.ts +4 -0
- package/lib/components/RxTooltip/src/hooks/useController.d.ts +1 -0
- package/lib/components/index.d.ts +9 -2
- package/lib/components/index.js +1 -1
- package/lib/utils/useTextOverflow.d.ts +4 -0
- package/lib/utils/useTextOverflow.js +17 -0
- package/package.json +28 -22
- package/theme-chalk/icon.css +1 -1
- package/theme-chalk/index.css +1 -2
- package/theme-chalk/rx-button.css +1 -0
- package/theme-chalk/rx-checkbox.css +1 -0
- package/theme-chalk/rx-input.css +1 -0
- package/theme-chalk/rx-option.css +1 -0
- package/theme-chalk/rx-select.css +1 -0
- package/types/index.d.ts +8 -4
- package/es/components/date/index.d.ts +0 -4
- package/es/components/date/index.js +0 -1
- package/es/components/date/src/date.d.ts +0 -24
- package/es/components/date/src/date.vue.d.ts +0 -32
- package/es/components/icon/index.css +0 -1
- package/es/components/icon/index.d.ts +0 -4
- package/es/components/icon/index.js +0 -1
- package/es/components/icon/src/icon.d.ts +0 -25
- package/es/components/icon/src/icon.vue.d.ts +0 -37
- package/lib/components/date/index.d.ts +0 -4
- package/lib/components/date/index.js +0 -1
- package/lib/components/date/src/date.d.ts +0 -24
- package/lib/components/date/src/date.vue.d.ts +0 -32
- package/lib/components/icon/index.css +0 -1
- package/lib/components/icon/index.d.ts +0 -4
- package/lib/components/icon/index.js +0 -1
- package/lib/components/icon/src/icon.d.ts +0 -25
- package/lib/components/icon/src/icon.vue.d.ts +0 -37
- package/theme-chalk/components-style.css +0 -1
|
@@ -0,0 +1,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 @@
|
|
|
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,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 @@
|
|
|
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,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 @@
|
|
|
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 { 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>>;
|