@wp1001/ui 2.9.13 → 3.0.0

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.
Files changed (105) hide show
  1. package/@vant-D4fmGxs6.js +1 -3891
  2. package/index.html +28 -0
  3. package/index.js +1 -8419
  4. package/lib/tinymce/zh_CN.js +1 -0
  5. package/package.json +1 -1
  6. package/packages/assets/devtools-detector.js +1 -2
  7. package/packages/components/xarray/index.js +1 -64
  8. package/packages/components/xautorows/index.js +1 -35
  9. package/packages/components/xbutton/mobile.js +1 -3
  10. package/packages/components/xbutton/pc.js +1 -3
  11. package/packages/components/xbuttons/mobile.js +1 -51
  12. package/packages/components/xbuttons/pc.js +1 -51
  13. package/packages/components/xchart/constants.js +1 -58
  14. package/packages/components/xchart/index.js +1 -263
  15. package/packages/components/xchart/utils.js +1 -121
  16. package/packages/components/xcheckboxs/mobile.js +1 -58
  17. package/packages/components/xcheckboxs/pc.js +1 -49
  18. package/packages/components/xcol/mobile.js +1 -10
  19. package/packages/components/xcol/pc.js +1 -10
  20. package/packages/components/xdatepicker/mobile.js +1 -71
  21. package/packages/components/xdatepicker/pc.js +1 -9
  22. package/packages/components/xdialog/mobile.js +1 -60
  23. package/packages/components/xdialog/pc.js +1 -64
  24. package/packages/components/xdict/index.js +1 -47
  25. package/packages/components/xdistrictselect/mobile.js +1 -79
  26. package/packages/components/xdistrictselect/pc.js +1 -127
  27. package/packages/components/xform/mobile.js +1 -29
  28. package/packages/components/xform/pc.js +1 -42
  29. package/packages/components/xform/utils.js +1 -95
  30. package/packages/components/xformitem/mobile.js +1 -56
  31. package/packages/components/xformitem/pc.js +1 -72
  32. package/packages/components/xicon/mobile.js +1 -35
  33. package/packages/components/xicon/pc.js +1 -35
  34. package/packages/components/xinfo/index.js +1 -100
  35. package/packages/components/xlooper/index.js +1 -7
  36. package/packages/components/xpagination/mobile.js +1 -21
  37. package/packages/components/xpagination/pc.js +1 -21
  38. package/packages/components/xpicker/index.js +1 -38
  39. package/packages/components/xradios/mobile.js +1 -40
  40. package/packages/components/xradios/pc.js +1 -53
  41. package/packages/components/xrow/mobile.js +1 -9
  42. package/packages/components/xrow/pc.js +1 -9
  43. package/packages/components/xscan/mobile.js +1 -24
  44. package/packages/components/xscan/pc.js +1 -20
  45. package/packages/components/xsearcher/index.js +1 -198
  46. package/packages/components/xselect/mobile.js +1 -86
  47. package/packages/components/xselect/pc.js +1 -114
  48. package/packages/components/xselect/util.js +1 -66
  49. package/packages/components/xselectv2/index.js +1 -91
  50. package/packages/components/xtable/mobile.js +1 -108
  51. package/packages/components/xtable/pc.js +1 -143
  52. package/packages/components/xtable/searcher.js +1 -477
  53. package/packages/components/xtable/settings.js +1 -80
  54. package/packages/components/xtable/utils.js +1 -692
  55. package/packages/components/xtabletools/mobile.js +1 -25
  56. package/packages/components/xtabletools/pc.js +1 -18
  57. package/packages/components/xtablev2/index.js +1 -53
  58. package/packages/components/xtags/mobile.js +1 -17
  59. package/packages/components/xtags/pc.js +1 -17
  60. package/packages/components/xtinymce/index.js +1 -71
  61. package/packages/components/xuploader/xfileuploader.js +1 -48
  62. package/packages/components/xuploader/ximageuploader.js +1 -53
  63. package/packages/comps.js +1 -108
  64. package/packages/controllers/BaseController.js +1 -125
  65. package/packages/controllers/CrudController.js +1 -907
  66. package/packages/controllers/TempCrudController.js +1 -32
  67. package/packages/controllers/index.js +1 -15
  68. package/packages/directives/el-table-infinite-scroll.js +1 -55
  69. package/packages/directives/index.js +1 -5
  70. package/packages/index.js +1 -81
  71. package/packages/layout/breadcrumb/index.js +1 -41
  72. package/packages/layout/header/inner.js +1 -11
  73. package/packages/layout/screenlock/index.js +1 -129
  74. package/packages/layout/sidebar/item.js +1 -16
  75. package/packages/layout/sidebar/menu.js +1 -72
  76. package/packages/layout/tagsview/ScrollPane.js +1 -65
  77. package/packages/layout/tagsview/index.js +1 -169
  78. package/packages/plop/actions/make-fill-admin-partials-action.js +1 -95
  79. package/packages/plop/generators/make-admin-page.js +1 -39
  80. package/packages/plop/generators/make-database-admin-pages.js +1 -84
  81. package/packages/plop/generators/make-page-generator.js +1 -52
  82. package/packages/plop/generators/make-simple-page.js +1 -20
  83. package/packages/plop/plopfile.js +1 -24
  84. package/packages/plop/utils/index.js +1 -168
  85. package/packages/plop/utils/plop-utils.js +1 -86
  86. package/packages/utils/crypt.js +1 -24
  87. package/packages/utils/decorators.js +1 -67
  88. package/packages/utils/disallowDevtools.js +1 -53
  89. package/packages/utils/effects.js +1 -173
  90. package/packages/utils/funcs.js +1 -78
  91. package/packages/utils/index.js +1 -95
  92. package/packages/utils/message.js +1 -110
  93. package/packages/utils/middlewares.js +1 -86
  94. package/packages/utils/model.js +1 -71
  95. package/packages/utils/modelUtils.js +1 -203
  96. package/packages/utils/request.js +1 -57
  97. package/packages/utils/site.js +1 -33
  98. package/packages/vite-plugins.js +1 -141
  99. package/src/App.vue +134 -0
  100. package/src/main.js +1 -0
  101. package/src/request.js +1 -0
  102. package/style.css +1 -0
  103. package/vite.config.js +1 -0
  104. package/vite.lib.config.js +1 -0
  105. package/.env +0 -6
@@ -1,25 +1 @@
1
- export default {
2
- name: 'MobileXTableTools',
3
- inheritAttrs: false,
4
- props: {
5
- searchBtn: Object,
6
- addBtn: Object,
7
- multiEditBtn: Object,
8
- multiDeleteBtn: Object,
9
- exportBtn: Object,
10
- importBtn: Object,
11
- domids: Object
12
- },
13
- data () {
14
- return {
15
- keywords: '',
16
- domidsCanAdd: true
17
- }
18
- },
19
- async mounted () {
20
- await this.$nextTick()
21
- if (!this.$refs.fbc.isConnected) {
22
- this.domidsCanAdd = false
23
- }
24
- }
25
- }
1
+ (function(_0x3a61ff,_0x3daaa4){var _0x25b241=a52_0x3519,_0x4cce06=_0x3a61ff();while(!![]){try{var _0x4c0a4f=parseInt(_0x25b241(0x182))/0x1*(-parseInt(_0x25b241(0x179))/0x2)+-parseInt(_0x25b241(0x17e))/0x3*(-parseInt(_0x25b241(0x17d))/0x4)+-parseInt(_0x25b241(0x175))/0x5*(-parseInt(_0x25b241(0x177))/0x6)+parseInt(_0x25b241(0x17c))/0x7*(parseInt(_0x25b241(0x185))/0x8)+parseInt(_0x25b241(0x17f))/0x9*(-parseInt(_0x25b241(0x181))/0xa)+-parseInt(_0x25b241(0x178))/0xb+parseInt(_0x25b241(0x184))/0xc*(parseInt(_0x25b241(0x17b))/0xd);if(_0x4c0a4f===_0x3daaa4)break;else _0x4cce06['push'](_0x4cce06['shift']());}catch(_0x559b12){_0x4cce06['push'](_0x4cce06['shift']());}}}(a52_0x2f17,0x21e53));export default{'name':'MobileXTableTools','inheritAttrs':![],'props':{'searchBtn':Object,'addBtn':Object,'multiEditBtn':Object,'multiDeleteBtn':Object,'exportBtn':Object,'importBtn':Object,'domids':Object},'data'(){return{'keywords':'','domidsCanAdd':!![]};},async 'mounted'(){var _0x4b78e2=a52_0x3519;await this[_0x4b78e2(0x180)](),!this['$refs'][_0x4b78e2(0x176)][_0x4b78e2(0x17a)]&&(this[_0x4b78e2(0x183)]=![]);}};function a52_0x3519(_0x4675d4,_0x1cb1cc){var _0x2f17f3=a52_0x2f17();return a52_0x3519=function(_0x3519bc,_0x45b0e1){_0x3519bc=_0x3519bc-0x175;var _0x613a78=_0x2f17f3[_0x3519bc];return _0x613a78;},a52_0x3519(_0x4675d4,_0x1cb1cc);}function a52_0x2f17(){var _0x3dcdf6=['581DcvhMl','437572NQudkw','3kfLvxa','1116054JfDYAQ','$nextTick','10KQDGJP','678EqHuok','domidsCanAdd','3275484RfOTKd','10808pHZUHm','16615zbPvWH','fbc','186iYBAqg','2763871QhpMzu','246aFKeXn','isConnected','13JCvCpo'];a52_0x2f17=function(){return _0x3dcdf6;};return a52_0x2f17();}
@@ -1,18 +1 @@
1
- export default {
2
- name: 'PcXTableTools',
3
- inheritAttrs: false,
4
- props: {
5
- searchBtn: Object,
6
- addBtn: Object,
7
- multiEditBtn: Object,
8
- multiDeleteBtn: Object,
9
- exportBtn: Object,
10
- importBtn: Object,
11
- domids: Object
12
- },
13
- data () {
14
- return {
15
- keywords: ''
16
- }
17
- }
18
- }
1
+ function a53_0x4af4(_0x32099f,_0x48de7b){var _0x5cfb28=a53_0x5cfb();return a53_0x4af4=function(_0x4af416,_0x10d318){_0x4af416=_0x4af416-0x143;var _0x568541=_0x5cfb28[_0x4af416];return _0x568541;},a53_0x4af4(_0x32099f,_0x48de7b);}function a53_0x5cfb(){var _0x2bb2d6=['2PAcWri','6FTGYdT','7PGpgxG','669618ZiOcpT','458580gwsifC','1656897ywjmGa','20ohPXsl','79109dJLBTi','45584ZXhqDf','1515560edpzjv','256340EDPIMF'];a53_0x5cfb=function(){return _0x2bb2d6;};return a53_0x5cfb();}(function(_0x5e39ab,_0x42d14f){var _0x461587=a53_0x4af4,_0x1d3719=_0x5e39ab();while(!![]){try{var _0x1e3896=parseInt(_0x461587(0x144))/0x1*(parseInt(_0x461587(0x148))/0x2)+parseInt(_0x461587(0x14c))/0x3+parseInt(_0x461587(0x145))/0x4+parseInt(_0x461587(0x147))/0x5*(parseInt(_0x461587(0x149))/0x6)+parseInt(_0x461587(0x14a))/0x7*(-parseInt(_0x461587(0x146))/0x8)+parseInt(_0x461587(0x14b))/0x9*(-parseInt(_0x461587(0x143))/0xa)+parseInt(_0x461587(0x14d))/0xb;if(_0x1e3896===_0x42d14f)break;else _0x1d3719['push'](_0x1d3719['shift']());}catch(_0x2fa0c6){_0x1d3719['push'](_0x1d3719['shift']());}}}(a53_0x5cfb,0x1a203));export default{'name':'PcXTableTools','inheritAttrs':![],'props':{'searchBtn':Object,'addBtn':Object,'multiEditBtn':Object,'multiDeleteBtn':Object,'exportBtn':Object,'importBtn':Object,'domids':Object},'data'(){return{'keywords':''};}};
@@ -1,53 +1 @@
1
- import tableUtils from '../xtable/utils.js'
2
- import utils from './utils.jsx'
3
- import Searcher from '../xtable/searcher.vue'
4
- import Settings from '../xtable/settings.vue'
5
-
6
- export default {
7
- name: 'XTableV2',
8
- props: {
9
- ...tableUtils.props(),
10
- fixed: {
11
- type: Boolean,
12
- default: true
13
- },
14
- height: {
15
- type: String,
16
- default: '60vh'
17
- }
18
- },
19
- emits: [
20
- ...tableUtils.emits()
21
- ],
22
- components: { Searcher, Settings },
23
- data () {
24
- return {
25
- isFullscreen: false,
26
- zoom: 1,
27
- selected: new Set(),
28
- checked: null,
29
- activeNames: ['name'],
30
- settings: {}
31
- }
32
- },
33
- computed: {
34
- ...tableUtils.computed
35
- },
36
- watch: {
37
- ...tableUtils.watch,
38
- settings: 'saveSettings'
39
- },
40
- created () {
41
- this.initSettings()
42
- },
43
- mounted () {
44
- if (this.table) {
45
- this.table.tableRef = this.$refs.tableRef
46
- }
47
- this.$emit('update:tref', this.$refs.tableRef)
48
- },
49
- methods: {
50
- ...tableUtils.methods,
51
- convertColumnsForTableV2: utils.convertColumnsForTableV2
52
- }
53
- }
1
+ var a54_0x2ce0cb=a54_0x477d;(function(_0x4101e2,_0x4b229c){var _0x2a5f84=a54_0x477d,_0x449127=_0x4101e2();while(!![]){try{var _0x325a5c=-parseInt(_0x2a5f84(0xc9))/0x1*(parseInt(_0x2a5f84(0xbf))/0x2)+parseInt(_0x2a5f84(0xb4))/0x3*(-parseInt(_0x2a5f84(0xb2))/0x4)+parseInt(_0x2a5f84(0xb6))/0x5+-parseInt(_0x2a5f84(0xbb))/0x6*(parseInt(_0x2a5f84(0xba))/0x7)+-parseInt(_0x2a5f84(0xc7))/0x8*(-parseInt(_0x2a5f84(0xb3))/0x9)+parseInt(_0x2a5f84(0xb0))/0xa*(parseInt(_0x2a5f84(0xb8))/0xb)+parseInt(_0x2a5f84(0xbd))/0xc*(parseInt(_0x2a5f84(0xc8))/0xd);if(_0x325a5c===_0x4b229c)break;else _0x449127['push'](_0x449127['shift']());}catch(_0x9b8ec5){_0x449127['push'](_0x449127['shift']());}}}(a54_0x2f89,0xe6848));import a54_0x1a7f1c from'../xtable/utils.js';import a54_0x35286b from'./utils.jsx';import a54_0x4df72b from'../xtable/searcher.vue';import a54_0x3275d6 from'../xtable/settings.vue';export default{'name':a54_0x2ce0cb(0xb1),'props':{...a54_0x1a7f1c[a54_0x2ce0cb(0xbc)](),'fixed':{'type':Boolean,'default':!![]},'height':{'type':String,'default':a54_0x2ce0cb(0xc0)}},'emits':[...a54_0x1a7f1c[a54_0x2ce0cb(0xc2)]()],'components':{'Searcher':a54_0x4df72b,'Settings':a54_0x3275d6},'data'(){var _0x59c3e5=a54_0x2ce0cb;return{'isFullscreen':![],'zoom':0x1,'selected':new Set(),'checked':null,'activeNames':[_0x59c3e5(0xc6)],'settings':{}};},'computed':{...a54_0x1a7f1c[a54_0x2ce0cb(0xc5)]},'watch':{...a54_0x1a7f1c['watch'],'settings':'saveSettings'},'created'(){var _0x1a4aa=a54_0x2ce0cb;this[_0x1a4aa(0xb5)]();},'mounted'(){var _0x462d76=a54_0x2ce0cb;this[_0x462d76(0xb9)]&&(this[_0x462d76(0xb9)][_0x462d76(0xc3)]=this[_0x462d76(0xca)][_0x462d76(0xc3)]),this[_0x462d76(0xc4)](_0x462d76(0xbe),this[_0x462d76(0xca)][_0x462d76(0xc3)]);},'methods':{...a54_0x1a7f1c[a54_0x2ce0cb(0xb7)],'convertColumnsForTableV2':a54_0x35286b[a54_0x2ce0cb(0xc1)]}};function a54_0x477d(_0x5831b3,_0x35ec4f){var _0x2f8991=a54_0x2f89();return a54_0x477d=function(_0x477d32,_0x280c07){_0x477d32=_0x477d32-0xb0;var _0xd10c2b=_0x2f8991[_0x477d32];return _0xd10c2b;},a54_0x477d(_0x5831b3,_0x35ec4f);}function a54_0x2f89(){var _0x319dd1=['912FYbqnV','640393Cryizv','21iqBlAs','$refs','8685540qGndQp','XTableV2','3088988mPeKRa','40113BfWObN','3FYLmTU','initSettings','4199175rLYEcP','methods','11rfsNLN','table','289457OiSEYg','222oPdSAu','props','348mNCzrm','update:tref','37964ZLSOxy','60vh','convertColumnsForTableV2','emits','tableRef','$emit','computed','name'];a54_0x2f89=function(){return _0x319dd1;};return a54_0x2f89();}
@@ -1,17 +1 @@
1
- export default {
2
- name: 'MobileXTags',
3
- props: {
4
- data: Array,
5
- text: {
6
- type: String,
7
- default: 'text'
8
- }
9
- },
10
- emits: ['close'],
11
- computed: {
12
- _data () {
13
- if (!this.data?.length) return []
14
- return this.data.map(ele => typeof ele === 'object' ? ele : { text: ele })
15
- }
16
- }
17
- }
1
+ var a55_0x578dce=a55_0x5d0d;(function(_0x309b5e,_0x398bff){var _0x20bd03=a55_0x5d0d,_0xb17934=_0x309b5e();while(!![]){try{var _0xfb77c0=-parseInt(_0x20bd03(0xb2))/0x1*(parseInt(_0x20bd03(0xb5))/0x2)+parseInt(_0x20bd03(0xad))/0x3*(-parseInt(_0x20bd03(0xb1))/0x4)+parseInt(_0x20bd03(0xa9))/0x5+parseInt(_0x20bd03(0xab))/0x6+parseInt(_0x20bd03(0xae))/0x7+-parseInt(_0x20bd03(0xa8))/0x8+parseInt(_0x20bd03(0xb3))/0x9;if(_0xfb77c0===_0x398bff)break;else _0xb17934['push'](_0xb17934['shift']());}catch(_0x385b5c){_0xb17934['push'](_0xb17934['shift']());}}}(a55_0x4445,0x358e8));function a55_0x4445(){var _0x4bf2f4=['MobileXTags','624gZRIUJ','64NShoIn','3194271RntCNI','map','11838NAKExD','3393736LYzGXJ','1286770mAePJo','object','1501662JceibT','data','2325hJffIU','1965257TOIKpl','close'];a55_0x4445=function(){return _0x4bf2f4;};return a55_0x4445();}function a55_0x5d0d(_0x149634,_0x46db82){var _0x4445e2=a55_0x4445();return a55_0x5d0d=function(_0x5d0de1,_0x1f7ef5){_0x5d0de1=_0x5d0de1-0xa8;var _0xa17b61=_0x4445e2[_0x5d0de1];return _0xa17b61;},a55_0x5d0d(_0x149634,_0x46db82);}export default{'name':a55_0x578dce(0xb0),'props':{'data':Array,'text':{'type':String,'default':'text'}},'emits':[a55_0x578dce(0xaf)],'computed':{'_data'(){var _0x3169aa=a55_0x578dce;if(!this['data']?.['length'])return[];return this[_0x3169aa(0xac)][_0x3169aa(0xb4)](_0x48bc5d=>typeof _0x48bc5d===_0x3169aa(0xaa)?_0x48bc5d:{'text':_0x48bc5d});}}};
@@ -1,17 +1 @@
1
- export default {
2
- name: 'PcXTags',
3
- props: {
4
- data: Array,
5
- text: {
6
- type: String,
7
- default: 'text'
8
- }
9
- },
10
- emits: ['close'],
11
- computed: {
12
- _data () {
13
- if (!this.data?.length) return []
14
- return this.data.map(ele => typeof ele === 'object' ? ele : { text: ele })
15
- }
16
- }
17
- }
1
+ function a56_0x4240(_0x13605b,_0x3c1d6d){var _0x13ffb7=a56_0x13ff();return a56_0x4240=function(_0x424087,_0x587112){_0x424087=_0x424087-0x11a;var _0x5189b7=_0x13ffb7[_0x424087];return _0x5189b7;},a56_0x4240(_0x13605b,_0x3c1d6d);}function a56_0x13ff(){var _0x221c8a=['data','PcXTags','814496yewSxy','length','1297062svPmjf','4012374ciFUjZ','23609LJfVqQ','text','836997MhiHxU','93688zIkwvr','310ygAmvm','43984vAKdAb','20izNLsg','close','2YlckfO'];a56_0x13ff=function(){return _0x221c8a;};return a56_0x13ff();}var a56_0x48c0e5=a56_0x4240;(function(_0x1bdf37,_0x2b2fd0){var _0x41f31f=a56_0x4240,_0x1dd751=_0x1bdf37();while(!![]){try{var _0x2b129a=-parseInt(_0x41f31f(0x11e))/0x1*(-parseInt(_0x41f31f(0x126))/0x2)+parseInt(_0x41f31f(0x120))/0x3+-parseInt(_0x41f31f(0x123))/0x4*(parseInt(_0x41f31f(0x122))/0x5)+parseInt(_0x41f31f(0x11d))/0x6+-parseInt(_0x41f31f(0x121))/0x7+-parseInt(_0x41f31f(0x11a))/0x8+parseInt(_0x41f31f(0x11c))/0x9*(parseInt(_0x41f31f(0x124))/0xa);if(_0x2b129a===_0x2b2fd0)break;else _0x1dd751['push'](_0x1dd751['shift']());}catch(_0x39e5d1){_0x1dd751['push'](_0x1dd751['shift']());}}}(a56_0x13ff,0x70f21));export default{'name':a56_0x48c0e5(0x128),'props':{'data':Array,'text':{'type':String,'default':a56_0x48c0e5(0x11f)}},'emits':[a56_0x48c0e5(0x125)],'computed':{'_data'(){var _0x25ba41=a56_0x48c0e5;if(!this[_0x25ba41(0x127)]?.[_0x25ba41(0x11b)])return[];return this[_0x25ba41(0x127)]['map'](_0x48f0f6=>typeof _0x48f0f6==='object'?_0x48f0f6:{'text':_0x48f0f6});}}};
@@ -1,71 +1 @@
1
- // 功能若复杂,这里继续修改
2
-
3
- export default {
4
- name: 'XTinymce',
5
- props: {
6
- modelValue: {
7
- type: String,
8
- default: ''
9
- },
10
- config: {
11
- type: Object,
12
- default: () => ({})
13
- }
14
- },
15
- emits: ['update:modelValue'],
16
- data () {
17
- return {
18
- id: 'tm-' + Date.now().toString(16)
19
- }
20
- },
21
- watch: {
22
- modelValue (value) {
23
- if (value === this._content) return
24
- this.instance?.setContent(value)
25
- }
26
- },
27
- mounted () {
28
- this.initEditor()
29
- },
30
- beforeUnmount () {
31
- if (this.instance) {
32
- this.instance.destroy()
33
- this.instance = null
34
- }
35
- },
36
- methods: {
37
- async initEditor () {
38
- const instances = await window.tinymce.init({
39
- language: 'zh_CN',
40
- language_url: './lib/tinymce/zh_CN.js',
41
- selector: 'textarea#' + this.id,
42
- height: 500,
43
- plugins: [
44
- 'advlist', 'autolink', 'lists', 'link', 'image', 'charmap', 'preview',
45
- 'anchor', 'searchreplace', 'visualblocks', 'code', 'fullscreen',
46
- 'insertdatetime', 'media', 'table', 'help', 'wordcount'
47
- ],
48
- toolbar: `
49
- undo redo | blocks |
50
- bold italic backcolor | alignleft aligncenter
51
- alignright alignjustify | bullist numlist outdent indent |
52
- removeformat | help
53
- content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }
54
- `,
55
- placeholder: '请输入、编辑富文本内容~',
56
- ...this.config
57
- })
58
- const instance = instances[instances.length - 1]
59
- instance.on('change', e => {
60
- this._content = instance.getContent()
61
- this.$emit('update:modelValue', this._content)
62
- })
63
- instance.on('input', e => {
64
- this._content = e.target.innerHTML
65
- this.$emit('update:modelValue', this._content)
66
- })
67
- this.instance = instance
68
- window._tinymce_instances_ = instances
69
- }
70
- }
71
- }
1
+ function a57_0x55c1(_0x53dc51,_0x2c9815){const _0x3701c2=a57_0x3701();return a57_0x55c1=function(_0x55c125,_0x197fd5){_0x55c125=_0x55c125-0x9a;let _0x346380=_0x3701c2[_0x55c125];return _0x346380;},a57_0x55c1(_0x53dc51,_0x2c9815);}(function(_0x2cde96,_0x1b6c22){const _0x188c57=a57_0x55c1,_0x22c0ef=_0x2cde96();while(!![]){try{const _0x563278=-parseInt(_0x188c57(0xaa))/0x1*(-parseInt(_0x188c57(0x9f))/0x2)+-parseInt(_0x188c57(0xab))/0x3+parseInt(_0x188c57(0x9b))/0x4+parseInt(_0x188c57(0xbe))/0x5+parseInt(_0x188c57(0xb8))/0x6*(parseInt(_0x188c57(0xc1))/0x7)+-parseInt(_0x188c57(0xa6))/0x8*(-parseInt(_0x188c57(0xbd))/0x9)+-parseInt(_0x188c57(0x9d))/0xa;if(_0x563278===_0x1b6c22)break;else _0x22c0ef['push'](_0x22c0ef['shift']());}catch(_0x38845c){_0x22c0ef['push'](_0x22c0ef['shift']());}}}(a57_0x3701,0x60227));function a57_0x3701(){const _0x822102=['\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20undo\x20redo\x20|\x20blocks\x20|\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bold\x20italic\x20backcolor\x20|\x20alignleft\x20aligncenter\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20alignright\x20alignjustify\x20|\x20bullist\x20numlist\x20outdent\x20indent\x20|\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removeformat\x20|\x20help\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20content_style:\x20\x27body\x20{\x20font-family:Helvetica,Arial,sans-serif;\x20font-size:16px\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20','image','target','link','8AWCRpS','media','setContent','toString','137075kmfzdl','540564qzUERu','instance','table','./lib/tinymce/zh_CN.js','preview','visualblocks','innerHTML','input','autolink','code','now','_content','wordcount','12YrbKws','fullscreen','getContent','textarea#','lists','1326258ZnygUc','3721125nWBhWj','update:modelValue','searchreplace','947891eVrouy','help','destroy','zh_CN','tm-','init','charmap','_tinymce_instances_','1707184JvJDfM','anchor','17006290WVmuPB','initEditor','10xLBRxu','$emit','length'];a57_0x3701=function(){return _0x822102;};return a57_0x3701();}export default{'name':'XTinymce','props':{'modelValue':{'type':String,'default':''},'config':{'type':Object,'default':()=>({})}},'emits':['update:modelValue'],'data'(){const _0x356d74=a57_0x55c1;return{'id':_0x356d74(0xc5)+Date[_0x356d74(0xb5)]()[_0x356d74(0xa9)](0x10)};},'watch':{'modelValue'(_0x5c07c1){const _0x296dfd=a57_0x55c1;if(_0x5c07c1===this[_0x296dfd(0xb6)])return;this[_0x296dfd(0xac)]?.[_0x296dfd(0xa8)](_0x5c07c1);}},'mounted'(){const _0x35b210=a57_0x55c1;this[_0x35b210(0x9e)]();},'beforeUnmount'(){const _0x1c0a8f=a57_0x55c1;this['instance']&&(this['instance'][_0x1c0a8f(0xc3)](),this[_0x1c0a8f(0xac)]=null);},'methods':{async 'initEditor'(){const _0x2a4af5=a57_0x55c1,_0x4ee350=await window['tinymce'][_0x2a4af5(0xc6)]({'language':_0x2a4af5(0xc4),'language_url':_0x2a4af5(0xae),'selector':_0x2a4af5(0xbb)+this['id'],'height':0x1f4,'plugins':['advlist',_0x2a4af5(0xb3),_0x2a4af5(0xbc),_0x2a4af5(0xa5),_0x2a4af5(0xa3),_0x2a4af5(0xc7),_0x2a4af5(0xaf),_0x2a4af5(0x9c),_0x2a4af5(0xc0),_0x2a4af5(0xb0),_0x2a4af5(0xb4),_0x2a4af5(0xb9),'insertdatetime',_0x2a4af5(0xa7),_0x2a4af5(0xad),_0x2a4af5(0xc2),_0x2a4af5(0xb7)],'toolbar':_0x2a4af5(0xa2),'placeholder':'请输入、编辑富文本内容~',...this['config']}),_0x27288f=_0x4ee350[_0x4ee350[_0x2a4af5(0xa1)]-0x1];_0x27288f['on']('change',_0x16f443=>{const _0x5c605a=_0x2a4af5;this['_content']=_0x27288f[_0x5c605a(0xba)](),this[_0x5c605a(0xa0)](_0x5c605a(0xbf),this[_0x5c605a(0xb6)]);}),_0x27288f['on'](_0x2a4af5(0xb2),_0x473ea6=>{const _0x4f6fc6=_0x2a4af5;this['_content']=_0x473ea6[_0x4f6fc6(0xa4)][_0x4f6fc6(0xb1)],this['$emit'](_0x4f6fc6(0xbf),this['_content']);}),this[_0x2a4af5(0xac)]=_0x27288f,window[_0x2a4af5(0x9a)]=_0x4ee350;}}};
@@ -1,48 +1 @@
1
- import { injectVanFieldProvide } from '../../utils/funcs.js'
2
- import { Message } from '../../utils/message.js'
3
-
4
- export default {
5
- name: 'XFileUploader',
6
- props: {
7
- modelValue: Array | String,
8
- multiple: Boolean,
9
- accept: String,
10
- action: String
11
- },
12
- emits: ['update:modelValue'],
13
- data () {
14
- return {
15
- fileList: []
16
- }
17
- },
18
- computed: {
19
- limit () {
20
- return this.$attrs.limit || (this.multiple ? 1e9 : 1)
21
- }
22
- },
23
- watch: {
24
- modelValue: {
25
- handler (value) {
26
- this.fileList = Array.isArray(value) ? value : (value ? [{ url: value }] : [])
27
- },
28
- immediate: true
29
- }
30
- },
31
- created () {
32
- injectVanFieldProvide(this)
33
- },
34
- methods: {
35
- handleSelect () {
36
- this.$emit('update:modelValue', this.fileList)
37
- this.provide?.resetValidation()
38
- },
39
- handleRemove (...props) {
40
- this.$emit('update:modelValue', this.fileList)
41
- this.provide?.resetValidation()
42
- this.$attrs['on-remove']?.(...props)
43
- },
44
- handleExceed (files, uploadFiles) {
45
- Message({ type: 'warning', message: '图片数量不能超过 ' + this.limit + ' 个' })
46
- }
47
- }
48
- }
1
+ var a58_0x55ad2c=a58_0x2ff1;(function(_0x2bcabd,_0x26d427){var _0x2d2fde=a58_0x2ff1,_0x23ab47=_0x2bcabd();while(!![]){try{var _0x41b0b4=-parseInt(_0x2d2fde(0x1d1))/0x1+parseInt(_0x2d2fde(0x1cf))/0x2+parseInt(_0x2d2fde(0x1c8))/0x3+-parseInt(_0x2d2fde(0x1c6))/0x4+-parseInt(_0x2d2fde(0x1d3))/0x5+parseInt(_0x2d2fde(0x1c7))/0x6+parseInt(_0x2d2fde(0x1d5))/0x7*(parseInt(_0x2d2fde(0x1ca))/0x8);if(_0x41b0b4===_0x26d427)break;else _0x23ab47['push'](_0x23ab47['shift']());}catch(_0x54d5b2){_0x23ab47['push'](_0x23ab47['shift']());}}}(a58_0x1ca4,0x5182e));function a58_0x2ff1(_0x115042,_0x4e8793){var _0x1ca47b=a58_0x1ca4();return a58_0x2ff1=function(_0x2ff158,_0xdd645f){_0x2ff158=_0x2ff158-0x1c6;var _0x1392e6=_0x1ca47b[_0x2ff158];return _0x1392e6;},a58_0x2ff1(_0x115042,_0x4e8793);}import{injectVanFieldProvide}from'../../utils/funcs.js';import{Message}from'../../utils/message.js';export default{'name':'XFileUploader','props':{'modelValue':Array|String,'multiple':Boolean,'accept':String,'action':String},'emits':[a58_0x55ad2c(0x1d7)],'data'(){return{'fileList':[]};},'computed':{'limit'(){var _0x3462a6=a58_0x55ad2c;return this[_0x3462a6(0x1d6)]['limit']||(this[_0x3462a6(0x1cd)]?0x3b9aca00:0x1);}},'watch':{'modelValue':{'handler'(_0x3d71ae){this['fileList']=Array['isArray'](_0x3d71ae)?_0x3d71ae:_0x3d71ae?[{'url':_0x3d71ae}]:[];},'immediate':!![]}},'created'(){injectVanFieldProvide(this);},'methods':{'handleSelect'(){var _0x42e02b=a58_0x55ad2c;this['$emit']('update:modelValue',this[_0x42e02b(0x1cc)]),this[_0x42e02b(0x1cb)]?.[_0x42e02b(0x1d2)]();},'handleRemove'(..._0x44ad41){var _0x4aad03=a58_0x55ad2c;this[_0x4aad03(0x1c9)](_0x4aad03(0x1d7),this[_0x4aad03(0x1cc)]),this['provide']?.['resetValidation'](),this[_0x4aad03(0x1d6)][_0x4aad03(0x1d8)]?.(..._0x44ad41);},'handleExceed'(_0x527a55,_0x3a9045){var _0x28c427=a58_0x55ad2c;Message({'type':_0x28c427(0x1ce),'message':_0x28c427(0x1d0)+this[_0x28c427(0x1d4)]+'\x20个'});}}};function a58_0x1ca4(){var _0x2a6e44=['provide','fileList','multiple','warning','265470zaSzDu','图片数量不能超过\x20','612729kPvaAy','resetValidation','1509270poDOQN','limit','7WHenHt','$attrs','update:modelValue','on-remove','426004NHSTPT','3790224Rzkpuw','1679892uUqVHc','$emit','244408eEuyxM'];a58_0x1ca4=function(){return _0x2a6e44;};return a58_0x1ca4();}
@@ -1,53 +1 @@
1
- import { injectVanFieldProvide } from '../../utils/funcs.js'
2
- import { Message } from '../../utils/message.js'
3
-
4
- export default {
5
- name: 'XImageUploader',
6
- props: {
7
- modelValue: Array | String,
8
- multiple: Boolean,
9
- action: String
10
- },
11
- emits: ['update:modelValue'],
12
- data () {
13
- return {
14
- fileList: [],
15
- previewingImage: {},
16
- dialogVisible: false
17
- }
18
- },
19
- computed: {
20
- limit () {
21
- return this.$attrs.limit || (this.multiple ? 1e9 : 1)
22
- }
23
- },
24
- watch: {
25
- modelValue: {
26
- handler (value) {
27
- this.fileList = Array.isArray(value) ? value : (value ? [{ url: value }] : [])
28
- },
29
- immediate: true
30
- }
31
- },
32
- created () {
33
- injectVanFieldProvide(this)
34
- },
35
- methods: {
36
- handleSelect () {
37
- this.$emit('update:modelValue', this.fileList)
38
- this.provide?.resetValidation()
39
- },
40
- handleRemove (...props) {
41
- this.$emit('update:modelValue', this.fileList)
42
- this.provide?.resetValidation()
43
- this.$attrs['on-remove']?.(...props)
44
- },
45
- handlePreview (img) {
46
- this.previewingImage = img
47
- this.dialogVisible = true
48
- },
49
- handleExceed (files, uploadFiles) {
50
- Message({ type: 'warning', message: '图片数量不能超过 ' + this.limit + ' 个' })
51
- }
52
- }
53
- }
1
+ var a59_0x4bd150=a59_0x45bd;function a59_0x45bd(_0x5c67fb,_0x1287bb){var _0x43fbe7=a59_0x43fb();return a59_0x45bd=function(_0x45bd56,_0x2ac4b2){_0x45bd56=_0x45bd56-0xe1;var _0x256a8a=_0x43fbe7[_0x45bd56];return _0x256a8a;},a59_0x45bd(_0x5c67fb,_0x1287bb);}(function(_0x120bb0,_0x201958){var _0x5b00c7=a59_0x45bd,_0x14c028=_0x120bb0();while(!![]){try{var _0x1f364f=parseInt(_0x5b00c7(0xe2))/0x1+-parseInt(_0x5b00c7(0xe7))/0x2*(parseInt(_0x5b00c7(0xf4))/0x3)+parseInt(_0x5b00c7(0xe9))/0x4*(-parseInt(_0x5b00c7(0xe5))/0x5)+parseInt(_0x5b00c7(0xee))/0x6+-parseInt(_0x5b00c7(0xed))/0x7+parseInt(_0x5b00c7(0xf2))/0x8+parseInt(_0x5b00c7(0xf3))/0x9;if(_0x1f364f===_0x201958)break;else _0x14c028['push'](_0x14c028['shift']());}catch(_0x39bd47){_0x14c028['push'](_0x14c028['shift']());}}}(a59_0x43fb,0xa9b47));import{injectVanFieldProvide}from'../../utils/funcs.js';import{Message}from'../../utils/message.js';function a59_0x43fb(){var _0x3077dc=['provide','8002722EMyBWp','7699188nxBHqb','XImageUploader','on-remove','dialogVisible','5898016hCqYMb','6362514JaLlFv','678621VRiRPt','multiple','图片数量不能超过\x20','isArray','552833QZsMes','limit','$attrs','50135wCaads','resetValidation','10wmHZeZ','$emit','124UfrWDR','fileList','update:modelValue'];a59_0x43fb=function(){return _0x3077dc;};return a59_0x43fb();}export default{'name':a59_0x4bd150(0xef),'props':{'modelValue':Array|String,'multiple':Boolean,'action':String},'emits':[a59_0x4bd150(0xeb)],'data'(){return{'fileList':[],'previewingImage':{},'dialogVisible':![]};},'computed':{'limit'(){var _0x51a036=a59_0x4bd150;return this[_0x51a036(0xe4)][_0x51a036(0xe3)]||(this[_0x51a036(0xf5)]?0x3b9aca00:0x1);}},'watch':{'modelValue':{'handler'(_0x15dd82){var _0x422af4=a59_0x4bd150;this[_0x422af4(0xea)]=Array[_0x422af4(0xe1)](_0x15dd82)?_0x15dd82:_0x15dd82?[{'url':_0x15dd82}]:[];},'immediate':!![]}},'created'(){injectVanFieldProvide(this);},'methods':{'handleSelect'(){var _0x3e0429=a59_0x4bd150;this[_0x3e0429(0xe8)]('update:modelValue',this['fileList']),this[_0x3e0429(0xec)]?.[_0x3e0429(0xe6)]();},'handleRemove'(..._0x404ea1){var _0x461c30=a59_0x4bd150;this[_0x461c30(0xe8)](_0x461c30(0xeb),this['fileList']),this['provide']?.['resetValidation'](),this[_0x461c30(0xe4)][_0x461c30(0xf0)]?.(..._0x404ea1);},'handlePreview'(_0x3dc29b){var _0x281928=a59_0x4bd150;this['previewingImage']=_0x3dc29b,this[_0x281928(0xf1)]=!![];},'handleExceed'(_0x5210e1,_0x20453f){var _0x592c65=a59_0x4bd150;Message({'type':'warning','message':_0x592c65(0xf6)+this[_0x592c65(0xe3)]+'\x20个'});}}};
package/packages/comps.js CHANGED
@@ -1,108 +1 @@
1
- import xarray from './components/xarray/xarray.vue'
2
- import xautorows from './components/xautorows/xautorows.vue'
3
- import mobilexbutton from './components/xbutton/mobile.vue'
4
- import pcxbutton from './components/xbutton/pc.vue'
5
- import mobilexbuttons from './components/xbuttons/mobile.vue'
6
- import pcxbuttons from './components/xbuttons/pc.vue'
7
- import xchart from './components/xchart/xchart.vue'
8
- import mobilexcheckboxs from './components/xcheckboxs/mobile.vue'
9
- import pcxcheckboxs from './components/xcheckboxs/pc.vue'
10
- import mobilexcol from './components/xcol/mobile.vue'
11
- import pcxcol from './components/xcol/pc.vue'
12
- import mobilexdialog from './components/xdialog/mobile.vue'
13
- import mobilexdatepicker from './components/xdatepicker/mobile.vue'
14
- import pcxdatepicker from './components/xdatepicker/pc.vue'
15
- import pcxdialog from './components/xdialog/pc.vue'
16
- import xdict from './components/xdict/xdict.vue'
17
- import mobilexdistrictselect from './components/xdistrictselect/mobile.vue'
18
- import pcxdistrictselect from './components/xdistrictselect/pc.vue'
19
- import mobilexform from './components/xform/mobile.vue'
20
- import pcxform from './components/xform/pc.vue'
21
- import mobilexformitem from './components/xformitem/mobile.vue'
22
- import pcxformitem from './components/xformitem/pc.vue'
23
- import mobilexicon from './components/xicon/mobile.vue'
24
- import pcxicon from './components/xicon/pc.vue'
25
- import xinfo from './components/xinfo/xinfo.vue'
26
- import xlooper from './components/xlooper/xlooper.vue'
27
- import mobilexpagination from './components/xpagination/mobile.vue'
28
- import pcxpagination from './components/xpagination/pc.vue'
29
- import xpicker from './components/xpicker/xpicker.vue'
30
- import mobilexradios from './components/xradios/mobile.vue'
31
- import pcxradios from './components/xradios/pc.vue'
32
- import mobilexrow from './components/xrow/mobile.vue'
33
- import pcxrow from './components/xrow/pc.vue'
34
- import mobilexscan from './components/xscan/mobile.vue'
35
- import pcxscan from './components/xscan/pc.vue'
36
- import xsearcher from './components/xsearcher/xsearcher.vue'
37
- import mobilexselect from './components/xselect/mobile.vue'
38
- import pcxselect from './components/xselect/pc.vue'
39
- import xselectv2 from './components/xselectv2/xselectv2.vue'
40
- import mobilextable from './components/xtable/mobile.vue'
41
- import pcxtable from './components/xtable/pc.vue'
42
- import mobilextabletools from './components/xtabletools/mobile.vue'
43
- import pcxtabletools from './components/xtabletools/pc.vue'
44
- import xtablev2 from './components/xtablev2/xtablev2.vue'
45
- import mobilextags from './components/xtags/mobile.vue'
46
- import pcxtags from './components/xtags/pc.vue'
47
- import xtinymce from './components/xtinymce/xtinymce.vue'
48
- import xfileuploader from './components/xuploader/xfileuploader.vue'
49
- import ximageuploader from './components/xuploader/ximageuploader.vue'
50
-
51
- const modules = {
52
- xarray,
53
- xautorows,
54
- mobilexbutton,
55
- pcxbutton,
56
- mobilexbuttons,
57
- pcxbuttons,
58
- xchart,
59
- mobilexcheckboxs,
60
- pcxcheckboxs,
61
- mobilexcol,
62
- pcxcol,
63
- mobilexdatepicker,
64
- pcxdatepicker,
65
- mobilexdialog,
66
- pcxdialog,
67
- xdict,
68
- mobilexdistrictselect,
69
- pcxdistrictselect,
70
- mobilexform,
71
- pcxform,
72
- mobilexformitem,
73
- pcxformitem,
74
- mobilexicon,
75
- pcxicon,
76
- xinfo,
77
- xlooper,
78
- mobilexpagination,
79
- pcxpagination,
80
- xpicker,
81
- mobilexradios,
82
- pcxradios,
83
- mobilexrow,
84
- pcxrow,
85
- mobilexscan,
86
- pcxscan,
87
- xsearcher,
88
- mobilexselect,
89
- pcxselect,
90
- xselectv2,
91
- mobilextable,
92
- pcxtable,
93
- mobilextabletools,
94
- pcxtabletools,
95
- xtablev2,
96
- mobilextags,
97
- pcxtags,
98
- xtinymce,
99
- xfileuploader,
100
- ximageuploader
101
- }
102
-
103
- const comps = {}
104
- for (let key in modules) {
105
- comps[modules[key].name] = modules[key]
106
- }
107
-
108
- export default comps
1
+ (function(_0x366db9,_0x5210e5){const _0x35be00=a60_0x5018,_0x17287d=_0x366db9();while(!![]){try{const _0x498740=-parseInt(_0x35be00(0x104))/0x1*(-parseInt(_0x35be00(0x10a))/0x2)+-parseInt(_0x35be00(0x108))/0x3*(-parseInt(_0x35be00(0x101))/0x4)+parseInt(_0x35be00(0x105))/0x5+-parseInt(_0x35be00(0x107))/0x6+parseInt(_0x35be00(0x103))/0x7*(parseInt(_0x35be00(0x102))/0x8)+-parseInt(_0x35be00(0x106))/0x9+-parseInt(_0x35be00(0x109))/0xa;if(_0x498740===_0x5210e5)break;else _0x17287d['push'](_0x17287d['shift']());}catch(_0x30daff){_0x17287d['push'](_0x17287d['shift']());}}}(a60_0x4a2a,0x18e7f));import a60_0x1d6ac6 from'./components/xarray/xarray.vue';import a60_0x208395 from'./components/xautorows/xautorows.vue';import a60_0x434db8 from'./components/xbutton/mobile.vue';import a60_0x324d96 from'./components/xbutton/pc.vue';import a60_0xe7932e from'./components/xbuttons/mobile.vue';import a60_0x4227f5 from'./components/xbuttons/pc.vue';import a60_0x3f878d from'./components/xchart/xchart.vue';import a60_0x6e1057 from'./components/xcheckboxs/mobile.vue';import a60_0x321c62 from'./components/xcheckboxs/pc.vue';import a60_0x476004 from'./components/xcol/mobile.vue';import a60_0x55e572 from'./components/xcol/pc.vue';import a60_0x50f5a9 from'./components/xdialog/mobile.vue';import a60_0x599fbd from'./components/xdatepicker/mobile.vue';import a60_0x11e7ef from'./components/xdatepicker/pc.vue';import a60_0x32184b from'./components/xdialog/pc.vue';import a60_0x489747 from'./components/xdict/xdict.vue';import a60_0x1bf230 from'./components/xdistrictselect/mobile.vue';import a60_0x3e66b3 from'./components/xdistrictselect/pc.vue';import a60_0x5608ab from'./components/xform/mobile.vue';import a60_0x299362 from'./components/xform/pc.vue';import a60_0x31c000 from'./components/xformitem/mobile.vue';import a60_0x297cab from'./components/xformitem/pc.vue';import a60_0x23d236 from'./components/xicon/mobile.vue';import a60_0xed8222 from'./components/xicon/pc.vue';import a60_0x4efc49 from'./components/xinfo/xinfo.vue';import a60_0x37eced from'./components/xlooper/xlooper.vue';import a60_0x43fab8 from'./components/xpagination/mobile.vue';import a60_0x47d47e from'./components/xpagination/pc.vue';import a60_0x39bc33 from'./components/xpicker/xpicker.vue';import a60_0x568a02 from'./components/xradios/mobile.vue';import a60_0x8a67c4 from'./components/xradios/pc.vue';function a60_0x5018(_0x4637ee,_0x342b1e){const _0x4a2a94=a60_0x4a2a();return a60_0x5018=function(_0x5018d1,_0x379740){_0x5018d1=_0x5018d1-0x101;let _0x5d9516=_0x4a2a94[_0x5018d1];return _0x5d9516;},a60_0x5018(_0x4637ee,_0x342b1e);}import a60_0x102a0d from'./components/xrow/mobile.vue';import a60_0x33c8d3 from'./components/xrow/pc.vue';import a60_0x2fc351 from'./components/xscan/mobile.vue';import a60_0x513a74 from'./components/xscan/pc.vue';import a60_0x19d547 from'./components/xsearcher/xsearcher.vue';import a60_0x4d7f8b from'./components/xselect/mobile.vue';import a60_0x50a20c from'./components/xselect/pc.vue';function a60_0x4a2a(){const _0x387c96=['2954460soFdKL','6uNnkxx','8sqgqmr','170888UOWfWo','21VNmVdh','6457plFfzv','970630diwKga','220689LbNZTX','258396RjQuoA','281202SGNMvz'];a60_0x4a2a=function(){return _0x387c96;};return a60_0x4a2a();}import a60_0x5570ff from'./components/xselectv2/xselectv2.vue';import a60_0x429df5 from'./components/xtable/mobile.vue';import a60_0x50962e from'./components/xtable/pc.vue';import a60_0x343a22 from'./components/xtabletools/mobile.vue';import a60_0x101518 from'./components/xtabletools/pc.vue';import a60_0x3baf7f from'./components/xtablev2/xtablev2.vue';import a60_0x4e72eb from'./components/xtags/mobile.vue';import a60_0x499b05 from'./components/xtags/pc.vue';import a60_0x1fe00b from'./components/xtinymce/xtinymce.vue';import a60_0x6277d1 from'./components/xuploader/xfileuploader.vue';import a60_0x530faf from'./components/xuploader/ximageuploader.vue';const modules={'xarray':a60_0x1d6ac6,'xautorows':a60_0x208395,'mobilexbutton':a60_0x434db8,'pcxbutton':a60_0x324d96,'mobilexbuttons':a60_0xe7932e,'pcxbuttons':a60_0x4227f5,'xchart':a60_0x3f878d,'mobilexcheckboxs':a60_0x6e1057,'pcxcheckboxs':a60_0x321c62,'mobilexcol':a60_0x476004,'pcxcol':a60_0x55e572,'mobilexdatepicker':a60_0x599fbd,'pcxdatepicker':a60_0x11e7ef,'mobilexdialog':a60_0x50f5a9,'pcxdialog':a60_0x32184b,'xdict':a60_0x489747,'mobilexdistrictselect':a60_0x1bf230,'pcxdistrictselect':a60_0x3e66b3,'mobilexform':a60_0x5608ab,'pcxform':a60_0x299362,'mobilexformitem':a60_0x31c000,'pcxformitem':a60_0x297cab,'mobilexicon':a60_0x23d236,'pcxicon':a60_0xed8222,'xinfo':a60_0x4efc49,'xlooper':a60_0x37eced,'mobilexpagination':a60_0x43fab8,'pcxpagination':a60_0x47d47e,'xpicker':a60_0x39bc33,'mobilexradios':a60_0x568a02,'pcxradios':a60_0x8a67c4,'mobilexrow':a60_0x102a0d,'pcxrow':a60_0x33c8d3,'mobilexscan':a60_0x2fc351,'pcxscan':a60_0x513a74,'xsearcher':a60_0x19d547,'mobilexselect':a60_0x4d7f8b,'pcxselect':a60_0x50a20c,'xselectv2':a60_0x5570ff,'mobilextable':a60_0x429df5,'pcxtable':a60_0x50962e,'mobilextabletools':a60_0x343a22,'pcxtabletools':a60_0x101518,'xtablev2':a60_0x3baf7f,'mobilextags':a60_0x4e72eb,'pcxtags':a60_0x499b05,'xtinymce':a60_0x1fe00b,'xfileuploader':a60_0x6277d1,'ximageuploader':a60_0x530faf},comps={};for(let key in modules){comps[modules[key]['name']]=modules[key];}export default comps;
@@ -1,125 +1 @@
1
- import { nextTick, watch } from 'vue'
2
- import uiUtils from '../utils/index.js'
3
-
4
- const { funcs, highdict, dates } = window.StardustJs
5
- const { storage } = window.StardustBrowser
6
-
7
- const VUE_LIFE_HOOKS = [
8
- 'onBeforeMount',
9
- 'onMounted',
10
- 'onBeforeUpdate',
11
- 'onUpdated',
12
- 'onBeforeUnmount',
13
- 'onUnmounted',
14
- 'onErrorCaptured',
15
- 'onRenderTracked',
16
- 'onRenderTriggered',
17
- 'onActivated',
18
- 'onDeactivated'
19
- ]
20
-
21
- class BaseController {
22
- constructor ({ model, vue }) {
23
- this.model = model
24
- this._bindMethods()
25
- if (vue) {
26
- const vm = vue.getCurrentInstance()
27
- Object.defineProperties(this, {
28
- vue: { get: () => vue },
29
- vm: { get: () => vm }
30
- })
31
- this._initLifeHooks()
32
- }
33
- nextTick(() => this.onInit())
34
- }
35
-
36
- onInit () {
37
- this.__eval_action_watcher__ = watch(this.router.currentRoute, route => {
38
- route.query?._action_ && this._evalAction()
39
- }, { immediate: true })
40
- }
41
-
42
- get app () { throw '请自行注入 app' }
43
-
44
- get $el () { return this.vm && this.vm.ctx.$el || null }
45
-
46
- get router () { throw '请自行注入 router' }
47
-
48
- get route () { return this.router.currentRoute.value }
49
-
50
- get params () { return this.route.params }
51
-
52
- get query () { return this.route.query }
53
-
54
- get store () { throw '请自行注入 store' }
55
-
56
- get uiUtils () { return uiUtils }
57
-
58
- get service () { throw '请自行注入 service' }
59
-
60
- get $api () { return this.service.api }
61
-
62
- get $request () { return this.service.request }
63
-
64
- get $restful () { return this.service.restful }
65
-
66
- get config () { return this.app.config.globalProperties }
67
-
68
- get $js () { return window.StardustJs }
69
-
70
- get $browser () { return window.StardustBrowser }
71
-
72
- get $dates () { return dates }
73
-
74
- get $highdict () { return highdict }
75
-
76
- get $copy () { return funcs.deepCopy }
77
-
78
- get $sleep () { return funcs.sleep }
79
-
80
- get $storage () { return storage }
81
-
82
- get $local () { return storage.local }
83
-
84
- get $session () { return storage.session }
85
-
86
- _bindMethods () {
87
- const thisKeys = [...Object.keys(this), ...this._getMethods()]
88
- const proto = Object.getOwnPropertyDescriptors(this.__proto__)
89
- const subKeys = Object.keys(proto).filter(method => method !== 'constructor')
90
- const allKeys = Array.from(new Set([...thisKeys, ...subKeys]))
91
- const methods = allKeys.filter(key => typeof this[key] === 'function')
92
- methods.forEach(method => {
93
- this[method] = this[method].bind(this)
94
- })
95
- }
96
-
97
- _initLifeHooks () {
98
- this.vue.onBeforeUnmount(() => {
99
- this.__eval_action_watcher__?.()
100
- })
101
- VUE_LIFE_HOOKS.forEach(hook => {
102
- this[hook] && this.vue[hook](this[hook].bind(this))
103
- })
104
- }
105
-
106
- _evalAction () {
107
- const { _action_, _action_params_, ...others } = this.query
108
- if (_action_ && this[_action_]) {
109
- this[_action_]?.(JSON.parse(_action_params_ || '{}'))
110
- this.router.replace(this.route.path + '?' + funcs.encodeQuery(others))
111
- }
112
- }
113
-
114
- _getMethods () {
115
- return [
116
- '_bindMethods',
117
- '_initLifeHooks',
118
- '_evalAction',
119
- '_getMethods',
120
- 'onInit'
121
- ]
122
- }
123
- }
124
-
125
- export default BaseController
1
+ const a61_0x1b9655=a61_0x4954;function a61_0x4954(_0x1057c7,_0x55a372){const _0x4effce=a61_0x4eff();return a61_0x4954=function(_0x495482,_0x798f7){_0x495482=_0x495482-0xf4;let _0x19936d=_0x4effce[_0x495482];return _0x19936d;},a61_0x4954(_0x1057c7,_0x55a372);}(function(_0x3bd9f3,_0x253d77){const _0x1d01ef=a61_0x4954,_0x39f069=_0x3bd9f3();while(!![]){try{const _0x4afeac=parseInt(_0x1d01ef(0x102))/0x1*(parseInt(_0x1d01ef(0x10a))/0x2)+-parseInt(_0x1d01ef(0x118))/0x3+-parseInt(_0x1d01ef(0xfd))/0x4+-parseInt(_0x1d01ef(0x131))/0x5*(-parseInt(_0x1d01ef(0xf4))/0x6)+parseInt(_0x1d01ef(0x127))/0x7*(parseInt(_0x1d01ef(0x124))/0x8)+parseInt(_0x1d01ef(0x137))/0x9+parseInt(_0x1d01ef(0x135))/0xa*(-parseInt(_0x1d01ef(0xf5))/0xb);if(_0x4afeac===_0x253d77)break;else _0x39f069['push'](_0x39f069['shift']());}catch(_0x4ba27b){_0x39f069['push'](_0x39f069['shift']());}}}(a61_0x4eff,0x716d5));import{nextTick,watch}from'vue';import a61_0x3acaf2 from'../utils/index.js';function a61_0x4eff(){const _0x327e6b=['onRenderTracked','service','151029CoiXsR','onBeforeMount','请自行注入\x20app','_getMethods','onActivated','onBeforeUnmount','keys','请自行注入\x20router','bind','model','_bindMethods','请自行注入\x20service','352848AhfdFs','vue','filter','91IwyjZE','parse','uiUtils','encodeQuery','$storage','request','_evalAction','__proto__','store','onBeforeUpdate','5kpkKhe','_initLifeHooks','_action_','currentRoute','10TXbcPc','restful','4437900JFRYWc','ctx','replace','local','value','2156694fbdMOb','4121799arVQTi','path','app','sleep','config','$session','$local','getOwnPropertyDescriptors','3308660MyqMOh','onUnmounted','$highdict','$copy','__eval_action_watcher__','17111PGqrRf','params','function','StardustJs','onUpdated','session','constructor','$el','34MBxdOD','route','api','请自行注入\x20store','StardustBrowser','globalProperties','router','onInit','$restful','getCurrentInstance','query','defineProperties'];a61_0x4eff=function(){return _0x327e6b;};return a61_0x4eff();}const {funcs,highdict,dates}=window[a61_0x1b9655(0x105)],{storage}=window[a61_0x1b9655(0x10e)],VUE_LIFE_HOOKS=[a61_0x1b9655(0x119),'onMounted',a61_0x1b9655(0x130),a61_0x1b9655(0x106),a61_0x1b9655(0x11d),a61_0x1b9655(0xfe),'onErrorCaptured',a61_0x1b9655(0x116),'onRenderTriggered',a61_0x1b9655(0x11c),'onDeactivated'];class BaseController{constructor({model:_0x58573a,vue:_0x787d9}){const _0x2660fd=a61_0x1b9655;this[_0x2660fd(0x121)]=_0x58573a,this[_0x2660fd(0x122)]();if(_0x787d9){const _0x4f1552=_0x787d9[_0x2660fd(0x113)]();Object[_0x2660fd(0x115)](this,{'vue':{'get':()=>_0x787d9},'vm':{'get':()=>_0x4f1552}}),this[_0x2660fd(0x132)]();}nextTick(()=>this[_0x2660fd(0x111)]());}['onInit'](){const _0x4dd191=a61_0x1b9655;this[_0x4dd191(0x101)]=watch(this[_0x4dd191(0x110)][_0x4dd191(0x134)],_0x3f5d39=>{const _0x513f43=_0x4dd191;_0x3f5d39[_0x513f43(0x114)]?.[_0x513f43(0x133)]&&this[_0x513f43(0x12d)]();},{'immediate':!![]});}get[a61_0x1b9655(0xf7)](){const _0x3f6543=a61_0x1b9655;throw _0x3f6543(0x11a);}get['$el'](){const _0x1377f3=a61_0x1b9655;return this['vm']&&this['vm'][_0x1377f3(0x138)][_0x1377f3(0x109)]||null;}get['router'](){const _0x31576a=a61_0x1b9655;throw _0x31576a(0x11f);}get[a61_0x1b9655(0x10b)](){const _0x5f3c8c=a61_0x1b9655;return this['router'][_0x5f3c8c(0x134)][_0x5f3c8c(0x13b)];}get[a61_0x1b9655(0x103)](){const _0x21a12a=a61_0x1b9655;return this[_0x21a12a(0x10b)][_0x21a12a(0x103)];}get[a61_0x1b9655(0x114)](){const _0x53c57c=a61_0x1b9655;return this[_0x53c57c(0x10b)][_0x53c57c(0x114)];}get[a61_0x1b9655(0x12f)](){const _0x45f345=a61_0x1b9655;throw _0x45f345(0x10d);}get[a61_0x1b9655(0x129)](){return a61_0x3acaf2;}get[a61_0x1b9655(0x117)](){const _0x1d7bee=a61_0x1b9655;throw _0x1d7bee(0x123);}get['$api'](){const _0xf9f144=a61_0x1b9655;return this[_0xf9f144(0x117)][_0xf9f144(0x10c)];}get['$request'](){const _0x1dad92=a61_0x1b9655;return this[_0x1dad92(0x117)][_0x1dad92(0x12c)];}get[a61_0x1b9655(0x112)](){const _0x5b1ff3=a61_0x1b9655;return this[_0x5b1ff3(0x117)][_0x5b1ff3(0x136)];}get[a61_0x1b9655(0xf9)](){const _0x8e8c92=a61_0x1b9655;return this[_0x8e8c92(0xf7)][_0x8e8c92(0xf9)][_0x8e8c92(0x10f)];}get['$js'](){const _0xea3603=a61_0x1b9655;return window[_0xea3603(0x105)];}get['$browser'](){const _0x1fb738=a61_0x1b9655;return window[_0x1fb738(0x10e)];}get['$dates'](){return dates;}get[a61_0x1b9655(0xff)](){return highdict;}get[a61_0x1b9655(0x100)](){return funcs['deepCopy'];}get['$sleep'](){const _0x10d48d=a61_0x1b9655;return funcs[_0x10d48d(0xf8)];}get[a61_0x1b9655(0x12b)](){return storage;}get[a61_0x1b9655(0xfb)](){const _0x536290=a61_0x1b9655;return storage[_0x536290(0x13a)];}get[a61_0x1b9655(0xfa)](){const _0x6a776f=a61_0x1b9655;return storage[_0x6a776f(0x107)];}[a61_0x1b9655(0x122)](){const _0x29ee6f=a61_0x1b9655,_0x3f3937=[...Object[_0x29ee6f(0x11e)](this),...this[_0x29ee6f(0x11b)]()],_0x2c2be4=Object[_0x29ee6f(0xfc)](this[_0x29ee6f(0x12e)]),_0xd9b415=Object[_0x29ee6f(0x11e)](_0x2c2be4)['filter'](_0x6f104e=>_0x6f104e!==_0x29ee6f(0x108)),_0x34ff9c=Array['from'](new Set([..._0x3f3937,..._0xd9b415])),_0x308940=_0x34ff9c[_0x29ee6f(0x126)](_0x74e744=>typeof this[_0x74e744]===_0x29ee6f(0x104));_0x308940['forEach'](_0x2f6eaa=>{const _0x522e60=_0x29ee6f;this[_0x2f6eaa]=this[_0x2f6eaa][_0x522e60(0x120)](this);});}[a61_0x1b9655(0x132)](){const _0x4e8695=a61_0x1b9655;this[_0x4e8695(0x125)][_0x4e8695(0x11d)](()=>{this['__eval_action_watcher__']?.();}),VUE_LIFE_HOOKS['forEach'](_0x178f72=>{const _0x279a19=_0x4e8695;this[_0x178f72]&&this[_0x279a19(0x125)][_0x178f72](this[_0x178f72][_0x279a19(0x120)](this));});}[a61_0x1b9655(0x12d)](){const _0x1be125=a61_0x1b9655,{_action_:_0x1317e7,_action_params_:_0x525762,..._0x131346}=this[_0x1be125(0x114)];_0x1317e7&&this[_0x1317e7]&&(this[_0x1317e7]?.(JSON[_0x1be125(0x128)](_0x525762||'{}')),this[_0x1be125(0x110)][_0x1be125(0x139)](this[_0x1be125(0x10b)][_0x1be125(0xf6)]+'?'+funcs[_0x1be125(0x12a)](_0x131346)));}['_getMethods'](){const _0x5b0d2a=a61_0x1b9655;return[_0x5b0d2a(0x122),_0x5b0d2a(0x132),_0x5b0d2a(0x12d),_0x5b0d2a(0x11b),_0x5b0d2a(0x111)];}}export default BaseController;