v-uni-app-ui 1.0.0 → 1.0.4

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 (86) hide show
  1. package/README.md +147 -0
  2. package/components/config/css/basic.scss +19 -0
  3. package/components/config/interface/basic-type.js +16 -0
  4. package/components/config/interface/components-interface.ts +0 -0
  5. package/components/config/interface/monitor/components/input-monitor.js +0 -0
  6. package/components/config/interface/monitor/property-monitor.ts +136 -0
  7. package/components/config/interface/props/basic-props.ts +88 -0
  8. package/components/config/interface/props/components/button-props.ts +85 -0
  9. package/components/config/interface/props/components/input-props.ts +69 -0
  10. package/components/config/interface/props/props-tools.ts +64 -0
  11. package/components/config/style/basic.js +346 -0
  12. package/components/config/style/component-registry.js +142 -0
  13. package/components/config/style/components/button-style.js +160 -0
  14. package/components/config/style/components/input-style.js +98 -0
  15. package/components/config/style/components-style.js +622 -0
  16. package/components/config/style/property-mapper.js +377 -0
  17. package/components/config/style/pseudo-processor.js +213 -0
  18. package/components/config.js +123 -0
  19. package/components/icon/iconfont.css +87 -0
  20. package/components/icon/iconfont.js +1 -0
  21. package/components/icon/iconfont.json +135 -0
  22. package/components/icon/iconfont.ttf +0 -0
  23. package/components/icon/iconfont.woff +0 -0
  24. package/components/icon/iconfont.woff2 +0 -0
  25. package/components/layout/v-card/v-card.vue +108 -0
  26. package/components/layout/v-grid/v-grid.vue +162 -0
  27. package/components/layout/v-icon-grid/v-icon-grid.vue +195 -0
  28. package/components/layout/v-infinite-scroll/v-infinite-scroll.vue +172 -0
  29. package/components/layout/v-list/v-list.vue +43 -0
  30. package/components/layout/v-row/v-row.vue +142 -0
  31. package/components/layout/v-waterfall/v-waterfall.vue +79 -0
  32. package/components/model/compound/v-checkbox-group/v-checkbox-group.vue +96 -0
  33. package/components/model/compound/v-console/v-console.js +20 -0
  34. package/components/model/compound/v-console/v-console.vue +299 -0
  35. package/components/model/compound/v-date-time/v-date-time.vue +261 -0
  36. package/components/model/compound/v-dialog/v-dialog.vue +178 -0
  37. package/components/model/compound/v-drum-select-picker/v-drum-select-picker.vue +83 -0
  38. package/components/model/compound/v-form/v-form.vue +226 -0
  39. package/components/model/compound/v-form-item/v-form-item.vue +255 -0
  40. package/components/model/compound/v-image/v-image.vue +357 -0
  41. package/components/model/compound/v-input-desensitize/v-input-desensitize.vue +101 -0
  42. package/components/model/compound/v-page/v-page.vue +11 -0
  43. package/components/model/compound/v-pages/v-pages.vue +141 -0
  44. package/components/model/compound/v-picker-list/v-picker-list.vue +109 -0
  45. package/components/model/compound/v-popup/v-popup.vue +151 -0
  46. package/components/model/compound/v-radio-group/v-radio-group.vue +86 -0
  47. package/components/model/compound/v-select-picker/v-select-picker.vue +202 -0
  48. package/components/model/compound/v-series-picker-list/v-series-picker-list.vue +221 -0
  49. package/components/model/compound/v-series-select-picker/v-series-select-picker.vue +203 -0
  50. package/components/model/compound/v-switch/v-switch.vue +136 -0
  51. package/components/model/compound/v-tabs-page/v-tabs-page.vue +138 -0
  52. package/components/model/native/v-badge/v-badge.vue +143 -0
  53. package/components/model/native/v-button/v-button.vue +81 -0
  54. package/components/model/native/v-carousel/v-carousel.vue +138 -0
  55. package/components/model/native/v-checkbox/v-checkbox.vue +215 -0
  56. package/components/model/native/v-collapse/v-collapse.vue +190 -0
  57. package/components/model/native/v-header-navigation-bar/v-header-navigation-bar.vue +92 -0
  58. package/components/model/native/v-input/v-input.vue +163 -0
  59. package/components/model/native/v-input-code/v-input-code.vue +146 -0
  60. package/components/model/native/v-loading/v-loading.vue +206 -0
  61. package/components/model/native/v-menu/v-menu.vue +222 -0
  62. package/components/model/native/v-menu-slide/v-menu-slide.vue +364 -0
  63. package/components/model/native/v-min-loading/v-min-loading.vue +80 -0
  64. package/components/model/native/v-null/v-null.vue +97 -0
  65. package/components/model/native/v-overlay/v-overlay.vue +96 -0
  66. package/components/model/native/v-pull-up-refresh/v-pull-up-refresh.vue +157 -0
  67. package/components/model/native/v-radio/v-radio.vue +138 -0
  68. package/components/model/native/v-scroll-list/v-scroll-list.vue +169 -0
  69. package/components/model/native/v-steps/v-steps.vue +253 -0
  70. package/components/model/native/v-table/v-table.vue +203 -0
  71. package/components/model/native/v-tabs/v-tabs.vue +235 -0
  72. package/components/model/native/v-tag/v-tag.vue +206 -0
  73. package/components/model/native/v-text/v-text.vue +187 -0
  74. package/components/model/native/v-textarea/v-textarea.vue +178 -0
  75. package/components/model/native/v-title/v-title.vue +91 -0
  76. package/components/model/native/v-toast/info.png +0 -0
  77. package/components/model/native/v-toast/success.png +0 -0
  78. package/components/model/native/v-toast/v-toast.vue +198 -0
  79. package/components/model/native/v-toast/warn.png +0 -0
  80. package/components/model/native/v-upload-file-button/v-upload-file-button.vue +296 -0
  81. package/components/model/native/v-video/v-video.vue +175 -0
  82. package/components/model/native/v-window/v-window.vue +158 -0
  83. package/components/utils/event-modifiers.ts +139 -0
  84. package/components/utils/validator.ts +451 -0
  85. package/index.js +372 -0
  86. package/package.json +25 -93
@@ -0,0 +1,87 @@
1
+ @font-face {
2
+ font-family: "iconfont"; /* Project id 5074649 */
3
+ src: url('iconfont.woff2?t=1768618926322') format('woff2'),
4
+ url('iconfont.woff?t=1768618926322') format('woff'),
5
+ url('iconfont.ttf?t=1768618926322') format('truetype');
6
+ }
7
+
8
+ .iconfont {
9
+ font-family: "iconfont" !important;
10
+ font-size: 16px;
11
+ font-style: normal;
12
+ -webkit-font-smoothing: antialiased;
13
+ -moz-osx-font-smoothing: grayscale;
14
+ }
15
+
16
+ .icon-chenggong:before {
17
+ content: "\e621";
18
+ }
19
+
20
+ .icon-xiazai:before {
21
+ content: "\e61e";
22
+ }
23
+
24
+ .icon-guanbi:before {
25
+ content: "\e60d";
26
+ }
27
+
28
+ .icon-youxiang:before {
29
+ content: "\e623";
30
+ }
31
+
32
+ .icon-youxiang1:before {
33
+ content: "\e64c";
34
+ }
35
+
36
+ .icon-shang:before {
37
+ content: "\e63c";
38
+ }
39
+
40
+ .icon-xia:before {
41
+ content: "\e63d";
42
+ }
43
+
44
+ .icon-zuo:before {
45
+ content: "\e63e";
46
+ }
47
+
48
+ .icon-shangchuan:before {
49
+ content: "\e71a";
50
+ }
51
+
52
+ .icon-jianshao:before {
53
+ content: "\e638";
54
+ }
55
+
56
+ .icon-zengjia:before {
57
+ content: "\e640";
58
+ }
59
+
60
+ .icon-shoujihao:before {
61
+ content: "\e76d";
62
+ }
63
+
64
+ .icon-24gl-infoCircle:before {
65
+ content: "\e97d";
66
+ }
67
+
68
+ .icon-24gl-pictureSplit:before {
69
+ content: "\e9ee";
70
+ }
71
+
72
+ .icon-jinggao:before {
73
+ content: "\e84f";
74
+ }
75
+
76
+ .icon-you:before {
77
+ content: "\e614";
78
+ }
79
+
80
+ .icon-shipinjiazaishibai1-01:before {
81
+ content: "\e63f";
82
+ }
83
+
84
+ .icon-url:before {
85
+ content: "\e646";
86
+ }
87
+
@@ -0,0 +1 @@
1
+ window._iconfont_svg_string_5074649='<svg><symbol id="icon-chenggong" viewBox="0 0 1042 1024"><path d="M512.124675 0C230.981818 0 0.124675 228.571429 0.124675 512s228.571429 512 512 512 512-228.571429 512-512S793.267532 0 512.124675 0z m0 985.142857c-260.571429 0-475.428571-212.571429-475.428571-475.428571S249.267532 36.571429 512.124675 36.571429s475.428571 212.571429 475.428572 475.428571-214.857143 473.142857-475.428572 473.142857z" ></path><path d="M763.553247 320l-342.857143 342.857143-162.285714-164.571429c-6.857143-6.857143-18.285714-6.857143-25.142858 0-6.857143 6.857143-6.857143 18.285714 0 25.142857l176 176c4.571429 4.571429 9.142857 4.571429 13.714286 4.571429s9.142857-2.285714 13.714286-4.571429l354.285714-354.285714c6.857143-6.857143 6.857143-18.285714 0-25.142857-6.857143-6.857143-18.285714-6.857143-27.428571 0z" ></path></symbol><symbol id="icon-xiazai" viewBox="0 0 1024 1024"><path d="M875.488083 475.268424 840.693626 475.268424 840.693626 773.060761 182.656575 773.060761 182.656575 475.268424 147.864164 475.268424 147.864164 766.920924 147.861094 766.920924 147.861094 807.854195 875.455337 807.854195 875.455337 792.479019 875.488083 792.479019Z" fill="#272636" ></path><path d="M512.17959 688.905082 548.359604 652.726092 682.842505 524.382005 656.895553 498.435053 529.575796 617.570407 529.575796 215.453027 494.783385 215.452004 494.783385 617.570407 367.462604 498.436076 341.515652 524.380982 475.999576 652.726092Z" fill="#272636" ></path></symbol><symbol id="icon-guanbi" viewBox="0 0 1024 1024"><path d="M511.38704 951.479313c-247.110027 0-448.149786-201.039759-448.149786-448.149786S264.277012 55.180763 511.38704 55.180763s448.13853 201.039759 448.13853 448.149786S758.496044 951.479313 511.38704 951.479313zM511.38704 77.041654c-235.05855 0-426.288896 191.230346-426.288896 426.288896s191.230346 426.288896 426.288896 426.288896c235.048317 0 426.27764-191.230346 426.27764-426.288896S746.434334 77.041654 511.38704 77.041654z" fill="#0A0A0C" ></path><path d="M697.087439 699.972139c-2.796696 0-5.593392-1.067308-7.728008-3.201925L317.947376 325.346903c-4.269233-4.269233-4.269233-11.186783 0-15.456017 4.269233-4.269233 11.186783-4.269233 15.456017 0l371.412055 371.422288c4.269233 4.269233 4.269233 11.186783 0 15.456017C702.68083 698.904831 699.884135 699.972139 697.087439 699.972139z" fill="#070707" ></path><path d="M325.675384 699.972139c-2.796696 0-5.593392-1.067308-7.728008-3.201925-4.269233-4.269233-4.269233-11.186783 0-15.456017L689.35943 309.890886c4.269233-4.269233 11.186783-4.269233 15.456017 0 4.269233 4.269233 4.269233 11.186783 0 15.456017L333.403392 696.770214C331.268776 698.904831 328.47208 699.972139 325.675384 699.972139z" fill="#070707" ></path></symbol><symbol id="icon-youxiang" viewBox="0 0 1024 1024"><path d="M830.455808 317.425664c9.168896-6.85056 22.183936-4.583424 28.29312 3.844096 6.873088 9.168896 4.585472 22.181888-4.583424 28.291072L529.94048 585.066496c-7.63904 5.347328-16.807936 4.585472-23.709696 0L181.266432 349.56288c-9.168896-6.111232-10.696704-19.122176-4.583424-28.291072 6.90176-8.42752 19.124224-10.694656 28.291072-3.844096l312.743936 226.33472L830.455808 317.425664zM171.33568 176.754688l692.760576 0c22.943744 0 43.595776 9.168896 58.116096 24.446976 14.5408 14.5408 23.7056 35.19488 23.7056 57.37472l0 516.134912c0 22.153216-9.166848 42.805248-23.7056 58.109952l0 0 0 0 0 0c-15.282176 14.518272-35.172352 23.683072-58.116096 23.683072L171.33568 856.50432c-22.183936 0-42.809344-9.166848-57.348096-23.683072-15.280128-15.304704-24.471552-35.190784-24.471552-58.109952L89.516032 258.574336c0-22.17984 9.191424-42.83392 24.471552-57.37472l0 0C128.526336 185.921536 149.153792 176.754688 171.33568 176.754688L171.33568 176.754688zM864.096256 217.270272 171.33568 217.270272c-11.460608 0-21.417984 4.583424-29.057024 12.222464l0 0c-7.63904 7.63904-12.224512 17.598464-12.224512 29.0816l0 516.134912c0 11.45856 4.585472 22.153216 12.224512 29.054976 7.63904 7.641088 17.596416 12.222464 29.057024 12.222464l692.760576 0c11.485184 0 22.181888-4.579328 29.822976-12.222464l0 0c6.873088-6.899712 11.483136-17.596416 11.483136-29.054976L905.402368 258.574336c0-11.483136-4.610048-21.44256-11.483136-29.0816C886.278144 221.853696 875.58144 217.270272 864.096256 217.270272L864.096256 217.270272zM506.230784 585.066496c-2.265088-1.527808-3.792896-3.055616-4.583424-4.583424" ></path></symbol><symbol id="icon-youxiang1" viewBox="0 0 1024 1024"><path d="M577.536 388.096v26.112c-21.504-16.384-48.128-26.112-77.312-26.112-71.168 0-128.512 57.856-128.512 128.512 0 71.168 57.856 128.512 128.512 128.512 36.864 0 69.632-15.36 93.184-40.448 16.384 30.72 45.568 40.448 87.04 40.448 77.312 0 102.912-47.616 102.912-128.512 0-167.424-126.976-283.136-283.136-283.136s-283.136 126.976-283.136 283.136c0 156.16 126.976 283.136 283.136 283.136 75.776 0 146.944-29.184 200.192-82.944l-18.432-18.432c-48.64 48.64-113.152 75.264-182.272 75.264-141.824 0-257.536-115.712-257.536-257.536s115.2-257.536 257.536-257.536c141.824 0 257.536 103.424 257.536 257.536 0 64.512-18.432 102.912-77.312 102.912-75.776 0-77.312-47.104-77.312-102.912V387.584h-25.088z m-78.336 231.936c-56.832 0-102.912-46.08-102.912-103.424s46.08-102.912 102.912-102.912c30.72 0 58.368 13.824 77.312 35.328v67.584c0 24.064 2.048 44.032 5.632 60.416-18.944 26.112-49.152 43.008-82.944 43.008z" fill="" ></path></symbol><symbol id="icon-shang" viewBox="0 0 1024 1024"><path d="M904 692c0 8.189-3.124 16.379-9.372 22.628-12.497 12.496-32.759 12.496-45.256 0L512 377.255 174.628 714.628c-12.497 12.496-32.758 12.496-45.255 0-12.497-12.498-12.497-32.758 0-45.256l360-360c12.497-12.496 32.758-12.496 45.255 0l360 360C900.876 675.621 904 683.811 904 692z" fill="" ></path></symbol><symbol id="icon-xia" viewBox="0 0 1024 1024"><path d="M904 332c0-8.189-3.124-16.379-9.372-22.628-12.497-12.496-32.759-12.496-45.256 0L512 646.745 174.628 309.372c-12.497-12.496-32.758-12.496-45.255 0-12.497 12.498-12.497 32.758 0 45.256l360 360c12.497 12.496 32.758 12.496 45.255 0l360-360C900.876 348.379 904 340.189 904 332z" fill="" ></path></symbol><symbol id="icon-zuo" viewBox="0 0 1024 1024"><path d="M481.233 904c8.189 0 16.379-3.124 22.628-9.372 12.496-12.497 12.496-32.759 0-45.256L166.488 512l337.373-337.373c12.496-12.497 12.496-32.758 0-45.255-12.498-12.497-32.758-12.497-45.256 0l-360 360c-12.496 12.497-12.496 32.758 0 45.255l360 360c6.249 6.249 14.439 9.373 22.628 9.373z" fill="" ></path></symbol><symbol id="icon-shangchuan" viewBox="0 0 1024 1024"><path d="M268.8 597.333333h51.2c12.8 0 21.333333-8.533333 21.333333-21.333333s-8.533333-21.333333-21.333333-21.333333H268.8c-17.066667 0-25.6 0-34.133333 4.266666-8.533333 4.266667-12.8 8.533333-17.066667 17.066667-4.266667 8.533333-4.266667 12.8-4.266667 34.133333v102.4c0 17.066667 0 25.6 4.266667 34.133334 4.266667 8.533333 8.533333 12.8 17.066667 17.066666 8.533333 4.266667 12.8 4.266667 34.133333 4.266667h486.4c17.066667 0 25.6 0 34.133333-4.266667 8.533333-4.266667 12.8-8.533333 17.066667-17.066666 4.266667-8.533333 4.266667-12.8 4.266667-34.133334v-102.4c0-17.066667 0-25.6-4.266667-34.133333-4.266667-8.533333-8.533333-12.8-17.066667-17.066667-8.533333-4.266667-12.8-4.266667-34.133333-4.266666h-51.2c-12.8 0-21.333333 8.533333-21.333333 21.333333s8.533333 21.333333 21.333333 21.333333H768V725.333333H256V610.133333 597.333333h12.8z" ></path><path d="M533.333333 328.533333l85.333334 85.333334c8.533333 8.533333 21.333333 8.533333 29.866666 0 8.533333-8.533333 8.533333-21.333333 0-29.866667l-119.466666-119.466667c-8.533333-8.533333-21.333333-8.533333-29.866667 0L375.466667 384c-8.533333 8.533333-8.533333 21.333333 0 29.866667 8.533333 8.533333 21.333333 8.533333 29.866666 0l85.333334-85.333334v281.6c0 12.8 8.533333 21.333333 21.333333 21.333334s21.333333-8.533333 21.333333-21.333334V328.533333z" ></path></symbol><symbol id="icon-jianshao" viewBox="0 0 1024 1024"><path d="M849.4 456.6H168.6c-28.9 0-52.4 23.5-52.4 52.4s23.5 52.4 52.4 52.4h680.9c28.9 0 52.4-23.5 52.4-52.4s-23.5-52.4-52.5-52.4z" ></path></symbol><symbol id="icon-zengjia" viewBox="0 0 1024 1024"><path d="M842.8 457.6H560.4V175.2c0-28.4-23-51.4-51.4-51.4s-51.4 23-51.4 51.4v282.5H175.2c-28.4 0-51.4 23-51.4 51.4s23 51.4 51.4 51.4h282.5V843c0 28.4 23 51.4 51.4 51.4s51.4-23 51.4-51.4V560.4H843c28.4 0 51.4-23 51.4-51.4-0.2-28.4-23.2-51.4-51.6-51.4z" ></path></symbol><symbol id="icon-shoujihao" viewBox="0 0 1024 1024"><path d="M512.641575 897.959719m-41.95899 0a41.95899 41.95899 0 1 0 83.91798 0 41.95899 41.95899 0 1 0-83.91798 0Z" ></path><path d="M762.004192 1024H261.960813a109.744281 109.744281 0 0 1-109.650962-109.650961V109.650961A109.744281 109.744281 0 0 1 261.960813 0h500.078374a109.744281 109.744281 0 0 1 109.650962 109.650961v804.721408a109.744281 109.744281 0 0 1-109.685957 109.627631zM261.960813 40.827486a68.823476 68.823476 0 0 0-68.823476 68.823475v804.721408a68.823476 68.823476 0 0 0 68.823476 68.823475h500.078374a68.823476 68.823476 0 0 0 68.823476-68.823475V109.650961a68.823476 68.823476 0 0 0-68.823476-68.823475z" ></path><path d="M171.40545 767.171785h682.47225v40.827486H171.40545z" ></path></symbol><symbol id="icon-24gl-infoCircle" viewBox="0 0 1024 1024"><path d="M533.333333 85.333333c-247.426667 0-448 200.573333-448 448s200.573333 448 448 448 448-200.573333 448-448-200.573333-448-448-448z m0 853.333334c-223.86 0-405.333333-181.473333-405.333333-405.333334s181.473333-405.333333 405.333333-405.333333 405.333333 181.473333 405.333334 405.333333-181.473333 405.333333-405.333334 405.333334z m21.333334-618.666667a21.333333 21.333333 0 1 1-21.333334-21.333333 21.333333 21.333333 0 0 1 21.333334 21.333333z m-21.333334 448h-21.333333a21.333333 21.333333 0 0 1-21.28-22.853333l19.706667-275.873334A21.333333 21.333333 0 0 1 512 426.666667h21.333333a21.333333 21.333333 0 0 1 21.28 22.853333l-19.706666 275.873333A21.333333 21.333333 0 0 1 533.333333 768z" fill="#5C5C66" ></path></symbol><symbol id="icon-24gl-pictureSplit" viewBox="0 0 1024 1024"><path d="M320 896H242.166667l273.753333-273.746667a21.333333 21.333333 0 0 0 3.16-26.133333L429.653333 447.066667l165.426667-330.86A21.333333 21.333333 0 0 0 576 85.333333H96a53.393333 53.393333 0 0 0-53.333333 53.333334v746.666666a53.393333 53.393333 0 0 0 53.333333 53.333334h224a21.333333 21.333333 0 0 0 0-42.666667zM96 128h445.48L386.253333 438.46a21.333333 21.333333 0 0 0 0.786667 20.513333L474 603.86l-69.333333 69.333333-89.62-89.653333a53.333333 53.333333 0 0 0-75.426667 0L85.333333 737.826667V138.666667a10.666667 10.666667 0 0 1 10.666667-10.666667z m-10.666667 757.333333v-87.166666l184.46-184.453334a10.666667 10.666667 0 0 1 15.08 0L374.5 703.333333l-192.666667 192.666667H96a10.666667 10.666667 0 0 1-10.666667-10.666667z m192-458.666666c58.813333 0 106.666667-47.853333 106.666667-106.666667s-47.853333-106.666667-106.666667-106.666667-106.666667 47.853333-106.666666 106.666667 47.853333 106.666667 106.666666 106.666667z m0-170.666667a64 64 0 1 1-64 64 64.073333 64.073333 0 0 1 64-64z m650.666667-128H661.333333a21.333333 21.333333 0 0 0-19.08 11.793333l-0.046666 0.086667c-0.04 0.086667-0.086667 0.173333-0.126667 0.253333L535.586667 353.126667a21.333333 21.333333 0 1 0 38.16 19.08L674.52 170.666667H928a10.666667 10.666667 0 0 1 10.666667 10.666666v471.166667l-154.953334-154.96a53.333333 53.333333 0 0 0-75.426666 0L571.08 634.746667a21.333333 21.333333 0 0 0-3.153333 26.153333l24.666666 41.08-203.646666 244.36A21.333333 21.333333 0 0 0 405.333333 981.333333h522.666667a53.393333 53.393333 0 0 0 53.333333-53.333333V181.333333a53.393333 53.393333 0 0 0-53.333333-53.333333z m0 810.666667H450.88l184.173333-221.006667a21.333333 21.333333 0 0 0 1.906667-24.666667l-23.933333-39.886666 125.433333-125.426667a10.666667 10.666667 0 0 1 15.08 0L938.666667 712.833333V928a10.666667 10.666667 0 0 1-10.666667 10.666667z" fill="#5C5C66" ></path></symbol><symbol id="icon-jinggao" viewBox="0 0 1024 1024"><path d="M512 929.959184c-230.4 0-417.959184-187.559184-417.959184-417.959184s187.559184-417.959184 417.959184-417.959184 417.959184 187.559184 417.959184 417.959184-187.559184 417.959184-417.959184 417.959184z m0-794.122449c-207.412245 0-376.163265 168.75102-376.163265 376.163265s168.75102 376.163265 376.163265 376.163265 376.163265-168.75102 376.163265-376.163265-168.75102-376.163265-376.163265-376.163265z" fill="#333333" ></path><path d="M512 690.677551m-31.346939 0a31.346939 31.346939 0 1 0 62.693878 0 31.346939 31.346939 0 1 0-62.693878 0Z" fill="#333333" ></path><path d="M512 584.097959c-11.493878 0-20.897959-9.404082-20.897959-20.897959v-261.22449c0-11.493878 9.404082-20.897959 20.897959-20.897959s20.897959 9.404082 20.897959 20.897959v261.22449c0 12.016327-9.404082 20.897959-20.897959 20.897959z" fill="#333333" ></path></symbol><symbol id="icon-you" viewBox="0 0 1024 1024"><path d="M758.488 511.053c0-9.247-4.369-17.476-11.14-22.792L340.732 81.574c-5.243-5.243-12.525-8.447-20.535-8.447-16.02 0-28.982 12.962-28.982 28.982 0 8.01 3.204 15.291 8.52 20.534l388.556 388.629-388.556 388.555c-5.243 5.243-8.52 12.525-8.52 20.535 0 16.02 12.962 28.982 28.982 28.982 8.01 0 15.219-3.277 20.535-8.52L751.06 530.496h-0.146c4.733-5.098 7.573-11.942 7.573-19.443z" ></path></symbol><symbol id="icon-shipinjiazaishibai1-01" viewBox="0 0 1024 1024"><path d="M215.9104 342.3232a54.5792 54.5792 0 1 0 54.5792 54.5792 54.6816 54.6816 0 0 0-54.5792-54.5792z m0 77.2096a22.5792 22.5792 0 1 1 22.5792-22.5792 22.6304 22.6304 0 0 1-22.5792 22.528z" ></path><path d="M459.5712 604.16a21.248 21.248 0 0 0 0-22.0672l-112.64-184.9344 96.768-179.2a20.7872 20.7872 0 0 0 2.5088-10.8544v-0.768a21.5552 21.5552 0 0 0-21.4528-21.4528H109.6192C49.152 184.8832 0 238.1824 0 303.5648v375.552c0 65.4848 49.152 118.6816 109.6192 118.6816h222.976a21.504 21.504 0 0 0 19.6608-13.0048z m-349.9008 151.04c-36.7616 0-66.56-33.9968-66.56-75.776V303.5648c0-41.7792 29.952-75.776 66.56-75.776H389.12L303.0016 387.328a21.3504 21.3504 0 0 0 0.6144 21.3504l112.384 184.32-95.7952 161.792zM998.4 370.8416a64.7168 64.7168 0 0 0-64.9216-8.704l-111.5648 45.824L829.44 348.416c8.3456-66.56-33.3824-126.5664-93.184-134.1952L640 201.3184a21.7088 21.7088 0 0 0-13.7216 2.7648 20.48 20.48 0 0 0-8.6016 7.3728L496.1792 392.2432a21.9136 21.9136 0 0 0-1.8944 20.48l82.8928 189.44-119.04 176.3328a21.248 21.248 0 0 0-3.584 10.24 5.12 5.12 0 0 1 0 0.6144 21.6064 21.6064 0 0 0 18.3808 24.2176l184.32 24.9344a110.4384 110.4384 0 0 0 12.544 0.8192 105.0112 105.0112 0 0 0 69.6832-27.4432 128 128 0 0 0 41.5232-80.2816l4.4032-35.4304L878.8992 768a65.5872 65.5872 0 0 0 105.0112-43.2128l39.4752-293.376A64.5632 64.5632 0 0 0 998.4 370.8416z m-259.84 355.2768a85.0944 85.0944 0 0 1-27.3408 53.4528 61.7472 61.7472 0 0 1-48.3328 16.2304l-150.9376-20.48 107.264-158.72a21.248 21.248 0 0 0 1.8944-20.48l-82.8928-189.44L646.4 245.76l84.224 11.2128a61.0816 61.0816 0 0 1 42.8544 27.6992 85.4528 85.4528 0 0 1 13.568 58.368l-48.3328 383.1808z m242.176-300.3904l-39.4752 293.376a22.1696 22.1696 0 0 1-13.824 17.92 22.4768 22.4768 0 0 1-22.4256-2.9696l-112.9472-87.5008 23.9616-189.44 133.9904-54.9888a22.4768 22.4768 0 0 1 30.72 23.8592z" ></path></symbol><symbol id="icon-url" viewBox="0 0 1024 1024"><path d="M757.76 81.92a183.0912 183.0912 0 0 0-130.31424 54.00576l-102.4 102.4A182.96832 182.96832 0 0 0 471.04 368.64c0 28.01664 6.43072 55.02976 18.20672 79.5648l31.232-31.29344A143.31904 143.31904 0 0 1 512 368.64c0-38.2976 14.92992-74.26048 41.984-101.376l102.4-102.4A142.4384 142.4384 0 0 1 757.76 122.88c38.2976 0 74.26048 14.92992 101.376 41.984A142.336 142.336 0 0 1 901.12 266.24c0 38.2976-14.92992 74.26048-41.984 101.376l-102.4 102.4A142.4384 142.4384 0 0 1 655.36 512c-16.73216 0-32.9728-3.01056-48.27136-8.47872l-31.29344 31.232A183.45984 183.45984 0 0 0 655.36 552.96a183.0912 183.0912 0 0 0 130.31424-54.00576l102.4-102.4A183.0912 183.0912 0 0 0 942.08 266.24a183.0912 183.0912 0 0 0-54.00576-130.31424A183.0912 183.0912 0 0 0 757.76 81.92z m-123.2896 286.5152a20.48 20.48 0 0 0-14.06976 6.20544l-245.76 245.76a20.48 20.48 0 1 0 28.95872 28.95872l245.76-245.76a20.48 20.48 0 0 0-14.88896-35.16416zM368.64 471.04a183.0912 183.0912 0 0 0-130.31424 54.00576l-102.4 102.4A182.86592 182.86592 0 0 0 81.92 757.76a183.0912 183.0912 0 0 0 54.00576 130.31424A183.0912 183.0912 0 0 0 266.24 942.08a183.0912 183.0912 0 0 0 130.31424-54.00576l102.4-102.4A183.0912 183.0912 0 0 0 552.96 655.36a183.45984 183.45984 0 0 0-18.20672-79.5648l-31.232 31.29344c5.46816 15.31904 8.47872 31.5392 8.47872 48.27136 0 38.2976-14.92992 74.26048-41.984 101.376l-102.4 102.4A142.4384 142.4384 0 0 1 266.24 901.12a142.4384 142.4384 0 0 1-101.376-41.984A142.336 142.336 0 0 1 122.88 757.76c0-38.2976 14.92992-74.26048 41.984-101.376l102.4-102.4A142.4384 142.4384 0 0 1 368.64 512c16.73216 0 32.9728 3.01056 48.27136 8.47872l31.29344-31.232A183.45984 183.45984 0 0 0 368.64 471.04z" ></path></symbol></svg>',(t=>{var a=(l=(l=document.getElementsByTagName("script"))[l.length-1]).getAttribute("data-injectcss"),l=l.getAttribute("data-disable-injectsvg");if(!l){var c,i,o,e,n,s=function(a,l){l.parentNode.insertBefore(a,l)};if(a&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(a){console&&console.log(a)}}c=function(){var a,l=document.createElement("div");l.innerHTML=t._iconfont_svg_string_5074649,(l=l.getElementsByTagName("svg")[0])&&(l.setAttribute("aria-hidden","true"),l.style.position="absolute",l.style.width=0,l.style.height=0,l.style.overflow="hidden",l=l,(a=document.body).firstChild?s(l,a.firstChild):a.appendChild(l))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(c,0):(i=function(){document.removeEventListener("DOMContentLoaded",i,!1),c()},document.addEventListener("DOMContentLoaded",i,!1)):document.attachEvent&&(o=c,e=t.document,n=!1,d(),e.onreadystatechange=function(){"complete"==e.readyState&&(e.onreadystatechange=null,h())})}function h(){n||(n=!0,o())}function d(){try{e.documentElement.doScroll("left")}catch(a){return void setTimeout(d,50)}h()}})(window);
@@ -0,0 +1,135 @@
1
+ {
2
+ "id": "5074649",
3
+ "name": "no name",
4
+ "font_family": "iconfont",
5
+ "css_prefix_text": "icon-",
6
+ "description": "",
7
+ "glyphs": [
8
+ {
9
+ "icon_id": "26535230",
10
+ "name": "成功",
11
+ "font_class": "chenggong",
12
+ "unicode": "e621",
13
+ "unicode_decimal": 58913
14
+ },
15
+ {
16
+ "icon_id": "199401",
17
+ "name": "下载",
18
+ "font_class": "xiazai",
19
+ "unicode": "e61e",
20
+ "unicode_decimal": 58910
21
+ },
22
+ {
23
+ "icon_id": "731155",
24
+ "name": "上传失败/加载失败",
25
+ "font_class": "guanbi",
26
+ "unicode": "e60d",
27
+ "unicode_decimal": 58893
28
+ },
29
+ {
30
+ "icon_id": "1037698",
31
+ "name": "邮箱",
32
+ "font_class": "youxiang",
33
+ "unicode": "e623",
34
+ "unicode_decimal": 58915
35
+ },
36
+ {
37
+ "icon_id": "1284562",
38
+ "name": "邮箱",
39
+ "font_class": "youxiang1",
40
+ "unicode": "e64c",
41
+ "unicode_decimal": 58956
42
+ },
43
+ {
44
+ "icon_id": "1305406",
45
+ "name": "上",
46
+ "font_class": "shang",
47
+ "unicode": "e63c",
48
+ "unicode_decimal": 58940
49
+ },
50
+ {
51
+ "icon_id": "1305407",
52
+ "name": "下",
53
+ "font_class": "xia",
54
+ "unicode": "e63d",
55
+ "unicode_decimal": 58941
56
+ },
57
+ {
58
+ "icon_id": "1305408",
59
+ "name": "左",
60
+ "font_class": "zuo",
61
+ "unicode": "e63e",
62
+ "unicode_decimal": 58942
63
+ },
64
+ {
65
+ "icon_id": "4266177",
66
+ "name": "上传",
67
+ "font_class": "shangchuan",
68
+ "unicode": "e71a",
69
+ "unicode_decimal": 59162
70
+ },
71
+ {
72
+ "icon_id": "4770731",
73
+ "name": "减少",
74
+ "font_class": "jianshao",
75
+ "unicode": "e638",
76
+ "unicode_decimal": 58936
77
+ },
78
+ {
79
+ "icon_id": "4770754",
80
+ "name": "增加",
81
+ "font_class": "zengjia",
82
+ "unicode": "e640",
83
+ "unicode_decimal": 58944
84
+ },
85
+ {
86
+ "icon_id": "6894199",
87
+ "name": "手机号",
88
+ "font_class": "shoujihao",
89
+ "unicode": "e76d",
90
+ "unicode_decimal": 59245
91
+ },
92
+ {
93
+ "icon_id": "7569991",
94
+ "name": "24gl-infoCircle",
95
+ "font_class": "24gl-infoCircle",
96
+ "unicode": "e97d",
97
+ "unicode_decimal": 59773
98
+ },
99
+ {
100
+ "icon_id": "7588026",
101
+ "name": "24gl-pictureSplit",
102
+ "font_class": "24gl-pictureSplit",
103
+ "unicode": "e9ee",
104
+ "unicode_decimal": 59886
105
+ },
106
+ {
107
+ "icon_id": "8288853",
108
+ "name": "警告",
109
+ "font_class": "jinggao",
110
+ "unicode": "e84f",
111
+ "unicode_decimal": 59471
112
+ },
113
+ {
114
+ "icon_id": "12911878",
115
+ "name": "右",
116
+ "font_class": "you",
117
+ "unicode": "e614",
118
+ "unicode_decimal": 58900
119
+ },
120
+ {
121
+ "icon_id": "14206032",
122
+ "name": "视频加载失败1-01",
123
+ "font_class": "shipinjiazaishibai1-01",
124
+ "unicode": "e63f",
125
+ "unicode_decimal": 58943
126
+ },
127
+ {
128
+ "icon_id": "20460675",
129
+ "name": "url",
130
+ "font_class": "url",
131
+ "unicode": "e646",
132
+ "unicode_decimal": 58950
133
+ }
134
+ ]
135
+ }
Binary file
Binary file
Binary file
@@ -0,0 +1,108 @@
1
+ <template>
2
+ <view class="v-card" :class="{ 'v-card-elevated': elevated }" :style="{ width, padding, borderRadius }">
3
+ <view class="v-card-header" v-if="title || $slots.header">
4
+ <slot name="header">
5
+ <text class="v-card-title">{{ title }}</text>
6
+ </slot>
7
+ </view>
8
+ <view class="v-card-content">
9
+ <slot>
10
+ <text v-if="content">{{ content }}</text>
11
+ </slot>
12
+ </view>
13
+ <view class="v-card-actions" v-if="$slots.actions">
14
+ <slot name="actions"></slot>
15
+ </view>
16
+ </view>
17
+ </template>
18
+
19
+ <script lang="ts" setup>
20
+ import { computed,inject } from 'vue';
21
+
22
+ interface CardItem {
23
+ title?: string;
24
+ content?: string;
25
+ actions?: any;
26
+ }
27
+
28
+ /**
29
+ * v-card
30
+ * title 卡片标题
31
+ * content 卡片内容
32
+ * width 卡片宽度,默认为100%
33
+ * padding 内边距,默认为none
34
+ * borderRadius 圆角大小,默认为8px
35
+ * elevated 是否启用阴影效果,默认为false
36
+ */
37
+ const props = defineProps({
38
+ title: {
39
+ type: String,
40
+ default: ''
41
+ },
42
+ content: {
43
+ type: String,
44
+ default: ''
45
+ },
46
+ width: {
47
+ type: String,
48
+ default: '100%'
49
+ },
50
+ padding: {
51
+ type: String,
52
+ default: 'none'
53
+ },
54
+ borderRadius: {
55
+ type: String,
56
+ default: '8px'
57
+ },
58
+ elevated: {
59
+ type: Boolean,
60
+ default: false
61
+ }
62
+ });
63
+
64
+ const config = inject<any>('config');
65
+ // 计算样式
66
+ const style = computed(() => ({
67
+ width: props.width,
68
+ padding: props.padding,
69
+ borderRadius: props.borderRadius
70
+ }));
71
+ </script>
72
+
73
+ <style lang="scss" scoped>
74
+ .v-card {
75
+ background-color: v-bind('config.backgroundColor.reversal');
76
+ border: 1rpx solid v-bind('config.border.color');
77
+ box-sizing: border-box;
78
+ overflow: hidden;
79
+ transition: box-shadow 0.3s ease;
80
+
81
+ &-elevated {
82
+ box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.1);
83
+ }
84
+
85
+ &-header {
86
+ padding: 16rpx;
87
+ border-bottom: 1rpx solid v-bind('config.border.color');
88
+ }
89
+
90
+ &-title {
91
+ font-size: v-bind('config.fontSize.mediumText');
92
+ font-weight: bold;
93
+ color: v-bind('config.fontColor.mainText');
94
+ }
95
+
96
+ &-content {
97
+ padding: 16rpx;
98
+ color: v-bind('config.fontColor.subTitle');
99
+ }
100
+
101
+ &-actions {
102
+ padding: 16rpx;
103
+ border-top: 1rpx solid v-bind('config.border.color');
104
+ display: flex;
105
+ justify-content: flex-end;
106
+ }
107
+ }
108
+ </style>
@@ -0,0 +1,162 @@
1
+ <template>
2
+ <view class="v-grid" :style="gridStyle">
3
+ <view v-for="(item, index) in items" :key="index" class="grid-item" :style="itemStyle" @click="handleItemClick(item)">
4
+ <slot name="item" :item="item" :index="index">
5
+ <view class="default-item">
6
+ <view class="image-container" v-if="item.image">
7
+ <img :src="item.image" :mode="imageMode" :lazy-load="lazyLoad" @error="handleImageError(item)" class="grid-image" :style="imageStyle" />
8
+ <view v-if="item.loading">
9
+ <slot name="loading">
10
+
11
+ </slot>
12
+ </view>
13
+ </view>
14
+ <view class="content">
15
+ <slot name="content" :item="item" :index="index"></slot>
16
+ </view>
17
+ </view>
18
+ </slot>
19
+ </view>
20
+ </view>
21
+ </template>
22
+
23
+ <script lang="ts" setup>
24
+ import { computed, ref,inject } from 'vue';
25
+
26
+ interface GridItem {
27
+ id?: string | number;
28
+ image?: string;
29
+ title: string;
30
+ desc?: string;
31
+ price?: number;
32
+ loading?: boolean;
33
+ [key: string]: any;
34
+ }
35
+
36
+ /**
37
+ * v-grid
38
+ * items 数据
39
+ * cols 列数 (支持响应式对象)
40
+ * gap 间距 rpx
41
+ * imageMode 图片模式
42
+ * lazyLoad 是否懒加载
43
+ * imageHeight 图片高度 rpx
44
+ */
45
+ const props = defineProps({
46
+ items: {
47
+ type: Array as () => GridItem[],
48
+ default: () => []
49
+ },
50
+ cols: {
51
+ type: [Number, Object],
52
+ default: 3
53
+ },
54
+ gap: {
55
+ type: [Number, String],
56
+ default: 20
57
+ },
58
+ imageMode: {
59
+ type: String,
60
+ default: 'aspectFill'
61
+ },
62
+ lazyLoad: Boolean,
63
+ imageHeight: {
64
+ type: [Number, String],
65
+ default: 300
66
+ }
67
+ });
68
+
69
+ const emit = defineEmits(['item-click', 'image-error']);
70
+
71
+ const config = inject<any>('config');
72
+ const currentCols = ref(3);
73
+ const updateColumns = () => {
74
+ const screenWidth = uni.getSystemInfoSync().screenWidth;
75
+ if (typeof props.cols === 'object') {
76
+ currentCols.value =
77
+ screenWidth >= 1200
78
+ ? props.cols.xl || 4
79
+ : screenWidth >= 992
80
+ ? props.cols.lg || 3
81
+ : screenWidth >= 768
82
+ ? props.cols.md || 2
83
+ : screenWidth >= 576
84
+ ? props.cols.sm || 2
85
+ : props.cols.xs || 1;
86
+ } else {
87
+ currentCols.value = props.cols;
88
+ }
89
+ };
90
+
91
+ updateColumns();
92
+ uni.onWindowResize(() => updateColumns());
93
+
94
+ const gridStyle = computed(() => {
95
+ const gap = uni.upx2px(Number(props.gap));
96
+ return {
97
+ marginLeft: `-${gap / 2}px`,
98
+ marginRight: `-${gap / 2}px`
99
+ };
100
+ });
101
+
102
+ const itemStyle = computed(() => {
103
+ const gap = uni.upx2px(Number(props.gap));
104
+ const width = `calc(${100 / currentCols.value}% - ${gap}px)`;
105
+ return {
106
+ width,
107
+ marginLeft: `${gap / 2}px`,
108
+ marginRight: `${gap / 2}px`,
109
+ marginBottom: `${gap}px`
110
+ };
111
+ });
112
+
113
+ const imageStyle = computed(() => ({
114
+ height: uni.upx2px(Number(props.imageHeight)) + 'px'
115
+ }));
116
+
117
+
118
+ const handleItemClick = (item: GridItem) => {
119
+ emit('item-click', item);
120
+ };
121
+
122
+ const handleImageError = (item: GridItem) => {
123
+ emit('image-error', item);
124
+ item.loading = false;
125
+ };
126
+ </script>
127
+
128
+ <style lang="scss" scoped>
129
+ .v-grid {
130
+ display: flex;
131
+ flex-wrap: wrap;
132
+ box-sizing: border-box;
133
+
134
+ .grid-item {
135
+ box-sizing: border-box;
136
+ background: v-bind("config.backgroundColor.reversal");
137
+ border-radius: 8rpx;
138
+ overflow: hidden;
139
+ transition: all 0.3s ease;
140
+
141
+ &:active {
142
+ transform: scale(0.98);
143
+ }
144
+
145
+ .default-item {
146
+ .image-container {
147
+ position: relative;
148
+ background-color: v-bind("config.VGrid.backgroundColor");
149
+
150
+ .grid-image {
151
+ width: 100%;
152
+ display: block;
153
+ }
154
+ }
155
+
156
+ .content {
157
+ padding: 20rpx;
158
+ }
159
+ }
160
+ }
161
+ }
162
+ </style>