oxy-uni-ui 2.1.1 → 2.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (434) hide show
  1. package/attributes.json +1 -1
  2. package/components/common/AbortablePromise.ts +4 -0
  3. package/components/common/abstracts/variable.scss +185 -68
  4. package/components/common/base64.ts +6 -0
  5. package/components/common/clickoutside.ts +5 -0
  6. package/components/common/interceptor.ts +9 -0
  7. package/components/common/path.ts +4 -0
  8. package/components/common/props.ts +23 -0
  9. package/components/common/util.ts +18 -1
  10. package/components/composables/index.ts +2 -0
  11. package/components/composables/useCell.ts +8 -1
  12. package/components/composables/useChildren.ts +27 -1
  13. package/components/composables/useCountDown.ts +10 -1
  14. package/components/composables/useDynamicVirtualScroll.ts +9 -0
  15. package/components/composables/useGlobalLoading.ts +6 -0
  16. package/components/composables/useGlobalMessage.ts +6 -0
  17. package/components/composables/useGlobalToast.ts +6 -0
  18. package/components/composables/useLockScroll.ts +9 -0
  19. package/components/composables/useParent.ts +65 -14
  20. package/components/composables/usePopover.ts +9 -0
  21. package/components/composables/useQueue.ts +8 -0
  22. package/components/composables/useRaf.ts +10 -0
  23. package/components/composables/useSharedState.ts +284 -0
  24. package/components/composables/useTouch.ts +8 -0
  25. package/components/composables/useTranslate.ts +9 -0
  26. package/components/composables/useUpload.ts +83 -11
  27. package/components/composables/useVirtualScroll.ts +7 -0
  28. package/components/composables/useWindowResize.ts +9 -0
  29. package/components/oxy-action-sheet/index.scss +5 -5
  30. package/components/oxy-action-sheet/oxy-action-sheet.vue +11 -0
  31. package/components/oxy-backtop/index.scss +2 -2
  32. package/components/oxy-backtop/oxy-backtop.vue +2 -0
  33. package/components/oxy-badge/oxy-badge.vue +2 -0
  34. package/components/oxy-badge/types.ts +3 -0
  35. package/components/oxy-button/index.scss +13 -13
  36. package/components/oxy-button/oxy-button.vue +11 -0
  37. package/components/oxy-button/types.ts +3 -3
  38. package/components/oxy-calendar/index.scss +17 -17
  39. package/components/oxy-calendar/oxy-calendar.vue +31 -0
  40. package/components/oxy-calendar/types.ts +3 -0
  41. package/components/oxy-calendar-view/month/month.vue +2 -0
  42. package/components/oxy-calendar-view/monthPanel/month-panel.vue +3 -1
  43. package/components/oxy-calendar-view/monthPanel/types.ts +10 -7
  44. package/components/oxy-calendar-view/oxy-calendar-view.vue +2 -0
  45. package/components/oxy-calendar-view/types.ts +3 -1
  46. package/components/oxy-calendar-view/year/types.ts +33 -1
  47. package/components/oxy-calendar-view/year/year.vue +2 -0
  48. package/components/oxy-calendar-view/yearPanel/year-panel.vue +2 -0
  49. package/components/oxy-card/index.scss +1 -1
  50. package/components/oxy-card/oxy-card.vue +2 -0
  51. package/components/oxy-cell/index.scss +3 -1
  52. package/components/oxy-cell/oxy-cell.vue +6 -4
  53. package/components/oxy-cell-group/oxy-cell-group.vue +2 -0
  54. package/components/oxy-checkbox/index.scss +41 -6
  55. package/components/oxy-checkbox/oxy-checkbox.vue +22 -16
  56. package/components/oxy-checkbox/types.ts +9 -0
  57. package/components/oxy-checkbox-group/index.scss +1 -1
  58. package/components/oxy-checkbox-group/oxy-checkbox-group.vue +2 -0
  59. package/components/oxy-circle/oxy-circle.vue +2 -0
  60. package/components/oxy-col/oxy-col.vue +3 -1
  61. package/components/oxy-col-picker/index.scss +3 -3
  62. package/components/oxy-col-picker/oxy-col-picker.vue +17 -1
  63. package/components/oxy-col-picker/types.ts +3 -0
  64. package/components/oxy-collapse/index.scss +2 -2
  65. package/components/oxy-collapse/oxy-collapse.vue +9 -0
  66. package/components/oxy-collapse-item/oxy-collapse-item.vue +4 -2
  67. package/components/oxy-config-provider/oxy-config-provider.vue +18 -0
  68. package/components/oxy-config-provider/types.ts +18 -0
  69. package/components/oxy-corner/index.scss +50 -32
  70. package/components/oxy-corner/oxy-corner.vue +2 -0
  71. package/components/oxy-count-down/oxy-count-down.vue +2 -0
  72. package/components/oxy-count-to/oxy-count-to.vue +12 -1
  73. package/components/oxy-count-to/types.ts +14 -4
  74. package/components/oxy-curtain/index.scss +10 -9
  75. package/components/oxy-curtain/oxy-curtain.vue +2 -0
  76. package/components/oxy-date-strip/oxy-date-strip.vue +22 -1
  77. package/components/oxy-date-strip-item/index.scss +4 -4
  78. package/components/oxy-date-strip-item/oxy-date-strip-item.vue +2 -0
  79. package/components/oxy-datetime-picker/index.scss +3 -3
  80. package/components/oxy-datetime-picker/oxy-datetime-picker.vue +11 -1
  81. package/components/oxy-datetime-picker-view/oxy-datetime-picker-view.vue +2 -0
  82. package/components/oxy-divider/oxy-divider.vue +2 -0
  83. package/components/oxy-drop-menu/index.scss +2 -2
  84. package/components/oxy-drop-menu/oxy-drop-menu.vue +3 -0
  85. package/components/oxy-drop-menu-item/index.scss +1 -1
  86. package/components/oxy-drop-menu-item/oxy-drop-menu-item.vue +17 -9
  87. package/components/oxy-echarts/oxy-echarts.vue +2 -0
  88. package/components/oxy-fab/index.scss +1 -1
  89. package/components/oxy-fab/oxy-fab.vue +27 -0
  90. package/components/oxy-file-list/index.scss +9 -9
  91. package/components/oxy-file-list/oxy-file-list.vue +29 -17
  92. package/components/oxy-floating-panel/oxy-floating-panel.vue +34 -10
  93. package/components/oxy-footer/index.scss +7 -0
  94. package/components/oxy-footer/oxy-footer.vue +4 -2
  95. package/components/oxy-footer/types.ts +9 -6
  96. package/components/oxy-form/oxy-form.vue +13 -1
  97. package/components/oxy-form-item/oxy-form-item.vue +5 -3
  98. package/components/oxy-gap/oxy-gap.vue +2 -0
  99. package/components/oxy-global-loading/oxy-global-loading.vue +18 -5
  100. package/components/oxy-global-message/oxy-global-message.vue +30 -17
  101. package/components/oxy-global-toast/oxy-global-toast.vue +18 -5
  102. package/components/oxy-grid/oxy-grid.vue +6 -0
  103. package/components/oxy-grid-item/index.scss +1 -1
  104. package/components/oxy-grid-item/oxy-grid-item.vue +22 -20
  105. package/components/oxy-guidance/index.scss +9 -9
  106. package/components/oxy-guidance/oxy-guidance.vue +22 -16
  107. package/components/oxy-icon/oxy-icon.vue +2 -0
  108. package/components/oxy-icon/types.ts +3 -0
  109. package/components/oxy-image-preview/index.scss +75 -0
  110. package/components/oxy-image-preview/index.ts +56 -0
  111. package/components/oxy-image-preview/oxy-image-preview.vue +221 -0
  112. package/components/oxy-image-preview/types.ts +164 -0
  113. package/components/oxy-img/oxy-img.vue +2 -0
  114. package/components/oxy-img-cropper/index.scss +2 -2
  115. package/components/oxy-img-cropper/oxy-img-cropper.vue +6 -0
  116. package/components/oxy-img-lazy/oxy-img-lazy.vue +9 -0
  117. package/components/oxy-index-anchor/index.scss +1 -1
  118. package/components/oxy-index-anchor/oxy-index-anchor.vue +2 -2
  119. package/components/oxy-index-bar/index.scss +1 -1
  120. package/components/oxy-index-bar/oxy-index-bar.vue +18 -0
  121. package/components/oxy-input/index.scss +2 -1
  122. package/components/oxy-input/oxy-input.vue +18 -4
  123. package/components/oxy-input/types.ts +6 -0
  124. package/components/oxy-input-number/index.scss +3 -1
  125. package/components/oxy-input-number/oxy-input-number.vue +2 -0
  126. package/components/oxy-keyboard/index.scss +3 -3
  127. package/components/oxy-keyboard/key/index.vue +2 -0
  128. package/components/oxy-keyboard/oxy-keyboard.vue +11 -2
  129. package/components/oxy-link/index.scss +8 -4
  130. package/components/oxy-link/oxy-link.vue +9 -3
  131. package/components/oxy-link/types.ts +2 -2
  132. package/components/oxy-list/oxy-list.vue +2 -0
  133. package/components/oxy-list/types.ts +7 -0
  134. package/components/oxy-loading/oxy-loading.vue +6 -0
  135. package/components/oxy-loadmore/index.scss +1 -1
  136. package/components/oxy-loadmore/oxy-loadmore.vue +2 -0
  137. package/components/oxy-long-press-menu/index.scss +1 -1
  138. package/components/oxy-long-press-menu/oxy-long-press-menu.vue +42 -13
  139. package/components/oxy-message-box/index.scss +223 -36
  140. package/components/oxy-message-box/index.ts +49 -23
  141. package/components/oxy-message-box/oxy-message-box.vue +181 -56
  142. package/components/oxy-message-box/types.ts +60 -2
  143. package/components/oxy-navbar/index.scss +1 -1
  144. package/components/oxy-navbar/oxy-navbar.vue +9 -6
  145. package/components/oxy-navbar-capsule/oxy-navbar-capsule.vue +2 -0
  146. package/components/oxy-notice-bar/index.scss +1 -1
  147. package/components/oxy-notice-bar/oxy-notice-bar.vue +29 -0
  148. package/components/oxy-notify/index.ts +16 -12
  149. package/components/oxy-notify/oxy-notify.vue +11 -4
  150. package/components/oxy-overlay/oxy-overlay.vue +34 -2
  151. package/components/oxy-pagination/oxy-pagination.vue +2 -0
  152. package/components/oxy-password-input/oxy-password-input.vue +2 -0
  153. package/components/oxy-picker/index.scss +7 -7
  154. package/components/oxy-picker/oxy-picker.vue +11 -0
  155. package/components/oxy-picker-view/index.scss +1 -1
  156. package/components/oxy-picker-view/oxy-picker-view.vue +2 -0
  157. package/components/oxy-popover/index.scss +2 -2
  158. package/components/oxy-popover/oxy-popover.vue +4 -1
  159. package/components/oxy-popup/oxy-popup.vue +8 -0
  160. package/components/oxy-progress/index.scss +2 -2
  161. package/components/oxy-progress/oxy-progress.vue +7 -0
  162. package/components/oxy-qrcode/draw.ts +15 -1
  163. package/components/oxy-qrcode/oxy-qrcode.vue +10 -3
  164. package/components/oxy-radio/index.scss +8 -8
  165. package/components/oxy-radio/oxy-radio.vue +13 -11
  166. package/components/oxy-radio-group/index.scss +1 -1
  167. package/components/oxy-radio-group/oxy-radio-group.vue +2 -0
  168. package/components/oxy-rate/oxy-rate.vue +5 -0
  169. package/components/oxy-rate/types.ts +2 -2
  170. package/components/oxy-resize/oxy-resize.vue +12 -0
  171. package/components/oxy-rich-text/index.scss +9 -9
  172. package/components/oxy-rich-text/oxy-rich-text.vue +6 -0
  173. package/components/oxy-rich-text/types.ts +15 -0
  174. package/components/oxy-root-portal/oxy-root-portal.vue +23 -15
  175. package/components/oxy-row/oxy-row.vue +2 -0
  176. package/components/oxy-search/index.scss +3 -3
  177. package/components/oxy-search/oxy-search.vue +19 -0
  178. package/components/oxy-segmented/index.scss +4 -4
  179. package/components/oxy-segmented/oxy-segmented.vue +2 -0
  180. package/components/oxy-select/index.scss +25 -25
  181. package/components/oxy-select/oxy-select.vue +27 -0
  182. package/components/oxy-select/types.ts +3 -0
  183. package/components/oxy-select-picker/index.scss +5 -5
  184. package/components/oxy-select-picker/oxy-select-picker.vue +7 -0
  185. package/components/oxy-sidebar/oxy-sidebar.vue +2 -0
  186. package/components/oxy-sidebar-item/index.scss +3 -3
  187. package/components/oxy-sidebar-item/oxy-sidebar-item.vue +17 -31
  188. package/components/oxy-signature/oxy-signature.vue +17 -0
  189. package/components/oxy-skeleton/oxy-skeleton.vue +7 -1
  190. package/components/oxy-slide-verify/index.scss +95 -0
  191. package/components/oxy-slide-verify/oxy-slide-verify.vue +244 -0
  192. package/components/oxy-slide-verify/types.ts +98 -0
  193. package/components/oxy-slider/oxy-slider.vue +3 -0
  194. package/components/oxy-sort-button/index.scss +6 -5
  195. package/components/oxy-sort-button/oxy-sort-button.vue +6 -0
  196. package/components/oxy-splitter/index.scss +9 -0
  197. package/components/oxy-splitter/oxy-splitter.vue +23 -2
  198. package/components/oxy-splitter-panel/index.scss +7 -5
  199. package/components/oxy-splitter-panel/oxy-splitter-panel.vue +93 -89
  200. package/components/oxy-status-tip/index.scss +3 -3
  201. package/components/oxy-status-tip/oxy-status-tip.vue +2 -0
  202. package/components/oxy-step/index.scss +4 -4
  203. package/components/oxy-step/oxy-step.vue +15 -13
  204. package/components/oxy-steps/oxy-steps.vue +2 -0
  205. package/components/oxy-sticky/oxy-sticky.vue +5 -3
  206. package/components/oxy-stream-render/oxy-stream-render.vue +29 -0
  207. package/components/oxy-swipe-action/oxy-swipe-action.vue +8 -0
  208. package/components/oxy-swiper/oxy-swiper.vue +6 -0
  209. package/components/oxy-swiper-nav/index.scss +4 -4
  210. package/components/oxy-switch/index.scss +6 -3
  211. package/components/oxy-switch/oxy-switch.vue +10 -0
  212. package/components/oxy-tab/index.scss +1 -7
  213. package/components/oxy-tab/oxy-tab.vue +12 -10
  214. package/components/oxy-tabbar/oxy-tabbar.vue +5 -0
  215. package/components/oxy-tabbar-item/oxy-tabbar-item.vue +11 -9
  216. package/components/oxy-table/index.scss +1 -1
  217. package/components/oxy-table/oxy-table.vue +8 -0
  218. package/components/oxy-table/types.ts +3 -0
  219. package/components/oxy-table-col/oxy-table-col.vue +21 -19
  220. package/components/oxy-tabs/index.scss +11 -11
  221. package/components/oxy-tabs/oxy-tabs.vue +17 -0
  222. package/components/oxy-tag/index.scss +176 -17
  223. package/components/oxy-tag/oxy-tag.vue +29 -2
  224. package/components/oxy-tag/types.ts +16 -0
  225. package/components/oxy-text/oxy-text.vue +12 -1
  226. package/components/oxy-textarea/index.scss +3 -2
  227. package/components/oxy-textarea/oxy-textarea.vue +10 -4
  228. package/components/oxy-toast/index.ts +21 -20
  229. package/components/oxy-toast/oxy-toast.vue +30 -5
  230. package/components/oxy-toast/types.ts +20 -9
  231. package/components/oxy-tooltip/index.scss +1 -1
  232. package/components/oxy-tooltip/oxy-tooltip.vue +2 -0
  233. package/components/oxy-transition/index.scss +3 -1
  234. package/components/oxy-transition/oxy-transition.vue +14 -0
  235. package/components/oxy-tree/index.scss +3 -3
  236. package/components/oxy-tree/oxy-tree.vue +28 -5
  237. package/components/oxy-tree/types.ts +57 -1
  238. package/components/oxy-upload/index.scss +9 -9
  239. package/components/oxy-upload/oxy-upload.vue +5 -3
  240. package/components/oxy-verification-code/oxy-verification-code.vue +24 -0
  241. package/components/oxy-video-preview/index.scss +12 -7
  242. package/components/oxy-video-preview/index.ts +64 -0
  243. package/components/oxy-video-preview/oxy-video-preview.vue +102 -31
  244. package/components/oxy-video-preview/types.ts +54 -8
  245. package/components/oxy-virtual-scroll/index.scss +1 -1
  246. package/components/oxy-virtual-scroll/oxy-virtual-scroll.vue +2 -0
  247. package/components/oxy-voice-player/index.scss +64 -64
  248. package/components/oxy-voice-player/oxy-voice-player.vue +38 -10
  249. package/components/oxy-waterfall/oxy-waterfall.vue +13 -0
  250. package/components/oxy-waterfall/types.ts +7 -0
  251. package/components/oxy-waterfall-item/oxy-waterfall-item.vue +9 -0
  252. package/components/oxy-watermark/oxy-watermark.vue +2 -0
  253. package/dev-tools.ts +2 -0
  254. package/devTools/components/DevToolsOverlay.vue +56 -0
  255. package/devTools/components/DevToolsUiHost.vue +589 -0
  256. package/devTools/config.js +55 -0
  257. package/devTools/core/components/mpDevBubble.vue +174 -0
  258. package/devTools/core/libs/createH5Bubble.js +156 -0
  259. package/devTools/core/libs/devCache.js +151 -0
  260. package/devTools/core/libs/devOptions.js +163 -0
  261. package/devTools/core/libs/devUi.js +219 -0
  262. package/devTools/core/libs/drawView.js +140 -0
  263. package/devTools/core/libs/errorReport.js +64 -0
  264. package/devTools/core/libs/jsonCompress.js +334 -0
  265. package/devTools/core/libs/logReport.js +59 -0
  266. package/devTools/core/libs/pageLinkList.js +125 -0
  267. package/devTools/core/libs/timeFormat.js +94 -0
  268. package/devTools/core/proxy/console.js +430 -0
  269. package/devTools/core/proxy/index.js +36 -0
  270. package/devTools/core/proxy/request.js +495 -0
  271. package/devTools/core/proxy/storage.js +113 -0
  272. package/devTools/core/proxy/uniBus.js +153 -0
  273. package/devTools/core/proxy/uniListen.js +192 -0
  274. package/devTools/core/proxy/vueMixin.js +120 -0
  275. package/devTools/index.js +168 -0
  276. package/devTools/page/components/bottomTools.vue +1046 -0
  277. package/devTools/page/components/dialog/addStorage.vue +204 -0
  278. package/devTools/page/components/dialog/createDir.vue +366 -0
  279. package/devTools/page/components/dialog/editDialog.vue +192 -0
  280. package/devTools/page/components/dialog/routeDialog.vue +184 -0
  281. package/devTools/page/components/dialog/sendRequest.vue +603 -0
  282. package/devTools/page/components/dialog/textFileEditDialog.vue +391 -0
  283. package/devTools/page/components/libs/appDelDir.js +86 -0
  284. package/devTools/page/components/libs/dirReader.js +248 -0
  285. package/devTools/page/components/libs/fileSize.js +15 -0
  286. package/devTools/page/components/libs/getRuntimeInfo.js +134 -0
  287. package/devTools/page/components/listItem/consoleItem.vue +314 -0
  288. package/devTools/page/components/listItem/errorItem.vue +292 -0
  289. package/devTools/page/components/listItem/fileSysItem.vue +533 -0
  290. package/devTools/page/components/listItem/infoList.vue +100 -0
  291. package/devTools/page/components/listItem/jsRunnerItem.vue +255 -0
  292. package/devTools/page/components/listItem/logItem.vue +193 -0
  293. package/devTools/page/components/listItem/networkItem.vue +398 -0
  294. package/devTools/page/components/listItem/objectAnalysis.vue +651 -0
  295. package/devTools/page/components/listItem/pages.vue +319 -0
  296. package/devTools/page/components/listItem/routeItem.vue +153 -0
  297. package/devTools/page/components/listItem/setting.vue +734 -0
  298. package/devTools/page/components/listItem/storageList.vue +681 -0
  299. package/devTools/page/components/listItem/tools.vue +315 -0
  300. package/devTools/page/components/listItem/vuexList.vue +599 -0
  301. package/devTools/page/components/main.vue +1867 -0
  302. package/devTools/page/components/mixins/animationControl.js +91 -0
  303. package/devTools/page/components/mixins/mp.js +83 -0
  304. package/devTools/page/components/ui/btnTabs.vue +90 -0
  305. package/devTools/page/components/ui/codeHisPicker.vue +172 -0
  306. package/devTools/page/components/ui/h5Cell.vue +13 -0
  307. package/devTools/page/components/ui/menuBtn.vue +94 -0
  308. package/devTools/page/components/ui/mobileSwiperScroll.vue +74 -0
  309. package/devTools/page/components/ui/requestSpeedLimit.vue +52 -0
  310. package/devTools/page/components/ui/requestTimeoutMock.vue +55 -0
  311. package/devTools/page/components/ui/subTitleBar.vue +101 -0
  312. package/devTools/page/static/copy.png +0 -0
  313. package/devTools/page/static/delete.png +0 -0
  314. package/devTools/page/static/fileSys/AI.png +0 -0
  315. package/devTools/page/static/fileSys/DWG.png +0 -0
  316. package/devTools/page/static/fileSys/EXE.png +0 -0
  317. package/devTools/page/static/fileSys/GIF.png +0 -0
  318. package/devTools/page/static/fileSys/HTML.png +0 -0
  319. package/devTools/page/static/fileSys/PSD.png +0 -0
  320. package/devTools/page/static/fileSys/RVT.png +0 -0
  321. package/devTools/page/static/fileSys/SKP.png +0 -0
  322. package/devTools/page/static/fileSys/SVG.png +0 -0
  323. package/devTools/page/static/fileSys/excel.png +0 -0
  324. package/devTools/page/static/fileSys/pdf.png +0 -0
  325. package/devTools/page/static/fileSys/pptl.png +0 -0
  326. package/devTools/page/static/fileSys/shipin.png +0 -0
  327. package/devTools/page/static/fileSys/tupian.png +0 -0
  328. package/devTools/page/static/fileSys/txt.png +0 -0
  329. package/devTools/page/static/fileSys/weizhiwenjian.png +0 -0
  330. package/devTools/page/static/fileSys/wenjianjia.png +0 -0
  331. package/devTools/page/static/fileSys/word.png +0 -0
  332. package/devTools/page/static/fileSys/yasuo.png +0 -0
  333. package/devTools/page/static/fileSys/yinpin.png +0 -0
  334. package/devTools/page/static/fold.png +0 -0
  335. package/devTools/page/static/menu.png +0 -0
  336. package/devTools/page/static/refresh.png +0 -0
  337. package/devTools/page/static/unfold.png +0 -0
  338. package/devTools/tools.vue +25 -0
  339. package/devTools/type/devTools.d.ts +406 -0
  340. package/global.d.ts +2 -0
  341. package/index.ts +2 -0
  342. package/locale/lang/en-US.ts +51 -2
  343. package/locale/lang/zh-CN.ts +51 -2
  344. package/oxy-dev-tools/components/DevToolsUiHost.vue +555 -0
  345. package/oxy-dev-tools/config.js +61 -0
  346. package/oxy-dev-tools/core/components/mpDevBubble.vue +176 -0
  347. package/oxy-dev-tools/core/libs/createH5Bubble.js +156 -0
  348. package/oxy-dev-tools/core/libs/devCache.js +149 -0
  349. package/oxy-dev-tools/core/libs/devOptions.js +160 -0
  350. package/oxy-dev-tools/core/libs/devUi.js +219 -0
  351. package/oxy-dev-tools/core/libs/drawView.js +144 -0
  352. package/oxy-dev-tools/core/libs/errorReport.js +60 -0
  353. package/oxy-dev-tools/core/libs/jsonCompress.js +328 -0
  354. package/oxy-dev-tools/core/libs/logReport.js +55 -0
  355. package/oxy-dev-tools/core/libs/pageLinkList.js +121 -0
  356. package/oxy-dev-tools/core/libs/timeFormat.js +93 -0
  357. package/oxy-dev-tools/core/proxy/console.js +398 -0
  358. package/oxy-dev-tools/core/proxy/index.js +33 -0
  359. package/oxy-dev-tools/core/proxy/request.js +473 -0
  360. package/oxy-dev-tools/core/proxy/storage.js +96 -0
  361. package/oxy-dev-tools/core/proxy/uniBus.js +148 -0
  362. package/oxy-dev-tools/core/proxy/uniListen.js +190 -0
  363. package/oxy-dev-tools/core/proxy/vueMixin.js +115 -0
  364. package/oxy-dev-tools/index.ts +183 -0
  365. package/oxy-dev-tools/oxy-dev-tools.vue +62 -0
  366. package/oxy-dev-tools/page/components/bottomTools.vue +933 -0
  367. package/oxy-dev-tools/page/components/dialog/addStorage.vue +184 -0
  368. package/oxy-dev-tools/page/components/dialog/createDir.vue +352 -0
  369. package/oxy-dev-tools/page/components/dialog/editDialog.vue +178 -0
  370. package/oxy-dev-tools/page/components/dialog/routeDialog.vue +170 -0
  371. package/oxy-dev-tools/page/components/dialog/sendRequest.vue +530 -0
  372. package/oxy-dev-tools/page/components/dialog/textFileEditDialog.vue +379 -0
  373. package/oxy-dev-tools/page/components/libs/appDelDir.js +77 -0
  374. package/oxy-dev-tools/page/components/libs/dirReader.js +239 -0
  375. package/oxy-dev-tools/page/components/libs/fileSize.js +15 -0
  376. package/oxy-dev-tools/page/components/libs/getRuntimeInfo.js +132 -0
  377. package/oxy-dev-tools/page/components/listItem/consoleItem.vue +292 -0
  378. package/oxy-dev-tools/page/components/listItem/errorItem.vue +268 -0
  379. package/oxy-dev-tools/page/components/listItem/fileSysItem.vue +511 -0
  380. package/oxy-dev-tools/page/components/listItem/infoList.vue +89 -0
  381. package/oxy-dev-tools/page/components/listItem/jsRunnerItem.vue +236 -0
  382. package/oxy-dev-tools/page/components/listItem/logItem.vue +185 -0
  383. package/oxy-dev-tools/page/components/listItem/networkItem.vue +362 -0
  384. package/oxy-dev-tools/page/components/listItem/objectAnalysis.vue +642 -0
  385. package/oxy-dev-tools/page/components/listItem/pages.vue +285 -0
  386. package/oxy-dev-tools/page/components/listItem/routeItem.vue +140 -0
  387. package/oxy-dev-tools/page/components/listItem/setting.vue +687 -0
  388. package/oxy-dev-tools/page/components/listItem/storageList.vue +623 -0
  389. package/oxy-dev-tools/page/components/listItem/tools.vue +273 -0
  390. package/oxy-dev-tools/page/components/listItem/vuexList.vue +559 -0
  391. package/oxy-dev-tools/page/components/main.vue +1824 -0
  392. package/oxy-dev-tools/page/components/mixins/animationControl.js +80 -0
  393. package/oxy-dev-tools/page/components/mixins/mp.js +76 -0
  394. package/oxy-dev-tools/page/components/ui/btnTabs.vue +77 -0
  395. package/oxy-dev-tools/page/components/ui/codeHisPicker.vue +161 -0
  396. package/oxy-dev-tools/page/components/ui/h5Cell.vue +13 -0
  397. package/oxy-dev-tools/page/components/ui/menuBtn.vue +87 -0
  398. package/oxy-dev-tools/page/components/ui/mobileSwiperScroll.vue +71 -0
  399. package/oxy-dev-tools/page/components/ui/requestSpeedLimit.vue +47 -0
  400. package/oxy-dev-tools/page/components/ui/requestTimeoutMock.vue +50 -0
  401. package/oxy-dev-tools/page/components/ui/subTitleBar.vue +87 -0
  402. package/oxy-dev-tools/page/static/copy.png +0 -0
  403. package/oxy-dev-tools/page/static/delete.png +0 -0
  404. package/oxy-dev-tools/page/static/fileSys/AI.png +0 -0
  405. package/oxy-dev-tools/page/static/fileSys/DWG.png +0 -0
  406. package/oxy-dev-tools/page/static/fileSys/EXE.png +0 -0
  407. package/oxy-dev-tools/page/static/fileSys/GIF.png +0 -0
  408. package/oxy-dev-tools/page/static/fileSys/HTML.png +0 -0
  409. package/oxy-dev-tools/page/static/fileSys/PSD.png +0 -0
  410. package/oxy-dev-tools/page/static/fileSys/RVT.png +0 -0
  411. package/oxy-dev-tools/page/static/fileSys/SKP.png +0 -0
  412. package/oxy-dev-tools/page/static/fileSys/SVG.png +0 -0
  413. package/oxy-dev-tools/page/static/fileSys/excel.png +0 -0
  414. package/oxy-dev-tools/page/static/fileSys/pdf.png +0 -0
  415. package/oxy-dev-tools/page/static/fileSys/pptl.png +0 -0
  416. package/oxy-dev-tools/page/static/fileSys/shipin.png +0 -0
  417. package/oxy-dev-tools/page/static/fileSys/tupian.png +0 -0
  418. package/oxy-dev-tools/page/static/fileSys/txt.png +0 -0
  419. package/oxy-dev-tools/page/static/fileSys/weizhiwenjian.png +0 -0
  420. package/oxy-dev-tools/page/static/fileSys/wenjianjia.png +0 -0
  421. package/oxy-dev-tools/page/static/fileSys/word.png +0 -0
  422. package/oxy-dev-tools/page/static/fileSys/yasuo.png +0 -0
  423. package/oxy-dev-tools/page/static/fileSys/yinpin.png +0 -0
  424. package/oxy-dev-tools/page/static/fold.png +0 -0
  425. package/oxy-dev-tools/page/static/menu.png +0 -0
  426. package/oxy-dev-tools/page/static/refresh.png +0 -0
  427. package/oxy-dev-tools/page/static/unfold.png +0 -0
  428. package/oxy-dev-tools/tools.vue +22 -0
  429. package/oxy-dev-tools/type/devTools.d.ts +406 -0
  430. package/package.json +2 -2
  431. package/styles/all.scss +125 -0
  432. package/tags.json +1 -1
  433. package/vite-plugins/vite-plugin-host-class.ts +166 -0
  434. package/web-types.json +1 -1
@@ -0,0 +1,651 @@
1
+ <template>
2
+ <view
3
+ class="objectAnalysis"
4
+ :style="{
5
+ width: width + 'rpx',
6
+ }"
7
+ >
8
+ <view
9
+ class="objectTitle objectTitleActive"
10
+ @click="titleClick"
11
+ >
12
+ <image class="foldItem" v-if="isOpen" src="@/devTools/page/static/fold.png" />
13
+ <image class="foldItem" v-else src="@/devTools/page/static/unfold.png" />
14
+ <text
15
+ class="title"
16
+ :style="{
17
+ width: width - 50 + 'rpx',
18
+ }"
19
+ >
20
+ {{ title }}
21
+ </text>
22
+ </view>
23
+
24
+ <view
25
+ class="objectList"
26
+ v-if="isOpen"
27
+ :style="{
28
+ width: width + 'rpx',
29
+ }"
30
+ >
31
+ <view
32
+ v-for="(item, index) in list"
33
+ :key="item.i"
34
+ class="listItem"
35
+ :style="{
36
+ marginLeft: item.l + 'rpx',
37
+ }"
38
+ @click="rowClick(item, index)"
39
+ >
40
+ <template v-if="item.t == 'array' || item.t == 'object'">
41
+ <image class="foldItem" v-if="item.o" src="@/devTools/page/static/fold.png" />
42
+ <image class="foldItem" v-else src="@/devTools/page/static/unfold.png" />
43
+ </template>
44
+ <view
45
+ v-else
46
+ class="emptyFold"
47
+ ></view>
48
+ <text
49
+ class="objKey"
50
+ :class="'t-' + item.t"
51
+ :style="{
52
+ maxWidth: (width - item.l - 40) / 2 + 'rpx',
53
+ }"
54
+ >
55
+ {{ item.k }}:
56
+ </text>
57
+ <text
58
+ class="objValue"
59
+ :class="'t-' + item.t"
60
+ >
61
+ {{ item.vt }}
62
+ </text>
63
+ </view>
64
+ </view>
65
+ </view>
66
+ </template>
67
+ <script>
68
+ import jsonCompress from "../../../core/libs/jsonCompress";
69
+ function getType(v) {
70
+ return Object.prototype.toString.call(v).slice(8, -1).toLocaleLowerCase();
71
+ }
72
+ function randId() {
73
+ return Math.ceil(Math.random() * 1000000000000000);
74
+ }
75
+ export default {
76
+ props: {
77
+ /**
78
+ * 需要解析的对象数据
79
+ */
80
+ data: "",
81
+ /**
82
+ * 组件宽度 rpx
83
+ */
84
+ width: {
85
+ type: Number,
86
+ default: 610,
87
+ },
88
+ /**
89
+ * 是否默认展开第一层
90
+ */
91
+ isOpenFirst: {
92
+ type: Boolean,
93
+ default: false,
94
+ },
95
+ /**
96
+ * 是否展示完整的对象类型
97
+ */
98
+ showObjProto: {
99
+ type: Boolean,
100
+ default: false,
101
+ },
102
+ },
103
+ data() {
104
+ return {
105
+ /**
106
+ * 对象类型 array object map unknown
107
+ */
108
+ type: "unknown",
109
+ /**
110
+ * 对象标题
111
+ */
112
+ title: "",
113
+ /**
114
+ * 是否为开启节点状态
115
+ */
116
+ isOpen: false,
117
+ /**
118
+ * 渲染的列表
119
+ */
120
+ list: [
121
+ {
122
+ t: "text", // 类型
123
+ k: "键名", // key
124
+ v: "名称", // value
125
+ vt: "", //view层渲染的文字
126
+ i: "s", //节点id
127
+ p: "0", //父节点id
128
+ o: true, //是否开启下级
129
+ l: 0, // 距离左侧长度
130
+ d: null, //原对象
131
+ },
132
+ ],
133
+ };
134
+ },
135
+ mounted() {
136
+ let that = this;
137
+
138
+ try {
139
+ let { title } = that.getObjType(this.data);
140
+ that.list = [];
141
+ that.title = title;
142
+ if (that.isOpenFirst) {
143
+ that.titleClick();
144
+ }
145
+ } catch (error) {
146
+ console.log("objectAnalysis error", error);
147
+ }
148
+ },
149
+ methods: {
150
+ /**
151
+ * 标题点击事件
152
+ */
153
+ titleClick() {
154
+ if (this.isOpen) {
155
+ this.isOpen = false;
156
+ } else {
157
+ if (this.list.length == 0) {
158
+ this.analysisData(this.data);
159
+ }
160
+ this.isOpen = true;
161
+ }
162
+ },
163
+ /**
164
+ * 解析渲染数组
165
+ */
166
+ analysisData(data, pid = 0) {
167
+ let list = [];
168
+ let l = this.getParentNum(pid);
169
+
170
+ let keys = [];
171
+ keys = Reflect.ownKeys(data);
172
+
173
+ for (let i = 0; i < keys.length; i++) {
174
+ let key = keys[i];
175
+ let value = data[key];
176
+
177
+ if (key == "__proto__" || key == "__ob__") {
178
+ continue;
179
+ }
180
+
181
+ let o = {
182
+ t: typeof value,
183
+ k: key,
184
+ v: value,
185
+ vt: "",
186
+ i: randId(),
187
+ p: pid,
188
+ o: false,
189
+ l: l * 5,
190
+ d: value,
191
+ };
192
+
193
+ try {
194
+ let t = typeof value;
195
+ if (t == "function") {
196
+ try {
197
+ o.vt = value.toString();
198
+ } catch (error) {
199
+ if (error && error.message) {
200
+ o.vt = "[js:function]" + error.message;
201
+ } else {
202
+ o.vt = "[js:function]";
203
+ }
204
+ }
205
+ o.v = o.vt;
206
+ o.d = "";
207
+ } else if (t == "object") {
208
+ if (this.showObjProto) {
209
+ let str = "unknown";
210
+ if (value === null) {
211
+ o.t = "null";
212
+ str = "null";
213
+ } else if (Array.isArray(value)) {
214
+ o.t = "array";
215
+ let l = 0;
216
+ try {
217
+ l = value.length;
218
+ } catch (error) {}
219
+ str = Object.prototype.toString.call(value).slice(8, -1) + (l > 0 ? ` (${l})[...]` : " (0)[]");
220
+ } else {
221
+ o.t = "object";
222
+ let childList = [];
223
+ try {
224
+ childList = Reflect.ownKeys(value);
225
+ } catch (error) {}
226
+ str = Object.prototype.toString.call(value).slice(8, -1) + (childList.length == 0 ? " {}" : " {...}");
227
+ }
228
+ o.vt = str;
229
+ } else {
230
+ let type = getType(value);
231
+ let title = "";
232
+ try {
233
+ title = JSON.stringify(value);
234
+ if (title.length > 50) {
235
+ title = title.slice(0, 50) + "...";
236
+ }
237
+ if (type == "array" && value.length > 0) {
238
+ title = "(" + value.length + ")" + title;
239
+ }
240
+ } catch (error) {
241
+ title = "对象解析失败:" + error;
242
+ }
243
+ o.t = type;
244
+ o.vt = title;
245
+ o.v = value;
246
+ }
247
+ } else if (t == "symbol") {
248
+ o.t = "symbol";
249
+ try {
250
+ if (value.toString) {
251
+ o.vt = value.toString();
252
+ } else {
253
+ o.vt = "[js:symbol]";
254
+ }
255
+ } catch (error) {
256
+ let msg = "";
257
+ if (error && error.message) {
258
+ msg = error.message;
259
+ } else {
260
+ msg = "[js:symbol解析失败]";
261
+ }
262
+ o.vt = msg;
263
+ }
264
+ } else if (t == "string") {
265
+ if (value.length > 200) {
266
+ o.vt = `"` + value.slice(0, 200) + "..." + '"';
267
+ } else {
268
+ o.vt = `"${value}"`;
269
+ }
270
+ } else if (t == "number") {
271
+ if (Number.isFinite(value)) {
272
+ o.vt = value.toString();
273
+ } else {
274
+ o.vt = isNaN(value) ? "NaN" : "Infinity";
275
+ }
276
+ } else if (t == "boolean") {
277
+ o.vt = value ? "true" : "false";
278
+ } else if (t == "undefined") {
279
+ o.vt = "undefined";
280
+ } else {
281
+ o.vt = "[js:unknown type]";
282
+ }
283
+ } catch (error) {
284
+ let msg = "";
285
+ if (error && error.message) {
286
+ msg = error.message;
287
+ } else {
288
+ msg = "[js对象解析失败]";
289
+ }
290
+ o.vt = msg;
291
+ }
292
+ list.push(o);
293
+ }
294
+
295
+ if (pid == 0) {
296
+ this.list = list;
297
+ } else {
298
+ let faIndex = this.list.findIndex((x) => x.i == pid) + 1;
299
+ for (let i = 0; i < list.length; i++) {
300
+ this.list.splice(faIndex, 0, list[i]);
301
+ faIndex++;
302
+ }
303
+ }
304
+ },
305
+ /**
306
+ * 获取节点的父类数量
307
+ */
308
+ getParentNum(pid) {
309
+ let that = this;
310
+ let count = 0;
311
+ if (pid == 0) {
312
+ return count;
313
+ } else {
314
+ let p = Number(pid);
315
+ while (true) {
316
+ count = count + 1;
317
+ let fa = that.list.find((x) => x.i == p);
318
+ if (!fa || fa.i == 0) {
319
+ break;
320
+ } else {
321
+ p = Number(fa.p);
322
+ }
323
+ }
324
+ }
325
+ return count;
326
+ },
327
+ /**
328
+ * 行对象点击事件
329
+ */
330
+ rowClick(item, index) {
331
+ let that = this;
332
+ const nodeItem = that.list[index];
333
+ if (item.t == "object" || item.t == "array") {
334
+ if (item.o) {
335
+ nodeItem.o = false;
336
+ that.hideListByPid(item.i);
337
+ } else {
338
+ nodeItem.o = true;
339
+ that.analysisData(nodeItem.d, item.i);
340
+ }
341
+ } else if (item.t == "string" && item.v.length > 100) {
342
+ // 长文本点击时默认打开文本编辑器
343
+ uni.$emit("devTools_showTextEditDialog", {
344
+ title: item.k,
345
+ canSave: false,
346
+ isFileEdit: false,
347
+ value: item.v,
348
+ });
349
+ }
350
+ },
351
+ /**
352
+ * 根据父类id删除数组内元素
353
+ */
354
+ hideListByPid(pid = 0) {
355
+ let that = this;
356
+ while (true) {
357
+ let i = that.list.findIndex((x) => x.p == pid);
358
+ if (i == -1) {
359
+ break;
360
+ }
361
+ if (that.list[i].o) {
362
+ that.hideListByPid(that.list[i].i);
363
+ }
364
+ that.list.splice(i, 1);
365
+ }
366
+ },
367
+ /**
368
+ * 获取列表
369
+ */
370
+ getList() {
371
+ return this.list;
372
+ },
373
+ /**
374
+ * 获取父级key类别
375
+ */
376
+ getFaKeyList(itemId) {
377
+ let keyList = [];
378
+ let item = this.list.find((x) => x.i == itemId);
379
+ if (!item) return keyList;
380
+ keyList = [item.k];
381
+ if (item.p == 0) return keyList;
382
+
383
+ while (true) {
384
+ item = this.list.find((x) => x.i == item.p);
385
+ if (!item) break;
386
+ keyList.unshift(item.k);
387
+ if (item.p == 0) {
388
+ break;
389
+ }
390
+ }
391
+
392
+ return keyList;
393
+ },
394
+ /**
395
+ * 获取对象单行数据
396
+ */
397
+ getObjType(obj) {
398
+ try {
399
+ let title = "unknown";
400
+ let type = typeof obj;
401
+ let data = obj;
402
+ switch (typeof data) {
403
+ case "symbol":
404
+ title = "[js:symbol]";
405
+ try {
406
+ if (data.toString) {
407
+ title = data.toString();
408
+ } else {
409
+ title = "[js:symbol]";
410
+ }
411
+ } catch (error) {
412
+ let msg = "";
413
+ if (error && error.message) {
414
+ msg = error.message;
415
+ } else {
416
+ msg = "[js:symbol解析失败]";
417
+ }
418
+ title = msg;
419
+ }
420
+ break;
421
+ case "string":
422
+ title = data;
423
+ break;
424
+ case "object":
425
+ if (this.showObjProto) {
426
+ try {
427
+ let objType = Object.prototype.toString.call(data).slice(8, -1);
428
+ title = {};
429
+ let keys = Reflect.ownKeys(data);
430
+
431
+ for (let i = 0; i < keys.length; i++) {
432
+ let key = keys[i];
433
+ if (key == "__proto__" || key == "__ob__") {
434
+ continue;
435
+ }
436
+ try {
437
+ let value = data[key];
438
+ let t = typeof value;
439
+ if (t == "function") {
440
+ continue;
441
+ }
442
+ if (t == "object") {
443
+ let str = "unknown";
444
+ if (value === null) {
445
+ str = "null";
446
+ } else if (Array.isArray(value)) {
447
+ str = Object.prototype.toString.call(value).slice(8, -1) + " [...]";
448
+ } else {
449
+ str = Object.prototype.toString.call(value).slice(8, -1) + " {...}";
450
+ }
451
+ title[key] = str;
452
+ continue;
453
+ }
454
+ title[key] = data[key];
455
+ } catch (error) {
456
+ if (error && error.message) {
457
+ title[key] = error.message;
458
+ } else {
459
+ title[key] = "[js对象解析失败]";
460
+ }
461
+ }
462
+ }
463
+
464
+ for (let i = 0; i < keys.length; i++) {
465
+ let key = keys[i];
466
+ try {
467
+ let value = data[key];
468
+ let t = typeof value;
469
+ if (t == "function") {
470
+ try {
471
+ title[key] = value.toString();
472
+ } catch (error) {
473
+ if (error && error.message) {
474
+ title[key] = "[js:function]" + error.message;
475
+ } else {
476
+ title[key] = "[js:function]";
477
+ }
478
+ }
479
+ }
480
+ } catch (error) {
481
+ if (error && error.message) {
482
+ title[key] = error.message;
483
+ }
484
+ }
485
+ }
486
+ if (title.toJSON) {
487
+ title.toJSON = "[js:function]";
488
+ }
489
+
490
+ if (objType == "Array") {
491
+ title = objType + " " + jsonCompress.safeJsonStringify(title);
492
+ } else {
493
+ title = objType + " " + jsonCompress.safeJsonStringify(title);
494
+ }
495
+
496
+ if (Array.isArray(data)) {
497
+ type = "array";
498
+ } else {
499
+ type = "object";
500
+ }
501
+ } catch (error) {
502
+ let msg = "unknown";
503
+ if (error && error.message) {
504
+ msg = error.message;
505
+ }
506
+ title = "对象解析出错:" + msg;
507
+ }
508
+ } else {
509
+ try {
510
+ title = JSON.stringify(data);
511
+ if (title.length > 50) {
512
+ title = title.slice(0, 50) + "...";
513
+ }
514
+ } catch (error) {
515
+ title = "对象解析失败:" + error;
516
+ }
517
+ }
518
+
519
+ break;
520
+ case "function":
521
+ try {
522
+ title = data.toString();
523
+ } catch (error) {
524
+ title = "[js:function]";
525
+ }
526
+ break;
527
+ default:
528
+ title = data;
529
+ break;
530
+ }
531
+ return { title, type };
532
+ } catch (error) {
533
+ console.log("getObjType error", error);
534
+ return {
535
+ title: "unknown",
536
+ type: "unknown",
537
+ };
538
+ }
539
+ },
540
+ },
541
+ };
542
+ </script>
543
+ <style lang="scss" scoped>
544
+ .objectAnalysis {
545
+ display: flex;
546
+ flex-direction: column;
547
+ .objectTitle {
548
+ min-height: 40rpx;
549
+ padding: 4rpx 0;
550
+ display: flex;
551
+ flex-direction: row;
552
+ align-items: center;
553
+ .title {
554
+ font-size: 22rpx;
555
+ line-height: 32rpx;
556
+ color: #1e3a8a;
557
+ lines: 1;
558
+ overflow: hidden;
559
+ /* #ifdef H5 */
560
+ // 限制行数
561
+ display: -webkit-box;
562
+ -webkit-box-orient: vertical;
563
+ -webkit-line-clamp: 1;
564
+ /* #endif */
565
+ }
566
+ }
567
+ .objectTitleActive:active {
568
+ background-color: rgba(59, 130, 246, 0.08);
569
+ border-radius: 10rpx;
570
+ }
571
+ .objectList {
572
+ background-color: #f8fafc;
573
+ border: 1px solid rgba(148, 163, 184, 0.2);
574
+ border-radius: 12rpx;
575
+ /* #ifndef APP-PLUS */
576
+ min-height: 50rpx;
577
+ /* #endif */
578
+ padding: 10rpx 12rpx;
579
+ .listItem:active {
580
+ background-color: rgba(59, 130, 246, 0.08);
581
+ border-radius: 8rpx;
582
+ }
583
+ .listItem {
584
+ min-height: 36rpx;
585
+ display: flex;
586
+ flex-direction: row;
587
+ align-items: center;
588
+ .emptyFold {
589
+ width: 20rpx;
590
+ height: 20rpx;
591
+ margin-right: 6rpx;
592
+ }
593
+ .objKey {
594
+ font-size: 22rpx;
595
+ line-height: 32rpx;
596
+ color: #7c3aed;
597
+ lines: 1;
598
+ overflow: hidden;
599
+ /* #ifdef H5 */
600
+ // 限制行数
601
+ display: -webkit-box;
602
+ -webkit-box-orient: vertical;
603
+ -webkit-line-clamp: 1;
604
+ /* #endif */
605
+ }
606
+ .objValue {
607
+ line-height: 32rpx;
608
+ margin-left: 5rpx;
609
+ color: #333;
610
+ font-size: 22rpx;
611
+ lines: 1;
612
+ overflow: hidden;
613
+ /* #ifdef H5 */
614
+ // 限制行数
615
+ display: -webkit-box;
616
+ -webkit-box-orient: vertical;
617
+ -webkit-line-clamp: 1;
618
+ /* #endif */
619
+ &.t-number {
620
+ color: rgb(8, 66, 160);
621
+ }
622
+ &.t-boolean {
623
+ color: rgb(133, 2, 255);
624
+ }
625
+ &.t-string {
626
+ color: rgb(227, 54, 46);
627
+ }
628
+ &.t-array {
629
+ color: rgba(0, 0, 0, 0.5);
630
+ }
631
+ &.t-object {
632
+ color: rgba(0, 0, 0, 0.5);
633
+ }
634
+ &.t-undefined {
635
+ color: rgba(0, 0, 0, 0.2);
636
+ }
637
+ &.t-null {
638
+ color: rgba(0, 0, 0, 0.2);
639
+ }
640
+ }
641
+ }
642
+ }
643
+ }
644
+ .foldItem {
645
+ width: 22rpx;
646
+ height: 22rpx;
647
+ background-color: #e2e8f0;
648
+ border-radius: 4rpx;
649
+ margin-right: 6rpx;
650
+ }
651
+ </style>