@zscreate/zhxy-app-component 1.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 (70) hide show
  1. package/components/dying318-picker/Demo.vue +342 -0
  2. package/components/dying318-picker/Picker.nvue +441 -0
  3. package/components/dying318-picker/Picker.vue +442 -0
  4. package/components/dying318-picker/Pickers.vue +321 -0
  5. package/components/dying318-picker/README.md +479 -0
  6. package/components/easydrag-sort/easydrag-sort.vue +248 -0
  7. package/components/evan-form/evan-form.vue +102 -0
  8. package/components/evan-form/utils.js +125 -0
  9. package/components/evan-form-item/evan-form-item.vue +1457 -0
  10. package/components/evan-form-item/mixins/computedMixin.js +44 -0
  11. package/components/evan-form-item/mixins/pubSubMixin.js +104 -0
  12. package/components/evan-form-item/mixins/validateByApiMinxins.js +21 -0
  13. package/components/evan-form-item/mixins/validateFormMixin.js +71 -0
  14. package/components/evan-form-item/mixins/valueChangeMixin.js +64 -0
  15. package/components/evan-form-item/modules/edit.png +0 -0
  16. package/components/evan-form-item/utilForForm.js +35 -0
  17. package/components/evan-form-item/utils.js +51 -0
  18. package/components/form-container/data.js +709 -0
  19. package/components/form-container/form-container.vue +897 -0
  20. package/components/jin-edit/jin-edit.vue +327 -0
  21. package/components/jin-edit/jin-icons.vue +48 -0
  22. package/components/jin-edit/readme.md +65 -0
  23. package/components/l-file/l-file.vue +260 -0
  24. package/components/lb-picker/index.vue +286 -0
  25. package/components/signatrue-write/signatrue-write.vue +220 -0
  26. package/components/t-color-picker/t-color-picker.vue +784 -0
  27. package/components/uni-datetime-picker/changelog.md +76 -0
  28. package/components/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue +182 -0
  29. package/components/uni-datetime-picker/components/uni-datetime-picker/calendar.js +546 -0
  30. package/components/uni-datetime-picker/components/uni-datetime-picker/calendar.vue +1024 -0
  31. package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json +19 -0
  32. package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js +8 -0
  33. package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json +19 -0
  34. package/components/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json +19 -0
  35. package/components/uni-datetime-picker/components/uni-datetime-picker/keypress.js +45 -0
  36. package/components/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue +927 -0
  37. package/components/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue +966 -0
  38. package/components/uni-datetime-picker/components/uni-datetime-picker/util.js +437 -0
  39. package/components/uni-datetime-picker/components/uni-datetime-picker/year-mont-picker.vue +901 -0
  40. package/components/uni-datetime-picker/components/uni-datetime-picker/year-picker.vue +271 -0
  41. package/components/uni-datetime-picker/package.json +89 -0
  42. package/components/uni-datetime-picker/readme.md +159 -0
  43. package/components/uni-icons/icons.js +96 -0
  44. package/components/uni-icons/uni-icons.vue +57 -0
  45. package/components/uni-popup/message.js +29 -0
  46. package/components/uni-popup/popup.js +25 -0
  47. package/components/uni-popup/uni-popup-dialog.vue +243 -0
  48. package/components/uni-popup/uni-popup-message.vue +116 -0
  49. package/components/uni-popup/uni-popup-share.vue +165 -0
  50. package/components/uni-popup/uni-popup.vue +297 -0
  51. package/components/uni-rate/uni-rate.vue +140 -0
  52. package/components/uni-transition/uni-transition.vue +279 -0
  53. package/components/uploadFile/uploadFile.vue +124 -0
  54. package/components/viewcomponents/applicateGrid.vue +96 -0
  55. package/components/viewcomponents/card.vue +166 -0
  56. package/components/viewcomponents/formCard.vue +82 -0
  57. package/components/viewcomponents/infocell.vue +122 -0
  58. package/components/viewcomponents/navsearch.vue +59 -0
  59. package/components/viewcomponents/newscontent.vue +85 -0
  60. package/components/xp-picker/util.js +105 -0
  61. package/components/xp-picker/xp-picker.vue +330 -0
  62. package/index.js +9 -0
  63. package/package.json +29 -0
  64. package/static/iconfont.css +32 -0
  65. package/static/mttf.ttf +0 -0
  66. package/static/uni.ttf +0 -0
  67. package/utils/js-interp.js +6501 -0
  68. package/utils/js-interp.md +10 -0
  69. package/utils/moment.js +4601 -0
  70. package/utils/util.js +106 -0
@@ -0,0 +1,709 @@
1
+ export default {
2
+ "list": [{
3
+ "type": "grid",
4
+ "name": "栅格布局",
5
+ "icon": "icon-grid-",
6
+ "columns": [{
7
+ "span": 12,
8
+ "list": [{
9
+ "type": "input",
10
+ "name": "自然数",
11
+ "icon": "icon-input",
12
+ "options": {
13
+ "width": "100%",
14
+ "height": "",
15
+ "defaultValue": "",
16
+ "required": true,
17
+ "dataType": "string",
18
+ "pattern": "",
19
+ "placeholder": "请输入自然数",
20
+ "disabled": false,
21
+ "canEdit": true,
22
+ "canView": true,
23
+ "remoteFunc": "func_1591251823546"
24
+ },
25
+ "key": 1591251823546,
26
+ "model": "input_1591251823546",
27
+ "rules": [{
28
+ "type": "string",
29
+ "message": "自然数格式不正确"
30
+ },
31
+ {
32
+ "required": true,
33
+ "message": "自然数必须填写"
34
+ }
35
+ ]
36
+ }]
37
+ },
38
+ {
39
+ "span": 12,
40
+ "list": [{
41
+ "type": "input",
42
+ "name": "单行文本",
43
+ "icon": "icon-input",
44
+ "options": {
45
+ "width": "100%",
46
+ "height": "",
47
+ "defaultValue": "",
48
+ "required": false,
49
+ "dataType": "string",
50
+ "pattern": "",
51
+ "placeholder": "请输入多行文本",
52
+ "disabled": false,
53
+ "canEdit": true,
54
+ "canView": true,
55
+ "remoteFunc": "func_1591251922720"
56
+ },
57
+ "key": 1591251922720,
58
+ "model": "input_1591251922720",
59
+ "rules": [{
60
+ "type": "string",
61
+ "message": "单行文本格式不正确"
62
+ }]
63
+ }]
64
+ }
65
+ ],
66
+ "options": {
67
+ "gutter": 0,
68
+ "justify": "start",
69
+ "customClass": "",
70
+ "align": "top",
71
+ "canEdit": true,
72
+ "canView": true,
73
+ "remoteFunc": "func_1591251800962"
74
+ },
75
+ "key": 1591251800962,
76
+ "model": "grid_1591251800962",
77
+ "rules": [
78
+
79
+ ]
80
+ },
81
+ {
82
+ "type": "input",
83
+ "name": "单行文本",
84
+ "icon": "icon-input",
85
+ "options": {
86
+ "width": "100%",
87
+ "height": "",
88
+ "defaultValue": "我是默认值",
89
+ "required": false,
90
+ "dataType": "string",
91
+ "pattern": "",
92
+ "placeholder": "请输入多行文本",
93
+ "disabled": false,
94
+ "canEdit": true,
95
+ "canView": true,
96
+ "remoteFunc": "func_1590995436630"
97
+ },
98
+ "key": 1590995436630,
99
+ "model": "input_1590995436630",
100
+ "rules": [{
101
+ "required": true,
102
+ "message": "单行文本格式不正确"
103
+ }]
104
+ },
105
+ {
106
+ "type": "textarea",
107
+ "name": "多行文本",
108
+ "icon": "icon-diy-com-textarea",
109
+ "options": {
110
+ "width": "100%",
111
+ "height": "100",
112
+ "defaultValue": "我是多行文本默认值",
113
+ "required": false,
114
+ "disabled": false,
115
+ "pattern": "",
116
+ "placeholder": "请输入多行文本",
117
+ "canEdit": true,
118
+ "canView": true,
119
+ "remoteFunc": "func_1590995446501"
120
+ },
121
+ "key": 1590995446501,
122
+ "model": "textarea_1590995446501",
123
+ "rules": [
124
+
125
+ ]
126
+ },
127
+ {
128
+ "type": "number",
129
+ "name": "计数器",
130
+ "icon": "icon-number",
131
+ "options": {
132
+ "height": "",
133
+ "width": "",
134
+ "required": false,
135
+ "defaultValue": 3,
136
+ "min": 0,
137
+ "max": 10,
138
+ "step": 1,
139
+ "disabled": false,
140
+ "controlsPosition": "",
141
+ "canEdit": true,
142
+ "canView": true,
143
+ "remoteFunc": "func_1590995449046"
144
+ },
145
+ "key": 1590995449046,
146
+ "model": "number_1590995449046",
147
+ "rules": [
148
+
149
+ ]
150
+ },
151
+ {
152
+ "type": "table",
153
+ "name": "子表单",
154
+ "icon": "icon-input",
155
+ "options": {
156
+ "defaultValue": [
157
+
158
+ ],
159
+ "customClass": "",
160
+ "remoteFunc": "func_1590995497129",
161
+ "remoteOptions": [
162
+
163
+ ],
164
+ "canEdit": true,
165
+ "height": "",
166
+ "canView": true
167
+ },
168
+ "columns": [{
169
+ "type": "input",
170
+ "name": "单行文本",
171
+ "icon": "icon-input",
172
+ "options": {
173
+ "width": "100%",
174
+ "height": "",
175
+ "defaultValue": "",
176
+ "required": false,
177
+ "dataType": "string",
178
+ "pattern": "",
179
+ "placeholder": "请输入多行文本",
180
+ "disabled": false,
181
+ "canEdit": true,
182
+ "canView": true,
183
+ "remoteFunc": "func_1590995513365"
184
+ },
185
+ "key": 1590995513365,
186
+ "model": "input_1590995513365",
187
+ "rules": [{
188
+ "type": "string",
189
+ "message": "子表单要填写正确"
190
+ },
191
+ {
192
+ "required": true,
193
+ "message": "自然数必须填写"
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "type": "textarea",
199
+ "name": "多行文本",
200
+ "icon": "icon-diy-com-textarea",
201
+ "options": {
202
+ "width": "100%",
203
+ "height": "100",
204
+ "defaultValue": "",
205
+ "required": false,
206
+ "disabled": false,
207
+ "pattern": "",
208
+ "placeholder": "请输入多行文本",
209
+ "canEdit": true,
210
+ "canView": true,
211
+ "remoteFunc": "func_1590995480521"
212
+ },
213
+ "key": 1590995480521,
214
+ "model": "textarea_1590995480521",
215
+ "rules": [
216
+
217
+ ]
218
+ }
219
+ ],
220
+ "key": 1590995497129,
221
+ "model": "table_1590995497129",
222
+ "rules": [
223
+
224
+ ]
225
+ },
226
+ {
227
+ "type": "radio",
228
+ "name": "单选框组",
229
+ "icon": "icon-radio-active",
230
+ "options": {
231
+ "inline": false,
232
+ "defaultValue": "",
233
+ "showLabel": false,
234
+ "height": "",
235
+ "options": [{
236
+ "value": "选项1",
237
+ "label": "选项1"
238
+ },
239
+ {
240
+ "value": "选项2",
241
+ "label": "选项2"
242
+ },
243
+ {
244
+ "value": "选项3",
245
+ "label": "选项3"
246
+ }
247
+ ],
248
+ "required": false,
249
+ "width": "",
250
+ "remote": false,
251
+ "remoteOptions": [
252
+
253
+ ],
254
+ "props": {
255
+ "value": "value",
256
+ "label": "label"
257
+ },
258
+ "remoteFunc": "func_1590995459034",
259
+ "disabled": false,
260
+ "canEdit": true,
261
+ "canView": true
262
+ },
263
+ "key": 1590995459034,
264
+ "model": "radio_1590995459034",
265
+ "rules": [
266
+
267
+ ]
268
+ },
269
+ {
270
+ "type": "select",
271
+ "name": "下拉选择",
272
+ "icon": "icon-select",
273
+ "options": {
274
+ "defaultValue": "",
275
+ "multiple": false,
276
+ "disabled": false,
277
+ "clearable": false,
278
+ "placeholder": "",
279
+ "required": false,
280
+ "showLabel": false,
281
+ "dictName": "",
282
+ "width": "",
283
+ "height": "",
284
+ "options": [{
285
+ "value": "合肥"
286
+ },
287
+ {
288
+ "value": "六安"
289
+ },
290
+ {
291
+ "value": "马鞍山"
292
+ },
293
+ {
294
+ "value": "当涂"
295
+ },
296
+ {
297
+ "value": "安庆"
298
+ },
299
+ {
300
+ "value": "池州"
301
+ },
302
+ {
303
+ "value": "滁州"
304
+ },
305
+ {
306
+ "value": "宿州"
307
+ }
308
+ ],
309
+ "remote": false,
310
+ "filterable": false,
311
+ "remoteOptions": [
312
+
313
+ ],
314
+ "props": {
315
+ "value": "value",
316
+ "label": "label"
317
+ },
318
+ "remoteFunc": "func_1590995502706",
319
+ "canEdit": true,
320
+ "canView": true
321
+ },
322
+ "key": 1590995502706,
323
+ "model": "select_1590995502706",
324
+ "rules": [
325
+
326
+ ]
327
+ },
328
+ {
329
+ "type": "color",
330
+ "name": "颜色选择器",
331
+ "icon": "icon-color",
332
+ "options": {
333
+ "defaultValue": "",
334
+ "disabled": false,
335
+ "showAlpha": false,
336
+ "required": false,
337
+ "canEdit": true,
338
+ "canView": true,
339
+ "height": "",
340
+ "remoteFunc": "func_1590995444388"
341
+ },
342
+ "key": 1590995444388,
343
+ "model": "color_1590995444388",
344
+ "rules": [
345
+
346
+ ]
347
+ },
348
+ {
349
+ "type": "divider",
350
+ "name": "分割线",
351
+ "icon": "icon-fengexian",
352
+ "options": {
353
+ "hidden": false,
354
+ "contentPosition": "left",
355
+ "remoteFunc": "func_1590995462418",
356
+ "canEdit": true,
357
+ "canView": true,
358
+ "height": ""
359
+ },
360
+ "key": 1590995462418,
361
+ "model": "divider_1568601762514",
362
+ "rules": [
363
+
364
+ ]
365
+ },
366
+ {
367
+ "type": "fileupload",
368
+ "name": "文件上传",
369
+ "icon": "icon-shangchuan",
370
+ "key": 1590995506798,
371
+ "ext": ".jpg,.jpeg,.png,.gif,.zip",
372
+ "height": "",
373
+ "options": {
374
+ "defaultValue": [
375
+
376
+ ],
377
+ "action": "/sys/common/upload",
378
+ "tokenFunc": "funcGetToken",
379
+ "token": "",
380
+ "domain": "http://192.168.10.151:84/zsxc",
381
+ "disabled": false,
382
+ "length": 8,
383
+ "multiple": false,
384
+ "isQiniu": false,
385
+ "isDelete": false,
386
+ "min": 0,
387
+ "isEdit": false,
388
+ "fileSize": "",
389
+ "canEdit": true,
390
+ "canView": true,
391
+ "remoteFunc": "func_1590995506798"
392
+ },
393
+ "model": "fileupload_1590995506798",
394
+ "rules": [
395
+
396
+ ]
397
+ },
398
+ {
399
+ "type": "cascader",
400
+ "name": "级联选择",
401
+ "icon": "icon-jilianxuanze",
402
+ "key": 1590995426393,
403
+ "options": {
404
+ "defaultValue": [
405
+
406
+ ],
407
+ "width": "",
408
+ "height": "",
409
+ "placeholder": "",
410
+ "disabled": false,
411
+ "clearable": false,
412
+ "remote": false,
413
+ "remoteOptions": [
414
+
415
+ ],
416
+ "showLabel": true,
417
+ "options": [{
418
+ "value": "value",
419
+ "label": "label",
420
+ "children": [{
421
+ "value": "shejiyuanze",
422
+ "label": "设计原则"
423
+ },
424
+ {
425
+ "value": "she",
426
+ "label": "设计原则12"
427
+ }
428
+ ],
429
+ "canEdit": true,
430
+ "canView": true
431
+ }],
432
+ "props": [
433
+
434
+ ],
435
+ "remoteFunc": "func_1590995426393"
436
+ },
437
+ "model": "cascader_1590995426393",
438
+ "rules": [
439
+
440
+ ]
441
+ },
442
+ {
443
+ "type": "userSelector",
444
+ "name": "人员选择",
445
+ "icon": "icon-grid-",
446
+ "options": {
447
+ "defaultValue": [
448
+
449
+ ],
450
+ "height": "",
451
+ "width": "",
452
+ "multiple": true,
453
+ "placeholder": "请点击选择人员",
454
+ "canEdit": true,
455
+ "canView": true,
456
+ "remoteFunc": "func_1590995487225"
457
+ },
458
+ "key": 1590995487225,
459
+ "model": "userSelector_1590995487225",
460
+ "rules": [
461
+
462
+ ]
463
+ },
464
+ {
465
+ "type": "deptSelector",
466
+ "name": "部门选择",
467
+ "icon": "icon-grid-",
468
+ "options": {
469
+ "defaultValue": "",
470
+ "width": "",
471
+ "placeholder": "请点击选择部门",
472
+ "multiple": true,
473
+ "canEdit": true,
474
+ "canView": true,
475
+ "height": "",
476
+ "remoteFunc": "func_1590995507039"
477
+ },
478
+ "key": 1590995507039,
479
+ "model": "deptSelector_1590995507039",
480
+ "rules": [
481
+
482
+ ]
483
+ },
484
+ {
485
+ "type": "editor",
486
+ "name": "编辑器",
487
+ "icon": "icon-fuwenbenkuang",
488
+ "key": 1590995483465,
489
+ "options": {
490
+ "defaultValue": "",
491
+ "width": "",
492
+ "canEdit": true,
493
+ "canView": true,
494
+ "height": "",
495
+ "remoteFunc": "func_1590995483465"
496
+ },
497
+ "model": "editor_1590995483465",
498
+ "rules": [
499
+
500
+ ]
501
+ },
502
+ {
503
+ "type": "imgupload",
504
+ "name": "图片上传",
505
+ "icon": "icon-tupian",
506
+ "key": 1590995422753,
507
+ "ext": ".jpg,.jpeg,.png,.gif,.zip",
508
+ "options": {
509
+ "defaultValue": [
510
+
511
+ ],
512
+ "size": {
513
+ "width": 100,
514
+ "height": 100
515
+ },
516
+ "height": "",
517
+ "width": "",
518
+ "tokenFunc": "funcGetToken",
519
+ "token": "",
520
+ "domain": "http://192.168.10.151:84/zsxc",
521
+ "disabled": false,
522
+ "length": 1,
523
+ "multiple": false,
524
+ "isQiniu": false,
525
+ "isDelete": true,
526
+ "min": 0,
527
+ "isEdit": false,
528
+ "action": "/sys/common/upload",
529
+ "canEdit": true,
530
+ "canView": true,
531
+ "remoteFunc": "func_1590995422753"
532
+ },
533
+ "model": "imgupload_1590995422753",
534
+ "rules": [
535
+
536
+ ]
537
+ },
538
+ {
539
+ "type": "rate",
540
+ "name": "评分",
541
+ "icon": "icon-icon-test",
542
+ "options": {
543
+ "defaultValue": 0,
544
+ "max": 5,
545
+ "disabled": false,
546
+ "allowHalf": false,
547
+ "required": false,
548
+ "canEdit": true,
549
+ "canView": true,
550
+ "height": "",
551
+ "remoteFunc": "func_1590995410652"
552
+ },
553
+ "key": 1590995410652,
554
+ "model": "rate_1590995410652",
555
+ "rules": [
556
+
557
+ ]
558
+ },
559
+ {
560
+ "type": "slider",
561
+ "name": "滑块",
562
+ "icon": "icon-slider",
563
+ "options": {
564
+ "defaultValue": 0,
565
+ "disabled": false,
566
+ "required": false,
567
+ "min": 0,
568
+ "max": 100,
569
+ "step": 1,
570
+ "showInput": false,
571
+ "range": false,
572
+ "width": "500px",
573
+ "canEdit": true,
574
+ "canView": true,
575
+ "remoteFunc": "func_1590995435230"
576
+ },
577
+ "key": 1590995435230,
578
+ "model": "slider_1590995435230",
579
+ "rules": [
580
+
581
+ ]
582
+ },
583
+ {
584
+ "type": "switch",
585
+ "name": "开关",
586
+ "icon": "icon-switch",
587
+ "options": {
588
+ "defaultValue": false,
589
+ "required": false,
590
+ "disabled": false,
591
+ "canEdit": true,
592
+ "canView": true,
593
+ "height": "",
594
+ "remoteFunc": "func_1590995418153"
595
+ },
596
+ "key": 1590995418153,
597
+ "model": "switch_1590995418153",
598
+ "rules": [
599
+
600
+ ]
601
+ },
602
+ {
603
+ "type": "checkbox",
604
+ "name": "多选框组",
605
+ "icon": "icon-check-box",
606
+ "options": {
607
+ "inline": false,
608
+ "defaultValue": [
609
+
610
+ ],
611
+ "showLabel": false,
612
+ "options": [{
613
+ "value": "选项1"
614
+ },
615
+ {
616
+ "value": "选项2"
617
+ },
618
+ {
619
+ "value": "选项3"
620
+ }
621
+ ],
622
+ "required": false,
623
+ "width": "",
624
+ "height": "",
625
+ "remote": false,
626
+ "remoteOptions": [
627
+
628
+ ],
629
+ "props": {
630
+ "value": "value",
631
+ "label": "label"
632
+ },
633
+ "remoteFunc": "func_1590995470138",
634
+ "disabled": false,
635
+ "canEdit": true,
636
+ "canView": true
637
+ },
638
+ "key": 1590995470138,
639
+ "model": "checkbox_1590995470138",
640
+ "rules": [
641
+
642
+ ]
643
+ },
644
+ {
645
+ "type": "date",
646
+ "name": "日期选择",
647
+ "icon": "icon-date",
648
+ "options": {
649
+ "defaultValue": "",
650
+ "readonly": false,
651
+ "disabled": false,
652
+ "editable": true,
653
+ "height": "",
654
+ "clearable": true,
655
+ "placeholder": "",
656
+ "startPlaceholder": "",
657
+ "endPlaceholder": "",
658
+ "type": "date",
659
+ "format": "yyyy-MM-dd",
660
+ "timestamp": false,
661
+ "required": false,
662
+ "width": "",
663
+ "canEdit": true,
664
+ "canView": true,
665
+ "remoteFunc": "func_1590995400404"
666
+ },
667
+ "key": 1590995400404,
668
+ "model": "date_1590995400404",
669
+ "rules": [
670
+
671
+ ]
672
+ },
673
+ {
674
+ "type": "time",
675
+ "name": "时间选择",
676
+ "icon": "icon-time",
677
+ "options": {
678
+ "defaultValue": "",
679
+ "readonly": false,
680
+ "disabled": false,
681
+ "height": "",
682
+ "editable": true,
683
+ "clearable": true,
684
+ "placeholder": "",
685
+ "startPlaceholder": "",
686
+ "endPlaceholder": "",
687
+ "isRange": false,
688
+ "arrowControl": true,
689
+ "format": "HH:mm:ss",
690
+ "required": false,
691
+ "width": "",
692
+ "canEdit": true,
693
+ "canView": true,
694
+ "remoteFunc": "func_1590995425766"
695
+ },
696
+ "key": 1590995425766,
697
+ "model": "time_1590995425766",
698
+ "rules": [
699
+
700
+ ]
701
+ }
702
+ ],
703
+ "config": {
704
+ "labelWidth": 100,
705
+ "labelPosition": "right",
706
+ "size": "small",
707
+ "customClass": ""
708
+ }
709
+ }