@wp1001/ui 2.9.13 → 3.0.1
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/@vant-D4fmGxs6.js +1 -3891
- package/index.html +28 -0
- package/index.js +1 -8419
- package/lib/tinymce/zh_CN.js +1 -0
- package/package.json +1 -1
- package/packages/assets/devtools-detector.js +1 -2
- package/packages/components/xarray/index.js +1 -64
- package/packages/components/xautorows/index.js +1 -35
- package/packages/components/xbutton/mobile.js +1 -3
- package/packages/components/xbutton/pc.js +1 -3
- package/packages/components/xbuttons/mobile.js +1 -51
- package/packages/components/xbuttons/pc.js +1 -51
- package/packages/components/xchart/constants.js +1 -58
- package/packages/components/xchart/index.js +1 -263
- package/packages/components/xchart/utils.js +1 -121
- package/packages/components/xcheckboxs/mobile.js +1 -58
- package/packages/components/xcheckboxs/pc.js +1 -49
- package/packages/components/xcol/mobile.js +1 -10
- package/packages/components/xcol/pc.js +1 -10
- package/packages/components/xdatepicker/mobile.js +1 -71
- package/packages/components/xdatepicker/pc.js +1 -9
- package/packages/components/xdialog/mobile.js +1 -60
- package/packages/components/xdialog/pc.js +1 -64
- package/packages/components/xdict/index.js +1 -47
- package/packages/components/xdistrictselect/mobile.js +1 -79
- package/packages/components/xdistrictselect/pc.js +1 -127
- package/packages/components/xform/mobile.js +1 -29
- package/packages/components/xform/pc.js +1 -42
- package/packages/components/xform/utils.js +1 -95
- package/packages/components/xformitem/mobile.js +1 -56
- package/packages/components/xformitem/pc.js +1 -72
- package/packages/components/xicon/mobile.js +1 -35
- package/packages/components/xicon/pc.js +1 -35
- package/packages/components/xinfo/index.js +1 -100
- package/packages/components/xlooper/index.js +1 -7
- package/packages/components/xpagination/mobile.js +1 -21
- package/packages/components/xpagination/pc.js +1 -21
- package/packages/components/xpicker/index.js +1 -38
- package/packages/components/xradios/mobile.js +1 -40
- package/packages/components/xradios/pc.js +1 -53
- package/packages/components/xrow/mobile.js +1 -9
- package/packages/components/xrow/pc.js +1 -9
- package/packages/components/xscan/mobile.js +1 -24
- package/packages/components/xscan/pc.js +1 -20
- package/packages/components/xsearcher/index.js +1 -198
- package/packages/components/xselect/mobile.js +1 -86
- package/packages/components/xselect/pc.js +1 -114
- package/packages/components/xselect/util.js +1 -66
- package/packages/components/xselectv2/index.js +1 -91
- package/packages/components/xtable/mobile.js +1 -108
- package/packages/components/xtable/pc.js +1 -143
- package/packages/components/xtable/searcher.js +1 -477
- package/packages/components/xtable/settings.js +1 -80
- package/packages/components/xtable/utils.js +1 -692
- package/packages/components/xtabletools/mobile.js +1 -25
- package/packages/components/xtabletools/pc.js +1 -18
- package/packages/components/xtablev2/index.js +1 -53
- package/packages/components/xtags/mobile.js +1 -17
- package/packages/components/xtags/pc.js +1 -17
- package/packages/components/xtinymce/index.js +1 -71
- package/packages/components/xuploader/xfileuploader.js +1 -48
- package/packages/components/xuploader/ximageuploader.js +1 -53
- package/packages/comps.js +1 -108
- package/packages/controllers/BaseController.js +1 -125
- package/packages/controllers/CrudController.js +1 -907
- package/packages/controllers/TempCrudController.js +1 -32
- package/packages/controllers/index.js +1 -15
- package/packages/directives/el-table-infinite-scroll.js +1 -55
- package/packages/directives/index.js +1 -5
- package/packages/index.js +1 -81
- package/packages/layout/breadcrumb/index.js +1 -41
- package/packages/layout/header/inner.js +1 -11
- package/packages/layout/pc.vue +1 -1
- package/packages/layout/screenlock/index.js +1 -129
- package/packages/layout/sidebar/item.js +1 -16
- package/packages/layout/sidebar/menu.js +1 -72
- package/packages/layout/tagsview/ScrollPane.js +1 -65
- package/packages/layout/tagsview/index.js +1 -169
- package/packages/plop/actions/make-fill-admin-partials-action.js +1 -95
- package/packages/plop/generators/make-admin-page.js +1 -39
- package/packages/plop/generators/make-database-admin-pages.js +1 -84
- package/packages/plop/generators/make-page-generator.js +1 -52
- package/packages/plop/generators/make-simple-page.js +1 -20
- package/packages/plop/plopfile.js +1 -24
- package/packages/plop/utils/index.js +1 -168
- package/packages/plop/utils/plop-utils.js +1 -86
- package/packages/utils/crypt.js +1 -24
- package/packages/utils/decorators.js +1 -67
- package/packages/utils/disallowDevtools.js +1 -53
- package/packages/utils/effects.js +1 -173
- package/packages/utils/funcs.js +1 -78
- package/packages/utils/index.js +1 -95
- package/packages/utils/message.js +1 -110
- package/packages/utils/middlewares.js +1 -86
- package/packages/utils/model.js +1 -71
- package/packages/utils/modelUtils.js +1 -203
- package/packages/utils/request.js +1 -57
- package/packages/utils/site.js +1 -33
- package/packages/vite-plugins.js +1 -141
- package/src/App.vue +134 -0
- package/src/main.js +1 -0
- package/src/request.js +1 -0
- package/style.css +1 -0
- package/vite.config.js +1 -0
- package/vite.lib.config.js +1 -0
- 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
|
+
var a52_0x3e4b75=a52_0x3267;function a52_0x3267(_0x5c6532,_0x4d9cca){var _0x24a4b7=a52_0x24a4();return a52_0x3267=function(_0x326720,_0x29a231){_0x326720=_0x326720-0xab;var _0x27be02=_0x24a4b7[_0x326720];return _0x27be02;},a52_0x3267(_0x5c6532,_0x4d9cca);}(function(_0x1f2aa8,_0x5d1b18){var _0x548384=a52_0x3267,_0x364e2b=_0x1f2aa8();while(!![]){try{var _0x700804=-parseInt(_0x548384(0xb0))/0x1+parseInt(_0x548384(0xab))/0x2+parseInt(_0x548384(0xb3))/0x3+-parseInt(_0x548384(0xb1))/0x4*(parseInt(_0x548384(0xaf))/0x5)+parseInt(_0x548384(0xb7))/0x6+parseInt(_0x548384(0xae))/0x7+parseInt(_0x548384(0xac))/0x8*(-parseInt(_0x548384(0xb4))/0x9);if(_0x700804===_0x5d1b18)break;else _0x364e2b['push'](_0x364e2b['shift']());}catch(_0x4bd475){_0x364e2b['push'](_0x364e2b['shift']());}}}(a52_0x24a4,0x8c39f));export default{'name':a52_0x3e4b75(0xb6),'inheritAttrs':![],'props':{'searchBtn':Object,'addBtn':Object,'multiEditBtn':Object,'multiDeleteBtn':Object,'exportBtn':Object,'importBtn':Object,'domids':Object},'data'(){return{'keywords':'','domidsCanAdd':!![]};},async 'mounted'(){var _0x292877=a52_0x3e4b75;await this['$nextTick'](),!this[_0x292877(0xb2)]['fbc'][_0x292877(0xb5)]&&(this[_0x292877(0xad)]=![]);}};function a52_0x24a4(){var _0x7dd7a2=['4372rWPQwa','$refs','1569162FaIlMR','497268wxvsID','isConnected','MobileXTableTools','6778920gsmUGL','2006138bXGpNW','200WbpzRL','domidsCanAdd','7807296xVulBX','4965xLahSN','730255kbWnKI'];a52_0x24a4=function(){return _0x7dd7a2;};return a52_0x24a4();}
|
|
@@ -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
|
+
var a53_0x2bc90e=a53_0x58da;(function(_0x5e8c31,_0x4c272b){var _0x210374=a53_0x58da,_0x37e210=_0x5e8c31();while(!![]){try{var _0x23b101=-parseInt(_0x210374(0x6e))/0x1+parseInt(_0x210374(0x6f))/0x2+parseInt(_0x210374(0x6d))/0x3*(-parseInt(_0x210374(0x72))/0x4)+parseInt(_0x210374(0x6a))/0x5+-parseInt(_0x210374(0x71))/0x6*(parseInt(_0x210374(0x6b))/0x7)+-parseInt(_0x210374(0x73))/0x8*(-parseInt(_0x210374(0x69))/0x9)+parseInt(_0x210374(0x6c))/0xa;if(_0x23b101===_0x4c272b)break;else _0x37e210['push'](_0x37e210['shift']());}catch(_0x2d3331){_0x37e210['push'](_0x37e210['shift']());}}}(a53_0x1255,0x8c843));export default{'name':a53_0x2bc90e(0x70),'inheritAttrs':![],'props':{'searchBtn':Object,'addBtn':Object,'multiEditBtn':Object,'multiDeleteBtn':Object,'exportBtn':Object,'importBtn':Object,'domids':Object},'data'(){return{'keywords':''};}};function a53_0x58da(_0x4c11ef,_0x411593){var _0x1255a3=a53_0x1255();return a53_0x58da=function(_0x58da2e,_0x236eb6){_0x58da2e=_0x58da2e-0x69;var _0x468f11=_0x1255a3[_0x58da2e];return _0x468f11;},a53_0x58da(_0x4c11ef,_0x411593);}function a53_0x1255(){var _0x226645=['144ptVIOi','176859CGHgAn','2359160mrtTMU','14HCuWVw','7740810FqvHZy','3uGudiI','99889rEcEvl','150330bJjYvb','PcXTableTools','1376622Cqavzm','2161912nGdDZP'];a53_0x1255=function(){return _0x226645;};return a53_0x1255();}
|
|
@@ -1,53 +1 @@
|
|
|
1
|
-
import
|
|
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
|
+
function a54_0x25ba(_0x3f52df,_0x47da84){var _0x5ddfdc=a54_0x5ddf();return a54_0x25ba=function(_0x25ba91,_0x30fe16){_0x25ba91=_0x25ba91-0xfe;var _0x303fa1=_0x5ddfdc[_0x25ba91];return _0x303fa1;},a54_0x25ba(_0x3f52df,_0x47da84);}var a54_0x12b273=a54_0x25ba;(function(_0x105614,_0x4c99cd){var _0x42ffd7=a54_0x25ba,_0x3fd0fc=_0x105614();while(!![]){try{var _0x31fdb8=-parseInt(_0x42ffd7(0x10d))/0x1*(parseInt(_0x42ffd7(0x10f))/0x2)+parseInt(_0x42ffd7(0x102))/0x3*(parseInt(_0x42ffd7(0x10b))/0x4)+-parseInt(_0x42ffd7(0x113))/0x5+-parseInt(_0x42ffd7(0x100))/0x6+parseInt(_0x42ffd7(0xff))/0x7*(-parseInt(_0x42ffd7(0x10e))/0x8)+-parseInt(_0x42ffd7(0x112))/0x9+-parseInt(_0x42ffd7(0x107))/0xa*(-parseInt(_0x42ffd7(0x106))/0xb);if(_0x31fdb8===_0x4c99cd)break;else _0x3fd0fc['push'](_0x3fd0fc['shift']());}catch(_0x33ea07){_0x3fd0fc['push'](_0x3fd0fc['shift']());}}}(a54_0x5ddf,0x5d097));import a54_0x449328 from'../xtable/utils.js';import a54_0x16205e from'./utils.jsx';import a54_0xf37482 from'../xtable/searcher.vue';import a54_0x1422f6 from'../xtable/settings.vue';export default{'name':a54_0x12b273(0x10a),'props':{...a54_0x449328[a54_0x12b273(0x101)](),'fixed':{'type':Boolean,'default':!![]},'height':{'type':String,'default':a54_0x12b273(0x10c)}},'emits':[...a54_0x449328['emits']()],'components':{'Searcher':a54_0xf37482,'Settings':a54_0x1422f6},'data'(){var _0x487b9b=a54_0x12b273;return{'isFullscreen':![],'zoom':0x1,'selected':new Set(),'checked':null,'activeNames':[_0x487b9b(0x103)],'settings':{}};},'computed':{...a54_0x449328[a54_0x12b273(0x105)]},'watch':{...a54_0x449328[a54_0x12b273(0x110)],'settings':'saveSettings'},'created'(){this['initSettings']();},'mounted'(){var _0x3331aa=a54_0x12b273;this[_0x3331aa(0x111)]&&(this[_0x3331aa(0x111)][_0x3331aa(0xfe)]=this['$refs'][_0x3331aa(0xfe)]),this[_0x3331aa(0x104)]('update:tref',this[_0x3331aa(0x114)]['tableRef']);},'methods':{...a54_0x449328[a54_0x12b273(0x108)],'convertColumnsForTableV2':a54_0x16205e[a54_0x12b273(0x109)]}};function a54_0x5ddf(){var _0x100f09=['methods','convertColumnsForTableV2','XTableV2','649048HxcfVf','60vh','1937zanCAn','1644104rEoOGv','346BKureL','watch','table','5218353wXyshI','71985cFUKrr','$refs','tableRef','7RAWudY','2908056CSxImV','props','9yzCuGM','name','$emit','computed','11jayXBp','15137970WtYkjx'];a54_0x5ddf=function(){return _0x100f09;};return a54_0x5ddf();}
|
|
@@ -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_0x15eb4a=a55_0x59de;(function(_0x4fb0a5,_0x4c79e2){var _0x3f23de=a55_0x59de,_0x55a18f=_0x4fb0a5();while(!![]){try{var _0x12fa8d=-parseInt(_0x3f23de(0x7e))/0x1*(parseInt(_0x3f23de(0x73))/0x2)+-parseInt(_0x3f23de(0x79))/0x3*(parseInt(_0x3f23de(0x6c))/0x4)+-parseInt(_0x3f23de(0x7d))/0x5*(-parseInt(_0x3f23de(0x78))/0x6)+parseInt(_0x3f23de(0x6f))/0x7*(parseInt(_0x3f23de(0x7b))/0x8)+parseInt(_0x3f23de(0x76))/0x9*(-parseInt(_0x3f23de(0x70))/0xa)+-parseInt(_0x3f23de(0x74))/0xb*(parseInt(_0x3f23de(0x72))/0xc)+-parseInt(_0x3f23de(0x6d))/0xd*(-parseInt(_0x3f23de(0x7c))/0xe);if(_0x12fa8d===_0x4c79e2)break;else _0x55a18f['push'](_0x55a18f['shift']());}catch(_0x42c87c){_0x55a18f['push'](_0x55a18f['shift']());}}}(a55_0x280c,0x9e141));function a55_0x280c(){var _0x17149c=['120SaiBWj','3482BadAAL','1154758fAXRzo','text','91341lueojj','length','494328bBYTNl','9lKjiPs','close','114584fnHxRT','33554990anmUpR','70icgkUC','271xVTeDx','1281788MmMgiN','13HllwRx','data','147DaLupJ','710ZxTLwa','map'];a55_0x280c=function(){return _0x17149c;};return a55_0x280c();}function a55_0x59de(_0x1fa9b1,_0x1fe544){var _0x280cdb=a55_0x280c();return a55_0x59de=function(_0x59deb6,_0x3b2d6f){_0x59deb6=_0x59deb6-0x6c;var _0x358239=_0x280cdb[_0x59deb6];return _0x358239;},a55_0x59de(_0x1fa9b1,_0x1fe544);}export default{'name':'MobileXTags','props':{'data':Array,'text':{'type':String,'default':a55_0x15eb4a(0x75)}},'emits':[a55_0x15eb4a(0x7a)],'computed':{'_data'(){var _0x49df3f=a55_0x15eb4a;if(!this[_0x49df3f(0x6e)]?.[_0x49df3f(0x77)])return[];return this['data'][_0x49df3f(0x71)](_0x2dcffb=>typeof _0x2dcffb==='object'?_0x2dcffb:{'text':_0x2dcffb});}}};
|
|
@@ -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
|
+
var a56_0x17edcc=a56_0x3c98;function a56_0x3c98(_0x23712d,_0x30626a){var _0x487671=a56_0x4876();return a56_0x3c98=function(_0x3c98af,_0x22de12){_0x3c98af=_0x3c98af-0xf9;var _0x5e7b10=_0x487671[_0x3c98af];return _0x5e7b10;},a56_0x3c98(_0x23712d,_0x30626a);}(function(_0x472c79,_0x5a5b81){var _0xb4ba58=a56_0x3c98,_0x566324=_0x472c79();while(!![]){try{var _0x4eaa79=-parseInt(_0xb4ba58(0x107))/0x1*(parseInt(_0xb4ba58(0x103))/0x2)+-parseInt(_0xb4ba58(0x102))/0x3+-parseInt(_0xb4ba58(0xfa))/0x4*(parseInt(_0xb4ba58(0x100))/0x5)+-parseInt(_0xb4ba58(0x104))/0x6+parseInt(_0xb4ba58(0xfe))/0x7*(-parseInt(_0xb4ba58(0xfc))/0x8)+-parseInt(_0xb4ba58(0xfd))/0x9+parseInt(_0xb4ba58(0x106))/0xa*(parseInt(_0xb4ba58(0xf9))/0xb);if(_0x4eaa79===_0x5a5b81)break;else _0x566324['push'](_0x566324['shift']());}catch(_0x56e2d3){_0x566324['push'](_0x566324['shift']());}}}(a56_0x4876,0xc1b1b));function a56_0x4876(){var _0x36a1af=['12lPvNEO','PcXTags','1184104HmTFYK','9994212UNjegW','7GfhGKI','close','2140335fAQnBD','length','2047641dZiZcH','62302uVGLjz','6309840sHEJyd','data','32910liWadt','33dTnUgn','20383icKOlo'];a56_0x4876=function(){return _0x36a1af;};return a56_0x4876();}export default{'name':a56_0x17edcc(0xfb),'props':{'data':Array,'text':{'type':String,'default':'text'}},'emits':[a56_0x17edcc(0xff)],'computed':{'_data'(){var _0x1657aa=a56_0x17edcc;if(!this[_0x1657aa(0x105)]?.[_0x1657aa(0x101)])return[];return this[_0x1657aa(0x105)]['map'](_0xdcbd6f=>typeof _0xdcbd6f==='object'?_0xdcbd6f:{'text':_0xdcbd6f});}}};
|
|
@@ -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
|
+
const a57_0x388341=a57_0x51aa;(function(_0x1b5dff,_0x5eebdc){const _0x481054=a57_0x51aa,_0x239b19=_0x1b5dff();while(!![]){try{const _0xfb3e1a=-parseInt(_0x481054(0x151))/0x1+-parseInt(_0x481054(0x13b))/0x2*(-parseInt(_0x481054(0x149))/0x3)+parseInt(_0x481054(0x14d))/0x4*(-parseInt(_0x481054(0x158))/0x5)+parseInt(_0x481054(0x152))/0x6+parseInt(_0x481054(0x148))/0x7+-parseInt(_0x481054(0x140))/0x8+parseInt(_0x481054(0x13d))/0x9;if(_0xfb3e1a===_0x5eebdc)break;else _0x239b19['push'](_0x239b19['shift']());}catch(_0x174f5b){_0x239b19['push'](_0x239b19['shift']());}}}(a57_0x13b0,0x854df));function a57_0x13b0(){const _0xee0ee4=['请输入、编辑富文本内容~','tm-','_tinymce_instances_','image','anchor','config','change','6456653NVunTs','99RVGwGU','link','media','update:modelValue','27884OhEpSK','getContent','zh_CN','visualblocks','1078914IynEIG','9522qhAxln','XTinymce','length','help','instance','table','40NrwMYq','innerHTML','fullscreen','now','wordcount','\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','lists','setContent','preview','$emit','searchreplace','_content','./lib/tinymce/zh_CN.js','destroy','target','initEditor','48938PNvFmh','init','6722316EHeZWz','autolink','code','6381360keXPUG'];a57_0x13b0=function(){return _0xee0ee4;};return a57_0x13b0();}function a57_0x51aa(_0xd97f83,_0xd58531){const _0x13b017=a57_0x13b0();return a57_0x51aa=function(_0x51aa7b,_0x3ddec5){_0x51aa7b=_0x51aa7b-0x132;let _0x3ec422=_0x13b017[_0x51aa7b];return _0x3ec422;},a57_0x51aa(_0xd97f83,_0xd58531);}export default{'name':a57_0x388341(0x153),'props':{'modelValue':{'type':String,'default':''},'config':{'type':Object,'default':()=>({})}},'emits':[a57_0x388341(0x14c)],'data'(){const _0x3a298f=a57_0x388341;return{'id':_0x3a298f(0x142)+Date[_0x3a298f(0x15b)]()['toString'](0x10)};},'watch':{'modelValue'(_0x2453fd){const _0x8a1e48=a57_0x388341;if(_0x2453fd===this[_0x8a1e48(0x136)])return;this[_0x8a1e48(0x156)]?.[_0x8a1e48(0x132)](_0x2453fd);}},'mounted'(){const _0x517cb0=a57_0x388341;this[_0x517cb0(0x13a)]();},'beforeUnmount'(){const _0x444579=a57_0x388341;this['instance']&&(this[_0x444579(0x156)][_0x444579(0x138)](),this['instance']=null);},'methods':{async 'initEditor'(){const _0x2a3d11=a57_0x388341,_0x13c8e0=await window['tinymce'][_0x2a3d11(0x13c)]({'language':_0x2a3d11(0x14f),'language_url':_0x2a3d11(0x137),'selector':'textarea#'+this['id'],'height':0x1f4,'plugins':['advlist',_0x2a3d11(0x13e),_0x2a3d11(0x15e),_0x2a3d11(0x14a),_0x2a3d11(0x144),'charmap',_0x2a3d11(0x133),_0x2a3d11(0x145),_0x2a3d11(0x135),_0x2a3d11(0x150),_0x2a3d11(0x13f),_0x2a3d11(0x15a),'insertdatetime',_0x2a3d11(0x14b),_0x2a3d11(0x157),_0x2a3d11(0x155),_0x2a3d11(0x15c)],'toolbar':_0x2a3d11(0x15d),'placeholder':_0x2a3d11(0x141),...this[_0x2a3d11(0x146)]}),_0x3ab3d2=_0x13c8e0[_0x13c8e0[_0x2a3d11(0x154)]-0x1];_0x3ab3d2['on'](_0x2a3d11(0x147),_0x47b4a6=>{const _0x17cc13=_0x2a3d11;this[_0x17cc13(0x136)]=_0x3ab3d2[_0x17cc13(0x14e)](),this[_0x17cc13(0x134)](_0x17cc13(0x14c),this[_0x17cc13(0x136)]);}),_0x3ab3d2['on']('input',_0x5ced74=>{const _0x40c73c=_0x2a3d11;this['_content']=_0x5ced74[_0x40c73c(0x139)][_0x40c73c(0x159)],this[_0x40c73c(0x134)](_0x40c73c(0x14c),this[_0x40c73c(0x136)]);}),this[_0x2a3d11(0x156)]=_0x3ab3d2,window[_0x2a3d11(0x143)]=_0x13c8e0;}}};
|
|
@@ -1,48 +1 @@
|
|
|
1
|
-
|
|
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_0x48714b=a58_0x24e9;(function(_0x2ebed5,_0x156e41){var _0x2ed1b9=a58_0x24e9,_0x3d67a9=_0x2ebed5();while(!![]){try{var _0x4fc3af=parseInt(_0x2ed1b9(0x8f))/0x1+-parseInt(_0x2ed1b9(0x8c))/0x2*(-parseInt(_0x2ed1b9(0x80))/0x3)+-parseInt(_0x2ed1b9(0x84))/0x4+-parseInt(_0x2ed1b9(0x81))/0x5*(parseInt(_0x2ed1b9(0x8e))/0x6)+-parseInt(_0x2ed1b9(0x82))/0x7+-parseInt(_0x2ed1b9(0x88))/0x8+parseInt(_0x2ed1b9(0x86))/0x9;if(_0x4fc3af===_0x156e41)break;else _0x3d67a9['push'](_0x3d67a9['shift']());}catch(_0x19ab3b){_0x3d67a9['push'](_0x3d67a9['shift']());}}}(a58_0x1b45,0xf24f6));function a58_0x24e9(_0x448ed5,_0x1e0e58){var _0x1b45b0=a58_0x1b45();return a58_0x24e9=function(_0x24e94d,_0x1bbc15){_0x24e94d=_0x24e94d-0x7c;var _0x4534c5=_0x1b45b0[_0x24e94d];return _0x4534c5;},a58_0x24e9(_0x448ed5,_0x1e0e58);}import{injectVanFieldProvide}from'../../utils/funcs.js';function a58_0x1b45(){var _0x1e74eb=['multiple','limit','15oLpJVB','30ZXrqPl','11244793hhNqZn','update:modelValue','4715756ejnZsS','on-remove','33443937NsnZTz','warning','14974664PyVVQr','fileList','provide','isArray','508702xficLd','$attrs','118524zgmlKf','780449hZxYXf','图片数量不能超过\x20','resetValidation'];a58_0x1b45=function(){return _0x1e74eb;};return a58_0x1b45();}import{Message}from'../../utils/message.js';export default{'name':'XFileUploader','props':{'modelValue':Array|String,'multiple':Boolean,'accept':String,'action':String},'emits':[a58_0x48714b(0x83)],'data'(){return{'fileList':[]};},'computed':{'limit'(){var _0x52cb6b=a58_0x48714b;return this[_0x52cb6b(0x8d)][_0x52cb6b(0x7f)]||(this[_0x52cb6b(0x7e)]?0x3b9aca00:0x1);}},'watch':{'modelValue':{'handler'(_0x3d12b3){var _0x70f816=a58_0x48714b;this['fileList']=Array[_0x70f816(0x8b)](_0x3d12b3)?_0x3d12b3:_0x3d12b3?[{'url':_0x3d12b3}]:[];},'immediate':!![]}},'created'(){injectVanFieldProvide(this);},'methods':{'handleSelect'(){var _0x54b8e0=a58_0x48714b;this['$emit'](_0x54b8e0(0x83),this[_0x54b8e0(0x89)]),this[_0x54b8e0(0x8a)]?.[_0x54b8e0(0x7d)]();},'handleRemove'(..._0x548f6d){var _0x2c6c85=a58_0x48714b;this['$emit']('update:modelValue',this[_0x2c6c85(0x89)]),this['provide']?.['resetValidation'](),this['$attrs'][_0x2c6c85(0x85)]?.(..._0x548f6d);},'handleExceed'(_0x5da0f6,_0x3f28a2){var _0x423898=a58_0x48714b;Message({'type':_0x423898(0x87),'message':_0x423898(0x7c)+this[_0x423898(0x7f)]+'\x20个'});}}};
|
|
@@ -1,53 +1 @@
|
|
|
1
|
-
|
|
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_0x24ef93=a59_0x450b;function a59_0x5371(){var _0x36f9ef=['$emit','图片数量不能超过\x20','20334556kIcmCM','4282632bUKPGg','warning','$attrs','117gBsaus','1064499JbtVRm','793190osymJB','74274EfuPIW','on-remove','dialogVisible','2cqGWyf','fileList','9429056ggvzHm','resetValidation','1252JrDfOw','545PzvANo','provide','isArray','limit','previewingImage','XImageUploader','update:modelValue','666ICuBfM'];a59_0x5371=function(){return _0x36f9ef;};return a59_0x5371();}function a59_0x450b(_0x2a7e08,_0x5de8b0){var _0x5371fd=a59_0x5371();return a59_0x450b=function(_0x450b95,_0x45f6ac){_0x450b95=_0x450b95-0x88;var _0x255d9d=_0x5371fd[_0x450b95];return _0x255d9d;},a59_0x450b(_0x2a7e08,_0x5de8b0);}(function(_0x2b6705,_0x145456){var _0x3c6965=a59_0x450b,_0x54a186=_0x2b6705();while(!![]){try{var _0x5cd07d=parseInt(_0x3c6965(0x8c))/0x1*(parseInt(_0x3c6965(0x91))/0x2)+-parseInt(_0x3c6965(0x9d))/0x3*(parseInt(_0x3c6965(0x95))/0x4)+parseInt(_0x3c6965(0x96))/0x5*(-parseInt(_0x3c6965(0x8e))/0x6)+parseInt(_0x3c6965(0x93))/0x7+parseInt(_0x3c6965(0x88))/0x8+parseInt(_0x3c6965(0x8b))/0x9*(parseInt(_0x3c6965(0x8d))/0xa)+-parseInt(_0x3c6965(0xa0))/0xb;if(_0x5cd07d===_0x145456)break;else _0x54a186['push'](_0x54a186['shift']());}catch(_0x95bbb8){_0x54a186['push'](_0x54a186['shift']());}}}(a59_0x5371,0xad7be));import{injectVanFieldProvide}from'../../utils/funcs.js';import{Message}from'../../utils/message.js';export default{'name':a59_0x24ef93(0x9b),'props':{'modelValue':Array|String,'multiple':Boolean,'action':String},'emits':[a59_0x24ef93(0x9c)],'data'(){return{'fileList':[],'previewingImage':{},'dialogVisible':![]};},'computed':{'limit'(){var _0x2a10aa=a59_0x24ef93;return this[_0x2a10aa(0x8a)][_0x2a10aa(0x99)]||(this['multiple']?0x3b9aca00:0x1);}},'watch':{'modelValue':{'handler'(_0x3997dc){var _0x2e4238=a59_0x24ef93;this[_0x2e4238(0x92)]=Array[_0x2e4238(0x98)](_0x3997dc)?_0x3997dc:_0x3997dc?[{'url':_0x3997dc}]:[];},'immediate':!![]}},'created'(){injectVanFieldProvide(this);},'methods':{'handleSelect'(){var _0x1e51df=a59_0x24ef93;this['$emit'](_0x1e51df(0x9c),this[_0x1e51df(0x92)]),this[_0x1e51df(0x97)]?.[_0x1e51df(0x94)]();},'handleRemove'(..._0x32a21d){var _0x24ccd2=a59_0x24ef93;this[_0x24ccd2(0x9e)]('update:modelValue',this[_0x24ccd2(0x92)]),this[_0x24ccd2(0x97)]?.[_0x24ccd2(0x94)](),this['$attrs'][_0x24ccd2(0x8f)]?.(..._0x32a21d);},'handlePreview'(_0x4b7479){var _0x3c36b2=a59_0x24ef93;this[_0x3c36b2(0x9a)]=_0x4b7479,this[_0x3c36b2(0x90)]=!![];},'handleExceed'(_0x55b62e,_0x454b40){var _0x78f4d9=a59_0x24ef93;Message({'type':_0x78f4d9(0x89),'message':_0x78f4d9(0x9f)+this['limit']+'\x20个'});}}};
|
package/packages/comps.js
CHANGED
|
@@ -1,108 +1 @@
|
|
|
1
|
-
import
|
|
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
|
+
const a60_0x2bc8ab=a60_0x22ae;(function(_0x4ac571,_0x2cac81){const _0x8a2f93=a60_0x22ae,_0x17dc65=_0x4ac571();while(!![]){try{const _0x4fd490=-parseInt(_0x8a2f93(0x1dc))/0x1*(-parseInt(_0x8a2f93(0x1dd))/0x2)+-parseInt(_0x8a2f93(0x1d9))/0x3+parseInt(_0x8a2f93(0x1d8))/0x4+-parseInt(_0x8a2f93(0x1d7))/0x5*(parseInt(_0x8a2f93(0x1de))/0x6)+parseInt(_0x8a2f93(0x1e1))/0x7+parseInt(_0x8a2f93(0x1df))/0x8*(-parseInt(_0x8a2f93(0x1e0))/0x9)+-parseInt(_0x8a2f93(0x1db))/0xa;if(_0x4fd490===_0x2cac81)break;else _0x17dc65['push'](_0x17dc65['shift']());}catch(_0xe5b36c){_0x17dc65['push'](_0x17dc65['shift']());}}}(a60_0x504a,0x42985));import a60_0x3b2662 from'./components/xarray/xarray.vue';import a60_0x44be42 from'./components/xautorows/xautorows.vue';import a60_0x17fa2e from'./components/xbutton/mobile.vue';import a60_0x2089d9 from'./components/xbutton/pc.vue';function a60_0x504a(){const _0x599122=['8dcwjbg','930510XonQpf','1126755HVuhZp','115dXsPyu','1853968nvBYNE','1227087kQIIal','name','2005420TzaJIv','386163jaCMSN','2NQkVAj','6492cSOcJj'];a60_0x504a=function(){return _0x599122;};return a60_0x504a();}import a60_0x5e4da6 from'./components/xbuttons/mobile.vue';function a60_0x22ae(_0x51544b,_0x482155){const _0x504a8d=a60_0x504a();return a60_0x22ae=function(_0x22aea9,_0xd79ef6){_0x22aea9=_0x22aea9-0x1d7;let _0xe86011=_0x504a8d[_0x22aea9];return _0xe86011;},a60_0x22ae(_0x51544b,_0x482155);}import a60_0xdd19c4 from'./components/xbuttons/pc.vue';import a60_0x3fabe2 from'./components/xchart/xchart.vue';import a60_0x4e5f62 from'./components/xcheckboxs/mobile.vue';import a60_0x2a5924 from'./components/xcheckboxs/pc.vue';import a60_0x5e9928 from'./components/xcol/mobile.vue';import a60_0x56e827 from'./components/xcol/pc.vue';import a60_0x13e274 from'./components/xdialog/mobile.vue';import a60_0x328a57 from'./components/xdatepicker/mobile.vue';import a60_0x1f4d66 from'./components/xdatepicker/pc.vue';import a60_0x344299 from'./components/xdialog/pc.vue';import a60_0x26fd64 from'./components/xdict/xdict.vue';import a60_0x341559 from'./components/xdistrictselect/mobile.vue';import a60_0x4bd88f from'./components/xdistrictselect/pc.vue';import a60_0x19dce4 from'./components/xform/mobile.vue';import a60_0x31d08c from'./components/xform/pc.vue';import a60_0xbbbac0 from'./components/xformitem/mobile.vue';import a60_0x6a919 from'./components/xformitem/pc.vue';import a60_0x12cc19 from'./components/xicon/mobile.vue';import a60_0x3b6498 from'./components/xicon/pc.vue';import a60_0x1e4e65 from'./components/xinfo/xinfo.vue';import a60_0x2a912c from'./components/xlooper/xlooper.vue';import a60_0x2adcc2 from'./components/xpagination/mobile.vue';import a60_0x290310 from'./components/xpagination/pc.vue';import a60_0x406a56 from'./components/xpicker/xpicker.vue';import a60_0x3158b8 from'./components/xradios/mobile.vue';import a60_0x128a46 from'./components/xradios/pc.vue';import a60_0x5a917a from'./components/xrow/mobile.vue';import a60_0x15a8ba from'./components/xrow/pc.vue';import a60_0x2c9632 from'./components/xscan/mobile.vue';import a60_0x43b963 from'./components/xscan/pc.vue';import a60_0x4b8174 from'./components/xsearcher/xsearcher.vue';import a60_0xc8cc8a from'./components/xselect/mobile.vue';import a60_0x334dfd from'./components/xselect/pc.vue';import a60_0x23648d from'./components/xselectv2/xselectv2.vue';import a60_0x4350cf from'./components/xtable/mobile.vue';import a60_0x391b4b from'./components/xtable/pc.vue';import a60_0x106b58 from'./components/xtabletools/mobile.vue';import a60_0x364e72 from'./components/xtabletools/pc.vue';import a60_0x1ff327 from'./components/xtablev2/xtablev2.vue';import a60_0x11e7e1 from'./components/xtags/mobile.vue';import a60_0x4da7e0 from'./components/xtags/pc.vue';import a60_0x1ea249 from'./components/xtinymce/xtinymce.vue';import a60_0x41faba from'./components/xuploader/xfileuploader.vue';import a60_0x201625 from'./components/xuploader/ximageuploader.vue';const modules={'xarray':a60_0x3b2662,'xautorows':a60_0x44be42,'mobilexbutton':a60_0x17fa2e,'pcxbutton':a60_0x2089d9,'mobilexbuttons':a60_0x5e4da6,'pcxbuttons':a60_0xdd19c4,'xchart':a60_0x3fabe2,'mobilexcheckboxs':a60_0x4e5f62,'pcxcheckboxs':a60_0x2a5924,'mobilexcol':a60_0x5e9928,'pcxcol':a60_0x56e827,'mobilexdatepicker':a60_0x328a57,'pcxdatepicker':a60_0x1f4d66,'mobilexdialog':a60_0x13e274,'pcxdialog':a60_0x344299,'xdict':a60_0x26fd64,'mobilexdistrictselect':a60_0x341559,'pcxdistrictselect':a60_0x4bd88f,'mobilexform':a60_0x19dce4,'pcxform':a60_0x31d08c,'mobilexformitem':a60_0xbbbac0,'pcxformitem':a60_0x6a919,'mobilexicon':a60_0x12cc19,'pcxicon':a60_0x3b6498,'xinfo':a60_0x1e4e65,'xlooper':a60_0x2a912c,'mobilexpagination':a60_0x2adcc2,'pcxpagination':a60_0x290310,'xpicker':a60_0x406a56,'mobilexradios':a60_0x3158b8,'pcxradios':a60_0x128a46,'mobilexrow':a60_0x5a917a,'pcxrow':a60_0x15a8ba,'mobilexscan':a60_0x2c9632,'pcxscan':a60_0x43b963,'xsearcher':a60_0x4b8174,'mobilexselect':a60_0xc8cc8a,'pcxselect':a60_0x334dfd,'xselectv2':a60_0x23648d,'mobilextable':a60_0x4350cf,'pcxtable':a60_0x391b4b,'mobilextabletools':a60_0x106b58,'pcxtabletools':a60_0x364e72,'xtablev2':a60_0x1ff327,'mobilextags':a60_0x11e7e1,'pcxtags':a60_0x4da7e0,'xtinymce':a60_0x1ea249,'xfileuploader':a60_0x41faba,'ximageuploader':a60_0x201625},comps={};for(let key in modules){comps[modules[key][a60_0x2bc8ab(0x1da)]]=modules[key];}export default comps;
|
|
@@ -1,125 +1 @@
|
|
|
1
|
-
|
|
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
|
+
function a61_0x16a2(_0xb4a570,_0x3e8889){const _0x3e2158=a61_0x3e21();return a61_0x16a2=function(_0x16a2d3,_0x46f581){_0x16a2d3=_0x16a2d3-0x187;let _0x1c9f2c=_0x3e2158[_0x16a2d3];return _0x1c9f2c;},a61_0x16a2(_0xb4a570,_0x3e8889);}const a61_0x3a5fcd=a61_0x16a2;(function(_0x35145c,_0x59c824){const _0x52eca0=a61_0x16a2,_0x4537cb=_0x35145c();while(!![]){try{const _0x3a7e59=-parseInt(_0x52eca0(0x198))/0x1*(-parseInt(_0x52eca0(0x19d))/0x2)+parseInt(_0x52eca0(0x1bd))/0x3+-parseInt(_0x52eca0(0x1ab))/0x4+parseInt(_0x52eca0(0x192))/0x5+parseInt(_0x52eca0(0x1c6))/0x6+-parseInt(_0x52eca0(0x1c1))/0x7*(parseInt(_0x52eca0(0x18f))/0x8)+-parseInt(_0x52eca0(0x1b9))/0x9;if(_0x3a7e59===_0x59c824)break;else _0x4537cb['push'](_0x4537cb['shift']());}catch(_0x1f5edb){_0x4537cb['push'](_0x4537cb['shift']());}}}(a61_0x3e21,0xbc4a0));import{nextTick,watch}from'vue';import a61_0x208828 from'../utils/index.js';const {funcs,highdict,dates}=window[a61_0x3a5fcd(0x19a)],{storage}=window['StardustBrowser'],VUE_LIFE_HOOKS=[a61_0x3a5fcd(0x1a1),'onMounted',a61_0x3a5fcd(0x1af),a61_0x3a5fcd(0x19b),a61_0x3a5fcd(0x1ba),a61_0x3a5fcd(0x1b0),a61_0x3a5fcd(0x18a),a61_0x3a5fcd(0x1a2),a61_0x3a5fcd(0x1b4),'onActivated',a61_0x3a5fcd(0x1a6)];class BaseController{constructor({model:_0x1bda9c,vue:_0x4e6901}){const _0x40c655=a61_0x3a5fcd;this[_0x40c655(0x193)]=_0x1bda9c,this[_0x40c655(0x190)]();if(_0x4e6901){const _0x306801=_0x4e6901['getCurrentInstance']();Object[_0x40c655(0x191)](this,{'vue':{'get':()=>_0x4e6901},'vm':{'get':()=>_0x306801}}),this[_0x40c655(0x1a7)]();}nextTick(()=>this[_0x40c655(0x1c3)]());}[a61_0x3a5fcd(0x1c3)](){const _0x30b7e8=a61_0x3a5fcd;this[_0x30b7e8(0x1bc)]=watch(this[_0x30b7e8(0x1ad)][_0x30b7e8(0x1a9)],_0x47ad2b=>{const _0x5afea2=_0x30b7e8;_0x47ad2b[_0x5afea2(0x1c0)]?.['_action_']&&this[_0x5afea2(0x196)]();},{'immediate':!![]});}get['app'](){const _0x463162=a61_0x3a5fcd;throw _0x463162(0x1ae);}get['$el'](){const _0x501974=a61_0x3a5fcd;return this['vm']&&this['vm'][_0x501974(0x188)]['$el']||null;}get[a61_0x3a5fcd(0x1ad)](){throw'请自行注入\x20router';}get[a61_0x3a5fcd(0x18d)](){const _0x27bf16=a61_0x3a5fcd;return this[_0x27bf16(0x1ad)][_0x27bf16(0x1a9)]['value'];}get[a61_0x3a5fcd(0x197)](){const _0x315b8b=a61_0x3a5fcd;return this['route'][_0x315b8b(0x197)];}get['query'](){const _0x5aecd9=a61_0x3a5fcd;return this[_0x5aecd9(0x18d)][_0x5aecd9(0x1c0)];}get[a61_0x3a5fcd(0x18c)](){const _0x2cc019=a61_0x3a5fcd;throw _0x2cc019(0x189);}get[a61_0x3a5fcd(0x1b6)](){return a61_0x208828;}get[a61_0x3a5fcd(0x1bb)](){const _0x40a4e6=a61_0x3a5fcd;throw _0x40a4e6(0x1b8);}get['$api'](){const _0x5ba114=a61_0x3a5fcd;return this[_0x5ba114(0x1bb)]['api'];}get[a61_0x3a5fcd(0x1b1)](){const _0x355be4=a61_0x3a5fcd;return this[_0x355be4(0x1bb)]['request'];}get[a61_0x3a5fcd(0x1ac)](){const _0x31d47b=a61_0x3a5fcd;return this[_0x31d47b(0x1bb)][_0x31d47b(0x19f)];}get[a61_0x3a5fcd(0x199)](){return this['app']['config']['globalProperties'];}get['$js'](){const _0x6175d6=a61_0x3a5fcd;return window[_0x6175d6(0x19a)];}get[a61_0x3a5fcd(0x195)](){const _0x29e6df=a61_0x3a5fcd;return window[_0x29e6df(0x18b)];}get[a61_0x3a5fcd(0x1a5)](){return dates;}get[a61_0x3a5fcd(0x18e)](){return highdict;}get['$copy'](){return funcs['deepCopy'];}get[a61_0x3a5fcd(0x1c7)](){const _0x4a5ac7=a61_0x3a5fcd;return funcs[_0x4a5ac7(0x1bf)];}get['$storage'](){return storage;}get['$local'](){const _0x5ab891=a61_0x3a5fcd;return storage[_0x5ab891(0x1b3)];}get[a61_0x3a5fcd(0x19e)](){const _0x1e8626=a61_0x3a5fcd;return storage[_0x1e8626(0x1aa)];}['_bindMethods'](){const _0x1c5221=a61_0x3a5fcd,_0x3aea70=[...Object[_0x1c5221(0x1c4)](this),...this[_0x1c5221(0x187)]()],_0x28f46d=Object[_0x1c5221(0x1a8)](this[_0x1c5221(0x1a4)]),_0x2ca2b3=Object[_0x1c5221(0x1c4)](_0x28f46d)[_0x1c5221(0x19c)](_0x429788=>_0x429788!==_0x1c5221(0x1a3)),_0x352e1b=Array[_0x1c5221(0x1b2)](new Set([..._0x3aea70,..._0x2ca2b3])),_0x2ba6f9=_0x352e1b[_0x1c5221(0x19c)](_0x349a12=>typeof this[_0x349a12]===_0x1c5221(0x1b5));_0x2ba6f9['forEach'](_0x9247e4=>{const _0x21e340=_0x1c5221;this[_0x9247e4]=this[_0x9247e4][_0x21e340(0x1c5)](this);});}['_initLifeHooks'](){const _0x2ee0a4=a61_0x3a5fcd;this[_0x2ee0a4(0x1a0)][_0x2ee0a4(0x1ba)](()=>{const _0x3cf656=_0x2ee0a4;this[_0x3cf656(0x1bc)]?.();}),VUE_LIFE_HOOKS[_0x2ee0a4(0x1b7)](_0x3ca12a=>{const _0x47d1ec=_0x2ee0a4;this[_0x3ca12a]&&this[_0x47d1ec(0x1a0)][_0x3ca12a](this[_0x3ca12a][_0x47d1ec(0x1c5)](this));});}[a61_0x3a5fcd(0x196)](){const _0x2b94db=a61_0x3a5fcd,{_action_:_0x23e2a7,_action_params_:_0x44d6be,..._0x3be4f0}=this['query'];_0x23e2a7&&this[_0x23e2a7]&&(this[_0x23e2a7]?.(JSON[_0x2b94db(0x1be)](_0x44d6be||'{}')),this[_0x2b94db(0x1ad)][_0x2b94db(0x1c2)](this[_0x2b94db(0x18d)][_0x2b94db(0x194)]+'?'+funcs['encodeQuery'](_0x3be4f0)));}['_getMethods'](){const _0x2dff2a=a61_0x3a5fcd;return[_0x2dff2a(0x190),_0x2dff2a(0x1a7),_0x2dff2a(0x196),'_getMethods','onInit'];}}function a61_0x3e21(){const _0x251314=['请自行注入\x20app','onBeforeUpdate','onUnmounted','$request','from','local','onRenderTriggered','function','uiUtils','forEach','请自行注入\x20service','11498148ufqofk','onBeforeUnmount','service','__eval_action_watcher__','1093881LlnKCz','parse','sleep','query','14cbAgZg','replace','onInit','keys','bind','8558382ePPcWD','$sleep','_getMethods','ctx','请自行注入\x20store','onErrorCaptured','StardustBrowser','store','route','$highdict','2141096tHMByC','_bindMethods','defineProperties','3379230KzQbQv','model','path','$browser','_evalAction','params','1427CnjYcH','config','StardustJs','onUpdated','filter','482XcEnVw','$session','restful','vue','onBeforeMount','onRenderTracked','constructor','__proto__','$dates','onDeactivated','_initLifeHooks','getOwnPropertyDescriptors','currentRoute','session','906796MZwPLd','$restful','router'];a61_0x3e21=function(){return _0x251314;};return a61_0x3e21();}export default BaseController;
|