rx-compo 1.0.68 → 1.0.71
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/RxCheckboxGroup/index.js +1 -1
- package/es/components/RxRadio/index.d.ts +1 -1
- package/es/components/RxRadio/index.js +1 -1
- package/es/components/RxRadio/src/RxRadio.d.ts +1 -1
- package/es/components/RxRadioButton/index.d.ts +1 -1
- package/es/components/RxRadioButton/index.js +1 -1
- package/es/components/RxRadioButton/src/RxRadioButton.d.ts +1 -1
- package/es/components/RxRadioButton/src/RxRadioButton.vue.d.ts +1 -1
- package/es/components/RxRadioGroup/index.d.ts +1 -1
- package/es/components/RxRadioGroup/index.js +1 -1
- package/es/components/RxRadioGroup/src/RxRadioGroup.d.ts +62 -5
- package/es/components/RxRadioGroup/src/RxRadioGroup.vue.d.ts +275 -1
- package/es/components/RxRadioGroup/src/hooks/useController.d.ts +6 -0
- package/es/components/RxRadioGroup/src/hooks/useRadioGroup.d.ts +8 -0
- package/es/components/RxSelect/index.js +1 -1
- package/es/components/RxSuperCondition/index.css +1 -0
- package/es/components/RxSuperCondition/index.js +1 -1
- package/es/components/RxTooltip/index.js +1 -1
- package/es/utils/useTextOverflow.js +4 -0
- package/index.esm.js +1 -1
- package/index.js +1 -1
- package/lib/components/RxCheckboxGroup/index.js +1 -1
- package/lib/components/RxRadio/index.d.ts +1 -1
- package/lib/components/RxRadio/index.js +1 -1
- package/lib/components/RxRadio/src/RxRadio.d.ts +1 -1
- package/lib/components/RxRadioButton/index.d.ts +1 -1
- package/lib/components/RxRadioButton/index.js +1 -1
- package/lib/components/RxRadioButton/src/RxRadioButton.d.ts +1 -1
- package/lib/components/RxRadioButton/src/RxRadioButton.vue.d.ts +1 -1
- package/lib/components/RxRadioGroup/index.d.ts +1 -1
- package/lib/components/RxRadioGroup/index.js +1 -1
- package/lib/components/RxRadioGroup/src/RxRadioGroup.d.ts +62 -5
- package/lib/components/RxRadioGroup/src/RxRadioGroup.vue.d.ts +275 -1
- package/lib/components/RxRadioGroup/src/hooks/useController.d.ts +6 -0
- package/lib/components/RxRadioGroup/src/hooks/useRadioGroup.d.ts +8 -0
- package/lib/components/RxSelect/index.js +1 -1
- package/lib/components/RxSuperCondition/index.css +1 -0
- package/lib/components/RxSuperCondition/index.js +1 -1
- package/lib/components/RxTooltip/index.js +1 -1
- package/lib/utils/useTextOverflow.js +4 -0
- package/package.json +1 -1
- package/theme-chalk/components-style.css +1 -0
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/rx-checkbox.css +1 -1
- package/theme-chalk/rx-radio-group.css +1 -0
- package/theme-chalk/rx-radio.css +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("rx-compo/lib/utils/with-install"),o=require("vue"),t=require("rx-compo/lib/utils"),l=require("element-plus"),n=require("lodash-es"),r=require("@vueuse/core"),c=require("rx-compo/lib/components/RxTooltip"),s=require("rx-compo/lib/components/RxScrollbar"),a=require("rx-compo/lib/utils/useTextOverflow"),i=require("rx-compo/lib/components");const p={modelValue:t.IxPropTypes.array(),rxCheckboxAll:t.IxPropTypes.bool.def(!1),rxCheckboxAllText:t.IxPropTypes.string.def("全选"),checkBoxOptions:{type:Array,default:[]},toolTipFormatter:{type:Function,default:null},checkAllSlotsFormatter:{type:Function,default:null},toolTipConfig:{type:Object,default:{placement:"top"}},gutter:t.IxPropTypes.number,justify:{type:String,default:"start"},baseColProps:{type:Object,default:()=>({xl:4,lg:6,md:8,sm:12,xs:24})},isButton:t.IxPropTypes.bool.def(!1),rxCheckBoxAttr:{type:Object,default:{}}};var u=o.defineComponent({name:"RxCheckboxComponents",components:{RxCheckbox:i.RxCheckbox,RxCheckboxButton:i.RxCheckboxButton},setup:(e,{slots:o})=>({rxCheckBoxSlots:Object.keys(o)})});u.render=function(e,t,l,n,r,c){const s=o.resolveComponent("rx-checkbox-button"),a=o.resolveComponent("rx-checkbox");return e.$attrs.isButton?(o.openBlock(),o.createBlock(s,o.normalizeProps(o.mergeProps({key:0},e.$attrs.isButton)),o.createSlots({_:2},[o.renderList(e.rxCheckBoxSlots,(t=>({name:t,fn:o.withCtx((l=>[o.renderSlot(e.$slots,`${t}`,o.normalizeProps(o.guardReactiveProps(l)))]))})))]),1040)):(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:1},e.$attrs)),o.createSlots({_:2},[o.renderList(e.rxCheckBoxSlots,(t=>({name:t,fn:o.withCtx((l=>[o.renderSlot(e.$slots,`${t}`,o.normalizeProps(o.guardReactiveProps(l)))]))})))]),1040))},u.__file="packages/components/RxCheckboxGroup/components/RxCheckboxComponents.vue";var m=o.defineComponent({name:"RxCheckboxGroup",components:{ElCheckboxGroup:l.ElCheckboxGroup,ElRow:l.ElRow,ElCol:l.ElCol,RxCheckboxComponents:u,RxScrollbar:s.RxScrollbar,RxTooltip:c.RxTooltip},props:p,setup(e,{emit:t}){const l=r.useVModel(e,"modelValue",t),{isIndeterminate:c,checkAll:s,checkBoxOptionsComputed:i,itemsRef:p,setItemRef:u,handleCheckAllChange:m,handleCheckedChange:x}=function(e,t){const l=o.computed((()=>e.checkBoxOptions||[])),r=o.ref([]),c=o.ref(!0),s=o.ref(!1);return{isIndeterminate:c,checkAll:s,checkboxGroupValue:t,itemsRef:r,checkBoxOptionsComputed:l,setItemRef:e=>{e&&r.value.push(e)},handleCheckAllChange:e=>{t.value=e?n.map(l.value,(e=>e.label)):[],c.value=!1},handleCheckedChange:e=>{const o=e.length;s.value=o===l.value.length,c.value=o>0&&o<l.value.length}}}(e,l),{rxToolTipConfig:h,updateRxToolTipConfig:d}=function(e){const t=o.ref();return{rxToolTipConfig:t,updateRxToolTipConfig:function(o){const{toolTipConfig:l}=e,{width:n}=o.getBoundingClientRect(),r={width:(null==l?void 0:l.tooltipWidth)?l.tooltipWidth:`${n}px`,maxHeight:(null==l?void 0:l.maxHeight)?l.maxHeight:"80px"};t.value=Object.assign(Object.assign({},l),{style:r})}}}(e),{isOverflowed:k,handleMouseenter:C}=function(e,t){const{isOverflowed:l,checkOverflowCustom:n}=a.useTextOverflow("RxCheckbox");return{itemsRef:e,isOverflowed:l,handleMouseenter:function(l){const r=e.value[l].$el;n(r),o.nextTick((()=>t(r)))}}}(p,d);return{isIndeterminate:c,checkboxGroupValue:l,checkAll:s,rxToolTipConfig:h,isOverflowed:k,itemsRef:p,checkBoxOptionsComputed:i,setItemRef:u,handleMouseenter:C,handleCheckAllChange:m,handleCheckedChange:x}}});const x={key:0,class:"rx-checkbox-group"},h={key:2};m.render=function(e,t,l,n,r,c){const s=o.resolveComponent("RxCheckboxComponents"),a=o.resolveComponent("rx-scrollbar"),i=o.resolveComponent("rx-tooltip"),p=o.resolveComponent("el-col"),u=o.resolveComponent("el-row"),m=o.resolveComponent("el-checkbox-group");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.rxCheckboxAll?(o.openBlock(),o.createElementBlock("div",x,[o.createCommentVNode(" 默认全选按钮 "),o.createVNode(s,{modelValue:e.checkAll,"onUpdate:modelValue":t[0]||(t[0]=o=>e.checkAll=o),isButton:!1,indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx((()=>[o.createCommentVNode(" 函数式 "),e.checkAllSlotsFormatter?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.checkAllSlotsFormatter.call(null,{})),{key:0})):e.$slots.checkAllSlots?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 插槽 "),o.renderSlot(e.$slots,"checkAllSlots")],2112)):(o.openBlock(),o.createElementBlock("span",h,o.toDisplayString(e.rxCheckboxAllText),1))])),_:3},8,["modelValue","indeterminate","onChange"])])):o.createCommentVNode("v-if",!0),o.createVNode(m,o.mergeProps({...e.$attrs,...e.$props},{modelValue:e.checkboxGroupValue,"onUpdate:modelValue":t[1]||(t[1]=o=>e.checkboxGroupValue=o),onChange:e.handleCheckedChange,class:"rx-checkbox-group"}),{default:o.withCtx((()=>[o.createCommentVNode(" 模板默认插槽 "),e.$slots.default?o.renderSlot(e.$slots,"default",{key:0}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 配置 "),o.createVNode(u,{gutter:e.gutter,type:"flex",class:o.normalizeClass(`justify-${e.justify}`)},{default:o.withCtx((()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.checkBoxOptionsComputed,((t,l)=>(o.openBlock(),o.createBlock(p,o.mergeProps({key:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("rx-compo/lib/utils/with-install"),o=require("vue"),t=require("rx-compo/lib/utils"),l=require("element-plus"),n=require("lodash-es"),r=require("@vueuse/core"),c=require("rx-compo/lib/components/RxTooltip"),s=require("rx-compo/lib/components/RxScrollbar"),a=require("rx-compo/lib/utils/useTextOverflow"),i=require("rx-compo/lib/components");const p={modelValue:t.IxPropTypes.array(),rxCheckboxAll:t.IxPropTypes.bool.def(!1),rxCheckboxAllText:t.IxPropTypes.string.def("全选"),checkBoxOptions:{type:Array,default:[]},toolTipFormatter:{type:Function,default:null},checkAllSlotsFormatter:{type:Function,default:null},toolTipConfig:{type:Object,default:{placement:"top"}},gutter:t.IxPropTypes.number,justify:{type:String,default:"start"},baseColProps:{type:Object,default:()=>({xl:4,lg:6,md:8,sm:12,xs:24})},isButton:t.IxPropTypes.bool.def(!1),rxCheckBoxAttr:{type:Object,default:{}}};var u=o.defineComponent({name:"RxCheckboxComponents",components:{RxCheckbox:i.RxCheckbox,RxCheckboxButton:i.RxCheckboxButton},setup:(e,{slots:o})=>({rxCheckBoxSlots:Object.keys(o)})});u.render=function(e,t,l,n,r,c){const s=o.resolveComponent("rx-checkbox-button"),a=o.resolveComponent("rx-checkbox");return e.$attrs.isButton?(o.openBlock(),o.createBlock(s,o.normalizeProps(o.mergeProps({key:0},e.$attrs.isButton)),o.createSlots({_:2},[o.renderList(e.rxCheckBoxSlots,(t=>({name:t,fn:o.withCtx((l=>[o.renderSlot(e.$slots,`${t}`,o.normalizeProps(o.guardReactiveProps(l)))]))})))]),1040)):(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:1},e.$attrs)),o.createSlots({_:2},[o.renderList(e.rxCheckBoxSlots,(t=>({name:t,fn:o.withCtx((l=>[o.renderSlot(e.$slots,`${t}`,o.normalizeProps(o.guardReactiveProps(l)))]))})))]),1040))},u.__file="packages/components/RxCheckboxGroup/components/RxCheckboxComponents.vue";var m=o.defineComponent({name:"RxCheckboxGroup",components:{ElCheckboxGroup:l.ElCheckboxGroup,ElRow:l.ElRow,ElCol:l.ElCol,RxCheckboxComponents:u,RxScrollbar:s.RxScrollbar,RxTooltip:c.RxTooltip},props:p,setup(e,{emit:t}){const l=r.useVModel(e,"modelValue",t),{isIndeterminate:c,checkAll:s,checkBoxOptionsComputed:i,itemsRef:p,setItemRef:u,handleCheckAllChange:m,handleCheckedChange:x}=function(e,t){const l=o.computed((()=>e.checkBoxOptions||[])),r=o.ref([]),c=o.ref(!0),s=o.ref(!1);return{isIndeterminate:c,checkAll:s,checkboxGroupValue:t,itemsRef:r,checkBoxOptionsComputed:l,setItemRef:e=>{e&&r.value.push(e)},handleCheckAllChange:e=>{t.value=e?n.map(l.value,(e=>e.label)):[],c.value=!1},handleCheckedChange:e=>{const o=e.length;s.value=o===l.value.length,c.value=o>0&&o<l.value.length}}}(e,l),{rxToolTipConfig:h,updateRxToolTipConfig:d}=function(e){const t=o.ref();return{rxToolTipConfig:t,updateRxToolTipConfig:function(o){const{toolTipConfig:l}=e,{width:n}=o.getBoundingClientRect(),r={width:(null==l?void 0:l.tooltipWidth)?l.tooltipWidth:`${n}px`,maxHeight:(null==l?void 0:l.maxHeight)?l.maxHeight:"80px"};t.value=Object.assign(Object.assign({},l),{style:r})}}}(e),{isOverflowed:k,handleMouseenter:C}=function(e,t){const{isOverflowed:l,checkOverflowCustom:n}=a.useTextOverflow("RxCheckbox");return{itemsRef:e,isOverflowed:l,handleMouseenter:function(l){const r=e.value[l].$el;n(r),o.nextTick((()=>t(r)))}}}(p,d);return{isIndeterminate:c,checkboxGroupValue:l,checkAll:s,rxToolTipConfig:h,isOverflowed:k,itemsRef:p,checkBoxOptionsComputed:i,setItemRef:u,handleMouseenter:C,handleCheckAllChange:m,handleCheckedChange:x}}});const x={key:0,class:"rx-checkbox-group"},h={key:2};m.render=function(e,t,l,n,r,c){const s=o.resolveComponent("RxCheckboxComponents"),a=o.resolveComponent("rx-scrollbar"),i=o.resolveComponent("rx-tooltip"),p=o.resolveComponent("el-col"),u=o.resolveComponent("el-row"),m=o.resolveComponent("el-checkbox-group");return o.openBlock(),o.createElementBlock(o.Fragment,null,[e.rxCheckboxAll?(o.openBlock(),o.createElementBlock("div",x,[o.createCommentVNode(" 默认全选按钮 "),o.createVNode(s,{modelValue:e.checkAll,"onUpdate:modelValue":t[0]||(t[0]=o=>e.checkAll=o),isButton:!1,indeterminate:e.isIndeterminate,onChange:e.handleCheckAllChange},{default:o.withCtx((()=>[o.createCommentVNode(" 函数式 "),e.checkAllSlotsFormatter?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.checkAllSlotsFormatter.call(null,{})),{key:0})):e.$slots.checkAllSlots?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 插槽 "),o.renderSlot(e.$slots,"checkAllSlots")],2112)):(o.openBlock(),o.createElementBlock("span",h,o.toDisplayString(e.rxCheckboxAllText),1))])),_:3},8,["modelValue","indeterminate","onChange"])])):o.createCommentVNode("v-if",!0),o.createVNode(m,o.mergeProps({...e.$attrs,...e.$props},{modelValue:e.checkboxGroupValue,"onUpdate:modelValue":t[1]||(t[1]=o=>e.checkboxGroupValue=o),onChange:e.handleCheckedChange,class:"rx-checkbox-group"}),{default:o.withCtx((()=>[o.createCommentVNode(" 模板默认插槽 "),e.$slots.default?o.renderSlot(e.$slots,"default",{key:0}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 配置 "),o.createVNode(u,{gutter:e.gutter,type:"flex",class:o.normalizeClass(`justify-${e.justify}`)},{default:o.withCtx((()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.checkBoxOptionsComputed,((t,l)=>(o.openBlock(),o.createBlock(p,o.mergeProps({key:t,ref_for:!0,ref:e.setItemRef,style:`${t.colStyle||""}`,class:`${t.colClass||""}`},t.colProps||e.baseColProps),{default:o.withCtx((()=>[o.createCommentVNode(" 溢出隐藏 "),e.isOverflowed?(o.openBlock(),o.createBlock(i,o.normalizeProps(o.mergeProps({key:0},e.rxToolTipConfig)),{content:o.withCtx((()=>[o.createCommentVNode(" checkBoxOptions[index].slots options可自定义配置h函数模板 "),t.toolTipSlots?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.toolTipSlots.call(null,t)),o.normalizeProps(o.mergeProps({key:0},t)),null,16)):e.toolTipFormatter?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" props toolTipFormatter 通配h函数模板 "),(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.toolTipFormatter.call(null,t)),o.normalizeProps(o.guardReactiveProps(t)),null,16))],2112)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createCommentVNode(" 默认渲染模板 "),o.createElementVNode("div",{style:o.normalizeStyle(e.rxToolTipConfig.style)},[o.createVNode(a,{"max-height":e.rxToolTipConfig.style.maxHeight},{default:o.withCtx((()=>[o.createTextVNode(o.toDisplayString(t?.toolTipContent||t?.label),1)])),_:2},1032,["max-height"])],4)],2112))])),default:o.withCtx((()=>[o.createVNode(s,o.mergeProps({...e.rxCheckBoxAttr,...t},{isButton:e.isButton,onMouseenter:o=>e.handleMouseenter(l)}),null,16,["isButton","onMouseenter"])])),_:2},1040)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 默认checkbox "),o.createVNode(s,o.mergeProps({...e.rxCheckBoxAttr,...t},{isButton:e.isButton,onMouseenter:o=>e.handleMouseenter(l)}),null,16,["isButton","onMouseenter"])],2112))])),_:2},1040,["style","class"])))),128))])),_:1},8,["gutter","class"])],64))])),_:3},16,["modelValue","onChange"])],64)},m.__file="packages/components/RxCheckboxGroup/src/RxCheckboxGroup.vue";const d=e.withInstall(m);exports.RxCheckboxGroup=d,exports.default=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("rx-compo/lib/utils/with-install"),o=require("vue"),l=require("element-plus"),t=require("@vueuse/core");const r={modelValue:{type:[String,Number,Boolean],default:!1},slots:{type:Function,default:null}};var a=o.defineComponent({name:"RxRadio",components:{ElRadio:l.ElRadio},props:r,setup:(e,{emit:o})=>({rxRadioLoacl:t.useVModel(e,"modelValue",o)})});
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("rx-compo/lib/utils/with-install"),o=require("vue"),l=require("element-plus"),t=require("@vueuse/core");const r={modelValue:{type:[String,Number,Boolean],default:!1},slots:{type:Function,default:null}};var a=o.defineComponent({name:"RxRadio",components:{ElRadio:l.ElRadio},props:r,setup:(e,{emit:o})=>({rxRadioLoacl:t.useVModel(e,"modelValue",o)})});a.render=function(e,l,t,r,a,s){const n=o.resolveComponent("el-radio");return o.openBlock(),o.createBlock(n,o.mergeProps({modelValue:e.rxRadioLoacl,"onUpdate:modelValue":l[0]||(l[0]=o=>e.rxRadioLoacl=o)},{...e.$attrs,...e.$props},{class:"rx-radio"}),o.createSlots({_:2},[e.$slots.default||e.slots?{name:"default",fn:o.withCtx((()=>[e.slots?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.slots.call(null,e.$attrs)),o.normalizeProps(o.mergeProps({key:0},e.$attrs)),null,16)):o.renderSlot(e.$slots,"default",{key:1})]))}:void 0]),1040,["modelValue"])},a.__file="packages/components/RxRadio/src/RxRadio.vue";const s=e.withInstall(a);exports.RxRadio=s,exports.default=s;
|
|
@@ -10,6 +10,6 @@ export declare const RxRadioProps: {
|
|
|
10
10
|
default: any;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
export declare type
|
|
13
|
+
export declare type RxRadioPropsType = ExtractInnerPropTypes<typeof RxRadioProps>;
|
|
14
14
|
export declare type RxRadioPublicProps = ExtractPublicPropTypes<typeof RxRadioProps>;
|
|
15
15
|
export declare type RxRadioComponent = DefineComponent<keyof RxRadioPublicProps> & RxRadioPublicProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const RxRadioButton: any;
|
|
2
2
|
export { RxRadioButton };
|
|
3
3
|
export default RxRadioButton;
|
|
4
|
-
export type {
|
|
4
|
+
export type { RxRadioButtonPropsType, RxRadioButtonPublicProps, RxRadioButtonComponent } from './src/RxRadioButton';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("rx-compo/lib/utils/with-install"),o=require("vue"),t=require("element-plus"),l=require("@vueuse/core");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("rx-compo/lib/utils/with-install"),o=require("vue"),t=require("element-plus"),l=require("@vueuse/core");const n={modelValue:{type:[String,Number,Boolean],default:!1},slots:{type:Function,default:null}};var r=o.defineComponent({name:"RxRadioButton",components:{ElRadioButton:t.ElRadioButton},props:n,setup:(e,{emit:o})=>({rxRadioButtonLoacl:l.useVModel(e,"modelValue",o)})});const a={class:"rx-radio-button"};r.render=function(e,t,l,n,r,s){const u=o.resolveComponent("el-radio-button");return o.openBlock(),o.createElementBlock("div",a,[o.createVNode(u,o.mergeProps({modelValue:e.rxRadioButtonLoacl,"onUpdate:modelValue":t[0]||(t[0]=o=>e.rxRadioButtonLoacl=o)},{...e.$attrs,...e.$props}),o.createSlots({_:2},[e.$slots.default||e.slots?{name:"default",fn:o.withCtx((()=>[e.slots?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.slots.call(null,e.$attrs)),o.normalizeProps(o.mergeProps({key:0},e.$attrs)),null,16)):o.renderSlot(e.$slots,"default",{key:1})]))}:void 0]),1040,["modelValue"])])},r.__file="packages/components/RxRadioButton/src/RxRadioButton.vue";const s=e.withInstall(r);exports.RxRadioButton=s,exports.default=s;
|
|
@@ -10,6 +10,6 @@ export declare const RxRadioButtonProps: {
|
|
|
10
10
|
default: any;
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
export declare type
|
|
13
|
+
export declare type RxRadioButtonPropsType = ExtractInnerPropTypes<typeof RxRadioButtonProps>;
|
|
14
14
|
export declare type RxRadioButtonPublicProps = ExtractPublicPropTypes<typeof RxRadioButtonProps>;
|
|
15
15
|
export declare type RxRadioButtonComponent = DefineComponent<keyof RxRadioButtonPublicProps> & RxRadioButtonPublicProps;
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
default: any;
|
|
9
9
|
};
|
|
10
10
|
}, {
|
|
11
|
-
|
|
11
|
+
rxRadioButtonLoacl: import("vue").Ref<string | number | boolean> | import("vue").WritableComputedRef<string | number | boolean>;
|
|
12
12
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
13
|
modelValue: {
|
|
14
14
|
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare const RxRadioGroup: any;
|
|
2
2
|
export { RxRadioGroup };
|
|
3
3
|
export default RxRadioGroup;
|
|
4
|
-
export type {
|
|
4
|
+
export type { RxRadioGroupPropsType, RxRadioGroupInstance, RxRadioGroupComponent } from './src/RxRadioGroup';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("rx-compo/lib/utils/with-install"),o=require("vue"),
|
|
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"),r=require("element-plus"),l=require("rx-compo/lib/components/RxTooltip"),n=require("rx-compo/lib/components/RxScrollbar"),i=require("rx-compo/lib/utils"),s=require("rx-compo/lib/components/RxRadio"),a=require("rx-compo/lib/components/RxRadioButton"),p=require("rx-compo/lib/utils/useTextOverflow");const u={modelValue:{type:[String,Number,Boolean],default:!1},rxRadioGroupOptions:{type:Array,default:[]},toolTipFormatter:{type:Function,default:null},toolTipConfig:{type:Object,default:{placement:"top"}},gutter:i.IxPropTypes.number,justify:{type:String,default:"start"},baseColProps:{type:Object,default:()=>({xl:4,lg:6,md:8,sm:12,xs:24})},isButton:i.IxPropTypes.bool.def(!1),rxRadioAttr:{type:Object,default:{}}};var c=o.defineComponent({name:"RxRadioComponents",components:{RxRadio:s.RxRadio,RxRadioButton:a.RxRadioButton},setup:(e,{slots:o})=>({rxRadioSlots:Object.keys(o)})});c.render=function(e,t,r,l,n,i){const s=o.resolveComponent("rx-radio-button"),a=o.resolveComponent("rx-radio");return e.$attrs.isButton?(o.openBlock(),o.createBlock(s,o.normalizeProps(o.mergeProps({key:0},e.$attrs.isButton)),o.createSlots({_:2},[o.renderList(e.rxRadioSlots,(t=>({name:t,fn:o.withCtx((r=>[o.renderSlot(e.$slots,`${t}`,o.normalizeProps(o.guardReactiveProps(r)))]))})))]),1040)):(o.openBlock(),o.createBlock(a,o.normalizeProps(o.mergeProps({key:1},e.$attrs)),o.createSlots({_:2},[o.renderList(e.rxRadioSlots,(t=>({name:t,fn:o.withCtx((r=>[o.renderSlot(e.$slots,`${t}`,o.normalizeProps(o.guardReactiveProps(r)))]))})))]),1040))},c.__file="packages/components/RxRadioGroup/components/RxRadioComponents.vue";var d=o.defineComponent({name:"RxRadioGroup",components:{ElRadioGroup:r.ElRadioGroup,ElRow:r.ElRow,ElCol:r.ElCol,RxRadioComponents:c,RxTooltip:l.RxTooltip,RxScrollbar:n.RxScrollbar},props:u,setup(e,{emit:r}){const l=t.useVModel(e,"modelValue",r),{rxRadioGroupOptionsComputed:n,itemsRef:i,setItemRef:s}=function(e,t){const r=o.computed((()=>e.rxRadioGroupOptions||[])),l=o.ref([]);return{checkboxGroupValue:t,itemsRef:l,rxRadioGroupOptionsComputed:r,setItemRef:e=>{e&&l.value.push(e)}}}(e,l),{rxToolTipConfig:a,updateRxToolTipConfig:u}=function(e){const t=o.ref();return{rxToolTipConfig:t,updateRxToolTipConfig:function(o){const{toolTipConfig:r}=e,{width:l}=o.getBoundingClientRect(),n={width:(null==r?void 0:r.tooltipWidth)?r.tooltipWidth:`${l}px`,maxHeight:(null==r?void 0:r.maxHeight)?r.maxHeight:"80px"};t.value=Object.assign(Object.assign({},r),{style:n})}}}(e),{isOverflowed:c,handleMouseenter:d}=function(e,t){const{isOverflowed:r,checkOverflowCustom:l}=p.useTextOverflow("RxRadio");return{itemsRef:e,isOverflowed:r,handleMouseenter:function(r){const n=e.value[r].$el;l(n),o.nextTick((()=>t(n)))}}}(i,u);return{rxRadioGroupValue:l,rxRadioGroupOptionsComputed:n,isOverflowed:c,rxToolTipConfig:a,setItemRef:s,handleMouseenter:d}}});d.render=function(e,t,r,l,n,i){const s=o.resolveComponent("RxRadioComponents"),a=o.resolveComponent("rx-scrollbar"),p=o.resolveComponent("rx-tooltip"),u=o.resolveComponent("el-col"),c=o.resolveComponent("el-row"),d=o.resolveComponent("el-radio-group");return o.openBlock(),o.createBlock(d,o.mergeProps({...e.$attrs,...e.$props},{modelValue:e.rxRadioGroupValue,"onUpdate:modelValue":t[0]||(t[0]=o=>e.rxRadioGroupValue=o),class:"rx-radio-group"}),{default:o.withCtx((()=>[o.createCommentVNode(" 模板默认插槽 "),e.$slots.default?o.renderSlot(e.$slots,"default",{key:0}):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 配置 "),o.createVNode(c,{gutter:e.gutter,type:"flex",class:o.normalizeClass(`justify-${e.justify}`)},{default:o.withCtx((()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.rxRadioGroupOptionsComputed,((t,r)=>(o.openBlock(),o.createBlock(u,o.mergeProps({key:t,ref_for:!0,ref:e.setItemRef,style:`${t.colStyle||""}`,class:`${t.colClass||""}`},t.colProps||e.baseColProps),{default:o.withCtx((()=>[o.createCommentVNode(" 溢出隐藏 "),e.isOverflowed?(o.openBlock(),o.createBlock(p,o.normalizeProps(o.mergeProps({key:0},e.rxToolTipConfig)),{content:o.withCtx((()=>[o.createCommentVNode(" checkBoxOptions[index].slots options可自定义配置h函数模板 "),t.toolTipSlots?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(t.toolTipSlots.call(null,t)),o.normalizeProps(o.mergeProps({key:0},t)),null,16)):e.toolTipFormatter?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" props toolTipFormatter 通配h函数模板 "),(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.toolTipFormatter.call(null,t)),o.normalizeProps(o.guardReactiveProps(t)),null,16))],2112)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:2},[o.createCommentVNode(" 默认渲染模板 "),o.createElementVNode("div",{style:o.normalizeStyle(e.rxToolTipConfig.style)},[o.createVNode(a,{"max-height":e.rxToolTipConfig.style.maxHeight},{default:o.withCtx((()=>[o.createTextVNode(o.toDisplayString(t?.toolTipContent||t?.label),1)])),_:2},1032,["max-height"])],4)],2112))])),default:o.withCtx((()=>[o.createVNode(s,o.mergeProps({...e.rxRadioAttr,...t},{isButton:e.isButton,onMouseenter:o=>e.handleMouseenter(r)}),null,16,["isButton","onMouseenter"])])),_:2},1040)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createCommentVNode(" 默认checkbox "),o.createVNode(s,o.mergeProps({...e.rxRadioAttr,...t},{isButton:e.isButton,onMouseenter:o=>e.handleMouseenter(r)}),null,16,["isButton","onMouseenter"])],2112))])),_:2},1040,["style","class"])))),128))])),_:1},8,["gutter","class"])],64))])),_:3},16,["modelValue"])},d.__file="packages/components/RxRadioGroup/src/RxRadioGroup.vue";const m=e.withInstall(d);exports.RxRadioGroup=m,exports.default=m;
|
|
@@ -1,11 +1,68 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
1
|
+
import type { ExtractPropTypes, DefineComponent, PropType } from 'vue';
|
|
2
|
+
import type { RxRadioPropsType, RxRadioButtonPropsType, RxTooltipPropsType, ToolTipScrollbarCustomType } from 'rx-compo/es/components';
|
|
3
|
+
declare type RxRadioComponents = RxRadioPropsType & RxRadioButtonPropsType;
|
|
4
|
+
declare type RxRadioGroupToolTipConfig = RxTooltipPropsType & ToolTipScrollbarCustomType;
|
|
5
|
+
export interface ColObject {
|
|
6
|
+
span?: number;
|
|
7
|
+
offset?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface ColProps {
|
|
10
|
+
tag?: string;
|
|
11
|
+
span?: number;
|
|
12
|
+
offset?: number;
|
|
13
|
+
pull?: number;
|
|
14
|
+
push?: number;
|
|
15
|
+
xs?: number | ColObject;
|
|
16
|
+
sm?: number | ColObject;
|
|
17
|
+
md?: number | ColObject;
|
|
18
|
+
lg?: number | ColObject;
|
|
19
|
+
xl?: number | ColObject;
|
|
20
|
+
}
|
|
21
|
+
export interface RadioType extends RxRadioComponents {
|
|
22
|
+
toolTipContent?: string;
|
|
23
|
+
toolTipSlots?: Function;
|
|
24
|
+
colProps?: ColProps;
|
|
25
|
+
colStyle?: string;
|
|
26
|
+
colClass?: string;
|
|
27
|
+
label: string;
|
|
28
|
+
}
|
|
3
29
|
export declare const RxRadioGroupProps: {
|
|
4
30
|
modelValue: {
|
|
5
31
|
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
6
32
|
default: boolean;
|
|
7
33
|
};
|
|
34
|
+
rxRadioGroupOptions: {
|
|
35
|
+
type: PropType<RadioType[]>;
|
|
36
|
+
default: any[];
|
|
37
|
+
};
|
|
38
|
+
toolTipFormatter: {
|
|
39
|
+
type: FunctionConstructor;
|
|
40
|
+
default: any;
|
|
41
|
+
};
|
|
42
|
+
toolTipConfig: {
|
|
43
|
+
type: PropType<RxRadioGroupToolTipConfig>;
|
|
44
|
+
default: {
|
|
45
|
+
placement: string;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
gutter: import("vue-types").VueTypeValidableDef<number>;
|
|
49
|
+
justify: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
baseColProps: {
|
|
54
|
+
type: PropType<ColProps>;
|
|
55
|
+
default: () => ColProps;
|
|
56
|
+
};
|
|
57
|
+
isButton: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
rxRadioAttr: {
|
|
61
|
+
type: PropType<RxRadioComponents>;
|
|
62
|
+
default: {};
|
|
63
|
+
};
|
|
8
64
|
};
|
|
9
|
-
export declare type
|
|
10
|
-
export declare type
|
|
11
|
-
export declare type
|
|
65
|
+
export declare type RxRadioGroupPropsType = ExtractPropTypes<typeof RxRadioGroupProps>;
|
|
66
|
+
export declare type RxRadioGroupComponent = DefineComponent<typeof RxRadioGroupProps>;
|
|
67
|
+
export declare type RxRadioGroupInstance = InstanceType<DefineComponent<typeof RxRadioGroupProps>>;
|
|
68
|
+
export {};
|
|
@@ -3,14 +3,288 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
3
3
|
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
4
4
|
default: boolean;
|
|
5
5
|
};
|
|
6
|
+
rxRadioGroupOptions: {
|
|
7
|
+
type: import("vue").PropType<import("./RxRadioGroup").RadioType[]>;
|
|
8
|
+
default: any[];
|
|
9
|
+
};
|
|
10
|
+
toolTipFormatter: {
|
|
11
|
+
type: FunctionConstructor;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
toolTipConfig: {
|
|
15
|
+
type: import("vue").PropType<{} & {
|
|
16
|
+
readonly disabled?: boolean;
|
|
17
|
+
readonly onClick?: Function;
|
|
18
|
+
readonly style?: import("vue").StyleValue;
|
|
19
|
+
readonly id?: string;
|
|
20
|
+
readonly popperClass?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | {
|
|
21
|
+
[x: string]: boolean;
|
|
22
|
+
} | (string | {
|
|
23
|
+
[x: string]: boolean;
|
|
24
|
+
} | (string | {
|
|
25
|
+
[x: string]: boolean;
|
|
26
|
+
} | (string | {
|
|
27
|
+
[x: string]: boolean;
|
|
28
|
+
} | (string | {
|
|
29
|
+
[x: string]: boolean;
|
|
30
|
+
} | (string | {
|
|
31
|
+
[x: string]: boolean;
|
|
32
|
+
} | (string | {
|
|
33
|
+
[x: string]: boolean;
|
|
34
|
+
} | (string | {
|
|
35
|
+
[x: string]: boolean;
|
|
36
|
+
} | (string | {
|
|
37
|
+
[x: string]: boolean;
|
|
38
|
+
} | (string | {
|
|
39
|
+
[x: string]: boolean;
|
|
40
|
+
} | (string | any[] | {
|
|
41
|
+
[x: string]: boolean;
|
|
42
|
+
})[])[])[])[])[])[])[])[])[])[]>, unknown, unknown>;
|
|
43
|
+
readonly popperOptions?: unknown;
|
|
44
|
+
readonly zIndex?: number;
|
|
45
|
+
readonly onBlur?: Function;
|
|
46
|
+
readonly onFocus?: Function;
|
|
47
|
+
readonly onMouseleave?: Function;
|
|
48
|
+
readonly onMouseenter?: Function;
|
|
49
|
+
readonly onKeydown?: Function;
|
|
50
|
+
readonly visible?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<boolean>, unknown, unknown>;
|
|
51
|
+
readonly effect?: string;
|
|
52
|
+
readonly teleported?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
53
|
+
readonly persistent?: boolean;
|
|
54
|
+
openDelay?: number;
|
|
55
|
+
visibleArrow?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
56
|
+
readonly hideAfter?: number;
|
|
57
|
+
showArrow?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
58
|
+
readonly appendTo?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
59
|
+
readonly content?: string;
|
|
60
|
+
readonly rawContent?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
61
|
+
readonly ariaLabel?: string;
|
|
62
|
+
readonly transition?: string;
|
|
63
|
+
readonly className?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | {
|
|
64
|
+
[x: string]: boolean;
|
|
65
|
+
} | (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 | any[] | {
|
|
84
|
+
[x: string]: boolean;
|
|
85
|
+
})[])[])[])[])[])[])[])[])[])[]>, unknown, unknown>;
|
|
86
|
+
readonly enterable?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
87
|
+
readonly pure?: boolean;
|
|
88
|
+
readonly popperStyle?: import("vue").StyleValue;
|
|
89
|
+
readonly referenceEl?: HTMLElement;
|
|
90
|
+
readonly stopPopperMouseEvent?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
91
|
+
readonly boundariesPadding?: number;
|
|
92
|
+
readonly fallbackPlacements?: import("element-plus").Placement;
|
|
93
|
+
readonly gpuAcceleration?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
94
|
+
readonly offset?: number;
|
|
95
|
+
readonly placement?: import("element-plus/es/utils").BuildPropType<StringConstructor, import("element-plus").Placement, unknown>;
|
|
96
|
+
readonly strategy?: import("element-plus/es/utils").BuildPropType<StringConstructor, "fixed" | "absolute", unknown>;
|
|
97
|
+
readonly showAfter?: number;
|
|
98
|
+
readonly trigger?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<"focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]>, unknown, unknown>;
|
|
99
|
+
readonly virtualRef?: import("element-plus").Measurable;
|
|
100
|
+
readonly virtualTriggering?: boolean;
|
|
101
|
+
readonly onContextmenu?: Function;
|
|
102
|
+
readonly open?: boolean;
|
|
103
|
+
} & import("rx-compo/es/components/RxTooltip").ToolTipScrollbarCustomType>;
|
|
104
|
+
default: {
|
|
105
|
+
placement: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
gutter: import("vue-types").VueTypeValidableDef<number>;
|
|
109
|
+
justify: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
baseColProps: {
|
|
114
|
+
type: import("vue").PropType<import("./RxRadioGroup").ColProps>;
|
|
115
|
+
default: () => import("./RxRadioGroup").ColProps;
|
|
116
|
+
};
|
|
117
|
+
isButton: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
rxRadioAttr: {
|
|
121
|
+
type: import("vue").PropType<{
|
|
122
|
+
modelValue: string | number | boolean;
|
|
123
|
+
} & {
|
|
124
|
+
slots?: Function;
|
|
125
|
+
} & {
|
|
126
|
+
modelValue: string | number | boolean;
|
|
127
|
+
} & {
|
|
128
|
+
slots?: Function;
|
|
129
|
+
}>;
|
|
130
|
+
default: {};
|
|
131
|
+
};
|
|
6
132
|
}, {
|
|
7
|
-
|
|
133
|
+
rxRadioGroupValue: import("vue").Ref<string | number | boolean> | import("vue").WritableComputedRef<string | number | boolean>;
|
|
134
|
+
rxRadioGroupOptionsComputed: import("vue").ComputedRef<import("./RxRadioGroup").RadioType[]>;
|
|
135
|
+
isOverflowed: import("vue").Ref<boolean>;
|
|
136
|
+
rxToolTipConfig: import("vue").Ref<any>;
|
|
137
|
+
setItemRef: (el: any) => void;
|
|
138
|
+
handleMouseenter: (index: number) => void;
|
|
8
139
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
140
|
modelValue: {
|
|
10
141
|
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
11
142
|
default: boolean;
|
|
12
143
|
};
|
|
144
|
+
rxRadioGroupOptions: {
|
|
145
|
+
type: import("vue").PropType<import("./RxRadioGroup").RadioType[]>;
|
|
146
|
+
default: any[];
|
|
147
|
+
};
|
|
148
|
+
toolTipFormatter: {
|
|
149
|
+
type: FunctionConstructor;
|
|
150
|
+
default: any;
|
|
151
|
+
};
|
|
152
|
+
toolTipConfig: {
|
|
153
|
+
type: import("vue").PropType<{} & {
|
|
154
|
+
readonly disabled?: boolean;
|
|
155
|
+
readonly onClick?: Function;
|
|
156
|
+
readonly style?: import("vue").StyleValue;
|
|
157
|
+
readonly id?: string;
|
|
158
|
+
readonly popperClass?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<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 | {
|
|
175
|
+
[x: string]: boolean;
|
|
176
|
+
} | (string | {
|
|
177
|
+
[x: string]: boolean;
|
|
178
|
+
} | (string | any[] | {
|
|
179
|
+
[x: string]: boolean;
|
|
180
|
+
})[])[])[])[])[])[])[])[])[])[]>, unknown, unknown>;
|
|
181
|
+
readonly popperOptions?: unknown;
|
|
182
|
+
readonly zIndex?: number;
|
|
183
|
+
readonly onBlur?: Function;
|
|
184
|
+
readonly onFocus?: Function;
|
|
185
|
+
readonly onMouseleave?: Function;
|
|
186
|
+
readonly onMouseenter?: Function;
|
|
187
|
+
readonly onKeydown?: Function;
|
|
188
|
+
readonly visible?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<boolean>, unknown, unknown>;
|
|
189
|
+
readonly effect?: string;
|
|
190
|
+
readonly teleported?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
191
|
+
readonly persistent?: boolean;
|
|
192
|
+
openDelay?: number;
|
|
193
|
+
visibleArrow?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
194
|
+
readonly hideAfter?: number;
|
|
195
|
+
showArrow?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
196
|
+
readonly appendTo?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | HTMLElement>, unknown, unknown>;
|
|
197
|
+
readonly content?: string;
|
|
198
|
+
readonly rawContent?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
199
|
+
readonly ariaLabel?: string;
|
|
200
|
+
readonly transition?: string;
|
|
201
|
+
readonly className?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<string | {
|
|
202
|
+
[x: string]: boolean;
|
|
203
|
+
} | (string | {
|
|
204
|
+
[x: string]: boolean;
|
|
205
|
+
} | (string | {
|
|
206
|
+
[x: string]: boolean;
|
|
207
|
+
} | (string | {
|
|
208
|
+
[x: string]: boolean;
|
|
209
|
+
} | (string | {
|
|
210
|
+
[x: string]: boolean;
|
|
211
|
+
} | (string | {
|
|
212
|
+
[x: string]: boolean;
|
|
213
|
+
} | (string | {
|
|
214
|
+
[x: string]: boolean;
|
|
215
|
+
} | (string | {
|
|
216
|
+
[x: string]: boolean;
|
|
217
|
+
} | (string | {
|
|
218
|
+
[x: string]: boolean;
|
|
219
|
+
} | (string | {
|
|
220
|
+
[x: string]: boolean;
|
|
221
|
+
} | (string | any[] | {
|
|
222
|
+
[x: string]: boolean;
|
|
223
|
+
})[])[])[])[])[])[])[])[])[])[]>, unknown, unknown>;
|
|
224
|
+
readonly enterable?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
225
|
+
readonly pure?: boolean;
|
|
226
|
+
readonly popperStyle?: import("vue").StyleValue;
|
|
227
|
+
readonly referenceEl?: HTMLElement;
|
|
228
|
+
readonly stopPopperMouseEvent?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
229
|
+
readonly boundariesPadding?: number;
|
|
230
|
+
readonly fallbackPlacements?: import("element-plus").Placement;
|
|
231
|
+
readonly gpuAcceleration?: import("element-plus/es/utils").BuildPropType<BooleanConstructor, unknown, unknown>;
|
|
232
|
+
readonly offset?: number;
|
|
233
|
+
readonly placement?: import("element-plus/es/utils").BuildPropType<StringConstructor, import("element-plus").Placement, unknown>;
|
|
234
|
+
readonly strategy?: import("element-plus/es/utils").BuildPropType<StringConstructor, "fixed" | "absolute", unknown>;
|
|
235
|
+
readonly showAfter?: number;
|
|
236
|
+
readonly trigger?: import("element-plus/es/utils").BuildPropType<import("element-plus/es/utils").PropWrapper<"focus" | "hover" | "click" | "contextmenu" | ("focus" | "hover" | "click" | "contextmenu")[]>, unknown, unknown>;
|
|
237
|
+
readonly virtualRef?: import("element-plus").Measurable;
|
|
238
|
+
readonly virtualTriggering?: boolean;
|
|
239
|
+
readonly onContextmenu?: Function;
|
|
240
|
+
readonly open?: boolean;
|
|
241
|
+
} & import("rx-compo/es/components/RxTooltip").ToolTipScrollbarCustomType>;
|
|
242
|
+
default: {
|
|
243
|
+
placement: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
gutter: import("vue-types").VueTypeValidableDef<number>;
|
|
247
|
+
justify: {
|
|
248
|
+
type: StringConstructor;
|
|
249
|
+
default: string;
|
|
250
|
+
};
|
|
251
|
+
baseColProps: {
|
|
252
|
+
type: import("vue").PropType<import("./RxRadioGroup").ColProps>;
|
|
253
|
+
default: () => import("./RxRadioGroup").ColProps;
|
|
254
|
+
};
|
|
255
|
+
isButton: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
256
|
+
default: boolean;
|
|
257
|
+
};
|
|
258
|
+
rxRadioAttr: {
|
|
259
|
+
type: import("vue").PropType<{
|
|
260
|
+
modelValue: string | number | boolean;
|
|
261
|
+
} & {
|
|
262
|
+
slots?: Function;
|
|
263
|
+
} & {
|
|
264
|
+
modelValue: string | number | boolean;
|
|
265
|
+
} & {
|
|
266
|
+
slots?: Function;
|
|
267
|
+
}>;
|
|
268
|
+
default: {};
|
|
269
|
+
};
|
|
13
270
|
}>>, {
|
|
14
271
|
modelValue: string | number | boolean;
|
|
272
|
+
toolTipConfig: {
|
|
273
|
+
placement: string;
|
|
274
|
+
};
|
|
275
|
+
justify: string;
|
|
276
|
+
baseColProps: import("./RxRadioGroup").ColProps;
|
|
277
|
+
toolTipFormatter: Function;
|
|
278
|
+
isButton: boolean;
|
|
279
|
+
rxRadioGroupOptions: import("./RxRadioGroup").RadioType[];
|
|
280
|
+
rxRadioAttr: {
|
|
281
|
+
modelValue: string | number | boolean;
|
|
282
|
+
} & {
|
|
283
|
+
slots?: Function;
|
|
284
|
+
} & {
|
|
285
|
+
modelValue: string | number | boolean;
|
|
286
|
+
} & {
|
|
287
|
+
slots?: Function;
|
|
288
|
+
};
|
|
15
289
|
}>;
|
|
16
290
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { RxRadioGroupPropsType } from '../RxRadioGroup';
|
|
3
|
+
export declare function useRadioGroup(props: RxRadioGroupPropsType, checkboxGroupValue: Ref<any>): {
|
|
4
|
+
checkboxGroupValue: Ref<any>;
|
|
5
|
+
itemsRef: any;
|
|
6
|
+
rxRadioGroupOptionsComputed: import("vue").ComputedRef<import("../RxRadioGroup").RadioType[]>;
|
|
7
|
+
setItemRef: (el: any) => void;
|
|
8
|
+
};
|
|
@@ -1 +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:[]},formatter:{type:Function,default:null}};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:p,updateRxSelectDropDown:u,getRxSelectDropDownConfig:a}=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:i,updateRxSelectPlusConfig:f,getRxSelectPlusConfig:x}=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,p);return t.onMounted((()=>{!function(e,t){e(),t()}(u,f)})),n({rxSelectRef:c,updateRxSelectPlusConfig:f,updateRxSelectDropDown:u,getRxSelectPlusConfig:x,getRxSelectDropDownConfig:a}),{rxSelectRef:c,rxSelectConfig:i,rxSelectModelValue:s}}});c.render=function(e,o,l,r,n,c){const s=t.resolveComponent("rx-option"),p=t.resolveComponent("el-select");return t.openBlock(),t.createBlock(p,t.mergeProps({modelValue:e.rxSelectModelValue,"onUpdate:modelValue":o[0]||(o[0]=t=>e.rxSelectModelValue=t),class:"rx-select",ref:"rxSelectRef"},{...e.$attrs,...e.rxSelectConfig}),t.createSlots({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,(
|
|
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:[]},formatter:{type:Function,default:null}};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:p,updateRxSelectDropDown:u,getRxSelectDropDownConfig:a}=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:i,updateRxSelectPlusConfig:f,getRxSelectPlusConfig:x}=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,p);return t.onMounted((()=>{!function(e,t){e(),t()}(u,f)})),n({rxSelectRef:c,updateRxSelectPlusConfig:f,updateRxSelectDropDown:u,getRxSelectPlusConfig:x,getRxSelectDropDownConfig:a}),{rxSelectRef:c,rxSelectConfig:i,rxSelectModelValue:s}}});c.render=function(e,o,l,r,n,c){const s=t.resolveComponent("rx-option"),p=t.resolveComponent("el-select");return t.openBlock(),t.createBlock(p,t.mergeProps({modelValue:e.rxSelectModelValue,"onUpdate:modelValue":o[0]||(o[0]=t=>e.rxSelectModelValue=t),class:"rx-select",ref:"rxSelectRef"},{...e.$attrs,...e.rxSelectConfig}),t.createSlots({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,(o=>(t.openBlock(),t.createBlock(s,t.mergeProps({key:o},o),{default:t.withCtx((()=>[o.slots?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(o.slots.call(null,o)),t.normalizeProps(t.mergeProps({key:0},o)),null,16)):e.formatter?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.formatter.call(null,o)),t.normalizeProps(t.mergeProps({key:1},o)),null,16)):t.createCommentVNode("v-if",!0)])),_:2},1040)))),128))])),_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"prefix")]))}:void 0,e.$slots.empty?{name:"empty",fn:t.withCtx((()=>[t.renderSlot(e.$slots,"empty")]))}:void 0]),1040,["modelValue"])},c.__file="packages/components/RxSelect/src/RxSelect.vue";const s=e.withInstall(c);exports.RxSelect=s,exports.default=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.el-dialog__headerbtn[data-v-0a43c8c5]{outline:none}
|