@vipl520/dk-ui 1.0.53 → 1.0.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (181) hide show
  1. package/dist/attributes.json +8 -0
  2. package/dist/index.css +1 -1
  3. package/dist/index.js +2012 -1428
  4. package/dist/index.min.js +4 -4
  5. package/dist/index.min.js.map +1 -1
  6. package/dist/index.min.mjs +4 -4
  7. package/dist/index.min.mjs.map +1 -1
  8. package/dist/index.mjs +2011 -1429
  9. package/dist/tags.json +7 -0
  10. package/dist/web-types.json +35 -1
  11. package/es/form/src/form.vue2.mjs +0 -1
  12. package/es/form/src/form.vue2.mjs.map +1 -1
  13. package/es/group/src/group.vue2.mjs +1 -0
  14. package/es/group/src/group.vue2.mjs.map +1 -1
  15. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs +23 -21
  16. package/es/hot-area-input/src/component/hot-area-content.vue2.mjs.map +1 -1
  17. package/es/icon/style/index.css +0 -1
  18. package/es/icon/style/index.scss +1 -1
  19. package/es/index.d.ts +1 -0
  20. package/es/index.mjs +5 -2
  21. package/es/index.mjs.map +1 -1
  22. package/es/index.scss +1 -0
  23. package/es/page-diy/src/config/rule/min/common/DkMinGrid.d.ts +81 -0
  24. package/es/page-diy/src/config/rule/min/common/DkMinGrid.mjs +114 -0
  25. package/es/page-diy/src/config/rule/min/common/DkMinGrid.mjs.map +1 -0
  26. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +8 -0
  27. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs +7 -1
  28. package/es/page-diy/src/config/rule/min/common/DkMinSwiperImage.mjs.map +1 -1
  29. package/es/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +35 -30
  30. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs +76 -62
  31. package/es/page-diy/src/config/rule/min/common/DkMinTitle.mjs.map +1 -1
  32. package/es/page-diy/src/config/rule/min/common/index.d.ts +240 -60
  33. package/es/page-diy/src/config/rule/min/common/index.mjs +4 -2
  34. package/es/page-diy/src/config/rule/min/common/index.mjs.map +1 -1
  35. package/es/page-diy/src/config/rule/min/index.d.ts +240 -60
  36. package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs +1 -1
  37. package/es/page-diy/src/config/rule/web/common/DkViewSwipe.mjs.map +1 -1
  38. package/es/page-diy/src/props.mjs +1 -1
  39. package/es/page-diy/src/props.mjs.map +1 -1
  40. package/es/page-diy/src/views/min/DkMinGrid.vue.d.ts +22 -0
  41. package/es/page-diy/src/views/min/DkMinGrid.vue.mjs +65 -0
  42. package/es/page-diy/src/views/min/DkMinGrid.vue.mjs.map +1 -0
  43. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +9 -0
  44. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs +7 -2
  45. package/es/page-diy/src/views/min/DkMinSwiperImage.vue.mjs.map +1 -1
  46. package/es/page-diy/src/views/min/DkMinTitle.vue.d.ts +62 -17
  47. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs +59 -30
  48. package/es/page-diy/src/views/min/DkMinTitle.vue.mjs.map +1 -1
  49. package/es/page-diy/src/views/min/index.mjs +3 -1
  50. package/es/page-diy/src/views/min/index.mjs.map +1 -1
  51. package/es/page-diy/style/drag-tool.css +1 -1
  52. package/es/page-diy/style/drag-tool.scss +4 -0
  53. package/es/page-diy/style/index.css +1 -1
  54. package/es/page-diy/style/minViews/index.scss +8 -0
  55. package/es/style-box-input/src/style-box-input.vue2.mjs +200 -130
  56. package/es/style-box-input/src/style-box-input.vue2.mjs.map +1 -1
  57. package/es/style-box-input/style/index.css +1 -1
  58. package/es/style-box-input/style/index.scss +13 -3
  59. package/es/style-font-input/src/style-font-input.vue2.mjs +105 -272
  60. package/es/style-font-input/src/style-font-input.vue2.mjs.map +1 -1
  61. package/es/style-input/src/style-input.vue2.mjs +1 -0
  62. package/es/style-input/src/style-input.vue2.mjs.map +1 -1
  63. package/es/style-shadow-input/src/style-shadow-input.vue2.mjs +1 -1
  64. package/es/style-shadow-input/src/style-shadow-input.vue2.mjs.map +1 -1
  65. package/es/test/index.d.ts +4 -2
  66. package/es/test/src/test.vue.d.ts +4 -2
  67. package/es/test/src/test.vue2.mjs +14 -3
  68. package/es/test/src/test.vue2.mjs.map +1 -1
  69. package/es/tiny-editor/src/tiny-editor.vue2.mjs +1 -1
  70. package/es/tiny-editor/src/tiny-editor.vue2.mjs.map +1 -1
  71. package/es/uni-icon/style/index.css +1 -1
  72. package/es/uni-icon/style/index.scss +1 -1
  73. package/es/url-input/index.d.ts +35 -0
  74. package/es/url-input/index.mjs +8 -0
  75. package/es/url-input/index.mjs.map +1 -0
  76. package/es/url-input/src/props.d.ts +16 -0
  77. package/es/url-input/src/props.mjs +13 -0
  78. package/es/url-input/src/props.mjs.map +1 -0
  79. package/es/url-input/src/url-input-content.vue.d.ts +25 -0
  80. package/es/url-input/src/url-input-content.vue.mjs +7 -0
  81. package/es/url-input/src/url-input-content.vue.mjs.map +1 -0
  82. package/es/url-input/src/url-input-content.vue2.mjs +301 -0
  83. package/es/url-input/src/url-input-content.vue2.mjs.map +1 -0
  84. package/es/url-input/src/url-input-table.vue.d.ts +16 -0
  85. package/es/url-input/src/url-input-table.vue.mjs +7 -0
  86. package/es/url-input/src/url-input-table.vue.mjs.map +1 -0
  87. package/es/url-input/src/url-input-table.vue2.mjs +63 -0
  88. package/es/url-input/src/url-input-table.vue2.mjs.map +1 -0
  89. package/es/url-input/src/url-input.vue.d.ts +34 -0
  90. package/es/url-input/src/url-input.vue.mjs +7 -0
  91. package/es/url-input/src/url-input.vue.mjs.map +1 -0
  92. package/es/url-input/src/url-input.vue2.mjs +69 -0
  93. package/es/url-input/src/url-input.vue2.mjs.map +1 -0
  94. package/es/url-input/style/index.css +1 -0
  95. package/es/url-input/style/index.scss +39 -0
  96. package/lib/form/src/form.vue2.js +0 -1
  97. package/lib/form/src/form.vue2.js.map +1 -1
  98. package/lib/group/src/group.vue2.js +1 -0
  99. package/lib/group/src/group.vue2.js.map +1 -1
  100. package/lib/hot-area-input/src/component/hot-area-content.vue2.js +23 -21
  101. package/lib/hot-area-input/src/component/hot-area-content.vue2.js.map +1 -1
  102. package/lib/icon/style/index.css +0 -1
  103. package/lib/icon/style/index.scss +1 -1
  104. package/lib/index.d.ts +1 -0
  105. package/lib/index.js +8 -3
  106. package/lib/index.js.map +1 -1
  107. package/lib/index.scss +1 -0
  108. package/lib/page-diy/src/config/rule/min/common/DkMinGrid.d.ts +81 -0
  109. package/lib/page-diy/src/config/rule/min/common/DkMinGrid.js +118 -0
  110. package/lib/page-diy/src/config/rule/min/common/DkMinGrid.js.map +1 -0
  111. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.d.ts +8 -0
  112. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js +7 -1
  113. package/lib/page-diy/src/config/rule/min/common/DkMinSwiperImage.js.map +1 -1
  114. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.d.ts +35 -30
  115. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js +76 -62
  116. package/lib/page-diy/src/config/rule/min/common/DkMinTitle.js.map +1 -1
  117. package/lib/page-diy/src/config/rule/min/common/index.d.ts +240 -60
  118. package/lib/page-diy/src/config/rule/min/common/index.js +4 -2
  119. package/lib/page-diy/src/config/rule/min/common/index.js.map +1 -1
  120. package/lib/page-diy/src/config/rule/min/index.d.ts +240 -60
  121. package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js +1 -1
  122. package/lib/page-diy/src/config/rule/web/common/DkViewSwipe.js.map +1 -1
  123. package/lib/page-diy/src/props.js +1 -1
  124. package/lib/page-diy/src/props.js.map +1 -1
  125. package/lib/page-diy/src/views/min/DkMinGrid.vue.d.ts +22 -0
  126. package/lib/page-diy/src/views/min/DkMinGrid.vue.js +69 -0
  127. package/lib/page-diy/src/views/min/DkMinGrid.vue.js.map +1 -0
  128. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.d.ts +9 -0
  129. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js +7 -2
  130. package/lib/page-diy/src/views/min/DkMinSwiperImage.vue.js.map +1 -1
  131. package/lib/page-diy/src/views/min/DkMinTitle.vue.d.ts +62 -17
  132. package/lib/page-diy/src/views/min/DkMinTitle.vue.js +58 -29
  133. package/lib/page-diy/src/views/min/DkMinTitle.vue.js.map +1 -1
  134. package/lib/page-diy/src/views/min/index.js +3 -1
  135. package/lib/page-diy/src/views/min/index.js.map +1 -1
  136. package/lib/page-diy/style/drag-tool.css +1 -1
  137. package/lib/page-diy/style/drag-tool.scss +4 -0
  138. package/lib/page-diy/style/index.css +1 -1
  139. package/lib/page-diy/style/minViews/index.scss +8 -0
  140. package/lib/style-box-input/src/style-box-input.vue2.js +199 -129
  141. package/lib/style-box-input/src/style-box-input.vue2.js.map +1 -1
  142. package/lib/style-box-input/style/index.css +1 -1
  143. package/lib/style-box-input/style/index.scss +13 -3
  144. package/lib/style-font-input/src/style-font-input.vue2.js +105 -272
  145. package/lib/style-font-input/src/style-font-input.vue2.js.map +1 -1
  146. package/lib/style-input/src/style-input.vue2.js +1 -0
  147. package/lib/style-input/src/style-input.vue2.js.map +1 -1
  148. package/lib/style-shadow-input/src/style-shadow-input.vue2.js +1 -1
  149. package/lib/style-shadow-input/src/style-shadow-input.vue2.js.map +1 -1
  150. package/lib/test/index.d.ts +4 -2
  151. package/lib/test/src/test.vue.d.ts +4 -2
  152. package/lib/test/src/test.vue2.js +14 -3
  153. package/lib/test/src/test.vue2.js.map +1 -1
  154. package/lib/tiny-editor/src/tiny-editor.vue2.js +1 -1
  155. package/lib/tiny-editor/src/tiny-editor.vue2.js.map +1 -1
  156. package/lib/uni-icon/style/index.css +1 -1
  157. package/lib/uni-icon/style/index.scss +1 -1
  158. package/lib/url-input/index.d.ts +35 -0
  159. package/lib/url-input/index.js +14 -0
  160. package/lib/url-input/index.js.map +1 -0
  161. package/lib/url-input/src/props.d.ts +16 -0
  162. package/lib/url-input/src/props.js +15 -0
  163. package/lib/url-input/src/props.js.map +1 -0
  164. package/lib/url-input/src/url-input-content.vue.d.ts +25 -0
  165. package/lib/url-input/src/url-input-content.vue.js +11 -0
  166. package/lib/url-input/src/url-input-content.vue.js.map +1 -0
  167. package/lib/url-input/src/url-input-content.vue2.js +305 -0
  168. package/lib/url-input/src/url-input-content.vue2.js.map +1 -0
  169. package/lib/url-input/src/url-input-table.vue.d.ts +16 -0
  170. package/lib/url-input/src/url-input-table.vue.js +11 -0
  171. package/lib/url-input/src/url-input-table.vue.js.map +1 -0
  172. package/lib/url-input/src/url-input-table.vue2.js +67 -0
  173. package/lib/url-input/src/url-input-table.vue2.js.map +1 -0
  174. package/lib/url-input/src/url-input.vue.d.ts +34 -0
  175. package/lib/url-input/src/url-input.vue.js +11 -0
  176. package/lib/url-input/src/url-input.vue.js.map +1 -0
  177. package/lib/url-input/src/url-input.vue2.js +73 -0
  178. package/lib/url-input/src/url-input.vue2.js.map +1 -0
  179. package/lib/url-input/style/index.css +1 -0
  180. package/lib/url-input/style/index.scss +39 -0
  181. package/package.json +1 -1
@@ -120,6 +120,14 @@ export const minRuleList: {
120
120
  props?: undefined;
121
121
  options?: undefined;
122
122
  effect?: undefined;
123
+ } | {
124
+ type: string;
125
+ field: string;
126
+ title: string;
127
+ value: number;
128
+ props?: undefined;
129
+ options?: undefined;
130
+ effect?: undefined;
123
131
  } | {
124
132
  type: string;
125
133
  field: string;
@@ -170,12 +178,30 @@ export const minRuleList: {
170
178
  props: {
171
179
  title: string;
172
180
  subtitle: string;
181
+ iconType: string;
182
+ iconSize: number;
183
+ showSubtitle: boolean;
173
184
  };
174
185
  showStyle: boolean;
175
186
  fixed: boolean;
176
- setting: {};
187
+ setting: {
188
+ style: {
189
+ paddingLeft: string;
190
+ paddingRight: string;
191
+ paddingTop: string;
192
+ paddingBottom: string;
193
+ backgroundColor: string;
194
+ };
195
+ };
177
196
  };
178
- props(): {
197
+ props(): ({
198
+ type: string;
199
+ field: string;
200
+ title: string;
201
+ value?: undefined;
202
+ options?: undefined;
203
+ control?: undefined;
204
+ } | {
179
205
  type: string;
180
206
  field: string;
181
207
  title: string;
@@ -184,49 +210,36 @@ export const minRuleList: {
184
210
  label: string;
185
211
  value: string;
186
212
  }[];
187
- control: ({
213
+ control: {
188
214
  value: string;
189
215
  rule: ({
190
216
  type: string;
191
217
  field: string;
192
218
  title: string;
193
219
  value: string;
194
- options?: undefined;
195
220
  } | {
196
221
  type: string;
197
222
  field: string;
198
223
  title: string;
199
- value: string;
200
- options: {
201
- label: string;
202
- value: string;
203
- }[];
224
+ value: number;
204
225
  })[];
205
- } | {
206
- value: string;
207
- rule: ({
226
+ }[];
227
+ } | {
228
+ type: string;
229
+ field: string;
230
+ title: string;
231
+ value: boolean;
232
+ control: {
233
+ value: boolean;
234
+ rule: {
208
235
  type: string;
209
236
  field: string;
210
237
  title: string;
211
238
  value: string;
212
- control?: undefined;
213
- } | {
214
- type: string;
215
- field: string;
216
- title: string;
217
- value: boolean;
218
- control: {
219
- value: boolean;
220
- rule: {
221
- type: string;
222
- field: string;
223
- title: string;
224
- value: string;
225
- }[];
226
- }[];
227
- })[];
228
- })[];
229
- }[];
239
+ }[];
240
+ }[];
241
+ options?: undefined;
242
+ })[];
230
243
  } | {
231
244
  icon: string;
232
245
  label: string;
@@ -310,6 +323,83 @@ export const minRuleList: {
310
323
  help: string;
311
324
  };
312
325
  })[];
326
+ } | {
327
+ icon: string;
328
+ label: string;
329
+ name: string;
330
+ rule(): {
331
+ type: string;
332
+ props: {
333
+ imageStyle: {
334
+ width: string;
335
+ height: string;
336
+ marginBottom: string;
337
+ borderRadius: string;
338
+ };
339
+ list: {
340
+ title: string;
341
+ image: string;
342
+ }[];
343
+ };
344
+ showStyle: boolean;
345
+ children: never[];
346
+ style: {};
347
+ setting: {
348
+ style: {
349
+ backgroundColor: string;
350
+ };
351
+ };
352
+ };
353
+ props(): ({
354
+ type: string;
355
+ field: string;
356
+ title: string;
357
+ value: number;
358
+ props?: undefined;
359
+ } | {
360
+ type: string;
361
+ field: string;
362
+ title: string;
363
+ props: {
364
+ title: string;
365
+ defaultValue: {
366
+ title: string;
367
+ image: string;
368
+ };
369
+ rule: {
370
+ type: string;
371
+ field: string;
372
+ title: string;
373
+ }[];
374
+ isDrawer?: undefined;
375
+ drawerProps?: undefined;
376
+ hideComponents?: undefined;
377
+ };
378
+ value: never[];
379
+ } | {
380
+ type: string;
381
+ field: string;
382
+ title: string;
383
+ value?: undefined;
384
+ props?: undefined;
385
+ } | {
386
+ type: string;
387
+ field: string;
388
+ title: string;
389
+ props: {
390
+ isDrawer: boolean;
391
+ drawerProps: {
392
+ title: string;
393
+ size: string;
394
+ zIndex: number;
395
+ };
396
+ hideComponents: string[];
397
+ title?: undefined;
398
+ defaultValue?: undefined;
399
+ rule?: undefined;
400
+ };
401
+ value?: undefined;
402
+ })[];
313
403
  };
314
404
  };
315
405
  export function createMinMenu(): {
@@ -436,6 +526,14 @@ export function createMinMenu(): {
436
526
  props?: undefined;
437
527
  options?: undefined;
438
528
  effect?: undefined;
529
+ } | {
530
+ type: string;
531
+ field: string;
532
+ title: string;
533
+ value: number;
534
+ props?: undefined;
535
+ options?: undefined;
536
+ effect?: undefined;
439
537
  } | {
440
538
  type: string;
441
539
  field: string;
@@ -486,12 +584,30 @@ export function createMinMenu(): {
486
584
  props: {
487
585
  title: string;
488
586
  subtitle: string;
587
+ iconType: string;
588
+ iconSize: number;
589
+ showSubtitle: boolean;
489
590
  };
490
591
  showStyle: boolean;
491
592
  fixed: boolean;
492
- setting: {};
593
+ setting: {
594
+ style: {
595
+ paddingLeft: string;
596
+ paddingRight: string;
597
+ paddingTop: string;
598
+ paddingBottom: string;
599
+ backgroundColor: string;
600
+ };
601
+ };
493
602
  };
494
- props(): {
603
+ props(): ({
604
+ type: string;
605
+ field: string;
606
+ title: string;
607
+ value?: undefined;
608
+ options?: undefined;
609
+ control?: undefined;
610
+ } | {
495
611
  type: string;
496
612
  field: string;
497
613
  title: string;
@@ -500,49 +616,36 @@ export function createMinMenu(): {
500
616
  label: string;
501
617
  value: string;
502
618
  }[];
503
- control: ({
619
+ control: {
504
620
  value: string;
505
621
  rule: ({
506
622
  type: string;
507
623
  field: string;
508
624
  title: string;
509
625
  value: string;
510
- options?: undefined;
511
626
  } | {
512
627
  type: string;
513
628
  field: string;
514
629
  title: string;
515
- value: string;
516
- options: {
517
- label: string;
518
- value: string;
519
- }[];
630
+ value: number;
520
631
  })[];
521
- } | {
522
- value: string;
523
- rule: ({
632
+ }[];
633
+ } | {
634
+ type: string;
635
+ field: string;
636
+ title: string;
637
+ value: boolean;
638
+ control: {
639
+ value: boolean;
640
+ rule: {
524
641
  type: string;
525
642
  field: string;
526
643
  title: string;
527
644
  value: string;
528
- control?: undefined;
529
- } | {
530
- type: string;
531
- field: string;
532
- title: string;
533
- value: boolean;
534
- control: {
535
- value: boolean;
536
- rule: {
537
- type: string;
538
- field: string;
539
- title: string;
540
- value: string;
541
- }[];
542
- }[];
543
- })[];
544
- })[];
545
- }[];
645
+ }[];
646
+ }[];
647
+ options?: undefined;
648
+ })[];
546
649
  } | {
547
650
  icon: string;
548
651
  label: string;
@@ -626,5 +729,82 @@ export function createMinMenu(): {
626
729
  help: string;
627
730
  };
628
731
  })[];
732
+ } | {
733
+ icon: string;
734
+ label: string;
735
+ name: string;
736
+ rule(): {
737
+ type: string;
738
+ props: {
739
+ imageStyle: {
740
+ width: string;
741
+ height: string;
742
+ marginBottom: string;
743
+ borderRadius: string;
744
+ };
745
+ list: {
746
+ title: string;
747
+ image: string;
748
+ }[];
749
+ };
750
+ showStyle: boolean;
751
+ children: never[];
752
+ style: {};
753
+ setting: {
754
+ style: {
755
+ backgroundColor: string;
756
+ };
757
+ };
758
+ };
759
+ props(): ({
760
+ type: string;
761
+ field: string;
762
+ title: string;
763
+ value: number;
764
+ props?: undefined;
765
+ } | {
766
+ type: string;
767
+ field: string;
768
+ title: string;
769
+ props: {
770
+ title: string;
771
+ defaultValue: {
772
+ title: string;
773
+ image: string;
774
+ };
775
+ rule: {
776
+ type: string;
777
+ field: string;
778
+ title: string;
779
+ }[];
780
+ isDrawer?: undefined;
781
+ drawerProps?: undefined;
782
+ hideComponents?: undefined;
783
+ };
784
+ value: never[];
785
+ } | {
786
+ type: string;
787
+ field: string;
788
+ title: string;
789
+ value?: undefined;
790
+ props?: undefined;
791
+ } | {
792
+ type: string;
793
+ field: string;
794
+ title: string;
795
+ props: {
796
+ isDrawer: boolean;
797
+ drawerProps: {
798
+ title: string;
799
+ size: string;
800
+ zIndex: number;
801
+ };
802
+ hideComponents: string[];
803
+ title?: undefined;
804
+ defaultValue?: undefined;
805
+ rule?: undefined;
806
+ };
807
+ value?: undefined;
808
+ })[];
629
809
  })[];
630
810
  }[];
@@ -128,7 +128,7 @@ var DkViewSwipe = {
128
128
  title: "\u662F\u5426\u663E\u793A"
129
129
  },
130
130
  {
131
- type: "input",
131
+ type: "urlInput",
132
132
  field: "url",
133
133
  props: {
134
134
  showInput: false
@@ -1 +1 @@
1
- {"version":3,"file":"DkViewSwipe.js","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewSwipe.js"],"sourcesContent":["const label = '轮播'\nconst name = 'DkViewSwipe'\nexport default {\n icon: 'dashicons:images-alt2',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n swipeList: [\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/06/FsivVhWrSJsQWx0GhgOJKS_IOQp_.jpg?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称1',\n show: true,\n },\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/07/Fm30KtbmHzLJ96USZWFGI8FLQVss.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称2',\n show: true,\n },\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/01/Fj19dCrgsMyTYdrr89b9iheMVFZU.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称3',\n show: true,\n },\n ],\n autoplay: 2000,\n },\n showStyle: true,\n }\n },\n props() {\n return [\n {\n type: 'switch',\n field: 'heightAuto',\n title: '自定义高度',\n value: false,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'inputNumber',\n field: 'height',\n title: '图片高度',\n value: 200,\n props: { min: 0, max: 500 },\n },\n {\n type: 'select',\n field: 'fit',\n title: '填充模式',\n value: 'cover',\n options: [\n { label: 'fill:拉伸填充', value: 'fill' },\n { label: 'contain:缩放填充', value: 'contain' },\n { label: 'cover:最大宽度填充', value: 'cover' },\n { label: 'none:原始尺寸', value: 'none' },\n { label: 'scale-down:对比宽高填充', value: 'scale-down' },\n ],\n },\n ],\n },\n ],\n },\n { type: 'DkColorInput', field: 'bgColor', title: '背景色', value: '' },\n {\n type: 'slider',\n field: 'autoplay',\n title: '轮播间隔',\n value: 3000,\n props: {\n min: 500,\n max: 10000,\n step: 100,\n formatTooltip: (val) => {\n return val / 1000 + '秒'\n },\n },\n },\n {\n type: 'el-divider',\n props: {},\n children: ['轮播配置'],\n col: { span: 24 },\n field: 'divider',\n },\n // { type: 'DkImageUrlInput', field: 'swipeList', value: [], props: {} },\n // TODO 优化默认图\n {\n type: 'DkGroup',\n field: 'swipeList',\n value: [],\n props: {\n title: '图片配置',\n // addTitle:'',\n defaultValue: {\n img: 'https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png',\n url: '',\n title: '新内容',\n },\n rule: [\n {\n type: 'input',\n field: 'title',\n value: '',\n title: '备注名称',\n },\n {\n type: 'DkImageInput',\n field: 'img',\n value: '',\n title: '选择图标',\n },\n {\n type: 'switch',\n field: 'show',\n value: true,\n title: '是否显示',\n },\n {\n type: 'input',\n field: 'url',\n props: {\n showInput: false,\n },\n value: {},\n title: '跳转地址',\n },\n ],\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM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MAGA;AAAA,QACE,IAAM,EAAA,SAAA;AAAA,QACN,KAAO,EAAA,WAAA;AAAA,QACP,OAAO,EAAC;AAAA,QACR,KAAO,EAAA;AAAA,UACL,KAAO,EAAA,0BAAA;AAAA;AAAA,UAEP,YAAc,EAAA;AAAA,YACZ,GAAK,EAAA,kFAAA;AAAA,YACL,GAAK,EAAA,EAAA;AAAA,YACL,KAAO,EAAA,oBAAA;AAAA,WACT;AAAA,UACA,IAAM,EAAA;AAAA,YACJ;AAAA,cACE,IAAM,EAAA,OAAA;AAAA,cACN,KAAO,EAAA,OAAA;AAAA,cACP,KAAO,EAAA,EAAA;AAAA,cACP,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,YACA;AAAA,cACE,IAAM,EAAA,cAAA;AAAA,cACN,KAAO,EAAA,KAAA;AAAA,cACP,KAAO,EAAA,EAAA;AAAA,cACP,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,YACA;AAAA,cACE,IAAM,EAAA,QAAA;AAAA,cACN,KAAO,EAAA,MAAA;AAAA,cACP,KAAO,EAAA,IAAA;AAAA,cACP,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,YACA;AAAA,cACE,IAAM,EAAA,OAAA;AAAA,cACN,KAAO,EAAA,KAAA;AAAA,cACP,KAAO,EAAA;AAAA,gBACL,SAAW,EAAA,KAAA;AAAA,eACb;AAAA,cACA,OAAO,EAAC;AAAA,cACR,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
1
+ {"version":3,"file":"DkViewSwipe.js","sources":["../../../../../../../src/page-diy/src/config/rule/web/common/DkViewSwipe.js"],"sourcesContent":["const label = '轮播'\nconst name = 'DkViewSwipe'\nexport default {\n icon: 'dashicons:images-alt2',\n label,\n name,\n rule() {\n return {\n type: name,\n props: {\n swipeList: [\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/06/FsivVhWrSJsQWx0GhgOJKS_IOQp_.jpg?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称1',\n show: true,\n },\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/07/Fm30KtbmHzLJ96USZWFGI8FLQVss.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称2',\n show: true,\n },\n {\n img: 'https://img01.yzcdn.cn/upload_files/2021/07/01/Fj19dCrgsMyTYdrr89b9iheMVFZU.png?imageMogr2/format/jpg/thumbnail/1484x/size-limit/300k!/interlace/1',\n url: '',\n title: '默认备注名称3',\n show: true,\n },\n ],\n autoplay: 2000,\n },\n showStyle: true,\n }\n },\n props() {\n return [\n {\n type: 'switch',\n field: 'heightAuto',\n title: '自定义高度',\n value: false,\n control: [\n {\n value: true,\n rule: [\n {\n type: 'inputNumber',\n field: 'height',\n title: '图片高度',\n value: 200,\n props: { min: 0, max: 500 },\n },\n {\n type: 'select',\n field: 'fit',\n title: '填充模式',\n value: 'cover',\n options: [\n { label: 'fill:拉伸填充', value: 'fill' },\n { label: 'contain:缩放填充', value: 'contain' },\n { label: 'cover:最大宽度填充', value: 'cover' },\n { label: 'none:原始尺寸', value: 'none' },\n { label: 'scale-down:对比宽高填充', value: 'scale-down' },\n ],\n },\n ],\n },\n ],\n },\n { type: 'DkColorInput', field: 'bgColor', title: '背景色', value: '' },\n {\n type: 'slider',\n field: 'autoplay',\n title: '轮播间隔',\n value: 3000,\n props: {\n min: 500,\n max: 10000,\n step: 100,\n formatTooltip: (val) => {\n return val / 1000 + '秒'\n },\n },\n },\n {\n type: 'el-divider',\n props: {},\n children: ['轮播配置'],\n col: { span: 24 },\n field: 'divider',\n },\n // { type: 'DkImageUrlInput', field: 'swipeList', value: [], props: {} },\n // TODO 优化默认图\n {\n type: 'DkGroup',\n field: 'swipeList',\n value: [],\n props: {\n title: '图片配置',\n // addTitle:'',\n defaultValue: {\n img: 'https://cdn.w7.cc/images/2019/03/25/j0C525ySgwApwp1gmIRUdDS6ZXL8lOrbxoiM6JZb.png',\n url: '',\n title: '新内容',\n },\n rule: [\n {\n type: 'input',\n field: 'title',\n value: '',\n title: '备注名称',\n },\n {\n type: 'DkImageInput',\n field: 'img',\n value: '',\n title: '选择图标',\n },\n {\n type: 'switch',\n field: 'show',\n value: true,\n title: '是否显示',\n },\n {\n type: 'urlInput',\n field: 'url',\n props: {\n showInput: false,\n },\n value: {},\n title: '跳转地址',\n },\n ],\n },\n },\n ]\n },\n}\n"],"names":[],"mappings":";;;;AAAA,MAAM,KAAQ,GAAA,cAAA,CAAA;AACd,MAAM,IAAO,GAAA,aAAA,CAAA;AACb,kBAAe;AAAA,EACb,IAAM,EAAA,uBAAA;AAAA,EACN,KAAA;AAAA,EACA,IAAA;AAAA,EACA,IAAO,GAAA;AACL,IAAO,OAAA;AAAA,MACL,IAAM,EAAA,IAAA;AAAA,MACN,KAAO,EAAA;AAAA,QACL,SAAW,EAAA;AAAA,UACT;AAAA,YACE,GAAK,EAAA,oJAAA;AAAA,YACL,GAAK,EAAA,EAAA;AAAA,YACL,KAAO,EAAA,uCAAA;AAAA,YACP,IAAM,EAAA,IAAA;AAAA,WACR;AAAA,UACA;AAAA,YACE,GAAK,EAAA,oJAAA;AAAA,YACL,GAAK,EAAA,EAAA;AAAA,YACL,KAAO,EAAA,uCAAA;AAAA,YACP,IAAM,EAAA,IAAA;AAAA,WACR;AAAA,UACA;AAAA,YACE,GAAK,EAAA,oJAAA;AAAA,YACL,GAAK,EAAA,EAAA;AAAA,YACL,KAAO,EAAA,uCAAA;AAAA,YACP,IAAM,EAAA,IAAA;AAAA,WACR;AAAA,SACF;AAAA,QACA,QAAU,EAAA,GAAA;AAAA,OACZ;AAAA,MACA,SAAW,EAAA,IAAA;AAAA,KACb,CAAA;AAAA,GACF;AAAA,EACA,KAAQ,GAAA;AACN,IAAO,OAAA;AAAA,MACL;AAAA,QACE,IAAM,EAAA,QAAA;AA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KAAA;AAAA,eACb;AAAA,cACA,OAAO,EAAC;AAAA,cACR,KAAO,EAAA,0BAAA;AAAA,aACT;AAAA,WACF;AAAA,SACF;AAAA,OACF;AAAA,KACF,CAAA;AAAA,GACF;AACF,CAAA;;;;"}
@@ -30,7 +30,7 @@ const pageDiyProps = {
30
30
  },
31
31
  rightAsideWidth: {
32
32
  type: String,
33
- default: "300px"
33
+ default: "320px"
34
34
  },
35
35
  leftAsideWidth: {
36
36
  type: String,
@@ -1 +1 @@
1
- {"version":3,"file":"props.js","sources":["../../../src/page-diy/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const pageDiyProps = {\n // DIY 类型 分别为:web(网页)、min(小程序)\n type: {\n type: String,\n default: 'web',\n },\n menu: {\n type: Object,\n default: null,\n },\n height: {\n type: String,\n default: '',\n },\n config: {\n type: Object,\n default: () => {\n return {}\n },\n },\n mask: {\n type: String,\n default: undefined,\n },\n loading: {\n type: Boolean,\n default: undefined,\n },\n rightAsideWidth: {\n type: String,\n default: '300px',\n },\n leftAsideWidth: {\n type: String,\n default: '285px',\n },\n // 'menu', 'height', 'config', 'mask', 'locale', 'loading'\n}\n\nexport type PageDiyProps = ExtractPropTypes<typeof pageDiyProps>\n"],"names":[],"mappings":";;AAEO,MAAM,YAAe,GAAA;AAAA;AAAA,EAE1B,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,SAAS,MAAM;AACb,MAAA,OAAO,EAAC,CAAA;AAAA,KACV;AAAA,GACF;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EACA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,OAAA;AAAA,GACX;AAAA,EACA,cAAgB,EAAA;AAAA,IACd,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,OAAA;AAAA,GACX;AAAA;AAEF;;;;"}
1
+ {"version":3,"file":"props.js","sources":["../../../src/page-diy/src/props.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\n\nexport const pageDiyProps = {\n // DIY 类型 分别为:web(网页)、min(小程序)\n type: {\n type: String,\n default: 'web',\n },\n menu: {\n type: Object,\n default: null,\n },\n height: {\n type: String,\n default: '',\n },\n config: {\n type: Object,\n default: () => {\n return {}\n },\n },\n mask: {\n type: String,\n default: undefined,\n },\n loading: {\n type: Boolean,\n default: undefined,\n },\n rightAsideWidth: {\n type: String,\n default: '320px',\n },\n leftAsideWidth: {\n type: String,\n default: '285px',\n },\n // 'menu', 'height', 'config', 'mask', 'locale', 'loading'\n}\n\nexport type PageDiyProps = ExtractPropTypes<typeof pageDiyProps>\n"],"names":[],"mappings":";;AAEO,MAAM,YAAe,GAAA;AAAA;AAAA,EAE1B,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,IAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,EAAA;AAAA,GACX;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,MAAA;AAAA,IACN,SAAS,MAAM;AACb,MAAA,OAAO,EAAC,CAAA;AAAA,KACV;AAAA,GACF;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EACA,OAAS,EAAA;AAAA,IACP,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EACA,eAAiB,EAAA;AAAA,IACf,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,OAAA;AAAA,GACX;AAAA,EACA,cAAgB,EAAA;AAAA,IACd,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,OAAA;AAAA,GACX;AAAA;AAEF;;;;"}
@@ -0,0 +1,22 @@
1
+ declare const _default: import("vue").DefineComponent<Readonly<{
2
+ list?: any;
3
+ columnNum?: any;
4
+ fontStyle?: any;
5
+ imageStyle?: any;
6
+ useImageStyle?: any;
7
+ }>, any, {
8
+ value: string;
9
+ }, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<Readonly<{
10
+ list?: any;
11
+ columnNum?: any;
12
+ fontStyle?: any;
13
+ imageStyle?: any;
14
+ useImageStyle?: any;
15
+ }>>>, {
16
+ readonly list?: any;
17
+ readonly columnNum?: any;
18
+ readonly fontStyle?: any;
19
+ readonly imageStyle?: any;
20
+ readonly useImageStyle?: any;
21
+ }, {}>;
22
+ export default _default;
@@ -0,0 +1,69 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+ var _pluginVue_exportHelper = require('../../../../_virtual/_plugin-vue_export-helper.js');
7
+
8
+ const _sfc_main = {
9
+ name: 'DkMinGrid',
10
+ props: ['list', 'columnNum', 'imageStyle', 'useImageStyle', 'fontStyle'],
11
+ data: () => {
12
+ return {
13
+ value: '',
14
+ }
15
+ },
16
+ };
17
+
18
+ const _hoisted_1 = ["src"];
19
+
20
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
21
+ const _component_dk_icon = vue.resolveComponent("dk-icon");
22
+ const _component_van_grid_item = vue.resolveComponent("van-grid-item");
23
+ const _component_van_grid = vue.resolveComponent("van-grid");
24
+ const _component_el_empty = vue.resolveComponent("el-empty");
25
+
26
+ return ($props.list?.length > 0)
27
+ ? (vue.openBlock(), vue.createBlock(_component_van_grid, {
28
+ key: 0,
29
+ border: false,
30
+ "column-num": $props.columnNum,
31
+ class: "min-h-30px dk-app-gold-grid"
32
+ }, {
33
+ default: vue.withCtx(() => [
34
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.list, (item, key) => {
35
+ return (vue.openBlock(), vue.createBlock(_component_van_grid_item, { key: key }, {
36
+ default: vue.withCtx(() => [
37
+ (item.image)
38
+ ? (vue.openBlock(), vue.createElementBlock("img", {
39
+ key: 0,
40
+ src: item.image,
41
+ alt: "",
42
+ style: vue.normalizeStyle($props.imageStyle)
43
+ }, null, 12 /* STYLE, PROPS */, _hoisted_1))
44
+ : (vue.openBlock(), vue.createElementBlock("div", {
45
+ key: 1,
46
+ class: "flex justify-center items-center",
47
+ style: vue.normalizeStyle([{"display":"flex","background":"#f3f5f7"}, $props.imageStyle])
48
+ }, [
49
+ vue.createVNode(_component_dk_icon, {
50
+ icon: "PictureFilled",
51
+ color: "#BBBFC8"
52
+ })
53
+ ], 4 /* STYLE */)),
54
+ vue.createElementVNode("span", {
55
+ style: vue.normalizeStyle({ ...$props.fontStyle })
56
+ }, vue.toDisplayString(item.title), 5 /* TEXT, STYLE */)
57
+ ]),
58
+ _: 2 /* DYNAMIC */
59
+ }, 1024 /* DYNAMIC_SLOTS */))
60
+ }), 128 /* KEYED_FRAGMENT */))
61
+ ]),
62
+ _: 1 /* STABLE */
63
+ }, 8 /* PROPS */, ["column-num"]))
64
+ : (vue.openBlock(), vue.createBlock(_component_el_empty, { key: 1 }))
65
+ }
66
+ var DkMinGrid = /*#__PURE__*/_pluginVue_exportHelper.default(_sfc_main, [['render',_sfc_render],['__file',"E:\\project\\monster-admin\\system\\dkgs-ui-back\\packages\\dk-ui\\src\\page-diy\\src\\views\\min\\DkMinGrid.vue"]]);
67
+
68
+ exports.default = DkMinGrid;
69
+ //# sourceMappingURL=DkMinGrid.vue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DkMinGrid.vue.js","sources":["../../../../../src/page-diy/src/views/min/DkMinGrid.vue"],"sourcesContent":["<template>\n <van-grid v-if=\"list?.length > 0\" :border=\"false\" :column-num=\"columnNum\" class=\"min-h-30px dk-app-gold-grid\">\n <van-grid-item v-for=\"(item, key) in list\" :key=\"key\">\n <img v-if=\"item.image\" :src=\"item.image\" alt=\"\" :style=\"imageStyle\" />\n <div\n v-else\n class=\"flex justify-center items-center\"\n style=\"display: flex; background: #f3f5f7\"\n :style=\"imageStyle\"\n >\n <dk-icon icon=\"PictureFilled\" color=\"#BBBFC8\"></dk-icon>\n </div>\n <span :style=\"{ ...fontStyle }\">{{ item.title }}</span>\n </van-grid-item>\n </van-grid>\n <el-empty v-else></el-empty>\n</template>\n<script>\nexport default {\n name: 'DkMinGrid',\n props: ['list', 'columnNum', 'imageStyle', 'useImageStyle', 'fontStyle'],\n data: () => {\n return {\n value: '',\n }\n },\n}\n</script>\n"],"names":["_createBlock","_openBlock","_createElementBlock","_Fragment","_renderList","_normalizeStyle","_createVNode","_createElementVNode","_toDisplayString"],"mappings":";;;;;;;AAkBA,MAAK,SAAU,GAAA;AACb,EAAA,IAAI,EAAE,WAAW;AACjB,EAAA,KAAK,EAAE,CAAC,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,WAAW,CAAC;AACxE,EAAA,IAAI,EAAE,MAAM;AACV,IAAA,OAAO;AACL,MAAA,KAAK,EAAE,EAAE;AACX,KAAA;GACD;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,EAAA,CAAA,CAAA;;;;;;"}
@@ -27,6 +27,10 @@ declare const _default: import("vue").DefineComponent<{
27
27
  default: boolean;
28
28
  type: BooleanConstructor;
29
29
  };
30
+ radius: {
31
+ default: number;
32
+ type: NumberConstructor;
33
+ };
30
34
  }, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
35
  value: {
32
36
  default: string;
@@ -56,9 +60,14 @@ declare const _default: import("vue").DefineComponent<{
56
60
  default: boolean;
57
61
  type: BooleanConstructor;
58
62
  };
63
+ radius: {
64
+ default: number;
65
+ type: NumberConstructor;
66
+ };
59
67
  }>>, {
60
68
  value: string;
61
69
  height: string | number;
70
+ radius: number;
62
71
  bgColor: string;
63
72
  autoplay: string | number;
64
73
  swipeList: unknown[];
@@ -36,6 +36,10 @@ const _sfc_main = {
36
36
  default: false,
37
37
  type: Boolean,
38
38
  },
39
+ radius: {
40
+ default: 0,
41
+ type: Number,
42
+ },
39
43
  },
40
44
  data() {
41
45
  return {}
@@ -71,8 +75,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
71
75
  vue.createVNode(_component_van_image, {
72
76
  src: item.img,
73
77
  width: "100%",
74
- height: $props.height
75
- }, null, 8 /* PROPS */, ["src", "height"]),
78
+ height: $props.height,
79
+ style: vue.normalizeStyle($props.radius ? 'border-radius: ' + $props.radius + 'px; overflow: hidden' : '')
80
+ }, null, 8 /* PROPS */, ["src", "height", "style"]),
76
81
  ($props.showTitle)
77
82
  ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, vue.toDisplayString(item.title), 1 /* TEXT */))
78
83
  : vue.createCommentVNode("v-if", true)
@@ -1 +1 @@
1
- {"version":3,"file":"DkMinSwiperImage.vue.js","sources":["../../../../../src/page-diy/src/views/min/DkMinSwiperImage.vue"],"sourcesContent":["<template>\n <van-swipe class=\"dk-min-swipe\" :autoplay=\"autoplay\" indicator-color=\"white\" :style=\"{ background: bgColor || '' }\">\n <van-swipe-item v-for=\"(item, key) in swipeList\" :key=\"key\">\n <van-image :src=\"item.img\" width=\"100%\" :height=\"height\" />\n <div v-if=\"showTitle\" class=\"swipe-title\">\n {{ item.title }}\n </div>\n </van-swipe-item>\n </van-swipe>\n</template>\n\n<script>\nexport default {\n name: 'DkMinSwiperImage',\n props: {\n value: {\n default: '',\n type: String,\n },\n height: {\n default: '',\n type: [Number, String],\n },\n autoplay: {\n default: 3000,\n type: [Number, String],\n },\n swipeList: {\n default: () => [],\n type: [Array],\n },\n imgMode: {\n default: 'aspectFill',\n type: String,\n },\n bgColor: {\n default: '',\n type: String,\n },\n showTitle: {\n default: false,\n type: Boolean,\n },\n },\n data() {\n return {}\n },\n computed: {},\n watch: {\n swipeList(val) {},\n },\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createBlock","_openBlock","_createElementBlock","_Fragment","_renderList","_createVNode","_toDisplayString"],"mappings":";;;;;;;AAYA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,kBAAkB;AACxB,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE;MACL,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;AACD,IAAA,MAAM,EAAE;MACN,OAAO,EAAE,EAAE;AACX,MAAA,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KACvB;AACD,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,IAAI;AACb,MAAA,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KACvB;IACD,SAAS,EAAE;AACT,MAAA,OAAO,EAAE,MAAM,EAAE;MACjB,IAAI,EAAE,CAAC,KAAK,CAAC;KACd;AACD,IAAA,OAAO,EAAE;AACP,MAAA,OAAO,EAAE,YAAY;MACrB,IAAI,EAAE,MAAM;KACb;AACD,IAAA,OAAO,EAAE;MACP,OAAO,EAAE,EAAE;MACX,IAAI,E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-min-swipe\" :autoplay=\"autoplay\" indicator-color=\"white\" :style=\"{ background: bgColor || '' }\">\n <van-swipe-item v-for=\"(item, key) in swipeList\" :key=\"key\">\n <van-image\n :src=\"item.img\"\n width=\"100%\"\n :height=\"height\"\n :style=\"radius ? 'border-radius: ' + radius + 'px; overflow: hidden' : ''\"\n />\n <div v-if=\"showTitle\" class=\"swipe-title\">\n {{ item.title }}\n </div>\n </van-swipe-item>\n </van-swipe>\n</template>\n\n<script>\nexport default {\n name: 'DkMinSwiperImage',\n props: {\n value: {\n default: '',\n type: String,\n },\n height: {\n default: '',\n type: [Number, String],\n },\n autoplay: {\n default: 3000,\n type: [Number, String],\n },\n swipeList: {\n default: () => [],\n type: [Array],\n },\n imgMode: {\n default: 'aspectFill',\n type: String,\n },\n bgColor: {\n default: '',\n type: String,\n },\n showTitle: {\n default: false,\n type: Boolean,\n },\n radius: {\n default: 0,\n type: Number,\n },\n },\n data() {\n return {}\n },\n computed: {},\n watch: {\n swipeList(val) {},\n },\n mounted() {},\n methods: {},\n}\n</script>\n"],"names":["_createBlock","_openBlock","_createElementBlock","_Fragment","_renderList","_createVNode","_normalizeStyle","_toDisplayString"],"mappings":";;;;;;;AAiBA,MAAK,SAAU,GAAA;EACb,IAAI,EAAE,kBAAkB;AACxB,EAAA,KAAK,EAAE;AACL,IAAA,KAAK,EAAE;MACL,OAAO,EAAE,EAAE;MACX,IAAI,EAAE,MAAM;KACb;AACD,IAAA,MAAM,EAAE;MACN,OAAO,EAAE,EAAE;AACX,MAAA,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KACvB;AACD,IAAA,QAAQ,EAAE;MACR,OAAO,EAAE,IAAI;AACb,MAAA,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KACvB;IACD,SAAS,EAAE;AACT,MAAA,OAAO,EAAE,MAAM,EAAE;MACjB,IAAI,EAAE,CAAC,KAAK,CAAC;KACd;AACD,IAAA,OAAO,EAAE;AACP,MAAA,OAAO,EA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