@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,263 +1 @@
1
- import { baseDialog, baseTable } from '../../utils/model.js'
2
- import utils from './utils.js'
3
- import {
4
- TYPES, SORTS,
5
- COMMON_FORMATTERS, DATE_FORMATTERS, NUMBER_FORMATTERS, FORMATTERS,
6
- } from './constants.js'
7
- const { funcs, highdict } = StardustJs
8
- const { StardustEcharts } = StardustBrowser
9
-
10
- const OPTIONS_COMPONENTS = [
11
- 'x-select', 'x-select-v2', 'x-radios', 'x-checkboxs',
12
- 'XSelect', 'XSelectV2', 'XRadios', 'XCheckboxs'
13
- ]
14
-
15
- export default {
16
- name: 'XChart',
17
- props: {
18
- ...utils.props
19
- },
20
- data () {
21
- return {
22
- zoom: 1,
23
- loading: false,
24
- filterType: '分类',
25
- SORTS,
26
- dialog: {
27
- ...baseDialog(),
28
- formItems: utils.formItems,
29
- form: utils.form
30
- },
31
- hasRendered: false,
32
- dataDialog: {
33
- visible: false,
34
- table: baseTable()
35
- }
36
- }
37
- },
38
- computed: {
39
- ...utils.computed
40
- },
41
- watch: {
42
- option: {
43
- handler: 'update',
44
- immediate: true
45
- },
46
- zoomedHeight () {
47
- this.$nextTick(this.resize)
48
- },
49
- sidebarCollapse () {
50
- const duration = (this.$store.app.toggleDuration || 0) * 1000 + 50
51
- const interval = 50
52
- for (let i = 0; i < Math.ceil(duration / interval); i++) {
53
- setTimeout(this.resize, interval * i)
54
- }
55
- }
56
- },
57
- mounted () {
58
- this.init()
59
- },
60
- beforeUnmount () {
61
- this.timer && clearInterval(this.timer)
62
- this.observer.disconnect()
63
- },
64
- methods: {
65
- async init () {
66
- await window.DynamicLibs?.use('echarts')
67
- window.echarts._transforms_ ||= {}
68
- if (!window.echarts._transforms_['StardustEcharts.grouping']) {
69
- window.echarts.registerTransform(StardustEcharts.grouping)
70
- window.echarts._transforms_['StardustEcharts.grouping'] = StardustEcharts.grouping
71
- }
72
- if (this.chart) this.$refs.el.removeAttribute('_echarts_instance_')
73
- this.chart = window.echarts.init(this.$refs.el, null, this.option)
74
- this.observer = new ResizeObserver(this.resize)
75
- this.observer.observe(this.$refs.el)
76
- this.update(this.getOption())
77
- if (this.updator) {
78
- this.timer = setInterval(this.updator.handler.bind(this), this.updator.interval || 1000)
79
- }
80
- },
81
- initDatasource () {
82
- if (!this.datasource) return
83
- const columns = this.datasource.columns.filter(col => !TYPES.includes(col.type)).map(col => {
84
- const column = { ...col, prop: col.label }
85
- column.formatters = Object.keys(COMMON_FORMATTERS)
86
- if (col.type === 'date' || ['el-date-picker', 'ElDatePicker'].includes(col.comp)) {
87
- column.formatters.push(...Object.keys(DATE_FORMATTERS))
88
- } else if (col.type === 'number' || ['el-input-number', 'ElInputNumber'].includes(col.comp)) {
89
- column.formatters.push(...Object.keys(NUMBER_FORMATTERS))
90
- }
91
- return column
92
- })
93
- this.dialog.formItems.slice(0, 3).forEach(it => it.options = columns)
94
- this.handleMakeChart()
95
- },
96
- handleCalcFormatters (item) {
97
- const value = this.dialog.form[item.prop]
98
- if (!value) {
99
- this.dialog.form[item.prop + '_formatter'] = ''
100
- return item.formatters = []
101
- }
102
- this.dialog.form[item.prop + '_formatter'] = '原样'
103
- item.formatters = item.options.find(op => op.prop === value).formatters
104
- },
105
- async handleMakeChart () {
106
- if (this.loading) return
107
- if (!await this.dialog.formRef?.validate()) return
108
- this.dialog.visible = false
109
- this.loading = true
110
- const rich = { ...this.dialog.form }
111
- const { category, series, value } = rich
112
- const attributes = [category, series, value].map(e => {
113
- return e && this.datasource.columns.find(c => c.label === e)?.prop
114
- }).filter(e => e)
115
- if (!rich.filter?.category.isLimit) rich.filter.category.mergeOthers = false
116
- if (!rich.filter?.series.isLimit) rich.filter.series.mergeOthers = false
117
- let list = this.datasource.list
118
- if (this.datasource.search) {
119
- list = await this.datasource.search({ attributes })
120
- }
121
- rich.data = list
122
- this.setRich(rich)
123
- this.loading = false
124
- },
125
- handleViewData () {
126
- this.dataDialog.table.columns = this.excel.header.map((label, index) => {
127
- return {
128
- label,
129
- prop: index + '',
130
- sortable: false,
131
- tableAttrs: { minWidth: Math.min(label.length * 12 + 20, 150) }
132
- }
133
- })
134
- this.dataDialog.table.list = this.excel.data
135
- this.dataDialog.visible = true
136
- },
137
- handleDownloadData () {
138
- StardustBrowser.excel.export2Excel(this.excel)
139
- },
140
- setRich (rich) {
141
- const {
142
- data,
143
- category, series, value,
144
- category_formatter, series_formatter, value_formatter,
145
- summary, filter, sort,
146
- chartType, coordinateSystem, grid, fontSizes
147
- } = rich
148
- if (!series || !value) return
149
- const indicators = [category, series, value].filter(ele => ele)
150
- const cols = indicators.map(ele => {
151
- return this.datasource.columns.find(col => !col.virtual && col.prop && col.label === ele)
152
- }).filter(col => col)
153
- cols.sort((a, b) => indicators.indexOf(a) - indicators.indexOf(b))
154
- const props = cols.map(col => col.tableAttrs?.linkProp ?? col.prop)
155
- const numberMarks = cols.map(col => {
156
- return col.type === 'number' || ['el-input-number', 'ElInputNumber'].includes(col.comp)
157
- })
158
- const optionsMarks = cols.map(col => {
159
- return OPTIONS_COMPONENTS.includes(col.comp) && col.options?.length && !col.tableAttrs?.linkProp
160
- })
161
- const optionsDicts = cols.map((col, i) => {
162
- if (!optionsMarks[i]) return
163
- const dict = {}
164
- col.options.forEach(o => {
165
- const isPlain = typeof o !== 'object'
166
- const text = isPlain ? o : (col.text || 'text')
167
- const value = isPlain ? o : (col.value || 'value')
168
- dict[isPlain ? o : o[value]] = isPlain ? o : o[text]
169
- })
170
- return dict
171
- })
172
- const dimensions = cols.map(col => col.label)
173
- const source = data.map(ele => {
174
- return props.map((d, i) => {
175
- let value
176
- if (optionsMarks[i]) {
177
- value = optionsDicts[i][ele[d]]
178
- } else {
179
- value = highdict.get(ele, d)
180
- if (numberMarks[i]) {
181
- if (typeof value !== 'number') {
182
- value = value * 1 || 0
183
- }
184
- }
185
- }
186
- return value
187
- })
188
- })
189
- let updated = false
190
- const params = {
191
- dimensions,
192
- source,
193
- category,
194
- series,
195
- value,
196
- category_formatter, series_formatter, value_formatter,
197
- filter, sort,
198
- summary,
199
- chartType,
200
- coordinateSystem: chartType === 'bar' || chartType === 'line' ? coordinateSystem : undefined,
201
- FORMATTERS,
202
- updateOnce: async option => {
203
- if (updated) return
204
- updated = true
205
- await funcs.sleep(0)
206
- this.update(option)
207
- }
208
- }
209
- const option = StardustEcharts.generateOption(params, this.getOption())
210
- this.update(option)
211
- this.hasRendered = true
212
- this.excel = {
213
- header: option.dataset[0].dimensions,
214
- data: option.dataset[0].source,
215
- filename: StardustJs.funcs.randomUUID()
216
- }
217
- if (option.transposition) {
218
- const header = this.excel.header
219
- this.excel.header = [series, ...this.excel.data.map(row => row[0])]
220
- this.excel.data = header.slice(1).map((ele, index) => {
221
- return [ele, ...this.excel.data.map((row, i) => row[index + 1])]
222
- })
223
- }
224
- },
225
- resize () {
226
- this.zoom = 1 / (parseFloat(document.documentElement.style.zoom) || 1)
227
- this.chart?.resize()
228
- },
229
- getOption () {
230
- const { devicePixelRatio, maxLimit, query, remote, ...others } = this.option
231
- const option = {
232
- tooltip: {},
233
- toolbox: { feature: { saveAsImage: {} } },
234
- ...others,
235
- xAxis: { type: 'category' },
236
- yAxis: {
237
- type: 'value',
238
- axisLabel: {
239
- fontSize: this.fontSizes[1]
240
- }
241
- },
242
- grid: {
243
- left: 40, top: 40, right: 20, bottom: 35,
244
- ...this.dialog.form.grid
245
- },
246
- legend: { padding: [10, 60] }
247
- }
248
- return option
249
- },
250
- update (option) {
251
- const { chartType, coordinateSystem, grid } = this.dialog.form
252
- if (chartType === 'bar' || chartType === 'line') {
253
- const axis = coordinateSystem === '直角坐标系-横轴' ? 'xAxis' : 'yAxis'
254
- highdict.set(option, axis + '.axisLabel.fontSize', this.fontSizes[1])
255
- }
256
- option.series?.forEach(ele => {
257
- highdict.set(ele, 'label.fontSize', this.fontSizes[2])
258
- })
259
- option.grid = { ...option.grid, ...grid }
260
- this.chart?.setOption(option, true)
261
- }
262
- }
263
- }
1
+ const a11_0x2f6680=a11_0x5c66;function a11_0xa124(){const _0x523748=['chart','object','form','disconnect','push','xAxis','loading','handler','visible','length','toggleDuration','validate','find','get','resize','update','echarts','setOption','bar','grid','$store','transposition','102JSAVCH','source','formRef','slice','3772240hSpmdx','linkProp','label','columns','value','indexOf','dialog','fontSizes','grouping','sleep','formItems','app','1UOqfAV','423927kwasZQ','props','直角坐标系-横轴','comp','75567BDxTFu','table','filter','3193929BVsIVN','ElInputNumber','includes','forEach','use','sort','randomUUID','map','x-select','formatters','documentElement','line','x-radios','10sXkDNt','hasRendered','option','style','XChart','2657326tBqDoY','_formatter','.axisLabel.fontSize','options','StardustEcharts.grouping','dataDialog','min','keys','type','generateOption','text','XCheckboxs','list','$nextTick','datasource','x-checkboxs','x-select-v2','getOption','prop','11073352WEucPl','dataset','13375241NMDTGH','tableAttrs','zoom','timer','XSelectV2','XRadios','observer','header','category','label.fontSize','136kuKiHk','init','updator','setRich','set','number','XSelect','_transforms_','bind','$refs','series','isLimit','ceil','data','excel','dimensions','handleMakeChart','search','el-date-picker','_echarts_instance_'];a11_0xa124=function(){return _0x523748;};return a11_0xa124();}(function(_0x1f0147,_0x28041d){const _0xfda3ae=a11_0x5c66,_0x1d46d5=_0x1f0147();while(!![]){try{const _0x1c4fb0=-parseInt(_0xfda3ae(0x18a))/0x1*(parseInt(_0xfda3ae(0x1a4))/0x2)+parseInt(_0xfda3ae(0x18f))/0x3*(parseInt(_0xfda3ae(0x150))/0x4)+-parseInt(_0xfda3ae(0x17e))/0x5+-parseInt(_0xfda3ae(0x17a))/0x6*(parseInt(_0xfda3ae(0x18b))/0x7)+parseInt(_0xfda3ae(0x144))/0x8+parseInt(_0xfda3ae(0x192))/0x9+parseInt(_0xfda3ae(0x19f))/0xa*(parseInt(_0xfda3ae(0x146))/0xb);if(_0x1c4fb0===_0x28041d)break;else _0x1d46d5['push'](_0x1d46d5['shift']());}catch(_0x1f2603){_0x1d46d5['push'](_0x1d46d5['shift']());}}}(a11_0xa124,0xaa987));import{baseDialog,baseTable}from'../../utils/model.js';import a11_0x13baee from'./utils.js';function a11_0x5c66(_0x4746b4,_0x107a84){const _0xa1246b=a11_0xa124();return a11_0x5c66=function(_0x5c6649,_0x1fb43e){_0x5c6649=_0x5c6649-0x13c;let _0x2be10f=_0xa1246b[_0x5c6649];return _0x2be10f;},a11_0x5c66(_0x4746b4,_0x107a84);}import{TYPES,SORTS,COMMON_FORMATTERS,DATE_FORMATTERS,NUMBER_FORMATTERS,FORMATTERS}from'./constants.js';const {funcs,highdict}=StardustJs,{StardustEcharts}=StardustBrowser,OPTIONS_COMPONENTS=[a11_0x2f6680(0x19a),a11_0x2f6680(0x141),a11_0x2f6680(0x19e),a11_0x2f6680(0x140),a11_0x2f6680(0x156),a11_0x2f6680(0x14a),a11_0x2f6680(0x14b),a11_0x2f6680(0x13c)];export default{'name':a11_0x2f6680(0x1a3),'props':{...a11_0x13baee[a11_0x2f6680(0x18c)]},'data'(){const _0x4baaad=a11_0x2f6680;return{'zoom':0x1,'loading':![],'filterType':'分类','SORTS':SORTS,'dialog':{...baseDialog(),'formItems':a11_0x13baee[_0x4baaad(0x188)],'form':a11_0x13baee['form']},'hasRendered':![],'dataDialog':{'visible':![],'table':baseTable()}};},'computed':{...a11_0x13baee['computed']},'watch':{'option':{'handler':a11_0x2f6680(0x173),'immediate':!![]},'zoomedHeight'(){const _0x18c5fe=a11_0x2f6680;this[_0x18c5fe(0x13e)](this['resize']);},'sidebarCollapse'(){const _0x3de2ae=a11_0x2f6680,_0x460dc7=(this[_0x3de2ae(0x178)][_0x3de2ae(0x189)][_0x3de2ae(0x16e)]||0x0)*0x3e8+0x32,_0x2af1db=0x32;for(let _0x172c3c=0x0;_0x172c3c<Math[_0x3de2ae(0x15c)](_0x460dc7/_0x2af1db);_0x172c3c++){setTimeout(this['resize'],_0x2af1db*_0x172c3c);}}},'mounted'(){this['init']();},'beforeUnmount'(){const _0x412d6e=a11_0x2f6680;this[_0x412d6e(0x149)]&&clearInterval(this[_0x412d6e(0x149)]),this[_0x412d6e(0x14c)][_0x412d6e(0x167)]();},'methods':{async 'init'(){const _0x5243ee=a11_0x2f6680;await window['DynamicLibs']?.[_0x5243ee(0x196)](_0x5243ee(0x174)),window[_0x5243ee(0x174)][_0x5243ee(0x157)]||={};!window[_0x5243ee(0x174)][_0x5243ee(0x157)]['StardustEcharts.grouping']&&(window[_0x5243ee(0x174)]['registerTransform'](StardustEcharts[_0x5243ee(0x186)]),window['echarts'][_0x5243ee(0x157)][_0x5243ee(0x1a8)]=StardustEcharts[_0x5243ee(0x186)]);if(this[_0x5243ee(0x164)])this['$refs']['el']['removeAttribute'](_0x5243ee(0x163));this['chart']=window[_0x5243ee(0x174)][_0x5243ee(0x151)](this[_0x5243ee(0x159)]['el'],null,this[_0x5243ee(0x1a1)]),this[_0x5243ee(0x14c)]=new ResizeObserver(this[_0x5243ee(0x172)]),this[_0x5243ee(0x14c)]['observe'](this['$refs']['el']),this[_0x5243ee(0x173)](this[_0x5243ee(0x142)]()),this[_0x5243ee(0x152)]&&(this[_0x5243ee(0x149)]=setInterval(this[_0x5243ee(0x152)][_0x5243ee(0x16b)][_0x5243ee(0x158)](this),this[_0x5243ee(0x152)]['interval']||0x3e8));},'initDatasource'(){const _0x3bfc82=a11_0x2f6680;if(!this[_0x3bfc82(0x13f)])return;const _0x23736a=this['datasource']['columns']['filter'](_0x31cb89=>!TYPES[_0x3bfc82(0x194)](_0x31cb89[_0x3bfc82(0x1ac)]))[_0x3bfc82(0x199)](_0x364a98=>{const _0x2a930d=_0x3bfc82,_0x1f8d88={..._0x364a98,'prop':_0x364a98[_0x2a930d(0x180)]};_0x1f8d88[_0x2a930d(0x19b)]=Object[_0x2a930d(0x1ab)](COMMON_FORMATTERS);if(_0x364a98[_0x2a930d(0x1ac)]==='date'||[_0x2a930d(0x162),'ElDatePicker'][_0x2a930d(0x194)](_0x364a98[_0x2a930d(0x18e)]))_0x1f8d88[_0x2a930d(0x19b)][_0x2a930d(0x168)](...Object['keys'](DATE_FORMATTERS));else(_0x364a98[_0x2a930d(0x1ac)]===_0x2a930d(0x155)||['el-input-number',_0x2a930d(0x193)]['includes'](_0x364a98['comp']))&&_0x1f8d88[_0x2a930d(0x19b)][_0x2a930d(0x168)](...Object[_0x2a930d(0x1ab)](NUMBER_FORMATTERS));return _0x1f8d88;});this[_0x3bfc82(0x184)][_0x3bfc82(0x188)][_0x3bfc82(0x17d)](0x0,0x3)['forEach'](_0x4b62b1=>_0x4b62b1[_0x3bfc82(0x1a7)]=_0x23736a),this[_0x3bfc82(0x160)]();},'handleCalcFormatters'(_0x316077){const _0x1a8a9=a11_0x2f6680,_0x4045eb=this['dialog'][_0x1a8a9(0x166)][_0x316077[_0x1a8a9(0x143)]];if(!_0x4045eb)return this[_0x1a8a9(0x184)]['form'][_0x316077[_0x1a8a9(0x143)]+_0x1a8a9(0x1a5)]='',_0x316077['formatters']=[];this['dialog'][_0x1a8a9(0x166)][_0x316077[_0x1a8a9(0x143)]+_0x1a8a9(0x1a5)]='原样',_0x316077[_0x1a8a9(0x19b)]=_0x316077[_0x1a8a9(0x1a7)][_0x1a8a9(0x170)](_0x577b2e=>_0x577b2e[_0x1a8a9(0x143)]===_0x4045eb)[_0x1a8a9(0x19b)];},async 'handleMakeChart'(){const _0x3367c5=a11_0x2f6680;if(this[_0x3367c5(0x16a)])return;if(!await this[_0x3367c5(0x184)][_0x3367c5(0x17c)]?.[_0x3367c5(0x16f)]())return;this[_0x3367c5(0x184)][_0x3367c5(0x16c)]=![],this['loading']=!![];const _0x54f3ea={...this[_0x3367c5(0x184)][_0x3367c5(0x166)]},{category:_0x104128,series:_0x25b184,value:_0x12532b}=_0x54f3ea,_0x5cfeba=[_0x104128,_0x25b184,_0x12532b][_0x3367c5(0x199)](_0x37d5de=>{const _0x2dc9f9=_0x3367c5;return _0x37d5de&&this[_0x2dc9f9(0x13f)][_0x2dc9f9(0x181)][_0x2dc9f9(0x170)](_0x3f09ea=>_0x3f09ea[_0x2dc9f9(0x180)]===_0x37d5de)?.['prop'];})[_0x3367c5(0x191)](_0x3dc499=>_0x3dc499);if(!_0x54f3ea[_0x3367c5(0x191)]?.['category'][_0x3367c5(0x15b)])_0x54f3ea[_0x3367c5(0x191)][_0x3367c5(0x14e)]['mergeOthers']=![];if(!_0x54f3ea[_0x3367c5(0x191)]?.[_0x3367c5(0x15a)][_0x3367c5(0x15b)])_0x54f3ea[_0x3367c5(0x191)]['series']['mergeOthers']=![];let _0x1805c8=this['datasource'][_0x3367c5(0x13d)];this[_0x3367c5(0x13f)][_0x3367c5(0x161)]&&(_0x1805c8=await this[_0x3367c5(0x13f)]['search']({'attributes':_0x5cfeba})),_0x54f3ea[_0x3367c5(0x15d)]=_0x1805c8,this[_0x3367c5(0x153)](_0x54f3ea),this[_0x3367c5(0x16a)]=![];},'handleViewData'(){const _0x168350=a11_0x2f6680;this[_0x168350(0x1a9)][_0x168350(0x190)]['columns']=this[_0x168350(0x15e)][_0x168350(0x14d)][_0x168350(0x199)]((_0x16da02,_0xc88915)=>{const _0x5219fc=_0x168350;return{'label':_0x16da02,'prop':_0xc88915+'','sortable':![],'tableAttrs':{'minWidth':Math[_0x5219fc(0x1aa)](_0x16da02[_0x5219fc(0x16d)]*0xc+0x14,0x96)}};}),this[_0x168350(0x1a9)][_0x168350(0x190)][_0x168350(0x13d)]=this['excel'][_0x168350(0x15d)],this[_0x168350(0x1a9)][_0x168350(0x16c)]=!![];},'handleDownloadData'(){const _0x4f7db4=a11_0x2f6680;StardustBrowser[_0x4f7db4(0x15e)]['export2Excel'](this[_0x4f7db4(0x15e)]);},'setRich'(_0x55f240){const _0x1987e8=a11_0x2f6680,{data:_0xefb904,category:_0x24eab4,series:_0xb2c53f,value:_0x2cdc76,category_formatter:_0x42e9a3,series_formatter:_0xd702f2,value_formatter:_0x35f5dd,summary:_0x4cbc2a,filter:_0x340e44,sort:_0x1c3287,chartType:_0x2b0039,coordinateSystem:_0xaca111,grid:_0x1839ee,fontSizes:_0xd2a3c4}=_0x55f240;if(!_0xb2c53f||!_0x2cdc76)return;const _0x211a11=[_0x24eab4,_0xb2c53f,_0x2cdc76][_0x1987e8(0x191)](_0x18d750=>_0x18d750),_0x59bc1c=_0x211a11[_0x1987e8(0x199)](_0xfb5644=>{const _0x48bf6c=_0x1987e8;return this[_0x48bf6c(0x13f)]['columns'][_0x48bf6c(0x170)](_0x157223=>!_0x157223['virtual']&&_0x157223['prop']&&_0x157223[_0x48bf6c(0x180)]===_0xfb5644);})['filter'](_0x1de2ce=>_0x1de2ce);_0x59bc1c[_0x1987e8(0x197)]((_0x4f2457,_0xad1995)=>_0x211a11[_0x1987e8(0x183)](_0x4f2457)-_0x211a11[_0x1987e8(0x183)](_0xad1995));const _0x852834=_0x59bc1c[_0x1987e8(0x199)](_0x28aab0=>_0x28aab0[_0x1987e8(0x147)]?.['linkProp']??_0x28aab0[_0x1987e8(0x143)]),_0x16742e=_0x59bc1c[_0x1987e8(0x199)](_0x235877=>{const _0x44fa83=_0x1987e8;return _0x235877[_0x44fa83(0x1ac)]==='number'||['el-input-number',_0x44fa83(0x193)]['includes'](_0x235877['comp']);}),_0x17891b=_0x59bc1c[_0x1987e8(0x199)](_0x2586c1=>{const _0x2c7d2f=_0x1987e8;return OPTIONS_COMPONENTS[_0x2c7d2f(0x194)](_0x2586c1['comp'])&&_0x2586c1[_0x2c7d2f(0x1a7)]?.[_0x2c7d2f(0x16d)]&&!_0x2586c1['tableAttrs']?.[_0x2c7d2f(0x17f)];}),_0x586652=_0x59bc1c[_0x1987e8(0x199)]((_0x1ad0be,_0x2e0fb1)=>{const _0x22dd46=_0x1987e8;if(!_0x17891b[_0x2e0fb1])return;const _0x3d56e4={};return _0x1ad0be[_0x22dd46(0x1a7)][_0x22dd46(0x195)](_0x398b70=>{const _0x4006a3=_0x22dd46,_0x33dc64=typeof _0x398b70!==_0x4006a3(0x165),_0x322e93=_0x33dc64?_0x398b70:_0x1ad0be[_0x4006a3(0x1ae)]||'text',_0x19c0c2=_0x33dc64?_0x398b70:_0x1ad0be['value']||_0x4006a3(0x182);_0x3d56e4[_0x33dc64?_0x398b70:_0x398b70[_0x19c0c2]]=_0x33dc64?_0x398b70:_0x398b70[_0x322e93];}),_0x3d56e4;}),_0x552307=_0x59bc1c[_0x1987e8(0x199)](_0x4ba1cb=>_0x4ba1cb[_0x1987e8(0x180)]),_0x41894d=_0xefb904['map'](_0xa08b25=>{const _0x1a6855=_0x1987e8;return _0x852834[_0x1a6855(0x199)]((_0x8d2f80,_0x4434b2)=>{const _0x3bbfc1=_0x1a6855;let _0x411214;return _0x17891b[_0x4434b2]?_0x411214=_0x586652[_0x4434b2][_0xa08b25[_0x8d2f80]]:(_0x411214=highdict[_0x3bbfc1(0x171)](_0xa08b25,_0x8d2f80),_0x16742e[_0x4434b2]&&(typeof _0x411214!==_0x3bbfc1(0x155)&&(_0x411214=_0x411214*0x1||0x0))),_0x411214;});});let _0x196530=![];const _0x5ded37={'dimensions':_0x552307,'source':_0x41894d,'category':_0x24eab4,'series':_0xb2c53f,'value':_0x2cdc76,'category_formatter':_0x42e9a3,'series_formatter':_0xd702f2,'value_formatter':_0x35f5dd,'filter':_0x340e44,'sort':_0x1c3287,'summary':_0x4cbc2a,'chartType':_0x2b0039,'coordinateSystem':_0x2b0039===_0x1987e8(0x176)||_0x2b0039===_0x1987e8(0x19d)?_0xaca111:undefined,'FORMATTERS':FORMATTERS,'updateOnce':async _0x3873ce=>{const _0x254d7f=_0x1987e8;if(_0x196530)return;_0x196530=!![],await funcs[_0x254d7f(0x187)](0x0),this['update'](_0x3873ce);}},_0x14f993=StardustEcharts[_0x1987e8(0x1ad)](_0x5ded37,this[_0x1987e8(0x142)]());this[_0x1987e8(0x173)](_0x14f993),this[_0x1987e8(0x1a0)]=!![],this[_0x1987e8(0x15e)]={'header':_0x14f993[_0x1987e8(0x145)][0x0][_0x1987e8(0x15f)],'data':_0x14f993[_0x1987e8(0x145)][0x0][_0x1987e8(0x17b)],'filename':StardustJs['funcs'][_0x1987e8(0x198)]()};if(_0x14f993[_0x1987e8(0x179)]){const _0x25a5df=this['excel'][_0x1987e8(0x14d)];this[_0x1987e8(0x15e)][_0x1987e8(0x14d)]=[_0xb2c53f,...this[_0x1987e8(0x15e)][_0x1987e8(0x15d)][_0x1987e8(0x199)](_0x37dc38=>_0x37dc38[0x0])],this[_0x1987e8(0x15e)][_0x1987e8(0x15d)]=_0x25a5df[_0x1987e8(0x17d)](0x1)[_0x1987e8(0x199)]((_0x17b269,_0x3ba309)=>{const _0x28a180=_0x1987e8;return[_0x17b269,...this['excel'][_0x28a180(0x15d)][_0x28a180(0x199)]((_0x1e5d71,_0x5b48ec)=>_0x1e5d71[_0x3ba309+0x1])];});}},'resize'(){const _0x12ae03=a11_0x2f6680;this['zoom']=0x1/(parseFloat(document[_0x12ae03(0x19c)][_0x12ae03(0x1a2)][_0x12ae03(0x148)])||0x1),this[_0x12ae03(0x164)]?.['resize']();},'getOption'(){const _0x5b9ca4=a11_0x2f6680,{devicePixelRatio:_0x88b4bb,maxLimit:_0x582aba,query:_0x28abfa,remote:_0x61cfec,..._0x504acf}=this[_0x5b9ca4(0x1a1)],_0x23e9b2={'tooltip':{},'toolbox':{'feature':{'saveAsImage':{}}},..._0x504acf,'xAxis':{'type':'category'},'yAxis':{'type':_0x5b9ca4(0x182),'axisLabel':{'fontSize':this[_0x5b9ca4(0x185)][0x1]}},'grid':{'left':0x28,'top':0x28,'right':0x14,'bottom':0x23,...this[_0x5b9ca4(0x184)][_0x5b9ca4(0x166)][_0x5b9ca4(0x177)]},'legend':{'padding':[0xa,0x3c]}};return _0x23e9b2;},'update'(_0x1637d4){const _0x3bb7e6=a11_0x2f6680,{chartType:_0x32d654,coordinateSystem:_0xbdfc86,grid:_0x2aa158}=this[_0x3bb7e6(0x184)][_0x3bb7e6(0x166)];if(_0x32d654===_0x3bb7e6(0x176)||_0x32d654==='line'){const _0x69a430=_0xbdfc86===_0x3bb7e6(0x18d)?_0x3bb7e6(0x169):'yAxis';highdict[_0x3bb7e6(0x154)](_0x1637d4,_0x69a430+_0x3bb7e6(0x1a6),this[_0x3bb7e6(0x185)][0x1]);}_0x1637d4[_0x3bb7e6(0x15a)]?.[_0x3bb7e6(0x195)](_0x41fe10=>{const _0x2f9d1a=_0x3bb7e6;highdict[_0x2f9d1a(0x154)](_0x41fe10,_0x2f9d1a(0x14f),this[_0x2f9d1a(0x185)][0x2]);}),_0x1637d4[_0x3bb7e6(0x177)]={..._0x1637d4['grid'],..._0x2aa158},this[_0x3bb7e6(0x164)]?.[_0x3bb7e6(0x175)](_0x1637d4,!![]);}}};
@@ -1,121 +1 @@
1
- const { funcs } = StardustBrowser
2
-
3
- export const props = {
4
- height: {
5
- type: String,
6
- default: '150px'
7
- },
8
- option: {
9
- type: Object,
10
- default: () => ({})
11
- },
12
- updator: Object,
13
- datasource: Object
14
- }
15
-
16
- export const formItems = [
17
- {
18
- label: '分类', prop: 'category', comp: 'x-select',
19
- text: 'label', value: 'prop', options: [],
20
- slot: 'selects-formatters', formatters: []
21
- },
22
- {
23
- label: '系列', prop: 'series', comp: 'x-select', clearable: false, required: true,
24
- text: 'label', value: 'prop', options: [],
25
- slot: 'selects-formatters', formatters: []
26
- },
27
- {
28
- label: '值', prop: 'value', comp: 'x-select', clearable: false, required: true,
29
- text: 'label', value: 'prop', options: [],
30
- slot: 'selects-formatters', formatters: []
31
- },
32
- {
33
- label: '汇总方式', prop: 'summary', comp: 'x-select', clearable: false, required: true,
34
- options: [
35
- { text: '求和', value: 'sum' },
36
- { text: '平均', value: 'average' },
37
- { text: '首个', value: 'first' },
38
- { text: '最后一个', value: 'last' },
39
- { text: '最大值', value: 'max' },
40
- { text: '最小值', value: 'min' },
41
- { text: '个数', value: 'count' },
42
- ]
43
- },
44
- {
45
- label: '图表类型', prop: 'chartType', comp: 'x-select', clearable: false, required: true,
46
- options: [
47
- { text: '柱状图', value: 'bar' },
48
- { text: '折线图', value: 'line' },
49
- { text: '饼图', value: 'pie' },
50
- { text: '环形图', value: 'pie-doughnut' },
51
- { text: '旭日图', value: 'sunburst' }
52
- ]
53
- },
54
- {
55
- label: '坐标系', prop: 'coordinateSystem', comp: 'x-select', clearable: false,
56
- options: ['直角坐标系-横轴', '直角坐标系-纵轴', '极坐标系'],
57
- when: 'chartType=bar|line'
58
- },
59
- { label: '边距', slot: 'grid' },
60
- { label: '数据筛选', slot: 'filter' },
61
- { label: '字体大小', slot: 'font-sizes' }
62
- ]
63
-
64
- export const form = {
65
- sort: '',
66
- category: '',
67
- series: '',
68
- value: '',
69
- summary: 'count',
70
- chartType: 'bar',
71
- coordinateSystem: '直角坐标系-横轴',
72
- grid: {
73
- left: 40,
74
- top: 40,
75
- right: 20,
76
- bottom: 30
77
- },
78
- filter: {
79
- category: { isLimit: false, limit: 10, mergeOthers: false },
80
- series: { isLimit: false, limit: 10, mergeOthers: false }
81
- },
82
- fontSizes: [12, 12, 12]
83
- }
84
-
85
- export function zoomedHeight () {
86
- return funcs.calcPixel(this.height) * this.zoom + 'px'
87
- }
88
-
89
- export function sidebarCollapse () {
90
- return this.$store.app.sidebarCollapse
91
- }
92
-
93
- export function grid () {
94
- return this.dialog.form.grid
95
- }
96
-
97
- export function category () {
98
- return this.dialog.form.filter.category
99
- }
100
-
101
- export function series () {
102
- return this.dialog.form.filter.series
103
- }
104
-
105
- export function fontSizes () {
106
- return this.dialog.form.fontSizes
107
- }
108
-
109
- export default {
110
- props,
111
- formItems,
112
- form,
113
- computed: {
114
- zoomedHeight,
115
- sidebarCollapse,
116
- grid,
117
- category,
118
- series,
119
- fontSizes
120
- }
121
- }
1
+ const a12_0x155904=a12_0x4799;(function(_0x570456,_0x389ba5){const _0x29af99=a12_0x4799,_0x370105=_0x570456();while(!![]){try{const _0x5b64fc=parseInt(_0x29af99(0x20e))/0x1+parseInt(_0x29af99(0x21b))/0x2*(-parseInt(_0x29af99(0x211))/0x3)+-parseInt(_0x29af99(0x219))/0x4+parseInt(_0x29af99(0x21d))/0x5*(parseInt(_0x29af99(0x200))/0x6)+-parseInt(_0x29af99(0x1f2))/0x7+parseInt(_0x29af99(0x216))/0x8*(-parseInt(_0x29af99(0x220))/0x9)+parseInt(_0x29af99(0x213))/0xa;if(_0x5b64fc===_0x389ba5)break;else _0x370105['push'](_0x370105['shift']());}catch(_0x26a2e5){_0x370105['push'](_0x370105['shift']());}}}(a12_0x1a9a,0x7952e));const {funcs}=StardustBrowser;export const props={'height':{'type':String,'default':a12_0x155904(0x207)},'option':{'type':Object,'default':()=>({})},'updator':Object,'datasource':Object};function a12_0x4799(_0x39520b,_0xf5dea4){const _0x1a9a0f=a12_0x1a9a();return a12_0x4799=function(_0x479903,_0xa436ad){_0x479903=_0x479903-0x1ed;let _0x2df8d5=_0x1a9a0f[_0x479903];return _0x2df8d5;},a12_0x4799(_0x39520b,_0xf5dea4);}function a12_0x1a9a(){const _0x4e75c4=['柱状图','sidebarCollapse','filter','series','first','chartType=bar|line','极坐标系','prop','line','last','直角坐标系-横轴','form','height','66nQDlHr','min','font-sizes','最小值','数据筛选','坐标系','dialog','150px','bar','count','average','summary','label','fontSizes','276221icunxw','$store','x-select','3sduAEU','zoom','24913520qhCaYF','图表类型','category','6461896sFjAtW','汇总方式','selects-formatters','2464732qdtZex','calcPixel','282058jscFHl','grid','84295vIOqsh','环形图','最大值','9quynqz','pie','sum','max','直角坐标系-纵轴','sunburst','app','6237917lJTfpu'];a12_0x1a9a=function(){return _0x4e75c4;};return a12_0x1a9a();}export const formItems=[{'label':'分类','prop':'category','comp':a12_0x155904(0x210),'text':a12_0x155904(0x20c),'value':a12_0x155904(0x1fa),'options':[],'slot':a12_0x155904(0x218),'formatters':[]},{'label':'系列','prop':a12_0x155904(0x1f6),'comp':a12_0x155904(0x210),'clearable':![],'required':!![],'text':a12_0x155904(0x20c),'value':'prop','options':[],'slot':a12_0x155904(0x218),'formatters':[]},{'label':'值','prop':'value','comp':a12_0x155904(0x210),'clearable':![],'required':!![],'text':a12_0x155904(0x20c),'value':'prop','options':[],'slot':a12_0x155904(0x218),'formatters':[]},{'label':a12_0x155904(0x217),'prop':a12_0x155904(0x20b),'comp':'x-select','clearable':![],'required':!![],'options':[{'text':'求和','value':a12_0x155904(0x1ed)},{'text':'平均','value':a12_0x155904(0x20a)},{'text':'首个','value':a12_0x155904(0x1f7)},{'text':'最后一个','value':a12_0x155904(0x1fc)},{'text':a12_0x155904(0x21f),'value':a12_0x155904(0x1ee)},{'text':a12_0x155904(0x203),'value':a12_0x155904(0x201)},{'text':'个数','value':'count'}]},{'label':a12_0x155904(0x214),'prop':'chartType','comp':'x-select','clearable':![],'required':!![],'options':[{'text':a12_0x155904(0x1f3),'value':a12_0x155904(0x208)},{'text':'折线图','value':a12_0x155904(0x1fb)},{'text':'饼图','value':a12_0x155904(0x221)},{'text':a12_0x155904(0x21e),'value':'pie-doughnut'},{'text':'旭日图','value':a12_0x155904(0x1f0)}]},{'label':a12_0x155904(0x205),'prop':'coordinateSystem','comp':a12_0x155904(0x210),'clearable':![],'options':[a12_0x155904(0x1fd),a12_0x155904(0x1ef),a12_0x155904(0x1f9)],'when':a12_0x155904(0x1f8)},{'label':'边距','slot':'grid'},{'label':a12_0x155904(0x204),'slot':a12_0x155904(0x1f5)},{'label':'字体大小','slot':a12_0x155904(0x202)}];export const form={'sort':'','category':'','series':'','value':'','summary':a12_0x155904(0x209),'chartType':a12_0x155904(0x208),'coordinateSystem':a12_0x155904(0x1fd),'grid':{'left':0x28,'top':0x28,'right':0x14,'bottom':0x1e},'filter':{'category':{'isLimit':![],'limit':0xa,'mergeOthers':![]},'series':{'isLimit':![],'limit':0xa,'mergeOthers':![]}},'fontSizes':[0xc,0xc,0xc]};export function zoomedHeight(){const _0xff0ce4=a12_0x155904;return funcs[_0xff0ce4(0x21a)](this[_0xff0ce4(0x1ff)])*this[_0xff0ce4(0x212)]+'px';}export function sidebarCollapse(){const _0x5eb6c2=a12_0x155904;return this[_0x5eb6c2(0x20f)][_0x5eb6c2(0x1f1)][_0x5eb6c2(0x1f4)];}export function grid(){const _0x135bd0=a12_0x155904;return this[_0x135bd0(0x206)]['form'][_0x135bd0(0x21c)];}export function category(){const _0x307211=a12_0x155904;return this[_0x307211(0x206)]['form'][_0x307211(0x1f5)][_0x307211(0x215)];}export function series(){const _0x404626=a12_0x155904;return this[_0x404626(0x206)][_0x404626(0x1fe)][_0x404626(0x1f5)]['series'];}export function fontSizes(){const _0x284969=a12_0x155904;return this[_0x284969(0x206)]['form'][_0x284969(0x20d)];}export default{'props':props,'formItems':formItems,'form':form,'computed':{'zoomedHeight':zoomedHeight,'sidebarCollapse':sidebarCollapse,'grid':grid,'category':category,'series':series,'fontSizes':fontSizes}};
@@ -1,58 +1 @@
1
- import { formatOptions } from '../../utils/index.js'
2
-
3
- export default {
4
- name: 'MobileXCheckboxs',
5
- inheritAttrs: false,
6
- props: {
7
- text: {
8
- type: String,
9
- default: 'text'
10
- },
11
- plain: {
12
- type: Boolean,
13
- default: false
14
- },
15
- value: {
16
- type: String,
17
- default: 'value'
18
- },
19
- shape: {
20
- type: String,
21
- default: 'square'
22
- },
23
- direction: {
24
- type: String,
25
- default: 'horizontal'
26
- },
27
- sort: Boolean | String,
28
- options: Array | Object
29
- },
30
- emits: ['change'],
31
- data () {
32
- return {
33
- _options: []
34
- }
35
- },
36
- computed: {
37
- attrs () {
38
- const {
39
- clearable,
40
- platform,
41
- placeholder,
42
- rules,
43
- required,
44
- ...others
45
- } = this.$attrs
46
- return others
47
- }
48
- },
49
- watch: {
50
- options: {
51
- immediate: true,
52
- deep: true,
53
- handler () {
54
- this._options = formatOptions(this.options, this)
55
- }
56
- }
57
- }
58
- }
1
+ function a13_0x105c(){const _0x58b050=['714716fySibZ','743124LjgfFv','horizontal','square','7560333qTtHam','change','text','25xjqHAH','MobileXCheckboxs','12wsXyvq','127740CpyrSf','492646jIddhx','50aUcDFV','1858474dcRGlU','495215dVTLvQ','8uuHLKi'];a13_0x105c=function(){return _0x58b050;};return a13_0x105c();}const a13_0x3bc454=a13_0x2a78;function a13_0x2a78(_0x4c9442,_0x2c0753){const _0x105c80=a13_0x105c();return a13_0x2a78=function(_0x2a7807,_0x1ad4d0){_0x2a7807=_0x2a7807-0x1ef;let _0x3fa769=_0x105c80[_0x2a7807];return _0x3fa769;},a13_0x2a78(_0x4c9442,_0x2c0753);}(function(_0x231cb1,_0x3d57e0){const _0x2325a8=a13_0x2a78,_0x149187=_0x231cb1();while(!![]){try{const _0x199498=-parseInt(_0x2325a8(0x1f3))/0x1+parseInt(_0x2325a8(0x1f0))/0x2+-parseInt(_0x2325a8(0x1fc))/0x3*(parseInt(_0x2325a8(0x1f4))/0x4)+-parseInt(_0x2325a8(0x1fa))/0x5*(parseInt(_0x2325a8(0x1fd))/0x6)+parseInt(_0x2325a8(0x1f1))/0x7+-parseInt(_0x2325a8(0x1f2))/0x8*(-parseInt(_0x2325a8(0x1f7))/0x9)+parseInt(_0x2325a8(0x1ef))/0xa*(parseInt(_0x2325a8(0x1fe))/0xb);if(_0x199498===_0x3d57e0)break;else _0x149187['push'](_0x149187['shift']());}catch(_0x1de0e1){_0x149187['push'](_0x149187['shift']());}}}(a13_0x105c,0x79fcb));import{formatOptions}from'../../utils/index.js';export default{'name':a13_0x3bc454(0x1fb),'inheritAttrs':![],'props':{'text':{'type':String,'default':a13_0x3bc454(0x1f9)},'plain':{'type':Boolean,'default':![]},'value':{'type':String,'default':'value'},'shape':{'type':String,'default':a13_0x3bc454(0x1f6)},'direction':{'type':String,'default':a13_0x3bc454(0x1f5)},'sort':Boolean|String,'options':Array|Object},'emits':[a13_0x3bc454(0x1f8)],'data'(){return{'_options':[]};},'computed':{'attrs'(){const {clearable:_0x40bb66,platform:_0x197186,placeholder:_0x46d0b8,rules:_0x50db86,required:_0x3c7964,..._0x3c660a}=this['$attrs'];return _0x3c660a;}},'watch':{'options':{'immediate':!![],'deep':!![],'handler'(){this['_options']=formatOptions(this['options'],this);}}}};
@@ -1,49 +1 @@
1
- import { formatOptions } from '../../utils/index.js'
2
-
3
- export default {
4
- name: 'PcXCheckboxs',
5
- inheritAttrs: false,
6
- props: {
7
- modelValue: Array,
8
- plain: {
9
- type: Boolean,
10
- default: false
11
- },
12
- text: {
13
- type: String,
14
- default: 'text'
15
- },
16
- value: {
17
- type: String,
18
- default: 'value'
19
- },
20
- sort: Boolean | String,
21
- options: Array | Object
22
- },
23
- emits: ['update:modelValue', 'change'],
24
- data () {
25
- return {
26
- _options: []
27
- }
28
- },
29
- computed: {
30
- attrs () {
31
- const {
32
- clearable,
33
- platform,
34
- placeholder,
35
- ...others
36
- } = this.$attrs
37
- return others
38
- }
39
- },
40
- watch: {
41
- options: {
42
- immediate: true,
43
- deep: true,
44
- handler (value) {
45
- this._options = formatOptions(value, this)
46
- }
47
- }
48
- }
49
- }
1
+ function a14_0x578d(_0x388a61,_0x116b45){const _0x3b1c5b=a14_0x3b1c();return a14_0x578d=function(_0x578df1,_0x3fd571){_0x578df1=_0x578df1-0x135;let _0x3d8a45=_0x3b1c5b[_0x578df1];return _0x3d8a45;},a14_0x578d(_0x388a61,_0x116b45);}const a14_0x26944=a14_0x578d;(function(_0x3d950d,_0x51b0a3){const _0x7c2aa2=a14_0x578d,_0x46b498=_0x3d950d();while(!![]){try{const _0x301157=-parseInt(_0x7c2aa2(0x13a))/0x1*(-parseInt(_0x7c2aa2(0x138))/0x2)+parseInt(_0x7c2aa2(0x141))/0x3+-parseInt(_0x7c2aa2(0x137))/0x4+-parseInt(_0x7c2aa2(0x139))/0x5+parseInt(_0x7c2aa2(0x13d))/0x6*(-parseInt(_0x7c2aa2(0x136))/0x7)+parseInt(_0x7c2aa2(0x13f))/0x8*(-parseInt(_0x7c2aa2(0x140))/0x9)+parseInt(_0x7c2aa2(0x13c))/0xa;if(_0x301157===_0x51b0a3)break;else _0x46b498['push'](_0x46b498['shift']());}catch(_0x7a287){_0x46b498['push'](_0x46b498['shift']());}}}(a14_0x3b1c,0xc3b11));import{formatOptions}from'../../utils/index.js';function a14_0x3b1c(){const _0x5ec405=['1dItiiT','PcXCheckboxs','27564790lnmYXB','7422XgxGny','change','8yOPXIC','11441862fXGXKH','1312260JHJXXU','_options','value','text','8393delGat','1415908dbQbQc','2358922YBnRUZ','2316745FzImsr'];a14_0x3b1c=function(){return _0x5ec405;};return a14_0x3b1c();}export default{'name':a14_0x26944(0x13b),'inheritAttrs':![],'props':{'modelValue':Array,'plain':{'type':Boolean,'default':![]},'text':{'type':String,'default':a14_0x26944(0x135)},'value':{'type':String,'default':a14_0x26944(0x143)},'sort':Boolean|String,'options':Array|Object},'emits':['update:modelValue',a14_0x26944(0x13e)],'data'(){return{'_options':[]};},'computed':{'attrs'(){const {clearable:_0x597d6,platform:_0x5af50b,placeholder:_0x36d466,..._0x1c3e55}=this['$attrs'];return _0x1c3e55;}},'watch':{'options':{'immediate':!![],'deep':!![],'handler'(_0x5fdc60){const _0x3099f9=a14_0x26944;this[_0x3099f9(0x142)]=formatOptions(_0x5fdc60,this);}}}};
@@ -1,10 +1 @@
1
- export default {
2
- name: 'MobileXCol',
3
- inheritAttrs: false,
4
- computed: {
5
- attrs () {
6
- const { text, slot, ...others } = this.$attrs
7
- return others
8
- }
9
- }
10
- }
1
+ function a15_0x4bdd(_0x1a94a0,_0x4d2d48){const _0x12cb53=a15_0x12cb();return a15_0x4bdd=function(_0x4bdd39,_0xca07c0){_0x4bdd39=_0x4bdd39-0x14e;let _0x1dc3ea=_0x12cb53[_0x4bdd39];return _0x1dc3ea;},a15_0x4bdd(_0x1a94a0,_0x4d2d48);}const a15_0x50c24e=a15_0x4bdd;(function(_0x4b8ec5,_0x40ab1e){const _0x4fd3df=a15_0x4bdd,_0x345db5=_0x4b8ec5();while(!![]){try{const _0x3a94fe=parseInt(_0x4fd3df(0x155))/0x1*(parseInt(_0x4fd3df(0x150))/0x2)+parseInt(_0x4fd3df(0x151))/0x3*(-parseInt(_0x4fd3df(0x152))/0x4)+parseInt(_0x4fd3df(0x159))/0x5*(parseInt(_0x4fd3df(0x14e))/0x6)+-parseInt(_0x4fd3df(0x158))/0x7+-parseInt(_0x4fd3df(0x154))/0x8*(-parseInt(_0x4fd3df(0x157))/0x9)+-parseInt(_0x4fd3df(0x14f))/0xa+-parseInt(_0x4fd3df(0x156))/0xb*(-parseInt(_0x4fd3df(0x15a))/0xc);if(_0x3a94fe===_0x40ab1e)break;else _0x345db5['push'](_0x345db5['shift']());}catch(_0x4c37a9){_0x345db5['push'](_0x345db5['shift']());}}}(a15_0x12cb,0x3729b));function a15_0x12cb(){const _0xf3063d=['15053xHDEOt','11EPWuCq','36PurFcj','2041501etHkqI','249875LMksaB','169584pZgtHI','MobileXCol','42GpJtje','3606180tMRNiV','46BHIkUj','12lJHSac','163052EmiEPj','$attrs','662168rrprcm'];a15_0x12cb=function(){return _0xf3063d;};return a15_0x12cb();}export default{'name':a15_0x50c24e(0x15b),'inheritAttrs':![],'computed':{'attrs'(){const _0x3914ef=a15_0x50c24e,{text:_0xe3d754,slot:_0x1bf5f1,..._0x3ea31f}=this[_0x3914ef(0x153)];return _0x3ea31f;}}};
@@ -1,10 +1 @@
1
- export default {
2
- name: 'PcXCol',
3
- inheritAttrs: false,
4
- computed: {
5
- attrs () {
6
- const { text, slot, ...others } = this.$attrs
7
- return others
8
- }
9
- }
10
- }
1
+ const a16_0x55f9cc=a16_0x2cdf;(function(_0x470fbd,_0x143637){const _0x5f566f=a16_0x2cdf,_0x32156a=_0x470fbd();while(!![]){try{const _0x1c9be7=-parseInt(_0x5f566f(0x193))/0x1+parseInt(_0x5f566f(0x196))/0x2*(parseInt(_0x5f566f(0x199))/0x3)+parseInt(_0x5f566f(0x198))/0x4+parseInt(_0x5f566f(0x195))/0x5*(parseInt(_0x5f566f(0x18f))/0x6)+parseInt(_0x5f566f(0x190))/0x7*(parseInt(_0x5f566f(0x191))/0x8)+-parseInt(_0x5f566f(0x194))/0x9+-parseInt(_0x5f566f(0x197))/0xa*(parseInt(_0x5f566f(0x192))/0xb);if(_0x1c9be7===_0x143637)break;else _0x32156a['push'](_0x32156a['shift']());}catch(_0x1efea2){_0x32156a['push'](_0x32156a['shift']());}}}(a16_0x4348,0x64a1f));function a16_0x2cdf(_0xb46261,_0x2b39cb){const _0x4348cf=a16_0x4348();return a16_0x2cdf=function(_0x2cdf8d,_0x346477){_0x2cdf8d=_0x2cdf8d-0x18f;let _0x62a22f=_0x4348cf[_0x2cdf8d];return _0x62a22f;},a16_0x2cdf(_0xb46261,_0x2b39cb);}export default{'name':a16_0x55f9cc(0x19a),'inheritAttrs':![],'computed':{'attrs'(){const _0x1c1263=a16_0x55f9cc,{text:_0x22e216,slot:_0x2de1b5,..._0x109ffe}=this[_0x1c1263(0x19b)];return _0x109ffe;}}};function a16_0x4348(){const _0x1b0ab8=['PcXCol','$attrs','650046TFIegZ','182MgpJIj','61256KFfTdM','11NLYjYc','621607yhRDfz','416439yPlrfP','30dfukXY','138HgfsQE','993490lBHivW','199772vzhNAy','12189lChxzd'];a16_0x4348=function(){return _0x1b0ab8;};return a16_0x4348();}
@@ -1,71 +1 @@
1
- import { injectVanFieldProvide } from '../../utils/funcs.js'
2
-
3
- const { $Date, format } = StardustJs.dates
4
-
5
- export default {
6
- name: 'MobileXDatePicker',
7
- props: {
8
- modelValue: String | Date,
9
- valueFormat: String,
10
- type: {
11
- type: String,
12
- default: 'date'
13
- }
14
- },
15
- emits: ['update:modelValue', 'change'],
16
- computed: {
17
- value () {
18
- if (!this.modelValue) return ''
19
- let format = 'YYYY-MM-DD'
20
- if (this.type === 'datetime') {
21
- format = 'YYYY-MM-DD HH:mm'
22
- } else if (this.type === 'time') {
23
- format = 'HH:mm'
24
- }
25
- return new $Date(this.modelValue).to(format)
26
- },
27
- tabs () {
28
- if (this.type === 'datetime') return ['选择日期', '选择时间']
29
- else if (this.type === 'time') return ['选择时间']
30
- return ['选择日期']
31
- }
32
- },
33
- data () {
34
- return {
35
- visible: false,
36
- date: [],
37
- time: []
38
- }
39
- },
40
- watch: {
41
- modelValue: {
42
- immediate: true,
43
- handler (value) {
44
- const d = new $Date(value)
45
- this.date = d.to('YYYY-MM-DD').split('-')
46
- this.time = d.to('HH:mm').split(':')
47
- }
48
- }
49
- },
50
- created () {
51
- injectVanFieldProvide(this)
52
- },
53
- methods: {
54
- onConfirm (params) {
55
- let [date, time] = params
56
- if (this.type === 'date') {
57
- time = {}
58
- } else if (this.type === 'time') {
59
- time = date
60
- date = {}
61
- }
62
- const [year = '1970', month = '01', day = '01'] = date?.selectedValues || []
63
- const [hour = '00', minute = '00'] = time?.selectedValues || []
64
- const value = new $Date(`${year}/${month}/${day} ${hour}:${minute}:00`).to(this.valueFormat || '')
65
- this.$emit('update:modelValue', value)
66
- this.$emit('change', value)
67
- this.provide?.resetValidation()
68
- this.visible = false
69
- }
70
- }
71
- }
1
+ const a17_0x2f2099=a17_0x4d75;function a17_0x4d75(_0xacce22,_0xf5487d){const _0x24aa92=a17_0x24aa();return a17_0x4d75=function(_0x4d7547,_0x3a52eb){_0x4d7547=_0x4d7547-0x96;let _0x1eb694=_0x24aa92[_0x4d7547];return _0x1eb694;},a17_0x4d75(_0xacce22,_0xf5487d);}(function(_0x45db7,_0x27978b){const _0xfd5b72=a17_0x4d75,_0x58c9be=_0x45db7();while(!![]){try{const _0x513b67=parseInt(_0xfd5b72(0xa1))/0x1+-parseInt(_0xfd5b72(0x96))/0x2*(-parseInt(_0xfd5b72(0xb5))/0x3)+parseInt(_0xfd5b72(0xb1))/0x4+parseInt(_0xfd5b72(0xb2))/0x5*(parseInt(_0xfd5b72(0xa5))/0x6)+-parseInt(_0xfd5b72(0x9c))/0x7*(-parseInt(_0xfd5b72(0xa0))/0x8)+-parseInt(_0xfd5b72(0xae))/0x9*(-parseInt(_0xfd5b72(0x97))/0xa)+-parseInt(_0xfd5b72(0x99))/0xb;if(_0x513b67===_0x27978b)break;else _0x58c9be['push'](_0x58c9be['shift']());}catch(_0x50bffa){_0x58c9be['push'](_0x58c9be['shift']());}}}(a17_0x24aa,0x8eb6c));import{injectVanFieldProvide}from'../../utils/funcs.js';const {$Date,format}=StardustJs[a17_0x2f2099(0xb3)];export default{'name':a17_0x2f2099(0x9e),'props':{'modelValue':String|Date,'valueFormat':String,'type':{'type':String,'default':a17_0x2f2099(0xa4)}},'emits':[a17_0x2f2099(0xa7),a17_0x2f2099(0xaf)],'computed':{'value'(){const _0x305b6c=a17_0x2f2099;if(!this[_0x305b6c(0xa9)])return'';let _0x4aaec8=_0x305b6c(0xa6);if(this[_0x305b6c(0xb4)]===_0x305b6c(0xad))_0x4aaec8=_0x305b6c(0xaa);else this[_0x305b6c(0xb4)]===_0x305b6c(0xa2)&&(_0x4aaec8=_0x305b6c(0x9f));return new $Date(this[_0x305b6c(0xa9)])['to'](_0x4aaec8);},'tabs'(){const _0x56ea80=a17_0x2f2099;if(this[_0x56ea80(0xb4)]==='datetime')return['选择日期',_0x56ea80(0x9b)];else{if(this[_0x56ea80(0xb4)]===_0x56ea80(0xa2))return[_0x56ea80(0x9b)];}return[_0x56ea80(0x9a)];}},'data'(){return{'visible':![],'date':[],'time':[]};},'watch':{'modelValue':{'immediate':!![],'handler'(_0x4e4954){const _0x3a41ee=a17_0x2f2099,_0x382b3e=new $Date(_0x4e4954);this[_0x3a41ee(0xa4)]=_0x382b3e['to']('YYYY-MM-DD')[_0x3a41ee(0x98)]('-'),this[_0x3a41ee(0xa2)]=_0x382b3e['to'](_0x3a41ee(0x9f))[_0x3a41ee(0x98)](':');}}},'created'(){injectVanFieldProvide(this);},'methods':{'onConfirm'(_0x48bcce){const _0x5d5b96=a17_0x2f2099;let [_0x603117,_0x4ba0b1]=_0x48bcce;if(this[_0x5d5b96(0xb4)]==='date')_0x4ba0b1={};else this[_0x5d5b96(0xb4)]===_0x5d5b96(0xa2)&&(_0x4ba0b1=_0x603117,_0x603117={});const [_0x51e207='1970',_0x514750='01',_0x4eb7ff='01']=_0x603117?.[_0x5d5b96(0xa3)]||[],[_0x512cdf='00',_0x395c30='00']=_0x4ba0b1?.[_0x5d5b96(0xa3)]||[],_0x1b9b63=new $Date(_0x51e207+'/'+_0x514750+'/'+_0x4eb7ff+'\x20'+_0x512cdf+':'+_0x395c30+_0x5d5b96(0xa8))['to'](this[_0x5d5b96(0x9d)]||'');this[_0x5d5b96(0xb6)](_0x5d5b96(0xa7),_0x1b9b63),this[_0x5d5b96(0xb6)](_0x5d5b96(0xaf),_0x1b9b63),this[_0x5d5b96(0xab)]?.[_0x5d5b96(0xac)](),this[_0x5d5b96(0xb0)]=![];}}};function a17_0x24aa(){const _0xe1fac6=['254373PEvkoQ','time','selectedValues','date','42TNQyTE','YYYY-MM-DD','update:modelValue',':00','modelValue','YYYY-MM-DD\x20HH:mm','provide','resetValidation','datetime','598977qVedSK','change','visible','2100688ntPPmk','205745ffPBVi','dates','type','6NaeJHw','$emit','557462OfxbMA','30DYWwot','split','23849078sKkZRc','选择日期','选择时间','63rBVjqu','valueFormat','MobileXDatePicker','HH:mm','824840uwWNyF'];a17_0x24aa=function(){return _0xe1fac6;};return a17_0x24aa();}
@@ -1,9 +1 @@
1
- export default {
2
- name: 'PcXDatePicker',
3
- emits: ['update:modelValue'],
4
- methods: {
5
- onChange (value) {
6
- this.$emit('update:modelValue', value)
7
- }
8
- }
9
- }
1
+ var a18_0x12d19f=a18_0xf022;(function(_0x5575ca,_0x377d74){var _0x5d1363=a18_0xf022,_0x2a86ee=_0x5575ca();while(!![]){try{var _0x9864b8=-parseInt(_0x5d1363(0x80))/0x1+-parseInt(_0x5d1363(0x7b))/0x2+-parseInt(_0x5d1363(0x82))/0x3*(-parseInt(_0x5d1363(0x83))/0x4)+-parseInt(_0x5d1363(0x84))/0x5*(parseInt(_0x5d1363(0x7e))/0x6)+parseInt(_0x5d1363(0x7c))/0x7+-parseInt(_0x5d1363(0x85))/0x8+-parseInt(_0x5d1363(0x79))/0x9*(-parseInt(_0x5d1363(0x7a))/0xa);if(_0x9864b8===_0x377d74)break;else _0x2a86ee['push'](_0x2a86ee['shift']());}catch(_0x149057){_0x2a86ee['push'](_0x2a86ee['shift']());}}}(a18_0x1b92,0x4ccf5));function a18_0x1b92(){var _0x39b6e2=['66siUwZt','32120FRIeLo','39505rQcEKg','647560WRxcfL','9UYLUDF','7768310pFncoO','533966MFTInJ','1702736ZkZYFx','$emit','402kGWjmR','PcXDatePicker','4831LFiaRV','update:modelValue'];a18_0x1b92=function(){return _0x39b6e2;};return a18_0x1b92();}function a18_0xf022(_0x948729,_0x5e57f5){var _0x1b9226=a18_0x1b92();return a18_0xf022=function(_0xf0223c,_0x1812a3){_0xf0223c=_0xf0223c-0x79;var _0x296f84=_0x1b9226[_0xf0223c];return _0x296f84;},a18_0xf022(_0x948729,_0x5e57f5);}export default{'name':a18_0x12d19f(0x7f),'emits':[a18_0x12d19f(0x81)],'methods':{'onChange'(_0x409e02){var _0x2bf3ad=a18_0x12d19f;this[_0x2bf3ad(0x7d)]('update:modelValue',_0x409e02);}}};