yxuse 1.0.56 → 1.0.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  - 起步
4
4
 
5
5
  ```javascript
6
+ 低版本适配为1.0.57
6
7
  //npm
7
8
  npm install yxuse@latest
8
9
  //pnpm
package/lib/index.cjs.js CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index.cjs2.js"),i=require("./index.cjs3.js"),s=require("./index.cjs4.js"),t=require("./index.cjs5.js"),r=require("./index.cjs6.js"),c=require("./index.cjs7.js");require("./vue.runtime.esm-bundler.cjs.js");require("./index.cjs8.js");const n={utils:e.utils,api:s.api,theme:t.theme,icons:i.icons,components:r.components,directives:c.directives};module.exports=n;
1
+ "use strict";const e=require("./index.cjs2.js"),i=require("./index.cjs3.js"),s=require("./index.cjs4.js"),t=require("./index.cjs5.js"),r=require("./index.cjs6.js"),c=require("./index.cjs7.js");require("./index.cjs8.js");require("./vue.runtime.esm-bundler.cjs.js");const n={utils:e.utils,api:s.api,theme:t.theme,icons:i.icons,components:r.components,directives:c.directives};module.exports=n;
package/lib/index.cjs4.js CHANGED
@@ -1 +1 @@
1
- "use strict";const t=require("./index.cjs8.js"),a=async(e="ttc")=>await t.http.get(`${t.URL[e].INTEGRATED_BASE_URL}/basic/data/satellite/select`),s=async(e="ttc")=>await t.http.get(`${t.URL[e].INTEGRATED_BASE_URL}/basic/data/ante/select`),i=Object.freeze(Object.defineProperty({__proto__:null,auth:t.index,getUserSelectAnteList:s,getUserSelectSatelliteList:a},Symbol.toStringTag,{value:"Module"}));exports.api=i;exports.getUserSelectAnteList=s;exports.getUserSelectSatelliteList=a;
1
+ "use strict";var l=(e,s,c)=>new Promise((S,r)=>{var g=t=>{try{i(c.next(t))}catch(n){r(n)}},u=t=>{try{i(c.throw(t))}catch(n){r(n)}},i=t=>t.done?S(t.value):Promise.resolve(t.value).then(g,u);i((c=c.apply(e,s)).next())});const a=require("./index.cjs8.js"),d=(e="ttc")=>l(exports,null,function*(){return yield a.http.get(`${a.URL[e].INTEGRATED_BASE_URL}/basic/data/satellite/select`)}),o=(e="ttc")=>l(exports,null,function*(){return yield a.http.get(`${a.URL[e].INTEGRATED_BASE_URL}/basic/data/ante/select`)}),L=Object.freeze(Object.defineProperty({__proto__:null,auth:a.index,getUserSelectAnteList:o,getUserSelectSatelliteList:d},Symbol.toStringTag,{value:"Module"}));exports.api=L;exports.getUserSelectAnteList=o;exports.getUserSelectSatelliteList=d;
package/lib/index.cjs5.js CHANGED
@@ -1 +1 @@
1
- "use strict";const g={green:{common:{color:{"main-100":"rgba(80, 165, 122, 1)","main-50":"rgba(80, 165, 122, 0.5)","main-25":"rgba(80, 165, 122, 0.25)","main-15":"rgba(80, 165, 122, 0.15)","main-5":"rgba(80, 165, 122, 0.05)","error-100":"rgba(255, 152, 146, 1)","error-50":"rgba(255, 152, 146, 0.5)","error-25":"rgba(255, 152, 146, 0.25)","error-15":"rgba(255, 152, 146, 0.15)","error-5":"rgba(255, 152, 146, 0.05)","warning-100":"rgba(249, 162, 33, 1)","warning-50":"rgba(249, 162, 33, 0.5)","warning-25":"rgba(249, 162, 33, 0.25)","warning-15":"rgba(249, 162, 33, 0.15)","warning-5":"rgba(249, 162, 33, 0.05)","info-100":"rgba(133, 233, 183, 1)","info-50":"rgba(133, 233, 183, 0.5)","info-25":"rgba(133, 233, 183, 0.25)","info-15":"rgba(133, 233, 183, 0.15)","info-5":"rgba(133, 233, 183, 0.05)","neutral-100":"rgba(85, 221, 221, 1)","neutral-50":"rgba(85, 221, 221, 0.5)","neutral-25":"rgba(85, 221, 221, 0.25)","neutral-15":"rgba(85, 221, 221, 0.15)","neutral-5":"rgba(85, 221, 221, 0.05)"},background:{"error-gradual":"linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)","warning-gradual":"linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)","success-gradual":"linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)","success-gradient":"#D5ECBE 0%, rgba(234,255,233,0.35) 100%","warning-gradient":"#FFE4BC 0%, rgba(255,250,233,0.35) 100%","error-gradient":"#FFCECB 0%, rgba(255,235,233,0.35) 100%",page:"rgba(241, 243, 242, 1)","main-content-special":"rgba(103, 186, 145, 0.10)",section:"rgba(252, 255, 253, 1)",success:"rgba(80, 165, 122, 1)",warning:"#F9A221",error:"#FF9892"},button:{background:"rgba(103, 186, 145, 0.10)","border-color":"rgba(80, 165, 122, 1)","text-color":"rgba(80, 165, 122, 1)","active-background-color":"rgba(80, 165, 122, 1)","active-border-color":"rgba(154, 209, 162, 1)","active-text-color":"#fff"},checkbox:{background:"rgba(216, 233, 219, 1)","icon-color":"rgba(80, 165, 122, 0)","border-color":"rgba(154, 209, 162, 1)","text-color":"#9AD1A2","checked-text-color":"#1D4B34","checked-background":"rgba(216, 233, 219, 1)","checked-icon-color":"rgba(80, 165, 122, 1)","checked-border-color":"rgba(154, 209, 162, 1)"},radio:{background:"rgba(191, 225, 209, 1)","icon-border-color":"rgba(191, 225, 209, 1)","icon-checked-background":"rgba(103, 186, 145, 1)","icon-checked-point-background":"rgba(210, 255, 218, 1)"},switch:{background:"#637B6B","icon-point-background":"#fff","icon-checked-point-background":"#90E6BA","checked-background":"#9BE9C2"},input:{background:"rgba(237, 246, 239, 1)","border-color":"rgba(80, 165, 122, 1)",color:"rgba(29, 75, 52, 1)","placeholder-color":"rgba(80, 165, 122, 1)","hover-background":"rgba(237, 246, 239, 0.30)","hover-border-color":"rgba(80, 165, 122, 1)","hover-color":"rgba(80, 165, 122, 1)","active-background":"rgba(237, 246, 239, 0.30)","active-border-color":"rgba(80, 165, 122, 1)","active-color":"rgba(80, 165, 122, 1)","disabled-background":"rgba(219, 232, 221, 1)","disabled-border-color":"#fff","disabled-color":"rgba(80, 165, 122, 0.5)","append-background":"transparent","append-color":"#50A57A"},select:{"dropdown-background":"rgba(237, 246, 239, 1)","dropdown-border-color":"rgba(80, 165, 122, 1)","dropdown-item-color":"rgba(80, 165, 122, 1)","dropdown-item-hover-background":"rgba(178, 220, 198, 1)","dropdown-item-hover-color":"rgba(29, 75, 52, 1)","dropdown-item-selected-background":"rgba(178, 220, 198, 1)","dropdown-item-selected-color":"rgba(29, 75, 52, 1)"},tree:{text:"rgba(99,123,107,0.50)"},layout:{"nav-background":"#fff","view-background":"#F1F3F2"},table:{"header-background":"#67BA91","header-text-color":"#fff","row-background":"#D1EFDA","row-odd-background":"#EAF9ED","row-border-bottom-color":"#9AD1A2","row-text-color":"#1D4B34","row-error-background":"linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)","row-warning-background":"linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)","row-hover-background":"linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)","row-hover-text-color":"rgba(29, 75, 52, 1)"},chart:{pie_color_1:"#50A57A",pie_color_2:"#F8B85A",pie_color_3:"#FF9892",pie_color_4:"#55DDDD",pie_color_5:"#85E9B7",line_color_1:"#50A57A",line_color_2:"#F8B85A",line_color_3:"#FF9892",line_color_4:"#55DDDD",line_color_5:"#85E9B7",line_title_color:"#637B6B",line_xAxis_color:"#50A57A",line_yAxis_color:"#50A57A",line_markLine_color:"#FF9892",line_splitLine_color:"#DBEEE3"},message:{},text:{main:"#50A57A",deep:"#1D4B34",light:"rgba(80, 165, 122, 0.50)",paler:"#637B6B",success:"#8FF59E",warning:"#F8B85A",error:"#FF9892",white:"#fff",light_gray:"#B0BDB4"},dialog:{"header-background":"#fff","body-background":"#fff","footer-background":"#fff"},progress:{background:"#CADFD3","active-background":"#67BA91"},icon:{"title-main":"#DAF1E5","title-assist":"#F9A221","title-assist-2":"#50A57A","active-color":"rgba(80,165,122,1)","active-light-color":"#F9A221"}},cloud:{},"station-control-center":{"equipment-line-status-NORMAL-SFED":"#F9A221","equipment-line-status-NORMAL":"#50A57A","equipment-line-status-WARN":"#FF9892","equipment-line-status-OFF_LINE":"#D1D3D2","equipment-status-NORMAL":"#50A57A","equipment-status-WARN":"#FF9892","equipment-status-OFF_LINE":"#D1D3D2","equipment-background-NORMAL":"#F9FCF9","equipment-border-NORMAL":"1px solid #50A57A","equipment-background-WARN":"#F9FBFC","equipment-border-WARN":"1px solid #FF9892","equipment-background-OFF_LINE":"#E9F2EE","equipment-border-OFF_LINE":"1px solid #fff","equipment-color-LHPC-NORMAL":"#fff","equipment-background-LHPC-NORMAL":"linear-gradient(90deg, #50A57A 0%, rgba(80,165,122,0.3) 100%)","equipment-color-LHPC-NORMAL-SFED":"#fff","equipment-background-LHPC-NORMAL-SFED":"linear-gradient(90deg, #F9A221 0%, rgba(255,223,165,0.38) 100%)","equipment-color-LHPC-OFF_LINE":"#637B6B","equipment-background-LHPC-OFF_LINE":"linear-gradient(90deg, #D1D3D2 0%, rgba(209,211,210,0) 100%)","equipment-ball-background":"#9DCBB4","equipment-ball-LINE-NORMAL":"#50A57A","equipment-ball-LINE-OFF_LINE":"#D1D3D2","equipment-ball-background-SFED":"#FBE5B7","equipment-ball-LINE-NORMAL-SFED":"#F9A221","equipment-ball-LINE-OFF_LINE-SFED":"#D1D3D2"}},blue:{common:{"--test1":"#fff","--test2":"#ccc"},cloud:{},"station-control-center":{}}},c="yxTheme",m="green",i=()=>{const r=a();localStorage.getItem(c)||localStorage.setItem(c,r);const e=document.documentElement,o=g[r].common;Object.keys(o).forEach(n=>{Object.keys(o[n]).forEach(t=>{const b=`--${n}-${t}`;e.style.setProperty(b,o[n][t])})})},l=r=>{localStorage.setItem(c,r),i()},a=()=>localStorage.getItem(c)||m,d=r=>{const e=a();return g[e][r]||{}},u=r=>{const e=a();return g[e].common[r]||{}},s=r=>{const e=a(),o=g[e][r],n=document.documentElement;Object.keys(o).forEach(t=>{const b=`--${t}`;n.style.setProperty(b,o[t])})},F=Object.freeze(Object.defineProperty({__proto__:null,changeTheme:l,getCurTheme:a,getGroupColor:u,getSystemThemeConfig:d,install:i,installSystemTheme:s},Symbol.toStringTag,{value:"Module"}));exports.changeTheme=l;exports.getCurTheme=a;exports.getGroupColor=u;exports.getSystemThemeConfig=d;exports.install=i;exports.installSystemTheme=s;exports.theme=F;
1
+ "use strict";const t={green:{common:{color:{"main-100":"rgba(80, 165, 122, 1)","main-50":"rgba(80, 165, 122, 0.5)","main-25":"rgba(80, 165, 122, 0.25)","main-15":"rgba(80, 165, 122, 0.15)","main-5":"rgba(80, 165, 122, 0.05)","error-100":"rgba(255, 152, 146, 1)","error-50":"rgba(255, 152, 146, 0.5)","error-25":"rgba(255, 152, 146, 0.25)","error-15":"rgba(255, 152, 146, 0.15)","error-5":"rgba(255, 152, 146, 0.05)","warning-100":"rgba(249, 162, 33, 1)","warning-50":"rgba(249, 162, 33, 0.5)","warning-25":"rgba(249, 162, 33, 0.25)","warning-15":"rgba(249, 162, 33, 0.15)","warning-5":"rgba(249, 162, 33, 0.05)","info-100":"rgba(133, 233, 183, 1)","info-50":"rgba(133, 233, 183, 0.5)","info-25":"rgba(133, 233, 183, 0.25)","info-15":"rgba(133, 233, 183, 0.15)","info-5":"rgba(133, 233, 183, 0.05)","neutral-100":"rgba(85, 221, 221, 1)","neutral-50":"rgba(85, 221, 221, 0.5)","neutral-25":"rgba(85, 221, 221, 0.25)","neutral-15":"rgba(85, 221, 221, 0.15)","neutral-5":"rgba(85, 221, 221, 0.05)"},background:{"error-gradual":"linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)","warning-gradual":"linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)","success-gradual":"linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)","success-gradient":"#D5ECBE 0%, rgba(234,255,233,0.35) 100%","warning-gradient":"#FFE4BC 0%, rgba(255,250,233,0.35) 100%","error-gradient":"#FFCECB 0%, rgba(255,235,233,0.35) 100%",page:"rgba(241, 243, 242, 1)","main-content-special":"rgba(103, 186, 145, 0.10)",section:"rgba(252, 255, 253, 1)",success:"rgba(80, 165, 122, 1)",warning:"#F9A221",error:"#FF9892"},button:{background:"rgba(103, 186, 145, 0.10)","border-color":"rgba(80, 165, 122, 1)","text-color":"rgba(80, 165, 122, 1)","active-background-color":"rgba(80, 165, 122, 1)","active-border-color":"rgba(154, 209, 162, 1)","active-text-color":"#fff"},checkbox:{background:"rgba(216, 233, 219, 1)","icon-color":"rgba(80, 165, 122, 0)","border-color":"rgba(154, 209, 162, 1)","text-color":"#9AD1A2","checked-text-color":"#1D4B34","checked-background":"rgba(216, 233, 219, 1)","checked-icon-color":"rgba(80, 165, 122, 1)","checked-border-color":"rgba(154, 209, 162, 1)"},radio:{background:"rgba(191, 225, 209, 1)","icon-border-color":"rgba(191, 225, 209, 1)","icon-checked-background":"rgba(103, 186, 145, 1)","icon-checked-point-background":"rgba(210, 255, 218, 1)"},switch:{background:"#637B6B","icon-point-background":"#fff","icon-checked-point-background":"#90E6BA","checked-background":"#9BE9C2"},input:{background:"rgba(237, 246, 239, 1)","border-color":"rgba(80, 165, 122, 1)",color:"rgba(29, 75, 52, 1)","placeholder-color":"rgba(80, 165, 122, 1)","hover-background":"rgba(237, 246, 239, 0.30)","hover-border-color":"rgba(80, 165, 122, 1)","hover-color":"rgba(80, 165, 122, 1)","active-background":"rgba(237, 246, 239, 0.30)","active-border-color":"rgba(80, 165, 122, 1)","active-color":"rgba(80, 165, 122, 1)","disabled-background":"rgba(219, 232, 221, 1)","disabled-border-color":"#fff","disabled-color":"rgba(80, 165, 122, 0.5)","append-background":"transparent","append-color":"#50A57A"},select:{"dropdown-background":"rgba(237, 246, 239, 1)","dropdown-border-color":"rgba(80, 165, 122, 1)","dropdown-item-color":"rgba(80, 165, 122, 1)","dropdown-item-hover-background":"rgba(178, 220, 198, 1)","dropdown-item-hover-color":"rgba(29, 75, 52, 1)","dropdown-item-selected-background":"rgba(178, 220, 198, 1)","dropdown-item-selected-color":"rgba(29, 75, 52, 1)"},tree:{text:"rgba(99,123,107,0.50)"},layout:{"nav-background":"#fff","view-background":"#F1F3F2"},table:{"header-background":"#67BA91","header-text-color":"#fff","row-background":"#D1EFDA","row-odd-background":"#EAF9ED","row-border-bottom-color":"#9AD1A2","row-text-color":"#1D4B34","row-error-background":"linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)","row-warning-background":"linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)","row-hover-background":"linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)","row-hover-text-color":"rgba(29, 75, 52, 1)"},chart:{pie_color_1:"#50A57A",pie_color_2:"#F8B85A",pie_color_3:"#FF9892",pie_color_4:"#55DDDD",pie_color_5:"#85E9B7",line_color_1:"#50A57A",line_color_2:"#F8B85A",line_color_3:"#FF9892",line_color_4:"#55DDDD",line_color_5:"#85E9B7",line_title_color:"#637B6B",line_xAxis_color:"#50A57A",line_yAxis_color:"#50A57A",line_markLine_color:"#FF9892",line_splitLine_color:"#DBEEE3"},message:{},text:{main:"#50A57A",deep:"#1D4B34",light:"rgba(80, 165, 122, 0.50)",paler:"#637B6B",success:"#8FF59E",warning:"#F8B85A",error:"#FF9892",white:"#fff",light_gray:"#B0BDB4"},dialog:{"header-background":"#fff","body-background":"#fff","footer-background":"#fff"},progress:{background:"#CADFD3","active-background":"#67BA91"},icon:{"title-main":"#DAF1E5","title-assist":"#F9A221","title-assist-2":"#50A57A","active-color":"rgba(80,165,122,1)","active-light-color":"#F9A221"}},cloud:{},"station-control-center":{"equipment-line-status-NORMAL-SFED":"#F9A221","equipment-line-status-NORMAL":"#50A57A","equipment-line-status-WARN":"#FF9892","equipment-line-status-OFF_LINE":"#D1D3D2","equipment-status-NORMAL":"#50A57A","equipment-status-WARN":"#FF9892","equipment-status-OFF_LINE":"#D1D3D2","equipment-background-NORMAL":"#F9FCF9","equipment-border-NORMAL":"1px solid #50A57A","equipment-background-WARN":"#F9FBFC","equipment-border-WARN":"1px solid #FF9892","equipment-background-OFF_LINE":"#E9F2EE","equipment-border-OFF_LINE":"1px solid #fff","equipment-color-LHPC-NORMAL":"#fff","equipment-background-LHPC-NORMAL":"linear-gradient(90deg, #50A57A 0%, rgba(80,165,122,0.3) 100%)","equipment-color-LHPC-NORMAL-SFED":"#fff","equipment-background-LHPC-NORMAL-SFED":"linear-gradient(90deg, #F9A221 0%, rgba(255,223,165,0.38) 100%)","equipment-color-LHPC-OFF_LINE":"#637B6B","equipment-background-LHPC-OFF_LINE":"linear-gradient(90deg, #D1D3D2 0%, rgba(209,211,210,0) 100%)","equipment-ball-background":"#9DCBB4","equipment-ball-LINE-NORMAL":"#50A57A","equipment-ball-LINE-OFF_LINE":"#D1D3D2","equipment-ball-background-SFED":"#FBE5B7","equipment-ball-LINE-NORMAL-SFED":"#F9A221","equipment-ball-LINE-OFF_LINE-SFED":"#D1D3D2"}},blue:{common:{color:{"main-100":"#0A2F52","main-50":"#5477CF","main-25":"#3E75CF","main-15":"#E4EDFF","main-5":"#5477CF","error-100":"#FF9892","error-50":"#FFF4F3","error-25":"#F9EACE","error-15":"rgba(255, 152, 146, 0.15)","error-5":"rgba(255, 152, 146, 0.05)","warning-100":"#F9A221","warning-50":"#F8B85A","warning-25":"#F9EACE","warning-15":"rgba(249, 162, 33, 0.15)","warning-5":"rgba(249, 162, 33, 0.05)","info-100":"rgba(133, 233, 183, 1)","info-50":"rgba(133, 233, 183, 0.5)","info-25":"rgba(133, 233, 183, 0.25)","info-15":"rgba(133, 233, 183, 0.15)","info-5":"rgba(133, 233, 183, 0.05)","neutral-100":"rgba(85, 221, 221, 1)","neutral-50":"rgba(85, 221, 221, 0.5)","neutral-25":"rgba(85, 221, 221, 0.25)","neutral-15":"rgba(85, 221, 221, 0.15)","neutral-5":"rgba(85, 221, 221, 0.05)"},background:{"error-gradual":"#FF9892","warning-gradual":"#F8B85A","success-gradual":"linear-gradient(90deg, #D5ECBE 0%, rgba(234,255,233,0.35) 100%)","success-gradient":"#D5ECBE 0%, rgba(234,255,233,0.35) 100%","warning-gradient":"#FFE4BC 0%, rgba(255,250,233,0.35) 100%","error-gradient":"#FFCECB 0%, rgba(255,235,233,0.35) 100%",page:"rgba(241, 243, 242, 1)","main-content-special":"rgba(103, 186, 145, 0.10)",section:"rgba(252, 255, 253, 1)",success:"rgba(80, 165, 122, 1)",warning:"#F9A221",error:"#FF9892"},button:{background:"rgba(103, 186, 145, 0.10)","border-color":"rgba(80, 165, 122, 1)","text-color":"rgba(80, 165, 122, 1)","active-background-color":"rgba(80, 165, 122, 1)","active-border-color":"rgba(154, 209, 162, 1)","active-text-color":"#fff"},checkbox:{background:"rgba(216, 233, 219, 1)","icon-color":"rgba(80, 165, 122, 0)","border-color":"rgba(154, 209, 162, 1)","text-color":"#9AD1A2","checked-text-color":"#1D4B34","checked-background":"rgba(216, 233, 219, 1)","checked-icon-color":"rgba(80, 165, 122, 1)","checked-border-color":"rgba(154, 209, 162, 1)"},radio:{background:"rgba(191, 225, 209, 1)","icon-border-color":"rgba(191, 225, 209, 1)","icon-checked-background":"rgba(103, 186, 145, 1)","icon-checked-point-background":"rgba(210, 255, 218, 1)"},switch:{background:"#637B6B","icon-point-background":"#fff","icon-checked-point-background":"#90E6BA","checked-background":"#9BE9C2"},input:{background:"rgba(237, 246, 239, 1)","border-color":"rgba(80, 165, 122, 1)",color:"rgba(29, 75, 52, 1)","placeholder-color":"rgba(80, 165, 122, 1)","hover-background":"rgba(237, 246, 239, 0.30)","hover-border-color":"rgba(80, 165, 122, 1)","hover-color":"rgba(80, 165, 122, 1)","active-background":"rgba(237, 246, 239, 0.30)","active-border-color":"rgba(80, 165, 122, 1)","active-color":"rgba(80, 165, 122, 1)","disabled-background":"rgba(219, 232, 221, 1)","disabled-border-color":"#fff","disabled-color":"rgba(80, 165, 122, 0.5)","append-background":"transparent","append-color":"#50A57A"},select:{"dropdown-background":"rgba(237, 246, 239, 1)","dropdown-border-color":"rgba(80, 165, 122, 1)","dropdown-item-color":"rgba(80, 165, 122, 1)","dropdown-item-hover-background":"rgba(178, 220, 198, 1)","dropdown-item-hover-color":"rgba(29, 75, 52, 1)","dropdown-item-selected-background":"rgba(178, 220, 198, 1)","dropdown-item-selected-color":"rgba(29, 75, 52, 1)"},tree:{text:"rgba(99,123,107,0.50)"},layout:{"nav-background":"#fff","view-background":"#F1F3F2"},table:{"header-background":"#5477CF","header-text-color":"#fff","row-background":"#F9FBFF","row-odd-background":"#F9FBFF","row-border-bottom-color":"#E4EDFF","row-text-color":"#0A2F52","row-error-background":"linear-gradient(90deg, #FFCECB 0%, rgba(255,235,233,0.35) 100%)","row-warning-background":"linear-gradient(90deg, #FFE4BC 0%, rgba(255,250,233,0.35) 100%)","row-hover-background":"rgba(62,117,207,0.2)","row-hover-text-color":"rgba(29, 75, 52, 1)"},chart:{pie_color_1:"#50A57A",pie_color_2:"#F8B85A",pie_color_3:"#FF9892",pie_color_4:"#55DDDD",pie_color_5:"#85E9B7",line_color_1:"#50A57A",line_color_2:"#F8B85A",line_color_3:"#FF9892",line_color_4:"#55DDDD",line_color_5:"#85E9B7",line_title_color:"#637B6B",line_xAxis_color:"#50A57A",line_yAxis_color:"#50A57A",line_markLine_color:"#FF9892",line_splitLine_color:"#DBEEE3"},message:{},text:{main:"#50A57A",deep:"#1D4B34",light:"rgba(80, 165, 122, 0.50)",paler:"#637B6B",success:"#8FF59E",warning:"#F8B85A",error:"#FF9892",white:"#fff",light_gray:"#B0BDB4"},dialog:{"header-background":"#fff","body-background":"#fff","footer-background":"#fff"},progress:{background:"#CADFD3","active-background":"#67BA91"},icon:{"title-main":"#DAF1E5","title-assist":"#F9A221","title-assist-2":"#50A57A","active-color":"rgba(80,165,122,1)","active-light-color":"#F9A221"}},cloud:{},"station-control-center":{}}},g="yxTheme",s="blue",i=()=>{const r=a();localStorage.getItem(g)||localStorage.setItem(g,r);const o=document.documentElement,e=t[r].common;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(c=>{const b=`--${n}-${c}`;o.style.setProperty(b,e[n][c])})})},l=r=>{localStorage.setItem(g,r),i()},a=()=>localStorage.getItem(g)||s,d=r=>{const o=a();return t[o][r]||{}},u=r=>{const o=a();return t[o].common[r]||{}},F=r=>{const o=a(),e=t[o][r],n=document.documentElement;Object.keys(e).forEach(c=>{const b=`--${c}`;n.style.setProperty(b,e[c])})},k=Object.freeze(Object.defineProperty({__proto__:null,changeTheme:l,getCurTheme:a,getGroupColor:u,getSystemThemeConfig:d,install:i,installSystemTheme:F},Symbol.toStringTag,{value:"Module"}));exports.changeTheme=l;exports.getCurTheme=a;exports.getGroupColor=u;exports.getSystemThemeConfig=d;exports.install=i;exports.installSystemTheme=F;exports.theme=k;
Binary file
package/lib/index.cjs6.js CHANGED
@@ -1 +1 @@
1
- "use strict";const t=require("./vue.runtime.esm-bundler.cjs.js"),b=t.defineComponent({__name:"DynamicComponents",props:{col:null,row:null},setup(r){const n=r;return(m,s)=>{var o,c,l;return t.openBlock(),t.createBlock(t.resolveDynamicComponent(`el-${(o=n.col)==null?void 0:o.type}`),t.mergeProps({modelValue:r.row[(c=n.col)==null?void 0:c.prop],"onUpdate:modelValue":s[0]||(s[0]=u=>{var e;return r.row[(e=n.col)==null?void 0:e.prop]=u})},(l=n.col)==null?void 0:l.config),{default:t.withCtx(()=>{var u;return[n.col.type==="select"?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList((u=n.col)==null?void 0:u.config.options,e=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent("el-option"),{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128)):t.createCommentVNode("",!0)]}),_:1},16,["modelValue"])}}});function y(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!t.isVNode(r)}const f={"operate-handle":(r,n)=>!!(r||n)},d=t.defineComponent({name:"YxTable",props:{tableProps:Object,tableData:Object},emits:f,setup(r,{attrs:n,slots:m,emit:s}){const o=r.tableProps;return()=>{const c=(e,a)=>{var p;return e.slotName&&((p=m[e.slotName])==null?void 0:p.call(m,a))},l=o.columns.map(e=>t.createVNode(t.resolveComponent("el-table-column"),t.mergeProps(e,{align:o.align}),{default:a=>(e==null?void 0:e.renderType)==="operate"?u(e,a):e!=null&&e.renderType&&(e==null?void 0:e.renderType)!=="operate"?t.createVNode(b,{col:e,row:a.row},null):(e==null?void 0:e.slotName)&&c(e,a)})),u=(e,a)=>{var p;return t.createVNode("div",{class:"flex justify-center cursor-pointer"},[(p=e.operate)==null?void 0:p.map(i=>t.createVNode("span",{onClick:()=>s("operate-handle",i.key,a.row),class:"mr-10 whitespace-nowrap"},[i.label]))])};return t.createVNode("div",null,[t.createVNode(t.resolveComponent("el-table"),t.mergeProps(n,{"row-key":o.rowKey,data:o.tableData,border:o.border}),y(l)?l:{default:()=>[l]})])}}}),v=Object.freeze(Object.defineProperty({__proto__:null,YxTable:d},Symbol.toStringTag,{value:"Module"}));exports.YxTable=d;exports.components=v;
1
+ "use strict";const r=require("./vue.runtime.esm-bundler.cjs.js"),k=r.defineComponent({__name:"index",props:{conf:null,model:null},setup(n){return(s,d)=>{var p,c,m;return r.openBlock(),r.createBlock(r.resolveDynamicComponent(`el-${(p=n.conf)==null?void 0:p.renderType}`),r.mergeProps({modelValue:n.model[(c=n.conf)==null?void 0:c.prop],"onUpdate:modelValue":d[0]||(d[0]=i=>{var o;return n.model[(o=n.conf)==null?void 0:o.prop]=i})},(m=n.conf)==null?void 0:m.config),{default:r.withCtx(()=>{var i,o,b;return[n.conf.renderType==="select"?(r.openBlock(!0),r.createElementBlock(r.Fragment,{key:0},r.renderList((b=(o=(i=n.conf)==null?void 0:i.config)==null?void 0:o.options)!=null?b:[],f=>(r.openBlock(),r.createBlock(r.resolveDynamicComponent("el-option"),{key:f.value,label:f.label,value:f.value},null,8,["label","value"]))),128)):r.createCommentVNode("",!0)]}),_:1},16,["modelValue"])}}});function w(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!r.isVNode(n)}const N={"operate-handle":(n,s)=>!!(n||s)},l=r.defineComponent({name:"YxTable",props:{tableProps:{type:Object,required:!0}},emits:N,setup(n,{attrs:s,slots:d,emit:p,expose:c}){const m=r.ref();return c({tableRef:m}),()=>{const{columns:i,align:o,rowKey:b,tableData:f,border:g}=n.tableProps,v=(e,t)=>{var a;return e.slotName&&((a=d[e.slotName])==null?void 0:a.call(d,t))},y=i.map(e=>r.createVNode(r.resolveComponent("el-table-column"),r.mergeProps(e,{align:o}),{default:t=>{if((e==null?void 0:e.renderType)==="operate")return T(e,t);if(e!=null&&e.renderType&&(e==null?void 0:e.renderType)!=="operate"){const a={renderType:e.renderType,prop:e.prop,config:e.config};return r.createVNode(k,{conf:a,model:t.row},null)}return e!=null&&e.render?e==null?void 0:e.render(t):(e==null?void 0:e.slotName)&&v(e,t)}})),T=(e,t)=>{var a;return r.createVNode("div",{class:"flex justify-center cursor-pointer"},[(a=e.operate)==null?void 0:a.filter(u=>(u==null?void 0:u.show)||u.show==null).map(u=>r.createVNode("span",{onClick:r.withModifiers(()=>p("operate-handle",u.key,t.row),["stop"]),class:"mr-10 whitespace-nowrap"},[u.label]))])};return r.createVNode("div",{class:"w-full h-full flex flex-col"},[r.createVNode(r.resolveComponent("el-table"),r.mergeProps({ref:m},s,{"row-key":b,data:f,border:g}),w(y)?y:{default:()=>[y]})])}}}),V=Object.freeze(Object.defineProperty({__proto__:null,YxTable:l},Symbol.toStringTag,{value:"Module"}));exports.YxTable=l;exports.components=V;