vome-core 0.1.69 → 0.1.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/config/plugin-dev.js +1 -1
- package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
- package/dist/admin/crud/components/vm-select.vue +84 -21
- package/dist/admin/crud/config.js +1 -1
- package/dist/admin/crud/confirm.js +1 -1
- package/dist/admin/crud/crud-page-request.js +1 -1
- package/dist/admin/crud/dict.js +1 -1
- package/dist/admin/crud/export-fetch.js +1 -1
- package/dist/admin/crud/key.js +1 -1
- package/dist/admin/crud/plugins.js +1 -1
- package/dist/admin/crud/span.js +1 -1
- package/dist/admin/crud/style.js +1 -1
- package/dist/admin/crud/validate.js +1 -1
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/lib/browser.js +1 -1
- package/dist/admin/lib/cn.js +1 -1
- package/dist/admin/lib/dialog-float.js +1 -1
- package/dist/admin/lib/export-excel.js +1 -1
- package/dist/admin/lib/import-excel.js +1 -1
- package/dist/admin/lib/json.js +1 -1
- package/dist/admin/lib/menu.js +1 -1
- package/dist/admin/lib/theme-color-options.js +1 -1
- package/dist/admin/lib/tree.js +1 -1
- package/dist/admin/lib/upload.js +1 -1
- package/dist/admin/lib/video-frame.js +1 -1
- package/dist/comm/path.js +6 -0
- package/dist/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/shared/datetime-picker.js +1 -1
- package/dist/shared/excel.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/locale-json.js +1 -1
- package/dist/shared/tree.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x47512a=_0x1b84;(function(_0xabb510,_0x375e04){const _0xdb1ea5=_0x1b84,_0x2f6e9c=_0xabb510();while(!![]){try{const _0x1e555a=-parseInt(_0xdb1ea5(0xd8))/0x1*(-parseInt(_0xdb1ea5(0xdb))/0x2)+parseInt(_0xdb1ea5(0xc3))/0x3*(parseInt(_0xdb1ea5(0xcc))/0x4)+parseInt(_0xdb1ea5(0xcd))/0x5*(-parseInt(_0xdb1ea5(0xbf))/0x6)+parseInt(_0xdb1ea5(0xce))/0x7+parseInt(_0xdb1ea5(0xda))/0x8+parseInt(_0xdb1ea5(0xd4))/0x9*(-parseInt(_0xdb1ea5(0xc7))/0xa)+-parseInt(_0xdb1ea5(0xd9))/0xb;if(_0x1e555a===_0x375e04)break;else _0x2f6e9c['push'](_0x2f6e9c['shift']());}catch(_0x338cc3){_0x2f6e9c['push'](_0x2f6e9c['shift']());}}}(_0x2a4b,0xa5a86));function _0x2a4b(){const _0xba3a55=['mJu5odG0ovPvtfflBG','mZy1ntGWohHVrvLnyG','ndG2s21zBfji','l2fYy2HPDMuVCMvMCY9OzwfKCY9Tyxn0zxiUEMLW','DM9Tzs1WBhvNAw4TzNvSBa','ndC2mZrfs3rMD2e','l2fWCc9WBhvNAw5tDg9Yzs9Zzwf0','Ag9ZDg5HBwu','Ahr0Chm6lY9NAxrLzs5JB20V','mJe2mdqYD25kugzL','zNvSBa','57QV5yMn56UV','5A6m5Pw05lIA5yQH5QIH5z2x6isA5OMl5P6277YilNzVBwxVVjRLKkSGC2vYDMvYios4JIb3zwlVViNVViZMNkZLNldLVidLJ5hMIzpLJixLKi7LJ5hLUipJGii','ndb1sLbxA0G','5zco5y+W5B6U5BQu55sO6isA5OMl5P6277YilNzVBwxVVjRLKkSGD2vIl++8IE+8Jos7Psb3DwPPzsdMJilOVB3NI6ZNQ4VLIy3NQ6/POBxPNAlJGii','ChjVDg9JB2W','l3jLCg9ZAxrVCNKVyxjJAgL2zs9Tyxn0zxiUEMLW','Ahr0Chm6lY9NAxrODwiUy29TlW','oe1OshnZBq','nte1BxDMv2jg','odG4mJGZou15qxb5CW','5yMn56UVicSG5zco56UV','6zkP5A2qic8G5PYn5yQH56UV5O+s5lU26isA5OMl5P6277YilNzVBwxVVjRKU4uGC2vYDMvY77Yj77Ym6ycc5zci5lIk5lYG44cb55+T5l+H44cb5PsV5lUy562j6io95yQB5OMP5Bgv44cc','DM9Tzs1WBhvNAw4TC2vYDMLJzq','l2fWCc9WBhvNAw5tDg9Yzs93ywXSzxqVBgLJzw5Zzs9PC3n1zq','DM9TzwTQ','odK5mJuZvuL3seHb','zNjVBNrLBMq','DM9Tzs1WBhvNAw4TzNjVBNq','CMvWBgfJzq','mta3ovnfDeHetq'];_0x2a4b=function(){return _0xba3a55;};return _0x2a4b();}const ORG=_0x47512a(0xd3);export function serviceUrlFromDocs(_0x5877d8){const _0x16e6bb=_0x47512a,_0x440f0a=new URL(_0x5877d8),_0x3290d3=_0x440f0a[_0x16e6bb(0xc1)]['replace'](/^www\./,'')[_0x16e6bb(0xd7)](/^service\./,'');return _0x440f0a[_0x16e6bb(0xc9)]+'//service.'+_0x3290d3;}export function seatApiBaseFromDocs(_0xeadb16){const _0x11f639=_0x47512a;return serviceUrlFromDocs(_0xeadb16)+_0x11f639(0xc0);}export function licenseIssueUrlFromDocs(_0x3112b5){const _0x25f4b6=_0x47512a;return serviceUrlFromDocs(_0x3112b5)+_0x25f4b6(0xd2);}function giteeArchive(_0x3bb918){const _0x372aa3=_0x47512a;return _0x372aa3(0xc2)+ORG+'/'+_0x3bb918+_0x372aa3(0xca);}function githubArchive(_0x2c277b){const _0x5e3134=_0x47512a;return _0x5e3134(0xcb)+ORG+'/'+_0x2c277b+_0x5e3134(0xdc);}function giteeRepo(_0xebc091){const _0x1469b4=_0x47512a;return _0x1469b4(0xc2)+ORG+'/'+_0xebc091;}function githubRepo(_0x3051d2){const _0x3b3fed=_0x47512a;return _0x3b3fed(0xcb)+ORG+'/'+_0x3051d2;}const docsUrl='https://vomekj.com';function _0x1b84(_0x102846,_0x5dca82){_0x102846=_0x102846-0xbe;const _0x2a4b8b=_0x2a4b();let _0x1b84d8=_0x2a4b8b[_0x102846];if(_0x1b84['goYQlD']===undefined){var _0x4201ad=function(_0x4cb4f8){const _0x21af44='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5877d8='',_0x440f0a='';for(let _0x3290d3=0x0,_0xeadb16,_0x3112b5,_0x3bb918=0x0;_0x3112b5=_0x4cb4f8['charAt'](_0x3bb918++);~_0x3112b5&&(_0xeadb16=_0x3290d3%0x4?_0xeadb16*0x40+_0x3112b5:_0x3112b5,_0x3290d3++%0x4)?_0x5877d8+=String['fromCharCode'](0xff&_0xeadb16>>(-0x2*_0x3290d3&0x6)):0x0){_0x3112b5=_0x21af44['indexOf'](_0x3112b5);}for(let _0x2c277b=0x0,_0xebc091=_0x5877d8['length'];_0x2c277b<_0xebc091;_0x2c277b++){_0x440f0a+='%'+('00'+_0x5877d8['charCodeAt'](_0x2c277b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x440f0a);};_0x1b84['KMpTjA']=_0x4201ad,_0x1b84['EXIOiB']={},_0x1b84['goYQlD']=!![];}const _0x5dc9e1=_0x2a4b8b[0x0],_0x2751fb=_0x102846+_0x5dc9e1,_0x5717cb=_0x1b84['EXIOiB'][_0x2751fb];return!_0x5717cb?(_0x1b84d8=_0x1b84['KMpTjA'](_0x1b84d8),_0x1b84['EXIOiB'][_0x2751fb]=_0x1b84d8):_0x1b84d8=_0x5717cb,_0x1b84d8;}export const pluginDev={'docsUrl':docsUrl,'serviceUrl':serviceUrlFromDocs(docsUrl),'uploadUrl':docsUrl+'/plugins/upload','mirrors':{'prefer':'gitee','giteeOrg':'https://gitee.com/'+ORG,'githubOrg':_0x47512a(0xcb)+ORG},'scaffolds':{'full':{'key':_0x47512a(0xc4),'title':_0x47512a(0xcf),'desc':_0x47512a(0xc6),'repo':_0x47512a(0xbe),'repoUrl':giteeRepo(_0x47512a(0xbe)),'githubRepoUrl':githubRepo('vome-plugin-full'),'downloadUrl':giteeArchive(_0x47512a(0xbe)),'githubDownloadUrl':githubArchive(_0x47512a(0xbe))},'backend':{'key':'backend','title':'纯后端','desc':_0x47512a(0xd0),'repo':_0x47512a(0xd1),'repoUrl':giteeRepo(_0x47512a(0xd1)),'githubRepoUrl':githubRepo(_0x47512a(0xd1)),'downloadUrl':giteeArchive('vome-plugin-service'),'githubDownloadUrl':githubArchive('vome-plugin-service')},'frontend':{'key':_0x47512a(0xd5),'title':_0x47512a(0xc5),'desc':_0x47512a(0xc8),'repo':_0x47512a(0xd6),'repoUrl':giteeRepo(_0x47512a(0xd6)),'githubRepoUrl':githubRepo(_0x47512a(0xd6)),'downloadUrl':giteeArchive(_0x47512a(0xd6)),'githubDownloadUrl':githubArchive(_0x47512a(0xd6))}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x291816=_0x325c;(function(_0x2161ad,_0x36b7f4){const _0x2abbd3=_0x325c,_0xb592ab=_0x2161ad();while(!![]){try{const _0x1594f6=parseInt(_0x2abbd3(0x10e))/0x1*(-parseInt(_0x2abbd3(0x116))/0x2)+parseInt(_0x2abbd3(0x111))/0x3+-parseInt(_0x2abbd3(0x110))/0x4+-parseInt(_0x2abbd3(0x115))/0x5*(parseInt(_0x2abbd3(0x119))/0x6)+parseInt(_0x2abbd3(0x11b))/0x7*(parseInt(_0x2abbd3(0x118))/0x8)+parseInt(_0x2abbd3(0x112))/0x9+-parseInt(_0x2abbd3(0x114))/0xa;if(_0x1594f6===_0x36b7f4)break;else _0xb592ab['push'](_0xb592ab['shift']());}catch(_0x4b9620){_0xb592ab['push'](_0xb592ab['shift']());}}}(_0x4b77,0xe2697));import{Node,mergeAttributes}from'@tiptap/core';function _0x325c(_0x4f13e2,_0x303d73){_0x4f13e2=_0x4f13e2-0x10e;const _0x4b77be=_0x4b77();let _0x325c85=_0x4b77be[_0x4f13e2];if(_0x325c['pWvIVN']===undefined){var _0x46b691=function(_0x5d1f1f){const _0x19eba6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3fc4b1='',_0x1cd38a='';for(let _0x1395e6=0x0,_0x57ac65,_0x2cad74,_0x4c5b80=0x0;_0x2cad74=_0x5d1f1f['charAt'](_0x4c5b80++);~_0x2cad74&&(_0x57ac65=_0x1395e6%0x4?_0x57ac65*0x40+_0x2cad74:_0x2cad74,_0x1395e6++%0x4)?_0x3fc4b1+=String['fromCharCode'](0xff&_0x57ac65>>(-0x2*_0x1395e6&0x6)):0x0){_0x2cad74=_0x19eba6['indexOf'](_0x2cad74);}for(let _0x24625c=0x0,_0x3747d3=_0x3fc4b1['length'];_0x24625c<_0x3747d3;_0x24625c++){_0x1cd38a+='%'+('00'+_0x3fc4b1['charCodeAt'](_0x24625c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1cd38a);};_0x325c['qiQOYG']=_0x46b691,_0x325c['zXrUDo']={},_0x325c['pWvIVN']=!![];}const _0x3fc028=_0x4b77be[0x0],_0x4965f0=_0x4f13e2+_0x3fc028,_0x1b4c3c=_0x325c['zXrUDo'][_0x4965f0];return!_0x1b4c3c?(_0x325c85=_0x325c['qiQOYG'](_0x325c85),_0x325c['zXrUDo'][_0x4965f0]=_0x325c85):_0x325c85=_0x1b4c3c,_0x325c85;}function _0x4b77(){const _0x40cf2b=['mtaZmJqZotHnquPSD2S','DMLKzw9BC3jJxq','odqZnxjOqMXQBa','yMXVy2S','DMLKzw8','BMfTzq','mtf4vgjNvLG','y3jLyxrL','mtC1odK5nKrZAhzsva','mZm0ntC2oenVu2DzDa','oda4mdeXmgPjshH3yG','Aw5Zzxj0q29UDgvUDa','nJuYota4mePhvLP0yq','nwTXyMH6qq','mJeYotzXrgT5s20','Bwf4lxDPzhrOoJeWmcu7yM9YzgvYlxjHzgL1CZO4ChG','mtiYndHVvev5zu0'];_0x4b77=function(){return _0x40cf2b;};return _0x4b77();}export const VmRichtextVideo=Node[_0x291816(0x10f)]({'name':_0x291816(0x11d),'group':_0x291816(0x11c),'atom':!![],'selectable':!![],'draggable':!![],'addAttributes'(){return{'src':{'default':null},'controls':{'default':!![]}};},'parseHTML'(){const _0x3c8118=_0x291816;return[{'tag':_0x3c8118(0x11a)}];},'renderHTML'({HTMLAttributes:_0x3fc4b1}){const _0x5737ab=_0x291816;return[_0x5737ab(0x11d),mergeAttributes(_0x3fc4b1,{'controls':!![],'style':_0x5737ab(0x117)})];},'addCommands'(){const _0x170eda=_0x291816;return{'setVideo':_0x1cd38a=>({commands:_0x1395e6})=>_0x1395e6[_0x170eda(0x113)]({'type':this[_0x170eda(0x11e)],'attrs':_0x1cd38a})};}});export const VM_RICHTEXT_EMOJIS=['\uD83D\uDE00','\uD83D\uDE03','\uD83D\uDE04','\uD83D\uDE01','\uD83D\uDE06','\uD83D\uDE05','\uD83E\uDD23','\uD83D\uDE02','\uD83D\uDE42','\uD83D\uDE43','\uD83D\uDE09','\uD83D\uDE0A','\uD83D\uDE07','\uD83E\uDD70','\uD83D\uDE0D','\uD83E\uDD29','\uD83D\uDE18','\uD83D\uDE17','\uD83D\uDE1A','\uD83D\uDE19','\uD83D\uDE0B','\uD83D\uDE1B','\uD83D\uDE1C','\uD83E\uDD2A','\uD83D\uDE1D','\uD83E\uDD11','\uD83E\uDD17','\uD83E\uDD2D','\uD83E\uDD2B','\uD83E\uDD14','\uD83E\uDD10','\uD83E\uDD28','\uD83D\uDE10','\uD83D\uDE11','\uD83D\uDE36','\uD83D\uDE0F','\uD83D\uDE12','\uD83D\uDE44','\uD83D\uDE2C','\uD83E\uDD25','\uD83D\uDE0C','\uD83D\uDE14','\uD83D\uDE2A','\uD83E\uDD24','\uD83D\uDE34','\uD83D\uDE37','\uD83E\uDD12','\uD83E\uDD15','\uD83E\uDD22','\uD83E\uDD2E','\uD83E\uDD75','\uD83E\uDD76','\uD83E\uDD74','\uD83D\uDE35','\uD83E\uDD2F','\uD83E\uDD20','\uD83E\uDD73','\uD83D\uDE0E','\uD83E\uDD13','\uD83E\uDDD0','\uD83D\uDE15','\uD83D\uDE1F','\uD83D\uDE41','☹️','\uD83D\uDE2E','\uD83D\uDE2F','\uD83D\uDE32','\uD83D\uDE33','\uD83E\uDD7A','\uD83D\uDE26','\uD83D\uDE27','\uD83D\uDE28','\uD83D\uDE30','\uD83D\uDE25','\uD83D\uDE22','\uD83D\uDE2D','\uD83D\uDE31','\uD83D\uDE16','\uD83D\uDE23','\uD83D\uDE1E','\uD83D\uDE13','\uD83D\uDE29','\uD83D\uDE2B','\uD83E\uDD71','\uD83D\uDE24','\uD83D\uDE21','\uD83D\uDE20','\uD83E\uDD2C','\uD83D\uDE08','\uD83D\uDC7F','\uD83D\uDC4B','\uD83E\uDD1A','\uD83D\uDD90','✋','\uD83D\uDD96','\uD83D\uDC4C','\uD83E\uDD0C','\uD83E\uDD0F','✌️','\uD83E\uDD1E','\uD83E\uDD1F','\uD83E\uDD18','\uD83E\uDD19','\uD83D\uDC48','\uD83D\uDC49','\uD83D\uDC46','\uD83D\uDD95','\uD83D\uDC47','☝️','\uD83D\uDC4D','\uD83D\uDC4E','✊','\uD83D\uDC4A','\uD83E\uDD1B','\uD83E\uDD1C','\uD83D\uDC4F','\uD83D\uDE4C','\uD83D\uDC50','\uD83E\uDD32','\uD83E\uDD1D','\uD83D\uDE4F','\uD83D\uDCAA','\uD83E\uDDBE','✍️','\uD83D\uDC85','\uD83E\uDD33','❤️','\uD83E\uDDE1','\uD83D\uDC9B','\uD83D\uDC9A','\uD83D\uDC99','\uD83D\uDC9C','\uD83D\uDDA4','\uD83E\uDD0D','\uD83E\uDD0E','\uD83D\uDC94','❣️','\uD83D\uDC95','\uD83D\uDC9E','\uD83D\uDC93','\uD83D\uDC97','\uD83D\uDC96','\uD83D\uDC98','\uD83D\uDC9D','\uD83D\uDC9F','☮️','✝️','☪️','\uD83D\uDD49','☸️','✡️','\uD83D\uDD2F','\uD83D\uDD4E','☯️','☦️','\uD83D\uDED0','⭐','\uD83C\uDF1F','✨','⚡','\uD83D\uDD25','\uD83D\uDCA5','☀️','\uD83C\uDF19','⭐️','\uD83C\uDF08','✅','❌','⭕','❗','❓','‼️','⁉️','\uD83D\uDCAF','\uD83D\uDD14','\uD83D\uDD15','\uD83D\uDCCC','\uD83D\uDCCD','\uD83D\uDCCE','\uD83D\uDD17','\uD83D\uDD12','\uD83D\uDD13','\uD83D\uDD11','\uD83D\uDDDD','\uD83D\uDCA1','\uD83D\uDD26','\uD83D\uDCDD','✏️','✒️','\uD83D\uDD8A','\uD83D\uDD8B','\uD83D\uDD8C','\uD83D\uDD8D','\uD83D\uDCBC','\uD83D\uDCC1','\uD83D\uDCC2','\uD83D\uDCC5','\uD83D\uDCC6','\uD83D\uDDD3','\uD83D\uDCC7','\uD83D\uDCC8','\uD83D\uDCC9','\uD83D\uDCCA','\uD83D\uDCCB','\uD83D\uDCE4','\uD83D\uDCE5','\uD83D\uDCE6','\uD83D\uDCEB','\uD83D\uDCEC','\uD83D\uDCED','\uD83D\uDCEE','\uD83D\uDCEF','\uD83D\uDCDC','\uD83D\uDCC3','\uD83D\uDCC4','\uD83D\uDCD1','☕','\uD83C\uDF75','\uD83E\uDDC3','\uD83E\uDD64','\uD83E\uDDCB','\uD83C\uDF7A','\uD83C\uDF7B','\uD83E\uDD42','\uD83C\uDF77','\uD83C\uDF78','\uD83C\uDF55','\uD83C\uDF54','\uD83C\uDF5F','\uD83C\uDF2D','\uD83C\uDF7F','\uD83C\uDF69','\uD83C\uDF6A','\uD83C\uDF82','\uD83C\uDF70','\uD83E\uDDC1','\uD83C\uDF4E','\uD83C\uDF4A','\uD83C\uDF4B','\uD83C\uDF4C','\uD83C\uDF49','\uD83C\uDF47','\uD83C\uDF53','\uD83E\uDED0','\uD83C\uDF52','\uD83C\uDF51','⚽','\uD83C\uDFC0','\uD83C\uDFC8','⚾','\uD83C\uDFBE','\uD83C\uDFD0','\uD83C\uDFC9','\uD83C\uDFB1','\uD83C\uDFD3','\uD83C\uDFF8','\uD83C\uDFAE','\uD83D\uDD79','\uD83C\uDFB2','\uD83E\uDDE9','\uD83C\uDFAF','\uD83C\uDFB3','\uD83C\uDFB0','\uD83C\uDFB8','\uD83C\uDFB9','\uD83E\uDD41','\uD83C\uDFA4','\uD83C\uDFA7','\uD83C\uDFAC','\uD83C\uDFA5','\uD83D\uDCF7','\uD83D\uDCF8','\uD83D\uDCF9','\uD83D\uDCFA','\uD83D\uDCFB','\uD83C\uDF99','\uD83D\uDE80','✈️','\uD83D\uDEE9','\uD83D\uDEEB','\uD83D\uDEEC','\uD83D\uDEF0','\uD83D\uDCBA','\uD83D\uDEF8','\uD83D\uDE81','\uD83D\uDEF6','\uD83D\uDE97','\uD83D\uDE95','\uD83D\uDE99','\uD83D\uDE8C','\uD83D\uDE8E','\uD83C\uDFCE','\uD83D\uDE93','\uD83D\uDE91','\uD83D\uDE92','\uD83D\uDE90','\uD83C\uDFE0','\uD83C\uDFE1','\uD83C\uDFE2','\uD83C\uDFE3','\uD83C\uDFE4','\uD83C\uDFE5','\uD83C\uDFE6','\uD83C\uDFE8','\uD83C\uDFE9','\uD83C\uDFEA','\uD83D\uDC36','\uD83D\uDC31','\uD83D\uDC2D','\uD83D\uDC39','\uD83D\uDC30','\uD83E\uDD8A','\uD83D\uDC3B','\uD83D\uDC3C','\uD83D\uDC3B❄️','\uD83D\uDC28','\uD83D\uDC2F','\uD83E\uDD81','\uD83D\uDC2E','\uD83D\uDC37','\uD83D\uDC38','\uD83D\uDC35','\uD83D\uDE48','\uD83D\uDE49','\uD83D\uDE4A','\uD83D\uDC12','\uD83D\uDC14','\uD83D\uDC27','\uD83D\uDC26','\uD83D\uDC24','\uD83D\uDC23','\uD83D\uDC25','\uD83E\uDD86','\uD83E\uDD85','\uD83E\uDD89','\uD83E\uDD87','\uD83C\uDF89','\uD83C\uDF8A','\uD83C\uDF88','\uD83C\uDF81','\uD83C\uDF80','\uD83C\uDF97','\uD83C\uDFAB','\uD83C\uDF9F','\uD83C\uDFC6','\uD83C\uDFC5'];
|
|
@@ -21,6 +21,11 @@
|
|
|
21
21
|
>
|
|
22
22
|
{{ displayLabel || placeholder || '请选择' }}
|
|
23
23
|
</span>
|
|
24
|
+
<i
|
|
25
|
+
v-if="clearable && hasValue"
|
|
26
|
+
class="ri-close-circle-fill vm-select__clear"
|
|
27
|
+
@click.stop="clear"
|
|
28
|
+
/>
|
|
24
29
|
<i class="ri-arrow-down-s-line vm-select__caret" aria-hidden="true" />
|
|
25
30
|
</button>
|
|
26
31
|
|
|
@@ -74,29 +79,39 @@
|
|
|
74
79
|
</div>
|
|
75
80
|
|
|
76
81
|
<!-- 不可搜索:保留 reka Select -->
|
|
77
|
-
<
|
|
82
|
+
<div
|
|
78
83
|
v-else
|
|
79
|
-
|
|
80
|
-
:
|
|
81
|
-
|
|
84
|
+
class="vm-select vm-select--native"
|
|
85
|
+
:class="{ 'is-full': isFullWidth, 'is-disabled': disabled }"
|
|
86
|
+
:style="triggerStyle"
|
|
82
87
|
>
|
|
83
|
-
<
|
|
84
|
-
|
|
85
|
-
:
|
|
86
|
-
:
|
|
88
|
+
<Select
|
|
89
|
+
:model-value="inner"
|
|
90
|
+
:disabled="disabled"
|
|
91
|
+
@update:model-value="onChange"
|
|
87
92
|
>
|
|
88
|
-
<
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<SelectItem
|
|
92
|
-
v-for="opt in normalized"
|
|
93
|
-
:key="String(opt[valueKey])"
|
|
94
|
-
:value="String(opt[valueKey])"
|
|
93
|
+
<SelectTrigger
|
|
94
|
+
class="vm-crud-select"
|
|
95
|
+
:class="{ 'is-full': isFullWidth, 'has-clear': clearable && hasValue }"
|
|
95
96
|
>
|
|
96
|
-
|
|
97
|
-
</
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
<SelectValue :placeholder="placeholder || '请选择'" />
|
|
98
|
+
</SelectTrigger>
|
|
99
|
+
<SelectContent>
|
|
100
|
+
<SelectItem
|
|
101
|
+
v-for="opt in normalized"
|
|
102
|
+
:key="String(opt[valueKey])"
|
|
103
|
+
:value="String(opt[valueKey])"
|
|
104
|
+
>
|
|
105
|
+
{{ opt[labelKey] }}
|
|
106
|
+
</SelectItem>
|
|
107
|
+
</SelectContent>
|
|
108
|
+
</Select>
|
|
109
|
+
<i
|
|
110
|
+
v-if="clearable && hasValue && !disabled"
|
|
111
|
+
class="ri-close-circle-fill vm-select__clear"
|
|
112
|
+
@click.stop="clear"
|
|
113
|
+
/>
|
|
114
|
+
</div>
|
|
100
115
|
</template>
|
|
101
116
|
|
|
102
117
|
<script setup lang="ts">
|
|
@@ -122,6 +137,8 @@ const props = withDefaults(
|
|
|
122
137
|
api?: string | (() => Promise<unknown>)
|
|
123
138
|
/** 面板内按 label/value 模糊搜索;默认开启 */
|
|
124
139
|
filterable?: boolean
|
|
140
|
+
/** 有值时展示清除图标,点击置空 */
|
|
141
|
+
clearable?: boolean
|
|
125
142
|
}>(),
|
|
126
143
|
{
|
|
127
144
|
labelKey: 'label',
|
|
@@ -129,12 +146,13 @@ const props = withDefaults(
|
|
|
129
146
|
refreshOnChange: true,
|
|
130
147
|
width: '100%',
|
|
131
148
|
filterable: true,
|
|
149
|
+
clearable: true,
|
|
132
150
|
},
|
|
133
151
|
)
|
|
134
152
|
|
|
135
153
|
const emit = defineEmits<{
|
|
136
|
-
'update:modelValue': [v: string | number | boolean]
|
|
137
|
-
change: [v: string | number | boolean]
|
|
154
|
+
'update:modelValue': [v: string | number | boolean | '']
|
|
155
|
+
change: [v: string | number | boolean | '']
|
|
138
156
|
}>()
|
|
139
157
|
|
|
140
158
|
const crud = useCrud()
|
|
@@ -154,6 +172,8 @@ const inner = computed(() =>
|
|
|
154
172
|
: String(props.modelValue),
|
|
155
173
|
)
|
|
156
174
|
|
|
175
|
+
const hasValue = computed(() => inner.value !== '')
|
|
176
|
+
|
|
157
177
|
const isFullWidth = computed(
|
|
158
178
|
() => !props.width || props.width === '100%' || props.width === '100',
|
|
159
179
|
)
|
|
@@ -243,6 +263,11 @@ function clearSearch() {
|
|
|
243
263
|
searchRef.value?.focus()
|
|
244
264
|
}
|
|
245
265
|
|
|
266
|
+
function clear() {
|
|
267
|
+
closePanel()
|
|
268
|
+
onChange('')
|
|
269
|
+
}
|
|
270
|
+
|
|
246
271
|
function syncPanelPos() {
|
|
247
272
|
const el = triggerRef.value
|
|
248
273
|
if (!el) return
|
|
@@ -382,6 +407,44 @@ onUnmounted(() => {
|
|
|
382
407
|
font-size: 14px;
|
|
383
408
|
}
|
|
384
409
|
|
|
410
|
+
.vm-select__clear {
|
|
411
|
+
flex: 0 0 auto;
|
|
412
|
+
color: var(--muted-foreground);
|
|
413
|
+
font-size: 14px;
|
|
414
|
+
cursor: pointer;
|
|
415
|
+
|
|
416
|
+
&:hover {
|
|
417
|
+
color: var(--foreground);
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.vm-select--native {
|
|
422
|
+
position: relative;
|
|
423
|
+
box-sizing: border-box;
|
|
424
|
+
min-width: 0;
|
|
425
|
+
|
|
426
|
+
&.is-full {
|
|
427
|
+
width: 100%;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
&.is-disabled {
|
|
431
|
+
opacity: 0.55;
|
|
432
|
+
pointer-events: none;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.vm-select__clear {
|
|
436
|
+
position: absolute;
|
|
437
|
+
top: 50%;
|
|
438
|
+
right: 28px;
|
|
439
|
+
z-index: 1;
|
|
440
|
+
transform: translateY(-50%);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
:deep(.vm-crud-select.has-clear) {
|
|
444
|
+
padding-right: 52px;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
|
|
385
448
|
.vm-select__panel {
|
|
386
449
|
display: flex;
|
|
387
450
|
max-height: min(280px, 45vh);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x3e1b(){const _0x26d334=['zgLJDa','nJn4vhLYvgq','ndaYndm0mgfhBhnQCW','mtC0mJi0nen3zgD0zW','mtHUtLrmq24','mZu5ota2vffJAMPY','CgfNAw5HDgLVBG','C29YDa','mJK4mdC1mKfMzwzmva','BgfIzwW','oda3otK3zwndugHk','C2vHCMnO','yxbP','mJi0ndC0ofnQvuHxCq','ody4ndiYvxHguujV'];_0x3e1b=function(){return _0x26d334;};return _0x3e1b();}(function(_0x2972eb,_0x260e66){const _0x468814=_0x1c97,_0x158cce=_0x2972eb();while(!![]){try{const _0x3e5f3c=-parseInt(_0x468814(0x7a))/0x1+parseInt(_0x468814(0x75))/0x2*(-parseInt(_0x468814(0x74))/0x3)+-parseInt(_0x468814(0x6e))/0x4+parseInt(_0x468814(0x72))/0x5+-parseInt(_0x468814(0x6f))/0x6+-parseInt(_0x468814(0x73))/0x7+parseInt(_0x468814(0x78))/0x8*(parseInt(_0x468814(0x71))/0x9);if(_0x3e5f3c===_0x260e66)break;else _0x158cce['push'](_0x158cce['shift']());}catch(_0x31f87f){_0x158cce['push'](_0x158cce['shift']());}}}(_0x3e1b,0x8b47f));import{getCrudConfig}from'./style';import{CRUD_LABELS,DEFAULT_CRUD_DICT}from'./dict';export{CRUD_LABELS,DEFAULT_CRUD_DICT};const DEFAULT_CRUD_PERMISSION={'page':!![],'list':!![],'info':!![],'add':![],'delete':![],'update':![],'restore':![]};function _0x1c97(_0x1f6de1,_0x6ac021){_0x1f6de1=_0x1f6de1-0x6e;const _0x3e1bf9=_0x3e1b();let _0x1c97ab=_0x3e1bf9[_0x1f6de1];if(_0x1c97['zCGesy']===undefined){var _0x5504c6=function(_0x295675){const _0x108fee='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5961e2='',_0x4b4849='';for(let _0x23f3ba=0x0,_0x4a915b,_0x31dc28,_0xdeca9d=0x0;_0x31dc28=_0x295675['charAt'](_0xdeca9d++);~_0x31dc28&&(_0x4a915b=_0x23f3ba%0x4?_0x4a915b*0x40+_0x31dc28:_0x31dc28,_0x23f3ba++%0x4)?_0x5961e2+=String['fromCharCode'](0xff&_0x4a915b>>(-0x2*_0x23f3ba&0x6)):0x0){_0x31dc28=_0x108fee['indexOf'](_0x31dc28);}for(let _0x291e7b=0x0,_0x183cea=_0x5961e2['length'];_0x291e7b<_0x183cea;_0x291e7b++){_0x4b4849+='%'+('00'+_0x5961e2['charCodeAt'](_0x291e7b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b4849);};_0x1c97['QFXNdA']=_0x5504c6,_0x1c97['BViXfM']={},_0x1c97['zCGesy']=!![];}const _0x127efd=_0x3e1bf9[0x0],_0x12bed0=_0x1f6de1+_0x127efd,_0x3dcfdf=_0x1c97['BViXfM'][_0x12bed0];return!_0x3dcfdf?(_0x1c97ab=_0x1c97['QFXNdA'](_0x1c97ab),_0x1c97['BViXfM'][_0x12bed0]=_0x1c97ab):_0x1c97ab=_0x3dcfdf,_0x1c97ab;}export function mergeDict(_0x5961e2){const _0x5b91ab=_0x1c97,_0x4b4849=getCrudConfig()[_0x5b91ab(0x70)];if(!_0x5961e2)return{..._0x4b4849,'label':{..._0x4b4849[_0x5b91ab(0x79)]}};return{..._0x4b4849,..._0x5961e2,'api':{..._0x4b4849['api'],..._0x5961e2[_0x5b91ab(0x7c)]},'pagination':{..._0x4b4849[_0x5b91ab(0x76)],..._0x5961e2[_0x5b91ab(0x76)]},'search':{..._0x4b4849[_0x5b91ab(0x7b)],..._0x5961e2[_0x5b91ab(0x7b)]},'sort':{..._0x4b4849[_0x5b91ab(0x77)],..._0x5961e2['sort']},'label':{..._0x4b4849[_0x5b91ab(0x79)],..._0x5961e2[_0x5b91ab(0x79)]}};}export function mergePermission(_0x23f3ba,_0x4a915b){return{...DEFAULT_CRUD_PERMISSION,..._0x4a915b,..._0x23f3ba};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x4a92ca=_0x5aec;function _0x5aec(_0x4af019,_0x5426a3){_0x4af019=_0x4af019-0x1a0;const _0x5368ac=_0x5368();let _0x5aece6=_0x5368ac[_0x4af019];if(_0x5aec['yhxgDm']===undefined){var _0x3b7d1b=function(_0x1ed273){const _0xfedd01='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xa1dc64='',_0x5528a5='';for(let _0x702066=0x0,_0x3ceec9,_0x3071fd,_0x584c4a=0x0;_0x3071fd=_0x1ed273['charAt'](_0x584c4a++);~_0x3071fd&&(_0x3ceec9=_0x702066%0x4?_0x3ceec9*0x40+_0x3071fd:_0x3071fd,_0x702066++%0x4)?_0xa1dc64+=String['fromCharCode'](0xff&_0x3ceec9>>(-0x2*_0x702066&0x6)):0x0){_0x3071fd=_0xfedd01['indexOf'](_0x3071fd);}for(let _0x33bc5b=0x0,_0xfc16ea=_0xa1dc64['length'];_0x33bc5b<_0xfc16ea;_0x33bc5b++){_0x5528a5+='%'+('00'+_0xa1dc64['charCodeAt'](_0x33bc5b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5528a5);};_0x5aec['oYldPX']=_0x3b7d1b,_0x5aec['kRxEJA']={},_0x5aec['yhxgDm']=!![];}const _0x17dc6e=_0x5368ac[0x0],_0x540178=_0x4af019+_0x17dc6e,_0x8d1102=_0x5aec['kRxEJA'][_0x540178];return!_0x8d1102?(_0x5aece6=_0x5aec['oYldPX'](_0x5aece6),_0x5aec['kRxEJA'][_0x540178]=_0x5aece6):_0x5aece6=_0x8d1102,_0x5aece6;}(function(_0x2367bc,_0x3c4419){const _0x57139f=_0x5aec,_0x43b5aa=_0x2367bc();while(!![]){try{const _0x551f2f=-parseInt(_0x57139f(0x1b6))/0x1*(parseInt(_0x57139f(0x1a2))/0x2)+parseInt(_0x57139f(0x1a7))/0x3*(-parseInt(_0x57139f(0x1b4))/0x4)+parseInt(_0x57139f(0x1b2))/0x5+parseInt(_0x57139f(0x1a9))/0x6+parseInt(_0x57139f(0x1c3))/0x7*(-parseInt(_0x57139f(0x1af))/0x8)+-parseInt(_0x57139f(0x1a1))/0x9+-parseInt(_0x57139f(0x1b1))/0xa*(-parseInt(_0x57139f(0x1c2))/0xb);if(_0x551f2f===_0x3c4419)break;else _0x43b5aa['push'](_0x43b5aa['shift']());}catch(_0x4a6682){_0x43b5aa['push'](_0x43b5aa['shift']());}}}(_0x5368,0x7d4fa));import{createApp,h,ref}from'vue';import{Dialog,DialogContent,DialogFooter,DialogHeader,DialogTitle}from'#vome-host/components/ui/dialog';function _0x5368(){const _0x472d2b=['Dgv4DenVBNrLBNq','mJy5ndu4mZfJBxHJruW','nZG4mJDNvLDhBgC','DM0Ty29UzMLYBv9FDgL0Bgu','odC3mtK0mhLzBKXhsq','nZHizKrtwgS','DM0Ty29UzMLYBv9FyM9KEq','BwvZC2fNzq','Dw5KzwzPBMvK','DMfSDwu','odKWnZzQCKvlsgG','yxbWzw5Kq2HPBgq','mJyXotbrt1HRvgC','DM0Ty29UzMLYBq','DM0Ty29UzMLYBv9FyNrUigLZlwDOB3n0','DM0Ty29UzMLYBs1ZDhLSzq','DM0Ty29UzMLYBv9FAgvHza','Bw91BNq','mJmYD3bJEvHy','yNv0Dg9U','mtbmuhvQtNy','nty2mJe1suPIwfvk','Dw5TB3vUDa','mZjHsMvZB1C','DM0Ty29UzMLYBv9FyNrUigLZlxbYAw1HCNK','mtmYmtbqtNzrDNK','yM9KEq','zgL2','C3r5Bgu','y2fUy2vSvgv4Da','C3rYAw5N','z2v0rwXLBwvUDej5swq','y29UzMLYBvrLEhq','y3jLyxrLrwXLBwvUDa','DgL0Bgu','AgvHza'];_0x5368=function(){return _0x472d2b;};return _0x5368();}export function vmConfirm(_0xa1dc64){const _0x4c1a15=_0x5aec,_0x5528a5=typeof _0xa1dc64===_0x4c1a15(0x1bb)?{'message':_0xa1dc64}:_0xa1dc64;return new Promise(_0x702066=>{const _0x2bf4e9=_0x4c1a15,_0x3ceec9=ref(!![]),_0x3071fd=document[_0x2bf4e9(0x1be)]('div');document[_0x2bf4e9(0x1b7)][_0x2bf4e9(0x1a8)](_0x3071fd);const _0x584c4a=createApp({'setup'(){const _0x5d9682=_0x2bf4e9;function _0x33bc5b(_0xfc16ea){const _0xc87ce6=_0x5aec;_0x3ceec9[_0xc87ce6(0x1a6)]=![],_0x702066(_0xfc16ea),setTimeout(()=>{const _0x34ffab=_0xc87ce6;_0x584c4a[_0x34ffab(0x1b3)](),_0x3071fd['remove']();},0xc8);}return()=>h(Dialog,{'open':_0x3ceec9[_0x5d9682(0x1a6)],'onUpdate:open':_0x56a4a3=>{if(!_0x56a4a3)_0x33bc5b(![]);}},{'default':()=>h(DialogContent,{'class':_0x5d9682(0x1aa),'showCloseButton':![]},{'default':()=>[h(DialogHeader,{'class':_0x5d9682(0x1ad)},()=>h(DialogTitle,{'class':_0x5d9682(0x1a0)},()=>_0x5528a5[_0x5d9682(0x1bf)]||'提示')),h(_0x5d9682(0x1b8),{'class':_0x5d9682(0x1a3)},_0x5528a5[_0x5d9682(0x1a4)]),h(DialogFooter,{'class':'vm-confirm__foot'},()=>[h(_0x5d9682(0x1b0),{'type':_0x5d9682(0x1b0),'class':_0x5d9682(0x1ab),'onClick':()=>_0x33bc5b(![])},_0x5528a5[_0x5d9682(0x1ba)]||'取消'),h('button',{'type':_0x5d9682(0x1b0),'class':_0x5d9682(0x1b5),'onClick':()=>_0x33bc5b(!![])},_0x5528a5[_0x5d9682(0x1bd)]||'确定')])]})});}});_0x584c4a[_0x2bf4e9(0x1ae)](_0x3071fd);});}if(typeof document!==_0x4a92ca(0x1a5)&&!document[_0x4a92ca(0x1bc)](_0x4a92ca(0x1ac))){const style=document[_0x4a92ca(0x1be)](_0x4a92ca(0x1b9));style['id']=_0x4a92ca(0x1ac),style[_0x4a92ca(0x1c1)]='\x0a.vm-confirm[data-slot=\x27dialog-content\x27]\x20{\x0a\x20\x20width:\x20min(400px,\x20calc(100vw\x20-\x2032px))\x20!important;\x0a\x20\x20max-width:\x20min(400px,\x20calc(100vw\x20-\x2032px))\x20!important;\x0a\x20\x20gap:\x200\x20!important;\x0a\x20\x20padding:\x200\x20!important;\x0a\x20\x20border:\x20none\x20!important;\x0a\x20\x20border-radius:\x2024px\x20!important;\x0a\x20\x20box-shadow:\x20var(--shadow-soft)\x20!important;\x0a}\x0a.vm-confirm__head\x20{\x20padding:\x2018px\x2022px\x200;\x20border-bottom:\x20none;\x20}\x0a.vm-confirm__title\x20{\x20font-size:\x2016px;\x20font-weight:\x20650;\x20}\x0a.vm-confirm__body\x20{\x0a\x20\x20padding:\x2012px\x2022px\x208px;\x0a\x20\x20color:\x20var(--foreground);\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.6;\x0a}\x0a.vm-confirm__foot\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20justify-content:\x20flex-end;\x0a\x20\x20gap:\x208px;\x0a\x20\x20padding:\x2014px\x2022px;\x0a}\x0a.vm-confirm__btn\x20{\x0a\x20\x20height:\x2036px;\x0a\x20\x20padding:\x200\x2016px;\x0a\x20\x20border:\x20none;\x0a\x20\x20border-radius:\x2012px;\x0a\x20\x20font-size:\x2013px;\x0a\x20\x20font-weight:\x20600;\x0a\x20\x20cursor:\x20pointer;\x0a}\x0a.vm-confirm__btn.is-primary\x20{\x20background:\x20var(--brand);\x20color:\x20#fff;\x20}\x0a.vm-confirm__btn.is-primary:hover\x20{\x20background:\x20var(--brand-deep);\x20}\x0a.vm-confirm__btn.is-ghost\x20{\x20background:\x20var(--muted);\x20color:\x20var(--foreground);\x20}\x0a',document[_0x4a92ca(0x1c0)]['appendChild'](style);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x1c1880,_0x120453){const _0x85054c=_0x286e,_0x4dbdb2=_0x1c1880();while(!![]){try{const _0x538060=parseInt(_0x85054c(0x1e5))/0x1+-parseInt(_0x85054c(0x1e2))/0x2+-parseInt(_0x85054c(0x1eb))/0x3*(parseInt(_0x85054c(0x1e3))/0x4)+parseInt(_0x85054c(0x1e1))/0x5*(-parseInt(_0x85054c(0x1de))/0x6)+parseInt(_0x85054c(0x1e8))/0x7+-parseInt(_0x85054c(0x1df))/0x8*(parseInt(_0x85054c(0x1dd))/0x9)+parseInt(_0x85054c(0x1e6))/0xa*(parseInt(_0x85054c(0x1ea))/0xb);if(_0x538060===_0x120453)break;else _0x4dbdb2['push'](_0x4dbdb2['shift']());}catch(_0x3efae9){_0x4dbdb2['push'](_0x4dbdb2['shift']());}}}(_0x4647,0x3985a));function normalizePageResult(_0x4c9cfe){const _0x500f44=_0x286e;if(Array[_0x500f44(0x1e9)](_0x4c9cfe))return{'list':_0x4c9cfe,'pagination':{'total':_0x4c9cfe['length']}};const _0x4a141c=_0x4c9cfe||{};return{'list':_0x4a141c[_0x500f44(0x1ec)]||[],'pagination':_0x4a141c[_0x500f44(0x1e4)]};}function _0x286e(_0x19e766,_0x355a58){_0x19e766=_0x19e766-0x1dd;const _0x46478a=_0x4647();let _0x286e8a=_0x46478a[_0x19e766];if(_0x286e['EBapWI']===undefined){var _0x3a694c=function(_0x5640fa){const _0x2da6f9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c9cfe='',_0x4a141c='';for(let _0x2b771f=0x0,_0xe03e02,_0x439d3a,_0x274817=0x0;_0x439d3a=_0x5640fa['charAt'](_0x274817++);~_0x439d3a&&(_0xe03e02=_0x2b771f%0x4?_0xe03e02*0x40+_0x439d3a:_0x439d3a,_0x2b771f++%0x4)?_0x4c9cfe+=String['fromCharCode'](0xff&_0xe03e02>>(-0x2*_0x2b771f&0x6)):0x0){_0x439d3a=_0x2da6f9['indexOf'](_0x439d3a);}for(let _0x5161c5=0x0,_0x14be88=_0x4c9cfe['length'];_0x5161c5<_0x14be88;_0x5161c5++){_0x4a141c+='%'+('00'+_0x4c9cfe['charCodeAt'](_0x5161c5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4a141c);};_0x286e['QGwniT']=_0x3a694c,_0x286e['vEFrAM']={},_0x286e['EBapWI']=!![];}const _0xf3c6fc=_0x46478a[0x0],_0x44a641=_0x19e766+_0xf3c6fc,_0x4b82f8=_0x286e['vEFrAM'][_0x44a641];return!_0x4b82f8?(_0x286e8a=_0x286e['QGwniT'](_0x286e8a),_0x286e['vEFrAM'][_0x44a641]=_0x286e8a):_0x286e8a=_0x4b82f8,_0x286e8a;}function _0x4647(){const _0x303e81=['CgfNAw5HDgLVBG','mtmZmtm0C294s0fP','mti3mte2nJbID1HRCge','BgvUz3rO','mZmXmdC5DMTOBfz2','AxnbCNjHEq','mtf4v3LOB3m','mJC2mZG3r05UtfLZ','BgLZDa','ow1UBvnptq','ntmYota4wfv3svnn','mtu5mZGXnLrQCKDzBq','w3zTlwnYDwrDig9UuMvMCMvZAcdMNkRPGjROV4CGBMv4Dc9Yzw5KzxiG6l+u5zUE5yIx6kgO5PwW5O2U','mJvWC0n6rvC','mJi0mduWq1vbzMLZ','mJbwy2rYA0O'];_0x4647=function(){return _0x303e81;};return _0x4647();}export async function invokeCrudPageRequest(_0x2b771f){const _0xfd35b0=_0x286e,{body:_0xe03e02,fetch:_0x439d3a,onRefresh:_0x274817,requestOpts:_0x5161c5}=_0x2b771f,_0x14be88=async _0xd74b4f=>{const _0x17b734=await _0x439d3a(_0xd74b4f,_0x5161c5);return normalizePageResult(_0x17b734);};if(!_0x274817)return _0x14be88(_0xe03e02);let _0x519b2f;await _0x274817(_0xe03e02,{'next':async(_0xaca7ca=_0xe03e02)=>{return _0x519b2f=await _0x14be88(_0xaca7ca),_0x519b2f;},'done':()=>{},'render':(_0x2dec6d,_0x59ab63)=>{const _0x57d974=_0x286e;if(_0x519b2f)return;if(Array['isArray'](_0x2dec6d)){_0x519b2f={'list':_0x2dec6d,'pagination':_0x59ab63??{'total':_0x2dec6d[_0x57d974(0x1e7)]}};return;}const _0x155cc6=_0x2dec6d;_0x519b2f={'list':_0x155cc6['list']||[],'pagination':_0x155cc6[_0x57d974(0x1e4)]??_0x59ab63};}});if(!_0x519b2f)throw new Error(_0xfd35b0(0x1e0));return _0x519b2f;}
|
package/dist/admin/crud/dict.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x45ebab=_0x2ee1;function _0x2ee1(_0x35c750,_0x44b99b){_0x35c750=_0x35c750-0x15f;const _0x49ffa6=_0x49ff();let _0x2ee175=_0x49ffa6[_0x35c750];if(_0x2ee1['gRlaUT']===undefined){var _0x42a556=function(_0x2dac9e){const _0x3ff610='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3c60c4='',_0x1602ba='';for(let _0x474c01=0x0,_0x462c8a,_0x793eb9,_0x212359=0x0;_0x793eb9=_0x2dac9e['charAt'](_0x212359++);~_0x793eb9&&(_0x462c8a=_0x474c01%0x4?_0x462c8a*0x40+_0x793eb9:_0x793eb9,_0x474c01++%0x4)?_0x3c60c4+=String['fromCharCode'](0xff&_0x462c8a>>(-0x2*_0x474c01&0x6)):0x0){_0x793eb9=_0x3ff610['indexOf'](_0x793eb9);}for(let _0x3a75e8=0x0,_0x451b2a=_0x3c60c4['length'];_0x3a75e8<_0x451b2a;_0x3a75e8++){_0x1602ba+='%'+('00'+_0x3c60c4['charCodeAt'](_0x3a75e8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1602ba);};_0x2ee1['XIxyAO']=_0x42a556,_0x2ee1['ChcSnu']={},_0x2ee1['gRlaUT']=!![];}const _0x34ca18=_0x49ffa6[0x0],_0x5d62f9=_0x35c750+_0x34ca18,_0x43fdf3=_0x2ee1['ChcSnu'][_0x5d62f9];return!_0x43fdf3?(_0x2ee175=_0x2ee1['XIxyAO'](_0x2ee175),_0x2ee1['ChcSnu'][_0x5d62f9]=_0x2ee175):_0x2ee175=_0x43fdf3,_0x2ee175;}function _0x49ff(){const _0x1e5e85=['5PYa5Bcp5yc8','mtfmEuTsAhm','5PcC57sI5ywZ6zsU5A2x','6AUy57QN5PcC57sI','mJy0mJq1odH6A0TrrMO','5yIG6zMK5OIq5yQF','5Q2K5Pon5l2C5Bcg5Rc45lMf5yIG6zMK6ycj5lIT5PwW5O2U77Ym5PIV5zcM57UN57UT77YF','mtq0mJGYnKreCLPLsa','CxvLCNK','ywrK','5ywXihSWFsdMNAe','5ywZ6zsU5A2x','ndGWne9PChHQqG','5PQc5PEG5PwW5O2U','5BEY5yIG6zMK','EZb9ic8G6Ag1','mtK4otGYmKfovNrsCq','5lIl5lIa6Ag1','mJbZruXKvui','5yQG6l295lIT4OcM','5PYa5AsN5yc8','B3jKzxi','5Q2K5Pon5l2C5Bcg5PwW5O2U5Qch6k6W5lI65BEY5yIG6zMK77Ym5PIV5zcM57UN57UT77YF','5B275BQv5yIG6zMK','mtm2mtG4mfnbvenmvW','5lIk5lIa6Ag1','CgfNzq','BgLZDa','5P+L55Yl5PU05AsA','mJyZmg9hEejRCW','5lIn6io95lI656M6','5BEY5B275BQv5yIG6zMK','mujkt0nJuW','zgvSzxrL','5PcC57sIEZb9','mtaYnti4odbQt2zSBLe','A2v5v29Yza','oti2mJjiuhjVq0O','nteXy1LVzuje'];_0x49ff=function(){return _0x1e5e85;};return _0x49ff();}(function(_0x552e15,_0x145c56){const _0x3e1aaf=_0x2ee1,_0x455d43=_0x552e15();while(!![]){try{const _0x1d8c51=parseInt(_0x3e1aaf(0x17a))/0x1*(-parseInt(_0x3e1aaf(0x161))/0x2)+parseInt(_0x3e1aaf(0x16a))/0x3+-parseInt(_0x3e1aaf(0x166))/0x4*(-parseInt(_0x3e1aaf(0x177))/0x5)+parseInt(_0x3e1aaf(0x17f))/0x6*(-parseInt(_0x3e1aaf(0x180))/0x7)+-parseInt(_0x3e1aaf(0x17d))/0x8+-parseInt(_0x3e1aaf(0x172))/0x9*(-parseInt(_0x3e1aaf(0x16c))/0xa)+parseInt(_0x3e1aaf(0x182))/0xb*(parseInt(_0x3e1aaf(0x185))/0xc);if(_0x1d8c51===_0x145c56)break;else _0x455d43['push'](_0x455d43['shift']());}catch(_0x56e02c){_0x455d43['push'](_0x455d43['shift']());}}}(_0x49ff,0xa3845));export const CRUD_LABELS={'op':'操作','add':'新增','delete':'删除','multiDelete':'删除','export':'导出','import':'导入','update':'编辑','refresh':'刷新','info':'详情','search':'搜索','reset':'重置','clear':'清空','save':'保存','close':'取消','confirm':'确定','advSearch':_0x45ebab(0x184),'searchKey':_0x45ebab(0x183),'placeholder':'请输入','tips':'提示','saveSuccess':'保存成功','deleteSuccess':_0x45ebab(0x15f),'deleteConfirm':_0x45ebab(0x170),'forceDeleteConfirm':_0x45ebab(0x160),'empty':_0x45ebab(0x167),'desc':'降序','asc':'升序','select':'选择','deselect':'取消选择','seeMore':_0x45ebab(0x176),'hideContent':'隐藏内容','nonEmpty':_0x45ebab(0x178),'list':'列表','trash':'回收站','searchNamed':_0x45ebab(0x17c),'selectNamed':'选择{0}','keyword':_0x45ebab(0x165),'range':'区间','min':_0x45ebab(0x181),'max':_0x45ebab(0x16e),'start':'开始','end':'结束','total':_0x45ebab(0x164),'pageSize':_0x45ebab(0x169),'prevPage':_0x45ebab(0x173),'nextPage':_0x45ebab(0x16b),'jumpPage':'页码','forceDeleted':_0x45ebab(0x179),'deleted':_0x45ebab(0x168),'restore':'恢复','forceDelete':_0x45ebab(0x171),'loading':_0x45ebab(0x16d)};export const DEFAULT_CRUD_DICT={'primaryId':'id','api':{'list':_0x45ebab(0x175),'add':_0x45ebab(0x163),'update':'update','delete':_0x45ebab(0x17b),'info':'info','page':_0x45ebab(0x174)},'pagination':{'page':_0x45ebab(0x174),'size':'size'},'search':{'keyWord':_0x45ebab(0x17e),'query':_0x45ebab(0x162)},'sort':{'prop':_0x45ebab(0x16f),'order':'sort'},'label':CRUD_LABELS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xd0d175,_0x21e96f){const _0x527dc3=_0x14be,_0x4d25c8=_0xd0d175();while(!![]){try{const _0x10e96f=parseInt(_0x527dc3(0x15b))/0x1*(-parseInt(_0x527dc3(0x158))/0x2)+-parseInt(_0x527dc3(0x163))/0x3*(-parseInt(_0x527dc3(0x160))/0x4)+parseInt(_0x527dc3(0x155))/0x5*(-parseInt(_0x527dc3(0x15f))/0x6)+parseInt(_0x527dc3(0x15c))/0x7+parseInt(_0x527dc3(0x165))/0x8+parseInt(_0x527dc3(0x15a))/0x9*(-parseInt(_0x527dc3(0x15d))/0xa)+parseInt(_0x527dc3(0x164))/0xb*(parseInt(_0x527dc3(0x157))/0xc);if(_0x10e96f===_0x21e96f)break;else _0x4d25c8['push'](_0x4d25c8['shift']());}catch(_0x387397){_0x4d25c8['push'](_0x4d25c8['shift']());}}}(_0x1c7c,0x3cb89));function _0x14be(_0x19ecd3,_0x46a9b5){_0x19ecd3=_0x19ecd3-0x154;const _0x1c7c0f=_0x1c7c();let _0x14bed8=_0x1c7c0f[_0x19ecd3];if(_0x14be['qZTAfY']===undefined){var _0x22f407=function(_0x401a56){const _0x4c5ec0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c329d='',_0x1b575a='';for(let _0x415214=0x0,_0x48920d,_0x18a89e,_0x4b8314=0x0;_0x18a89e=_0x401a56['charAt'](_0x4b8314++);~_0x18a89e&&(_0x48920d=_0x415214%0x4?_0x48920d*0x40+_0x18a89e:_0x18a89e,_0x415214++%0x4)?_0x1c329d+=String['fromCharCode'](0xff&_0x48920d>>(-0x2*_0x415214&0x6)):0x0){_0x18a89e=_0x4c5ec0['indexOf'](_0x18a89e);}for(let _0x565086=0x0,_0xed1669=_0x1c329d['length'];_0x565086<_0xed1669;_0x565086++){_0x1b575a+='%'+('00'+_0x1c329d['charCodeAt'](_0x565086)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b575a);};_0x14be['gHydLP']=_0x22f407,_0x14be['ULEMuS']={},_0x14be['qZTAfY']=!![];}const _0x15d726=_0x1c7c0f[0x0],_0x3230eb=_0x19ecd3+_0x15d726,_0x312263=_0x14be['ULEMuS'][_0x3230eb];return!_0x312263?(_0x14bed8=_0x14be['gHydLP'](_0x14bed8),_0x14be['ULEMuS'][_0x3230eb]=_0x14bed8):_0x14bed8=_0x312263,_0x14bed8;}function _0x1c7c(){const _0x2fc4c1=['BwLU','mJuWodC4q3LSEwH6','mtCWngX4CNnNwG','BgvUz3rO','C2XPy2u','mti5ouLKEenrEG','mJG0mJuXr3PzwxPL','mtuWode2vurYv0vN','Dg90ywW','mtbdAeHjv3a','CgfNAw5HDgLVBG','mtu2D05fDgrQ','nMDcBunwEq','ChvZAa','mJDutfPwzeq','otm5mJzRuxbjC2q','mJy1otyYoxf1wg1MuW','mtaXnJKXmgHetNrTqq'];_0x1c7c=function(){return _0x2fc4c1;};return _0x1c7c();}import{CRUD_BACKEND_PAGE_MAX}from'./paging';export async function fetchExportRowsByPage(_0x1c329d){const _0x2927eb=_0x14be,{buildQuery:_0x1b575a,pageKey:_0x415214,sizeKey:_0x48920d,page:_0x18a89e,maxExportLimit:_0x4b8314,totalHint:totalHint=0x0,requestOpts:_0x565086}=_0x1c329d,_0xed1669=_0x4b8314>0x0?_0x4b8314:Number['POSITIVE_INFINITY'],_0xf9376d=[];let _0xc23b93=0x1,_0x4b1f28=totalHint||0x0;while(_0xf9376d[_0x2927eb(0x161)]<_0xed1669){const _0x4f4ec2=_0xed1669-_0xf9376d[_0x2927eb(0x161)],_0x57240e=Math[_0x2927eb(0x15e)](CRUD_BACKEND_PAGE_MAX,_0x4f4ec2),_0x552c5a=_0x1b575a({[_0x415214]:_0xc23b93,[_0x48920d]:_0x57240e}),_0x47e770=await _0x18a89e(_0x552c5a,_0x565086),_0x56fad1=_0x47e770['list']||[];if(_0x47e770[_0x2927eb(0x156)]?.[_0x2927eb(0x154)]!=null)_0x4b1f28=_0x47e770[_0x2927eb(0x156)][_0x2927eb(0x154)];if(!_0x56fad1[_0x2927eb(0x161)])break;_0xf9376d[_0x2927eb(0x159)](..._0x56fad1);const _0x8e9087=_0x4b1f28>0x0?Math[_0x2927eb(0x15e)](_0x4b1f28,_0xed1669):_0xed1669;if(_0x4b1f28>0x0&&_0xf9376d[_0x2927eb(0x161)]>=_0x8e9087)break;if(_0x56fad1[_0x2927eb(0x161)]<_0x57240e)break;_0xc23b93++;}if(_0x4b8314>0x0&&_0xf9376d[_0x2927eb(0x161)]>_0x4b8314)return _0xf9376d[_0x2927eb(0x162)](0x0,_0x4b8314);return _0xf9376d;}
|
package/dist/admin/crud/key.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3c80fa=_0x5509;(function(_0x5af78c,_0x46750d){const _0x34b741=_0x5509,_0x4a5e2f=_0x5af78c();while(!![]){try{const _0x64af43=-parseInt(_0x34b741(0xab))/0x1+-parseInt(_0x34b741(0x9d))/0x2*(parseInt(_0x34b741(0xa3))/0x3)+parseInt(_0x34b741(0x9c))/0x4*(parseInt(_0x34b741(0xa7))/0x5)+parseInt(_0x34b741(0x9f))/0x6+-parseInt(_0x34b741(0xa8))/0x7*(parseInt(_0x34b741(0xa1))/0x8)+-parseInt(_0x34b741(0xa9))/0x9*(-parseInt(_0x34b741(0xaa))/0xa)+parseInt(_0x34b741(0xa0))/0xb;if(_0x64af43===_0x46750d)break;else _0x4a5e2f['push'](_0x4a5e2f['shift']());}catch(_0x1c3d10){_0x4a5e2f['push'](_0x4a5e2f['shift']());}}}(_0xd9a0,0x89327));function _0xd9a0(){const _0x2c008e=['nJi0ndaYshfWveL2','mJeYnJa2mtnosvHYzNi','mJrNtKjOCeq','DM0Ty3j1za','m2f3CeTtyq','DxnLu2vHCMnOx19VChrPB25Z','DM0TDgfIBguTyxbP','DxnLvgfIBgvFx29WDgLVBNm','ntK1v2fLBfr2','oty4nta2tLbmq09c','oxHKC3jzuW','ndiXndaZmfDYuNv2ta','otKZmZyYufjhsKLf','nJCZmLD3v1z4sq','mtm3nJi3mevLshvJvW','DxnLvxbZzxj0x19VChrPB25Z'];_0xd9a0=function(){return _0x2c008e;};return _0xd9a0();}import{inject}from'vue';export const CRUD_KEY=Symbol(_0x3c80fa(0xa2));function _0x5509(_0x2e8e2c,_0x45aaec){_0x2e8e2c=_0x2e8e2c-0x9c;const _0xd9a015=_0xd9a0();let _0x550984=_0xd9a015[_0x2e8e2c];if(_0x5509['UBXUTT']===undefined){var _0x568991=function(_0x5b4a07){const _0x3832c7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x30f49d='',_0x58c4a0='';for(let _0x127f11=0x0,_0x382f44,_0x341a6c,_0x1e1487=0x0;_0x341a6c=_0x5b4a07['charAt'](_0x1e1487++);~_0x341a6c&&(_0x382f44=_0x127f11%0x4?_0x382f44*0x40+_0x341a6c:_0x341a6c,_0x127f11++%0x4)?_0x30f49d+=String['fromCharCode'](0xff&_0x382f44>>(-0x2*_0x127f11&0x6)):0x0){_0x341a6c=_0x3832c7['indexOf'](_0x341a6c);}for(let _0x4190b5=0x0,_0x17dd36=_0x30f49d['length'];_0x4190b5<_0x17dd36;_0x4190b5++){_0x58c4a0+='%'+('00'+_0x30f49d['charCodeAt'](_0x4190b5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x58c4a0);};_0x5509['GEZrav']=_0x568991,_0x5509['VmfMVT']={},_0x5509['UBXUTT']=!![];}const _0x23dd6f=_0xd9a015[0x0],_0x16bf04=_0x2e8e2c+_0x23dd6f,_0x9e3cae=_0x5509['VmfMVT'][_0x16bf04];return!_0x9e3cae?(_0x550984=_0x5509['GEZrav'](_0x550984),_0x5509['VmfMVT'][_0x16bf04]=_0x550984):_0x550984=_0x9e3cae,_0x550984;}export const CRUD_OPTIONS_KEY=Symbol('useCrud__options');export const TABLE_OPTIONS_KEY=Symbol(_0x3c80fa(0xa6));export const UPSERT_OPTIONS_KEY=Symbol(_0x3c80fa(0x9e));export const SEARCH_OPTIONS_KEY=Symbol(_0x3c80fa(0xa4));export const TABLE_API_KEY=Symbol(_0x3c80fa(0xa5));export function injectCrudOptions(){return inject(CRUD_OPTIONS_KEY,undefined);}export function injectTableOptions(){return inject(TABLE_OPTIONS_KEY,undefined);}export function injectUpsertOptions(){return inject(UPSERT_OPTIONS_KEY,undefined);}export function injectSearchOptions(){return inject(SEARCH_OPTIONS_KEY,undefined);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xc36633,_0x115470){const _0x3ff465=_0x2b1f,_0x476f87=_0xc36633();while(!![]){try{const _0x20fc78=parseInt(_0x3ff465(0xe6))/0x1*(-parseInt(_0x3ff465(0xce))/0x2)+-parseInt(_0x3ff465(0x103))/0x3*(-parseInt(_0x3ff465(0x104))/0x4)+parseInt(_0x3ff465(0xed))/0x5+-parseInt(_0x3ff465(0xfe))/0x6+-parseInt(_0x3ff465(0xf5))/0x7*(-parseInt(_0x3ff465(0xf6))/0x8)+parseInt(_0x3ff465(0x10a))/0x9+-parseInt(_0x3ff465(0xd3))/0xa*(-parseInt(_0x3ff465(0xc8))/0xb);if(_0x20fc78===_0x115470)break;else _0x476f87['push'](_0x476f87['shift']());}catch(_0xa01b93){_0x476f87['push'](_0x476f87['shift']());}}}(_0x24dd,0xdd121));import{findEpsEntity}from'../lib/eps';import{getCrudStyle}from'./style';export function toTree(_0x2f9232={}){const _0x57e277=_0x2b1f;return{'__plugin':_0x57e277(0xea),'tree':!![],'lazy':_0x2f9232['lazy']??![]};}export function setFocus(_0x31a9ca){return{'__plugin':'setFocus','prop':_0x31a9ca??''};}function _0x24dd(){const _0x2d85a6=['C3bSAxq','BM9Uzq','C291CMnL','CgfYyw0','zgf0zxjHBMDL','nJnoEfretNG','BNvTyMvYlxjHBMDL','A2v5v29YzeXPA2vgAwvSzhm','C2v0uNvSzxm','Dg9uCMvL','AgfZ','ChjVCa','odG2mZe5nxPYB0LpDa','BgvUz3rO','A2v5D29Yza','DgfIBgu','x19Yyw5Nzv8','C3rYAw5N','DhjLzuXHENK','y29UDgv4De1LBNu','mtCYmZm4nNPeyufftq','mtzAB0Ldsfy','ywrK','DhLWzq','AwDUB3jLrMLLBgrZ','A2v5v29Yza','CMvWBgfJzq','CgX1z2LUCW','DhjLzq','ndeWotuYmgHmyLrbvW','DM0TBNvTyMvYlxjHBMDL','CgfNzunVBhvTBNm','DhjPBq','Aw5WDxq','ntryvhrTrKi','mti4ndy4BKj4zvvq','C2vSzwn0','zgLJDa','B2jQzwn0','zMLLBgrbCNjHEq','CMfUz2u','nZG5nJG3ELnouwHj','Aw50','Cg9W','zMLLBgrsyw5Nzq','ChjVCgvYDhLoyw1L','zMXVyxq','y29SDw1UCW','zMLLBgrmAwTL','x19WBhvNAw4','zMLUza','nJeYn2viEej2qW','BwLU','AM9PBG','BgfIzwW','C3rHCNrZv2L0Aa','Bwf0y2G','ndyZntz4CuTQD3G','5ywZ6zsU5A2x','y29SDw1U','Bwf4','BxvSDgLWBgu','mJe1mfzhrgryrW','y29TBwvUDa','yxv0B0HLAwDODa','5PYa5AsN5yc8','BMfTzxnWywnL','Bgf6Eq','CgfNzvf1zxj5t3a','ChvZAa','Aw5JBhvKzxm','zMLSDgvY','C2vHCMnO','zMLLBgrfCq','AgLKzuXHyMvS','AxnbCNjHEq'];_0x24dd=function(){return _0x2d85a6;};return _0x24dd();}export function setRules(){const _0x853080=_0x2b1f;return{'__plugin':_0x853080(0xe9)};}export function setAuto(_0x5d0841={'hideLabel':!![]}){return{'__plugin':'setAuto',..._0x5d0841};}export const Plugins={'Table':{'toTree':toTree},'Form':{'setFocus':setFocus,'setRules':setRules},'Search':{'setAuto':setAuto}};export function applyTablePlugins(_0x49f0aa){const _0x590b69=_0x2b1f,_0x465d4a=getCrudStyle()[_0x590b69(0xf0)],_0x327b21={'border':_0x465d4a['border'],'autoHeight':_0x465d4a[_0x590b69(0xd5)],'contextMenu':_0x465d4a[_0x590b69(0xf4)],..._0x49f0aa},_0x1ccf53=[..._0x465d4a[_0x590b69(0xfc)],..._0x49f0aa?.[_0x590b69(0xfc)]||[]],_0x50d242={..._0x327b21};delete _0x50d242[_0x590b69(0xfc)];for(const _0x4cddfd of _0x1ccf53){if(!_0x4cddfd||typeof _0x4cddfd!==_0x590b69(0x107))continue;_0x4cddfd[_0x590b69(0xc6)]==='toTree'&&(_0x50d242[_0x590b69(0xfd)]=!![],_0x50d242[_0x590b69(0xf3)]=Boolean(_0x4cddfd[_0x590b69(0xd8)]));}return _0x50d242;}function stripAlias(_0x5887e9){const _0x305a56=_0x2b1f;return _0x5887e9['includes']('.')?_0x5887e9[_0x305a56(0xe1)]('.')[_0x305a56(0xc0)]():_0x5887e9;}function toSource(_0x81c232){const _0x2e1367=_0x2b1f,_0x1ec79c=_0x81c232['trim']()[_0x2e1367(0xfb)](/\s+as\s+[a-zA-Z_]\w*$/i,'')[_0x2e1367(0x101)]();return _0x1ec79c[_0x2e1367(0xdb)]('.')?_0x1ec79c:'a.'+_0x1ec79c;}function _0x2b1f(_0x1dd8b7,_0x54cd12){_0x1dd8b7=_0x1dd8b7-0xbf;const _0x24ddee=_0x24dd();let _0x2b1fc0=_0x24ddee[_0x1dd8b7];if(_0x2b1f['YtFrki']===undefined){var _0xdedee9=function(_0x31d35d){const _0x2c0992='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2f9232='',_0x31a9ca='';for(let _0x5d0841=0x0,_0x49f0aa,_0x465d4a,_0x327b21=0x0;_0x465d4a=_0x31d35d['charAt'](_0x327b21++);~_0x465d4a&&(_0x49f0aa=_0x5d0841%0x4?_0x49f0aa*0x40+_0x465d4a:_0x465d4a,_0x5d0841++%0x4)?_0x2f9232+=String['fromCharCode'](0xff&_0x49f0aa>>(-0x2*_0x5d0841&0x6)):0x0){_0x465d4a=_0x2c0992['indexOf'](_0x465d4a);}for(let _0x1ccf53=0x0,_0x50d242=_0x2f9232['length'];_0x1ccf53<_0x50d242;_0x1ccf53++){_0x31a9ca+='%'+('00'+_0x2f9232['charCodeAt'](_0x1ccf53)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x31a9ca);};_0x2b1f['hcgkIa']=_0xdedee9,_0x2b1f['cOBFEl']={},_0x2b1f['YtFrki']=!![];}const _0x18b18c=_0x24ddee[0x0],_0xb7aaa1=_0x1dd8b7+_0x18b18c,_0x2d2fae=_0x2b1f['cOBFEl'][_0xb7aaa1];return!_0x2d2fae?(_0x2b1fc0=_0x2b1f['hcgkIa'](_0x2b1fc0),_0x2b1f['cOBFEl'][_0xb7aaa1]=_0x2b1fc0):_0x2b1fc0=_0x2d2fae,_0x2b1fc0;}function parseRef(_0x2b697c){const _0x25eea8=_0x2b1f,_0x4367a8=/^(.+?)\s+as\s+([a-zA-Z_]\w*)$/i,_0x484d84=_0x39a1a7=>{const _0x30bd7d=_0x2b1f,_0x3682a2=_0x39a1a7[_0x30bd7d(0x101)](),_0x58abb0=_0x3682a2[_0x30bd7d(0xcd)](_0x4367a8);if(_0x58abb0)return{'expr':_0x58abb0[0x1][_0x30bd7d(0x101)](),'asName':_0x58abb0[0x2]};return{'expr':_0x3682a2,'asName':undefined};};if(typeof _0x2b697c===_0x25eea8(0xf2)){const {expr:_0x561315,asName:_0x11e443}=_0x484d84(_0x2b697c),_0x199808=toSource(_0x561315),_0x5e2a90=stripAlias(_0x199808);return{'column':_0x5e2a90,'source':_0x199808,'param':_0x11e443??_0x5e2a90,'multiple':!![],'none':![]};}if(!_0x2b697c||typeof _0x2b697c!=='object')return null;const _0x3e89a5=_0x2b697c;if(!_0x3e89a5[_0x25eea8(0xd0)])return null;const {expr:_0x363afc,asName:_0x2d24db}=_0x484d84(_0x3e89a5['column']),_0x3675c5=toSource(_0x363afc),_0x36ae59=stripAlias(_0x3675c5);return{'column':_0x36ae59,'source':_0x3675c5,'param':_0x2d24db??_0x36ae59,'label':_0x3e89a5[_0x25eea8(0xcb)],'dict':_0x3e89a5[_0x25eea8(0x106)],'multiple':_0x3e89a5[_0x25eea8(0xd2)]!==![],'none':Boolean(_0x3e89a5[_0x25eea8(0xe2)])};}function displayName(_0x268145,_0x4b8a90){const _0x57cac5=_0x2b1f;return _0x268145[_0x57cac5(0xcb)]||_0x4b8a90?.[_0x57cac5(0xd4)]||_0x268145['column'];}function fieldKeyOf(_0x828008,_0x7f0fbc){const _0x478a75=_0x2b1f,_0x517df0=_0x7f0fbc?.[_0x478a75(0xf0)]?.[_0x478a75(0x101)](),_0x226e94=(_0x7f0fbc?.[_0x478a75(0xc2)]||_0x828008[_0x478a75(0xd0)]||'')[_0x478a75(0x101)]();if(!_0x517df0||!_0x226e94)return;return _0x517df0+'.'+_0x226e94;}export function buildAutoSearchItems(_0x21e315,_0x29f28b={}){const _0xe28a3f=_0x2b1f,_0x334614=new Set(_0x29f28b[_0xe28a3f(0xf9)]||[]),_0x19f36d=_0x21e315['search']||{};let _0x1fc502=_0x19f36d[_0xe28a3f(0xde)]||[],_0x44bdd9=_0x19f36d[_0xe28a3f(0xc5)]||[],_0x368cce=_0x19f36d[_0xe28a3f(0x108)]||[],_0x213be2=_0x19f36d[_0xe28a3f(0xc1)]||[],_0x3c0d11=_0x19f36d['keyWordLikeFields']||[],_0x1b813c=[];const _0x193338=!_0x1fc502[_0xe28a3f(0xee)]&&!_0x44bdd9[_0xe28a3f(0xee)]&&!_0x368cce[_0xe28a3f(0xee)]&&!_0x213be2[_0xe28a3f(0xee)]&&!_0x3c0d11[_0xe28a3f(0xee)],_0x4fd183=_0x21e315[_0xe28a3f(0xd7)]?findEpsEntity('/'+_0x21e315[_0xe28a3f(0xd7)]):undefined;if(_0x4fd183){_0x1b813c=[..._0x4fd183[_0xe28a3f(0xc4)]||[],..._0x4fd183[_0xe28a3f(0x100)]||[]];if(!_0x21e315[_0xe28a3f(0xdd)]||_0x193338){const _0x525a84=_0x4fd183[_0xe28a3f(0xd9)];_0x525a84&&(_0x1fc502=_0x525a84[_0xe28a3f(0xde)]||[],_0x44bdd9=_0x525a84['fieldLike']||[],_0x368cce=_0x525a84[_0xe28a3f(0x108)]||[],_0x213be2=_0x525a84[_0xe28a3f(0xc1)]||[],_0x3c0d11=_0x525a84[_0xe28a3f(0xe8)]||[]);}}const _0x5a9ff9=(_0x2438c0,_0x421907)=>{const _0x29a77e=_0xe28a3f,_0x512c25=_0x2438c0[_0x29a77e(0xdb)]('.')?_0x2438c0:'a.'+_0x2438c0,_0x2b2f33=_0x421907??stripAlias(_0x512c25);return _0x1b813c[_0x29a77e(0xc7)](_0x2ea65e=>_0x2ea65e['source']===_0x512c25)||_0x1b813c[_0x29a77e(0xc7)](_0x6a3fd2=>_0x6a3fd2[_0x29a77e(0xc2)]===_0x2b2f33&&(!_0x6a3fd2[_0x29a77e(0xe3)]||_0x6a3fd2[_0x29a77e(0xe3)][_0x29a77e(0xcc)]('a.')))||_0x1b813c[_0x29a77e(0xc7)](_0x2d42b3=>_0x2d42b3[_0x29a77e(0xc2)]===_0x2b2f33);},_0x4cbabd=[],_0x4c8e00=new Set(),_0x4e46f6=_0x2f74de=>{const _0xb6f6ab=_0xe28a3f;if(!_0x2f74de[_0xb6f6ab(0xec)]||_0x4c8e00[_0xb6f6ab(0xeb)](_0x2f74de[_0xb6f6ab(0xec)]))return;_0x4c8e00[_0xb6f6ab(0xf7)](_0x2f74de[_0xb6f6ab(0xec)]),_0x4cbabd[_0xb6f6ab(0xda)](_0x2f74de);};for(const _0x530110 of _0x44bdd9){const _0x92ec4f=parseRef(_0x530110);if(!_0x92ec4f||_0x92ec4f[_0xe28a3f(0xe2)]||_0x334614[_0xe28a3f(0xeb)](_0x92ec4f[_0xe28a3f(0xe4)]))continue;const _0x216901=_0x5a9ff9(_0x92ec4f[_0xe28a3f(0xe3)],_0x92ec4f[_0xe28a3f(0xd0)]),_0x1043c2=displayName(_0x92ec4f,_0x216901),_0x5927b9=fieldKeyOf(_0x92ec4f,_0x216901);_0x4e46f6({'prop':_0x92ec4f[_0xe28a3f(0xe4)],'label':_0x29f28b[_0xe28a3f(0xdf)]?'':_0x1043c2,'nameFallback':_0x1043c2,'fieldKey':_0x5927b9,'phMode':_0xe28a3f(0xdd),'placeholder':'搜索'+_0x1043c2,'type':_0xe28a3f(0x102)});}for(const _0x1a4562 of _0x368cce){const _0x326129=parseRef(_0x1a4562);if(!_0x326129||_0x326129[_0xe28a3f(0xe2)]||_0x334614['has'](_0x326129[_0xe28a3f(0xe4)]))continue;const _0x159baa=_0x5a9ff9(_0x326129['source'],_0x326129[_0xe28a3f(0xd0)]),_0x4e9be3=displayName(_0x326129,_0x159baa),_0x399eb3=fieldKeyOf(_0x326129,_0x159baa);_0x4e46f6({'prop':_0x326129[_0xe28a3f(0xe4)],'label':_0x29f28b[_0xe28a3f(0xdf)]?'':_0x4e9be3,'nameFallback':_0x4e9be3,'fieldKey':_0x399eb3,'phMode':'search','placeholder':'搜索'+_0x4e9be3,'type':'input'});}for(const _0x361d46 of _0x1fc502){const _0x1366a5=parseRef(_0x361d46);if(!_0x1366a5||_0x1366a5[_0xe28a3f(0xe2)]||_0x334614[_0xe28a3f(0xeb)](_0x1366a5[_0xe28a3f(0xe4)]))continue;const _0x558d4c=_0x5a9ff9(_0x1366a5[_0xe28a3f(0xe3)],_0x1366a5[_0xe28a3f(0xd0)]),_0x32bd70=_0x1366a5[_0xe28a3f(0x106)]||(typeof _0x558d4c?.[_0xe28a3f(0x106)]===_0xe28a3f(0xf2)?_0x558d4c[_0xe28a3f(0x106)]:Array[_0xe28a3f(0xe0)](_0x558d4c?.[_0xe28a3f(0x106)])?_0x558d4c['dict'][0x0]:undefined),_0x169497=displayName(_0x1366a5,_0x558d4c),_0x541cf0=fieldKeyOf(_0x1366a5,_0x558d4c),_0x56b9cb=_0x29f28b['hideLabel']?'':_0x169497;_0x32bd70?_0x4e46f6({'prop':_0x1366a5['param'],'label':_0x56b9cb,'nameFallback':_0x169497,'fieldKey':_0x541cf0,'phMode':_0xe28a3f(0x105),'placeholder':'选择'+_0x169497,'type':_0xe28a3f(0x105),'dict':_0x32bd70,'multiple':_0x1366a5['multiple']}):_0x4e46f6({'prop':_0x1366a5[_0xe28a3f(0xe4)],'label':_0x56b9cb,'nameFallback':_0x169497,'fieldKey':_0x541cf0,'phMode':_0xe28a3f(0xdd),'placeholder':'搜索'+_0x169497,'type':_0xe28a3f(0x102)});}for(const _0x23a1a4 of _0x213be2){if(!_0x23a1a4?.[_0xe28a3f(0xd0)]||_0x23a1a4[_0xe28a3f(0xe2)])continue;if(_0x334614[_0xe28a3f(0xeb)](_0x23a1a4[_0xe28a3f(0xc9)])||_0x334614[_0xe28a3f(0xeb)](_0x23a1a4[_0xe28a3f(0xd1)]))continue;const _0x340d42=toSource(_0x23a1a4['column']),_0x538c57=stripAlias(_0x23a1a4['column']),_0x1de553=_0x5a9ff9(_0x340d42,_0x538c57),_0x18b7ef=_0x23a1a4[_0xe28a3f(0xcb)]||_0x1de553?.['comment']||_0x538c57,_0x9d1b79=fieldKeyOf({'column':_0x538c57},_0x1de553),_0x46c476=_0x29f28b['hideLabel']?'':_0x18b7ef,_0x532d02=_0x23a1a4[_0xe28a3f(0xf8)]===_0xe28a3f(0xbf)||_0x23a1a4['type']===_0xe28a3f(0xc3),_0x510cf1=_0x532d02?'最小值':'开始',_0x5aa7b7=_0x532d02?_0xe28a3f(0xd6):'结束';_0x4e46f6({'prop':_0xe28a3f(0xf1)+_0x23a1a4[_0xe28a3f(0xc9)]+'_'+_0x23a1a4[_0xe28a3f(0xd1)],'label':_0x46c476,'nameFallback':_0x18b7ef,'fieldKey':_0x9d1b79,'phMode':_0xe28a3f(0x109),'placeholder':_0x18b7ef||'区间','type':_0x532d02?_0xe28a3f(0xe7):_0xe28a3f(0xe5),'range':{'min':_0x23a1a4[_0xe28a3f(0xc9)],'max':_0x23a1a4['max'],'rangeType':_0x23a1a4[_0xe28a3f(0xf8)]},'component':{'name':_0x532d02?_0xe28a3f(0xff):'vm-date-range','props':_0x532d02?{'mode':_0x23a1a4['type'],'startPlaceholder':''+_0x18b7ef+_0x510cf1,'endPlaceholder':''+_0x18b7ef+_0x5aa7b7}:{'precision':_0x23a1a4['type'],'startPlaceholder':''+_0x18b7ef+_0x510cf1,'endPlaceholder':''+_0x18b7ef+_0x5aa7b7}}});}if(_0x3c0d11['length']){const _0x26ccbd=[],_0x1f3d72=_0x3c0d11['map'](_0x515c3b=>{const _0x59a5ff=_0xe28a3f,_0x4218f5=parseRef(_0x515c3b);if(!_0x4218f5)return typeof _0x515c3b===_0x59a5ff(0xf2)?stripAlias(_0x515c3b):'';const _0x2427d3=_0x5a9ff9(_0x4218f5['source'],_0x4218f5[_0x59a5ff(0xd0)]),_0x427dc5=fieldKeyOf(_0x4218f5,_0x2427d3);if(_0x427dc5)_0x26ccbd[_0x59a5ff(0xda)](_0x427dc5);return displayName(_0x4218f5,_0x2427d3);})[_0xe28a3f(0xdc)](Boolean);_0x4e46f6({'prop':_0xe28a3f(0xfa),'label':_0x29f28b[_0xe28a3f(0xdf)]?'':'关键字','nameFallback':_0x1f3d72[_0xe28a3f(0xca)]('、')||'关键字','phMode':_0xe28a3f(0xef),'keywordParts':_0x26ccbd,'placeholder':'搜索'+(_0x1f3d72[_0xe28a3f(0xca)]('、')||_0xe28a3f(0xcf)),'type':_0xe28a3f(0x102)});}return _0x4cbabd;}
|
|
1
|
+
(function(_0x533f8d,_0x397a47){const _0xbb3dd1=_0x7778,_0x353b60=_0x533f8d();while(!![]){try{const _0x323761=-parseInt(_0xbb3dd1(0x18f))/0x1+-parseInt(_0xbb3dd1(0x19a))/0x2*(parseInt(_0xbb3dd1(0x18c))/0x3)+parseInt(_0xbb3dd1(0x15c))/0x4*(-parseInt(_0xbb3dd1(0x174))/0x5)+parseInt(_0xbb3dd1(0x17d))/0x6*(-parseInt(_0xbb3dd1(0x193))/0x7)+parseInt(_0xbb3dd1(0x1a2))/0x8*(-parseInt(_0xbb3dd1(0x1a4))/0x9)+-parseInt(_0xbb3dd1(0x192))/0xa*(parseInt(_0xbb3dd1(0x15e))/0xb)+parseInt(_0xbb3dd1(0x169))/0xc*(parseInt(_0xbb3dd1(0x166))/0xd);if(_0x323761===_0x397a47)break;else _0x353b60['push'](_0x353b60['shift']());}catch(_0x3fb509){_0x353b60['push'](_0x353b60['shift']());}}}(_0x5c75,0xb665f));function _0x5c75(){const _0x32c42c=['mZnlBKfcu1K','AgfZ','BwLU','zMLLBgrmAwTL','Bwf4','Aw50','CgfNzvf1zxj5t3a','C2vSzwn0','ntq0mtqWnJfwtLH4y0u','AgLKzuXHyMvS','5PYa5AsN5yc8','mtjKuMrcrfe','CgfYyw0','Dg9uCMvL','CgX1z2LUCW','C2vHCMnO','B2jQzwn0','y29UDgv4De1LBNu','DM0TBNvTyMvYlxjHBMDL','BgvUz3rO','zMLLBgrbCNjHEq','ChjVCgvYDhLoyw1L','mZiZoti5mgjJruDvAq','yxv0B0HLAwDODa','CgfNzunVBhvTBNm','AM9PBG','BNvTyMvYlxjHBMDL','C291CMnL','CMfUz2u','Bwf0y2G','C2v0uNvSzxm','ndm0ndyZnMLStejjAG','y29TBwvUDa','AxnbCNjHEq','Cg9W','DgfIBgu','y29SDw1UCW','ywrK','C3rYAw5N','C2v0qxv0BW','5PYa5Bcp5yc8','ChjVCa','DhjLzq','Bgf6Eq','AwDUB3jLrMLLBgrZ','Aw5JBhvKzxm','nZm0nJfgv05jDMu','C3rHCNrZv2L0Aa','zMLLBgrfCq','nJC4mtCXreXTBgXR','A2v5v29YzeXPA2vgAwvSzhm','DhjPBq','mJy4ntK1mhHNvwnHtW','n21nsLrmDq','x19Yyw5Nzv8','5ywZ6zsU5A2x','BxvSDgLWBgu','y29SDw1U','Aw5WDxq','ChvZAa','mZjOrLjSAfK','BgfIzwW','BM9Uzq','CMvWBgfJzq','A2v5D29Yza','A2v5v29Yza','zMXVyxq','zgLJDa','mtzZwxDVzfC','BMfTzxnWywnL','odu4oty5vuXftgzO','DhLWzq','C2v0rM9JDxm','zMLUza','ne9OD3bRuW','zMLLBgrsyw5Nzq'];_0x5c75=function(){return _0x32c42c;};return _0x5c75();}import{findEpsEntity}from'../lib/eps';function _0x7778(_0xf4caa3,_0x2bd7a4){_0xf4caa3=_0xf4caa3-0x15c;const _0x5c750d=_0x5c75();let _0x7778eb=_0x5c750d[_0xf4caa3];if(_0x7778['LwIUUm']===undefined){var _0x59f134=function(_0x2afd40){const _0x340e6c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3d6a2d='',_0x1f3e9a='';for(let _0x233b4a=0x0,_0x3e6166,_0x903f26,_0x35599e=0x0;_0x903f26=_0x2afd40['charAt'](_0x35599e++);~_0x903f26&&(_0x3e6166=_0x233b4a%0x4?_0x3e6166*0x40+_0x903f26:_0x903f26,_0x233b4a++%0x4)?_0x3d6a2d+=String['fromCharCode'](0xff&_0x3e6166>>(-0x2*_0x233b4a&0x6)):0x0){_0x903f26=_0x340e6c['indexOf'](_0x903f26);}for(let _0x2574f5=0x0,_0x2ddfb9=_0x3d6a2d['length'];_0x2574f5<_0x2ddfb9;_0x2574f5++){_0x1f3e9a+='%'+('00'+_0x3d6a2d['charCodeAt'](_0x2574f5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1f3e9a);};_0x7778['OaZMzR']=_0x59f134,_0x7778['ByCLSc']={},_0x7778['LwIUUm']=!![];}const _0x2c5799=_0x5c750d[0x0],_0x2c449e=_0xf4caa3+_0x2c5799,_0x373f2b=_0x7778['ByCLSc'][_0x2c449e];return!_0x373f2b?(_0x7778eb=_0x7778['OaZMzR'](_0x7778eb),_0x7778['ByCLSc'][_0x2c449e]=_0x7778eb):_0x7778eb=_0x373f2b,_0x7778eb;}import{getCrudStyle}from'./style';export function toTree(_0x3d6a2d={}){const _0x3cd4e2=_0x7778;return{'__plugin':_0x3cd4e2(0x16b),'tree':!![],'lazy':_0x3d6a2d[_0x3cd4e2(0x189)]??![]};}export function setFocus(_0x1f3e9a){const _0x55200c=_0x7778;return{'__plugin':_0x55200c(0x1a6),'prop':_0x1f3e9a??''};}export function setRules(){const _0x4bdc89=_0x7778;return{'__plugin':_0x4bdc89(0x17c)};}export function setAuto(_0x233b4a={'hideLabel':!![]}){const _0x12b460=_0x7778;return{'__plugin':_0x12b460(0x185),..._0x233b4a};}export const Plugins={'Table':{'toTree':toTree},'Form':{'setFocus':setFocus,'setRules':setRules},'Search':{'setAuto':setAuto}};export function applyTablePlugins(_0x3e6166){const _0x5d051c=_0x7778,_0x903f26=getCrudStyle()[_0x5d051c(0x181)],_0x35599e={'border':_0x903f26['border'],'autoHeight':_0x903f26[_0x5d051c(0x175)],'contextMenu':_0x903f26[_0x5d051c(0x16f)],..._0x3e6166},_0x2574f5=[..._0x903f26[_0x5d051c(0x16c)],..._0x3e6166?.[_0x5d051c(0x16c)]||[]],_0x2ddfb9={..._0x35599e};delete _0x2ddfb9[_0x5d051c(0x16c)];for(const _0x5375d6 of _0x2574f5){if(!_0x5375d6||typeof _0x5375d6!=='object')continue;_0x5375d6['__plugin']===_0x5d051c(0x16b)&&(_0x2ddfb9[_0x5d051c(0x188)]=!![],_0x2ddfb9['treeLazy']=Boolean(_0x5375d6[_0x5d051c(0x189)]));}return _0x2ddfb9;}function stripAlias(_0xbb0d63){const _0x4dac73=_0x7778;return _0xbb0d63[_0x4dac73(0x18b)]('.')?_0xbb0d63['split']('.')[_0x4dac73(0x180)]():_0xbb0d63;}function toSource(_0x557d98){const _0x177fe5=_0x7778,_0xb522c8=_0x557d98[_0x177fe5(0x191)]()[_0x177fe5(0x19d)](/\s+as\s+[a-zA-Z_]\w*$/i,'')[_0x177fe5(0x191)]();return _0xb522c8[_0x177fe5(0x18b)]('.')?_0xb522c8:'a.'+_0xb522c8;}function parseRef(_0x11fbc5){const _0xfa83e2=_0x7778,_0x13d669=/^(.+?)\s+as\s+([a-zA-Z_]\w*)$/i,_0x3d938a=_0x254985=>{const _0x5a042f=_0x7778,_0x539a55=_0x254985[_0x5a042f(0x191)](),_0x34e18e=_0x539a55[_0x5a042f(0x17b)](_0x13d669);if(_0x34e18e)return{'expr':_0x34e18e[0x1][_0x5a042f(0x191)](),'asName':_0x34e18e[0x2]};return{'expr':_0x539a55,'asName':undefined};};if(typeof _0x11fbc5==='string'){const {expr:_0x3b370d,asName:_0x3f22e4}=_0x3d938a(_0x11fbc5),_0x1b97f2=toSource(_0x3b370d),_0x20c91c=stripAlias(_0x1b97f2);return{'column':_0x20c91c,'source':_0x1b97f2,'param':_0x3f22e4??_0x20c91c,'multiple':!![],'none':![]};}if(!_0x11fbc5||typeof _0x11fbc5!==_0xfa83e2(0x16e))return null;const _0x3109bb=_0x11fbc5;if(!_0x3109bb['column'])return null;const {expr:_0x1d7e7b,asName:_0x31f9b2}=_0x3d938a(_0x3109bb[_0xfa83e2(0x197)]),_0x56877e=toSource(_0x1d7e7b),_0x4e922a=stripAlias(_0x56877e);return{'column':_0x4e922a,'source':_0x56877e,'param':_0x31f9b2??_0x4e922a,'label':_0x3109bb[_0xfa83e2(0x19b)],'dict':_0x3109bb[_0xfa83e2(0x1a1)],'multiple':_0x3109bb[_0xfa83e2(0x196)]!==![],'none':Boolean(_0x3109bb[_0xfa83e2(0x19c)])};}function displayName(_0xe2d60d,_0x54e23c){const _0x2ffc14=_0x7778;return _0xe2d60d[_0x2ffc14(0x19b)]||_0x54e23c?.[_0x2ffc14(0x17e)]||_0xe2d60d['column'];}function fieldKeyOf(_0x3e47f8,_0x4794f6){const _0x4f605b=_0x7778,_0x54c0cd=_0x4794f6?.['table']?.['trim'](),_0x32112b=(_0x4794f6?.[_0x4f605b(0x173)]||_0x3e47f8[_0x4f605b(0x197)]||'')[_0x4f605b(0x191)]();if(!_0x54c0cd||!_0x32112b)return;return _0x54c0cd+'.'+_0x32112b;}export function buildAutoSearchItems(_0x3905e4,_0x3d3444={}){const _0xf3a29b=_0x7778,_0x4b195c=new Set(_0x3d3444[_0xf3a29b(0x18a)]||[]),_0x71b84b=_0x3905e4[_0xf3a29b(0x16d)]||{};let _0x514a98=_0x71b84b[_0xf3a29b(0x18e)]||[],_0x127c4d=_0x71b84b['fieldLike']||[],_0x1cdfc5=_0x71b84b[_0xf3a29b(0x172)]||[],_0x51c715=_0x71b84b[_0xf3a29b(0x15d)]||[],_0x11006e=_0x71b84b[_0xf3a29b(0x190)]||[],_0x2ca948=[];const _0x5fe4fd=!_0x514a98[_0xf3a29b(0x171)]&&!_0x127c4d[_0xf3a29b(0x171)]&&!_0x1cdfc5[_0xf3a29b(0x171)]&&!_0x51c715[_0xf3a29b(0x171)]&&!_0x11006e['length'],_0x264b01=_0x3905e4[_0xf3a29b(0x1a3)]?findEpsEntity('/'+_0x3905e4[_0xf3a29b(0x1a3)]):undefined;if(_0x264b01){_0x2ca948=[..._0x264b01[_0xf3a29b(0x182)]||[],..._0x264b01[_0xf3a29b(0x176)]||[]];if(!_0x3905e4[_0xf3a29b(0x16d)]||_0x5fe4fd){const _0x1310f6=_0x264b01[_0xf3a29b(0x164)];_0x1310f6&&(_0x514a98=_0x1310f6[_0xf3a29b(0x18e)]||[],_0x127c4d=_0x1310f6[_0xf3a29b(0x161)]||[],_0x1cdfc5=_0x1310f6[_0xf3a29b(0x172)]||[],_0x51c715=_0x1310f6['fieldRange']||[],_0x11006e=_0x1310f6[_0xf3a29b(0x190)]||[]);}}const _0x3abf4b=(_0x149588,_0x3e30ae)=>{const _0x172533=_0xf3a29b,_0x78627=_0x149588[_0x172533(0x18b)]('.')?_0x149588:'a.'+_0x149588,_0x541239=_0x3e30ae??stripAlias(_0x78627);return _0x2ca948[_0x172533(0x1a7)](_0x4e7ae1=>_0x4e7ae1[_0x172533(0x179)]===_0x78627)||_0x2ca948[_0x172533(0x1a7)](_0x1a2b98=>_0x1a2b98[_0x172533(0x173)]===_0x541239&&(!_0x1a2b98[_0x172533(0x179)]||_0x1a2b98[_0x172533(0x179)][_0x172533(0x18d)]('a.')))||_0x2ca948['find'](_0x4ed30f=>_0x4ed30f['propertyName']===_0x541239);},_0xd95472=[],_0x38a537=new Set(),_0x39927c=_0x2b5002=>{const _0x7c8855=_0xf3a29b;if(!_0x2b5002['prop']||_0x38a537[_0x7c8855(0x15f)](_0x2b5002['prop']))return;_0x38a537[_0x7c8855(0x183)](_0x2b5002[_0x7c8855(0x187)]),_0xd95472[_0x7c8855(0x199)](_0x2b5002);};for(const _0x327766 of _0x127c4d){const _0x1bda41=parseRef(_0x327766);if(!_0x1bda41||_0x1bda41['none']||_0x4b195c[_0xf3a29b(0x15f)](_0x1bda41['param']))continue;const _0x226725=_0x3abf4b(_0x1bda41['source'],_0x1bda41[_0xf3a29b(0x197)]),_0x1be1ea=displayName(_0x1bda41,_0x226725),_0x46119b=fieldKeyOf(_0x1bda41,_0x226725);_0x39927c({'prop':_0x1bda41[_0xf3a29b(0x16a)],'label':_0x3d3444[_0xf3a29b(0x167)]?'':_0x1be1ea,'nameFallback':_0x1be1ea,'fieldKey':_0x46119b,'phMode':'search','placeholder':'搜索'+_0x1be1ea,'type':_0xf3a29b(0x198)});}for(const _0x578495 of _0x1cdfc5){const _0x199909=parseRef(_0x578495);if(!_0x199909||_0x199909[_0xf3a29b(0x19c)]||_0x4b195c['has'](_0x199909[_0xf3a29b(0x16a)]))continue;const _0x45619e=_0x3abf4b(_0x199909[_0xf3a29b(0x179)],_0x199909[_0xf3a29b(0x197)]),_0x13dfcd=displayName(_0x199909,_0x45619e),_0x492900=fieldKeyOf(_0x199909,_0x45619e);_0x39927c({'prop':_0x199909[_0xf3a29b(0x16a)],'label':_0x3d3444['hideLabel']?'':_0x13dfcd,'nameFallback':_0x13dfcd,'fieldKey':_0x492900,'phMode':_0xf3a29b(0x16d),'placeholder':'搜索'+_0x13dfcd,'type':_0xf3a29b(0x198)});}for(const _0x29db9b of _0x514a98){const _0x25df2e=parseRef(_0x29db9b);if(!_0x25df2e||_0x25df2e[_0xf3a29b(0x19c)]||_0x4b195c['has'](_0x25df2e[_0xf3a29b(0x16a)]))continue;const _0x3240be=_0x3abf4b(_0x25df2e[_0xf3a29b(0x179)],_0x25df2e[_0xf3a29b(0x197)]),_0xb56704=_0x25df2e['dict']||(typeof _0x3240be?.[_0xf3a29b(0x1a1)]===_0xf3a29b(0x184)?_0x3240be['dict']:Array[_0xf3a29b(0x17f)](_0x3240be?.[_0xf3a29b(0x1a1)])?_0x3240be['dict'][0x0]:undefined),_0x11cb79=displayName(_0x25df2e,_0x3240be),_0x59db24=fieldKeyOf(_0x25df2e,_0x3240be),_0x5ed3df=_0x3d3444[_0xf3a29b(0x167)]?'':_0x11cb79;_0xb56704?_0x39927c({'prop':_0x25df2e['param'],'label':_0x5ed3df,'nameFallback':_0x11cb79,'fieldKey':_0x59db24,'phMode':_0xf3a29b(0x165),'placeholder':'选择'+_0x11cb79,'type':_0xf3a29b(0x165),'dict':_0xb56704,'multiple':_0x25df2e[_0xf3a29b(0x196)]}):_0x39927c({'prop':_0x25df2e['param'],'label':_0x5ed3df,'nameFallback':_0x11cb79,'fieldKey':_0x59db24,'phMode':'search','placeholder':'搜索'+_0x11cb79,'type':_0xf3a29b(0x198)});}for(const _0x6c075b of _0x51c715){if(!_0x6c075b?.['column']||_0x6c075b[_0xf3a29b(0x19c)])continue;if(_0x4b195c['has'](_0x6c075b[_0xf3a29b(0x160)])||_0x4b195c[_0xf3a29b(0x15f)](_0x6c075b[_0xf3a29b(0x162)]))continue;const _0x84c630=toSource(_0x6c075b[_0xf3a29b(0x197)]),_0x5962c2=stripAlias(_0x6c075b[_0xf3a29b(0x197)]),_0x59813e=_0x3abf4b(_0x84c630,_0x5962c2),_0x37deea=_0x6c075b[_0xf3a29b(0x19b)]||_0x59813e?.[_0xf3a29b(0x17e)]||_0x5962c2,_0x338a30=fieldKeyOf({'column':_0x5962c2},_0x59813e),_0x1c4de3=_0x3d3444[_0xf3a29b(0x167)]?'':_0x37deea,_0x4f50be=_0x6c075b[_0xf3a29b(0x1a5)]===_0xf3a29b(0x163)||_0x6c075b[_0xf3a29b(0x1a5)]===_0xf3a29b(0x1a0),_0x21547f=_0x4f50be?_0xf3a29b(0x186):'开始',_0x150e69=_0x4f50be?_0xf3a29b(0x168):'结束';_0x39927c({'prop':_0xf3a29b(0x194)+_0x6c075b[_0xf3a29b(0x160)]+'_'+_0x6c075b[_0xf3a29b(0x162)],'label':_0x1c4de3,'nameFallback':_0x37deea,'fieldKey':_0x338a30,'phMode':_0xf3a29b(0x17a),'placeholder':_0x37deea||'区间','type':_0x4f50be?_0xf3a29b(0x178):'daterange','range':{'min':_0x6c075b[_0xf3a29b(0x160)],'max':_0x6c075b[_0xf3a29b(0x162)],'rangeType':_0x6c075b[_0xf3a29b(0x1a5)]},'component':{'name':_0x4f50be?_0xf3a29b(0x170):'vm-date-range','props':_0x4f50be?{'mode':_0x6c075b['type'],'startPlaceholder':''+_0x37deea+_0x21547f,'endPlaceholder':''+_0x37deea+_0x150e69}:{'precision':_0x6c075b[_0xf3a29b(0x1a5)],'startPlaceholder':''+_0x37deea+_0x21547f,'endPlaceholder':''+_0x37deea+_0x150e69}}});}if(_0x11006e['length']){const _0x6d7001=[],_0x1ee665=_0x11006e['map'](_0x118cfb=>{const _0x50ac52=_0xf3a29b,_0x4de8d5=parseRef(_0x118cfb);if(!_0x4de8d5)return typeof _0x118cfb===_0x50ac52(0x184)?stripAlias(_0x118cfb):'';const _0x15c062=_0x3abf4b(_0x4de8d5[_0x50ac52(0x179)],_0x4de8d5['column']),_0x3c171c=fieldKeyOf(_0x4de8d5,_0x15c062);if(_0x3c171c)_0x6d7001['push'](_0x3c171c);return displayName(_0x4de8d5,_0x15c062);})['filter'](Boolean);_0x39927c({'prop':_0xf3a29b(0x19f),'label':_0x3d3444[_0xf3a29b(0x167)]?'':_0xf3a29b(0x195),'nameFallback':_0x1ee665[_0xf3a29b(0x177)]('、')||_0xf3a29b(0x195),'phMode':_0xf3a29b(0x19e),'keywordParts':_0x6d7001,'placeholder':'搜索'+(_0x1ee665[_0xf3a29b(0x177)]('、')||_0xf3a29b(0x195)),'type':_0xf3a29b(0x198)});}return _0xd95472;}
|
package/dist/admin/crud/span.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x21c3a3,_0x34117c){const _0x39bffa=_0xeff3,_0x342c8a=_0x21c3a3();while(!![]){try{const _0x4643e9=parseInt(_0x39bffa(0xfd))/0x1+parseInt(_0x39bffa(0x106))/0x2*(-parseInt(_0x39bffa(0xf6))/0x3)+parseInt(_0x39bffa(0x105))/0x4*(-parseInt(_0x39bffa(0xf7))/0x5)+-parseInt(_0x39bffa(0xfa))/0x6+parseInt(_0x39bffa(0xf4))/0x7*(parseInt(_0x39bffa(0x100))/0x8)+parseInt(_0x39bffa(0xf5))/0x9*(parseInt(_0x39bffa(0x101))/0xa)+parseInt(_0x39bffa(0xff))/0xb*(parseInt(_0x39bffa(0xfc))/0xc);if(_0x4643e9===_0x34117c)break;else _0x342c8a['push'](_0x342c8a['shift']());}catch(_0x2d8084){_0x342c8a['push'](_0x342c8a['shift']());}}}(_0x1340,0x8cd52));import{onMounted,onUnmounted,ref}from'vue';import{getCrudStyle}from'./style';export const FORM_COLS_DESKTOP=0x18;function _0x1340(){const _0x33b045=['Bwf4','ntq5nJq4nLjLA1nIDG','DMfSDwu','ndHAzg5xDKC','odeXmtGZDvbuDxnn','BwLU','mJy4nZC4ngjds3DpCa','mte0ndbcuhLxA2i','otKXmfDuA1LPyG','C3bHBG','Bwf0y2HLCW','CM91BMq','mZq5ode0og9OCu91sW','mJj3u0vLsM8','Bwf0y2HnzwrPyq','zM9YBq','CMvTB3zLrxzLBNrmAxn0zw5LCG','ywrKrxzLBNrmAxn0zw5LCG','mtqWmerZvxjfDG','ndC2muLbwMPxuW','nJmWotbjyxz3rfq','nxnftg1LzG','y2HHBMDL'];_0x1340=function(){return _0x33b045;};return _0x1340();}export const FORM_COLS_MOBILE=0xc;export const FORM_SPAN_FULL=0x18;export const FORM_MQ_MOBILE='(max-width:\x20768px)';export function getFormCols(){const _0x617f8a=_0xeff3;if(typeof window!=='undefined'&&window[_0x617f8a(0x107)](FORM_MQ_MOBILE)[_0x617f8a(0x103)])return FORM_COLS_MOBILE;return FORM_COLS_DESKTOP;}function _0xeff3(_0x57383b,_0x30168d){_0x57383b=_0x57383b-0xf4;const _0x134079=_0x1340();let _0xeff305=_0x134079[_0x57383b];if(_0xeff3['YIahnH']===undefined){var _0xb90bf6=function(_0x255e7f){const _0x35106d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5aeb9b='',_0x3bcb62='';for(let _0x25ebcb=0x0,_0x3b056d,_0x2bea7c,_0x44cb50=0x0;_0x2bea7c=_0x255e7f['charAt'](_0x44cb50++);~_0x2bea7c&&(_0x3b056d=_0x25ebcb%0x4?_0x3b056d*0x40+_0x2bea7c:_0x2bea7c,_0x25ebcb++%0x4)?_0x5aeb9b+=String['fromCharCode'](0xff&_0x3b056d>>(-0x2*_0x25ebcb&0x6)):0x0){_0x2bea7c=_0x35106d['indexOf'](_0x2bea7c);}for(let _0x3beaab=0x0,_0x328885=_0x5aeb9b['length'];_0x3beaab<_0x328885;_0x3beaab++){_0x3bcb62+='%'+('00'+_0x5aeb9b['charCodeAt'](_0x3beaab)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3bcb62);};_0xeff3['tsbxRN']=_0xb90bf6,_0xeff3['nYnOAR']={},_0xeff3['YIahnH']=!![];}const _0x443f6f=_0x134079[0x0],_0x51e833=_0x57383b+_0x443f6f,_0x1eb914=_0xeff3['nYnOAR'][_0x51e833];return!_0x1eb914?(_0xeff305=_0xeff3['tsbxRN'](_0xeff305),_0xeff3['nYnOAR'][_0x51e833]=_0xeff305):_0xeff305=_0x1eb914,_0xeff305;}export function resolveFormSpan(_0x5aeb9b,_0x3bcb62=getFormCols()){const _0x274940=_0xeff3,_0x25ebcb=_0x5aeb9b??getCrudStyle()[_0x274940(0x108)][_0x274940(0x102)]??FORM_SPAN_FULL,_0x3b056d=Math[_0x274940(0xfe)](FORM_SPAN_FULL,Math[_0x274940(0xf9)](0x1,_0x25ebcb));if(_0x3bcb62===FORM_COLS_DESKTOP)return _0x3b056d;return Math[_0x274940(0xf9)](0x1,Math[_0x274940(0x104)](_0x3b056d/FORM_COLS_DESKTOP*FORM_COLS_MOBILE));}export function useFormCols(){const _0x2bea7c=ref(getFormCols());let _0x44cb50=null;const _0x3beaab=()=>{const _0x9cbf57=_0xeff3;_0x2bea7c[_0x9cbf57(0xfb)]=getFormCols();};return onMounted(()=>{const _0x54ec16=_0xeff3;_0x44cb50=window[_0x54ec16(0x107)](FORM_MQ_MOBILE),_0x44cb50[_0x54ec16(0x10a)](_0x54ec16(0xf8),_0x3beaab),_0x3beaab();}),onUnmounted(()=>{const _0x4ff4cc=_0xeff3;_0x44cb50?.[_0x4ff4cc(0x109)](_0x4ff4cc(0xf8),_0x3beaab);}),_0x2bea7c;}
|