@fmdevui/fm-dev 1.0.45 → 1.0.46

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.
@@ -1,3 +1,4 @@
1
+ import { CustomAxiosRequestConfig } from '../utils/request';
1
2
  import { AxiosRequestConfig, AxiosResponse } from 'axios';
2
3
  export declare const useBaseApi: (module: string, options?: AxiosRequestConfig) => {
3
4
  baseUrl: string;
@@ -19,9 +20,9 @@ export declare const useBaseApi: (module: string, options?: AxiosRequestConfig)
19
20
  importData: (file: any, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
20
21
  uploadFile: (params: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
21
22
  };
22
- export declare const useApi: (url: string, options?: AxiosRequestConfig) => {
23
+ export declare const useApi: (url: string, options?: CustomAxiosRequestConfig) => {
23
24
  baseUrl: string;
24
- request: <T>(config: AxiosRequestConfig<T>, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
25
+ request: <T>(config: CustomAxiosRequestConfig, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
25
26
  post: (data: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
26
27
  get: (params: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
27
28
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.45 */
1
+ /*! fm-dev v1.0.46 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
package/index.min.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.45 */(function(H,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("crypto"),require("url"),require("http"),require("https"),require("util"),require("stream"),require("assert"),require("zlib"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","crypto","url","http","https","util","stream","assert","zlib","element-plus"],a):(H=typeof globalThis<"u"?globalThis:H||self,a(H.FmPlus={},H.Vue,H.crypto,H.require$$0,H.require$$1,H.require$$2,H.util,H.stream,H.require$$4,H.zlib,H.ElementPlus))})(this,function(H,a,C1,Ya,$i,ji,Gi,at,y1,xt,Le){"use strict";const b1={class:"fm-transfer-panel"},w1={class:"fm-transfer-panel__header"},T1={class:"fm-transfer-panel__body"},k1={class:"fm-transfer-buttons__item"},B1={class:"fm-transfer-buttons__item"},A1={class:"fm-transfer-buttons__item"},S1={class:"fm-transfer-buttons__item"},F1={class:"fm-transfer-panel"},D1={class:"fm-transfer-panel__header"},P1={class:"fm-transfer-panel__body"};var N1=a.defineComponent({name:"FmTransfer",__name:"index",props:{leftTitle:String,rightTitle:String,options:{type:Object,default:()=>({value:"id",label:"name",disabled:"disabled"})},leftData:{type:Array,default:()=>[]},rightData:{type:Array,default:()=>[]}},emits:["left","right","allLeft","allRight","update:leftData","update:rightData"],setup(e,{emit:t}){const r=e,n=t,o=a.reactive({leftAllChecked:!1,leftKeyword:"",leftChecked:[],rightAllChecked:!1,rightKeyword:"",rightChecked:[]}),i=a.computed(()=>{let h=r.leftData.filter(_=>_[r.options.label].toLowerCase().includes(o.leftKeyword.toLowerCase()));if(o.leftChecked.length>0)for(let _=o.leftChecked.length-1;_>=0;_--)h.findIndex(g=>g[r.options.value]==o.leftChecked[_])==-1&&o.leftChecked.splice(_,1);return h}),l=h=>{o.leftChecked=h?i.value.filter(_=>_[r.options.disabled]==!1).map(_=>_[r.options.value]):[]},s=a.computed(()=>{const h=o.leftChecked.length;return h>0&&h<i.value.filter(E=>E[r.options.disabled]==!1).length});a.watch(()=>o.leftChecked,h=>{o.leftAllChecked=h.length>0&&h.length==i.value.filter(_=>_[r.options.disabled]==!1).length});const c=a.computed(()=>{let h=r.rightData.filter(_=>_[r.options.label].toLowerCase().includes(o.rightKeyword.toLowerCase()));if(o.rightChecked.length>0)for(let _=o.rightChecked.length-1;_>=0;_--)h.findIndex(g=>g[r.options.value]==o.rightChecked[_])==-1&&o.rightChecked.splice(_,1);return h}),u=h=>{o.rightChecked=h?c.value.filter(_=>_[r.options.disabled]==!1).map(_=>_[r.options.value]):[]},d=a.computed(()=>{const h=o.rightChecked.length;return h>0&&h<c.value.filter(E=>E[r.options.disabled]==!1).length});a.watch(()=>o.rightChecked,h=>{o.rightAllChecked=h.length>0&&h.length==c.value.filter(_=>_[r.options.disabled]==!1).length});const m=h=>{if(h[r.options.value]&&h[r.options.disabled]===!1){let _=r.leftData.filter(g=>h[r.options.value]==g[r.options.value]),E=r.leftData.filter(g=>h[r.options.value]!=g[r.options.value]);n("update:leftData",E),n("update:rightData",r.rightData.concat(_)),n("right"),o.leftChecked=o.leftChecked.filter(g=>h[r.options.value]!=g)}},p=()=>{if(o.leftChecked?.length>0){let h=r.leftData.filter(E=>o.leftChecked.some(g=>g==E[r.options.value])),_=r.leftData.filter(E=>o.leftChecked.every(g=>g!=E[r.options.value]));n("update:leftData",_),n("update:rightData",r.rightData.concat(h)),n("right"),o.leftChecked=[]}},x=()=>{if(i.value?.length>0){let h=i.value.filter(g=>g[r.options.disabled]==!1),_=r.leftData.filter(g=>h.some(y=>y[r.options.value]==g[r.options.value])),E=r.leftData.filter(g=>h.every(y=>y[r.options.value]!=g[r.options.value]));n("update:leftData",E),n("update:rightData",r.rightData.concat(_)),n("allRight"),o.leftChecked=[]}},f=h=>{if(h[r.options.value]&&h[r.options.disabled]===!1){let _=r.rightData.filter(g=>h[r.options.value]==g[r.options.value]),E=r.rightData.filter(g=>h[r.options.value]!=g[r.options.value]);n("update:leftData",r.leftData.concat(_)),n("update:rightData",E),n("left"),o.rightChecked=o.rightChecked.filter(g=>h[r.options.value]!=g)}},C=()=>{if(o.rightChecked?.length>0){let h=r.rightData.filter(E=>o.rightChecked.some(g=>g==E[r.options.value])),_=r.rightData.filter(E=>o.rightChecked.every(g=>g!=E[r.options.value]));n("update:leftData",r.leftData.concat(h)),n("update:rightData",_),n("left"),o.rightChecked=[]}},v=()=>{if(c.value?.length>0){let h=c.value.filter(g=>g[r.options.disabled]==!1),_=r.rightData.filter(g=>h.some(y=>y[r.options.value]==g[r.options.value])),E=r.rightData.filter(g=>h.every(y=>y[r.options.value]!=g[r.options.value]));n("update:leftData",r.leftData.concat(_)),n("update:rightData",E),n("allLeft"),o.rightChecked=[]}};return(h,_)=>{const E=a.resolveComponent("el-checkbox"),g=a.resolveComponent("el-input"),y=a.resolveComponent("el-checkbox-group"),w=a.resolveComponent("el-col"),b=a.resolveComponent("el-button"),k=a.resolveComponent("el-row");return a.openBlock(),a.createBlock(k,{gutter:10},{default:a.withCtx(()=>[a.createVNode(w,{span:10},{default:a.withCtx(()=>[a.createElementVNode("div",b1,[a.createElementVNode("p",w1,[a.createVNode(E,{modelValue:o.leftAllChecked,"onUpdate:modelValue":_[0]||(_[0]=S=>o.leftAllChecked=S),indeterminate:s.value,"validate-event":!1,onChange:l},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.leftTitle),1)]),_:1},8,["modelValue","indeterminate"]),a.createElementVNode("span",null,a.toDisplayString(o.leftChecked.length)+"/"+a.toDisplayString(r.leftData.length),1)]),a.createElementVNode("div",T1,[a.createVNode(g,{class:"transfer-panel__filter",modelValue:o.leftKeyword,"onUpdate:modelValue":_[1]||(_[1]=S=>o.leftKeyword=S),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),a.withDirectives(a.createVNode(y,{modelValue:o.leftChecked,"onUpdate:modelValue":_[2]||(_[2]=S=>o.leftChecked=S),"validate-event":!1,class:"fm-transfer-panel__list"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(S,T)=>(a.openBlock(),a.createBlock(E,{key:T,value:S[r.options.value],label:S[r.options.label],disabled:S[r.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:B=>m(S)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[a.vShow,!0]])])])]),_:1}),a.createVNode(w,{span:4,class:"fm-transfer-buttons"},{default:a.withCtx(()=>[a.createElementVNode("div",k1,[a.createVNode(b,{type:"primary",style:{},icon:"ele-ArrowRight",onClick:p})]),a.createElementVNode("div",B1,[a.createVNode(b,{type:"primary",style:{},icon:"ele-ArrowLeft",onClick:C})]),a.createElementVNode("div",A1,[a.createVNode(b,{type:"primary",style:{},icon:"ele-DArrowRight",onClick:x})]),a.createElementVNode("div",S1,[a.createVNode(b,{type:"primary",style:{},icon:"ele-DArrowLeft",onClick:v})])]),_:1}),a.createVNode(w,{span:10},{default:a.withCtx(()=>[a.createElementVNode("div",F1,[a.createElementVNode("p",D1,[a.createVNode(E,{modelValue:o.rightAllChecked,"onUpdate:modelValue":_[3]||(_[3]=S=>o.rightAllChecked=S),indeterminate:d.value,"validate-event":!1,onChange:u},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.rightTitle),1)]),_:1},8,["modelValue","indeterminate"]),a.createElementVNode("span",null,a.toDisplayString(o.rightChecked.length)+"/"+a.toDisplayString(r.rightData.length),1)]),a.createElementVNode("div",P1,[a.createVNode(g,{class:"transfer-panel__filter",modelValue:o.rightKeyword,"onUpdate:modelValue":_[4]||(_[4]=S=>o.rightKeyword=S),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),a.withDirectives(a.createVNode(y,{modelValue:o.rightChecked,"onUpdate:modelValue":_[5]||(_[5]=S=>o.rightChecked=S),"validate-event":!1,class:"fm-transfer-panel__list"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(S,T)=>(a.openBlock(),a.createBlock(E,{key:T,value:S[r.options.value],label:S[r.options.label],disabled:S[r.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:B=>f(S)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[a.vShow,!0]])])])]),_:1})]),_:1})}}});const L1={class:"notice-bar-warp-text-box"},O1=["innerHTML"];var M1=a.defineComponent({name:"FmNoticeBar",__name:"index",props:{mode:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"var(--el-color-warning)"},background:{type:String,default:"var(--el-color-warning-light-9)"},size:{type:[Number,String],default:14},height:{type:Number,default:40},delay:{type:Number,default:1},speed:{type:Number,default:100},scrollable:{type:Boolean,default:!1},leftIcon:{type:String,default:"iconfont icon-tongzhi2"},rightIcon:{type:String,default:""}},emits:["close","link"],setup(e,{emit:t}){const r=e,n=a.ref(null),o=a.ref(null),i=a.reactive({isMode:!1,warpOWidth:0,textOWidth:0,animationDuration:0});a.onMounted(async()=>{r.scrollable||l()});const l=()=>{a.nextTick(()=>{if(n.value&&o.value){i.warpOWidth=n.value.offsetWidth,i.textOWidth=o.value.scrollWidth,i.animationDuration=(i.textOWidth+i.warpOWidth)/r.speed,o.value.style.animation="none",o.value.offsetHeight,o.value.style.animation=`marquee ${i.animationDuration}s linear infinite`;const s=`
1
+ /*! fm-dev v1.0.46 */(function(H,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("crypto"),require("url"),require("http"),require("https"),require("util"),require("stream"),require("assert"),require("zlib"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","crypto","url","http","https","util","stream","assert","zlib","element-plus"],a):(H=typeof globalThis<"u"?globalThis:H||self,a(H.FmPlus={},H.Vue,H.crypto,H.require$$0,H.require$$1,H.require$$2,H.util,H.stream,H.require$$4,H.zlib,H.ElementPlus))})(this,function(H,a,C1,Ya,$i,ji,Gi,at,y1,xt,Le){"use strict";const b1={class:"fm-transfer-panel"},w1={class:"fm-transfer-panel__header"},T1={class:"fm-transfer-panel__body"},k1={class:"fm-transfer-buttons__item"},B1={class:"fm-transfer-buttons__item"},A1={class:"fm-transfer-buttons__item"},S1={class:"fm-transfer-buttons__item"},F1={class:"fm-transfer-panel"},D1={class:"fm-transfer-panel__header"},P1={class:"fm-transfer-panel__body"};var N1=a.defineComponent({name:"FmTransfer",__name:"index",props:{leftTitle:String,rightTitle:String,options:{type:Object,default:()=>({value:"id",label:"name",disabled:"disabled"})},leftData:{type:Array,default:()=>[]},rightData:{type:Array,default:()=>[]}},emits:["left","right","allLeft","allRight","update:leftData","update:rightData"],setup(e,{emit:t}){const r=e,n=t,o=a.reactive({leftAllChecked:!1,leftKeyword:"",leftChecked:[],rightAllChecked:!1,rightKeyword:"",rightChecked:[]}),i=a.computed(()=>{let h=r.leftData.filter(_=>_[r.options.label].toLowerCase().includes(o.leftKeyword.toLowerCase()));if(o.leftChecked.length>0)for(let _=o.leftChecked.length-1;_>=0;_--)h.findIndex(g=>g[r.options.value]==o.leftChecked[_])==-1&&o.leftChecked.splice(_,1);return h}),l=h=>{o.leftChecked=h?i.value.filter(_=>_[r.options.disabled]==!1).map(_=>_[r.options.value]):[]},s=a.computed(()=>{const h=o.leftChecked.length;return h>0&&h<i.value.filter(E=>E[r.options.disabled]==!1).length});a.watch(()=>o.leftChecked,h=>{o.leftAllChecked=h.length>0&&h.length==i.value.filter(_=>_[r.options.disabled]==!1).length});const c=a.computed(()=>{let h=r.rightData.filter(_=>_[r.options.label].toLowerCase().includes(o.rightKeyword.toLowerCase()));if(o.rightChecked.length>0)for(let _=o.rightChecked.length-1;_>=0;_--)h.findIndex(g=>g[r.options.value]==o.rightChecked[_])==-1&&o.rightChecked.splice(_,1);return h}),u=h=>{o.rightChecked=h?c.value.filter(_=>_[r.options.disabled]==!1).map(_=>_[r.options.value]):[]},d=a.computed(()=>{const h=o.rightChecked.length;return h>0&&h<c.value.filter(E=>E[r.options.disabled]==!1).length});a.watch(()=>o.rightChecked,h=>{o.rightAllChecked=h.length>0&&h.length==c.value.filter(_=>_[r.options.disabled]==!1).length});const m=h=>{if(h[r.options.value]&&h[r.options.disabled]===!1){let _=r.leftData.filter(g=>h[r.options.value]==g[r.options.value]),E=r.leftData.filter(g=>h[r.options.value]!=g[r.options.value]);n("update:leftData",E),n("update:rightData",r.rightData.concat(_)),n("right"),o.leftChecked=o.leftChecked.filter(g=>h[r.options.value]!=g)}},p=()=>{if(o.leftChecked?.length>0){let h=r.leftData.filter(E=>o.leftChecked.some(g=>g==E[r.options.value])),_=r.leftData.filter(E=>o.leftChecked.every(g=>g!=E[r.options.value]));n("update:leftData",_),n("update:rightData",r.rightData.concat(h)),n("right"),o.leftChecked=[]}},x=()=>{if(i.value?.length>0){let h=i.value.filter(g=>g[r.options.disabled]==!1),_=r.leftData.filter(g=>h.some(y=>y[r.options.value]==g[r.options.value])),E=r.leftData.filter(g=>h.every(y=>y[r.options.value]!=g[r.options.value]));n("update:leftData",E),n("update:rightData",r.rightData.concat(_)),n("allRight"),o.leftChecked=[]}},f=h=>{if(h[r.options.value]&&h[r.options.disabled]===!1){let _=r.rightData.filter(g=>h[r.options.value]==g[r.options.value]),E=r.rightData.filter(g=>h[r.options.value]!=g[r.options.value]);n("update:leftData",r.leftData.concat(_)),n("update:rightData",E),n("left"),o.rightChecked=o.rightChecked.filter(g=>h[r.options.value]!=g)}},C=()=>{if(o.rightChecked?.length>0){let h=r.rightData.filter(E=>o.rightChecked.some(g=>g==E[r.options.value])),_=r.rightData.filter(E=>o.rightChecked.every(g=>g!=E[r.options.value]));n("update:leftData",r.leftData.concat(h)),n("update:rightData",_),n("left"),o.rightChecked=[]}},v=()=>{if(c.value?.length>0){let h=c.value.filter(g=>g[r.options.disabled]==!1),_=r.rightData.filter(g=>h.some(y=>y[r.options.value]==g[r.options.value])),E=r.rightData.filter(g=>h.every(y=>y[r.options.value]!=g[r.options.value]));n("update:leftData",r.leftData.concat(_)),n("update:rightData",E),n("allLeft"),o.rightChecked=[]}};return(h,_)=>{const E=a.resolveComponent("el-checkbox"),g=a.resolveComponent("el-input"),y=a.resolveComponent("el-checkbox-group"),w=a.resolveComponent("el-col"),b=a.resolveComponent("el-button"),k=a.resolveComponent("el-row");return a.openBlock(),a.createBlock(k,{gutter:10},{default:a.withCtx(()=>[a.createVNode(w,{span:10},{default:a.withCtx(()=>[a.createElementVNode("div",b1,[a.createElementVNode("p",w1,[a.createVNode(E,{modelValue:o.leftAllChecked,"onUpdate:modelValue":_[0]||(_[0]=S=>o.leftAllChecked=S),indeterminate:s.value,"validate-event":!1,onChange:l},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.leftTitle),1)]),_:1},8,["modelValue","indeterminate"]),a.createElementVNode("span",null,a.toDisplayString(o.leftChecked.length)+"/"+a.toDisplayString(r.leftData.length),1)]),a.createElementVNode("div",T1,[a.createVNode(g,{class:"transfer-panel__filter",modelValue:o.leftKeyword,"onUpdate:modelValue":_[1]||(_[1]=S=>o.leftKeyword=S),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),a.withDirectives(a.createVNode(y,{modelValue:o.leftChecked,"onUpdate:modelValue":_[2]||(_[2]=S=>o.leftChecked=S),"validate-event":!1,class:"fm-transfer-panel__list"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value,(S,T)=>(a.openBlock(),a.createBlock(E,{key:T,value:S[r.options.value],label:S[r.options.label],disabled:S[r.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:B=>m(S)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[a.vShow,!0]])])])]),_:1}),a.createVNode(w,{span:4,class:"fm-transfer-buttons"},{default:a.withCtx(()=>[a.createElementVNode("div",k1,[a.createVNode(b,{type:"primary",style:{},icon:"ele-ArrowRight",onClick:p})]),a.createElementVNode("div",B1,[a.createVNode(b,{type:"primary",style:{},icon:"ele-ArrowLeft",onClick:C})]),a.createElementVNode("div",A1,[a.createVNode(b,{type:"primary",style:{},icon:"ele-DArrowRight",onClick:x})]),a.createElementVNode("div",S1,[a.createVNode(b,{type:"primary",style:{},icon:"ele-DArrowLeft",onClick:v})])]),_:1}),a.createVNode(w,{span:10},{default:a.withCtx(()=>[a.createElementVNode("div",F1,[a.createElementVNode("p",D1,[a.createVNode(E,{modelValue:o.rightAllChecked,"onUpdate:modelValue":_[3]||(_[3]=S=>o.rightAllChecked=S),indeterminate:d.value,"validate-event":!1,onChange:u},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(r.rightTitle),1)]),_:1},8,["modelValue","indeterminate"]),a.createElementVNode("span",null,a.toDisplayString(o.rightChecked.length)+"/"+a.toDisplayString(r.rightData.length),1)]),a.createElementVNode("div",P1,[a.createVNode(g,{class:"transfer-panel__filter",modelValue:o.rightKeyword,"onUpdate:modelValue":_[4]||(_[4]=S=>o.rightKeyword=S),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),a.withDirectives(a.createVNode(y,{modelValue:o.rightChecked,"onUpdate:modelValue":_[5]||(_[5]=S=>o.rightChecked=S),"validate-event":!1,class:"fm-transfer-panel__list"},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(c.value,(S,T)=>(a.openBlock(),a.createBlock(E,{key:T,value:S[r.options.value],label:S[r.options.label],disabled:S[r.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:B=>f(S)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[a.vShow,!0]])])])]),_:1})]),_:1})}}});const L1={class:"notice-bar-warp-text-box"},O1=["innerHTML"];var M1=a.defineComponent({name:"FmNoticeBar",__name:"index",props:{mode:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"var(--el-color-warning)"},background:{type:String,default:"var(--el-color-warning-light-9)"},size:{type:[Number,String],default:14},height:{type:Number,default:40},delay:{type:Number,default:1},speed:{type:Number,default:100},scrollable:{type:Boolean,default:!1},leftIcon:{type:String,default:"iconfont icon-tongzhi2"},rightIcon:{type:String,default:""}},emits:["close","link"],setup(e,{emit:t}){const r=e,n=a.ref(null),o=a.ref(null),i=a.reactive({isMode:!1,warpOWidth:0,textOWidth:0,animationDuration:0});a.onMounted(async()=>{r.scrollable||l()});const l=()=>{a.nextTick(()=>{if(n.value&&o.value){i.warpOWidth=n.value.offsetWidth,i.textOWidth=o.value.scrollWidth,i.animationDuration=(i.textOWidth+i.warpOWidth)/r.speed,o.value.style.animation="none",o.value.offsetHeight,o.value.style.animation=`marquee ${i.animationDuration}s linear infinite`;const s=`
2
2
  @keyframes marquee {
3
3
  0% { transform: translateX(${i.warpOWidth}px); }
4
4
  100% { transform: translateX(-${i.textOWidth}px); }
package/index.min.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.45 */import{defineComponent as S,reactive as Ln,computed as Oe,watch as It,resolveComponent as or,createBlock as On,openBlock as T,withCtx as At,createVNode as qe,createElementVNode as x,createTextVNode as T0,toDisplayString as ct,withDirectives as ir,createElementBlock as A,Fragment as Mn,renderList as A0,vShow as _o,ref as Vt,onMounted as S0,nextTick as Rn,normalizeStyle as Qe,createCommentVNode as vo,normalizeClass as lr,withModifiers as xo,resolveDynamicComponent as dd,effectScope as Eo,getCurrentInstance as sr,shallowRef as pd,isRef as ur,inject as F0,onUnmounted as md,h as D0,Text as fd,markRaw as Ht,toRaw as Mr,hasInjectionContext as hd,unref as gd,isReactive as Co,toRef as bo,getCurrentScope as _d,onScopeDispose as vd,toRefs as k0,resolveDirective as yo}from"vue";import xd from"crypto";import wo from"url";import B0 from"http";import P0 from"https";import L0 from"util";import xt,{Readable as Ed}from"stream";import Cd from"assert";import St from"zlib";import{ElMessage as $e,ElLoading as bd,dayjs as yd}from"element-plus";const wd={class:"fm-transfer-panel"},Td={class:"fm-transfer-panel__header"},Ad={class:"fm-transfer-panel__body"},Sd={class:"fm-transfer-buttons__item"},Fd={class:"fm-transfer-buttons__item"},Dd={class:"fm-transfer-buttons__item"},kd={class:"fm-transfer-buttons__item"},Bd={class:"fm-transfer-panel"},Pd={class:"fm-transfer-panel__header"},Ld={class:"fm-transfer-panel__body"};var Od=S({name:"FmTransfer",__name:"index",props:{leftTitle:String,rightTitle:String,options:{type:Object,default:()=>({value:"id",label:"name",disabled:"disabled"})},leftData:{type:Array,default:()=>[]},rightData:{type:Array,default:()=>[]}},emits:["left","right","allLeft","allRight","update:leftData","update:rightData"],setup(e,{emit:t}){const r=e,n=t,a=Ln({leftAllChecked:!1,leftKeyword:"",leftChecked:[],rightAllChecked:!1,rightKeyword:"",rightChecked:[]}),o=Oe(()=>{let f=r.leftData.filter(g=>g[r.options.label].toLowerCase().includes(a.leftKeyword.toLowerCase()));if(a.leftChecked.length>0)for(let g=a.leftChecked.length-1;g>=0;g--)f.findIndex(h=>h[r.options.value]==a.leftChecked[g])==-1&&a.leftChecked.splice(g,1);return f}),i=f=>{a.leftChecked=f?o.value.filter(g=>g[r.options.disabled]==!1).map(g=>g[r.options.value]):[]},l=Oe(()=>{const f=a.leftChecked.length;return f>0&&f<o.value.filter(E=>E[r.options.disabled]==!1).length});It(()=>a.leftChecked,f=>{a.leftAllChecked=f.length>0&&f.length==o.value.filter(g=>g[r.options.disabled]==!1).length});const u=Oe(()=>{let f=r.rightData.filter(g=>g[r.options.label].toLowerCase().includes(a.rightKeyword.toLowerCase()));if(a.rightChecked.length>0)for(let g=a.rightChecked.length-1;g>=0;g--)f.findIndex(h=>h[r.options.value]==a.rightChecked[g])==-1&&a.rightChecked.splice(g,1);return f}),s=f=>{a.rightChecked=f?u.value.filter(g=>g[r.options.disabled]==!1).map(g=>g[r.options.value]):[]},c=Oe(()=>{const f=a.rightChecked.length;return f>0&&f<u.value.filter(E=>E[r.options.disabled]==!1).length});It(()=>a.rightChecked,f=>{a.rightAllChecked=f.length>0&&f.length==u.value.filter(g=>g[r.options.disabled]==!1).length});const p=f=>{if(f[r.options.value]&&f[r.options.disabled]===!1){let g=r.leftData.filter(h=>f[r.options.value]==h[r.options.value]),E=r.leftData.filter(h=>f[r.options.value]!=h[r.options.value]);n("update:leftData",E),n("update:rightData",r.rightData.concat(g)),n("right"),a.leftChecked=a.leftChecked.filter(h=>f[r.options.value]!=h)}},d=()=>{if(a.leftChecked?.length>0){let f=r.leftData.filter(E=>a.leftChecked.some(h=>h==E[r.options.value])),g=r.leftData.filter(E=>a.leftChecked.every(h=>h!=E[r.options.value]));n("update:leftData",g),n("update:rightData",r.rightData.concat(f)),n("right"),a.leftChecked=[]}},_=()=>{if(o.value?.length>0){let f=o.value.filter(h=>h[r.options.disabled]==!1),g=r.leftData.filter(h=>f.some(b=>b[r.options.value]==h[r.options.value])),E=r.leftData.filter(h=>f.every(b=>b[r.options.value]!=h[r.options.value]));n("update:leftData",E),n("update:rightData",r.rightData.concat(g)),n("allRight"),a.leftChecked=[]}},m=f=>{if(f[r.options.value]&&f[r.options.disabled]===!1){let g=r.rightData.filter(h=>f[r.options.value]==h[r.options.value]),E=r.rightData.filter(h=>f[r.options.value]!=h[r.options.value]);n("update:leftData",r.leftData.concat(g)),n("update:rightData",E),n("left"),a.rightChecked=a.rightChecked.filter(h=>f[r.options.value]!=h)}},C=()=>{if(a.rightChecked?.length>0){let f=r.rightData.filter(E=>a.rightChecked.some(h=>h==E[r.options.value])),g=r.rightData.filter(E=>a.rightChecked.every(h=>h!=E[r.options.value]));n("update:leftData",r.leftData.concat(f)),n("update:rightData",g),n("left"),a.rightChecked=[]}},v=()=>{if(u.value?.length>0){let f=u.value.filter(h=>h[r.options.disabled]==!1),g=r.rightData.filter(h=>f.some(b=>b[r.options.value]==h[r.options.value])),E=r.rightData.filter(h=>f.every(b=>b[r.options.value]!=h[r.options.value]));n("update:leftData",r.leftData.concat(g)),n("update:rightData",E),n("allLeft"),a.rightChecked=[]}};return(f,g)=>{const E=or("el-checkbox"),h=or("el-input"),b=or("el-checkbox-group"),w=or("el-col"),y=or("el-button"),D=or("el-row");return T(),On(D,{gutter:10},{default:At(()=>[qe(w,{span:10},{default:At(()=>[x("div",wd,[x("p",Td,[qe(E,{modelValue:a.leftAllChecked,"onUpdate:modelValue":g[0]||(g[0]=P=>a.leftAllChecked=P),indeterminate:l.value,"validate-event":!1,onChange:i},{default:At(()=>[T0(ct(r.leftTitle),1)]),_:1},8,["modelValue","indeterminate"]),x("span",null,ct(a.leftChecked.length)+"/"+ct(r.leftData.length),1)]),x("div",Ad,[qe(h,{class:"transfer-panel__filter",modelValue:a.leftKeyword,"onUpdate:modelValue":g[1]||(g[1]=P=>a.leftKeyword=P),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),ir(qe(b,{modelValue:a.leftChecked,"onUpdate:modelValue":g[2]||(g[2]=P=>a.leftChecked=P),"validate-event":!1,class:"fm-transfer-panel__list"},{default:At(()=>[(T(!0),A(Mn,null,A0(o.value,(P,F)=>(T(),On(E,{key:F,value:P[r.options.value],label:P[r.options.label],disabled:P[r.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:k=>p(P)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[_o,!0]])])])]),_:1}),qe(w,{span:4,class:"fm-transfer-buttons"},{default:At(()=>[x("div",Sd,[qe(y,{type:"primary",style:{},icon:"ele-ArrowRight",onClick:d})]),x("div",Fd,[qe(y,{type:"primary",style:{},icon:"ele-ArrowLeft",onClick:C})]),x("div",Dd,[qe(y,{type:"primary",style:{},icon:"ele-DArrowRight",onClick:_})]),x("div",kd,[qe(y,{type:"primary",style:{},icon:"ele-DArrowLeft",onClick:v})])]),_:1}),qe(w,{span:10},{default:At(()=>[x("div",Bd,[x("p",Pd,[qe(E,{modelValue:a.rightAllChecked,"onUpdate:modelValue":g[3]||(g[3]=P=>a.rightAllChecked=P),indeterminate:c.value,"validate-event":!1,onChange:s},{default:At(()=>[T0(ct(r.rightTitle),1)]),_:1},8,["modelValue","indeterminate"]),x("span",null,ct(a.rightChecked.length)+"/"+ct(r.rightData.length),1)]),x("div",Ld,[qe(h,{class:"transfer-panel__filter",modelValue:a.rightKeyword,"onUpdate:modelValue":g[4]||(g[4]=P=>a.rightKeyword=P),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),ir(qe(b,{modelValue:a.rightChecked,"onUpdate:modelValue":g[5]||(g[5]=P=>a.rightChecked=P),"validate-event":!1,class:"fm-transfer-panel__list"},{default:At(()=>[(T(!0),A(Mn,null,A0(u.value,(P,F)=>(T(),On(E,{key:F,value:P[r.options.value],label:P[r.options.label],disabled:P[r.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:k=>m(P)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[_o,!0]])])])]),_:1})]),_:1})}}});const Md={class:"notice-bar-warp-text-box"},Rd=["innerHTML"];var zd=S({name:"FmNoticeBar",__name:"index",props:{mode:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"var(--el-color-warning)"},background:{type:String,default:"var(--el-color-warning-light-9)"},size:{type:[Number,String],default:14},height:{type:Number,default:40},delay:{type:Number,default:1},speed:{type:Number,default:100},scrollable:{type:Boolean,default:!1},leftIcon:{type:String,default:"iconfont icon-tongzhi2"},rightIcon:{type:String,default:""}},emits:["close","link"],setup(e,{emit:t}){const r=e,n=Vt(null),a=Vt(null),o=Ln({isMode:!1,warpOWidth:0,textOWidth:0,animationDuration:0});S0(async()=>{r.scrollable||i()});const i=()=>{Rn(()=>{if(n.value&&a.value){o.warpOWidth=n.value.offsetWidth,o.textOWidth=a.value.scrollWidth,o.animationDuration=(o.textOWidth+o.warpOWidth)/r.speed,a.value.style.animation="none",a.value.offsetHeight,a.value.style.animation=`marquee ${o.animationDuration}s linear infinite`;const l=`
1
+ /*! fm-dev v1.0.46 */import{defineComponent as S,reactive as Ln,computed as Oe,watch as It,resolveComponent as or,createBlock as On,openBlock as T,withCtx as At,createVNode as qe,createElementVNode as x,createTextVNode as T0,toDisplayString as ct,withDirectives as ir,createElementBlock as A,Fragment as Mn,renderList as A0,vShow as _o,ref as Vt,onMounted as S0,nextTick as Rn,normalizeStyle as Qe,createCommentVNode as vo,normalizeClass as lr,withModifiers as xo,resolveDynamicComponent as dd,effectScope as Eo,getCurrentInstance as sr,shallowRef as pd,isRef as ur,inject as F0,onUnmounted as md,h as D0,Text as fd,markRaw as Ht,toRaw as Mr,hasInjectionContext as hd,unref as gd,isReactive as Co,toRef as bo,getCurrentScope as _d,onScopeDispose as vd,toRefs as k0,resolveDirective as yo}from"vue";import xd from"crypto";import wo from"url";import B0 from"http";import P0 from"https";import L0 from"util";import xt,{Readable as Ed}from"stream";import Cd from"assert";import St from"zlib";import{ElMessage as $e,ElLoading as bd,dayjs as yd}from"element-plus";const wd={class:"fm-transfer-panel"},Td={class:"fm-transfer-panel__header"},Ad={class:"fm-transfer-panel__body"},Sd={class:"fm-transfer-buttons__item"},Fd={class:"fm-transfer-buttons__item"},Dd={class:"fm-transfer-buttons__item"},kd={class:"fm-transfer-buttons__item"},Bd={class:"fm-transfer-panel"},Pd={class:"fm-transfer-panel__header"},Ld={class:"fm-transfer-panel__body"};var Od=S({name:"FmTransfer",__name:"index",props:{leftTitle:String,rightTitle:String,options:{type:Object,default:()=>({value:"id",label:"name",disabled:"disabled"})},leftData:{type:Array,default:()=>[]},rightData:{type:Array,default:()=>[]}},emits:["left","right","allLeft","allRight","update:leftData","update:rightData"],setup(e,{emit:t}){const r=e,n=t,a=Ln({leftAllChecked:!1,leftKeyword:"",leftChecked:[],rightAllChecked:!1,rightKeyword:"",rightChecked:[]}),o=Oe(()=>{let f=r.leftData.filter(g=>g[r.options.label].toLowerCase().includes(a.leftKeyword.toLowerCase()));if(a.leftChecked.length>0)for(let g=a.leftChecked.length-1;g>=0;g--)f.findIndex(h=>h[r.options.value]==a.leftChecked[g])==-1&&a.leftChecked.splice(g,1);return f}),i=f=>{a.leftChecked=f?o.value.filter(g=>g[r.options.disabled]==!1).map(g=>g[r.options.value]):[]},l=Oe(()=>{const f=a.leftChecked.length;return f>0&&f<o.value.filter(E=>E[r.options.disabled]==!1).length});It(()=>a.leftChecked,f=>{a.leftAllChecked=f.length>0&&f.length==o.value.filter(g=>g[r.options.disabled]==!1).length});const u=Oe(()=>{let f=r.rightData.filter(g=>g[r.options.label].toLowerCase().includes(a.rightKeyword.toLowerCase()));if(a.rightChecked.length>0)for(let g=a.rightChecked.length-1;g>=0;g--)f.findIndex(h=>h[r.options.value]==a.rightChecked[g])==-1&&a.rightChecked.splice(g,1);return f}),s=f=>{a.rightChecked=f?u.value.filter(g=>g[r.options.disabled]==!1).map(g=>g[r.options.value]):[]},c=Oe(()=>{const f=a.rightChecked.length;return f>0&&f<u.value.filter(E=>E[r.options.disabled]==!1).length});It(()=>a.rightChecked,f=>{a.rightAllChecked=f.length>0&&f.length==u.value.filter(g=>g[r.options.disabled]==!1).length});const p=f=>{if(f[r.options.value]&&f[r.options.disabled]===!1){let g=r.leftData.filter(h=>f[r.options.value]==h[r.options.value]),E=r.leftData.filter(h=>f[r.options.value]!=h[r.options.value]);n("update:leftData",E),n("update:rightData",r.rightData.concat(g)),n("right"),a.leftChecked=a.leftChecked.filter(h=>f[r.options.value]!=h)}},d=()=>{if(a.leftChecked?.length>0){let f=r.leftData.filter(E=>a.leftChecked.some(h=>h==E[r.options.value])),g=r.leftData.filter(E=>a.leftChecked.every(h=>h!=E[r.options.value]));n("update:leftData",g),n("update:rightData",r.rightData.concat(f)),n("right"),a.leftChecked=[]}},_=()=>{if(o.value?.length>0){let f=o.value.filter(h=>h[r.options.disabled]==!1),g=r.leftData.filter(h=>f.some(b=>b[r.options.value]==h[r.options.value])),E=r.leftData.filter(h=>f.every(b=>b[r.options.value]!=h[r.options.value]));n("update:leftData",E),n("update:rightData",r.rightData.concat(g)),n("allRight"),a.leftChecked=[]}},m=f=>{if(f[r.options.value]&&f[r.options.disabled]===!1){let g=r.rightData.filter(h=>f[r.options.value]==h[r.options.value]),E=r.rightData.filter(h=>f[r.options.value]!=h[r.options.value]);n("update:leftData",r.leftData.concat(g)),n("update:rightData",E),n("left"),a.rightChecked=a.rightChecked.filter(h=>f[r.options.value]!=h)}},C=()=>{if(a.rightChecked?.length>0){let f=r.rightData.filter(E=>a.rightChecked.some(h=>h==E[r.options.value])),g=r.rightData.filter(E=>a.rightChecked.every(h=>h!=E[r.options.value]));n("update:leftData",r.leftData.concat(f)),n("update:rightData",g),n("left"),a.rightChecked=[]}},v=()=>{if(u.value?.length>0){let f=u.value.filter(h=>h[r.options.disabled]==!1),g=r.rightData.filter(h=>f.some(b=>b[r.options.value]==h[r.options.value])),E=r.rightData.filter(h=>f.every(b=>b[r.options.value]!=h[r.options.value]));n("update:leftData",r.leftData.concat(g)),n("update:rightData",E),n("allLeft"),a.rightChecked=[]}};return(f,g)=>{const E=or("el-checkbox"),h=or("el-input"),b=or("el-checkbox-group"),w=or("el-col"),y=or("el-button"),D=or("el-row");return T(),On(D,{gutter:10},{default:At(()=>[qe(w,{span:10},{default:At(()=>[x("div",wd,[x("p",Td,[qe(E,{modelValue:a.leftAllChecked,"onUpdate:modelValue":g[0]||(g[0]=P=>a.leftAllChecked=P),indeterminate:l.value,"validate-event":!1,onChange:i},{default:At(()=>[T0(ct(r.leftTitle),1)]),_:1},8,["modelValue","indeterminate"]),x("span",null,ct(a.leftChecked.length)+"/"+ct(r.leftData.length),1)]),x("div",Ad,[qe(h,{class:"transfer-panel__filter",modelValue:a.leftKeyword,"onUpdate:modelValue":g[1]||(g[1]=P=>a.leftKeyword=P),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),ir(qe(b,{modelValue:a.leftChecked,"onUpdate:modelValue":g[2]||(g[2]=P=>a.leftChecked=P),"validate-event":!1,class:"fm-transfer-panel__list"},{default:At(()=>[(T(!0),A(Mn,null,A0(o.value,(P,F)=>(T(),On(E,{key:F,value:P[r.options.value],label:P[r.options.label],disabled:P[r.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:k=>p(P)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[_o,!0]])])])]),_:1}),qe(w,{span:4,class:"fm-transfer-buttons"},{default:At(()=>[x("div",Sd,[qe(y,{type:"primary",style:{},icon:"ele-ArrowRight",onClick:d})]),x("div",Fd,[qe(y,{type:"primary",style:{},icon:"ele-ArrowLeft",onClick:C})]),x("div",Dd,[qe(y,{type:"primary",style:{},icon:"ele-DArrowRight",onClick:_})]),x("div",kd,[qe(y,{type:"primary",style:{},icon:"ele-DArrowLeft",onClick:v})])]),_:1}),qe(w,{span:10},{default:At(()=>[x("div",Bd,[x("p",Pd,[qe(E,{modelValue:a.rightAllChecked,"onUpdate:modelValue":g[3]||(g[3]=P=>a.rightAllChecked=P),indeterminate:c.value,"validate-event":!1,onChange:s},{default:At(()=>[T0(ct(r.rightTitle),1)]),_:1},8,["modelValue","indeterminate"]),x("span",null,ct(a.rightChecked.length)+"/"+ct(r.rightData.length),1)]),x("div",Ld,[qe(h,{class:"transfer-panel__filter",modelValue:a.rightKeyword,"onUpdate:modelValue":g[4]||(g[4]=P=>a.rightKeyword=P),placeholder:"\u641C\u7D22","prefix-icon":"ele-Search",clearable:"","validate-event":!1},null,8,["modelValue"]),ir(qe(b,{modelValue:a.rightChecked,"onUpdate:modelValue":g[5]||(g[5]=P=>a.rightChecked=P),"validate-event":!1,class:"fm-transfer-panel__list"},{default:At(()=>[(T(!0),A(Mn,null,A0(u.value,(P,F)=>(T(),On(E,{key:F,value:P[r.options.value],label:P[r.options.label],disabled:P[r.options.disabled],"validate-event":!1,class:"fm-transfer-panel__item",onDblclick:k=>m(P)},null,8,["value","label","disabled","onDblclick"]))),128))]),_:1},8,["modelValue"]),[[_o,!0]])])])]),_:1})]),_:1})}}});const Md={class:"notice-bar-warp-text-box"},Rd=["innerHTML"];var zd=S({name:"FmNoticeBar",__name:"index",props:{mode:{type:String,default:""},text:{type:String,default:""},color:{type:String,default:"var(--el-color-warning)"},background:{type:String,default:"var(--el-color-warning-light-9)"},size:{type:[Number,String],default:14},height:{type:Number,default:40},delay:{type:Number,default:1},speed:{type:Number,default:100},scrollable:{type:Boolean,default:!1},leftIcon:{type:String,default:"iconfont icon-tongzhi2"},rightIcon:{type:String,default:""}},emits:["close","link"],setup(e,{emit:t}){const r=e,n=Vt(null),a=Vt(null),o=Ln({isMode:!1,warpOWidth:0,textOWidth:0,animationDuration:0});S0(async()=>{r.scrollable||i()});const i=()=>{Rn(()=>{if(n.value&&a.value){o.warpOWidth=n.value.offsetWidth,o.textOWidth=a.value.scrollWidth,o.animationDuration=(o.textOWidth+o.warpOWidth)/r.speed,a.value.style.animation="none",a.value.offsetHeight,a.value.style.animation=`marquee ${o.animationDuration}s linear infinite`;const l=`
2
2
  @keyframes marquee {
3
3
  0% { transform: translateX(${o.warpOWidth}px); }
4
4
  100% { transform: translateX(-${o.textOWidth}px); }
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.45 */
1
+ /*! fm-dev v1.0.46 */
2
2
  import { defineComponent, reactive, computed, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString as toDisplayString$1, withDirectives, createElementBlock, Fragment, renderList, vShow, ref, onMounted, nextTick, normalizeStyle, createCommentVNode, normalizeClass, withModifiers, resolveDynamicComponent, effectScope, getCurrentInstance, shallowRef, isRef as isRef$1, inject, onUnmounted, h, Text, markRaw, toRaw as toRaw$1, hasInjectionContext, unref, isReactive as isReactive$1, toRef, getCurrentScope, onScopeDispose, toRefs, resolveDirective } from 'vue';
3
3
  import crypto from 'crypto';
4
4
  import require$$0 from 'url';
@@ -1,3 +1,4 @@
1
+ import { CustomAxiosRequestConfig } from '../utils/request';
1
2
  import { AxiosRequestConfig, AxiosResponse } from 'axios';
2
3
  export declare const useBaseApi: (module: string, options?: AxiosRequestConfig) => {
3
4
  baseUrl: string;
@@ -19,9 +20,9 @@ export declare const useBaseApi: (module: string, options?: AxiosRequestConfig)
19
20
  importData: (file: any, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
20
21
  uploadFile: (params: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
21
22
  };
22
- export declare const useApi: (url: string, options?: AxiosRequestConfig) => {
23
+ export declare const useApi: (url: string, options?: CustomAxiosRequestConfig) => {
23
24
  baseUrl: string;
24
- request: <T>(config: AxiosRequestConfig<T>, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
25
+ request: <T>(config: CustomAxiosRequestConfig, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
25
26
  post: (data: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
26
27
  get: (params: any, action: string, cancel?: boolean) => Promise<AxiosResponse<any, any>>;
27
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fmdevui/fm-dev",
3
- "version": "1.0.45",
3
+ "version": "1.0.46",
4
4
  "description": "Page level components developed based on Element Plus.",
5
5
  "author": "fmdevui",
6
6
  "keywords": [
File without changes