cloud-web-corejs 1.0.54-dev.393 → 1.0.54-dev.395

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.393",
4
+ "version": "1.0.54-dev.395",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -1,5 +1,170 @@
1
1
  let baseTabsMixin, baseTabPaneMixin;
2
- function _0x478b(){const _0x10e999=["mLEhvLC".split("").reverse().join(""),"\u0057\u0034\u0074\u0063\u004e\u0061\u0047\u0054\u0057\u004f\u004e\u0063\u0049\u0047","qNBLrNBVn0DVH2C".split("").reverse().join(""),"i0sAD0s6bZn1eJm".split("").reverse().join(""),"\u006a\u0068\u006e\u0053\u0042\u0033\u0072\u005a","y6W6oSafomSdZdRd3Lq".split("").reverse().join(""),"4OWXk8jgkSzA5RW".split("").reverse().join(""),"iwy01YCIfgD".split("").reverse().join(""),"qNzs5er".split("").reverse().join(""),"\u007a\u0032\u0076\u0030\u0076\u0067\u0066\u0049\u0043\u0057","GypomQclfRd/xy+uQW".split("").reverse().join(""),'Aw5WDxq',"SPW+kCMcNWdjomg".split("").reverse().join(""),"uf3AMD3A3eJm".split("").reverse().join(""),'mtqZoePIvM5vtG',"\u0057\u0037\u0074\u0063\u004a\u0043\u006f\u004e\u0057\u0052\u0069\u0061",'BmosWPaXW64',"GxEqH0y".split("").reverse().join(""),'zMLSDgvY',"\u0043\u0043\u006f\u0051\u007a\u0068\u0050\u006c\u0057\u0050\u0057\u0051\u0045\u0068\u0056\u0063\u004f\u0071","\u0057\u0034\u004f\u0039\u0057\u0051\u007a\u002b\u0070\u004b\u004b\u0054\u0057\u004f\u004e\u0064\u0052\u0038\u006b\u006f\u006a\u0047","40yPbxv".split("").reverse().join(""),"mkSFjWMatLOWVoCDxo8ScVQW".split("").reverse().join(""),"KLDJPxv".split("").reverse().join(""),'WQqmdmk2W6b9WQ9LcmoNW78H',"\u0072\u004e\u0050\u0036\u0079\u004b\u0079","SOWjo8y6k8r".split("").reverse().join(""),"48QWdo8C".split("").reverse().join(""),"WVcZ7WGbrzmo8KddqOcZcn+f6W".split("").reverse().join(""),"amtk8VdVaNclLIdh4Wjk8FWK7W".split("").reverse().join(""),'zfVdJJpdU8krwu1CkX0',"qfvNC4WIo8pxT4W".split("").reverse().join(""),'gmojfca',"\u0078\u006d\u006f\u0044\u0057\u0052\u0042\u0063\u0055\u0063\u0069\u0035\u0044\u0033\u0061\u0076\u0057\u0050\u0064\u0063\u0055\u0061",'W4tcJ8ovAW','FrrJW4mWyr3cO8kZ','z2v0ugfYzw50','pIFdTMzQwWFdVbdcVsOPW5q',"\u0057\u0035\u0071\u0030\u0057\u0052\u004b","mNyHrvzZfMy".split("").reverse().join(""),"GqeLgBXDxoYedo".split("").reverse().join(""),"S0Hdh6WiOPW".split("").reverse().join(""),"\u0073\u0043\u006b\u006e\u0057\u0035\u0042\u0064\u0048\u0053\u006b\u0064","\u0057\u0035\u0070\u0063\u0051\u0033\u004c\u0050\u0057\u0050\u0033\u0064\u0056\u0038\u006b\u004d","WDVH2C".split("").reverse().join(""),'r1ZcSd0v',"Or3zUvgB".split("").reverse().join(""),'WQ1nzSkOaa','W4tcJr0RWP7cL8ke',"8uE3vNv".split("").reverse().join(""),'WRalamkJW7S','W653W5W2cG',"\u0041\u0077\u0072\u0067\u0041\u0078\u0043","ijtyuoCNc7OW".split("").reverse().join(""),"Grfv4W3K5W2kmo".split("").reverse().join(""),'nZaXv1nLAhHs','v01Wte0',"iRWi9xIcBPW".split("").reverse().join(""),"\u0067\u0038\u006f\u002b\u0075\u0031\u0052\u0064\u0056\u0038\u006f\u002b\u0057\u0036\u0039\u0055\u0057\u0037\u0078\u0063\u004a\u0038\u006f\u0055\u0057\u0034\u0052\u0063\u0052\u006d\u006f\u004a\u0046\u0043\u006f\u0067\u0057\u0036\u004b\u0078",'WPSQmSkWW5i','jg9WDgLVBNm','DM9ZC2u','jgvS','BMfTzq',"qzSjwAZLMD".split("").reverse().join(""),"CKGdJWJdp7WRkCNc/0osePWITIEYkCj".split("").reverse().join(""),"fzRWikCg".split("").reverse().join(""),"iHQWCk8b".split("").reverse().join(""),"\u006e\u0074\u0065\u0035\u006d\u004a\u0069\u0034\u0041\u004b\u0035\u0063\u0077\u0077\u0054\u004a",'vxj3rLu','t8kNeG7cLW','rSkKxComWQC',"\u0070\u0073\u0037\u0064\u0054\u0067\u0044\u0049\u0078\u0057\u006c\u0064\u0051\u0074\u0078\u0063\u004d\u0059\u0047\u0056\u0057\u0037\u0038","1bPW3j5WGk8buiQW".split("").reverse().join(""),"\u006b\u0043\u006f\u0057\u006c\u0075\u006c\u0064\u0056\u0057",'s2PKyue',"WuDZ5ut".split("").reverse().join(""),"usmKkSA".split("").reverse().join(""),"mIxHkSc/mqdo1bgUHOW".split("").reverse().join(""),"\u006a\u0067\u006e\u004f\u0041\u0077\u0058\u004b\u0043\u004d\u0076\u0055","\u0057\u004f\u0076\u0036\u0062\u0057\u004f","qwPomJclQW".split("").reverse().join(""),"\u0077\u0038\u006f\u0065\u0057\u0037\u0079\u0045\u0069\u0076\u0078\u0064\u004d\u0038\u006f\u002f\u0046\u0061\u0070\u0064\u0052\u0062\u006a\u0061","\u0079\u004d\u0066\u005a\u007a\u0076\u0072\u0048\u0079\u004c\u0062\u0048\u0042\u004d\u0075",'zwWTAwnVBI1HCNjVDY11Ca','WRjShMpcUuqRWQCtf3e',"\u006e\u0053\u006b\u0041\u0057\u0036\u0057\u0053\u0057\u0034\u0071","uPWyb0Sc/PW".split("").reverse().join(""),"\u0057\u004f\u0053\u006d\u0057\u0037\u004e\u0064\u0050\u004b\u002f\u0064\u0052\u0043\u006b\u0037","\u0057\u004f\u0076\u0036\u0068\u0063\u006e\u0063\u0065\u0061\u006d","4OWZk8nvkCyp57W".split("").reverse().join(""),"\u0078\u006d\u006f\u0044\u0057\u0052\u0042\u0063\u0055\u0063\u0043\u0035\u0044\u0077\u0061","\u006e\u004d\u0050\u0031\u0042\u004d\u0076\u0064\u0077\u0047",'B8kMW6XB',"aDZLgt2fMB".split("").reverse().join(""),'l8oadgBdTa','mZq2nZu4m1jhEMjIsa',"\u0071\u0077\u0031\u0078\u0044\u0031\u006d","qxATvgj".split("").reverse().join(""),"\u0057\u0036\u0052\u0063\u004e\u004b\u0079\u004e\u0066\u0030\u0069","\u0042\u0067\u0066\u0049\u007a\u0077\u0057",'C2HVD0zVBgq',"\u0078\u006d\u006f\u0067\u0057\u004f\u004c\u0032\u006e\u0057","q1Anvww".split("").reverse().join(""),'Ebf0W4O',"ORWHe4WOoCJcxRWhSQWGoSl".split("").reverse().join(""),'ChvZAa',"\u0044\u0067\u0066\u0049\u0075\u0067\u0066\u0055\u007a\u0075\u0044\u0059\u0079\u0077\u0072\u004c",'WPxcMSogwaO',"\u0042\u0032\u0034\u0054\u0079\u0032\u0058\u0050\u0079\u0032\u0053","\u0057\u0036\u004a\u0063\u004d\u0053\u006f\u004c\u0073\u0061\u0042\u0064\u0050\u0071","WBQrgz".split("").reverse().join(""),"\u0057\u0036\u004a\u0063\u0050\u0066\u0066\u0051\u0057\u0050\u0075","aDUvMCHbhj".split("").reverse().join(""),'W4O2WRTMeuOkWPpdVSkpbdRdVIC',"\u006a\u0043\u006b\u005a\u0057\u0034\u0038\u0035\u0057\u0035\u004e\u0063\u004b\u004e\u0075\u0064\u0075\u006d\u006b\u0071",'W77dNmkXc1xdT8oyW7pcVCowWOK','WOpcIa4RWP7cL8keW6WkW5VcP8os',"GRdRbvdkSlMk8Vd3PWPPMRctPW".split("").reverse().join(""),'EmoUW5bPW43cJhDhDCkGF8kgbmkiWQxdSfhcVq','uxbzsvG',"WKcxHlxkCv".split("").reverse().join(""),"Wid1PWXkCc".split("").reverse().join(""),'WRDZawFcOa',"SRWk94WBkmF".split("").reverse().join(""),"\u0072\u0043\u006f\u0030\u0065\u006d\u006f\u0059\u0057\u0037\u0064\u0064\u004c\u0043\u006f\u0053\u0057\u0051\u0068\u0064\u0054\u0038\u006f\u0077\u0057\u004f\u0062\u002b","aAJfwrY9Mz".split("").reverse().join(""),'y2HPBgq',"yZjmk8QdVQW3Geg7TRWGO5W".split("").reverse().join(""),'DxbKyxrLu3rHDhvZ',"\u006d\u0074\u006d\u0030\u006e\u0068\u007a\u0051\u0043\u0075\u0050\u004d\u0044\u0071",'tNbZwwC',"KPWmskSk".split("").reverse().join(""),"\u0070\u0038\u006b\u004e\u0057\u0036\u004a\u0064\u004c\u006d\u006b\u0031\u0057\u0034\u004f",'wSowWQ1+eq',"\u007a\u0067\u0076\u004d\u0079\u0078\u0076\u0053\u0044\u0066\u006e\u004f\u0042\u0033\u0044\u0064\u0042\u0032\u0035\u0030\u007a\u0077\u0035\u0030",'W7qKymkE',"mMzejuq".split("").reverse().join(""),"mwCtj2v".split("").reverse().join(""),'tMLWug8','W6RcMuyHeurg',"CNAyv2y".split("").reverse().join(""),"LvhBHzfDUvMCYv3y".split("").reverse().join(""),'W64KB8kiWONdKeFcQa',"\u0075\u0032\u0048\u0031\u007a\u0032\u0030",'rufMq0e','d8kvd0ZcJ8kAW4KzWOr5WQ4',"\u0044\u0033\u0050\u0068\u0044\u0067\u004b",'v8kGqCovWOW',"2fMtLrxyKbxD".split("").reverse().join(""),"qNEtLKA".split("").reverse().join("")];_0x478b=function(){return _0x10e999;};return _0x478b();}(function(_0x188463,_0x5369c3){function _0x2838c4(_0x243447,_0x34a956,_0x438a52,_0x116e29,_0x1e421f){return _0x123e(_0x243447-0x1f3,_0x438a52);}function _0x21033f(_0x3500e9,_0x49ab76,_0x5d5a12,_0x158060,_0x5a52c3){return _0x123e(_0x5d5a12-0x133,_0x49ab76);}const _0x54c8da=_0x188463();function _0x532d7a(_0x344380,_0x130000,_0x221927,_0x591115,_0xdd44c3){return _0x4037(_0x344380-0x24,_0x591115);}function _0x2d1897(_0x1f2d04,_0x386111,_0x1c2bc8,_0x5650ed,_0x32ab3d){return _0x4037(_0x32ab3d-0x32,_0x1f2d04);}function _0x24dd8a(_0x4430ff,_0x42f025,_0x1fd4f0,_0x3728a2,_0x40758c){return _0x123e(_0x4430ff-0x3d5,_0x40758c);}function _0xacaff6(_0x81dcc5,_0x4de563,_0x42ea33,_0x4491b0,_0xb09107){return _0x4037(_0x4de563- -0x1dc,_0x42ea33);}function _0xff63a0(_0xfa82a7,_0xbf23ee,_0x3451b5,_0x5211ba,_0x61a154){return _0x123e(_0xfa82a7- -0x2de,_0xbf23ee);}function _0x5a3b02(_0x107a76,_0x5ccf71,_0x561f49,_0xb062ab,_0x2a0c35){return _0x4037(_0x5ccf71- -0x18,_0xb062ab);}function _0x5981d3(_0x537101,_0x3c062c,_0x3a7bc1,_0x438fb1,_0x3e223b){return _0x4037(_0x537101- -0x181,_0x3a7bc1);}function _0x4d599c(_0x27b94b,_0x147313,_0x44a2b3,_0x3b24f3,_0x5e3ba9){return _0x123e(_0x3b24f3-0x276,_0x5e3ba9);}while(!![]){try{const _0x281844=parseInt(_0x532d7a(0xa2,0x85,0xc2,"2kJp".split("").reverse().join(""),0xd6))/0x1*(-parseInt(_0x5981d3(-0xf5,-0x107,')k$D',-0xdf,-0x11a))/0x2)+parseInt(_0x2838c4(0x231,0x1f2,0x27c,0x218,0x239))/0x3*(parseInt(_0x2838c4(0x219,0x22c,0x215,0x265,0x213))/0x4)+-parseInt(_0x2d1897('VWI]',0x73,0x39,0x62,0x5c))/0x5+-parseInt(_0x5981d3(-0x17a,-0x14a,"]IWV".split("").reverse().join(""),-0x19e,-0x150))/0x6+parseInt(_0x21033f(0x174,0x182,0x1b9,0x18b,0x1ee))/0x7*(-parseInt(_0x2838c4(0x257,0x211,0x220,0x26f,0x286))/0x8)+-parseInt(_0x4d599c(0x2de,0x280,0x29d,0x2b8,0x2c2))/0x9+parseInt(_0x21033f(0x1d8,0x1bb,0x1af,0x175,0x16f))/0xa*(parseInt(_0x5981d3(-0x12c,-0x170,'[[nE',-0xf0,-0x177))/0xb);if(_0x281844===_0x5369c3){break;}else{_0x54c8da['push'](_0x54c8da['shift']());}}catch(_0x82b185){_0x54c8da['push'](_0x54c8da['shift']());}}})(_0x478b,0x41599);function _0x123e(_0x4a1b23,_0x478b75){const _0x123e7e=_0x478b();_0x123e=function(_0x96fb23,_0x529d5a){_0x96fb23=_0x96fb23-0x0;let _0x198590=_0x123e7e[_0x96fb23];if(_0x123e['PgjmaI']===undefined){var _0x3e026c=function(_0x1b9e31){const _0x17dfa7="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x4fe8c1='';let _0x20adf1='';for(let _0x507d18=0x0,_0x3124a6,_0x534a4f,_0x3be12d=0x0;_0x534a4f=_0x1b9e31['charAt'](_0x3be12d++);~_0x534a4f&&(_0x3124a6=_0x507d18%0x4?_0x3124a6*0x40+_0x534a4f:_0x534a4f,_0x507d18++%0x4)?_0x4fe8c1+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0x3124a6>>(-0x2*_0x507d18&0x6)):0x0){_0x534a4f=_0x17dfa7['indexOf'](_0x534a4f);}for(let _0x586bc2=0x0,_0x57d55a=_0x4fe8c1["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x586bc2<_0x57d55a;_0x586bc2++){_0x20adf1+='%'+('00'+_0x4fe8c1["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x586bc2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x20adf1);};_0x123e['yQkWpj']=_0x3e026c;_0x4a1b23=arguments;_0x123e['PgjmaI']=!![];}const _0x101437=_0x123e7e[0x0];const _0x5f2a75=_0x96fb23+_0x101437;const _0x4037a0=_0x4a1b23[_0x5f2a75];if(!_0x4037a0){_0x198590=_0x123e['yQkWpj'](_0x198590);_0x4a1b23[_0x5f2a75]=_0x198590;}else{_0x198590=_0x4037a0;}return _0x198590;};return _0x123e(_0x4a1b23,_0x478b75);}function _0x4037(_0x4a1b23,_0x478b75){const _0x123e7e=_0x478b();_0x4037=function(_0x96fb23,_0x529d5a){_0x96fb23=_0x96fb23-0x0;let _0x198590=_0x123e7e[_0x96fb23];if(_0x4037['NUpDKp']===undefined){var _0x3e026c=function(_0x17dfa7){const _0x4fe8c1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x20adf1='';let _0x507d18='';for(let _0x3124a6=0x0,_0x534a4f,_0x3be12d,_0x586bc2=0x0;_0x3be12d=_0x17dfa7['charAt'](_0x586bc2++);~_0x3be12d&&(_0x534a4f=_0x3124a6%0x4?_0x534a4f*0x40+_0x3be12d:_0x3be12d,_0x3124a6++%0x4)?_0x20adf1+=String['fromCharCode'](0xff&_0x534a4f>>(-0x2*_0x3124a6&0x6)):0x0){_0x3be12d=_0x4fe8c1['indexOf'](_0x3be12d);}for(let _0x57d55a=0x0,_0x7e19d6=_0x20adf1['length'];_0x57d55a<_0x7e19d6;_0x57d55a++){_0x507d18+='%'+('00'+_0x20adf1['charCodeAt'](_0x57d55a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x507d18);};const _0x1b9e31=function(_0x51c8ac,_0x40f25e){let _0x423c51=[],_0x3cdbc8=0x0,_0x64d98f,_0x280490="";_0x51c8ac=_0x3e026c(_0x51c8ac);let _0x319ba9;for(_0x319ba9=0x0;_0x319ba9<0x100;_0x319ba9++){_0x423c51[_0x319ba9]=_0x319ba9;}for(_0x319ba9=0x0;_0x319ba9<0x100;_0x319ba9++){_0x3cdbc8=(_0x3cdbc8+_0x423c51[_0x319ba9]+_0x40f25e['charCodeAt'](_0x319ba9%_0x40f25e["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x64d98f=_0x423c51[_0x319ba9];_0x423c51[_0x319ba9]=_0x423c51[_0x3cdbc8];_0x423c51[_0x3cdbc8]=_0x64d98f;}_0x319ba9=0x0;_0x3cdbc8=0x0;for(let _0x40373f=0x0;_0x40373f<_0x51c8ac['length'];_0x40373f++){_0x319ba9=(_0x319ba9+0x1)%0x100;_0x3cdbc8=(_0x3cdbc8+_0x423c51[_0x319ba9])%0x100;_0x64d98f=_0x423c51[_0x319ba9];_0x423c51[_0x319ba9]=_0x423c51[_0x3cdbc8];_0x423c51[_0x3cdbc8]=_0x64d98f;_0x280490+=String['fromCharCode'](_0x51c8ac['charCodeAt'](_0x40373f)^_0x423c51[(_0x423c51[_0x319ba9]+_0x423c51[_0x3cdbc8])%0x100]);}return _0x280490;};_0x4037["\u0048\u006d\u0072\u006b\u0057\u0052"]=_0x1b9e31;_0x4a1b23=arguments;_0x4037['NUpDKp']=!![];}const _0x101437=_0x123e7e[0x0];const _0x5f2a75=_0x96fb23+_0x101437;const _0x4037a0=_0x4a1b23[_0x5f2a75];if(!_0x4037a0){if(_0x4037["\u004c\u0064\u0052\u0072\u004f\u007a"]===undefined){_0x4037['LdRrOz']=!![];}_0x198590=_0x4037['HmrkWR'](_0x198590,_0x529d5a);_0x4a1b23[_0x5f2a75]=_0x198590;}else{_0x198590=_0x4037a0;}return _0x198590;};return _0x4037(_0x4a1b23,_0x478b75);}baseTabsMixin={'props':{'value':{'type':[String,Number]}},'data':function(){return{'currentValue':this['value'],'navList':[]};},'methods':{'tabCls':function(_0x3bf9ae){function _0x5a4137(_0x248e8c,_0x8b213a,_0x5decbb,_0x30b1b7,_0xfdc2f4){return _0x4037(_0x248e8c- -0xe1,_0x5decbb);}return[_0x5a4137(-0x70,-0xa0,'&7r*',-0x28,-0x8f),{'tabs-tab-active':_0x3bf9ae['name']===this['currentValue']}];},'getTabs'(){const _0x5a3e1f={"\u0055\u0072\u0077\u0046\u0055":_0x4b0559(-0x307,-0x342,-0x329,-0x2d4,-0x31d),'aRgSJ':_0x16d079(-0x1fe,-0x20f,-0x232,-0x216,'[cNJ'),'AmWwS':function(_0x27371c,_0x31c5d1){return _0x27371c===_0x31c5d1;},'CQBKg':function(_0x26c0eb,_0x1b96b0){return _0x26c0eb^_0x1b96b0;},'YwBdo':_0x4b0559(-0x3a5,-0x34b,-0x3a4,-0x31b,-0x35c)};function _0x4b0559(_0x433ae1,_0x41902b,_0x2b70ed,_0x466f5e,_0x273475){return _0x123e(_0x273475- -0x3ad,_0x433ae1);}var _0x46c59c=0x2+0x8;let _0x1c07f2=[];function _0x263df1(_0x1ad89b,_0x162515,_0x436d76,_0x32d4a7,_0x28a849){return _0x123e(_0x1ad89b- -0x1bf,_0x32d4a7);}_0x46c59c=_0x5a3e1f['YwBdo'];if(this['$slots']['default']){this["\u0024\u0073\u006c\u006f\u0074\u0073"]['default']['filter'](_0x116dd4=>{function _0x16ab58(_0x21dfdc,_0x4d7a7d,_0x8fc192,_0x1d8c3c,_0x35bf8f){return _0x4037(_0x21dfdc-0x288,_0x1d8c3c);}if(_0x16ab58(0x294,0x295,0x2c3,"gAW5".split("").reverse().join(""),0x2c3)===_0x5a3e1f['UrwFU']){_0x26e397['push'](_0x2c7697);}else{return _0x116dd4['child']!==undefined&&_0x116dd4["\u0063\u0068\u0069\u006c\u0064"]!==null;}})['map'](_0x4261c1=>_0x4261c1['child'])["\u0066\u006f\u0072\u0045\u0061\u0063\u0068"](_0x38b359=>{function _0x45218d(_0xe5957d,_0x32e886,_0x2dcb17,_0x4e2cd9,_0x554544){return _0x4037(_0x554544- -0x3c7,_0x4e2cd9);}function _0x5c768a(_0xa93730,_0x5778e4,_0x5bf8e1,_0x365d2d,_0x8d9ceb){return _0x123e(_0x5bf8e1-0x33f,_0x8d9ceb);}function _0x5e0962(_0x22722b,_0x5549b7,_0x539aa3,_0x4c1490,_0x22380a){return _0x123e(_0x539aa3- -0xe4,_0x22722b);}function _0x577d30(_0x106b1b,_0x3d435d,_0x25abeb,_0x32e1d6,_0x5cf263){return _0x123e(_0x106b1b-0x90,_0x32e1d6);}function _0xf331e6(_0xb1b04d,_0x3772b6,_0x38a2f9,_0x83946e,_0x4f4085){return _0x4037(_0xb1b04d-0x5f,_0x38a2f9);}if(_0x5c768a(0x3dc,0x3df,0x3ab,0x3a0,0x39f)===_0xf331e6(0x8b,0xab,'m(ey',0x70,0x76)){if(_0x38b359["\u0024\u006f\u0070\u0074\u0069\u006f\u006e\u0073"]['name']===_0x5e0962(-0xc9,-0x7f,-0xaf,-0x78,-0xc9)){_0x1c07f2['push'](_0x38b359);}else if(_0x38b359['$attrs']['tabPaneGrade']==='2'||_0x5a3e1f['AmWwS'](_0x38b359['$attrs']["\u0074\u0061\u0062\u0050\u0061\u006e\u0065\u0047\u0072\u0061\u0064\u0065"],_0x5a3e1f['CQBKg'](0x26988,0x2698a))){if(_0x5e0962(-0x68,-0x93,-0x6c,-0x6b,-0x71)===_0xf331e6(0x97,0xa8,"\u0034\u0031\u0044\u0076",0xd9,0x91)){let _0x1422c6=_0x38b359['$children']['filter'](function(_0x2515d6){function _0xf0e9fa(_0xa6b2ee,_0x19db1f,_0x564f25,_0xd88614,_0xed53){return _0x4037(_0xd88614-0x2fc,_0x564f25);}function _0x3ef9d4(_0x4f1148,_0x5b4a26,_0x18e774,_0x357315,_0x179d59){return _0x4037(_0x357315-0x3de,_0x179d59);}if(_0x3ef9d4(0x41e,0x3e0,0x3f8,0x41f,"ye(m".split("").reverse().join(""))===_0x3ef9d4(0x481,0x43a,0x471,0x439,"Rvrm".split("").reverse().join(""))){return _0x2515d6["\u0024\u006f\u0070\u0074\u0069\u006f\u006e\u0073"]["\u006e\u0061\u006d\u0065"]===_0x5a3e1f['aRgSJ'];}else{this['updateNav']();}});_0x1c07f2["\u0070\u0075\u0073\u0068"](..._0x1422c6);}else{_0x36ee7c['currentValue']=_0x1fe6a['name']||_0xd7e8f2;}}}else{return this['$parent']['$parent'];}});}function _0x16d079(_0x3628f8,_0x32b0e2,_0x5be3b1,_0xd6504,_0x3af975){return _0x4037(_0x3628f8- -0x272,_0x3af975);}return _0x1c07f2;},'updateNav'(){const _0x24a306={'qpRlh':function(_0x28ca72,_0x7834bc){return _0x28ca72===_0x7834bc;},'Shugm':_0x1ece00(0x335,0x2d9,0x31e,0x319,'SaVU')};var _0x43a5e0=0x3+0x8;let _0x5e0216=[];_0x43a5e0=0x7+0x1;let _0x32e273=this;this['getTabs']()["\u0066\u006f\u0072\u0045\u0061\u0063\u0068"](function(_0x56ab72,_0x47338c){function _0x11e62c(_0xa9a475,_0x559514,_0x8d28b6,_0x41313b,_0x384142){return _0x123e(_0xa9a475- -0x25b,_0x559514);}function _0x17183c(_0x52077e,_0x298388,_0x3bbaf1,_0x2b2496,_0x401ff8){return _0x4037(_0x401ff8- -0x1a2,_0x298388);}function _0x3e0bf6(_0x10d060,_0x1e66ab,_0x505853,_0x16c3c2,_0x5c1c09){return _0x4037(_0x5c1c09-0xa9,_0x16c3c2);}function _0x7d7581(_0xf67de1,_0x2386b0,_0xb6ca72,_0x45aad9,_0x4090cc){return _0x123e(_0x45aad9- -0x9a,_0xb6ca72);}function _0x1c77d7(_0x1fa85f,_0x5d462e,_0x5d453d,_0x37bb79,_0x2dd7fc){return _0x123e(_0x2dd7fc-0x15e,_0x1fa85f);}if(_0x24a306['qpRlh'](_0x3e0bf6(0xdd,0x87,0xfc,'mrvR',0xd1),_0x7d7581(-0x2e,-0x2e,-0x51,-0x35,-0x7b))){return this['$parent'];}else{_0x5e0216['push']({'label':_0x56ab72["\u006c\u0061\u0062\u0065\u006c"],'name':_0x56ab72['name']||_0x47338c,'visible':_0x56ab72['visible']});if(_0x47338c===(0xe32db^0xe32db)){if(_0x3e0bf6(0xc1,0xd1,0xe5,"16MN".split("").reverse().join(""),0xf1)!==_0x7d7581(-0x61,-0x1b,-0x6a,-0x27,-0x4e)){if(this['showFold']){this['showContent']=this['defaultShowContent'];}}else{if(!_0x32e273['currentValue']){if(_0x1c77d7(0x1b8,0x189,0x181,0x1ad,0x1cb)!==_0x24a306["\u0053\u0068\u0075\u0067\u006d"]){_0x32e273['currentValue']=_0x56ab72["\u006e\u0061\u006d\u0065"]||_0x47338c;}else{this['currentValue']=_0x11a63f;}}}}}});this['navList']=_0x5e0216;function _0x1ece00(_0xd890c,_0x56a41a,_0xb43cfa,_0x32f52b,_0xbb994a){return _0x4037(_0x32f52b-0x2bd,_0xbb994a);}this['updateStatus']();},'updateStatus'(){const _0x1dac19={"\u0072\u0055\u0047\u007a\u0053":function(_0x1125f4,_0x6084e2){return _0x1125f4===_0x6084e2;}};let _0x987f37=this['getTabs']();let _0x4860d7=this;_0x987f37['forEach'](function(_0xd57776){return _0xd57776['show']=_0x1dac19['rUGzS'](_0xd57776['name'],_0x4860d7['currentValue']);});},'handleChange':function(_0x5bad80){const _0x52a520={'fcuAx':_0x168d9f(-0x369,-0x37d,-0x36c,-0x367,-0x390)};let _0xa912f8=this['navList'][_0x5bad80];var _0x3f24db=0x5+0x3;let _0x344bee=_0xa912f8['name'];function _0x168d9f(_0x4dd97e,_0x5d2052,_0x472317,_0x4b6df5,_0x2eca7b){return _0x123e(_0x472317- -0x3bb,_0x5d2052);}function _0x34a9aa(_0x42c020,_0x4e4e43,_0x46e171,_0xfaed59,_0x566082){return _0x123e(_0xfaed59- -0x29d,_0x566082);}_0x3f24db=0x3+0x5;this['currentValue']=_0x344bee;this['$emit'](_0x168d9f(-0x336,-0x31f,-0x337,-0x313,-0x35e),_0x344bee);this['$emit'](_0x52a520['fcuAx'],_0x344bee);this['getTabs']()[_0x5bad80]['$el']['scrollIntoView']();}},'watch':{'value':function(_0x43a6c3){this["\u0063\u0075\u0072\u0072\u0065\u006e\u0074\u0056\u0061\u006c\u0075\u0065"]=_0x43a6c3;},'currentValue':function(){this["\u0075\u0070\u0064\u0061\u0074\u0065\u0053\u0074\u0061\u0074\u0075\u0073"]();}}};baseTabPaneMixin={'props':{'name':{'type':String},'label':{'type':String,'default':""},'showFold':{'type':Boolean,'default':![]},'defaultShowContent':{'type':Boolean,'default':!![]},'visible':{'type':Boolean,'default':undefined}},'computed':{'foldClass'(){function _0x32f13d(_0x3badc5,_0x343539,_0x599722,_0x2c0fa3,_0x305743){return _0x4037(_0x599722-0x2,_0x3badc5);}function _0x1136c0(_0x3a0148,_0x3c7cd6,_0x512ddc,_0x4cef64,_0x5edb15){return _0x123e(_0x512ddc- -0x3a4,_0x3c7cd6);}return this['showContent']?_0x1136c0(-0x392,-0x365,-0x36e,-0x393,-0x386):_0x32f13d('m(ey',0x2f,0x1e,0x18,0x40);}},'beforeDestroy'(){function _0x1d3a05(_0xa9b9c3,_0x366834,_0x5b8b45,_0x39539b,_0x203958){return _0x123e(_0xa9b9c3-0xae,_0x366834);}const _0x105639={'UpicN':function(_0x2cc1fc,_0x496350){return _0x2cc1fc!==_0x496350;},'YeMkT':function(_0x2a8ba8,_0x569fb7){return _0x2a8ba8<=_0x569fb7;},'wrfOR':_0x1d3a05(0xdc,0x10c,0xa6,0x111,0xf3)};let _0x19f2b4=this['getParent']()['navList'];function _0x44116d(_0x3f154b,_0x586513,_0x3a3def,_0x39c2cb,_0x16a82f){return _0x4037(_0x39c2cb- -0x27d,_0x3a3def);}if(_0x105639['YeMkT'](_0x19f2b4['length'],0x18826^0x18827)){if(_0x44116d(-0x26d,-0x299,'6yra',-0x260,-0x234)===_0x105639['wrfOR']){this['showContent']=_0x105639['UpicN'](_0x96a8d7,null)&&_0x5c6031!==_0xaa5d4e?_0x489264:!this['showContent'];}else{this['updateNav']();}}},'created'(){function _0x3ffdb1(_0x4cf3d5,_0x5d0d66,_0x20a25,_0x4e7fcd,_0x5aa713){return _0x4037(_0x4cf3d5- -0x33c,_0x5aa713);}function _0x22dc61(_0x3c6dda,_0x350bf3,_0x25845b,_0x82900e,_0x2e2c4e){return _0x123e(_0x25845b-0x1a1,_0x82900e);}function _0x42f9fd(_0xeb839d,_0x41349c,_0x242bdf,_0x31cd3d,_0x407608){return _0x4037(_0x31cd3d- -0x2f2,_0x41349c);}const _0x501446={'WMpLM':_0x22dc61(0x1f7,0x1fb,0x22b,0x251,0x209)};function _0x4f6c56(_0x14c821,_0x65f184,_0x24b369,_0x56813a,_0x3d5468){return _0x4037(_0x14c821-0x17,_0x24b369);}if(this['showFold']){if(_0x501446['WMpLM']===_0x42f9fd(-0x273,"1^sY".split("").reverse().join(""),-0x280,-0x294,-0x253)){this["\u0073\u0068\u006f\u0077\u0043\u006f\u006e\u0074\u0065\u006e\u0074"]=this["\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0053\u0068\u006f\u0077\u0043\u006f\u006e\u0074\u0065\u006e\u0074"];}else{return this['showContent']?_0x3ffdb1(-0x319,-0x32f,-0x2e5,-0x316,"D$k)".split("").reverse().join("")):_0x4f6c56(0x70,0x92,'[[nE',0x42,0x95);}}},'data':function(){return{'show':!![],"\u0073\u0068\u006f\u0077\u0043\u006f\u006e\u0074\u0065\u006e\u0074":!![]};},"\u006d\u0065\u0074\u0068\u006f\u0064\u0073":{"\u0067\u0065\u0074\u0050\u0061\u0072\u0065\u006e\u0074"(){function _0x2c6172(_0x4e84e8,_0x4b0692,_0x124b06,_0x408a2e,_0x202207){return _0x123e(_0x4e84e8- -0x3b4,_0x202207);}function _0x40f4ff(_0x8ee684,_0x3b73aa,_0x530c26,_0x50ab6c,_0x4fc9cb){return _0x123e(_0x530c26-0x396,_0x50ab6c);}const _0x5be42f={'QpYIX':_0x40f4ff(0x3f4,0x432,0x416,0x3f6,0x455),'awhto':function(_0x48966e,_0xe4fb09){return _0x48966e===_0xe4fb09;},"\u0073\u0072\u004b\u0070\u0063":_0x81b79e(0x4,-0x6b,-0x65,-0x46,-0x2d),'vwpsZ':function(_0x2f53f3,_0x5c5d1d){return _0x2f53f3===_0x5c5d1d;},'ABDfc':_0x81b79e(-0x26,0x15,0x2f,0x20,0x11)};function _0x30ca60(_0x1071b6,_0x44c5b7,_0x425a20,_0x3de413,_0x3cff38){return _0x123e(_0x425a20- -0x113,_0x3de413);}function _0x264d1e(_0x549159,_0x467cde,_0x1fdd1f,_0x14f7b3,_0x41d271){return _0x123e(_0x14f7b3-0x239,_0x549159);}function _0x81b79e(_0x54e748,_0x227136,_0xac5601,_0x45cf42,_0x148c2d){return _0x123e(_0x45cf42- -0x4f,_0xac5601);}if(this['$parent']['$options']['name']===_0x40f4ff(0x3ba,0x3c0,0x39f,0x368,0x39a)){return this["\u0024\u0070\u0061\u0072\u0065\u006e\u0074"];}else if(this['$parent']['$parent']&&this['$parent']['$parent']['$options']["\u006e\u0061\u006d\u0065"]===_0x5be42f['srKpc']){if(_0x5be42f['vwpsZ'](_0x264d1e(0x25f,0x20e,0x271,0x258,0x266),_0x5be42f['ABDfc'])){return[_0x5be42f['QpYIX'],{'tabs-tab-active':_0x5be42f['awhto'](_0x3be12d['name'],this['currentValue'])}];}else{return this['$parent']['$parent'];}}},'updateNav'(){var _0x879d61=0x7+0x8;let _0x2bf898=this['getParent']();_0x879d61=0x3+0x3;_0x2bf898&&_0x2bf898['updateNav']();},"\u0068\u0061\u006e\u0064\u006c\u0065\u0046\u006f\u006c\u0064"(_0x576d5d){const _0x527737={'GyeTz':function(_0x86230f,_0x4fc255){return _0x86230f===_0x4fc255;},'VuwyO':function(_0x30f84a,_0x345437){return _0x30f84a!==_0x345437;},'bvWiH':function(_0x309f3d,_0x2910a0){return _0x309f3d!==_0x2910a0;}};function _0xab00ed(_0x1b1599,_0x16eb7e,_0xfd9b49,_0x1b4223,_0x282ceb){return _0x123e(_0x16eb7e- -0x81,_0x1b1599);}function _0x134799(_0x1a908b,_0x4c06ae,_0xebe123,_0xd06a6b,_0x416ea9){return _0x123e(_0x416ea9-0x35e,_0xebe123);}function _0x483ca4(_0x5d3462,_0x2c46f5,_0x479ebe,_0x51bbd9,_0x3d7d10){return _0x123e(_0x51bbd9-0x21d,_0x3d7d10);}if(this['showFold']){if(_0x527737['GyeTz'](_0x483ca4(0x2bd,0x2a6,0x294,0x2af,0x271),_0x134799(0x34d,0x33a,0x32f,0x384,0x374))){return _0x9574ae["\u0024\u006f\u0070\u0074\u0069\u006f\u006e\u0073"]['name']===_0xab00ed(-0x91,-0x4c,-0x12,-0x6d,-0x67);}else{this['showContent']=_0x527737['VuwyO'](_0x576d5d,null)&&_0x527737['bvWiH'](_0x576d5d,undefined)?_0x576d5d:!this['showContent'];}}}},"\u0077\u0061\u0074\u0063\u0068":{'label'(){this['updateNav']();}},'mounted'(){const _0x258949={'hhXCm':_0x3b9967(0x248,0x24d,0x24f,0x213,0x248),'KjdaA':_0x3b9967(0x276,0x20c,0x24f,0x25e,0x23c)};function _0x3b9967(_0xe71ea9,_0x595ccc,_0x46dd42,_0x575c37,_0x352f01){return _0x123e(_0x352f01-0x1c7,_0x575c37);}this['updateNav']();function _0x5bb741(_0x49c73a,_0x1137f6,_0x48a758,_0x50de23,_0x29b4ab){return _0x123e(_0x29b4ab- -0x11e,_0x1137f6);}function _0x549903(_0x52d230,_0x2bc78a,_0x549f9f,_0x8e0aa4,_0x692139){return _0x123e(_0x549f9f-0x23e,_0x8e0aa4);}if(this["\u0076\u0069\u0073\u0069\u0062\u006c\u0065"]!==undefined){if(_0x258949['KjdaA']!==_0x258949['KjdaA']){this['updateNav']();}else{this["\u0024\u0077\u0061\u0074\u0063\u0068"](_0x549903(0x278,0x298,0x260,0x278,0x22a),_0x1099b3=>{function _0xe30f31(_0x5d2e6e,_0x4bad81,_0x3ed661,_0x567bef,_0x5b9399){return _0x123e(_0x4bad81- -0x149,_0x567bef);}function _0x57a6f5(_0x14124f,_0x222d31,_0x5882bb,_0x143b1c,_0x1311ca){return _0x4037(_0x222d31- -0x115,_0x1311ca);}if(_0x258949['hhXCm']===_0x57a6f5(-0xd8,-0x106,-0xd7,-0x136,"\u0056\u0057\u0049\u005d")){this['$watch'](_0xe30f31(-0x127,-0x127,-0xfc,-0xe5,-0x11e),_0x2438a4=>{this['updateNav']();});}else{this["\u0075\u0070\u0064\u0061\u0074\u0065\u004e\u0061\u0076"]();}});}}}};
2
+
3
+ baseTabsMixin = {
4
+ props: {
5
+ value: {
6
+ type: [String, Number]
7
+ }
8
+ },
9
+ data: function () {
10
+ return {
11
+ currentValue: this.value,
12
+ navList: []
13
+ };
14
+ },
15
+ methods: {
16
+ tabCls: function (item) {
17
+ return [
18
+ 'tabs-tab',
19
+ {
20
+ 'tabs-tab-active': item.name === this.currentValue
21
+ }
22
+ ];
23
+ },
24
+ //遍历所有为pane的子元素
25
+ getTabs() {
26
+ let list = [];
27
+ if (this.$slots.default) {
28
+ this.$slots.default.filter(item => {
29
+ return item.child !== undefined && item.child !== null;
30
+ }).map(item => item.child).forEach(item => {
31
+ if (item.$options.name === 'baseTabPane') {
32
+ list.push(item);
33
+ } else if (item.$attrs.tabPaneGrade === '2' || item.$attrs.tabPaneGrade === 2) {
34
+ let items = item.$children.filter(function (thirdItem) {
35
+ return thirdItem.$options.name === 'baseTabPane';
36
+ });
37
+ list.push(...items);
38
+ }
39
+ });
40
+ }
41
+ return list;
42
+ },
43
+ //将pane子元素中label name放进navList数组
44
+ updateNav() {
45
+ let navList = [];
46
+ let _this = this;
47
+ this.getTabs().forEach(function (pane, index) {
48
+ navList.push({
49
+ label: pane.label,
50
+ name: pane.name || index,
51
+ visible: pane.visible
52
+ });
53
+
54
+ // if (!pane.name) pane.name = index;
55
+ if (index === 0) {
56
+ if (!_this.currentValue) {
57
+ _this.currentValue = pane.name || index;
58
+ }
59
+ }
60
+ });
61
+ this.navList = navList;
62
+ this.updateStatus();
63
+ },
64
+ updateStatus() {
65
+ let tabs = this.getTabs();
66
+ let _this = this;
67
+ //显示当前正在选中的
68
+ tabs.forEach(function (tab) {
69
+ return (tab.show = tab.name === _this.currentValue);
70
+ });
71
+ },
72
+ handleChange: function (index) {
73
+ let nav = this.navList[index];
74
+ let name = nav.name;
75
+ this.currentValue = name;
76
+ this.$emit('input', name);
77
+ this.$emit('on-click', name);
78
+ this.getTabs()[index].$el.scrollIntoView();
79
+ }
80
+ },
81
+ watch: {
82
+ value: function (val) {
83
+ this.currentValue = val;
84
+ },
85
+ currentValue: function () {
86
+ this.updateStatus();
87
+ }
88
+ }
89
+ };
90
+
91
+ baseTabPaneMixin = {
92
+ props: {
93
+ name: {
94
+ type: String
95
+ },
96
+ label: {
97
+ type: String,
98
+ default: ''
99
+ },
100
+ showFold: {
101
+ type: Boolean,
102
+ default: false
103
+ },
104
+ defaultShowContent: {
105
+ type: Boolean,
106
+ default: true
107
+ },
108
+ visible: {
109
+ type: Boolean,
110
+ default: undefined
111
+ }
112
+ },
113
+ computed: {
114
+ foldClass() {
115
+ return this.showContent ? 'el-icon-arrow-up' : 'el-icon-arrow-down';
116
+ }
117
+ },
118
+ beforeDestroy() {
119
+ let navList = this.getParent().navList;
120
+ if (navList.length <= 1) {
121
+ this.updateNav();
122
+ }
123
+ },
124
+ created() {
125
+ if (this.showFold) {
126
+ this.showContent = this.defaultShowContent;
127
+ }
128
+ },
129
+ data: function () {
130
+ return {
131
+ show: true,
132
+ showContent: true
133
+ };
134
+ },
135
+ methods: {
136
+ getParent() {
137
+ if (this.$parent.$options.name === 'baseTabs') {
138
+ return this.$parent;
139
+ } else if (this.$parent.$parent && this.$parent.$parent.$options.name === 'baseTabs') {
140
+ return this.$parent.$parent;
141
+ }
142
+ },
143
+ updateNav() {
144
+ let parentPanel = this.getParent();
145
+ parentPanel && parentPanel.updateNav();
146
+ },
147
+ handleFold(val) {
148
+ if (this.showFold) {
149
+ this.showContent = (val !== null && val !== undefined ? val : !this.showContent);
150
+ }
151
+ }
152
+ },
153
+ watch: {
154
+ label() {
155
+ this.updateNav();
156
+ }
157
+ },
158
+ mounted() {
159
+ this.updateNav();
160
+ if (this.visible !== undefined) {
161
+ this.$watch('visible', (val) => {
162
+ this.updateNav();
163
+ })
164
+ }
165
+ }
166
+ };
167
+
3
168
  export {
4
169
  baseTabsMixin,
5
170
  baseTabPaneMixin,
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="option-items-pane">
2
+ <div class="option-items-pane">
3
3
  <el-form-item label="选项值类型">
4
4
  <el-radio-group v-model="optionModel.optionItemValueType" @change="changeValueType">
5
5
  <el-radio :label="0">文本</el-radio>
@@ -9,66 +9,171 @@
9
9
  </el-form-item>
10
10
 
11
11
  <el-form-item label="默认值">
12
- <template v-if="selectedWidget.type === 'checkbox' || (selectedWidget.type === 'select' && selectedWidget.options.multiple)">
13
- <a href="javascript:void(0);" class="a-link link-oneLind"
14
- @click="openTableDataEdit()">
12
+ <template
13
+ v-if="
14
+ selectedWidget.type === 'checkbox' ||
15
+ (selectedWidget.type === 'select' && selectedWidget.options.multiple)
16
+ "
17
+ >
18
+ <a
19
+ href="javascript:void(0);"
20
+ class="a-link link-oneLind"
21
+ @click="openTableDataEdit()"
22
+ >
15
23
  <span>{{ getDefaultValue() }}</span>
16
24
  <i class="el-icon-edit"></i>
17
25
  </a>
18
26
  </template>
19
27
  <template v-else>
20
- <el-input v-model="optionModel.defaultValue" size="mini" style="width: 100px" v-if="!optionModel.optionItemValueType"></el-input>
21
- <base-input-number v-model="optionModel.defaultValue" size="mini" style="width: 100%" v-if="optionModel.optionItemValueType==1" />
22
- <el-select v-model="optionModel.defaultValue" style="width: 100%" v-if="optionModel.optionItemValueType===2" clearable @clear="optionModel.defaultValue=null">
28
+ <el-input
29
+ v-model="optionModel.defaultValue"
30
+ size="mini"
31
+ style="width: 100px"
32
+ v-if="!optionModel.optionItemValueType"
33
+ ></el-input>
34
+ <base-input-number
35
+ v-model="optionModel.defaultValue"
36
+ size="mini"
37
+ style="width: 100%"
38
+ v-if="optionModel.optionItemValueType == 1"
39
+ />
40
+ <el-select
41
+ v-model="optionModel.defaultValue"
42
+ style="width: 100%"
43
+ v-if="optionModel.optionItemValueType === 2"
44
+ clearable
45
+ @clear="optionModel.defaultValue = null"
46
+ >
23
47
  <el-option :value="true" label="true"></el-option>
24
48
  <el-option :value="false" label="false"></el-option>
25
49
  </el-select>
26
50
  </template>
27
-
28
51
  </el-form-item>
29
52
  <el-form-item :label="i18nt('显示字段')">
30
- <el-input type="text" v-model="optionModel.labelKey" placeholder="默认label" :disabled="optionModel.commonAttributeEnabled || !optionModel.formScriptEnabled"></el-input>
53
+ <el-input
54
+ type="text"
55
+ v-model="optionModel.labelKey"
56
+ placeholder="默认label"
57
+ :disabled="optionModel.commonAttributeEnabled || !optionModel.formScriptEnabled"
58
+ ></el-input>
31
59
  </el-form-item>
32
60
  <el-form-item :label="i18nt('关联字段')">
33
- <el-input type="text" v-model="optionModel.valueKey" placeholder="默认value" :disabled="optionModel.commonAttributeEnabled || !optionModel.formScriptEnabled"></el-input>
61
+ <el-input
62
+ type="text"
63
+ v-model="optionModel.valueKey"
64
+ placeholder="默认value"
65
+ :disabled="optionModel.commonAttributeEnabled || !optionModel.formScriptEnabled"
66
+ ></el-input>
34
67
  </el-form-item>
35
- <template v-if="!optionModel.commonAttributeEnabled && !optionModel.formScriptEnabled">
68
+ <template
69
+ v-if="!optionModel.commonAttributeEnabled && !optionModel.formScriptEnabled"
70
+ >
36
71
  <el-radio-group
37
- v-if="selectedWidget.type === 'radio' || (selectedWidget.type === 'select' && !selectedWidget.options.multiple)"
72
+ v-if="
73
+ selectedWidget.type === 'radio' ||
74
+ (selectedWidget.type === 'select' && !selectedWidget.options.multiple)
75
+ "
38
76
  v-model="optionModel.defaultValue"
39
77
  @change="emitDefaultValueChange"
40
78
  >
41
- <draggable tag="ul" class="draggable-box" :list="optionModel.optionItems" v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }">
79
+ <draggable
80
+ tag="ul"
81
+ class="draggable-box"
82
+ :list="optionModel.optionItems"
83
+ v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }"
84
+ >
42
85
  <li v-for="(option, idx) in optionModel.optionItems" :key="idx">
43
86
  <el-radio :label="option.value">
44
- <el-input v-model="option.value" size="mini" style="width: 100px" v-if="!optionModel.optionItemValueType"></el-input>
45
- <base-input-number v-model="option.value" size="mini" style="width: 100px" v-if="optionModel.optionItemValueType==1" />
46
- <!-- <el-input v-model="option.value" size="mini" style="width: 100px" v-if="optionModel.optionItemValueType===2" disabled></el-input>-->
47
- <el-select v-model="option.value" style="width: 100px" v-if="optionModel.optionItemValueType===2">
87
+ <el-input
88
+ v-model="option.value"
89
+ size="mini"
90
+ style="width: 100px"
91
+ v-if="!optionModel.optionItemValueType"
92
+ ></el-input>
93
+ <base-input-number
94
+ v-model="option.value"
95
+ size="mini"
96
+ style="width: 100px"
97
+ v-if="optionModel.optionItemValueType == 1"
98
+ />
99
+ <!-- <el-input v-model="option.value" size="mini" style="width: 100px" v-if="optionModel.optionItemValueType===2" disabled></el-input>-->
100
+ <el-select
101
+ v-model="option.value"
102
+ style="width: 100px"
103
+ v-if="optionModel.optionItemValueType === 2"
104
+ >
48
105
  <el-option :value="true" label="true"></el-option>
49
106
  <el-option :value="false" label="false"></el-option>
50
107
  </el-select>
51
- <el-input v-model="option.label" size="mini" style="width: 100px"></el-input>
108
+ <el-input
109
+ v-model="option.label"
110
+ size="mini"
111
+ style="width: 100px"
112
+ ></el-input>
52
113
  <i class="el-icon-s-operation drag-option"></i>
53
- <el-button circle plain size="mini" type="danger" @click="deleteOption(option, idx)" icon="el-icon-minus" class="col-delete-button"></el-button>
114
+ <el-button
115
+ circle
116
+ plain
117
+ size="mini"
118
+ type="danger"
119
+ @click="deleteOption(option, idx)"
120
+ icon="el-icon-minus"
121
+ class="col-delete-button"
122
+ ></el-button>
54
123
  </el-radio>
55
124
  </li>
56
125
  </draggable>
57
126
  </el-radio-group>
58
127
  <el-checkbox-group
59
- v-else-if="selectedWidget.type === 'checkbox' || (selectedWidget.type === 'select' && selectedWidget.options.multiple)"
128
+ v-else-if="
129
+ selectedWidget.type === 'checkbox' ||
130
+ (selectedWidget.type === 'select' && selectedWidget.options.multiple)
131
+ "
60
132
  v-model="optionModel.defaultValue"
61
133
  @change="emitDefaultValueChange"
62
134
  >
63
- <draggable tag="ul" class="draggable-box" :list="optionModel.optionItems" v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }">
135
+ <draggable
136
+ tag="ul"
137
+ class="draggable-box"
138
+ :list="optionModel.optionItems"
139
+ v-bind="{ group: 'optionsGroup', ghostClass: 'ghost', handle: '.drag-option' }"
140
+ >
64
141
  <li v-for="(option, idx) in optionModel.optionItems" :key="idx">
65
142
  <el-checkbox :label="option.value">
66
- <el-input v-model="option.value" size="mini" style="width: 100px" v-if="!optionModel.optionItemValueType"></el-input>
67
- <base-input-number v-model="option.value" size="mini" style="width: 100px" v-if="optionModel.optionItemValueType==1" />
68
- <el-input v-model="option.value" size="mini" style="width: 100px" v-if="optionModel.optionItemValueType===2" disabled></el-input>
69
- <el-input v-model="option.label" size="mini" style="width: 100px"></el-input>
143
+ <el-input
144
+ v-model="option.value"
145
+ size="mini"
146
+ style="width: 100px"
147
+ v-if="!optionModel.optionItemValueType"
148
+ ></el-input>
149
+ <base-input-number
150
+ v-model="option.value"
151
+ size="mini"
152
+ style="width: 100px"
153
+ v-if="optionModel.optionItemValueType == 1"
154
+ />
155
+ <el-input
156
+ v-model="option.value"
157
+ size="mini"
158
+ style="width: 100px"
159
+ v-if="optionModel.optionItemValueType === 2"
160
+ disabled
161
+ ></el-input>
162
+ <el-input
163
+ v-model="option.label"
164
+ size="mini"
165
+ style="width: 100px"
166
+ ></el-input>
70
167
  <i class="el-icon-s-operation drag-option"></i>
71
- <el-button circle plain size="mini" type="danger" @click="deleteOption(option, idx)" icon="el-icon-minus" class="col-delete-button"></el-button>
168
+ <el-button
169
+ circle
170
+ plain
171
+ size="mini"
172
+ type="danger"
173
+ @click="deleteOption(option, idx)"
174
+ icon="el-icon-minus"
175
+ class="col-delete-button"
176
+ ></el-button>
72
177
  </el-checkbox>
73
178
  </li>
74
179
  </draggable>
@@ -82,55 +187,83 @@
82
187
  style="width: 100%"
83
188
  ></el-cascader>
84
189
  <div v-if="selectedWidget.type === 'cascader'">
85
- <el-button type="text" @click="importCascaderOptions">{{ i18nt('designer.setting.importOptions') }}</el-button>
86
- <el-button type="text" @click="resetDefault">{{ i18nt('designer.setting.resetDefault') }}</el-button>
190
+ <el-button type="text" @click="importCascaderOptions">{{
191
+ i18nt("designer.setting.importOptions")
192
+ }}</el-button>
193
+ <el-button type="text" @click="resetDefault">{{
194
+ i18nt("designer.setting.resetDefault")
195
+ }}</el-button>
87
196
  </div>
88
197
 
89
- <div v-if="selectedWidget.type === 'radio' || selectedWidget.type === 'checkbox' || selectedWidget.type === 'select'">
90
- <el-button type="text" @click="addOption">{{ i18nt('designer.setting.addOption') }}</el-button>
91
- <el-button type="text" @click="importOptions" v-if="optionModel.optionItemValueType!==2">{{ i18nt('designer.setting.importOptions') }}</el-button>
92
- <el-button type="text" @click="resetDefault">{{ i18nt('designer.setting.resetDefault') }}</el-button>
198
+ <div
199
+ v-if="
200
+ selectedWidget.type === 'radio' ||
201
+ selectedWidget.type === 'checkbox' ||
202
+ selectedWidget.type === 'select'
203
+ "
204
+ >
205
+ <el-button type="text" @click="addOption">{{
206
+ i18nt("designer.setting.addOption")
207
+ }}</el-button>
208
+ <el-button
209
+ type="text"
210
+ @click="importOptions"
211
+ v-if="optionModel.optionItemValueType !== 2"
212
+ >{{ i18nt("designer.setting.importOptions") }}</el-button
213
+ >
214
+ <el-button type="text" @click="resetDefault">{{
215
+ i18nt("designer.setting.resetDefault")
216
+ }}</el-button>
93
217
  </div>
94
218
  </template>
95
219
 
220
+ <el-dialog
221
+ :title="i18nt('designer.setting.importOptions')"
222
+ :visible.sync="showImportDialogFlag"
223
+ v-if="showImportDialogFlag"
224
+ :show-close="true"
225
+ class="small-padding-dialog"
226
+ :close-on-click-modal="false"
227
+ :close-on-press-escape="false"
228
+ :destroy-on-close="true"
229
+ :append-to-body="true"
230
+ :modal-append-to-body="true"
231
+ >
232
+ <el-form-item
233
+ ><el-input type="textarea" rows="10" v-model="optionLines"></el-input
234
+ ></el-form-item>
235
+ <div slot="footer" class="dialog-footer">
236
+ <el-button size="large" type="primary" @click="saveOptions">{{
237
+ i18nt("designer.hint.confirm")
238
+ }}</el-button>
239
+ <el-button size="large" type="" @click="showImportDialogFlag = false">{{
240
+ i18nt("designer.hint.cancel")
241
+ }}</el-button>
242
+ </div>
243
+ </el-dialog>
96
244
 
97
- <el-dialog
98
- :title="i18nt('designer.setting.importOptions')"
99
- :visible.sync="showImportDialogFlag"
100
- v-if="showImportDialogFlag"
101
- :show-close="true"
102
- class="small-padding-dialog"
103
- :close-on-click-modal="false"
104
- :close-on-press-escape="false"
105
- :destroy-on-close="true"
106
- :append-to-body="true"
107
- :modal-append-to-body="true"
108
- >
109
- <el-form-item><el-input type="textarea" rows="10" v-model="optionLines"></el-input></el-form-item>
110
- <div slot="footer" class="dialog-footer">
111
- <el-button size="large" type="primary" @click="saveOptions">{{ i18nt('designer.hint.confirm') }}</el-button>
112
- <el-button size="large" type="" @click="showImportDialogFlag = false">{{ i18nt('designer.hint.cancel') }}</el-button>
113
- </div>
114
- </el-dialog>
115
-
116
- <el-dialog
117
- :title="i18nt('designer.setting.importOptions')"
118
- :visible.sync="showImportCascaderDialogFlag"
119
- v-if="showImportCascaderDialogFlag"
120
- :show-close="true"
121
- class="small-padding-dialog"
122
- :close-on-click-modal="false"
123
- :close-on-press-escape="false"
124
- :destroy-on-close="true"
125
- :append-to-body="true"
126
- :modal-append-to-body="true"
127
- >
128
- <code-editor v-model="cascaderOptions" mode="json" :readonly="false"></code-editor>
129
- <div slot="footer" class="dialog-footer">
130
- <el-button size="large" type="primary" @click="saveCascaderOptions">{{ i18nt('designer.hint.confirm') }}</el-button>
131
- <el-button size="large" type="" @click="showImportCascaderDialogFlag = false">{{ i18nt('designer.hint.cancel') }}</el-button>
132
- </div>
133
- </el-dialog>
245
+ <el-dialog
246
+ :title="i18nt('designer.setting.importOptions')"
247
+ :visible.sync="showImportCascaderDialogFlag"
248
+ v-if="showImportCascaderDialogFlag"
249
+ :show-close="true"
250
+ class="small-padding-dialog"
251
+ :close-on-click-modal="false"
252
+ :close-on-press-escape="false"
253
+ :destroy-on-close="true"
254
+ :append-to-body="true"
255
+ :modal-append-to-body="true"
256
+ >
257
+ <code-editor v-model="cascaderOptions" mode="json" :readonly="false"></code-editor>
258
+ <div slot="footer" class="dialog-footer">
259
+ <el-button size="large" type="primary" @click="saveCascaderOptions">{{
260
+ i18nt("designer.hint.confirm")
261
+ }}</el-button>
262
+ <el-button size="large" type="" @click="showImportCascaderDialogFlag = false">{{
263
+ i18nt("designer.hint.cancel")
264
+ }}</el-button>
265
+ </div>
266
+ </el-dialog>
134
267
  <el-dialog
135
268
  v-if="dataDialogVisible"
136
269
  custom-class="dialog-style list-dialog"
@@ -146,231 +279,259 @@
146
279
  >
147
280
  <template slot="footer">
148
281
  <div class="dialog-footer">
149
- <el-button type="" @click="dataDialogVisible = !1" class="button-sty" icon="el-icon-close">
150
- {{ i18nt('designer.hint.cancel') }}
282
+ <el-button
283
+ type=""
284
+ @click="dataDialogVisible = !1"
285
+ class="button-sty"
286
+ icon="el-icon-close"
287
+ >
288
+ {{ i18nt("designer.hint.cancel") }}
151
289
  </el-button>
152
- <el-button type="primary" @click="saveTableData" class="button-sty" icon="el-icon-check">
153
- {{ i18nt('designer.hint.confirm') }}
290
+ <el-button
291
+ type="primary"
292
+ @click="saveTableData"
293
+ class="button-sty"
294
+ icon="el-icon-check"
295
+ >
296
+ {{ i18nt("designer.hint.confirm") }}
154
297
  </el-button>
155
298
  </div>
156
299
  </template>
157
300
  <code-editor mode="json" :readonly="!1" v-model="tableDataOptions"></code-editor>
158
301
  </el-dialog>
159
- </div>
302
+ </div>
160
303
  </template>
161
304
 
162
305
  <script>
163
- import Draggable from 'vuedraggable';
164
- import i18n from '../../../../components/xform/utils/i18n';
306
+ import Draggable from "vuedraggable";
307
+ import i18n from "../../../../components/xform/utils/i18n";
165
308
 
166
309
  export default {
167
- name: 'OptionItemsSetting',
168
- componentName: 'PropertyEditor',
169
- mixins: [i18n],
170
- components: {
171
- Draggable,
172
- },
173
- props: {
174
- designer: Object,
175
- selectedWidget: Object
176
- },
177
- data() {
178
- return {
179
- showImportDialogFlag: false,
180
- optionLines: '',
310
+ name: "OptionItemsSetting",
311
+ componentName: "PropertyEditor",
312
+ mixins: [i18n],
313
+ components: {
314
+ Draggable,
315
+ },
316
+ props: {
317
+ designer: Object,
318
+ selectedWidget: Object,
319
+ },
320
+ data() {
321
+ return {
322
+ showImportDialogFlag: false,
323
+ optionLines: "",
181
324
 
182
- cascaderOptions: '',
183
- showImportCascaderDialogFlag: false,
325
+ cascaderOptions: "",
326
+ showImportCascaderDialogFlag: false,
184
327
 
185
- //separator: '||',
186
- separator: ',',
187
- dataDialogVisible:false,
188
- tableDataOptions:[],
189
- };
190
- },
191
- computed: {
192
- optionModel() {
193
- return this.selectedWidget.options;
194
- }
195
- },
196
- watch: {
197
- 'selectedWidget.options': {
198
- deep: true,
199
- handler(val) {
200
- //console.log('888888', 'Options change!')
201
- }
202
- }
203
- },
328
+ //separator: '||',
329
+ separator: ",",
330
+ dataDialogVisible: false,
331
+ tableDataOptions: [],
332
+ };
333
+ },
334
+ computed: {
335
+ optionModel() {
336
+ return this.selectedWidget.options;
337
+ },
338
+ },
339
+ watch: {
340
+ "selectedWidget.options": {
341
+ deep: true,
342
+ handler(val) {
343
+ //console.log('888888', 'Options change!')
344
+ },
345
+ },
346
+ },
204
347
  created() {
205
- if(!this.optionModel.hasOwnProperty('optionItemValueType')){
348
+ if (!this.optionModel.hasOwnProperty("optionItemValueType")) {
206
349
  this.optionModel.optionItemValueType = 0;
207
350
  }
351
+ if (this.optionModel.optionItemValueType == 1) {
352
+ if (
353
+ this.optionModel.defaultValue === null ||
354
+ this.optionModel.defaultValue === ""
355
+ ) {
356
+ this.optionModel.defaultValue = undefined;
357
+ }
358
+ }
208
359
  },
209
360
  methods: {
210
- emitDefaultValueChange() {
211
- if (!!this.designer && !!this.designer.formWidget) {
212
- let fieldWidget = this.designer.formWidget.getWidgetRef(this.selectedWidget.options.name);
213
- if (!!fieldWidget && !!fieldWidget.refreshDefaultValue) {
214
- fieldWidget.refreshDefaultValue();
215
- }
216
- }
217
- },
361
+ emitDefaultValueChange() {
362
+ if (!!this.designer && !!this.designer.formWidget) {
363
+ let fieldWidget = this.designer.formWidget.getWidgetRef(
364
+ this.selectedWidget.options.name
365
+ );
366
+ if (!!fieldWidget && !!fieldWidget.refreshDefaultValue) {
367
+ fieldWidget.refreshDefaultValue();
368
+ }
369
+ }
370
+ },
218
371
 
219
- deleteOption(option, index) {
220
- this.optionModel.optionItems.splice(index, 1);
221
- },
372
+ deleteOption(option, index) {
373
+ this.optionModel.optionItems.splice(index, 1);
374
+ },
222
375
 
223
- addOption() {
376
+ addOption() {
224
377
  let optionItemValueType = this.optionModel.optionItemValueType;
225
- let newValue = this.optionModel.optionItems.length + 1;
226
- if(!optionItemValueType){
227
- newValue = newValue+'';
228
- }else if(optionItemValueType==2){
378
+ let newValue = this.optionModel.optionItems.length + 1;
379
+ if (!optionItemValueType) {
380
+ newValue = newValue + "";
381
+ } else if (optionItemValueType == 2) {
229
382
  newValue = true;
230
383
  }
231
- this.optionModel.optionItems.push({
232
- value: newValue,
233
- label: 'new option'
234
- });
235
- },
384
+ this.optionModel.optionItems.push({
385
+ value: newValue,
386
+ label: "new option",
387
+ });
388
+ },
236
389
 
237
- importOptions() {
238
- this.optionLines = '';
239
- if (this.optionModel.optionItems.length > 0) {
240
- this.optionModel.optionItems.forEach(opt => {
241
- if (opt.value === opt.label) {
242
- this.optionLines += opt.value + '\n';
243
- } else {
244
- this.optionLines += opt.value + this.separator + opt.label + '\n';
245
- }
246
- });
247
- }
390
+ importOptions() {
391
+ this.optionLines = "";
392
+ if (this.optionModel.optionItems.length > 0) {
393
+ this.optionModel.optionItems.forEach((opt) => {
394
+ if (opt.value === opt.label) {
395
+ this.optionLines += opt.value + "\n";
396
+ } else {
397
+ this.optionLines += opt.value + this.separator + opt.label + "\n";
398
+ }
399
+ });
400
+ }
248
401
 
249
- this.showImportDialogFlag = true;
250
- },
402
+ this.showImportDialogFlag = true;
403
+ },
251
404
 
252
- saveOptions() {
253
- let lineArray = this.optionLines.split('\n');
254
- //console.log('test', lineArray)
255
- if (lineArray.length > 0) {
405
+ saveOptions() {
406
+ let lineArray = this.optionLines.split("\n");
407
+ //console.log('test', lineArray)
408
+ if (lineArray.length > 0) {
256
409
  let isNumericOptionItemValue = this.optionModel.optionItemValueType === 1;
257
- this.optionModel.optionItems = [];
258
- lineArray.forEach(optLine => {
259
- if (!!optLine && !!optLine.trim()) {
260
- if (optLine.indexOf(this.separator) !== -1) {
410
+ this.optionModel.optionItems = [];
411
+ lineArray.forEach((optLine) => {
412
+ if (!!optLine && !!optLine.trim()) {
413
+ if (optLine.indexOf(this.separator) !== -1) {
261
414
  let valueStr = optLine.split(this.separator)[0];
262
- let value = isNumericOptionItemValue?Number(valueStr):valueStr;
263
- this.optionModel.optionItems.push({
264
- value: value,
265
- label: optLine.split(this.separator)[1]
266
- });
267
- } else {
268
- let value = isNumericOptionItemValue?Number(optLine):optLine;
269
- this.optionModel.optionItems.push({
270
- value: value,
271
- label: optLine
272
- });
273
- }
274
- }
275
- });
276
- } else {
277
- this.optionModel.optionItems = [];
278
- }
415
+ let value = isNumericOptionItemValue ? Number(valueStr) : valueStr;
416
+ this.optionModel.optionItems.push({
417
+ value: value,
418
+ label: optLine.split(this.separator)[1],
419
+ });
420
+ } else {
421
+ let value = isNumericOptionItemValue ? Number(optLine) : optLine;
422
+ this.optionModel.optionItems.push({
423
+ value: value,
424
+ label: optLine,
425
+ });
426
+ }
427
+ }
428
+ });
429
+ } else {
430
+ this.optionModel.optionItems = [];
431
+ }
279
432
 
280
- this.showImportDialogFlag = false;
281
- },
433
+ this.showImportDialogFlag = false;
434
+ },
282
435
 
283
- resetDefault() {
284
- if (this.selectedWidget.type === 'checkbox' || (this.selectedWidget.type === 'select' && this.selectedWidget.options.multiple)) {
285
- this.optionModel.defaultValue = [];
286
- } else {
287
- this.optionModel.defaultValue = undefined;
288
- }
436
+ resetDefault() {
437
+ if (
438
+ this.selectedWidget.type === "checkbox" ||
439
+ (this.selectedWidget.type === "select" && this.selectedWidget.options.multiple)
440
+ ) {
441
+ this.optionModel.defaultValue = [];
442
+ } else {
443
+ this.optionModel.defaultValue = undefined;
444
+ }
289
445
 
290
- this.emitDefaultValueChange();
291
- },
446
+ this.emitDefaultValueChange();
447
+ },
292
448
 
293
- importCascaderOptions() {
294
- this.cascaderOptions = JSON.stringify(this.optionModel.optionItems, null, ' ');
295
- this.showImportCascaderDialogFlag = true;
296
- },
449
+ importCascaderOptions() {
450
+ this.cascaderOptions = JSON.stringify(this.optionModel.optionItems, null, " ");
451
+ this.showImportCascaderDialogFlag = true;
452
+ },
297
453
 
298
- saveCascaderOptions() {
299
- try {
300
- let newOptions = JSON.parse(this.cascaderOptions);
301
- this.optionModel.optionItems = newOptions;
302
- //TODO: 是否需要重置选项默认值??
454
+ saveCascaderOptions() {
455
+ try {
456
+ let newOptions = JSON.parse(this.cascaderOptions);
457
+ this.optionModel.optionItems = newOptions;
458
+ //TODO: 是否需要重置选项默认值??
303
459
 
304
- this.showImportCascaderDialogFlag = false;
305
- } catch (ex) {
306
- this.$message.error(this.i18nt('designer.hint.invalidOptionsData') + ex.message);
307
- }
308
- },
309
- changeValueType(val){
460
+ this.showImportCascaderDialogFlag = false;
461
+ } catch (ex) {
462
+ this.$message.error(this.i18nt("designer.hint.invalidOptionsData") + ex.message);
463
+ }
464
+ },
465
+ changeValueType(val) {
310
466
  let optionItems = this.optionModel.optionItems;
311
467
  // this.optionModel.defaultValue = undefined;
312
468
  this.resetDefault();
313
469
  this.optionModel.optionItems.length = 0;
314
- if(val==2){
470
+ if (val == 2) {
315
471
  optionItems.push({
316
- label:"是",
317
- value:true,
472
+ label: "是",
473
+ value: true,
318
474
  });
319
475
  optionItems.push({
320
- label:"否",
321
- value:false
476
+ label: "否",
477
+ value: false,
322
478
  });
323
- }else{
479
+ } else {
324
480
  this.addOption();
325
481
  }
326
- this.$forceUpdate()
482
+ this.$forceUpdate();
327
483
  this.emitDefaultValueChange();
328
484
  },
329
485
 
330
-
331
486
  openTableDataEdit: function () {
332
- (this.dataDialogVisible = !0), (this.tableDataOptions = JSON.stringify(this.optionModel.defaultValue, null, ' '));
487
+ (this.dataDialogVisible = !0),
488
+ (this.tableDataOptions = JSON.stringify(
489
+ this.optionModel.defaultValue,
490
+ null,
491
+ " "
492
+ ));
333
493
  },
334
494
  saveTableData: function () {
335
495
  try {
336
- (this.optionModel.defaultValue = JSON.parse(this.tableDataOptions)), (this.dataDialogVisible = !1);
496
+ (this.optionModel.defaultValue = JSON.parse(this.tableDataOptions)),
497
+ (this.dataDialogVisible = !1);
337
498
  } catch (e) {
338
- this.$message.error(this.i18nt('designer.hint.invalidOptionsData') + e.message);
499
+ this.$message.error(this.i18nt("designer.hint.invalidOptionsData") + e.message);
339
500
  }
340
501
  },
341
- getDefaultValue(){
502
+ getDefaultValue() {
342
503
  let result = this.optionModel.defaultValue;
343
- if(result){
344
- if(Array.isArray(result)){
504
+ if (result) {
505
+ if (Array.isArray(result)) {
345
506
  result = result.join(",");
346
507
  }
347
508
  }
348
509
  return result;
349
510
  },
350
- }
511
+ },
351
512
  };
352
513
  </script>
353
514
 
354
515
  <style lang="scss" scoped>
355
516
  .option-items-pane ul {
356
- padding-inline-start: 6px;
357
- padding-left: 6px; /* 重置IE11默认样式 */
517
+ padding-inline-start: 6px;
518
+ padding-left: 6px; /* 重置IE11默认样式 */
358
519
  }
359
520
 
360
521
  li.ghost {
361
- background: #fff;
362
- border: 2px dotted $--color-primary;
522
+ background: #fff;
523
+ border: 2px dotted $--color-primary;
363
524
  }
364
525
 
365
526
  .drag-option {
366
- cursor: move;
527
+ cursor: move;
367
528
  }
368
529
 
369
530
  .small-padding-dialog ::v-deep .el-dialog__body {
370
- padding: 10px 15px;
531
+ padding: 10px 15px;
371
532
  }
372
533
 
373
534
  .dialog-footer .el-button {
374
- width: 100px;
535
+ width: 100px;
375
536
  }
376
537
  </style>
@@ -118,7 +118,7 @@ modules = {
118
118
  rowIdData: [],
119
119
  fieldSchemaMap: {},
120
120
  fieldSchemaData: [],
121
- eventConfig:{}
121
+ eventConfig: {},
122
122
  };
123
123
  },
124
124
  watch: {
@@ -187,9 +187,10 @@ modules = {
187
187
  this.unregisterFromRefList();
188
188
  },
189
189
  methods: {
190
- initTableCustomEvent(){
191
- let tableConfig = this.handleCustomEvent(this.widget.options.tableConfig) || {};
192
- this.eventConfig = tableConfig.eventConfig || {}
190
+ initTableCustomEvent() {
191
+ let tableConfig =
192
+ this.handleCustomEvent(this.widget.options.tableConfig) || {};
193
+ this.eventConfig = tableConfig.eventConfig || {};
193
194
  },
194
195
  getTableColumnStatusWidgetLabelKey(obj) {
195
196
  let widget = this.getTableColumnWidget(obj);
@@ -728,9 +729,12 @@ modules = {
728
729
  newColumns.push(col);
729
730
  });
730
731
 
732
+ let tableConfig = this.tableConfig;
733
+ let flag = tableConfig?.config?.toolbarConfig?.custom !== false;
731
734
  if (
732
735
  baseRefUtil.tableConfig &&
733
- baseRefUtil.tableConfig.className == "list-table"
736
+ baseRefUtil.tableConfig.className == "list-table" &&
737
+ flag
734
738
  ) {
735
739
  if (tableColumns.length) {
736
740
  let tableColumn = tableColumns[tableColumns.length - 1];
@@ -765,6 +769,14 @@ modules = {
765
769
 
766
770
  let isQueryAllPage = !this.widget.options.isNotQueryAllPage;
767
771
 
772
+ let tableConfig =
773
+ this.handleCustomEvent(this.widget.options.tableConfig) || {};
774
+ this.tableConfig = tableConfig;
775
+
776
+ let tableConfig2 = this.$baseLodash.cloneDeep(tableConfig);
777
+ delete tableConfig2.config
778
+ delete tableConfig2.eventConfig;
779
+
768
780
  if (isQueryTable) {
769
781
  path = "#";
770
782
  paramFun = () => {
@@ -774,7 +786,7 @@ modules = {
774
786
  let proxyInfo = $grid.getProxyInfo();
775
787
  let searchCount = true;
776
788
  let isQueryAllPage = $grid.isQueryAllPage;
777
- if (isQueryAllPage == false) {
789
+ if (isQueryAllPage === false) {
778
790
  searchCount = false;
779
791
  }
780
792
  let pager = proxyInfo ? proxyInfo.pager : null;
@@ -924,7 +936,7 @@ modules = {
924
936
  let $grid = that.getGridTable();
925
937
  let parentField = $grid.treeConfig.parentField;
926
938
  return new Promise((resolve, reject) => {
927
- let treeParam = that.widget.options.tableConfig?.treeNodeParam;
939
+ let treeParam = tableConfig?.treeNodeParam;
928
940
  let reqPram = {};
929
941
  if (treeParam) {
930
942
  reqPram = treeParam(row) || {};
@@ -958,8 +970,7 @@ modules = {
958
970
  }
959
971
 
960
972
  resolve(rows);
961
- let treeCallback =
962
- that.widget.options.tableConfig?.treeCallback;
973
+ let treeCallback = tableConfig?.treeCallback;
963
974
  if (treeCallback) {
964
975
  that.$nextTick(() => {
965
976
  setTimeout(function () {
@@ -995,7 +1006,7 @@ modules = {
995
1006
  }
996
1007
 
997
1008
  let gridPageSize = this.widget.options.gridPageSize;
998
- if(gridPageSize === 1){
1009
+ if (gridPageSize === 1) {
999
1010
  gridPageSize = null;
1000
1011
  }
1001
1012
  let gridPageSizeList = this.widget.options.gridPageSizeList || [];
@@ -1095,6 +1106,7 @@ modules = {
1095
1106
  editDefaultRow,
1096
1107
  treeNodeParam,
1097
1108
  ...otherConfig,
1109
+ // ...tableConfig2
1098
1110
  };
1099
1111
 
1100
1112
  if (isQueryTable) {
@@ -1137,9 +1149,10 @@ modules = {
1137
1149
  let $grid = this.getGridTable();
1138
1150
  let isQueryAllPage = $grid.isQueryAllPage;
1139
1151
  let pathStr1 = "";
1140
- if (isQueryAllPage === false) {
1152
+ /* if (isQueryAllPage === false) {
1141
1153
  queryParams.searchCount = false;
1142
- }
1154
+ } */
1155
+ queryParams.searchCount = isQueryAllPage !== false
1143
1156
  Object.assign(queryParams, param);
1144
1157
 
1145
1158
  // let formRef = that.getFormRef();
@@ -1269,13 +1282,13 @@ modules = {
1269
1282
  if (isTreeTable) {
1270
1283
  tableOption.filterType = false;
1271
1284
  }
1272
-
1273
- if (this.widget.options.tableConfig) {
1285
+ tableOption = extendDeeply(tableOption, tableConfig);
1286
+ /* if (this.widget.options.tableConfig) {
1274
1287
  let tableConfig =
1275
1288
  this.handleCustomEvent(this.widget.options.tableConfig) || {};
1276
1289
  tableOption = extendDeeply(tableOption, tableConfig);
1277
1290
  this.tableConfig = tableConfig;
1278
- }
1291
+ } */
1279
1292
 
1280
1293
  if (tableOption.config.showFooter && !tableOption.config.footerMethod) {
1281
1294
  let footerColumnIds = [];
@@ -1898,7 +1911,7 @@ modules = {
1898
1911
  },
1899
1912
  getColumnProp2(fieldWidget, obj) {
1900
1913
  let isQueryTable = this.widget.options.isQueryTable || false;
1901
- let rowWidget = this.getRowWidget(obj, fieldWidget)
1914
+ let rowWidget = this.getRowWidget(obj, fieldWidget);
1902
1915
  let required = rowWidget.options.required || false;
1903
1916
 
1904
1917
  let fieldKeyName = this.getFieldKeyName(this.widget);
@@ -1914,55 +1927,54 @@ modules = {
1914
1927
  }
1915
1928
  return propName;
1916
1929
  },
1917
- validateCheckRow(){
1930
+ validateCheckRow() {
1918
1931
  let $grid = this.getGridTable();
1919
1932
  let checkRows = $grid.getCheckboxRecords(true);
1920
- if(checkRows.length == 0){
1933
+ if (checkRows.length == 0) {
1921
1934
  this.$message({
1922
- message: '请选择要操作的行',
1923
- type: 'warning'
1935
+ message: "请选择要操作的行",
1936
+ type: "warning",
1924
1937
  });
1925
1938
  return false;
1926
1939
  }
1927
1940
  const fieldsToValidate = [];
1928
1941
  let tableColumns = this.widget.options.tableColumns;
1929
- checkRows.forEach(row => {
1942
+ checkRows.forEach((row) => {
1930
1943
  let fieldSchema = this.fieldSchemaMap[row._X_ROW_KEY];
1931
- tableColumns.forEach(column => {
1932
- if(column.widget){
1933
- let widget = fieldSchema[column.widget.id]
1944
+ tableColumns.forEach((column) => {
1945
+ if (column.widget) {
1946
+ let widget = fieldSchema[column.widget.id];
1934
1947
  let required = widget.options.required || false;
1935
- if(required){
1948
+ if (required) {
1936
1949
  let propName = this.getColumnWidgetProp(widget, row);
1937
- fieldsToValidate.push(propName)
1950
+ fieldsToValidate.push(propName);
1938
1951
  }
1939
1952
  }
1940
- if(column.widgetList){
1941
- column.widgetList.forEach(itemWidget=>{
1942
- let widget = fieldSchema[itemWidget.id]
1953
+ if (column.widgetList) {
1954
+ column.widgetList.forEach((itemWidget) => {
1955
+ let widget = fieldSchema[itemWidget.id];
1943
1956
  let required = widget.options.required || false;
1944
- if(required){
1957
+ if (required) {
1945
1958
  let propName = this.getColumnWidgetProp(widget, row);
1946
- fieldsToValidate.push(propName)
1959
+ fieldsToValidate.push(propName);
1947
1960
  }
1948
- })
1949
-
1961
+ });
1950
1962
  }
1951
- })
1952
- })
1963
+ });
1964
+ });
1953
1965
  let formRef = this.getFormRef();
1954
1966
  let renderForm = formRef.$refs.renderForm;
1955
1967
  let hasError = false;
1956
- renderForm.validateField(fieldsToValidate, errors => {
1968
+ renderForm.validateField(fieldsToValidate, (errors) => {
1957
1969
  if (!hasError && errors) {
1958
- this.$message.error(errors)
1959
- hasError = true;
1970
+ this.$message.error(errors);
1971
+ hasError = true;
1960
1972
  }
1961
1973
  });
1962
1974
  return !hasError;
1963
1975
  },
1964
- getColumnWidgetProp(widget, row){
1965
- if(!widget)return
1976
+ getColumnWidgetProp(widget, row) {
1977
+ if (!widget) return;
1966
1978
  let $grid = this.getGridTable();
1967
1979
  let rowIndex = $grid.getRowIndex(row);
1968
1980
  let fieldKeyName = this.getFieldKeyName(this.widget);
@@ -1975,14 +1987,13 @@ modules = {
1975
1987
  },
1976
1988
  getColumnProp(obj, isEdit) {
1977
1989
  let sourceWidgetId = isEdit
1978
- ? obj.column.params.editWidget.id
1979
- : obj.column.params.widget.id;
1980
- if (!this.fieldSchemaMap[obj.row._X_ROW_KEY]) return "false";
1981
- let fieldWidget =
1982
- this.fieldSchemaMap[obj.row._X_ROW_KEY][sourceWidgetId];
1983
- if (!fieldWidget) {
1984
- return "false";
1985
- }
1990
+ ? obj.column.params.editWidget.id
1991
+ : obj.column.params.widget.id;
1992
+ if (!this.fieldSchemaMap[obj.row._X_ROW_KEY]) return "false";
1993
+ let fieldWidget = this.fieldSchemaMap[obj.row._X_ROW_KEY][sourceWidgetId];
1994
+ if (!fieldWidget) {
1995
+ return "false";
1996
+ }
1986
1997
  let isQueryTable = this.widget.options.isQueryTable || false;
1987
1998
 
1988
1999
  let required = fieldWidget.options.required || false;
@@ -2687,7 +2698,7 @@ modules = {
2687
2698
  // if(initFlag)this.fieldSchemaMap = {};
2688
2699
  if (rowLength > 0) {
2689
2700
  let target = this.getGridTable();
2690
- if(!target)return
2701
+ if (!target) return;
2691
2702
  let { fullColumn } = target.getTableColumn();
2692
2703
  let allWidgets = [];
2693
2704
  let fieldSchemaMap = {};