@10yun/cv-mobile-ui 0.5.44 → 0.5.46

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 (1177) hide show
  1. package/build/parse-pages.js +20 -127
  2. package/libs/permission.js +256 -244
  3. package/libs/request-permission.js +40 -0
  4. package/other/u-charts/config.js +503 -0
  5. package/other/u-charts/data.json +1143 -0
  6. package/other/u-charts/demodata.json +267 -0
  7. package/other/u-charts/mapdata.json +41 -0
  8. package/other/u-charts/u-charts.js +5687 -5395
  9. package/other/u-charts/u-charts.min.js +1 -0
  10. package/other/u-charts/u-charts.vue +466 -0
  11. package/other/uParse/components/wxParseAudio.vue +1 -1
  12. package/other/uParse/components/wxParseImg.vue +8 -3
  13. package/package.json +1 -1
  14. package/ui-cv/components/cv-filter-hm/cv-filter-hm.vue +99 -75
  15. package/ui-cv/components/cv-geo-local/cv-geo-local.vue +1 -1
  16. package/ui-cv/components/cv-upload-image/demo.vue +407 -0
  17. package/ui-fireui/fireui.css +1445 -0
  18. package/ui-fireui/libs/fui-color-analysis/fui-color-analysis.js +1 -0
  19. package/ui-fireui/libs/fui-zh-pinyin/fui-zh-pinyin.js +1 -0
  20. package/ui-sdks/sdk-privacy-policy/sdk-privacy-policy.vue +1 -1
  21. package/uview-plus/README.md +2 -1
  22. package/uview-plus/changelog.md +593 -0
  23. package/uview-plus/components/u-action-sheet/_doc/readme.md +2 -2
  24. package/uview-plus/components/u-action-sheet/actionSheet.js +4 -4
  25. package/uview-plus/components/u-action-sheet/props.js +8 -0
  26. package/uview-plus/components/u-action-sheet/style.css +0 -26
  27. package/uview-plus/components/u-action-sheet/style.scss +0 -1
  28. package/uview-plus/components/u-action-sheet/u-action-sheet.vue +22 -1
  29. package/uview-plus/components/u-agreement/style.css +10 -0
  30. package/uview-plus/components/u-agreement/style.scss +12 -0
  31. package/uview-plus/components/u-agreement/u-agreement.vue +65 -0
  32. package/uview-plus/components/u-album/album.js +3 -3
  33. package/uview-plus/components/u-album/props.js +9 -0
  34. package/uview-plus/components/u-album/style.css +0 -26
  35. package/uview-plus/components/u-album/style.scss +0 -2
  36. package/uview-plus/components/u-album/u-album.vue +86 -21
  37. package/uview-plus/components/u-alert/alert.js +9 -5
  38. package/uview-plus/components/u-alert/props.js +29 -0
  39. package/uview-plus/components/u-alert/style.css +0 -26
  40. package/uview-plus/components/u-alert/style.scss +0 -2
  41. package/uview-plus/components/u-alert/u-alert.vue +48 -7
  42. package/uview-plus/components/u-app-update/_doc/readme.md +2 -2
  43. package/uview-plus/components/u-avatar/style.css +0 -26
  44. package/uview-plus/components/u-avatar/style.scss +0 -2
  45. package/uview-plus/components/u-avatar/u-avatar.vue +1 -1
  46. package/uview-plus/components/u-avatar-group/style.css +0 -26
  47. package/uview-plus/components/u-avatar-group/style.scss +0 -2
  48. package/uview-plus/components/u-avatar-group/u-avatar-group.vue +1 -1
  49. package/uview-plus/components/u-back-top/style.css +0 -26
  50. package/uview-plus/components/u-back-top/style.scss +0 -1
  51. package/uview-plus/components/u-badge/style.css +0 -26
  52. package/uview-plus/components/u-badge/style.scss +0 -2
  53. package/uview-plus/components/u-barcode/u-barcode.vue +1062 -0
  54. package/uview-plus/components/u-box/style.css +0 -26
  55. package/uview-plus/components/u-box/style.scss +0 -2
  56. package/uview-plus/components/{u-button-wu → u-button}/_doc/readme.md +2 -2
  57. package/uview-plus/components/u-button/style.css +0 -26
  58. package/uview-plus/components/u-button/style.scss +3 -4
  59. package/uview-plus/components/{u-button-wu/style.scss → u-button/style2.scss} +0 -1
  60. package/uview-plus/components/{u-button-wu → u-button}/u-button-wu.vue +2 -2
  61. package/uview-plus/components/u-button/u-button.vue +9 -9
  62. package/uview-plus/components/u-calendar/calendar.js +10 -7
  63. package/uview-plus/components/u-calendar/header.vue +1 -1
  64. package/uview-plus/components/u-calendar/month.vue +14 -6
  65. package/uview-plus/components/u-calendar/props.js +9 -0
  66. package/uview-plus/components/u-calendar/style.css +0 -26
  67. package/uview-plus/components/u-calendar/style.scss +0 -2
  68. package/uview-plus/components/u-calendar/u-calendar.vue +41 -8
  69. package/uview-plus/components/u-calendar/util.js +1 -1
  70. package/uview-plus/components/u-calendar-wu/_doc/readme.md +2 -2
  71. package/uview-plus/components/u-car-keyboard/style.css +0 -26
  72. package/uview-plus/components/u-car-keyboard/style.scss +0 -1
  73. package/uview-plus/components/u-card/style.css +0 -26
  74. package/uview-plus/components/u-card/style.scss +0 -2
  75. package/uview-plus/components/u-cascader/style.css +16 -0
  76. package/uview-plus/components/u-cascader/style.scss +25 -0
  77. package/uview-plus/components/u-cascader/u-cascader.vue +323 -0
  78. package/uview-plus/components/u-cate-tab/style.css +1 -0
  79. package/uview-plus/components/u-cate-tab/style.scss +1 -0
  80. package/uview-plus/components/u-cate-tab/u-cate-tab.vue +1 -1
  81. package/uview-plus/components/u-cell/_doc/readme.md +2 -2
  82. package/uview-plus/components/u-cell/style.css +0 -26
  83. package/uview-plus/components/u-cell/style.scss +0 -2
  84. package/uview-plus/components/u-cell-group/style.css +0 -26
  85. package/uview-plus/components/u-cell-group/style.scss +0 -2
  86. package/uview-plus/components/u-checkbox/_doc/readme.md +2 -2
  87. package/uview-plus/components/u-checkbox/style.css +3 -27
  88. package/uview-plus/components/u-checkbox/style.scss +0 -1
  89. package/uview-plus/components/u-checkbox/u-checkbox.vue +7 -6
  90. package/uview-plus/components/u-checkbox-group/style.css +0 -26
  91. package/uview-plus/components/u-checkbox-group/style.scss +0 -2
  92. package/uview-plus/components/u-checkbox-group/u-checkbox-group.vue +1 -1
  93. package/uview-plus/components/u-choose/style.css +13 -0
  94. package/uview-plus/components/u-choose/style.scss +17 -0
  95. package/uview-plus/components/u-choose/u-choose.vue +93 -0
  96. package/uview-plus/components/u-circle-progress/style.css +0 -26
  97. package/uview-plus/components/u-circle-progress/style.scss +0 -2
  98. package/uview-plus/components/u-circle-progress/u-circle-progress.vue +1 -1
  99. package/uview-plus/components/u-city-locate/style.css +20 -0
  100. package/uview-plus/components/u-city-locate/style.scss +20 -0
  101. package/uview-plus/components/u-city-locate/u-city-locate.vue +1 -0
  102. package/uview-plus/components/u-code/_doc/readme.md +2 -2
  103. package/uview-plus/components/u-code/code.js +5 -5
  104. package/uview-plus/components/u-code/u-code.vue +2 -4
  105. package/uview-plus/components/u-code-input/style.css +0 -26
  106. package/uview-plus/components/u-code-input/style.scss +0 -1
  107. package/uview-plus/components/u-code-input/u-code-input.vue +1 -1
  108. package/uview-plus/components/u-col/style.css +0 -26
  109. package/uview-plus/components/u-col/style.scss +0 -2
  110. package/uview-plus/components/u-col/u-col.vue +1 -1
  111. package/uview-plus/components/u-collapse/u-collapse.vue +2 -4
  112. package/uview-plus/components/u-collapse-item/style.css +0 -26
  113. package/uview-plus/components/u-collapse-item/style.scss +0 -2
  114. package/uview-plus/components/u-collapse-item/u-collapse-item.vue +2 -2
  115. package/uview-plus/components/u-color-picker/style.css +246 -0
  116. package/uview-plus/components/u-color-picker/style.scss +299 -0
  117. package/uview-plus/components/u-color-picker/u-color-picker.vue +702 -0
  118. package/uview-plus/components/u-column-notice/style.css +0 -26
  119. package/uview-plus/components/u-column-notice/style.scss +0 -2
  120. package/uview-plus/components/u-column-notice/u-column-notice.vue +1 -1
  121. package/uview-plus/components/u-copy/u-copy.vue +7 -5
  122. package/uview-plus/components/u-count-down/style.css +0 -26
  123. package/uview-plus/components/u-count-down/style.scss +0 -1
  124. package/uview-plus/components/u-count-down/u-count-down.vue +2 -1
  125. package/uview-plus/components/u-count-to/style.css +0 -26
  126. package/uview-plus/components/u-count-to/style.scss +0 -2
  127. package/uview-plus/components/u-count-to/u-count-to.vue +1 -1
  128. package/uview-plus/components/u-coupon/style.css +214 -0
  129. package/uview-plus/components/u-coupon/style.scss +246 -0
  130. package/uview-plus/components/u-coupon/u-coupon.vue +166 -0
  131. package/uview-plus/components/u-cropper/style.css +91 -0
  132. package/uview-plus/components/u-cropper/style.scss +93 -0
  133. package/uview-plus/components/u-cropper/u-cropper.vue +1 -0
  134. package/uview-plus/components/u-datetime-picker/datetimePicker.js +5 -3
  135. package/uview-plus/components/u-datetime-picker/dayjs.esm.min.js +7 -0
  136. package/uview-plus/components/u-datetime-picker/props.js +5 -0
  137. package/uview-plus/components/u-datetime-picker/style.css +0 -26
  138. package/uview-plus/components/u-datetime-picker/style.scss +0 -1
  139. package/uview-plus/components/u-datetime-picker/u-datetime-picker.vue +29 -6
  140. package/uview-plus/components/u-divider/style.css +0 -26
  141. package/uview-plus/components/u-divider/style.scss +0 -1
  142. package/uview-plus/components/u-divider/u-divider.vue +4 -2
  143. package/uview-plus/components/{u-drag-sort → u-dragsort}/_doc/readme.md +2 -2
  144. package/uview-plus/components/u-dragsort/style.css +40 -0
  145. package/uview-plus/components/u-dragsort/style.scss +52 -0
  146. package/uview-plus/components/u-dragsort/u-dragsort.vue +310 -0
  147. package/uview-plus/components/u-dropdown/style.css +0 -26
  148. package/uview-plus/components/u-dropdown/style.scss +0 -2
  149. package/uview-plus/components/u-dropdown/u-dropdown.vue +16 -8
  150. package/uview-plus/components/u-dropdown-item/style.css +0 -26
  151. package/uview-plus/components/u-dropdown-item/style.scss +0 -1
  152. package/uview-plus/components/u-dropdown-item/u-dropdown-item.vue +1 -1
  153. package/uview-plus/components/u-empty/style.css +0 -26
  154. package/uview-plus/components/u-empty/style.scss +0 -1
  155. package/{uview-ui/components/u-empty/u-empty.vue → uview-plus/components/u-empty/u-empty-new.vue} +16 -12
  156. package/uview-plus/components/u-empty/u-empty.vue +17 -2
  157. package/uview-plus/components/u-float-button/style.css +0 -26
  158. package/uview-plus/components/u-float-button/style.scss +0 -2
  159. package/uview-plus/components/u-float-button/u-float-button.vue +1 -1
  160. package/uview-plus/components/u-form/u-form.vue +2 -2
  161. package/uview-plus/components/u-form-item/style.css +0 -26
  162. package/uview-plus/components/u-form-item/style.scss +0 -2
  163. package/uview-plus/components/u-form-item/u-form-item.vue +3 -3
  164. package/uview-plus/components/u-gap/_doc/readme.md +2 -2
  165. package/uview-plus/components/u-gap/u-gap.vue +2 -4
  166. package/uview-plus/components/u-goods-sku/style.css +100 -0
  167. package/uview-plus/components/u-goods-sku/style.scss +120 -0
  168. package/uview-plus/components/u-goods-sku/u-goods-sku.vue +287 -0
  169. package/uview-plus/components/u-grid/style.css +1 -27
  170. package/uview-plus/components/u-grid/style.scss +1 -2
  171. package/uview-plus/components/u-grid/u-grid.vue +1 -1
  172. package/uview-plus/components/u-grid-item/style.css +0 -26
  173. package/uview-plus/components/u-grid-item/style.scss +0 -1
  174. package/uview-plus/components/u-grid-item/u-grid-item.vue +1 -1
  175. package/uview-plus/components/u-icon/_doc/readme.md +2 -2
  176. package/uview-plus/components/u-icon/icon.js +25 -23
  177. package/uview-plus/components/u-icon/icons.js +213 -213
  178. package/uview-plus/components/u-icon/style.css +3 -29
  179. package/uview-plus/components/u-icon/style.scss +1 -3
  180. package/uview-plus/components/u-icon/u-icon.vue +4 -47
  181. package/uview-plus/components/u-icon/util.js +68 -0
  182. package/uview-plus/components/{u-image-wu → u-image}/_doc/readme.md +2 -2
  183. package/uview-plus/components/u-image/props.js +10 -0
  184. package/uview-plus/components/u-image/style.css +0 -26
  185. package/uview-plus/components/u-image/style.scss +0 -2
  186. package/uview-plus/components/{u-image-wu → u-image}/u-image-wu.vue +47 -12
  187. package/uview-plus/components/u-image/u-image.vue +7 -4
  188. package/uview-plus/components/u-index-anchor/indexAnchor.js +1 -1
  189. package/uview-plus/components/u-index-anchor/style.css +4 -26
  190. package/uview-plus/components/u-index-anchor/style.scss +5 -2
  191. package/uview-plus/components/u-index-anchor/u-index-anchor.vue +13 -2
  192. package/uview-plus/components/u-index-item/u-index-item.vue +1 -3
  193. package/uview-plus/components/u-index-list/indexList.js +2 -1
  194. package/uview-plus/components/u-index-list/props.js +5 -0
  195. package/uview-plus/components/u-index-list/style.css +0 -26
  196. package/uview-plus/components/u-index-list/style.scss +0 -2
  197. package/uview-plus/components/u-index-list/u-index-list.vue +19 -10
  198. package/uview-plus/components/u-input/_doc/readme.md +2 -2
  199. package/uview-plus/components/u-input/input.js +6 -4
  200. package/uview-plus/components/u-input/props.js +16 -1
  201. package/uview-plus/components/u-input/style.css +0 -26
  202. package/uview-plus/components/u-input/style.scss +0 -2
  203. package/uview-plus/components/u-input/u-input.vue +34 -6
  204. package/uview-plus/components/u-keyboard/keyboard.js +3 -2
  205. package/uview-plus/components/u-keyboard/style.css +0 -26
  206. package/uview-plus/components/u-keyboard/style.scss +0 -2
  207. package/uview-plus/components/u-keyboard/u-keyboard.vue +1 -1
  208. package/uview-plus/components/u-lazy-load/style.css +0 -26
  209. package/uview-plus/components/u-lazy-load/style.scss +0 -2
  210. package/uview-plus/components/u-lazy-load/u-lazy-load.vue +6 -2
  211. package/uview-plus/components/u-line/_doc/readme.md +2 -2
  212. package/uview-plus/components/u-line/style.css +0 -26
  213. package/uview-plus/components/u-line/style.scss +0 -2
  214. package/uview-plus/components/u-line/u-line.vue +1 -1
  215. package/uview-plus/components/u-line-progress/lineProgress.js +2 -1
  216. package/uview-plus/components/u-line-progress/props.js +5 -0
  217. package/uview-plus/components/u-line-progress/style.css +0 -27
  218. package/uview-plus/components/u-line-progress/style.scss +0 -3
  219. package/uview-plus/components/u-line-progress/u-line-progress.vue +6 -1
  220. package/uview-plus/components/u-link/_doc/readme.md +2 -2
  221. package/uview-plus/components/u-link/link.js +2 -1
  222. package/uview-plus/components/u-link/style.css +0 -26
  223. package/uview-plus/components/u-link/style.scss +0 -1
  224. package/uview-plus/components/u-link/u-link.vue +1 -1
  225. package/uview-plus/components/u-list/style.css +0 -26
  226. package/uview-plus/components/u-list/style.scss +0 -2
  227. package/uview-plus/components/u-list/u-list.vue +1 -1
  228. package/uview-plus/components/u-list-item/style.css +0 -26
  229. package/uview-plus/components/u-list-item/style.scss +0 -2
  230. package/uview-plus/components/u-list-item/u-list-item.vue +1 -1
  231. package/uview-plus/components/u-loading-icon/_doc/readme.md +2 -2
  232. package/uview-plus/components/u-loading-icon/style.css +0 -26
  233. package/uview-plus/components/u-loading-icon/style.scss +0 -1
  234. package/uview-plus/components/u-loading-icon/u-loading-icon.vue +1 -1
  235. package/uview-plus/components/u-loading-page/loadingPage.js +2 -1
  236. package/uview-plus/components/u-loading-page/style.css +0 -26
  237. package/uview-plus/components/u-loading-page/style.scss +0 -2
  238. package/uview-plus/components/u-loading-page/u-loading-page.vue +1 -1
  239. package/uview-plus/components/u-loadmore/loadmore.js +4 -3
  240. package/uview-plus/components/u-loadmore/style.css +0 -26
  241. package/uview-plus/components/u-loadmore/style.scss +0 -2
  242. package/uview-plus/components/u-loadmore/u-loadmore.vue +1 -1
  243. package/uview-plus/components/u-markdown/marked.esm.js +7 -0
  244. package/uview-plus/components/u-markdown/style.css +188 -0
  245. package/uview-plus/components/u-markdown/style.scss +199 -0
  246. package/uview-plus/components/u-markdown/u-markdown.vue +91 -0
  247. package/uview-plus/components/u-modal/modal.js +5 -3
  248. package/uview-plus/components/u-modal/props.js +5 -0
  249. package/uview-plus/components/u-modal/style.css +0 -26
  250. package/uview-plus/components/u-modal/style.scss +0 -1
  251. package/uview-plus/components/u-modal/u-modal.vue +6 -2
  252. package/uview-plus/components/u-navbar/_doc/readme.md +2 -2
  253. package/uview-plus/components/u-navbar/props.js +22 -0
  254. package/uview-plus/components/u-navbar/style.css +0 -26
  255. package/uview-plus/components/u-navbar/style.scss +0 -2
  256. package/uview-plus/components/{u-navbar-wu → u-navbar}/u-navbar-wu.vue +18 -10
  257. package/uview-plus/components/u-navbar/u-navbar.vue +4 -3
  258. package/uview-plus/components/u-navbar-mini/style.css +0 -26
  259. package/uview-plus/components/u-navbar-mini/style.scss +0 -2
  260. package/uview-plus/components/u-navbar-mini/u-navbar-mini.vue +1 -1
  261. package/uview-plus/components/u-no-network/noNetwork.js +2 -2
  262. package/uview-plus/components/u-no-network/style.css +0 -26
  263. package/uview-plus/components/u-no-network/style.scss +0 -2
  264. package/uview-plus/components/u-no-network/u-no-network.vue +8 -6
  265. package/uview-plus/components/u-notice-bar/style.css +0 -26
  266. package/uview-plus/components/u-notice-bar/style.scss +0 -2
  267. package/uview-plus/components/u-notice-bar/u-notice-bar.vue +1 -3
  268. package/{uview-ui/components/u-notice-bar/u-notice-bar.vue → uview-plus/components/u-notice-bar/u-notice-bar2.vue} +14 -10
  269. package/uview-plus/components/u-notify/style.css +0 -26
  270. package/uview-plus/components/u-notify/style.scss +0 -2
  271. package/uview-plus/components/u-number-box/_doc/readme.md +2 -2
  272. package/uview-plus/components/u-number-box/numberBox.js +1 -0
  273. package/uview-plus/components/u-number-box/props.js +5 -0
  274. package/uview-plus/components/u-number-box/style.css +0 -26
  275. package/uview-plus/components/u-number-box/style.scss +0 -2
  276. package/uview-plus/components/u-number-box/u-number-box.vue +6 -5
  277. package/uview-plus/components/u-number-keyboard/style.css +0 -26
  278. package/uview-plus/components/u-number-keyboard/style.scss +0 -1
  279. package/uview-plus/components/u-overlay/_doc/readme.md +2 -2
  280. package/uview-plus/components/u-overlay/style.css +0 -26
  281. package/uview-plus/components/u-overlay/style.scss +0 -1
  282. package/uview-plus/components/u-overlay/u-overlay.vue +1 -1
  283. package/uview-plus/components/u-pagination/style.css +46 -0
  284. package/uview-plus/components/u-pagination/style.scss +51 -0
  285. package/uview-plus/components/u-pagination/u-pagination.vue +1 -0
  286. package/uview-plus/components/u-parse/node/node.vue +43 -24
  287. package/uview-plus/components/u-parse/parse.js +5 -5
  288. package/uview-plus/components/u-parse/parser.js +74 -13
  289. package/uview-plus/components/u-parse/props.js +53 -47
  290. package/uview-plus/components/u-parse/u-parse.vue +12 -7
  291. package/uview-plus/components/u-pdf-reader/props.js +19 -0
  292. package/uview-plus/components/u-pdf-reader/style.scss +2 -0
  293. package/uview-plus/components/u-pdf-reader/u-pdf-reader.vue +50 -0
  294. package/uview-plus/components/u-picker/picker.js +10 -3
  295. package/uview-plus/components/u-picker/props.js +30 -0
  296. package/uview-plus/components/u-picker/style.css +0 -26
  297. package/uview-plus/components/u-picker/style.scss +0 -2
  298. package/uview-plus/components/u-picker/u-picker.vue +87 -25
  299. package/uview-plus/components/u-picker-column/u-picker-column.vue +1 -3
  300. package/uview-plus/components/u-picker-data/style.css +1 -0
  301. package/uview-plus/components/u-picker-data/style.scss +1 -0
  302. package/uview-plus/components/u-picker-data/u-picker-data.vue +22 -4
  303. package/uview-plus/components/u-popover/props.js +59 -0
  304. package/uview-plus/components/u-popover/style.css +8 -0
  305. package/uview-plus/components/u-popover/style.scss +7 -0
  306. package/uview-plus/components/u-popover/u-popover.vue +84 -0
  307. package/uview-plus/components/u-popup/_doc/readme.md +2 -2
  308. package/uview-plus/components/u-popup/popup.js +6 -2
  309. package/uview-plus/components/u-popup/props.js +20 -0
  310. package/uview-plus/components/u-popup/style.css +18 -26
  311. package/uview-plus/components/u-popup/style.scss +21 -1
  312. package/uview-plus/components/u-popup/u-popup.vue +97 -9
  313. package/uview-plus/components/u-popup-wu/u-popup-wu.vue +1 -1
  314. package/uview-plus/components/u-poster/style.css +22 -0
  315. package/uview-plus/components/u-poster/style.scss +26 -0
  316. package/uview-plus/components/u-poster/u-poster.vue +564 -0
  317. package/uview-plus/components/u-pull-refresh/style.css +51 -0
  318. package/uview-plus/components/u-pull-refresh/style.scss +58 -0
  319. package/uview-plus/components/u-pull-refresh/u-pull-refresh.vue +231 -0
  320. package/uview-plus/components/u-qrcode/qrcode.js +145 -65
  321. package/uview-plus/components/u-qrcode/style.css +13 -0
  322. package/uview-plus/components/u-qrcode/style.scss +10 -0
  323. package/uview-plus/components/u-qrcode/u-qrcode.vue +144 -15
  324. package/uview-plus/components/u-radio/_doc/readme.md +2 -2
  325. package/uview-plus/components/u-radio/style.css +3 -27
  326. package/uview-plus/components/u-radio/style.scss +0 -1
  327. package/uview-plus/components/u-radio/u-radio.vue +3 -3
  328. package/uview-plus/components/u-radio-group/style.css +0 -26
  329. package/uview-plus/components/u-radio-group/style.scss +0 -2
  330. package/uview-plus/components/u-radio-group/u-radio-group.vue +1 -1
  331. package/uview-plus/components/u-rate/style.css +1 -27
  332. package/uview-plus/components/u-rate/style.scss +1 -2
  333. package/uview-plus/components/u-rate/u-rate.vue +1 -1
  334. package/uview-plus/components/u-read-more/readMore.js +3 -2
  335. package/uview-plus/components/u-read-more/style.css +0 -26
  336. package/uview-plus/components/u-read-more/style.scss +0 -2
  337. package/uview-plus/components/u-read-more/u-read-more.vue +1 -1
  338. package/uview-plus/components/u-refresh-virtual-list/u-refresh-virtual-list.vue +75 -0
  339. package/uview-plus/components/u-row/_doc/readme.md +2 -2
  340. package/uview-plus/components/u-row/style.css +0 -26
  341. package/uview-plus/components/u-row/style.scss +0 -2
  342. package/uview-plus/components/u-row/u-row.vue +1 -1
  343. package/uview-plus/components/u-row-notice/style.css +0 -27
  344. package/uview-plus/components/u-row-notice/style.scss +1 -3
  345. package/uview-plus/components/u-row-notice/u-row-notice.vue +1 -1
  346. package/uview-plus/components/u-safe-bottom/_doc/readme.md +2 -2
  347. package/uview-plus/components/u-safe-bottom/u-safe-bottom.vue +3 -3
  348. package/uview-plus/components/u-scroll-list/cc-scroll-list.vue +233 -0
  349. package/uview-plus/components/u-scroll-list/style.css +0 -26
  350. package/uview-plus/components/u-scroll-list/style.scss +0 -2
  351. package/uview-plus/components/u-scroll-list/u-scroll-list.vue +158 -171
  352. package/uview-plus/components/u-search/props.js +61 -43
  353. package/uview-plus/components/u-search/search.js +3 -2
  354. package/uview-plus/components/u-search/style.css +0 -26
  355. package/uview-plus/components/u-search/style.scss +0 -1
  356. package/uview-plus/components/u-search/u-search.vue +16 -3
  357. package/uview-plus/components/u-section/section.js +2 -1
  358. package/uview-plus/components/u-select/style.css +9 -3
  359. package/uview-plus/components/u-short-video/style.css +117 -0
  360. package/uview-plus/components/u-short-video/style.scss +138 -0
  361. package/uview-plus/components/u-short-video/u-short-video.vue +296 -0
  362. package/uview-plus/components/u-signature/style.css +70 -0
  363. package/uview-plus/components/u-signature/style.scss +88 -0
  364. package/uview-plus/components/u-signature/u-signature.vue +350 -0
  365. package/uview-plus/components/u-skeleton/style.css +0 -26
  366. package/uview-plus/components/u-skeleton/style.scss +0 -2
  367. package/uview-plus/components/u-skeleton/u-skeleton.vue +3 -3
  368. package/uview-plus/components/u-sku-wu/_doc/readme.md +2 -2
  369. package/uview-plus/components/u-sku-wu/u-sku-wu.vue +1 -1
  370. package/uview-plus/components/u-slider/nvue - /345/211/257/346/234/254.js" +166 -0
  371. package/uview-plus/components/u-slider/props.js +4 -0
  372. package/uview-plus/components/u-slider/slider.js +2 -1
  373. package/uview-plus/components/u-slider/style.css +6 -28
  374. package/uview-plus/components/u-slider/style.scss +0 -1
  375. package/uview-plus/components/u-slider/u-slider.vue +17 -5
  376. package/uview-plus/components/u-status-bar/_doc/readme.md +2 -2
  377. package/uview-plus/components/u-steps/style.css +3 -26
  378. package/uview-plus/components/u-steps/style.scss +5 -2
  379. package/uview-plus/components/u-steps-item/style.css +3 -26
  380. package/uview-plus/components/u-steps-item/style.scss +6 -2
  381. package/uview-plus/components/u-steps-item/u-steps-item.vue +3 -3
  382. package/uview-plus/components/u-sticky/u-sticky.vue +1 -1
  383. package/uview-plus/components/u-sticky/wlk-sticky.vue +117 -0
  384. package/uview-plus/components/u-subsection/props.js +16 -0
  385. package/uview-plus/components/u-subsection/style.css +17 -26
  386. package/uview-plus/components/u-subsection/style.scss +33 -2
  387. package/uview-plus/components/u-subsection/subsection.js +4 -1
  388. package/uview-plus/components/u-subsection/u-subsection.vue +75 -18
  389. package/uview-plus/components/u-swipe-action/u-swipe-action.vue +1 -1
  390. package/uview-plus/components/u-swipe-action-item/style.css +0 -26
  391. package/uview-plus/components/u-swipe-action-item/style.scss +0 -2
  392. package/uview-plus/components/u-swipe-action-item/u-swipe-action-item.vue +1 -1
  393. package/uview-plus/components/u-swiper/style.css +0 -26
  394. package/uview-plus/components/u-swiper/style.scss +0 -2
  395. package/uview-plus/components/u-swiper/u-swiper.vue +1 -1
  396. package/uview-plus/components/u-swiper-indicator/style.css +0 -26
  397. package/uview-plus/components/u-swiper-indicator/style.scss +0 -2
  398. package/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue +1 -1
  399. package/uview-plus/components/u-switch/style.css +1 -27
  400. package/uview-plus/components/u-switch/style.scss +0 -2
  401. package/uview-plus/components/u-switch/u-switch.vue +154 -160
  402. package/uview-plus/components/u-tabbar/props.js +10 -0
  403. package/uview-plus/components/u-tabbar/style.css +0 -26
  404. package/uview-plus/components/u-tabbar/style.scss +0 -2
  405. package/uview-plus/components/u-tabbar/tabbar.js +3 -1
  406. package/uview-plus/components/u-tabbar/u-tabbar.vue +8 -1
  407. package/uview-plus/components/u-tabbar-item/props.js +6 -1
  408. package/uview-plus/components/u-tabbar-item/style.css +23 -26
  409. package/uview-plus/components/u-tabbar-item/style.scss +28 -1
  410. package/uview-plus/components/u-tabbar-item/tabbarItem.js +2 -1
  411. package/uview-plus/components/u-tabbar-item/u-tabbar-item.vue +17 -5
  412. package/uview-plus/components/u-table/u-table.vue +82 -6
  413. package/uview-plus/components/u-table2/style.scss +117 -0
  414. package/uview-plus/components/u-table2/tableRow.vue +1 -0
  415. package/uview-plus/components/u-table2/u-table2.vue +1 -0
  416. package/uview-plus/components/u-tabs/style.css +0 -26
  417. package/uview-plus/components/u-tabs/style.scss +0 -2
  418. package/uview-plus/components/u-tabs/tabs.js +1 -1
  419. package/uview-plus/components/u-tabs/u-tabs.vue +12 -3
  420. package/uview-plus/components/u-tabs-item/u-tabs-item.vue +1 -1
  421. package/uview-plus/components/u-tag/props.js +5 -0
  422. package/uview-plus/components/u-tag/style.css +0 -26
  423. package/uview-plus/components/u-tag/style.scss +0 -2
  424. package/uview-plus/components/u-tag/u-tag.vue +1 -1
  425. package/uview-plus/components/u-td/style.css +12 -24
  426. package/uview-plus/components/u-td/style.scss +11 -1
  427. package/uview-plus/components/u-td/u-td.vue +60 -2
  428. package/uview-plus/components/u-text/_doc/readme.md +2 -2
  429. package/uview-plus/components/u-text/style.css +0 -26
  430. package/uview-plus/components/u-text/style.scss +0 -2
  431. package/{uview-ui/components/u-text/style.scss → uview-plus/components/u-text/style2.scss} +60 -62
  432. package/uview-plus/components/u-text/u-text.vue +1 -1
  433. package/uview-plus/components/u-text/value.js +83 -81
  434. package/uview-plus/components/u-textarea/_doc/readme.md +2 -2
  435. package/uview-plus/components/u-textarea/style.css +0 -26
  436. package/uview-plus/components/u-textarea/style.scss +0 -2
  437. package/uview-plus/components/u-textarea/u-textarea.vue +236 -3
  438. package/uview-plus/components/u-th/props.js +5 -0
  439. package/uview-plus/components/u-th/style.css +13 -0
  440. package/uview-plus/components/u-th/style.scss +10 -0
  441. package/uview-plus/components/u-th/u-th.vue +55 -0
  442. package/uview-plus/components/u-title/style.css +8 -0
  443. package/uview-plus/components/u-title/style.scss +10 -0
  444. package/uview-plus/components/u-title/u-title.vue +22 -0
  445. package/uview-plus/components/u-toast/style.css +0 -26
  446. package/uview-plus/components/u-toast/style.scss +1 -3
  447. package/uview-plus/components/u-toast/u-toast.vue +3 -2
  448. package/uview-plus/components/u-toolbar/style.css +0 -26
  449. package/uview-plus/components/u-toolbar/style.scss +0 -2
  450. package/uview-plus/components/u-toolbar/toolbar.js +3 -2
  451. package/uview-plus/components/u-toolbar/u-toolbar.vue +1 -1
  452. package/uview-plus/components/u-tooltip/props.js +16 -1
  453. package/uview-plus/components/u-tooltip/style.css +1 -26
  454. package/uview-plus/components/u-tooltip/style.scss +1 -2
  455. package/uview-plus/components/u-tooltip/tooltip.js +4 -1
  456. package/uview-plus/components/u-tooltip/u-tooltip.vue +141 -87
  457. package/uview-plus/components/u-tr/style.css +5 -25
  458. package/uview-plus/components/u-tr/style.scss +3 -1
  459. package/uview-plus/components/u-tr/u-tr.vue +3 -1
  460. package/uview-plus/components/u-transition/_doc/readme.md +2 -2
  461. package/uview-plus/components/u-transition/style.css +0 -26
  462. package/uview-plus/components/u-transition/style.scss +114 -3
  463. package/uview-plus/components/u-transition/transitionMixin.js +163 -163
  464. package/uview-plus/components/u-transition-wu/u-transition.vue +1 -1
  465. package/uview-plus/components/u-tree/tree-node.vue +131 -0
  466. package/uview-plus/components/u-tree/u-tree.vue +115 -0
  467. package/uview-plus/components/u-upload/props.js +4 -0
  468. package/uview-plus/components/u-upload/style.css +0 -26
  469. package/uview-plus/components/u-upload/style.scss +0 -1
  470. package/uview-plus/components/u-upload/u-upload.vue +12 -6
  471. package/uview-plus/components/u-upload/upload.js +2 -1
  472. package/uview-plus/components/u-view/style.css +0 -26
  473. package/uview-plus/components/u-view/style.scss +0 -2
  474. package/uview-plus/components/u-view/u-view.vue +70 -3
  475. package/uview-plus/components/u-virtual-list/style.scss +16 -0
  476. package/uview-plus/components/u-virtual-list/u-virtual-list.vue +218 -0
  477. package/uview-plus/components/u-waterfall/style.css +3 -26
  478. package/uview-plus/components/u-waterfall/style.scss +4 -2
  479. package/uview-plus/components/u-waterfall/u-waterfall.vue +247 -100
  480. package/uview-plus/index.css +32 -1
  481. package/uview-plus/index.js +34 -9
  482. package/uview-plus/index.scss +1 -0
  483. package/uview-plus/libs/config/config.js +50 -46
  484. package/uview-plus/libs/config/props.js +2 -2
  485. package/uview-plus/libs/css/color.scss +311 -32
  486. package/uview-plus/libs/css/common-libcss.scss +3 -1
  487. package/uview-plus/libs/css/common.scss +1 -1
  488. package/uview-plus/libs/css/components-libcss.scss +2 -0
  489. package/uview-plus/libs/css/components.scss +2 -0
  490. package/uview-plus/libs/css/flex.scss +41 -37
  491. package/uview-plus/libs/css/vue.scss +1 -1
  492. package/uview-plus/libs/ctocode/date.js +0 -96
  493. package/uview-plus/libs/ctocode/index.js +46 -0
  494. package/uview-plus/libs/function/calc.js +55 -61
  495. package/uview-plus/libs/function/colorGradient.js +106 -108
  496. package/uview-plus/libs/function/debounce.js +17 -17
  497. package/uview-plus/libs/function/digit.js +3 -1
  498. package/uview-plus/libs/function/http.js +3 -3
  499. package/{uview-ui/libs/function/index.js → uview-plus/libs/function/index-v2.js} +6 -6
  500. package/uview-plus/libs/function/index.js +585 -579
  501. package/uview-plus/libs/function/platform.js +18 -18
  502. package/uview-plus/libs/function/test.js +144 -135
  503. package/uview-plus/libs/function/throttle.js +17 -17
  504. package/uview-plus/libs/i18n/index.js +54 -0
  505. package/uview-plus/libs/i18n/locales/de.json +85 -0
  506. package/uview-plus/libs/i18n/locales/en.json +85 -0
  507. package/uview-plus/libs/i18n/locales/es.json +85 -0
  508. package/uview-plus/libs/i18n/locales/fr.json +85 -0
  509. package/uview-plus/libs/i18n/locales/ja.json +85 -0
  510. package/uview-plus/libs/i18n/locales/ko.json +85 -0
  511. package/uview-plus/libs/i18n/locales/ru.json +85 -0
  512. package/uview-plus/libs/i18n/locales/th.json +85 -0
  513. package/uview-plus/libs/i18n/locales/zh-Hans.json +85 -0
  514. package/uview-plus/libs/i18n/locales/zh-Hant.json +85 -0
  515. package/uview-plus/libs/mixin/mpMixin.js +0 -1
  516. package/uview-plus/libs/mixin/openType.js +0 -33
  517. package/uview-plus/libs/util/route.js +105 -101
  518. package/uview-plus/package.json +60 -56
  519. package/uview-plus/types/comps/modal.d.ts +1 -1
  520. package/uview-plus/types/comps/navbar.d.ts +5 -0
  521. package/uview-plus/types/comps/qrcode.d.ts +77 -0
  522. package/uview-plus/types/comps/search.d.ts +8 -0
  523. package/uview-plus/types/comps/subsection.d.ts +16 -0
  524. package/uview-plus/types/comps.d.ts +1 -0
  525. package/build/parse-pages2.js +0 -281
  526. package/extend/jweixin-module.js +0 -1
  527. package/extend/permission.js +0 -256
  528. package/ui-cv/components/cv-layout-topbar/cv-layout-topbar.vue +0 -239
  529. package/uview-plus/components/u--form/u--form.vue +0 -1
  530. package/uview-plus/components/u--image/u--image.vue +0 -1
  531. package/uview-plus/components/u--input/u--input.vue +0 -9
  532. package/uview-plus/components/u--text/u--text.vue +0 -1
  533. package/uview-plus/components/u--textarea/u--textarea.vue +0 -1
  534. package/uview-plus/components/u-button-wu/vue.scss +0 -81
  535. package/uview-plus/components/u-code/style.css +0 -26
  536. package/uview-plus/components/u-code/style.scss +0 -1
  537. package/uview-plus/components/u-collapse/style.css +0 -26
  538. package/uview-plus/components/u-collapse/style.scss +0 -1
  539. package/uview-plus/components/u-drag-sort/u-drag-sort.vue +0 -3
  540. package/uview-plus/components/u-gap/style.css +0 -26
  541. package/uview-plus/components/u-gap/style.scss +0 -1
  542. package/uview-plus/components/u-image-wu/props.js +0 -94
  543. package/uview-plus/components/u-index-item/style.css +0 -26
  544. package/uview-plus/components/u-index-item/style.scss +0 -1
  545. package/uview-plus/components/u-navbar-wu/props.js +0 -102
  546. package/uview-plus/components/u-navbar-wu/style.scss +0 -59
  547. package/uview-plus/components/u-picker-column/style.css +0 -26
  548. package/uview-plus/components/u-picker-column/style.scss +0 -1
  549. package/uview-plus/components/u-table/style.css +0 -26
  550. package/uview-plus/components/u-table/style.scss +0 -1
  551. package/uview-ui/LICENSE +0 -21
  552. package/uview-ui/README.md +0 -66
  553. package/uview-ui/components/u--form/u--form.vue +0 -1
  554. package/uview-ui/components/u--image/u--image.vue +0 -1
  555. package/uview-ui/components/u--input/u--input.vue +0 -1
  556. package/uview-ui/components/u--text/u--text.vue +0 -1
  557. package/uview-ui/components/u--textarea/u--textarea.vue +0 -1
  558. package/uview-ui/components/u-action-sheet/props.js +0 -55
  559. package/uview-ui/components/u-action-sheet/style.css +0 -68
  560. package/uview-ui/components/u-action-sheet/style.scss +0 -84
  561. package/uview-ui/components/u-action-sheet/u-action-sheet.vue +0 -158
  562. package/uview-ui/components/u-album/props.js +0 -60
  563. package/uview-ui/components/u-album/style.css +0 -41
  564. package/uview-ui/components/u-album/style.scss +0 -26
  565. package/uview-ui/components/u-album/u-album.vue +0 -203
  566. package/uview-ui/components/u-alert/props.js +0 -45
  567. package/uview-ui/components/u-alert/style.css +0 -101
  568. package/uview-ui/components/u-alert/style.scss +0 -113
  569. package/uview-ui/components/u-alert/u-alert.vue +0 -118
  570. package/uview-ui/components/u-avatar/props.js +0 -79
  571. package/uview-ui/components/u-avatar/style.css +0 -32
  572. package/uview-ui/components/u-avatar/style.scss +0 -26
  573. package/uview-ui/components/u-avatar/u-avatar.vue +0 -168
  574. package/uview-ui/components/u-avatar-group/props.js +0 -53
  575. package/uview-ui/components/u-avatar-group/style.css +0 -39
  576. package/uview-ui/components/u-avatar-group/style.scss +0 -28
  577. package/uview-ui/components/u-avatar-group/u-avatar-group.vue +0 -74
  578. package/uview-ui/components/u-back-top/props.js +0 -55
  579. package/uview-ui/components/u-back-top/style.css +0 -27
  580. package/uview-ui/components/u-back-top/style.scss +0 -19
  581. package/uview-ui/components/u-back-top/u-back-top.vue +0 -95
  582. package/uview-ui/components/u-badge/props.js +0 -73
  583. package/uview-ui/components/u-badge/style.css +0 -68
  584. package/uview-ui/components/u-badge/style.scss +0 -85
  585. package/uview-ui/components/u-badge/u-badge.vue +0 -96
  586. package/uview-ui/components/u-button/nvue-parse.scss +0 -27
  587. package/uview-ui/components/u-button/nvue.scss +0 -1
  588. package/uview-ui/components/u-button/props.js +0 -162
  589. package/uview-ui/components/u-button/style.css +0 -202
  590. package/uview-ui/components/u-button/style.scss +0 -196
  591. package/uview-ui/components/u-button/u-button.vue +0 -266
  592. package/uview-ui/components/u-button/vue-parse.scss +0 -42
  593. package/uview-ui/components/u-button/vue.scss +0 -80
  594. package/uview-ui/components/u-calendar/header.vue +0 -1
  595. package/uview-ui/components/u-calendar/month.vue +0 -476
  596. package/uview-ui/components/u-calendar/props.js +0 -145
  597. package/uview-ui/components/u-calendar/style.css +0 -14
  598. package/uview-ui/components/u-calendar/style.scss +0 -7
  599. package/uview-ui/components/u-calendar/u-calendar.vue +0 -325
  600. package/uview-ui/components/u-calendar/util.js +0 -85
  601. package/uview-ui/components/u-car-keyboard/props.js +0 -14
  602. package/uview-ui/components/u-car-keyboard/style.css +0 -80
  603. package/uview-ui/components/u-car-keyboard/style.scss +0 -90
  604. package/uview-ui/components/u-car-keyboard/u-car-keyboard.vue +0 -1
  605. package/uview-ui/components/u-cell/props.js +0 -111
  606. package/uview-ui/components/u-cell/style.css +0 -98
  607. package/uview-ui/components/u-cell/style.scss +0 -127
  608. package/uview-ui/components/u-cell/u-cell.vue +0 -125
  609. package/uview-ui/components/u-cell-group/props.js +0 -15
  610. package/uview-ui/components/u-cell-group/style.css +0 -25
  611. package/uview-ui/components/u-cell-group/style.scss +0 -24
  612. package/uview-ui/components/u-cell-group/u-cell-group.vue +0 -37
  613. package/uview-ui/components/u-checkbox/props.js +0 -70
  614. package/uview-ui/components/u-checkbox/style.css +0 -84
  615. package/uview-ui/components/u-checkbox/style.scss +0 -101
  616. package/uview-ui/components/u-checkbox/u-checkbox.vue +0 -239
  617. package/uview-ui/components/u-checkbox-group/props.js +0 -82
  618. package/uview-ui/components/u-checkbox-group/style.css +0 -23
  619. package/uview-ui/components/u-checkbox-group/style.scss +0 -11
  620. package/uview-ui/components/u-checkbox-group/u-checkbox-group.vue +0 -96
  621. package/uview-ui/components/u-circle-progress/props.js +0 -9
  622. package/uview-ui/components/u-circle-progress/style.css +0 -80
  623. package/uview-ui/components/u-circle-progress/style.scss +0 -86
  624. package/uview-ui/components/u-circle-progress/u-circle-progress.vue +0 -99
  625. package/uview-ui/components/u-code/props.js +0 -35
  626. package/uview-ui/components/u-code/style.css +0 -11
  627. package/uview-ui/components/u-code/style.scss +0 -1
  628. package/uview-ui/components/u-code/u-code.vue +0 -129
  629. package/uview-ui/components/u-code-input/props.js +0 -80
  630. package/uview-ui/components/u-code-input/style.css +0 -78
  631. package/uview-ui/components/u-code-input/style.scss +0 -75
  632. package/uview-ui/components/u-code-input/u-code-input.vue +0 -169
  633. package/uview-ui/components/u-col/props.js +0 -30
  634. package/uview-ui/components/u-col/style.css +0 -61
  635. package/uview-ui/components/u-col/style.scss +0 -67
  636. package/uview-ui/components/u-col/u-col.vue +0 -88
  637. package/uview-ui/components/u-collapse/props.js +0 -20
  638. package/uview-ui/components/u-collapse/style.css +0 -11
  639. package/uview-ui/components/u-collapse/style.scss +0 -1
  640. package/uview-ui/components/u-collapse/u-collapse.vue +0 -89
  641. package/uview-ui/components/u-collapse-item/props.js +0 -60
  642. package/uview-ui/components/u-collapse-item/style.css +0 -21
  643. package/uview-ui/components/u-collapse-item/style.scss +0 -15
  644. package/uview-ui/components/u-collapse-item/u-collapse-item.vue +0 -1
  645. package/uview-ui/components/u-column-notice/props.js +0 -56
  646. package/uview-ui/components/u-column-notice/style.css +0 -48
  647. package/uview-ui/components/u-column-notice/style.scss +0 -35
  648. package/uview-ui/components/u-column-notice/u-column-notice.vue +0 -95
  649. package/uview-ui/components/u-count-down/props.js +0 -25
  650. package/uview-ui/components/u-count-down/style.css +0 -16
  651. package/uview-ui/components/u-count-down/style.scss +0 -12
  652. package/uview-ui/components/u-count-down/u-count-down.vue +0 -1
  653. package/uview-ui/components/u-count-down/utils.js +0 -62
  654. package/uview-ui/components/u-count-to/props.js +0 -60
  655. package/uview-ui/components/u-count-to/style.css +0 -17
  656. package/uview-ui/components/u-count-to/style.scss +0 -8
  657. package/uview-ui/components/u-count-to/u-count-to.vue +0 -179
  658. package/uview-ui/components/u-datetime-picker/props.js +0 -121
  659. package/uview-ui/components/u-datetime-picker/style.css +0 -11
  660. package/uview-ui/components/u-datetime-picker/style.scss +0 -1
  661. package/uview-ui/components/u-datetime-picker/u-datetime-picker.vue +0 -376
  662. package/uview-ui/components/u-divider/props.js +0 -45
  663. package/uview-ui/components/u-divider/style.css +0 -28
  664. package/uview-ui/components/u-divider/style.scss +0 -23
  665. package/uview-ui/components/u-divider/u-divider.vue +0 -73
  666. package/uview-ui/components/u-dropdown/props.js +0 -65
  667. package/uview-ui/components/u-dropdown/style.css +0 -32
  668. package/uview-ui/components/u-dropdown/style.scss +0 -18
  669. package/uview-ui/components/u-dropdown/u-dropdown.vue +0 -1
  670. package/uview-ui/components/u-dropdown-item/props.js +0 -36
  671. package/uview-ui/components/u-dropdown-item/style.css +0 -32
  672. package/uview-ui/components/u-dropdown-item/style.scss +0 -18
  673. package/uview-ui/components/u-dropdown-item/u-dropdown-item.vue +0 -1
  674. package/uview-ui/components/u-empty/props.js +0 -60
  675. package/uview-ui/components/u-empty/style.css +0 -38
  676. package/uview-ui/components/u-empty/style.scss +0 -23
  677. package/uview-ui/components/u-form/props.js +0 -46
  678. package/uview-ui/components/u-form/u-form.vue +0 -1
  679. package/uview-ui/components/u-form-item/props.js +0 -49
  680. package/uview-ui/components/u-form-item/style.css +0 -95
  681. package/uview-ui/components/u-form-item/style.scss +0 -76
  682. package/uview-ui/components/u-form-item/u-form-item.vue +0 -159
  683. package/uview-ui/components/u-gap/props.js +0 -25
  684. package/uview-ui/components/u-gap/style.css +0 -11
  685. package/uview-ui/components/u-gap/style.scss +0 -1
  686. package/uview-ui/components/u-gap/u-gap.vue +0 -38
  687. package/uview-ui/components/u-grid/props.js +0 -20
  688. package/uview-ui/components/u-grid/style.css +0 -27
  689. package/uview-ui/components/u-grid/style.scss +0 -15
  690. package/uview-ui/components/u-grid/u-grid.vue +0 -79
  691. package/uview-ui/components/u-grid-item/props.js +0 -15
  692. package/uview-ui/components/u-grid-item/style.css +0 -41
  693. package/uview-ui/components/u-grid-item/style.scss +0 -44
  694. package/uview-ui/components/u-grid-item/u-grid-item.vue +0 -160
  695. package/uview-ui/components/u-icon/icons.js +0 -214
  696. package/uview-ui/components/u-icon/props.js +0 -90
  697. package/uview-ui/components/u-icon/style.css +0 -74
  698. package/uview-ui/components/u-icon/style.scss +0 -85
  699. package/uview-ui/components/u-icon/u-icon.vue +0 -132
  700. package/uview-ui/components/u-image/props.js +0 -85
  701. package/uview-ui/components/u-image/style.css +0 -35
  702. package/uview-ui/components/u-image/style.scss +0 -34
  703. package/uview-ui/components/u-image/u-image.vue +0 -182
  704. package/uview-ui/components/u-index-anchor/props.js +0 -30
  705. package/uview-ui/components/u-index-anchor/style.css +0 -29
  706. package/uview-ui/components/u-index-anchor/style.scss +0 -15
  707. package/uview-ui/components/u-index-anchor/u-index-anchor.vue +0 -78
  708. package/uview-ui/components/u-index-item/props.js +0 -3
  709. package/uview-ui/components/u-index-item/style.css +0 -11
  710. package/uview-ui/components/u-index-item/style.scss +0 -1
  711. package/uview-ui/components/u-index-item/u-index-item.vue +0 -81
  712. package/uview-ui/components/u-index-list/props.js +0 -30
  713. package/uview-ui/components/u-index-list/style.css +0 -61
  714. package/uview-ui/components/u-index-list/style.scss +0 -53
  715. package/uview-ui/components/u-index-list/u-index-list.vue +0 -367
  716. package/uview-ui/components/u-input/props.js +0 -188
  717. package/uview-ui/components/u-input/style.css +0 -78
  718. package/uview-ui/components/u-input/style.scss +0 -72
  719. package/uview-ui/components/u-input/u-input.vue +0 -260
  720. package/uview-ui/components/u-keyboard/props.js +0 -85
  721. package/uview-ui/components/u-keyboard/style.css +0 -37
  722. package/uview-ui/components/u-keyboard/style.scss +0 -31
  723. package/uview-ui/components/u-keyboard/u-keyboard.vue +0 -115
  724. package/uview-ui/components/u-line/props.js +0 -34
  725. package/uview-ui/components/u-line/style.css +0 -16
  726. package/uview-ui/components/u-line/style.scss +0 -7
  727. package/uview-ui/components/u-line/u-line.vue +0 -50
  728. package/uview-ui/components/u-line-progress/props.js +0 -29
  729. package/uview-ui/components/u-line-progress/style.css +0 -50
  730. package/uview-ui/components/u-line-progress/style.scss +0 -38
  731. package/uview-ui/components/u-line-progress/u-line-progress.vue +0 -99
  732. package/uview-ui/components/u-link/props.js +0 -40
  733. package/uview-ui/components/u-link/style.css +0 -22
  734. package/uview-ui/components/u-link/style.scss +0 -11
  735. package/uview-ui/components/u-link/u-link.vue +0 -68
  736. package/uview-ui/components/u-list/props.js +0 -76
  737. package/uview-ui/components/u-list/style.css +0 -17
  738. package/uview-ui/components/u-list/style.scss +0 -5
  739. package/uview-ui/components/u-list/u-list.vue +0 -152
  740. package/uview-ui/components/u-list-item/props.js +0 -10
  741. package/uview-ui/components/u-list-item/style.css +0 -11
  742. package/uview-ui/components/u-list-item/style.scss +0 -4
  743. package/uview-ui/components/u-list-item/u-list-item.vue +0 -105
  744. package/uview-ui/components/u-loading-icon/props.js +0 -60
  745. package/uview-ui/components/u-loading-icon/style.css +0 -148
  746. package/uview-ui/components/u-loading-icon/style.scss +0 -153
  747. package/uview-ui/components/u-loading-icon/u-loading-icon.vue +0 -1
  748. package/uview-ui/components/u-loading-page/props.js +0 -50
  749. package/uview-ui/components/u-loading-page/style.css +0 -44
  750. package/uview-ui/components/u-loading-page/style.scss +0 -37
  751. package/uview-ui/components/u-loading-page/u-loading-page.vue +0 -75
  752. package/uview-ui/components/u-loadmore/props.js +0 -95
  753. package/uview-ui/components/u-loadmore/style.css +0 -40
  754. package/uview-ui/components/u-loadmore/style.scss +0 -29
  755. package/uview-ui/components/u-loadmore/u-loadmore.vue +0 -101
  756. package/uview-ui/components/u-modal/props.js +0 -90
  757. package/uview-ui/components/u-modal/style.css +0 -70
  758. package/uview-ui/components/u-modal/style.scss +0 -65
  759. package/uview-ui/components/u-modal/u-modal.vue +0 -1
  760. package/uview-ui/components/u-navbar/props.js +0 -85
  761. package/uview-ui/components/u-navbar/style.css +0 -62
  762. package/uview-ui/components/u-navbar/style.scss +0 -58
  763. package/uview-ui/components/u-navbar/u-navbar.vue +0 -114
  764. package/uview-ui/components/u-no-network/props.js +0 -20
  765. package/uview-ui/components/u-no-network/style.css +0 -49
  766. package/uview-ui/components/u-no-network/style.scss +0 -36
  767. package/uview-ui/components/u-no-network/u-no-network.vue +0 -168
  768. package/uview-ui/components/u-notice-bar/props.js +0 -71
  769. package/uview-ui/components/u-notice-bar/style.css +0 -16
  770. package/uview-ui/components/u-notice-bar/style.scss +0 -7
  771. package/uview-ui/components/u-notify/props.js +0 -50
  772. package/uview-ui/components/u-notify/style.css +0 -39
  773. package/uview-ui/components/u-notify/style.scss +0 -40
  774. package/uview-ui/components/u-notify/u-notify.vue +0 -166
  775. package/uview-ui/components/u-number-box/props.js +0 -110
  776. package/uview-ui/components/u-number-box/style.css +0 -67
  777. package/uview-ui/components/u-number-box/style.scss +0 -70
  778. package/uview-ui/components/u-number-box/u-number-box.vue +0 -320
  779. package/uview-ui/components/u-number-keyboard/props.js +0 -20
  780. package/uview-ui/components/u-number-keyboard/style.css +0 -56
  781. package/uview-ui/components/u-number-keyboard/style.scss +0 -62
  782. package/uview-ui/components/u-number-keyboard/u-number-keyboard.vue +0 -118
  783. package/uview-ui/components/u-overlay/props.js +0 -25
  784. package/uview-ui/components/u-overlay/style.css +0 -19
  785. package/uview-ui/components/u-overlay/style.scss +0 -14
  786. package/uview-ui/components/u-overlay/u-overlay.vue +0 -48
  787. package/uview-ui/components/u-parse/node/node.vue +0 -1
  788. package/uview-ui/components/u-parse/parser.js +0 -1075
  789. package/uview-ui/components/u-parse/props.js +0 -46
  790. package/uview-ui/components/u-parse/u-parse.vue +0 -363
  791. package/uview-ui/components/u-picker/props.js +0 -80
  792. package/uview-ui/components/u-picker/style.css +0 -57
  793. package/uview-ui/components/u-picker/style.scss +0 -45
  794. package/uview-ui/components/u-picker/u-picker.vue +0 -231
  795. package/uview-ui/components/u-picker-column/props.js +0 -3
  796. package/uview-ui/components/u-picker-column/style.css +0 -11
  797. package/uview-ui/components/u-picker-column/style.scss +0 -1
  798. package/uview-ui/components/u-picker-column/u-picker-column.vue +0 -25
  799. package/uview-ui/components/u-popup/props.js +0 -80
  800. package/uview-ui/components/u-popup/style.css +0 -70
  801. package/uview-ui/components/u-popup/style.scss +0 -75
  802. package/uview-ui/components/u-popup/u-popup.vue +0 -1
  803. package/uview-ui/components/u-radio/props.js +0 -65
  804. package/uview-ui/components/u-radio/style.css +0 -84
  805. package/uview-ui/components/u-radio/style.scss +0 -100
  806. package/uview-ui/components/u-radio/u-radio.vue +0 -234
  807. package/uview-ui/components/u-radio-group/props.js +0 -86
  808. package/uview-ui/components/u-radio-group/style.css +0 -26
  809. package/uview-ui/components/u-radio-group/style.scss +0 -13
  810. package/uview-ui/components/u-radio-group/u-radio-group.vue +0 -97
  811. package/uview-ui/components/u-rate/props.js +0 -70
  812. package/uview-ui/components/u-rate/style.css +0 -43
  813. package/uview-ui/components/u-rate/style.scss +0 -38
  814. package/uview-ui/components/u-rate/u-rate.vue +0 -231
  815. package/uview-ui/components/u-read-more/props.js +0 -62
  816. package/uview-ui/components/u-read-more/style.css +0 -33
  817. package/uview-ui/components/u-read-more/style.scss +0 -22
  818. package/uview-ui/components/u-read-more/u-read-more.vue +0 -119
  819. package/uview-ui/components/u-row/props.js +0 -20
  820. package/uview-ui/components/u-row/style.css +0 -17
  821. package/uview-ui/components/u-row/style.scss +0 -5
  822. package/uview-ui/components/u-row/u-row.vue +0 -82
  823. package/uview-ui/components/u-row-notice/props.js +0 -40
  824. package/uview-ui/components/u-row-notice/style.css +0 -59
  825. package/uview-ui/components/u-row-notice/style.scss +0 -48
  826. package/uview-ui/components/u-row-notice/u-row-notice.vue +0 -256
  827. package/uview-ui/components/u-safe-bottom/props.js +0 -3
  828. package/uview-ui/components/u-safe-bottom/style.css +0 -5
  829. package/uview-ui/components/u-safe-bottom/style.scss +0 -5
  830. package/uview-ui/components/u-safe-bottom/u-safe-bottom.vue +0 -1
  831. package/uview-ui/components/u-scroll-list/nvue.js +0 -3
  832. package/uview-ui/components/u-scroll-list/other.js +0 -0
  833. package/uview-ui/components/u-scroll-list/props.js +0 -35
  834. package/uview-ui/components/u-scroll-list/scrollWxs.wxs +0 -50
  835. package/uview-ui/components/u-scroll-list/style.css +0 -45
  836. package/uview-ui/components/u-scroll-list/style.scss +0 -32
  837. package/uview-ui/components/u-scroll-list/u-scroll-list.vue +0 -191
  838. package/uview-ui/components/u-search/props.js +0 -119
  839. package/uview-ui/components/u-search/style.css +0 -92
  840. package/uview-ui/components/u-search/style.scss +0 -98
  841. package/uview-ui/components/u-search/u-search.vue +0 -204
  842. package/uview-ui/components/u-skeleton/props.js +0 -60
  843. package/uview-ui/components/u-skeleton/style.css +0 -62
  844. package/uview-ui/components/u-skeleton/style.scss +0 -59
  845. package/uview-ui/components/u-skeleton/u-skeleton.vue +0 -188
  846. package/uview-ui/components/u-slider/mpother.js +0 -113
  847. package/uview-ui/components/u-slider/mpwxs.js +0 -42
  848. package/uview-ui/components/u-slider/mpwxs.wxs +0 -121
  849. package/uview-ui/components/u-slider/nvue - /345/211/257/346/234/254.js" +0 -175
  850. package/uview-ui/components/u-slider/nvue.js +0 -190
  851. package/uview-ui/components/u-slider/props.js +0 -55
  852. package/uview-ui/components/u-slider/style.css +0 -11
  853. package/uview-ui/components/u-slider/style.scss +0 -1
  854. package/uview-ui/components/u-slider/u-slider.vue +0 -1
  855. package/uview-ui/components/u-status-bar/props.js +0 -9
  856. package/uview-ui/components/u-status-bar/style.css +0 -5
  857. package/uview-ui/components/u-status-bar/style.scss +0 -6
  858. package/uview-ui/components/u-status-bar/u-status-bar.vue +0 -37
  859. package/uview-ui/components/u-steps/props.js +0 -40
  860. package/uview-ui/components/u-steps/style.css +0 -24
  861. package/uview-ui/components/u-steps/style.scss +0 -14
  862. package/uview-ui/components/u-steps/u-steps.vue +0 -63
  863. package/uview-ui/components/u-steps-item/props.js +0 -25
  864. package/uview-ui/components/u-steps-item/style.css +0 -119
  865. package/uview-ui/components/u-steps-item/style.scss +0 -111
  866. package/uview-ui/components/u-steps-item/u-steps-item.vue +0 -225
  867. package/uview-ui/components/u-sticky/props.js +0 -41
  868. package/uview-ui/components/u-sticky/style.css +0 -5
  869. package/uview-ui/components/u-sticky/style.scss +0 -6
  870. package/uview-ui/components/u-sticky/u-sticky.vue +0 -201
  871. package/uview-ui/components/u-subsection/props.js +0 -50
  872. package/uview-ui/components/u-subsection/style.css +0 -95
  873. package/uview-ui/components/u-subsection/style.scss +0 -90
  874. package/uview-ui/components/u-subsection/u-subsection.vue +0 -188
  875. package/uview-ui/components/u-swipe-action/props.js +0 -10
  876. package/uview-ui/components/u-swipe-action/u-swipe-action.vue +0 -65
  877. package/uview-ui/components/u-swipe-action-item/index - backup.wxs +0 -256
  878. package/uview-ui/components/u-swipe-action-item/index.wxs +0 -225
  879. package/uview-ui/components/u-swipe-action-item/nvue - backup.js +0 -264
  880. package/uview-ui/components/u-swipe-action-item/nvue.js +0 -172
  881. package/uview-ui/components/u-swipe-action-item/props.js +0 -42
  882. package/uview-ui/components/u-swipe-action-item/style.css +0 -61
  883. package/uview-ui/components/u-swipe-action-item/style.scss +0 -45
  884. package/uview-ui/components/u-swipe-action-item/u-swipe-action-item.vue +0 -147
  885. package/uview-ui/components/u-swipe-action-item/wxs.js +0 -15
  886. package/uview-ui/components/u-swiper/props.js +0 -126
  887. package/uview-ui/components/u-swiper/style.css +0 -58
  888. package/uview-ui/components/u-swiper/style.scss +0 -50
  889. package/uview-ui/components/u-swiper/u-swiper.vue +0 -196
  890. package/uview-ui/components/u-swiper-indicator/props.js +0 -30
  891. package/uview-ui/components/u-swiper-indicator/style.css +0 -37
  892. package/uview-ui/components/u-swiper-indicator/style.scss +0 -31
  893. package/uview-ui/components/u-swiper-indicator/u-swiper-indicator.vue +0 -70
  894. package/uview-ui/components/u-switch/props.js +0 -55
  895. package/uview-ui/components/u-switch/style.css +0 -58
  896. package/uview-ui/components/u-switch/style.scss +0 -48
  897. package/uview-ui/components/u-switch/u-switch.vue +0 -121
  898. package/uview-ui/components/u-tabbar/props.js +0 -45
  899. package/uview-ui/components/u-tabbar/style.css +0 -39
  900. package/uview-ui/components/u-tabbar/style.scss +0 -24
  901. package/uview-ui/components/u-tabbar/u-tabbar.vue +0 -115
  902. package/uview-ui/components/u-tabbar-item/props.js +0 -35
  903. package/uview-ui/components/u-tabbar-item/style.css +0 -39
  904. package/uview-ui/components/u-tabbar-item/style.scss +0 -28
  905. package/uview-ui/components/u-tabbar-item/u-tabbar-item.vue +0 -101
  906. package/uview-ui/components/u-table/props.js +0 -3
  907. package/uview-ui/components/u-table/style.css +0 -11
  908. package/uview-ui/components/u-table/style.scss +0 -1
  909. package/uview-ui/components/u-table/u-table.vue +0 -24
  910. package/uview-ui/components/u-tabs/props.js +0 -65
  911. package/uview-ui/components/u-tabs/style.css +0 -69
  912. package/uview-ui/components/u-tabs/style.scss +0 -58
  913. package/uview-ui/components/u-tabs/u-tabs.vue +0 -303
  914. package/uview-ui/components/u-tabs-item/props.js +0 -3
  915. package/uview-ui/components/u-tabs-item/u-tabs-item.vue +0 -26
  916. package/uview-ui/components/u-tag/props.js +0 -85
  917. package/uview-ui/components/u-tag/style.css +0 -180
  918. package/uview-ui/components/u-tag/style.scss +0 -206
  919. package/uview-ui/components/u-tag/u-tag.vue +0 -1
  920. package/uview-ui/components/u-td/props.js +0 -3
  921. package/uview-ui/components/u-td/style.css +0 -11
  922. package/uview-ui/components/u-td/style.scss +0 -1
  923. package/uview-ui/components/u-td/u-td.vue +0 -26
  924. package/uview-ui/components/u-text/props.js +0 -111
  925. package/uview-ui/components/u-text/style.css +0 -65
  926. package/uview-ui/components/u-text/u-text.vue +0 -143
  927. package/uview-ui/components/u-text/value.js +0 -85
  928. package/uview-ui/components/u-textarea/props.js +0 -120
  929. package/uview-ui/components/u-textarea/style.css +0 -46
  930. package/uview-ui/components/u-textarea/style.scss +0 -39
  931. package/uview-ui/components/u-textarea/u-textarea.vue +0 -194
  932. package/uview-ui/components/u-toast/style.css +0 -78
  933. package/uview-ui/components/u-toast/style.scss +0 -108
  934. package/uview-ui/components/u-toast/u-toast.vue +0 -180
  935. package/uview-ui/components/u-toolbar/props.js +0 -35
  936. package/uview-ui/components/u-toolbar/style.css +0 -37
  937. package/uview-ui/components/u-toolbar/style.scss +0 -32
  938. package/uview-ui/components/u-toolbar/u-toolbar.vue +0 -62
  939. package/uview-ui/components/u-tooltip/props.js +0 -60
  940. package/uview-ui/components/u-tooltip/style.css +0 -75
  941. package/uview-ui/components/u-tooltip/style.scss +0 -63
  942. package/uview-ui/components/u-tooltip/u-tooltip.vue +0 -279
  943. package/uview-ui/components/u-tr/props.js +0 -3
  944. package/uview-ui/components/u-tr/style.css +0 -11
  945. package/uview-ui/components/u-tr/style.scss +0 -1
  946. package/uview-ui/components/u-tr/u-tr.vue +0 -26
  947. package/uview-ui/components/u-transition/nvue.ani-map.js +0 -1
  948. package/uview-ui/components/u-transition/props.js +0 -25
  949. package/uview-ui/components/u-transition/style.css +0 -109
  950. package/uview-ui/components/u-transition/style.scss +0 -9
  951. package/uview-ui/components/u-transition/transition.js +0 -157
  952. package/uview-ui/components/u-transition/u-transition.vue +0 -85
  953. package/uview-ui/components/u-transition/vue.ani-style.scss +0 -113
  954. package/uview-ui/components/u-upload/mixin.js +0 -21
  955. package/uview-ui/components/u-upload/props.js +0 -125
  956. package/uview-ui/components/u-upload/style.css +0 -167
  957. package/uview-ui/components/u-upload/style.scss +0 -206
  958. package/uview-ui/components/u-upload/u-upload.vue +0 -317
  959. package/uview-ui/components/u-upload/utils.js +0 -151
  960. package/uview-ui/components/uview-ui/uview-ui.vue +0 -8
  961. package/uview-ui/index.css +0 -352
  962. package/uview-ui/index.js +0 -78
  963. package/uview-ui/index.scss +0 -23
  964. package/uview-ui/libs/config/color.js +0 -17
  965. package/uview-ui/libs/config/config.js +0 -34
  966. package/uview-ui/libs/config/props/actionSheet.js +0 -25
  967. package/uview-ui/libs/config/props/album.js +0 -25
  968. package/uview-ui/libs/config/props/alert.js +0 -22
  969. package/uview-ui/libs/config/props/avatar.js +0 -28
  970. package/uview-ui/libs/config/props/avatarGroup.js +0 -23
  971. package/uview-ui/libs/config/props/backtop.js +0 -27
  972. package/uview-ui/libs/config/props/badge.js +0 -27
  973. package/uview-ui/libs/config/props/button.js +0 -42
  974. package/uview-ui/libs/config/props/calendar.js +0 -42
  975. package/uview-ui/libs/config/props/carKeyboard.js +0 -15
  976. package/uview-ui/libs/config/props/cell.js +0 -35
  977. package/uview-ui/libs/config/props/cellGroup.js +0 -17
  978. package/uview-ui/libs/config/props/checkbox.js +0 -27
  979. package/uview-ui/libs/config/props/checkboxGroup.js +0 -29
  980. package/uview-ui/libs/config/props/circleProgress.js +0 -15
  981. package/uview-ui/libs/config/props/code.js +0 -21
  982. package/uview-ui/libs/config/props/codeInput.js +0 -29
  983. package/uview-ui/libs/config/props/col.js +0 -19
  984. package/uview-ui/libs/config/props/collapse.js +0 -17
  985. package/uview-ui/libs/config/props/collapseItem.js +0 -25
  986. package/uview-ui/libs/config/props/columnNotice.js +0 -24
  987. package/uview-ui/libs/config/props/countDown.js +0 -18
  988. package/uview-ui/libs/config/props/countTo.js +0 -25
  989. package/uview-ui/libs/config/props/datetimePicker.js +0 -37
  990. package/uview-ui/libs/config/props/divider.js +0 -23
  991. package/uview-ui/libs/config/props/empty.js +0 -26
  992. package/uview-ui/libs/config/props/form.js +0 -22
  993. package/uview-ui/libs/config/props/formItem.js +0 -23
  994. package/uview-ui/libs/config/props/gap.js +0 -19
  995. package/uview-ui/libs/config/props/grid.js +0 -17
  996. package/uview-ui/libs/config/props/gridItem.js +0 -16
  997. package/uview-ui/libs/config/props/icon.js +0 -36
  998. package/uview-ui/libs/config/props/image.js +0 -30
  999. package/uview-ui/libs/config/props/indexAnchor.js +0 -19
  1000. package/uview-ui/libs/config/props/indexList.js +0 -19
  1001. package/uview-ui/libs/config/props/input.js +0 -48
  1002. package/uview-ui/libs/config/props/keyboard.js +0 -30
  1003. package/uview-ui/libs/config/props/line.js +0 -20
  1004. package/uview-ui/libs/config/props/lineProgress.js +0 -19
  1005. package/uview-ui/libs/config/props/link.js +0 -26
  1006. package/uview-ui/libs/config/props/list.js +0 -28
  1007. package/uview-ui/libs/config/props/listItem.js +0 -15
  1008. package/uview-ui/libs/config/props/loadingIcon.js +0 -30
  1009. package/uview-ui/libs/config/props/loadingPage.js +0 -23
  1010. package/uview-ui/libs/config/props/loadmore.js +0 -32
  1011. package/uview-ui/libs/config/props/modal.js +0 -31
  1012. package/uview-ui/libs/config/props/navbar.js +0 -32
  1013. package/uview-ui/libs/config/props/noNetwork.js +0 -18
  1014. package/uview-ui/libs/config/props/noticeBar.js +0 -27
  1015. package/uview-ui/libs/config/props/notify.js +0 -22
  1016. package/uview-ui/libs/config/props/numberBox.js +0 -35
  1017. package/uview-ui/libs/config/props/numberKeyboard.js +0 -17
  1018. package/uview-ui/libs/config/props/overlay.js +0 -18
  1019. package/uview-ui/libs/config/props/parse.js +0 -22
  1020. package/uview-ui/libs/config/props/picker.js +0 -29
  1021. package/uview-ui/libs/config/props/popup.js +0 -29
  1022. package/uview-ui/libs/config/props/radio.js +0 -27
  1023. package/uview-ui/libs/config/props/radioGroup.js +0 -30
  1024. package/uview-ui/libs/config/props/rate.js +0 -26
  1025. package/uview-ui/libs/config/props/readMore.js +0 -22
  1026. package/uview-ui/libs/config/props/row.js +0 -17
  1027. package/uview-ui/libs/config/props/rowNotice.js +0 -21
  1028. package/uview-ui/libs/config/props/scrollList.js +0 -20
  1029. package/uview-ui/libs/config/props/search.js +0 -37
  1030. package/uview-ui/libs/config/props/section.js +0 -24
  1031. package/uview-ui/libs/config/props/skeleton.js +0 -25
  1032. package/uview-ui/libs/config/props/slider.js +0 -25
  1033. package/uview-ui/libs/config/props/statusBar.js +0 -15
  1034. package/uview-ui/libs/config/props/steps.js +0 -21
  1035. package/uview-ui/libs/config/props/stepsItem.js +0 -18
  1036. package/uview-ui/libs/config/props/sticky.js +0 -20
  1037. package/uview-ui/libs/config/props/subsection.js +0 -23
  1038. package/uview-ui/libs/config/props/swipeAction.js +0 -15
  1039. package/uview-ui/libs/config/props/swipeActionItem.js +0 -21
  1040. package/uview-ui/libs/config/props/swiper.js +0 -39
  1041. package/uview-ui/libs/config/props/swipterIndicator.js +0 -19
  1042. package/uview-ui/libs/config/props/switch.js +0 -24
  1043. package/uview-ui/libs/config/props/tabbar.js +0 -22
  1044. package/uview-ui/libs/config/props/tabbarItem.js +0 -20
  1045. package/uview-ui/libs/config/props/tabs.js +0 -32
  1046. package/uview-ui/libs/config/props/tag.js +0 -29
  1047. package/uview-ui/libs/config/props/text.js +0 -38
  1048. package/uview-ui/libs/config/props/textarea.js +0 -36
  1049. package/uview-ui/libs/config/props/toast.js +0 -30
  1050. package/uview-ui/libs/config/props/toolbar.js +0 -21
  1051. package/uview-ui/libs/config/props/tooltip.js +0 -25
  1052. package/uview-ui/libs/config/props/transition.js +0 -18
  1053. package/uview-ui/libs/config/props/upload.js +0 -36
  1054. package/uview-ui/libs/config/props.js +0 -190
  1055. package/uview-ui/libs/config/zIndex.js +0 -20
  1056. package/uview-ui/libs/css/color-libcss.scss +0 -117
  1057. package/uview-ui/libs/css/color.scss +0 -155
  1058. package/uview-ui/libs/css/common-libcss.scss +0 -132
  1059. package/uview-ui/libs/css/common.scss +0 -97
  1060. package/uview-ui/libs/css/components-libcss.scss +0 -11
  1061. package/uview-ui/libs/css/components.scss +0 -15
  1062. package/uview-ui/libs/css/flex-libcss.scss +0 -169
  1063. package/uview-ui/libs/css/flex.scss +0 -257
  1064. package/uview-ui/libs/css/h5-libcss.scss +0 -0
  1065. package/uview-ui/libs/css/h5.scss +0 -0
  1066. package/uview-ui/libs/css/mixin-libcss.scss +0 -0
  1067. package/uview-ui/libs/css/mixin.scss +0 -8
  1068. package/uview-ui/libs/css/mp-libcss.scss +0 -0
  1069. package/uview-ui/libs/css/mp.scss +0 -0
  1070. package/uview-ui/libs/css/nvue-libcss.scss +0 -0
  1071. package/uview-ui/libs/css/nvue.scss +0 -0
  1072. package/uview-ui/libs/css/vue-libcss.scss +0 -35
  1073. package/uview-ui/libs/css/vue.scss +0 -27
  1074. package/uview-ui/libs/function/colorGradient.js +0 -134
  1075. package/uview-ui/libs/function/debounce.js +0 -29
  1076. package/uview-ui/libs/function/digit.js +0 -167
  1077. package/uview-ui/libs/function/platform.js +0 -75
  1078. package/uview-ui/libs/function/test.js +0 -288
  1079. package/uview-ui/libs/function/throttle.js +0 -30
  1080. package/uview-ui/libs/luch-request/adapters/index.js +0 -97
  1081. package/uview-ui/libs/luch-request/core/InterceptorManager.js +0 -50
  1082. package/uview-ui/libs/luch-request/core/Request.js +0 -198
  1083. package/uview-ui/libs/luch-request/core/buildFullPath.js +0 -20
  1084. package/uview-ui/libs/luch-request/core/defaults.js +0 -29
  1085. package/uview-ui/libs/luch-request/core/dispatchRequest.js +0 -3
  1086. package/uview-ui/libs/luch-request/core/mergeConfig.js +0 -103
  1087. package/uview-ui/libs/luch-request/core/settle.js +0 -16
  1088. package/uview-ui/libs/luch-request/helpers/buildURL.js +0 -69
  1089. package/uview-ui/libs/luch-request/helpers/combineURLs.js +0 -14
  1090. package/uview-ui/libs/luch-request/helpers/isAbsoluteURL.js +0 -14
  1091. package/uview-ui/libs/luch-request/index.d.ts +0 -116
  1092. package/uview-ui/libs/luch-request/index.js +0 -3
  1093. package/uview-ui/libs/luch-request/utils/clone.js +0 -264
  1094. package/uview-ui/libs/luch-request/utils.js +0 -131
  1095. package/uview-ui/libs/mixin/button.js +0 -13
  1096. package/uview-ui/libs/mixin/mixin.js +0 -161
  1097. package/uview-ui/libs/mixin/mpMixin.js +0 -8
  1098. package/uview-ui/libs/mixin/mpShare.js +0 -13
  1099. package/uview-ui/libs/mixin/openType.js +0 -25
  1100. package/uview-ui/libs/mixin/style.js +0 -252
  1101. package/uview-ui/libs/mixin/touch.js +0 -61
  1102. package/uview-ui/libs/util/async-validator.js +0 -1343
  1103. package/uview-ui/libs/util/calendar.js +0 -546
  1104. package/uview-ui/libs/util/dayjs.js +0 -308
  1105. package/uview-ui/libs/util/emitter.js +0 -51
  1106. package/uview-ui/libs/util/route.js +0 -124
  1107. package/uview-ui/package.json +0 -84
  1108. package/uview-ui/theme.css +0 -29
  1109. package/uview-ui/theme.scss +0 -44
  1110. /package/ui-fireui/{fui-actionsheet → components/fui-actionsheet}/fui-actionsheet.vue +0 -0
  1111. /package/ui-fireui/{fui-alert → components/fui-alert}/fui-alert.vue +0 -0
  1112. /package/ui-fireui/{fui-badge → components/fui-badge}/fui-badge.vue +0 -0
  1113. /package/ui-fireui/{fui-bottom-navigation → components/fui-bottom-navigation}/fui-bottom-navigation.vue +0 -0
  1114. /package/ui-fireui/{fui-bottom-popup → components/fui-bottom-popup}/fui-bottom-popup.vue +0 -0
  1115. /package/ui-fireui/{fui-bubble-popup → components/fui-bubble-popup}/fui-bubble-popup.vue +0 -0
  1116. /package/ui-fireui/{fui-button → components/fui-button}/fui-button.vue +0 -0
  1117. /package/ui-fireui/{fui-calendar → components/fui-calendar}/fui-calendar.js +0 -0
  1118. /package/ui-fireui/{fui-calendar → components/fui-calendar}/fui-calendar.vue +0 -0
  1119. /package/ui-fireui/{fui-card → components/fui-card}/fui-card.vue +0 -0
  1120. /package/ui-fireui/{fui-cascade-selection → components/fui-cascade-selection}/fui-cascade-selection.vue +0 -0
  1121. /package/ui-fireui/{fui-circular-progress → components/fui-circular-progress}/fui-circular-progress.vue +0 -0
  1122. /package/ui-fireui/{fui-collapse → components/fui-collapse}/fui-collapse.vue +0 -0
  1123. /package/ui-fireui/{fui-countdown → components/fui-countdown}/fui-countdown.vue +0 -0
  1124. /package/ui-fireui/{fui-datetime → components/fui-datetime}/fui-datetime.vue +0 -0
  1125. /package/ui-fireui/{fui-divider → components/fui-divider}/fui-divider.vue +0 -0
  1126. /package/ui-fireui/{fui-drawer → components/fui-drawer}/fui-drawer.vue +0 -0
  1127. /package/ui-fireui/{fui-dropdown-list → components/fui-dropdown-list}/fui-dropdown-list.vue +0 -0
  1128. /package/ui-fireui/{fui-fab → components/fui-fab}/fui-fab.vue +0 -0
  1129. /package/ui-fireui/{fui-footer → components/fui-footer}/fui-footer.vue +0 -0
  1130. /package/ui-fireui/{fui-grid → components/fui-grid}/fui-grid.vue +0 -0
  1131. /package/ui-fireui/{fui-grid-item → components/fui-grid-item}/fui-grid-item.vue +0 -0
  1132. /package/ui-fireui/{fui-icon → components/fui-icon}/fui-icon.vue +0 -0
  1133. /package/ui-fireui/{fui-image-cropper → components/fui-image-cropper}/fui-image-cropper.vue +0 -0
  1134. /package/ui-fireui/{fui-image-group → components/fui-image-group}/fui-image-group.vue +0 -0
  1135. /package/ui-fireui/{fui-keyboard → components/fui-keyboard}/fui-keyboard.vue +0 -0
  1136. /package/ui-fireui/{fui-keyboard-input → components/fui-keyboard-input}/fui-keyboard-input.vue +0 -0
  1137. /package/ui-fireui/{fui-list-cell → components/fui-list-cell}/fui-list-cell.vue +0 -0
  1138. /package/ui-fireui/{fui-list-view → components/fui-list-view}/fui-list-view.vue +0 -0
  1139. /package/ui-fireui/{fui-loading → components/fui-loading}/fui-loading.vue +0 -0
  1140. /package/ui-fireui/{fui-loadmore → components/fui-loadmore}/fui-loadmore.vue +0 -0
  1141. /package/ui-fireui/{fui-modal → components/fui-modal}/fui-modal.vue +0 -0
  1142. /package/ui-fireui/{fui-navigation-bar → components/fui-navigation-bar}/fui-navigation-bar.vue +0 -0
  1143. /package/ui-fireui/{fui-no-data → components/fui-no-data}/fui-no-data.vue +0 -0
  1144. /package/ui-fireui/{fui-nomore → components/fui-nomore}/fui-nomore.vue +0 -0
  1145. /package/ui-fireui/{fui-numberbox → components/fui-numberbox}/fui-numberbox.vue +0 -0
  1146. /package/ui-fireui/{fui-numberbox-border → components/fui-numberbox-border}/fui-numberbox-border.vue +0 -0
  1147. /package/ui-fireui/{fui-picture-cropper → components/fui-picture-cropper}/fui-picture-cropper.vue +0 -0
  1148. /package/ui-fireui/{fui-picture-cropper → components/fui-picture-cropper}/fui-picture-cropper.wxs +0 -0
  1149. /package/ui-fireui/{fui-rate → components/fui-rate}/fui-rate.vue +0 -0
  1150. /package/ui-fireui/{fui-round-progress → components/fui-round-progress}/fui-round-progress.vue +0 -0
  1151. /package/ui-fireui/{fui-scroll-top → components/fui-scroll-top}/fui-scroll-top.vue +0 -0
  1152. /package/ui-fireui/{fui-sharemodel → components/fui-sharemodel}/fui-sharemodel.vue +0 -0
  1153. /package/ui-fireui/{fui-skeleton → components/fui-skeleton}/fui-skeleton.vue +0 -0
  1154. /package/ui-fireui/{fui-steps → components/fui-steps}/fui-steps.vue +0 -0
  1155. /package/ui-fireui/{fui-sticky → components/fui-sticky}/fui-sticky.vue +0 -0
  1156. /package/ui-fireui/{fui-sticky-wxs → components/fui-sticky-wxs}/fui-sticky-wxs.vue +0 -0
  1157. /package/ui-fireui/{fui-sticky-wxs → components/fui-sticky-wxs}/fui-sticky.wxs +0 -0
  1158. /package/ui-fireui/{fui-swipe-action → components/fui-swipe-action}/fui-swipe-action.vue +0 -0
  1159. /package/ui-fireui/{fui-tabbar → components/fui-tabbar}/fui-tabbar.vue +0 -0
  1160. /package/ui-fireui/{fui-tabs → components/fui-tabs}/fui-tabs.vue +0 -0
  1161. /package/ui-fireui/{fui-tabs2 → components/fui-tabs2}/fui-tabs2.vue +0 -0
  1162. /package/ui-fireui/{fui-tag → components/fui-tag}/fui-tag.vue +0 -0
  1163. /package/ui-fireui/{fui-time-axis → components/fui-time-axis}/fui-time-axis.vue +0 -0
  1164. /package/ui-fireui/{fui-timeaxis-item → components/fui-timeaxis-item}/fui-timeaxis-item.vue +0 -0
  1165. /package/ui-fireui/{fui-tips → components/fui-tips}/fui-tips.vue +0 -0
  1166. /package/ui-fireui/{fui-toast → components/fui-toast}/fui-toast.vue +0 -0
  1167. /package/ui-fireui/{fui-top-dropdown → components/fui-top-dropdown}/fui-top-dropdown.vue +0 -0
  1168. /package/ui-fireui/{fui-upload → components/fui-upload}/fui-upload.vue +0 -0
  1169. /package/ui-fireui/{fui-uploadsamll → components/fui-uploadsamll}/fui-uploadsamll.vue +0 -0
  1170. /package/{uview-ui/changelog.md → uview-plus/changelog-v2.md} +0 -0
  1171. /package/uview-plus/components/{u-button-wu → u-button}/_doc/changelog.md +0 -0
  1172. /package/uview-plus/components/{u-button-wu → u-button}/_doc/package.json +0 -0
  1173. /package/uview-plus/components/{u-drag-sort → u-dragsort}/_doc/changelog.md +0 -0
  1174. /package/uview-plus/components/{u-drag-sort → u-dragsort}/_doc/package.json +0 -0
  1175. /package/uview-plus/components/{u-image-wu → u-image}/_doc/changelog.md +0 -0
  1176. /package/uview-plus/components/{u-image-wu → u-image}/_doc/package.json +0 -0
  1177. /package/{uview-ui/components/u-tooltip → uview-plus/libs/util}/clipboard.min.js +0 -0
@@ -1,1075 +0,0 @@
1
- 'use strict'
2
-
3
- /**
4
- * @fileoverview html 解析器
5
- */
6
- // 配置
7
- const config = {
8
- // 信任的标签(保持标签名不变)
9
- trustTags: makeMap('a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video'),
10
- // 块级标签(转为 div,其他的非信任标签转为 span)
11
- blockTags: makeMap('address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section'),
12
- // 要移除的标签
13
- ignoreTags: makeMap('area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr'),
14
- // 自闭合的标签
15
- voidTags: makeMap('area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr'),
16
- // html 实体
17
- entities: {
18
- lt: '<',
19
- gt: '>',
20
- quot: '"',
21
- apos: "'",
22
- ensp: '\u2002',
23
- emsp: '\u2003',
24
- nbsp: '\xA0',
25
- semi: ';',
26
- ndash: '–',
27
- mdash: '—',
28
- middot: '·',
29
- lsquo: '‘',
30
- rsquo: '’',
31
- ldquo: '“',
32
- rdquo: '”',
33
- bull: '•',
34
- hellip: '…'
35
- },
36
- // 默认的标签样式
37
- tagStyle: {
38
- // #ifndef APP-PLUS-NVUE
39
- address: 'font-style:italic',
40
- big: 'display:inline;font-size:1.2em',
41
- caption: 'display:table-caption;text-align:center',
42
- center: 'text-align:center',
43
- cite: 'font-style:italic',
44
- dd: 'margin-left:40px',
45
- mark: 'background-color:yellow',
46
- pre: 'font-family:monospace;white-space:pre',
47
- s: 'text-decoration:line-through',
48
- small: 'display:inline;font-size:0.8em',
49
- u: 'text-decoration:underline' // #endif
50
-
51
- }
52
- }
53
- const { windowWidth } = uni.getSystemInfoSync()
54
- const blankChar = makeMap(' ,\r,\n,\t,\f')
55
- let idIndex = 0 // #ifdef H5 || APP-PLUS
56
-
57
- config.ignoreTags.iframe = void 0
58
- config.trustTags.iframe = true
59
- config.ignoreTags.embed = void 0
60
- config.trustTags.embed = true // #endif
61
- // #ifdef APP-PLUS-NVUE
62
-
63
- config.ignoreTags.source = void 0
64
- config.ignoreTags.style = void 0 // #endif
65
-
66
- /**
67
- * @description 创建 map
68
- * @param {String} str 逗号分隔
69
- */
70
-
71
- function makeMap(str) {
72
- const map = Object.create(null)
73
- const list = str.split(',')
74
-
75
- for (let i = list.length; i--;) {
76
- map[list[i]] = true
77
- }
78
-
79
- return map
80
- }
81
- /**
82
- * @description 解码 html 实体
83
- * @param {String} str 要解码的字符串
84
- * @param {Boolean} amp 要不要解码 &amp;
85
- * @returns {String} 解码后的字符串
86
- */
87
-
88
- function decodeEntity(str, amp) {
89
- let i = str.indexOf('&')
90
-
91
- while (i != -1) {
92
- const j = str.indexOf(';', i + 3)
93
- let code = void 0
94
- if (j == -1) break
95
-
96
- if (str[i + 1] == '#') {
97
- // &#123; 形式的实体
98
- code = parseInt((str[i + 2] == 'x' ? '0' : '') + str.substring(i + 2, j))
99
- if (!isNaN(code)) str = str.substr(0, i) + String.fromCharCode(code) + str.substr(j + 1)
100
- } else {
101
- // &nbsp; 形式的实体
102
- code = str.substring(i + 1, j)
103
- if (config.entities[code] || code == 'amp' && amp) str = str.substr(0, i) + (config.entities[code] || '&') + str.substr(j + 1)
104
- }
105
-
106
- i = str.indexOf('&', i + 1)
107
- }
108
-
109
- return str
110
- }
111
- /**
112
- * @description html 解析器
113
- * @param {Object} vm 组件实例
114
- */
115
-
116
- function parser(vm) {
117
- this.options = vm || {}
118
- this.tagStyle = Object.assign(config.tagStyle, this.options.tagStyle)
119
- this.imgList = vm.imgList || []
120
- this.plugins = vm.plugins || []
121
- this.attrs = Object.create(null)
122
- this.stack = []
123
- this.nodes = []
124
- }
125
- /**
126
- * @description 执行解析
127
- * @param {String} content 要解析的文本
128
- */
129
-
130
- parser.prototype.parse = function (content) {
131
- // 插件处理
132
- for (let i = this.plugins.length; i--;) {
133
- if (this.plugins[i].onUpdate) content = this.plugins[i].onUpdate(content, config) || content
134
- }
135
-
136
- new lexer(this).parse(content) // 出栈未闭合的标签
137
-
138
- while (this.stack.length) {
139
- this.popNode()
140
- }
141
-
142
- return this.nodes
143
- }
144
- /**
145
- * @description 将标签暴露出来(不被 rich-text 包含)
146
- */
147
-
148
- parser.prototype.expose = function () {
149
- // #ifndef APP-PLUS-NVUE
150
- for (let i = this.stack.length; i--;) {
151
- const item = this.stack[i]
152
- if (item.name == 'a' || item.c) return
153
- item.c = 1
154
- } // #endif
155
- }
156
- /**
157
- * @description 处理插件
158
- * @param {Object} node 要处理的标签
159
- * @returns {Boolean} 是否要移除此标签
160
- */
161
-
162
- parser.prototype.hook = function (node) {
163
- for (let i = this.plugins.length; i--;) {
164
- if (this.plugins[i].onParse && this.plugins[i].onParse(node, this) == false) return false
165
- }
166
-
167
- return true
168
- }
169
- /**
170
- * @description 将链接拼接上主域名
171
- * @param {String} url 需要拼接的链接
172
- * @returns {String} 拼接后的链接
173
- */
174
-
175
- parser.prototype.getUrl = function (url) {
176
- const { domain } = this.options
177
-
178
- if (url[0] == '/') {
179
- // // 开头的补充协议名
180
- if (url[1] == '/') url = `${domain ? domain.split('://')[0] : 'http'}:${url}` // 否则补充整个域名
181
- else if (domain) url = domain + url
182
- } else if (domain && !url.includes('data:') && !url.includes('://')) url = `${domain}/${url}`
183
-
184
- return url
185
- }
186
- /**
187
- * @description 解析样式表
188
- * @param {Object} node 标签
189
- * @returns {Object}
190
- */
191
-
192
- parser.prototype.parseStyle = function (node) {
193
- const { attrs } = node
194
- const list = (this.tagStyle[node.name] || '').split(';').concat((attrs.style || '').split(';'))
195
- const styleObj = {}
196
- let tmp = ''
197
-
198
- if (attrs.id) {
199
- // 暴露锚点
200
- if (this.options.useAnchor) this.expose(); else if (node.name != 'img' && node.name != 'a' && node.name != 'video' && node.name != 'audio') attrs.id = void 0
201
- } // 转换 width 和 height 属性
202
-
203
- if (attrs.width) {
204
- styleObj.width = parseFloat(attrs.width) + (attrs.width.includes('%') ? '%' : 'px')
205
- attrs.width = void 0
206
- }
207
-
208
- if (attrs.height) {
209
- styleObj.height = parseFloat(attrs.height) + (attrs.height.includes('%') ? '%' : 'px')
210
- attrs.height = void 0
211
- }
212
-
213
- for (let i = 0, len = list.length; i < len; i++) {
214
- const info = list[i].split(':')
215
- if (info.length < 2) continue
216
- const key = info.shift().trim().toLowerCase()
217
- let value = info.join(':').trim() // 兼容性的 css 不压缩
218
-
219
- if (value[0] == '-' && value.lastIndexOf('-') > 0 || value.includes('safe')) tmp += ';'.concat(key, ':').concat(value) // 重复的样式进行覆盖
220
- else if (!styleObj[key] || value.includes('import') || !styleObj[key].includes('import')) {
221
- // 填充链接
222
- if (value.includes('url')) {
223
- let j = value.indexOf('(') + 1
224
-
225
- if (j) {
226
- while (value[j] == '"' || value[j] == "'" || blankChar[value[j]]) {
227
- j++
228
- }
229
-
230
- value = value.substr(0, j) + this.getUrl(value.substr(j))
231
- }
232
- } // 转换 rpx(rich-text 内部不支持 rpx)
233
- else if (value.includes('rpx')) {
234
- value = value.replace(/[0-9.]+\s*rpx/g, ($) => `${parseFloat($) * windowWidth / 750}px`)
235
- }
236
-
237
- styleObj[key] = value
238
- }
239
- }
240
-
241
- node.attrs.style = tmp
242
- return styleObj
243
- }
244
- /**
245
- * @description 解析到标签名
246
- * @param {String} name 标签名
247
- * @private
248
- */
249
-
250
- parser.prototype.onTagName = function (name) {
251
- this.tagName = this.xml ? name : name.toLowerCase()
252
- if (this.tagName == 'svg') this.xml = true // svg 标签内大小写敏感
253
- }
254
- /**
255
- * @description 解析到属性名
256
- * @param {String} name 属性名
257
- * @private
258
- */
259
-
260
- parser.prototype.onAttrName = function (name) {
261
- name = this.xml ? name : name.toLowerCase()
262
-
263
- if (name.substr(0, 5) == 'data-') {
264
- // data-src 自动转为 src
265
- if (name == 'data-src' && !this.attrs.src) this.attrName = 'src' // a 和 img 标签保留 data- 的属性,可以在 imgtap 和 linktap 事件中使用
266
- else if (this.tagName == 'img' || this.tagName == 'a') this.attrName = name // 剩余的移除以减小大小
267
- else this.attrName = void 0
268
- } else {
269
- this.attrName = name
270
- this.attrs[name] = 'T' // boolean 型属性缺省设置
271
- }
272
- }
273
- /**
274
- * @description 解析到属性值
275
- * @param {String} val 属性值
276
- * @private
277
- */
278
-
279
- parser.prototype.onAttrVal = function (val) {
280
- const name = this.attrName || '' // 部分属性进行实体解码
281
-
282
- if (name == 'style' || name == 'href') this.attrs[name] = decodeEntity(val, true) // 拼接主域名
283
- else if (name.includes('src')) this.attrs[name] = this.getUrl(decodeEntity(val, true)); else if (name) this.attrs[name] = val
284
- }
285
- /**
286
- * @description 解析到标签开始
287
- * @param {Boolean} selfClose 是否有自闭合标识 />
288
- * @private
289
- */
290
-
291
- parser.prototype.onOpenTag = function (selfClose) {
292
- // 拼装 node
293
- const node = Object.create(null)
294
- node.name = this.tagName
295
- node.attrs = this.attrs
296
- this.attrs = Object.create(null)
297
- const { attrs } = node
298
- const parent = this.stack[this.stack.length - 1]
299
- const siblings = parent ? parent.children : this.nodes
300
- const close = this.xml ? selfClose : config.voidTags[node.name] // 转换 embed 标签
301
-
302
- if (node.name == 'embed') {
303
- // #ifndef H5 || APP-PLUS
304
- const src = attrs.src || '' // 按照后缀名和 type 将 embed 转为 video 或 audio
305
-
306
- if (src.includes('.mp4') || src.includes('.3gp') || src.includes('.m3u8') || (attrs.type || '').includes('video')) node.name = 'video'; else if (src.includes('.mp3') || src.includes('.wav') || src.includes('.aac') || src.includes('.m4a') || (attrs.type || '').includes('audio')) node.name = 'audio'
307
- if (attrs.autostart) attrs.autoplay = 'T'
308
- attrs.controls = 'T' // #endif
309
- // #ifdef H5 || APP-PLUS
310
-
311
- this.expose() // #endif
312
- } // #ifndef APP-PLUS-NVUE
313
- // 处理音视频
314
-
315
- if (node.name == 'video' || node.name == 'audio') {
316
- // 设置 id 以便获取 context
317
- if (node.name == 'video' && !attrs.id) attrs.id = `v${idIndex++}` // 没有设置 controls 也没有设置 autoplay 的自动设置 controls
318
-
319
- if (!attrs.controls && !attrs.autoplay) attrs.controls = 'T' // 用数组存储所有可用的 source
320
-
321
- node.src = []
322
-
323
- if (attrs.src) {
324
- node.src.push(attrs.src)
325
- attrs.src = void 0
326
- }
327
-
328
- this.expose()
329
- } // #endif
330
- // 处理自闭合标签
331
-
332
- if (close) {
333
- if (!this.hook(node) || config.ignoreTags[node.name]) {
334
- // 通过 base 标签设置主域名
335
- if (node.name == 'base' && !this.options.domain) this.options.domain = attrs.href // #ifndef APP-PLUS-NVUE
336
- // 设置 source 标签(仅父节点为 video 或 audio 时有效)
337
- else if (node.name == 'source' && parent && (parent.name == 'video' || parent.name == 'audio') && attrs.src) parent.src.push(attrs.src) // #endif
338
-
339
- return
340
- } // 解析 style
341
-
342
- const styleObj = this.parseStyle(node) // 处理图片
343
-
344
- if (node.name == 'img') {
345
- if (attrs.src) {
346
- // 标记 webp
347
- if (attrs.src.includes('webp')) node.webp = 'T' // data url 图片如果没有设置 original-src 默认为不可预览的小图片
348
-
349
- if (attrs.src.includes('data:') && !attrs['original-src']) attrs.ignore = 'T'
350
-
351
- if (!attrs.ignore || node.webp || attrs.src.includes('cloud://')) {
352
- for (let i = this.stack.length; i--;) {
353
- const item = this.stack[i]
354
-
355
- if (item.name == 'a') {
356
- node.a = item.attrs
357
- break
358
- } // #ifndef H5 || APP-PLUS
359
-
360
- const style = item.attrs.style || ''
361
-
362
- if (style.includes('flex:') && !style.includes('flex:0') && !style.includes('flex: 0') && (!styleObj.width || !styleObj.width.includes('%'))) {
363
- styleObj.width = '100% !important'
364
- styleObj.height = ''
365
-
366
- for (let j = i + 1; j < this.stack.length; j++) {
367
- this.stack[j].attrs.style = (this.stack[j].attrs.style || '').replace('inline-', '')
368
- }
369
- } else if (style.includes('flex') && styleObj.width == '100%') {
370
- for (let _j = i + 1; _j < this.stack.length; _j++) {
371
- const _style = this.stack[_j].attrs.style || ''
372
-
373
- if (!_style.includes(';width') && !_style.includes(' width') && _style.indexOf('width') != 0) {
374
- styleObj.width = ''
375
- break
376
- }
377
- }
378
- } else if (style.includes('inline-block')) {
379
- if (styleObj.width && styleObj.width[styleObj.width.length - 1] == '%') {
380
- item.attrs.style += `;max-width:${styleObj.width}`
381
- styleObj.width = ''
382
- } else item.attrs.style += ';max-width:100%'
383
- } // #endif
384
-
385
- item.c = 1
386
- }
387
-
388
- attrs.i = this.imgList.length.toString()
389
-
390
- let _src = attrs['original-src'] || attrs.src // #ifndef H5 || MP-ALIPAY || APP-PLUS || MP-360
391
-
392
- if (this.imgList.includes(_src)) {
393
- // 如果有重复的链接则对域名进行随机大小写变换避免预览时错位
394
- let _i = _src.indexOf('://')
395
-
396
- if (_i != -1) {
397
- _i += 3
398
-
399
- let newSrc = _src.substr(0, _i)
400
-
401
- for (; _i < _src.length; _i++) {
402
- if (_src[_i] == '/') break
403
- newSrc += Math.random() > 0.5 ? _src[_i].toUpperCase() : _src[_i]
404
- }
405
-
406
- newSrc += _src.substr(_i)
407
- _src = newSrc
408
- }
409
- } // #endif
410
-
411
- this.imgList.push(_src) // #ifdef H5 || APP-PLUS
412
-
413
- if (this.options.lazyLoad) {
414
- attrs['data-src'] = attrs.src
415
- attrs.src = void 0
416
- } // #endif
417
- }
418
- }
419
-
420
- if (styleObj.display == 'inline') styleObj.display = '' // #ifndef APP-PLUS-NVUE
421
-
422
- if (attrs.ignore) {
423
- styleObj['max-width'] = styleObj['max-width'] || '100%'
424
- attrs.style += ';-webkit-touch-callout:none'
425
- } // #endif
426
- // 设置的宽度超出屏幕,为避免变形,高度转为自动
427
-
428
- if (parseInt(styleObj.width) > windowWidth) styleObj.height = void 0 // 记录是否设置了宽高
429
-
430
- if (styleObj.width) {
431
- if (styleObj.width.includes('auto')) styleObj.width = ''; else {
432
- node.w = 'T'
433
- if (styleObj.height && !styleObj.height.includes('auto')) node.h = 'T'
434
- }
435
- }
436
- } else if (node.name == 'svg') {
437
- siblings.push(node)
438
- this.stack.push(node)
439
- this.popNode()
440
- return
441
- }
442
-
443
- for (const key in styleObj) {
444
- if (styleObj[key]) attrs.style += ';'.concat(key, ':').concat(styleObj[key].replace(' !important', ''))
445
- }
446
-
447
- attrs.style = attrs.style.substr(1) || void 0
448
- } else {
449
- if (node.name == 'pre' || (attrs.style || '').includes('white-space') && attrs.style.includes('pre')) this.pre = node.pre = true
450
- node.children = []
451
- this.stack.push(node)
452
- } // 加入节点树
453
-
454
- siblings.push(node)
455
- }
456
- /**
457
- * @description 解析到标签结束
458
- * @param {String} name 标签名
459
- * @private
460
- */
461
-
462
- parser.prototype.onCloseTag = function (name) {
463
- // 依次出栈到匹配为止
464
- name = this.xml ? name : name.toLowerCase()
465
- let i
466
-
467
- for (i = this.stack.length; i--;) {
468
- if (this.stack[i].name == name) break
469
- }
470
-
471
- if (i != -1) {
472
- while (this.stack.length > i) {
473
- this.popNode()
474
- }
475
- } else if (name == 'p' || name == 'br') {
476
- const siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes
477
- siblings.push({
478
- name,
479
- attrs: {}
480
- })
481
- }
482
- }
483
- /**
484
- * @description 处理标签出栈
485
- * @private
486
- */
487
-
488
- parser.prototype.popNode = function () {
489
- const node = this.stack.pop()
490
- let { attrs } = node
491
- const { children } = node
492
- const parent = this.stack[this.stack.length - 1]
493
- const siblings = parent ? parent.children : this.nodes
494
-
495
- if (!this.hook(node) || config.ignoreTags[node.name]) {
496
- // 获取标题
497
- if (node.name == 'title' && children.length && children[0].type == 'text' && this.options.setTitle) {
498
- uni.setNavigationBarTitle({
499
- title: children[0].text
500
- })
501
- }
502
- siblings.pop()
503
- return
504
- }
505
-
506
- if (node.pre) {
507
- // 是否合并空白符标识
508
- node.pre = this.pre = void 0
509
-
510
- for (let i = this.stack.length; i--;) {
511
- if (this.stack[i].pre) this.pre = true
512
- }
513
- }
514
-
515
- const styleObj = {} // 转换 svg
516
-
517
- if (node.name == 'svg') {
518
- // #ifndef APP-PLUS-NVUE
519
- let src = ''
520
- const { style } = attrs
521
- attrs.style = ''
522
- attrs.xmlns = 'http://www.w3.org/2000/svg';
523
-
524
- (function traversal(node) {
525
- src += `<${node.name}`
526
-
527
- for (let item in node.attrs) {
528
- const val = node.attrs[item]
529
-
530
- if (val) {
531
- if (item == 'viewbox') item = 'viewBox'
532
- src += ' '.concat(item, '="').concat(val, '"')
533
- }
534
- }
535
-
536
- if (!node.children) src += '/>'; else {
537
- src += '>'
538
-
539
- for (let _i2 = 0; _i2 < node.children.length; _i2++) {
540
- traversal(node.children[_i2])
541
- }
542
-
543
- src += `</${node.name}>`
544
- }
545
- }(node))
546
-
547
- node.name = 'img'
548
- node.attrs = {
549
- src: `data:image/svg+xml;utf8,${src.replace(/#/g, '%23')}`,
550
- style,
551
- ignore: 'T'
552
- }
553
- node.children = void 0 // #endif
554
-
555
- this.xml = false
556
- return
557
- } // #ifndef APP-PLUS-NVUE
558
- // 转换 align 属性
559
-
560
- if (attrs.align) {
561
- if (node.name == 'table') {
562
- if (attrs.align == 'center') styleObj['margin-inline-start'] = styleObj['margin-inline-end'] = 'auto'; else styleObj.float = attrs.align
563
- } else styleObj['text-align'] = attrs.align
564
-
565
- attrs.align = void 0
566
- } // 转换 font 标签的属性
567
-
568
- if (node.name == 'font') {
569
- if (attrs.color) {
570
- styleObj.color = attrs.color
571
- attrs.color = void 0
572
- }
573
-
574
- if (attrs.face) {
575
- styleObj['font-family'] = attrs.face
576
- attrs.face = void 0
577
- }
578
-
579
- if (attrs.size) {
580
- let size = parseInt(attrs.size)
581
-
582
- if (!isNaN(size)) {
583
- if (size < 1) size = 1; else if (size > 7) size = 7
584
- styleObj['font-size'] = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'][size - 1]
585
- }
586
-
587
- attrs.size = void 0
588
- }
589
- } // #endif
590
- // 一些编辑器的自带 class
591
-
592
- if ((attrs.class || '').includes('align-center')) styleObj['text-align'] = 'center'
593
- Object.assign(styleObj, this.parseStyle(node))
594
-
595
- if (parseInt(styleObj.width) > windowWidth) {
596
- styleObj['max-width'] = '100%'
597
- styleObj['box-sizing'] = 'border-box'
598
- } // #ifndef APP-PLUS-NVUE
599
-
600
- if (config.blockTags[node.name]) node.name = 'div' // 未知标签转为 span,避免无法显示
601
- else if (!config.trustTags[node.name] && !this.xml) node.name = 'span'
602
- if (node.name == 'a' || node.name == 'ad' // #ifdef H5 || APP-PLUS
603
- || node.name == 'iframe' // #endif
604
- ) this.expose() // #ifdef APP-PLUS
605
- else if (node.name == 'video') {
606
- let str = '<video style="width:100%;height:100%"' // 空白图占位
607
-
608
- if (!attrs.poster && !attrs.autoplay) attrs.poster = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'/>"
609
-
610
- for (const item in attrs) {
611
- if (attrs[item]) str += ` ${item}="${attrs[item]}"`
612
- }
613
-
614
- if (this.options.pauseVideo) str += ' onplay="for(var e=document.getElementsByTagName(\'video\'),t=0;t<e.length;t++)e[t]!=this&&e[t].pause()"'
615
- str += '>'
616
-
617
- for (let _i3 = 0; _i3 < node.src.length; _i3++) {
618
- str += `<source src="${node.src[_i3]}">`
619
- }
620
-
621
- str += '</video>'
622
- node.html = str
623
- } // #endif
624
- // 列表处理
625
- else if ((node.name == 'ul' || node.name == 'ol') && node.c) {
626
- const types = {
627
- a: 'lower-alpha',
628
- A: 'upper-alpha',
629
- i: 'lower-roman',
630
- I: 'upper-roman'
631
- }
632
-
633
- if (types[attrs.type]) {
634
- attrs.style += `;list-style-type:${types[attrs.type]}`
635
- attrs.type = void 0
636
- }
637
-
638
- for (let _i4 = children.length; _i4--;) {
639
- if (children[_i4].name == 'li') children[_i4].c = 1
640
- }
641
- } // 表格处理
642
- else if (node.name == 'table') {
643
- // cellpadding、cellspacing、border 这几个常用表格属性需要通过转换实现
644
- let padding = parseFloat(attrs.cellpadding)
645
- let spacing = parseFloat(attrs.cellspacing)
646
- const border = parseFloat(attrs.border)
647
-
648
- if (node.c) {
649
- // padding 和 spacing 默认 2
650
- if (isNaN(padding)) padding = 2
651
- if (isNaN(spacing)) spacing = 2
652
- }
653
-
654
- if (border) attrs.style += `;border:${border}px solid gray`
655
-
656
- if (node.flag && node.c) {
657
- // 有 colspan 或 rowspan 且含有链接的表格通过 grid 布局实现
658
- styleObj.display = 'grid'
659
-
660
- if (spacing) {
661
- styleObj['grid-gap'] = `${spacing}px`
662
- styleObj.padding = `${spacing}px`
663
- } // 无间隔的情况下避免边框重叠
664
- else if (border) attrs.style += ';border-left:0;border-top:0'
665
-
666
- const width = []
667
- // 表格的列宽
668
- const trList = []
669
- // tr 列表
670
- const cells = []
671
- // 保存新的单元格
672
- const map = {}; // 被合并单元格占用的格子
673
-
674
- (function traversal(nodes) {
675
- for (let _i5 = 0; _i5 < nodes.length; _i5++) {
676
- if (nodes[_i5].name == 'tr') trList.push(nodes[_i5]); else traversal(nodes[_i5].children || [])
677
- }
678
- }(children))
679
-
680
- for (let row = 1; row <= trList.length; row++) {
681
- let col = 1
682
-
683
- for (let j = 0; j < trList[row - 1].children.length; j++, col++) {
684
- const td = trList[row - 1].children[j]
685
-
686
- if (td.name == 'td' || td.name == 'th') {
687
- // 这个格子被上面的单元格占用,则列号++
688
- while (map[`${row}.${col}`]) {
689
- col++
690
- }
691
-
692
- let _style2 = td.attrs.style || ''
693
- const start = _style2.indexOf('width') ? _style2.indexOf(';width') : 0 // 提取出 td 的宽度
694
-
695
- if (start != -1) {
696
- let end = _style2.indexOf(';', start + 6)
697
-
698
- if (end == -1) end = _style2.length
699
- if (!td.attrs.colspan) width[col] = _style2.substring(start ? start + 7 : 6, end)
700
- _style2 = _style2.substr(0, start) + _style2.substr(end)
701
- }
702
-
703
- _style2 += (border ? ';border:'.concat(border, 'px solid gray') + (spacing ? '' : ';border-right:0;border-bottom:0') : '') + (padding ? ';padding:'.concat(padding, 'px') : '') // 处理列合并
704
-
705
- if (td.attrs.colspan) {
706
- _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + parseInt(td.attrs.colspan))
707
- if (!td.attrs.rowspan) _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + 1)
708
- col += parseInt(td.attrs.colspan) - 1
709
- } // 处理行合并
710
-
711
- if (td.attrs.rowspan) {
712
- _style2 += ';grid-row-start:'.concat(row, ';grid-row-end:').concat(row + parseInt(td.attrs.rowspan))
713
- if (!td.attrs.colspan) _style2 += ';grid-column-start:'.concat(col, ';grid-column-end:').concat(col + 1) // 记录下方单元格被占用
714
-
715
- for (let k = 1; k < td.attrs.rowspan; k++) {
716
- map[`${row + k}.${col}`] = 1
717
- }
718
- }
719
-
720
- if (_style2) td.attrs.style = _style2
721
- cells.push(td)
722
- }
723
- }
724
-
725
- if (row == 1) {
726
- let temp = ''
727
-
728
- for (let _i6 = 1; _i6 < col; _i6++) {
729
- temp += `${width[_i6] ? width[_i6] : 'auto'} `
730
- }
731
-
732
- styleObj['grid-template-columns'] = temp
733
- }
734
- }
735
-
736
- node.children = cells
737
- } else {
738
- // 没有使用合并单元格的表格通过 table 布局实现
739
- if (node.c) styleObj.display = 'table'
740
- if (!isNaN(spacing)) styleObj['border-spacing'] = `${spacing}px`
741
-
742
- if (border || padding) {
743
- // 遍历
744
- (function traversal(nodes) {
745
- for (let _i7 = 0; _i7 < nodes.length; _i7++) {
746
- const _td = nodes[_i7]
747
-
748
- if (_td.name == 'th' || _td.name == 'td') {
749
- if (border) _td.attrs.style = 'border:'.concat(border, 'px solid gray;').concat(_td.attrs.style || '')
750
- if (padding) _td.attrs.style = 'padding:'.concat(padding, 'px;').concat(_td.attrs.style || '')
751
- } else if (_td.children) traversal(_td.children)
752
- }
753
- }(children))
754
- }
755
- } // 给表格添加一个单独的横向滚动层
756
-
757
- if (this.options.scrollTable && !(attrs.style || '').includes('inline')) {
758
- const table = { ...node }
759
- node.name = 'div'
760
- node.attrs = {
761
- style: 'overflow:auto'
762
- }
763
- node.children = [table]
764
- attrs = table.attrs
765
- }
766
- } else if ((node.name == 'td' || node.name == 'th') && (attrs.colspan || attrs.rowspan)) {
767
- for (let _i8 = this.stack.length; _i8--;) {
768
- if (this.stack[_i8].name == 'table') {
769
- this.stack[_i8].flag = 1 // 指示含有合并单元格
770
-
771
- break
772
- }
773
- }
774
- } // 转换 ruby
775
- else if (node.name == 'ruby') {
776
- node.name = 'span'
777
-
778
- for (let _i9 = 0; _i9 < children.length - 1; _i9++) {
779
- if (children[_i9].type == 'text' && children[_i9 + 1].name == 'rt') {
780
- children[_i9] = {
781
- name: 'div',
782
- attrs: {
783
- style: 'display:inline-block'
784
- },
785
- children: [{
786
- name: 'div',
787
- attrs: {
788
- style: 'font-size:50%;text-align:start'
789
- },
790
- children: children[_i9 + 1].children
791
- }, children[_i9]]
792
- }
793
- children.splice(_i9 + 1, 1)
794
- }
795
- }
796
- } else if (node.c) {
797
- node.c = 2
798
-
799
- for (let _i10 = node.children.length; _i10--;) {
800
- if (!node.children[_i10].c || node.children[_i10].name == 'table') node.c = 1
801
- }
802
- }
803
- if ((styleObj.display || '').includes('flex') && !node.c) {
804
- for (let _i11 = children.length; _i11--;) {
805
- const _item = children[_i11]
806
-
807
- if (_item.f) {
808
- _item.attrs.style = (_item.attrs.style || '') + _item.f
809
- _item.f = void 0
810
- }
811
- }
812
- } // flex 布局时部分样式需要提取到 rich-text 外层
813
-
814
- const flex = parent && (parent.attrs.style || '').includes('flex') // #ifdef MP-WEIXIN
815
- // 检查基础库版本 virtualHost 是否可用
816
- && !(node.c && wx.getNFCAdapter) // #endif
817
- // #ifndef MP-WEIXIN || MP-QQ || MP-BAIDU || MP-TOUTIAO
818
- && !node.c // #endif
819
-
820
- if (flex) node.f = ';max-width:100%' // #endif
821
-
822
- for (const key in styleObj) {
823
- if (styleObj[key]) {
824
- const val = ';'.concat(key, ':').concat(styleObj[key].replace(' !important', '')) // #ifndef APP-PLUS-NVUE
825
-
826
- if (flex && (key.includes('flex') && key != 'flex-direction' || key == 'align-self' || styleObj[key][0] == '-' || key == 'width' && val.includes('%'))) {
827
- node.f += val
828
- if (key == 'width') attrs.style += ';width:100%'
829
- } else // #endif
830
- { attrs.style += val }
831
- }
832
- }
833
-
834
- attrs.style = attrs.style.substr(1) || void 0
835
- }
836
- /**
837
- * @description 解析到文本
838
- * @param {String} text 文本内容
839
- */
840
-
841
- parser.prototype.onText = function (text) {
842
- if (!this.pre) {
843
- // 合并空白符
844
- let trim = ''
845
- let flag
846
-
847
- for (let i = 0, len = text.length; i < len; i++) {
848
- if (!blankChar[text[i]]) trim += text[i]; else {
849
- if (trim[trim.length - 1] != ' ') trim += ' '
850
- if (text[i] == '\n' && !flag) flag = true
851
- }
852
- } // 去除含有换行符的空串
853
-
854
- if (trim == ' ' && flag) return
855
- text = trim
856
- }
857
-
858
- const node = Object.create(null)
859
- node.type = 'text'
860
- node.text = decodeEntity(text)
861
-
862
- if (this.hook(node)) {
863
- const siblings = this.stack.length ? this.stack[this.stack.length - 1].children : this.nodes
864
- siblings.push(node)
865
- }
866
- }
867
- /**
868
- * @description html 词法分析器
869
- * @param {Object} handler 高层处理器
870
- */
871
-
872
- function lexer(handler) {
873
- this.handler = handler
874
- }
875
- /**
876
- * @description 执行解析
877
- * @param {String} content 要解析的文本
878
- */
879
-
880
- lexer.prototype.parse = function (content) {
881
- this.content = content || ''
882
- this.i = 0 // 标记解析位置
883
-
884
- this.start = 0 // 标记一个单词的开始位置
885
-
886
- this.state = this.text // 当前状态
887
-
888
- for (let len = this.content.length; this.i != -1 && this.i < len;) {
889
- this.state()
890
- }
891
- }
892
- /**
893
- * @description 检查标签是否闭合
894
- * @param {String} method 如果闭合要进行的操作
895
- * @returns {Boolean} 是否闭合
896
- * @private
897
- */
898
-
899
- lexer.prototype.checkClose = function (method) {
900
- const selfClose = this.content[this.i] == '/'
901
-
902
- if (this.content[this.i] == '>' || selfClose && this.content[this.i + 1] == '>') {
903
- if (method) this.handler[method](this.content.substring(this.start, this.i))
904
- this.i += selfClose ? 2 : 1
905
- this.start = this.i
906
- this.handler.onOpenTag(selfClose)
907
-
908
- if (this.handler.tagName == 'script') {
909
- this.i = this.content.indexOf('</', this.i)
910
-
911
- if (this.i != -1) {
912
- this.i += 2
913
- this.start = this.i
914
- }
915
-
916
- this.state = this.endTag
917
- } else this.state = this.text
918
-
919
- return true
920
- }
921
-
922
- return false
923
- }
924
- /**
925
- * @description 文本状态
926
- * @private
927
- */
928
-
929
- lexer.prototype.text = function () {
930
- this.i = this.content.indexOf('<', this.i) // 查找最近的标签
931
-
932
- if (this.i == -1) {
933
- // 没有标签了
934
- if (this.start < this.content.length) this.handler.onText(this.content.substring(this.start, this.content.length))
935
- return
936
- }
937
-
938
- const c = this.content[this.i + 1]
939
-
940
- if (c >= 'a' && c <= 'z' || c >= 'A' && c <= 'Z') {
941
- // 标签开头
942
- if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i))
943
- this.start = ++this.i
944
- this.state = this.tagName
945
- } else if (c == '/' || c == '!' || c == '?') {
946
- if (this.start != this.i) this.handler.onText(this.content.substring(this.start, this.i))
947
- const next = this.content[this.i + 2]
948
-
949
- if (c == '/' && (next >= 'a' && next <= 'z' || next >= 'A' && next <= 'Z')) {
950
- // 标签结尾
951
- this.i += 2
952
- this.start = this.i
953
- return this.state = this.endTag
954
- } // 处理注释
955
-
956
- let end = '-->'
957
- if (c != '!' || this.content[this.i + 2] != '-' || this.content[this.i + 3] != '-') end = '>'
958
- this.i = this.content.indexOf(end, this.i)
959
-
960
- if (this.i != -1) {
961
- this.i += end.length
962
- this.start = this.i
963
- }
964
- } else this.i++
965
- }
966
- /**
967
- * @description 标签名状态
968
- * @private
969
- */
970
-
971
- lexer.prototype.tagName = function () {
972
- if (blankChar[this.content[this.i]]) {
973
- // 解析到标签名
974
- this.handler.onTagName(this.content.substring(this.start, this.i))
975
-
976
- while (blankChar[this.content[++this.i]]) {
977
-
978
- }
979
-
980
- if (this.i < this.content.length && !this.checkClose()) {
981
- this.start = this.i
982
- this.state = this.attrName
983
- }
984
- } else if (!this.checkClose('onTagName')) this.i++
985
- }
986
- /**
987
- * @description 属性名状态
988
- * @private
989
- */
990
-
991
- lexer.prototype.attrName = function () {
992
- let c = this.content[this.i]
993
-
994
- if (blankChar[c] || c == '=') {
995
- // 解析到属性名
996
- this.handler.onAttrName(this.content.substring(this.start, this.i))
997
- let needVal = c == '='
998
- const len = this.content.length
999
-
1000
- while (++this.i < len) {
1001
- c = this.content[this.i]
1002
-
1003
- if (!blankChar[c]) {
1004
- if (this.checkClose()) return
1005
-
1006
- if (needVal) {
1007
- // 等号后遇到第一个非空字符
1008
- this.start = this.i
1009
- return this.state = this.attrVal
1010
- }
1011
-
1012
- if (this.content[this.i] == '=') needVal = true; else {
1013
- this.start = this.i
1014
- return this.state = this.attrName
1015
- }
1016
- }
1017
- }
1018
- } else if (!this.checkClose('onAttrName')) this.i++
1019
- }
1020
- /**
1021
- * @description 属性值状态
1022
- * @private
1023
- */
1024
-
1025
- lexer.prototype.attrVal = function () {
1026
- const c = this.content[this.i]
1027
- const len = this.content.length // 有冒号的属性
1028
-
1029
- if (c == '"' || c == "'") {
1030
- this.start = ++this.i
1031
- this.i = this.content.indexOf(c, this.i)
1032
- if (this.i == -1) return
1033
- this.handler.onAttrVal(this.content.substring(this.start, this.i))
1034
- } // 没有冒号的属性
1035
- else {
1036
- for (; this.i < len; this.i++) {
1037
- if (blankChar[this.content[this.i]]) {
1038
- this.handler.onAttrVal(this.content.substring(this.start, this.i))
1039
- break
1040
- } else if (this.checkClose('onAttrVal')) return
1041
- }
1042
- }
1043
-
1044
- while (blankChar[this.content[++this.i]]) {
1045
-
1046
- }
1047
-
1048
- if (this.i < len && !this.checkClose()) {
1049
- this.start = this.i
1050
- this.state = this.attrName
1051
- }
1052
- }
1053
- /**
1054
- * @description 结束标签状态
1055
- * @returns {String} 结束的标签名
1056
- * @private
1057
- */
1058
-
1059
- lexer.prototype.endTag = function () {
1060
- const c = this.content[this.i]
1061
-
1062
- if (blankChar[c] || c == '>' || c == '/') {
1063
- this.handler.onCloseTag(this.content.substring(this.start, this.i))
1064
-
1065
- if (c != '>') {
1066
- this.i = this.content.indexOf('>', this.i)
1067
- if (this.i == -1) return
1068
- }
1069
-
1070
- this.start = ++this.i
1071
- this.state = this.text
1072
- } else this.i++
1073
- }
1074
-
1075
- module.exports = parser