@kyfe/hroa-ui 0.0.2 → 0.0.3

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 (280) hide show
  1. package/dist/404.html +3 -3
  2. package/dist/ERP-components/index.html +3 -3
  3. package/dist/H5-components/custom//346/211/223/345/274/200/350/267/250/345/243/260/350/201/212/345/244/251.html +4 -4
  4. package/dist/H5-components/index.html +4 -4
  5. package/dist/H5-components/initial-stage/introduce.html +4 -4
  6. package/dist/H5-components/initial-stage/updateLog.html +4 -4
  7. package/dist/H5-components/views/tic-rich-input.html +7 -7
  8. package/dist/H5-components/views//346/213/226/346/213/275dom/345/205/203/347/264/240.html +6 -6
  9. package/dist/H5-components/views//346/214/211/351/222/256/347/277/273/351/241/265/347/273/204/344/273/266.html +4 -4
  10. package/dist/H5-components/views//346/273/221/345/212/250/347/277/273/351/241/265/347/273/204/344/273/266.html +5 -9
  11. package/dist/assets/css/{0.styles.89cafbc9.css → 0.styles.df919f3e.css} +2 -2
  12. package/dist/assets/js/{1.1b9c091d.js → 1.b735a6b9.js} +1 -1
  13. package/dist/assets/js/12.23c4fee9.js +1 -0
  14. package/dist/assets/js/{13.16dba19e.js → 13.3da0c9aa.js} +1 -1
  15. package/dist/assets/js/14.3356e8f7.js +1 -0
  16. package/dist/assets/js/{14.73f3c298.js → 15.d6eecfd8.js} +1 -1
  17. package/dist/assets/js/{15.0a34e390.js → 16.4ffe823f.js} +1 -1
  18. package/dist/assets/js/17.7b93bad9.js +1 -0
  19. package/dist/assets/js/{17.ab78de8b.js → 18.11371dfb.js} +1 -1
  20. package/dist/assets/js/{18.267c7007.js → 19.416e5407.js} +1 -1
  21. package/dist/assets/js/2.dc0cacdb.js +1 -0
  22. package/dist/assets/js/{19.879db5c0.js → 20.74e92b24.js} +1 -1
  23. package/dist/assets/js/21.a60b56ab.js +1 -0
  24. package/dist/assets/js/{20.fe2689df.js → 22.2fae118b.js} +1 -1
  25. package/dist/assets/js/{21.15a9e12c.js → 23.6e3d1710.js} +1 -1
  26. package/dist/assets/js/24.4160ee24.js +1 -0
  27. package/dist/assets/js/25.0ffd750f.js +1 -0
  28. package/dist/assets/js/26.32cd369d.js +1 -0
  29. package/dist/assets/js/27.8fcb6434.js +1 -0
  30. package/dist/assets/js/{22.8d5eaba3.js → 28.359c258c.js} +1 -1
  31. package/dist/assets/js/{23.333c4992.js → 29.739e5995.js} +1 -1
  32. package/dist/assets/js/{3.b50928b1.js → 3.cca146d6.js} +1 -1
  33. package/dist/assets/js/30.6a338bb7.js +1 -0
  34. package/dist/assets/js/31.f29dd7e6.js +1 -0
  35. package/dist/assets/js/32.39b11d5d.js +1 -0
  36. package/dist/assets/js/{24.543262a0.js → 33.8a822667.js} +1 -1
  37. package/dist/assets/js/34.9e1e9fdb.js +1 -0
  38. package/dist/assets/js/35.00b584d6.js +1 -0
  39. package/dist/assets/js/{28.2bc37274.js → 36.4005f115.js} +1 -1
  40. package/dist/assets/js/37.a76ba098.js +1 -0
  41. package/dist/assets/js/{29.27882fc9.js → 38.b2331905.js} +1 -1
  42. package/dist/assets/js/39.d1ef70eb.js +1 -0
  43. package/dist/assets/js/{4.5d6de21f.js → 4.2e3cdcda.js} +1 -1
  44. package/dist/assets/js/40.80762a79.js +1 -0
  45. package/dist/assets/js/41.b30a6572.js +1 -0
  46. package/dist/assets/js/42.2abb93f1.js +1 -0
  47. package/dist/assets/js/{31.711223cc.js → 43.3060afbe.js} +1 -1
  48. package/dist/assets/js/{32.65c4dfd4.js → 44.4ca5cdaa.js} +1 -1
  49. package/dist/assets/js/{33.b3a7c2ea.js → 45.2aefab82.js} +1 -1
  50. package/dist/assets/js/46.94373d07.js +1 -0
  51. package/dist/assets/js/{35.5dead2b1.js → 47.1a325aa2.js} +1 -1
  52. package/dist/assets/js/{39.89b34b70.js → 48.63967e1a.js} +1 -1
  53. package/dist/assets/js/{42.cb50aa1c.js → 49.632d6f06.js} +1 -1
  54. package/dist/assets/js/{5.b3e00557.js → 5.84ceb550.js} +1 -1
  55. package/dist/assets/js/{43.5fded5c8.js → 50.122dcadf.js} +1 -1
  56. package/dist/assets/js/{44.50f78d19.js → 51.de943550.js} +1 -1
  57. package/dist/assets/js/{46.9f784389.js → 52.70b10851.js} +1 -1
  58. package/dist/assets/js/53.8852d650.js +1 -0
  59. package/dist/assets/js/{47.7553aa19.js → 54.2a74d28d.js} +1 -1
  60. package/dist/assets/js/{48.9fee02f5.js → 55.e48fe797.js} +1 -1
  61. package/dist/assets/js/{49.25c724d7.js → 56.ebdbcffb.js} +1 -1
  62. package/dist/assets/js/{50.aba60d25.js → 57.e087b0fe.js} +1 -1
  63. package/dist/assets/js/{51.01a0bacf.js → 58.3801ee85.js} +1 -1
  64. package/dist/assets/js/59.7b5d18c0.js +1 -0
  65. package/dist/assets/js/{6.2c85d2f8.js → 6.61f28a2c.js} +1 -1
  66. package/dist/assets/js/60.69f85710.js +1 -0
  67. package/dist/assets/js/61.ccded94e.js +1 -0
  68. package/dist/assets/js/62.49aaec93.js +1 -0
  69. package/dist/assets/js/63.ed0dd65b.js +1 -0
  70. package/dist/assets/js/64.50827258.js +1 -0
  71. package/dist/assets/js/65.fb0e39c2.js +1 -0
  72. package/dist/assets/js/66.0f253a81.js +1 -0
  73. package/dist/assets/js/67.871e932d.js +1 -0
  74. package/dist/assets/js/68.daa5a202.js +1 -0
  75. package/dist/assets/js/69.b097197f.js +1 -0
  76. package/dist/assets/js/{7.d1b0af72.js → 7.49cc9ae9.js} +1 -1
  77. package/dist/assets/js/70.765eda7b.js +1 -0
  78. package/dist/assets/js/71.63871fac.js +1 -0
  79. package/dist/assets/js/72.8b18b0c9.js +1 -0
  80. package/dist/assets/js/73.19e03de2.js +1 -0
  81. package/dist/assets/js/{60.36873359.js → 74.d53dccaa.js} +1 -1
  82. package/dist/assets/js/75.acd6fc61.js +1 -0
  83. package/dist/assets/js/76.078ca037.js +1 -0
  84. package/dist/assets/js/77.d841f01e.js +1 -0
  85. package/dist/assets/js/78.a7365451.js +1 -0
  86. package/dist/assets/js/79.dd3a87ea.js +1 -0
  87. package/dist/assets/js/{8.9ab5ee55.js → 8.9cb30c6d.js} +1 -1
  88. package/dist/assets/js/80.fb936b5b.js +1 -0
  89. package/dist/assets/js/81.2e26e94f.js +1 -0
  90. package/dist/assets/js/82.2a3a6e2c.js +1 -0
  91. package/dist/assets/js/{65.462206d5.js → 83.db18cd89.js} +1 -1
  92. package/dist/assets/js/{66.c336d9fe.js → 84.1b4f6da9.js} +1 -1
  93. package/dist/assets/js/{67.1b7fa2b9.js → 85.7ad98dbe.js} +1 -1
  94. package/dist/assets/js/{68.e0ebaf13.js → 86.4cc432c1.js} +1 -1
  95. package/dist/assets/js/{69.3e1b6d2e.js → 87.73d3f488.js} +1 -1
  96. package/dist/assets/js/{70.40431d36.js → 88.912a9f32.js} +1 -1
  97. package/dist/assets/js/{71.64f24577.js → 89.9177aadb.js} +1 -1
  98. package/dist/assets/js/{9.aaca0f9d.js → 9.5eb3dd52.js} +1 -1
  99. package/dist/assets/js/{72.2cf8371b.js → 90.d7d98ef8.js} +1 -1
  100. package/dist/assets/js/{73.88f7feb5.js → 91.41d2835a.js} +1 -1
  101. package/dist/assets/js/{74.2d5471c0.js → 92.2e7bac23.js} +1 -1
  102. package/dist/assets/js/{app.7efea3c2.js → app.9bfd80ac.js} +4 -4
  103. package/dist/assets/js/{vendors~docsearch.6f3b450f.js → vendors~docsearch.c220fc7a.js} +2 -2
  104. package/dist/guide/about//346/255/244/346/226/207/346/241/243/351/241/271/347/233/256.html +3 -3
  105. package/dist/guide/index.html +3 -3
  106. package/dist/index.html +3 -3
  107. package/dist/local-js/ksui@3.0.41.umd.min.js +10 -0
  108. package/dist/utils/ERP/ERP/345/267/245/345/205/267/346/226/271/346/263/225.html +3 -3
  109. package/dist/utils/H5/H5/345/267/245/345/205/267/346/226/271/346/263/225.html +3 -3
  110. package/dist/utils/H5/copyText /345/244/215/345/210/266.html" +3 -3
  111. package/dist/utils/index.html +3 -3
  112. package/dist//346/226/207/346/241/243/345/272/223/346/226/207/344/273/266/345/244/271.html +3 -3
  113. package/lib/hr-at-input/index.css +6 -0
  114. package/lib/hr-at-input/index.js +1 -0
  115. package/lib/hr-bottom-button/index.css +1 -0
  116. package/lib/hr-bottom-button/index.js +1 -0
  117. package/lib/hr-button/index.css +1 -0
  118. package/lib/hr-button/index.js +1 -0
  119. package/lib/hr-clipboard/index.css +1 -0
  120. package/lib/hr-clipboard/index.js +1 -0
  121. package/lib/hr-condition-filtrate/index.css +1 -0
  122. package/lib/hr-condition-filtrate/index.js +1 -0
  123. package/lib/hr-condition-filtrate-popup/index.css +1 -0
  124. package/lib/hr-condition-filtrate-popup/index.js +1 -0
  125. package/lib/hr-elasticity-box/index.css +1 -0
  126. package/lib/hr-elasticity-box/index.js +1 -0
  127. package/lib/hr-elasticity-box-item/index.css +1 -0
  128. package/lib/hr-elasticity-box-item/index.js +1 -0
  129. package/lib/hr-emotional-picture/index.css +1 -0
  130. package/lib/hr-emotional-picture/index.js +1 -0
  131. package/lib/hr-employee-choose/index.css +1 -0
  132. package/lib/hr-employee-choose/index.js +1 -0
  133. package/lib/hr-img-list/index.css +1 -0
  134. package/lib/hr-img-list/index.js +1 -0
  135. package/lib/hr-info-card/index.css +1 -0
  136. package/lib/hr-info-card/index.js +1 -0
  137. package/lib/hr-license-plate-number/index.css +1 -0
  138. package/lib/hr-license-plate-number/index.js +1 -0
  139. package/lib/hr-module-card/index.css +1 -0
  140. package/lib/hr-module-card/index.js +1 -0
  141. package/lib/hr-multiterm-choose/index.css +1 -0
  142. package/lib/hr-multiterm-choose/index.js +1 -0
  143. package/lib/hr-no-data/index.css +1 -0
  144. package/lib/hr-no-data/index.js +1 -0
  145. package/lib/hr-notice-bar/index.js +1 -0
  146. package/lib/hr-open-ks/index.css +1 -0
  147. package/lib/hr-open-ks/index.js +1 -0
  148. package/lib/hr-pager/index.css +1 -0
  149. package/lib/hr-pager/index.js +1 -0
  150. package/lib/hr-popup/index.css +1 -0
  151. package/lib/hr-popup/index.js +1 -0
  152. package/lib/hr-preview-file/index.css +1 -0
  153. package/lib/hr-preview-file/index.js +1 -0
  154. package/lib/hr-rate/index.css +1 -0
  155. package/lib/hr-rate/index.js +1 -0
  156. package/lib/hr-reason-textarea/index.css +1 -0
  157. package/lib/hr-reason-textarea/index.js +1 -0
  158. package/lib/hr-search-input/index.css +1 -0
  159. package/lib/hr-search-input/index.js +1 -0
  160. package/lib/hr-select/index.js +1 -0
  161. package/lib/hr-select-list/index.css +1 -0
  162. package/lib/hr-select-list/index.js +9 -0
  163. package/lib/hr-single-choose/index.css +1 -0
  164. package/lib/hr-single-choose/index.js +1 -0
  165. package/lib/hr-slide-pager/index.css +1 -0
  166. package/lib/hr-slide-pager/index.js +1 -0
  167. package/lib/hr-sort/index.css +1 -0
  168. package/lib/hr-sort/index.js +1 -0
  169. package/lib/hr-stack-image/index.css +1 -0
  170. package/lib/hr-stack-image/index.js +1 -0
  171. package/lib/hr-tab-nav/index.css +1 -0
  172. package/lib/hr-tab-nav/index.js +1 -0
  173. package/lib/hr-view-item/index.css +1 -0
  174. package/lib/hr-view-item/index.js +1 -0
  175. package/lib/index/index.css +8 -0
  176. package/lib/index/index.js +9 -0
  177. package/lib/utils/index.js +1 -0
  178. package/package.json +3 -2
  179. package/packages/hr-at-input/index.js +7 -0
  180. package/packages/hr-at-input/src/blot/atPerson.js +43 -0
  181. package/packages/hr-at-input/src/index.vue +472 -0
  182. package/packages/hr-at-input/src/quill.snow.css +945 -0
  183. package/packages/hr-at-input/src/utils/index.js +60 -0
  184. package/packages/hr-at-input//346/224/257/346/214/201@/351/200/211/344/272/272/350/276/223/345/205/245/346/241/206.md +0 -0
  185. package/packages/hr-bottom-button/src/index.vue +25 -1
  186. package/packages/hr-clipboard/index.js +6 -1
  187. package/packages/hr-clipboard/src/index.vue +46 -0
  188. package/packages/hr-condition-filtrate-popup/index.js +7 -0
  189. package/packages/hr-condition-filtrate-popup/src/index.vue +236 -0
  190. package/packages/hr-elasticity-box/index.js +7 -0
  191. package/packages/hr-elasticity-box/src/elasticity-box-item.vue +61 -0
  192. package/packages/hr-elasticity-box/src/index.vue +53 -0
  193. package/packages/hr-elasticity-box-item/index.js +7 -0
  194. package/packages/hr-employee-choose/index.js +7 -0
  195. package/packages/hr-employee-choose/src/image/arrow-right.png +0 -0
  196. package/packages/hr-employee-choose/src/index.vue +119 -0
  197. package/packages/hr-img-list/src/index.vue +66 -46
  198. package/packages/hr-info-card/index.js +7 -0
  199. package/packages/hr-info-card/src/index.vue +67 -0
  200. package/packages/hr-license-plate-number/index.js +8 -0
  201. package/packages/hr-license-plate-number/src/enum.js +44 -0
  202. package/packages/hr-license-plate-number/src/index.vue +164 -0
  203. package/packages/hr-license-plate-number/src/vnp-keyboard.vue +182 -0
  204. package/packages/hr-license-plate-number//350/275/246/347/211/214/345/217/267/345/274/271/347/252/227.md +0 -0
  205. package/packages/hr-multiterm-choose/index.js +8 -0
  206. package/packages/hr-multiterm-choose/src/index.vue +169 -0
  207. package/packages/hr-multiterm-choose//345/244/232/351/200/211/346/241/206.md +0 -0
  208. package/packages/hr-no-data/index.js +7 -0
  209. package/packages/hr-no-data/src/index.vue +48 -0
  210. package/packages/hr-open-ks/index.js +5 -1
  211. package/packages/hr-open-ks/src/{main.vue → index.vue} +23 -11
  212. package/packages/hr-popup/src/index.vue +13 -1
  213. package/packages/hr-preview-file/index.js +7 -0
  214. package/packages/hr-preview-file/src/index.vue +58 -0
  215. package/packages/hr-preview-file/src/util.js +50 -0
  216. package/packages/hr-rate/index.js +7 -0
  217. package/packages/hr-rate/src/index.vue +42 -0
  218. package/packages/hr-rate//350/257/204/345/210/206/347/273/204/344/273/266/357/274/210/345/270/246/346/226/207/346/241/210/357/274/211.md +0 -0
  219. package/packages/hr-reason-textarea/index.js +7 -0
  220. package/packages/hr-reason-textarea/src/index.vue +128 -0
  221. package/packages/hr-select/index.js +5 -1
  222. package/packages/hr-select/src/index.vue +41 -0
  223. package/packages/hr-select-list/src/index.vue +7 -1
  224. package/packages/hr-single-choose/index.js +8 -0
  225. package/packages/hr-single-choose/src/index.vue +143 -0
  226. package/packages/hr-single-choose//345/215/225/351/200/211/346/241/206.md +0 -0
  227. package/packages/hr-slide-pager/src/index.vue +9 -4
  228. package/packages/hr-sort/index.js +3 -0
  229. package/packages/hr-sort/src/main.vue +133 -0
  230. package/packages/hr-sort//346/216/222/345/272/217.md +0 -0
  231. package/packages/hr-tab-nav/src/index.vue +45 -27
  232. package/packages/index.js +15 -14
  233. package/dist/H5-components/views/hr-emotional-picture.html +0 -51
  234. package/dist/H5-components/views/hr-info-card.html +0 -53
  235. package/dist/H5-components/views/hr-no-data.html +0 -47
  236. package/dist/H5-components/views/hr-preview-file.html +0 -76
  237. package/dist/H5-components/views/hr-search-input.html +0 -50
  238. package/dist/H5-components/views//345/211/252/345/210/207/346/235/277/345/244/215/345/210/266.html +0 -59
  239. package/dist/H5-components/views//345/261/202/345/217/240/345/233/276/347/211/207.html +0 -62
  240. package/dist/H5-components/views//346/211/223/345/274/200/350/267/250/345/243/260/347/224/250/346/210/267.html +0 -66
  241. package/dist/H5-components/views//351/200/211/346/213/251/345/231/250/350/241/250/345/215/225.html +0 -111
  242. package/dist/assets/img/hr-emotional-picture.e7db80e6.png +0 -0
  243. package/dist/assets/img/hr-info-card.c50e7c33.png +0 -0
  244. package/dist/assets/img/hr-preview-file-1.3cb7c6ed.png +0 -0
  245. package/dist/assets/img/hr-preview-file-2.0fe45ea1.png +0 -0
  246. package/dist/assets/img/select.acadd024.png +0 -0
  247. package/dist/assets/js/12.af649b9d.js +0 -1
  248. package/dist/assets/js/16.0cb2e2cf.js +0 -1
  249. package/dist/assets/js/2.c3a8a3e9.js +0 -16
  250. package/dist/assets/js/25.657016f9.js +0 -1
  251. package/dist/assets/js/26.03bfb23b.js +0 -1
  252. package/dist/assets/js/27.3faf82a6.js +0 -1
  253. package/dist/assets/js/30.e682e7b5.js +0 -1
  254. package/dist/assets/js/34.159478bb.js +0 -1
  255. package/dist/assets/js/36.b58af11f.js +0 -1
  256. package/dist/assets/js/37.86d4ed5a.js +0 -1
  257. package/dist/assets/js/38.af279c3f.js +0 -1
  258. package/dist/assets/js/40.3e1516da.js +0 -1
  259. package/dist/assets/js/41.d021ff9e.js +0 -1
  260. package/dist/assets/js/45.527386eb.js +0 -1
  261. package/dist/assets/js/52.86012cbb.js +0 -1
  262. package/dist/assets/js/53.1563eb60.js +0 -1
  263. package/dist/assets/js/54.7e734114.js +0 -1
  264. package/dist/assets/js/55.28b96a29.js +0 -1
  265. package/dist/assets/js/56.81bd12a3.js +0 -1
  266. package/dist/assets/js/57.70cac198.js +0 -1
  267. package/dist/assets/js/58.cc1b357e.js +0 -1
  268. package/dist/assets/js/59.697472ae.js +0 -1
  269. package/dist/assets/js/61.0a367a50.js +0 -1
  270. package/dist/assets/js/62.1aaa7b15.js +0 -1
  271. package/dist/assets/js/63.52c8de07.js +0 -1
  272. package/dist/assets/js/64.25b51d76.js +0 -1
  273. package/lib/demo.html +0 -10
  274. package/lib/hrui@1.0.1.common.js +0 -7411
  275. package/lib/hrui@1.0.1.css +0 -1
  276. package/lib/hrui@1.0.1.umd.js +0 -7411
  277. package/lib/hrui@1.0.1.umd.min.js +0 -1
  278. package/packages/hr-clipboard/src/icon.png +0 -0
  279. package/packages/hr-clipboard/src/main.vue +0 -64
  280. package/packages/hr-select/src/main.vue +0 -62
@@ -3,6 +3,7 @@
3
3
  import HrPopup from '../../hr-popup'
4
4
 
5
5
  export default {
6
+ name: 'HrSelectList',
6
7
  components: {
7
8
  HrPopup
8
9
  },
@@ -37,6 +38,11 @@
37
38
  columns: {
38
39
  type: Array,
39
40
  default: () => ([])
41
+ },
42
+ // 挂载位置
43
+ getContainer: {
44
+ type: String,
45
+ default: 'body'
40
46
  }
41
47
  },
42
48
  data () {
@@ -61,7 +67,7 @@
61
67
  // get-container挂载在body的原因:防止被外部组件内容遮挡
62
68
  <HrPopup show={this.isShowPopup}
63
69
  closeable
64
- get-container="body"
70
+ get-container={this.getContainer}
65
71
  position="bottom"
66
72
  safe-area-inset-bottom
67
73
  title={this.title}
@@ -0,0 +1,8 @@
1
+
2
+ import HrSingleChoose from './src/index.vue'
3
+
4
+ HrSingleChoose.install = function (Vue) {
5
+ Vue.component(HrSingleChoose.name, HrSingleChoose)
6
+ }
7
+
8
+ export default HrSingleChoose
@@ -0,0 +1,143 @@
1
+ <script>
2
+ export default {
3
+ name: 'HrSingleChoose',
4
+ props: {
5
+ list: {
6
+ type: Array,
7
+ default () {
8
+ return [
9
+ {
10
+ label: '课程类型',
11
+ value: 10
12
+ },
13
+ {
14
+ label: '课程类型2',
15
+ value: 20
16
+ },
17
+ {
18
+ label: '课程类型3',
19
+ value: 30
20
+ },
21
+ {
22
+ label: '课程类型4',
23
+ value: 40
24
+ }
25
+ ]
26
+ }
27
+ },
28
+ title: {
29
+ type: String,
30
+ default () {
31
+ return '请选择'
32
+ }
33
+ },
34
+ isShowAll: {
35
+ type: Boolean,
36
+ default () {
37
+ return false
38
+ }
39
+ },
40
+ divideeQually: {
41
+ type: Number,
42
+ default () {
43
+ return 3
44
+ }
45
+ }
46
+ },
47
+ data () {
48
+ return {
49
+ active: 0
50
+ }
51
+ },
52
+ created () {
53
+ this.init()
54
+ },
55
+ computed: {
56
+ filterList () {
57
+ return this.isShowAll ? [{ label: '全部', value: 0 }].concat(this.list) : this.list
58
+ }
59
+ },
60
+ methods: {
61
+ init () {
62
+ this.initState()
63
+ },
64
+ initState () {
65
+ },
66
+ select (index) {
67
+ this.active = index
68
+ this.$emit('select', this.filterList[index])
69
+ }
70
+ },
71
+ render () {
72
+ return <div class="single-choose">
73
+ <div class="choose-title">{this.title}</div>
74
+ <div class="choose-condition">
75
+ {
76
+ this.filterList.map((item, index) => <div
77
+ onClick={this.select.bind(this, index)}
78
+ style={{ width: `calc((100% - 16px) / ${this.divideeQually})`, marginRight: (index + 1) % this.divideeQually === 0 ? 0 : '8px' }}
79
+ class={['condition-item', this.active === index && 'active']}>
80
+ {item.label}
81
+ </div>)
82
+ }
83
+ </div>
84
+ </div>
85
+ }
86
+ }
87
+ </script>
88
+
89
+ <style scoped lang="less">
90
+ .single-choose {
91
+ .choose-title {
92
+ line-height: 20px;
93
+ margin-bottom: 12px;
94
+ text-align: left;
95
+ font-size: 14px;
96
+ font-weight: 600;
97
+ color: #03050d;
98
+ .title-black {
99
+ font-size: 14px;
100
+ font-weight: normal;
101
+ color: #6e6d72;
102
+ }
103
+ }
104
+ .choose-condition {
105
+ display: flex;
106
+ flex-wrap: wrap;
107
+ justify-content: flex-start;
108
+ .condition-item {
109
+ // width: calc((100% - 16px) / 3);
110
+ height: 28px;
111
+ border-radius: 8px;
112
+ box-sizing: border-box;
113
+ background: #f7f8fa;
114
+ text-align: center;
115
+ line-height: 28px;
116
+ margin-bottom: 12px;
117
+ color: #03050d;
118
+ font-size: 12px;
119
+ position: relative;
120
+ }
121
+ .condition-item.active {
122
+ // border: 1px solid rgba(121, 114, 254, 0.8);
123
+ background: rgba(121, 114, 254, 0.08);
124
+ color: #7972fe;
125
+ &::after {
126
+ content: " ";
127
+ position: absolute;
128
+ left: 0;
129
+ top: 0;
130
+ width: 200%;
131
+ height: 200%;
132
+ border: 1px solid #7972fe;
133
+ border-radius: 16px;
134
+ box-sizing: border-box;
135
+ -webkit-transform-origin: 0 0;
136
+ transform-origin: 0 0;
137
+ -webkit-transform: scale(0.5);
138
+ transform: scale(0.5);
139
+ }
140
+ }
141
+ }
142
+ }
143
+ </style>
@@ -5,14 +5,14 @@
5
5
  ref="left"
6
6
  :style="{ width: leftShadowWidth + 'px' }">
7
7
  <span v-show="leftShadowWidth > threshold"
8
- class="text">向右滑动可切换上一篇</span>
8
+ class="text">向右滑动可切换上一{{ unitName }}</span>
9
9
  </div>
10
10
 
11
11
  <div class="shadow right"
12
12
  ref="right"
13
13
  :style="{ width: rightShadowWidth + 'px' }">
14
14
  <span v-show="rightShadowWidth > threshold"
15
- class="text">向左滑动可切换下一篇</span>
15
+ class="text">向左滑动可切换下一{{ unitName }}</span>
16
16
  </div>
17
17
 
18
18
  <guide v-if="isShowGuide"
@@ -69,6 +69,11 @@
69
69
  container: {
70
70
  type: String,
71
71
  default: 'hr-slide-pager'
72
+ },
73
+ // 分页器单位名称 【页|篇...】
74
+ unitName: {
75
+ type: String,
76
+ default: '篇'
72
77
  }
73
78
  },
74
79
  data () {
@@ -231,7 +236,7 @@
231
236
  console.log('左滑-----🚀🚀🚀🚀')
232
237
  this.prevPage()
233
238
  } else {
234
- window.vant.Toast('已经到第一篇~')
239
+ window.vant.Toast(`已经到第一${this.unitName}~`)
235
240
  }
236
241
 
237
242
  } else if (deltaX < -this.threshold) {
@@ -239,7 +244,7 @@
239
244
  console.log('右滑-----🐸🐸🐸🐸')
240
245
  this.nextPage()
241
246
  } else {
242
- window.vant.Toast('已经到最后一篇~')
247
+ window.vant.Toast(`已经到最后一${this.unitName}~`)
243
248
  }
244
249
  }
245
250
  }
@@ -0,0 +1,3 @@
1
+ import HrSort from './src/main'
2
+
3
+ export default HrSort
@@ -0,0 +1,133 @@
1
+ <script>
2
+ export default {
3
+ props: {
4
+ mode: {
5
+ type: String,
6
+ default: 'triangle'
7
+ },
8
+ sortList: {
9
+ type: Array,
10
+ default: () => []
11
+ },
12
+ sotyTypes: {
13
+ type: Array,
14
+ default: () => ['', '0', '1']
15
+ },
16
+ sortConifg: {
17
+ type: Object,
18
+ default: () => ({
19
+ size: '4px',
20
+ noramlColor: '#6e6d72',
21
+ activeColor: '#d8d8d8'
22
+ })
23
+ }
24
+ },
25
+ emits: ['change'],
26
+ data () {
27
+ return {
28
+ activeSortIndex: null,
29
+ sortTypeIndex: '',
30
+ }
31
+ },
32
+ computed: {
33
+ isTriangleMode () {
34
+ return this.mode === 'triangle'
35
+ }
36
+ },
37
+ methods: {
38
+ handelSortChange (index) {
39
+ if (this.activeSortIndex !== index) {
40
+ this.activeSortIndex = index
41
+ this.sortTypeIndex = 1
42
+ } else {
43
+ const nextIndex = this.sortTypeIndex + 1
44
+ this.sortTypeIndex = nextIndex > this.sotyTypes.length - 1 ? 0 : nextIndex
45
+ }
46
+ this.$emit('change', { ...this.sortList[index], order: this.sotyTypes[this.sortTypeIndex] })
47
+ }
48
+ },
49
+ render () {
50
+ const labelSlot = this.$scopedSlots.label
51
+
52
+ const TriangleModeOperate = ({ props }) => {
53
+ const { curIndex } = props
54
+ const { size, noramlColor, activeColor } = this.sortConifg
55
+ const getPositiveStyle = {
56
+ width: 0,
57
+ height: 0,
58
+ borderLeft: `${size} solid transparent`,
59
+ borderRight: `${size} solid transparent`,
60
+ borderBottom: `${size} solid ${noramlColor}`,
61
+ borderBottomColor: this.activeSortIndex === curIndex && this.sortTypeIndex === 2 ? activeColor : void 0
62
+ }
63
+ const getReverseStyle = {
64
+ width: 0,
65
+ height: 0,
66
+ borderLeft: `${size} solid transparent`,
67
+ borderRight: `${size} solid transparent`,
68
+ borderTop: `${size} solid ${noramlColor}`,
69
+ borderTopColor: this.activeSortIndex === curIndex && this.sortTypeIndex === 1 ? activeColor : void 0
70
+ }
71
+
72
+ return (
73
+ <div class="sort-item__operate">
74
+ <div class="operate-item" style={getPositiveStyle}>
75
+ </div>
76
+ <div class="operate-item" style={getReverseStyle}></div>
77
+ </div>
78
+ )
79
+ }
80
+
81
+ return (
82
+ <div class="sort-area">
83
+ {this.sortList.map((item, index) => {
84
+ return (
85
+ <div key={item.label} class="sort-item" onClick={() => this.handelSortChange(index)}>
86
+ <div class="sort-item__label">
87
+ {labelSlot ? labelSlot(item) : item.label}
88
+ </div>
89
+ {this.isTriangleMode ? <TriangleModeOperate curIndex={index}></TriangleModeOperate> : null}
90
+ </div>
91
+ )
92
+ })}
93
+ </div>
94
+ )
95
+ }
96
+ }
97
+ </script>
98
+
99
+ <style lang="less" scoped>
100
+ .sort-area {
101
+ display: flex;
102
+ align-items: center;
103
+
104
+ .sort-item {
105
+ &:not(&:last-child) {
106
+ margin-right: 12px;
107
+ }
108
+ }
109
+ }
110
+
111
+ .sort-item {
112
+ display: flex;
113
+ align-items: center;
114
+
115
+ &__label {
116
+ font-size: 12px;
117
+ color: #000;
118
+ }
119
+
120
+ &__operate {
121
+ display: flex;
122
+ flex-direction: column;
123
+ width: 14px;
124
+ align-items: center;
125
+
126
+ .operate-item {
127
+ &:first-child {
128
+ margin-bottom: 2px;
129
+ }
130
+ }
131
+ }
132
+ }
133
+ </style>
File without changes
@@ -7,28 +7,28 @@
7
7
  default () {
8
8
  return 10
9
9
  }
10
+ },
11
+ tabList: {
12
+ type: Array,
13
+ default () {
14
+ return [
15
+ {
16
+ text: 'tab1',
17
+ count: 0,
18
+ type: 10
19
+ },
20
+ {
21
+ text: 'tab2',
22
+ count: 0,
23
+ type: 20
24
+ },
25
+ ]
26
+ }
10
27
  }
11
28
  },
12
29
  data () {
13
30
  return {
14
- tabList: [
15
- {
16
- text: '待调度',
17
- count: 20,
18
- type: 10
19
- },
20
- {
21
- text: '已调度',
22
- count: 20,
23
- type: 20
24
- },
25
- {
26
- text: '调度中',
27
- count: 20,
28
- type: 30
29
- }
30
- ],
31
- currentType: 10
31
+ currentType: this.tabList[0].type || 10
32
32
  }
33
33
  },
34
34
  watch: {
@@ -42,16 +42,17 @@
42
42
  methods: {
43
43
  switchTab (type) {
44
44
  this.currentType = type
45
+ this.$emit('switchTab', type)
45
46
  }
46
47
  },
47
48
  render () {
48
49
  // render tab
49
50
  const renderHeaderTab = (params = {}) => {
50
- const { text, type, count } = params
51
+ const { text, type, count = 0 } = params
51
52
  const active = this.currentType === type
52
53
 
53
54
  return <div class={['nav-item', active && 'active']} onClick={this.switchTab.bind(this, type)}>
54
- {text} {count}
55
+ {text} {count > 0 ? count : ''}
55
56
  {active && <i class="item-border"></i>}
56
57
  </div>
57
58
  }
@@ -62,6 +63,13 @@
62
63
  return renderHeaderTab(item)
63
64
  })
64
65
  }
66
+ {
67
+ // <div class="nav-slot">
68
+ // {
69
+ // this.$slots.default || ''
70
+ // }
71
+ // </div>
72
+ }
65
73
  </div>
66
74
  }
67
75
  }
@@ -69,14 +77,21 @@
69
77
  <style scoped lang="less">
70
78
  .hr-tab-nav {
71
79
  display: flex;
72
- line-height: 34px;
73
- margin-bottom: 11px;
80
+ line-height: 36px;
81
+ margin-bottom: 8px;
82
+ width: 100%;
83
+ overflow-x: scroll;
84
+ overflow-y: hidden;
85
+ &::-webkit-scrollbar {
86
+ display: none;
87
+ }
74
88
  .nav-item {
75
- font-size: 13px;
76
89
  font-weight: 600;
77
- color: #858793;
78
90
  position: relative;
79
- margin-right: 29px;
91
+ margin-right: 37px;
92
+ font-size: 14px;
93
+ color: #858793;
94
+ white-space: nowrap;
80
95
  .item-border {
81
96
  width: 15px;
82
97
  height: 3px;
@@ -88,9 +103,12 @@
88
103
  border-radius: 1.5px;
89
104
  }
90
105
  }
106
+ .nav-slot {
107
+ margin-left: auto;
108
+ }
91
109
  .nav-item.active {
92
- font-size: 16px;
93
- color: #03050d;
110
+ font-size: 14px;
111
+ color: #03050D;
94
112
  }
95
113
  }
96
114
  </style>
package/packages/index.js CHANGED
@@ -8,9 +8,11 @@ import hrButton from "./hr-button";
8
8
  import hrModuleCard from "./hr-module-card";
9
9
  import hrViewItem from "./hr-view-item";
10
10
  import hrStackImage from './hr-stack-image'
11
- import HrOpenKS from './hr-open-ks/index'
12
- import HrClipboard from './hr-clipboard/index'
13
- import HrSelect from './hr-select/index'
11
+ import HrPopup from './hr-popup/index'
12
+ import HrSelectList from './hr-select-list/index'
13
+ import HrImgList from './hr-img-list/index'
14
+ import HrRate from './hr-rate/index'
15
+ import HrAtInput from './hr-at-input/index'
14
16
 
15
17
  // 存储组件列表
16
18
  const components = [
@@ -18,9 +20,11 @@ const components = [
18
20
  hrModuleCard,
19
21
  hrViewItem,
20
22
  hrStackImage,
21
- HrOpenKS,
22
- HrClipboard,
23
- HrSelect
23
+ HrPopup,
24
+ HrSelectList,
25
+ HrImgList,
26
+ HrRate,
27
+ HrAtInput
24
28
  ];
25
29
 
26
30
  // 定义install方法,接受vue作为参数
@@ -40,14 +44,11 @@ if (typeof window !== "undefined" && window.Vue) {
40
44
  install(window.Vue);
41
45
  }
42
46
 
43
- export default install
44
-
45
- export {
47
+ export default {
48
+ install,
46
49
  hrButton,
47
50
  hrModuleCard,
48
51
  hrViewItem,
49
- hrStackImage,
50
- HrOpenKS,
51
- HrClipboard,
52
- HrSelect
53
- }
52
+ HrRate,
53
+ HrAtInput
54
+ };
@@ -1,51 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en-US">
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width,initial-scale=1">
6
- <title>情感图组件 | HR-OA-KTS 轻应用组件库</title>
7
- <meta name="generator" content="VuePress 1.9.10">
8
-
9
- <meta name="description" content="HR-OA-KTS部门前端共建文档库">
10
-
11
- <link rel="preload" href="/assets/css/0.styles.89cafbc9.css" as="style"><link rel="preload" href="/assets/js/app.7efea3c2.js" as="script"><link rel="preload" href="/assets/js/3.b50928b1.js" as="script"><link rel="preload" href="/assets/js/1.1b9c091d.js" as="script"><link rel="preload" href="/assets/js/36.b58af11f.js" as="script"><link rel="prefetch" href="/assets/js/12.af649b9d.js"><link rel="prefetch" href="/assets/js/13.16dba19e.js"><link rel="prefetch" href="/assets/js/14.73f3c298.js"><link rel="prefetch" href="/assets/js/15.0a34e390.js"><link rel="prefetch" href="/assets/js/16.0cb2e2cf.js"><link rel="prefetch" href="/assets/js/17.ab78de8b.js"><link rel="prefetch" href="/assets/js/18.267c7007.js"><link rel="prefetch" href="/assets/js/19.879db5c0.js"><link rel="prefetch" href="/assets/js/2.c3a8a3e9.js"><link rel="prefetch" href="/assets/js/20.fe2689df.js"><link rel="prefetch" href="/assets/js/21.15a9e12c.js"><link rel="prefetch" href="/assets/js/22.8d5eaba3.js"><link rel="prefetch" href="/assets/js/23.333c4992.js"><link rel="prefetch" href="/assets/js/24.543262a0.js"><link rel="prefetch" href="/assets/js/25.657016f9.js"><link rel="prefetch" href="/assets/js/26.03bfb23b.js"><link rel="prefetch" href="/assets/js/27.3faf82a6.js"><link rel="prefetch" href="/assets/js/28.2bc37274.js"><link rel="prefetch" href="/assets/js/29.27882fc9.js"><link rel="prefetch" href="/assets/js/30.e682e7b5.js"><link rel="prefetch" href="/assets/js/31.711223cc.js"><link rel="prefetch" href="/assets/js/32.65c4dfd4.js"><link rel="prefetch" href="/assets/js/33.b3a7c2ea.js"><link rel="prefetch" href="/assets/js/34.159478bb.js"><link rel="prefetch" href="/assets/js/35.5dead2b1.js"><link rel="prefetch" href="/assets/js/37.86d4ed5a.js"><link rel="prefetch" href="/assets/js/38.af279c3f.js"><link rel="prefetch" href="/assets/js/39.89b34b70.js"><link rel="prefetch" href="/assets/js/4.5d6de21f.js"><link rel="prefetch" href="/assets/js/40.3e1516da.js"><link rel="prefetch" href="/assets/js/41.d021ff9e.js"><link rel="prefetch" href="/assets/js/42.cb50aa1c.js"><link rel="prefetch" href="/assets/js/43.5fded5c8.js"><link rel="prefetch" href="/assets/js/44.50f78d19.js"><link rel="prefetch" href="/assets/js/45.527386eb.js"><link rel="prefetch" href="/assets/js/46.9f784389.js"><link rel="prefetch" href="/assets/js/47.7553aa19.js"><link rel="prefetch" href="/assets/js/48.9fee02f5.js"><link rel="prefetch" href="/assets/js/49.25c724d7.js"><link rel="prefetch" href="/assets/js/5.b3e00557.js"><link rel="prefetch" href="/assets/js/50.aba60d25.js"><link rel="prefetch" href="/assets/js/51.01a0bacf.js"><link rel="prefetch" href="/assets/js/52.86012cbb.js"><link rel="prefetch" href="/assets/js/53.1563eb60.js"><link rel="prefetch" href="/assets/js/54.7e734114.js"><link rel="prefetch" href="/assets/js/55.28b96a29.js"><link rel="prefetch" href="/assets/js/56.81bd12a3.js"><link rel="prefetch" href="/assets/js/57.70cac198.js"><link rel="prefetch" href="/assets/js/58.cc1b357e.js"><link rel="prefetch" href="/assets/js/59.697472ae.js"><link rel="prefetch" href="/assets/js/6.2c85d2f8.js"><link rel="prefetch" href="/assets/js/60.36873359.js"><link rel="prefetch" href="/assets/js/61.0a367a50.js"><link rel="prefetch" href="/assets/js/62.1aaa7b15.js"><link rel="prefetch" href="/assets/js/63.52c8de07.js"><link rel="prefetch" href="/assets/js/64.25b51d76.js"><link rel="prefetch" href="/assets/js/65.462206d5.js"><link rel="prefetch" href="/assets/js/66.c336d9fe.js"><link rel="prefetch" href="/assets/js/67.1b7fa2b9.js"><link rel="prefetch" href="/assets/js/68.e0ebaf13.js"><link rel="prefetch" href="/assets/js/69.3e1b6d2e.js"><link rel="prefetch" href="/assets/js/7.d1b0af72.js"><link rel="prefetch" href="/assets/js/70.40431d36.js"><link rel="prefetch" href="/assets/js/71.64f24577.js"><link rel="prefetch" href="/assets/js/72.2cf8371b.js"><link rel="prefetch" href="/assets/js/73.88f7feb5.js"><link rel="prefetch" href="/assets/js/74.2d5471c0.js"><link rel="prefetch" href="/assets/js/8.9ab5ee55.js"><link rel="prefetch" href="/assets/js/9.aaca0f9d.js"><link rel="prefetch" href="/assets/js/vendors~docsearch.6f3b450f.js">
12
- <link rel="stylesheet" href="/assets/css/0.styles.89cafbc9.css">
13
- </head>
14
- <body>
15
- <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">HR-OA-KTS 轻应用组件库</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/guide/" class="nav-link">
16
- 指南
17
- </a></div><div class="nav-item"><a href="/H5-components/" class="nav-link router-link-active">
18
- 轻应用
19
- </a></div><div class="nav-item"><a href="/ERP-components/" class="nav-link">
20
- 铸剑
21
- </a></div><div class="nav-item"><a href="/utils/" class="nav-link">
22
- 工具方法
23
- </a></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/guide/" class="nav-link">
24
- 指南
25
- </a></div><div class="nav-item"><a href="/H5-components/" class="nav-link router-link-active">
26
- 轻应用
27
- </a></div><div class="nav-item"><a href="/ERP-components/" class="nav-link">
28
- 铸剑
29
- </a></div><div class="nav-item"><a href="/utils/" class="nav-link">
30
- 工具方法
31
- </a></div> <!----></nav> <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>起步</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>视图组件</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/H5-components/views/hr-at-input.html" class="sidebar-link">@人输入框</a></li><li><a href="/H5-components/views/hr-button-bottom.html" class="sidebar-link">底部多样按钮</a></li><li><a href="/H5-components/views/hr-condition-filtrate-popup.html" class="sidebar-link">筛选条件-弹出框</a></li><li><a href="/H5-components/views/hr-emotional-picture.html" aria-current="page" class="active sidebar-link">情感图组件</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/H5-components/views/hr-emotional-picture.html#预览" class="sidebar-link">预览</a></li><li class="sidebar-sub-header"><a href="/H5-components/views/hr-emotional-picture.html#代码演示" class="sidebar-link">代码演示</a></li></ul></li><li><a href="/H5-components/views/hr-img-list.html" class="sidebar-link">多图列表</a></li><li><a href="/H5-components/views/hr-info-card.html" class="sidebar-link">信息卡片</a></li><li><a href="/H5-components/views/hr-multiterm-choose.html" class="sidebar-link">筛选条件-多选框</a></li><li><a href="/H5-components/views/hr-no-data.html" class="sidebar-link">缺省图</a></li><li><a href="/H5-components/views/hr-notice-bar.html" class="sidebar-link">通知栏组件</a></li><li><a href="/H5-components/views/hr-popup.html" class="sidebar-link">弹出层</a></li><li><a href="/H5-components/views/hr-preview-file.html" class="sidebar-link">附件预览(pdf/word/图片)</a></li><li><a href="/H5-components/views/hr-rate.html" class="sidebar-link">二次封装 van-rate (支持显示辅助文案)</a></li><li><a href="/H5-components/views/hr-search-input.html" class="sidebar-link">搜索组合组件</a></li><li><a href="/H5-components/views/hr-select-list.html" class="sidebar-link">单选/多选下拉</a></li><li><a href="/H5-components/views/hr-single-choose.html" class="sidebar-link">筛选条件-单选框</a></li><li><a href="/H5-components/views/hr-tab-nav.html" class="sidebar-link">导航组件</a></li><li><a href="/H5-components/views/tic-rich-input.html" class="sidebar-link">富文本输入框组件(支持@人员)</a></li><li><a href="/H5-components/views/剪切板复制.html" class="sidebar-link">剪切板复制</a></li><li><a href="/H5-components/views/层叠图片.html" class="sidebar-link">层叠图片</a></li><li><a href="/H5-components/views/打开跨声用户.html" class="sidebar-link">打开跨声用户信息卡/聊天窗</a></li><li><a href="/H5-components/views/拖拽dom元素.html" class="sidebar-link">dom 拖拽自定义指令</a></li><li><a href="/H5-components/views/按钮翻页组件.html" class="sidebar-link">按钮翻页组件</a></li><li><a href="/H5-components/views/模块卡片组件.html" class="sidebar-link">模板卡片组件</a></li><li><a href="/H5-components/views/滑动翻页组件.html" class="sidebar-link">滑动翻页组件</a></li><li><a href="/H5-components/views/选择器表单.html" class="sidebar-link">field + popup + picker 选择器</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="情感图组件"><a href="#情感图组件" class="header-anchor">#</a> 情感图组件</h1> <h2 id="预览"><a href="#预览" class="header-anchor">#</a> 预览</h2> <p><img src="/assets/img/hr-emotional-picture.e7db80e6.png" alt="本地路径"></p> <h2 id="代码演示"><a href="#代码演示" class="header-anchor">#</a> 代码演示</h2> <h3 id="基础用法"><a href="#基础用法" class="header-anchor">#</a> 基础用法</h3> <div class="language-vue extra-class"><pre class="language-vue"><code> <span class="token tag"><span class="token tag"><span class="token punctuation">&lt;</span>HrEmotionalPicture</span> <span class="token attr-name">:type</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">&quot;</span>evaluate<span class="token punctuation">&quot;</span></span> <span class="token attr-name">:text</span><span class="token attr-value"><span class="token punctuation attr-equals">=</span><span class="token punctuation">&quot;</span>text<span class="token punctuation">&quot;</span></span> <span class="token punctuation">/&gt;</span></span>
32
- </code></pre></div><div class="language-javascript extra-class"><pre class="language-javascript"><code><span class="token keyword">export</span> <span class="token keyword">default</span> <span class="token punctuation">{</span>
33
- <span class="token function">data</span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span>
34
- <span class="token keyword">return</span> <span class="token punctuation">{</span>
35
- <span class="token literal-property property">type</span><span class="token operator">:</span> <span class="token string">'evaluate'</span><span class="token punctuation">,</span>
36
- <span class="token literal-property property">text</span><span class="token operator">:</span> <span class="token string">'稍后再来'</span>
37
- <span class="token punctuation">}</span>
38
- <span class="token punctuation">}</span>
39
- <span class="token punctuation">}</span>
40
- </code></pre></div></div> <footer class="page-edit"><!----> <!----></footer> <div class="page-nav"><p class="inner"><span class="prev">
41
- ←
42
- <a href="/H5-components/views/hr-condition-filtrate-popup.html" class="prev">
43
- 筛选条件-弹出框
44
- </a></span> <span class="next"><a href="/H5-components/views/hr-img-list.html">
45
- 多图列表
46
- </a>
47
- →
48
- </span></p></div> </main></div><div class="global-ui"></div></div>
49
- <script src="/assets/js/app.7efea3c2.js" defer></script><script src="/assets/js/3.b50928b1.js" defer></script><script src="/assets/js/1.1b9c091d.js" defer></script><script src="/assets/js/36.b58af11f.js" defer></script>
50
- </body>
51
- </html>