plain-design 1.0.0-beta.4 → 1.0.0-beta.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) hide show
  1. package/dist/plain-design.commonjs.min.js +3 -3
  2. package/dist/plain-design.min.css +37 -29
  3. package/dist/plain-design.min.js +3 -3
  4. package/dist/report.html +5 -5
  5. package/package.json +9 -8
  6. package/src/packages/build.ts +2 -10
  7. package/src/packages/components/$object/createObjectService.tsx +31 -20
  8. package/src/packages/components/$object/object.service.utils.ts +7 -3
  9. package/src/packages/components/$previewer/ImagePreviewerFixedContainer.tsx +108 -0
  10. package/src/packages/components/$previewer/image-previewer-fixed-container.scss +18 -0
  11. package/src/packages/components/$previewer/index.tsx +52 -0
  12. package/src/packages/components/Alert/alert.scss +3 -3
  13. package/src/packages/components/Application/service/useApplicationService.tsx +2 -0
  14. package/src/packages/components/Application/theme/theme.ts +3 -3
  15. package/src/packages/components/ArrowStepGroup/arrow-step.scss +4 -4
  16. package/src/packages/components/AutoTable/filter/useTableOption.filter.form.tsx +1 -0
  17. package/src/packages/components/AutoTable/use/useTableOption.methods.tsx +2 -0
  18. package/src/packages/components/AutoTable/use/useTableOption.state.tsx +1 -0
  19. package/src/packages/components/AutoTable/use/useTableOption.table.tsx +3 -3
  20. package/src/packages/components/AutoTable/utils/TableOption.space.tsx +4 -0
  21. package/src/packages/components/Badge/badge.scss +1 -1
  22. package/src/packages/components/Button/button.scss +2 -2
  23. package/src/packages/components/Card/card.scss +1 -1
  24. package/src/packages/components/Carousel/carousel.scss +391 -0
  25. package/src/packages/components/Carousel/index.tsx +569 -22
  26. package/src/packages/components/CarouselItem/index.tsx +77 -0
  27. package/src/packages/components/CascadePanel/list/CascadeListPanelItem.tsx +3 -3
  28. package/src/packages/components/CheckboxInner/checkbox-inner.scss +1 -1
  29. package/src/packages/components/ColorPicker/sub/ColorSlider.tsx +8 -5
  30. package/src/packages/components/ColorPicker/sub/ColorSvPanel.tsx +7 -4
  31. package/src/packages/components/DatePicker/date.scss +1 -1
  32. package/src/packages/components/Dialog/dialog.scss +1 -1
  33. package/src/packages/components/Dialog/index.tsx +4 -3
  34. package/src/packages/components/Dialog/useDialogMovable.tsx +7 -4
  35. package/src/packages/components/Dialog/utils/dialog.mouse.ts +4 -2
  36. package/src/packages/components/Dropdown/dropdown.public.scss +10 -0
  37. package/src/packages/components/Dropdown/dropdown.utils.tsx +3 -1
  38. package/src/packages/components/Dropdown/index.tsx +2 -2
  39. package/src/packages/components/DropdownOption/index.tsx +3 -3
  40. package/src/packages/components/DropdownSeparator/index.tsx +8 -0
  41. package/src/packages/components/FilterFormMultiple/index.tsx +31 -10
  42. package/src/packages/components/Image/image.scss +3 -3
  43. package/src/packages/components/ImagePreviewer/ImagePreviewer.tsx +574 -0
  44. package/src/packages/components/ImagePreviewer/ImagePreviewerButtonBar.tsx +140 -0
  45. package/src/packages/components/ImagePreviewer/ImagePreviewerCarouselImage.tsx +54 -0
  46. package/src/packages/components/ImagePreviewer/ImagePreviewerGallery.tsx +202 -0
  47. package/src/packages/components/ImagePreviewer/PreviewerLoading.tsx +26 -0
  48. package/src/packages/components/ImagePreviewer/image-previewer.scss +244 -0
  49. package/src/packages/components/ImagePreviewer/image-previewer.utils.tsx +135 -0
  50. package/src/packages/components/ImagePreviewer/index.tsx +5 -0
  51. package/src/packages/components/ImagePreviewer/previewer-loading.scss +52 -0
  52. package/src/packages/components/Input/index.scss +2 -2
  53. package/src/packages/components/Input/useMultipleInput.tsx +2 -76
  54. package/src/packages/components/Input/useTextareaInput.tsx +10 -5
  55. package/src/packages/components/Input/uses/useInputHooks.tsx +11 -11
  56. package/src/packages/components/InputNumber/NumberResize.tsx +20 -3
  57. package/src/packages/components/InputNumber/input-number.utils.tsx +7 -5
  58. package/src/packages/components/InputNumber/number.scss +10 -1
  59. package/src/packages/components/InputNumber/useInputNumber.public.tsx +25 -6
  60. package/src/packages/components/Layout/index.tsx +31 -0
  61. package/src/packages/components/Layout/layout.scss +227 -0
  62. package/src/packages/components/Layout/layout.utils.ts +3 -0
  63. package/src/packages/components/LayoutSection/index.tsx +67 -0
  64. package/src/packages/components/LayoutSection/useLayoutSectionResizer.tsx +184 -0
  65. package/src/packages/components/LoadingMask/index.tsx +1 -1
  66. package/src/packages/components/PageThemeUtils/index.tsx +54 -14
  67. package/src/packages/components/Pagination/pagination.scss +2 -2
  68. package/src/packages/components/PlcOv/index.tsx +14 -4
  69. package/src/packages/components/Popup/index.tsx +24 -10
  70. package/src/packages/components/ProgressBar/progress-bar.scss +1 -1
  71. package/src/packages/components/Rate/index.tsx +3 -1
  72. package/src/packages/components/Scroll/HorizontalScrollbar.tsx +7 -3
  73. package/src/packages/components/Scroll/VerticalScrollbar.tsx +7 -3
  74. package/src/packages/components/Scroll/index.tsx +6 -6
  75. package/src/packages/components/Select/createPublicSelectRender.tsx +1 -1
  76. package/src/packages/components/Slider/slider.scss +1 -1
  77. package/src/packages/components/Slider/useSliderDotDragier.tsx +7 -4
  78. package/src/packages/components/SortList/index.tsx +191 -0
  79. package/src/packages/components/SortList/sort-list.scss +11 -0
  80. package/src/packages/components/StackCard/index.tsx +416 -0
  81. package/src/packages/components/StackCard/stack-card.scss +40 -0
  82. package/src/packages/components/StackCardItem/index.tsx +24 -0
  83. package/src/packages/components/StepGroup/step-group.scss +9 -9
  84. package/src/packages/components/TabGroup/TabsInner.tsx +5 -3
  85. package/src/packages/components/TabGroup/header/horizontal/tabs-header-horizontal.scss +0 -1
  86. package/src/packages/components/TabGroup/index.tsx +5 -1
  87. package/src/packages/components/TabGroup/tabs.scss +3 -0
  88. package/src/packages/components/Table/standard/PlcExpand.tsx +12 -20
  89. package/src/packages/components/Table/standard/PlcOperation/PlcOperation.tsx +1 -1
  90. package/src/packages/components/Table/standard/PlcOperation/outer-operation.scss +2 -0
  91. package/src/packages/components/Table/standard/PlcTree/RenderPlcTreeNode.tsx +2 -1
  92. package/src/packages/components/Table/table/Table.tsx +10 -3
  93. package/src/packages/components/Table/table/body/row.tsx +1 -1
  94. package/src/packages/components/Table/table/body/useCellValue.tsx +10 -6
  95. package/src/packages/components/Table/table/head/useHeadCellResize.ts +8 -3
  96. package/src/packages/components/Table/table/table.scss +2 -1
  97. package/src/packages/components/Table/table/use/useTableDraggier.col.tsx +10 -5
  98. package/src/packages/components/Table/table/use/useTableDraggier.row.tsx +12 -7
  99. package/src/packages/components/Table/table/use/useTableFormEditor.tsx +1 -1
  100. package/src/packages/components/Table/table/use/useTableModifyEditor.tsx +1 -1
  101. package/src/packages/components/Table/table/utils/createTableHooks.ts +4 -2
  102. package/src/packages/components/Table/table/utils/table.utils.ts +6 -1
  103. package/src/packages/components/ThemeEditor/index.tsx +173 -0
  104. package/src/packages/components/ThemeEditor/theme-editor.scss +105 -0
  105. package/src/packages/components/ThemePrimaryColors/index.ts +5 -0
  106. package/src/packages/components/Tree/RenderTreeNode.tsx +8 -3
  107. package/src/packages/components/Tree/index.tsx +4 -3
  108. package/src/packages/components/Tree/tree.scss +42 -9
  109. package/src/packages/components/TreeCore/TreeCore.type.tsx +2 -0
  110. package/src/packages/components/TreeCore/createTreeCore.tsx +5 -1
  111. package/src/packages/components/TreeCore/createTreeDraggier.tsx +70 -56
  112. package/src/packages/components/TreeCore/createTreeMethods.tsx +1 -0
  113. package/src/packages/components/TreeCore/createTreeProps.ts +2 -1
  114. package/src/packages/components/TreeNodeWithMenu/index.tsx +91 -0
  115. package/src/packages/components/TreeNodeWithMenu/tree-node-with-menu.scss +39 -0
  116. package/src/packages/components/TreeNodeWithMenu/treeNodeWithMenu.utils.ts +12 -0
  117. package/src/packages/components/VirtualList/index.tsx +15 -6
  118. package/src/packages/components/VirtualList/useVirtualList.tsx +182 -107
  119. package/src/packages/components/VirtualList/virtual-list.scss +31 -17
  120. package/src/packages/components/VirtualTable/index.tsx +7 -7
  121. package/src/packages/components/VirtualTable/virtual-table.scss +1 -2
  122. package/src/packages/components/createProvider/index.ts +5 -0
  123. package/src/packages/components/nextPopupId/index.ts +5 -0
  124. package/src/packages/components/useDialog/DialogService.tsx +13 -1
  125. package/src/packages/components/useDialog/index.tsx +1 -1
  126. package/src/packages/components/useImage/ImageService.tsx +7 -4
  127. package/src/packages/components/useMessage/Message.tsx +5 -1
  128. package/src/packages/components/useMessage/message.scss +5 -1
  129. package/src/packages/components/useNotice/notice.scss +2 -2
  130. package/src/packages/components/usePopup/PopupItem.tsx +45 -26
  131. package/src/packages/components/usePopup/popup-item.scss +5 -1
  132. package/src/packages/components/usePopup/usePopupManager.tsx +2 -1
  133. package/src/packages/components/usePopup/utils/popup.utils.ts +2 -1
  134. package/src/packages/components/usePopupManager/index.ts +5 -0
  135. package/src/packages/components/usePopupTrigger/index.tsx +5 -0
  136. package/src/packages/components/useReferenceTrigger/index.tsx +5 -0
  137. package/src/packages/components/useTooltip/index.tsx +2 -0
  138. package/src/packages/components/useWatchAutoClear/index.ts +5 -0
  139. package/src/packages/entry.tsx +48 -2
  140. package/src/packages/i18n/lang/en-us.ts +36 -0
  141. package/src/packages/i18n/lang/zh-cn.ts +36 -0
  142. package/src/packages/uses/useDragHorizontalScroll.ts +82 -0
  143. package/src/packages/uses/useEdit.ts +5 -1
  144. package/src/packages/uses/useStyle.tsx +10 -2
  145. package/src/packages/utils/ClientZoom.ts +24 -2
  146. package/src/packages/utils/ComponentUtils.ts +10 -0
  147. package/src/packages/utils/buildCycleIndexList.ts +31 -0
  148. package/src/packages/utils/getDeviceInfo.ts +44 -44
  149. package/src/packages/utils/getRectAutoFormat.ts +9 -0
  150. package/src/packages/utils/inheritSlots.ts +28 -0
  151. package/src/packages/utils/notNull.ts +9 -0
  152. package/src/packages/utils/useMove.tsx +10 -4
  153. package/src/packages/components/CarouselGroup/carousel.scss +0 -143
  154. package/src/packages/components/CarouselGroup/index.tsx +0 -274
  155. package/src/pages/data/address.json +0 -39317
  156. package/src/pages/data/data-1.json +0 -754
  157. package/src/pages/data/data-2.json +0 -3006
  158. package/src/pages/data/data-200.json +0 -5206
  159. package/src/pages/data/data-2000.json +0 -51954
  160. package/src/pages/data/data-50.json +0 -2075
  161. package/src/pages/data/data.json +0 -30002
  162. package/src/pages/data/demo.json +0 -1702
  163. package/src/pages/data/mock.database.js +0 -43
  164. package/src/pages/data/mock.js +0 -141
  165. package/src/pages/data/tree.data.json +0 -87
  166. package/src/pages/env/config/local.js +0 -3
  167. package/src/pages/env/config/prod.js +0 -3
  168. package/src/pages/env/config/undefined.js +0 -1
  169. package/src/pages/env/env.d.ts +0 -4
  170. package/src/pages/env/index.ts +0 -1
  171. package/src/pages/history/createHistory.ts +0 -94
  172. package/src/pages/history/history.utils.ts +0 -64
  173. package/src/pages/index/App.tsx +0 -17
  174. package/src/pages/index/Demo/DemoLine.tsx +0 -23
  175. package/src/pages/index/Demo/DemoRow.scss +0 -128
  176. package/src/pages/index/Demo/DemoRow.tsx +0 -71
  177. package/src/pages/index/Demo/DemoRow.utils.ts +0 -23
  178. package/src/pages/index/Demo/DemoRowController.tsx +0 -45
  179. package/src/pages/index/Demo/index.ts +0 -8
  180. package/src/pages/index/app.scss +0 -192
  181. package/src/pages/index/components/AutoTable/AutoHeightAutoRow.tsx +0 -51
  182. package/src/pages/index/components/AutoTable/AutoHeightFixedRow.tsx +0 -50
  183. package/src/pages/index/components/AutoTable/AutoTableBasicUsage.tsx +0 -75
  184. package/src/pages/index/components/AutoTable/AutoTableCascade.tsx +0 -99
  185. package/src/pages/index/components/AutoTable/AutoTableDefaultSearch.tsx +0 -73
  186. package/src/pages/index/components/AutoTable/AutoTableFiles.tsx +0 -26
  187. package/src/pages/index/components/AutoTable/AutoTableFill.tsx +0 -51
  188. package/src/pages/index/components/AutoTable/AutoTableGroupUsage.tsx +0 -71
  189. package/src/pages/index/components/AutoTable/AutoTableObjectPicker.tsx +0 -181
  190. package/src/pages/index/components/AutoTable/AutoTableOvList.tsx +0 -80
  191. package/src/pages/index/components/AutoTable/AutoTableProductList.tsx +0 -98
  192. package/src/pages/index/components/AutoTable/AutoTableRowFormatter.tsx +0 -58
  193. package/src/pages/index/components/AutoTable/FixedHeightAutoRow.tsx +0 -50
  194. package/src/pages/index/components/AutoTable/FixedHeightFixedRow.tsx +0 -49
  195. package/src/pages/index/components/bus/DemoAddress.tsx +0 -181
  196. package/src/pages/index/components/bus/DemoAddressCascade.tsx +0 -132
  197. package/src/pages/index/components/bus/DemoFilter.tsx +0 -184
  198. package/src/pages/index/components/columns/DemoPlcAddress.tsx +0 -161
  199. package/src/pages/index/components/columns/DemoPlcDate.tsx +0 -363
  200. package/src/pages/index/components/columns/DemoPlcSelect.tsx +0 -505
  201. package/src/pages/index/components/columns/DemoPlcTime.tsx +0 -293
  202. package/src/pages/index/components/columns/DemoTableColumns.tsx +0 -88
  203. package/src/pages/index/components/form/DemoFormBasic.tsx +0 -516
  204. package/src/pages/index/components/form/DemoFormBlur.tsx +0 -204
  205. package/src/pages/index/components/form/DemoFormDynamicFields.tsx +0 -54
  206. package/src/pages/index/components/form/DemoFormEditControl.tsx +0 -164
  207. package/src/pages/index/components/form/DemoFormElement.tsx +0 -207
  208. package/src/pages/index/components/form/DemoFormLayout.scss +0 -7
  209. package/src/pages/index/components/form/DemoFormLayout.tsx +0 -311
  210. package/src/pages/index/components/form/DemoFormSimplify.tsx +0 -587
  211. package/src/pages/index/components/form/DemoFormSize.tsx +0 -274
  212. package/src/pages/index/components/form/DemoFormVertical.tsx +0 -280
  213. package/src/pages/index/components/normal/DemoAlert.tsx +0 -66
  214. package/src/pages/index/components/normal/DemoBadge.tsx +0 -53
  215. package/src/pages/index/components/normal/DemoButton.tsx +0 -300
  216. package/src/pages/index/components/normal/DemoCard.tsx +0 -176
  217. package/src/pages/index/components/normal/DemoCarousel.tsx +0 -125
  218. package/src/pages/index/components/normal/DemoCascade.tsx +0 -880
  219. package/src/pages/index/components/normal/DemoCheckbox.scss +0 -24
  220. package/src/pages/index/components/normal/DemoCheckbox.tsx +0 -294
  221. package/src/pages/index/components/normal/DemoCollapse.tsx +0 -104
  222. package/src/pages/index/components/normal/DemoColor.scss +0 -20
  223. package/src/pages/index/components/normal/DemoColor.tsx +0 -82
  224. package/src/pages/index/components/normal/DemoColorPicker.tsx +0 -163
  225. package/src/pages/index/components/normal/DemoDate.tsx +0 -443
  226. package/src/pages/index/components/normal/DemoDialog.tsx +0 -507
  227. package/src/pages/index/components/normal/DemoDropdown.tsx +0 -463
  228. package/src/pages/index/components/normal/DemoGrid.scss +0 -26
  229. package/src/pages/index/components/normal/DemoGrid.tsx +0 -181
  230. package/src/pages/index/components/normal/DemoIcon.tsx +0 -39
  231. package/src/pages/index/components/normal/DemoImage.tsx +0 -122
  232. package/src/pages/index/components/normal/DemoInput.scss +0 -0
  233. package/src/pages/index/components/normal/DemoInput.tsx +0 -790
  234. package/src/pages/index/components/normal/DemoKeepAlive.tsx +0 -505
  235. package/src/pages/index/components/normal/DemoList.scss +0 -15
  236. package/src/pages/index/components/normal/DemoList.tsx +0 -82
  237. package/src/pages/index/components/normal/DemoLoading.tsx +0 -83
  238. package/src/pages/index/components/normal/DemoNumber.tsx +0 -266
  239. package/src/pages/index/components/normal/DemoPagination.tsx +0 -164
  240. package/src/pages/index/components/normal/DemoPopup.tsx +0 -695
  241. package/src/pages/index/components/normal/DemoProgress.tsx +0 -133
  242. package/src/pages/index/components/normal/DemoRadio.scss +0 -16
  243. package/src/pages/index/components/normal/DemoRadio.tsx +0 -188
  244. package/src/pages/index/components/normal/DemoRate.tsx +0 -77
  245. package/src/pages/index/components/normal/DemoScroll.scss +0 -22
  246. package/src/pages/index/components/normal/DemoScroll.tsx +0 -300
  247. package/src/pages/index/components/normal/DemoSegment.tsx +0 -71
  248. package/src/pages/index/components/normal/DemoSelect.tsx +0 -819
  249. package/src/pages/index/components/normal/DemoSlider.tsx +0 -128
  250. package/src/pages/index/components/normal/DemoStep.scss +0 -18
  251. package/src/pages/index/components/normal/DemoStep.tsx +0 -291
  252. package/src/pages/index/components/normal/DemoTab.tsx +0 -338
  253. package/src/pages/index/components/normal/DemoTag.tsx +0 -100
  254. package/src/pages/index/components/normal/DemoTime.tsx +0 -403
  255. package/src/pages/index/components/normal/DemoToggle.tsx +0 -56
  256. package/src/pages/index/components/normal/DemoTooltip.tsx +0 -120
  257. package/src/pages/index/components/normal/DemoTree.tsx +0 -1099
  258. package/src/pages/index/components/normal/DemoUpload.tsx +0 -484
  259. package/src/pages/index/components/normal/DemoVirtualList.tsx +0 -378
  260. package/src/pages/index/components/service/DemoDialogService.tsx +0 -248
  261. package/src/pages/index/components/service/DemoFileService.tsx +0 -110
  262. package/src/pages/index/components/service/DemoMessageService.tsx +0 -100
  263. package/src/pages/index/components/service/DemoNoticeService.tsx +0 -99
  264. package/src/pages/index/components/service/DemoPopupService.tsx +0 -322
  265. package/src/pages/index/components/table/DemoPlcOperation.tsx +0 -307
  266. package/src/pages/index/components/table/DemoTableBasic.tsx +0 -220
  267. package/src/pages/index/components/table/DemoTableCheck.tsx +0 -78
  268. package/src/pages/index/components/table/DemoTableClassAndStyle.scss +0 -18
  269. package/src/pages/index/components/table/DemoTableClassAndStyle.tsx +0 -112
  270. package/src/pages/index/components/table/DemoTableColDraggable.tsx +0 -80
  271. package/src/pages/index/components/table/DemoTableEdit.tsx +0 -136
  272. package/src/pages/index/components/table/DemoTableExpand.tsx +0 -181
  273. package/src/pages/index/components/table/DemoTableFixed.tsx +0 -131
  274. package/src/pages/index/components/table/DemoTableFormatter.tsx +0 -66
  275. package/src/pages/index/components/table/DemoTableOverflowTooltip.tsx +0 -67
  276. package/src/pages/index/components/table/DemoTableRowDraggable.tsx +0 -106
  277. package/src/pages/index/components/table/DemoTableSlots.tsx +0 -153
  278. package/src/pages/index/components/table/DemoTableSpan.tsx +0 -167
  279. package/src/pages/index/components/table/DemoTableTree.tsx +0 -976
  280. package/src/pages/index/components/table/DemoVirtualTable.tsx +0 -274
  281. package/src/pages/index/components/test/DemoI18n.tsx +0 -27
  282. package/src/pages/index/components/test/DemoI18n2.jsx +0 -11
  283. package/src/pages/index/home/AppContent.tsx +0 -69
  284. package/src/pages/index/home/AppHead.tsx +0 -104
  285. package/src/pages/index/home/AppHome.tsx +0 -16
  286. package/src/pages/index/home/AppMenu.tsx +0 -38
  287. package/src/pages/index/home/menus.tsx +0 -217
  288. package/src/pages/index/main.tsx +0 -23
  289. package/src/pages/index/nav/$nav.ts +0 -41
  290. package/src/pages/index/pages.d.ts +0 -6
  291. package/src/pages/libs/iconfont-fontcls/demo.css +0 -539
  292. package/src/pages/libs/iconfont-fontcls/demo_index.html +0 -303
  293. package/src/pages/libs/iconfont-fontcls/iconfont.css +0 -35
  294. package/src/pages/libs/iconfont-fontcls/iconfont.js +0 -1
  295. package/src/pages/libs/iconfont-fontcls/iconfont.json +0 -44
  296. package/src/pages/libs/iconfont-fontcls/iconfont.ttf +0 -0
  297. package/src/pages/libs/iconfont-fontcls/iconfont.woff +0 -0
  298. package/src/pages/libs/iconfont-fontcls/iconfont.woff2 +0 -0
  299. package/src/pages/libs/iconfont-symbol/demo.css +0 -539
  300. package/src/pages/libs/iconfont-symbol/demo_index.html +0 -303
  301. package/src/pages/libs/iconfont-symbol/iconfont.css +0 -35
  302. package/src/pages/libs/iconfont-symbol/iconfont.js +0 -1
  303. package/src/pages/libs/iconfont-symbol/iconfont.json +0 -44
  304. package/src/pages/libs/iconfont-symbol/iconfont.ttf +0 -0
  305. package/src/pages/libs/iconfont-symbol/iconfont.woff +0 -0
  306. package/src/pages/libs/iconfont-symbol/iconfont.woff2 +0 -0
  307. package/src/pages/libs/install.iconfont-fontcls.tsx +0 -11
  308. package/src/pages/libs/install.iconfont-symbol.scss +0 -7
  309. package/src/pages/libs/install.iconfont-symbol.tsx +0 -14
  310. package/src/pages/module/address.ts +0 -27
  311. package/src/pages/module/http.ts +0 -24
  312. package/src/pages/module/index.ts +0 -19
  313. package/src/pages/module/object.ts +0 -5
  314. package/src/pages/module/ov.tsx +0 -13
  315. package/src/pages/module/upload.ts +0 -9
  316. package/src/pages/module/useTableOption.ts +0 -28
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "plain-design",
3
- "version": "1.0.0-beta.4",
3
+ "version": "1.0.0-beta.40",
4
4
  "description": "",
5
5
  "main": "dist/plain-design.min.js",
6
6
  "module": "dist/plain-design.commonjs.min.js",
7
7
  "typings": "src/index.ts",
8
8
  "files": [
9
9
  "dist",
10
- "src"
10
+ "src/packages",
11
+ "src/index.ts"
11
12
  ],
12
13
  "scripts": {
13
14
  "dev": "cross-env APP_ENV=prod vue-cli-service serve",
@@ -19,9 +20,9 @@
19
20
  "peerDependencies": {
20
21
  "exceljs": "^4.2.1",
21
22
  "file-saver": "^2.0.5",
22
- "plain-design-composition": "^0.0.167",
23
- "react": "^17.0.1",
24
- "react-dom": "^17.0.1"
23
+ "plain-design-composition": "^0.0.185",
24
+ "react": "^18.0.1",
25
+ "react-dom": "^18.0.1"
25
26
  },
26
27
  "resolutions": {
27
28
  "@types/react": "18.2.4",
@@ -32,8 +33,8 @@
32
33
  "@types/react-transition-group": "^4.4.1",
33
34
  "color": "^4.2.3",
34
35
  "dayjs": "^1.10.4",
35
- "plain-icons": "0.0.6",
36
- "plain-utils": "^0.1.48",
36
+ "plain-icons": "0.0.7",
37
+ "plain-utils": "0.1.56",
37
38
  "react-flip-move": "^3.0.4",
38
39
  "react-transition-group": "^4.4.1"
39
40
  },
@@ -68,7 +69,7 @@
68
69
  "fork-ts-checker-webpack-plugin": "^6.2.4",
69
70
  "mini-css-extract-plugin": "^1.4.1",
70
71
  "mockjs": "^1.1.0",
71
- "plain-design-composition": "^0.0.167",
72
+ "plain-design-composition": "^0.0.185",
72
73
  "postcss": "^8.2.13",
73
74
  "postcss-loader": "^4.2.0",
74
75
  "qs": "^6.10.1",
@@ -1,15 +1,7 @@
1
1
  import Plain from './index';
2
- // @ts-ignore
3
- import allIcons from 'plain-icons/dist/icons.js';
2
+ import {installAllIcon} from "./utils/installAllIcons";
4
3
 
5
- // @ts-ignore
6
- Plain.Icon.PlainIcon.use.options.props.getIcon.default = (icon: string) => {
7
- const iconMeta = (allIcons as any)[icon];
8
- if (!iconMeta) {
9
- throw new Error(`getIcon: can't find icon match ${icon}`);
10
- }
11
- return iconMeta;
12
- };
4
+ installAllIcon();
13
5
 
14
6
  export * from './index';
15
7
  export default Plain;
@@ -19,23 +19,27 @@ import {ClientZoom} from "../../utils/ClientZoom";
19
19
  export function createObjectService(defaultConfig: iObjectServiceDefaultConfig) {
20
20
 
21
21
  const publicDialogOption: iDialogServiceOption = {
22
+ headAlign: 'left',
22
23
  title: i18n('base.selectData').d('选择数据'),
23
24
  confirmButton: true,
24
25
  cancelButton: true,
25
26
  maxHeight: ' ',
26
- maxWidth: '60vw',
27
+ maxWidth: ' ',
28
+ width: '50vw'
27
29
  };
28
30
 
29
31
  function processShowRows(option: TableOptionSpace.iTableOption) {
30
- const { clientHeight } = ClientZoom.getClientSize();
31
- const availableHeight = clientHeight * 0.8 - 48 - 44 - 40 - 40 - 28;
32
- const { bodyRowHeight } = getTableRowHeight(option.config.size, option.config);
33
- const showRows = Math.floor(availableHeight / bodyRowHeight) - 1;
34
-
35
- option.config.showRows = showRows;
36
- option.pagination.state.size = option.config.showRows;
37
- option.pagination.state.pageSizeOptions.indexOf(showRows) === -1 && (option.pagination.state.pageSizeOptions.unshift(showRows));
38
- option.fill.state.showRows = showRows;
32
+ if (option.useConfig.showRows == null) {
33
+ const { clientHeight } = ClientZoom.getClientSize();
34
+ const availableHeight = clientHeight * 0.8 - 48 - 44 - 40 - 40 - 28;
35
+ const { bodyRowHeight } = getTableRowHeight(option.config.size, option.config);
36
+ const showRows = Math.floor(availableHeight / bodyRowHeight) - 1;
37
+
38
+ option.config.showRows = showRows;
39
+ option.pagination.state.size = option.config.showRows;
40
+ option.pagination.state.pageSizeOptions.indexOf(showRows) === -1 && (option.pagination.state.pageSizeOptions.unshift(showRows));
41
+ option.fill.state.showRows = showRows;
42
+ }
39
43
  }
40
44
 
41
45
  function processPermit(option: TableOptionSpace.iTableOption) {
@@ -92,7 +96,7 @@ export function createObjectService(defaultConfig: iObjectServiceDefaultConfig)
92
96
  },
93
97
  };
94
98
 
95
- effects.push(
99
+ !serviceConfig.readonly && effects.push(
96
100
  config.option.hooks.onRenderColumns.use({
97
101
  processor: ({ list, render }) => {list.push({ render, key: 'object-check', seq: 0 });},
98
102
  render: () => (
@@ -101,16 +105,11 @@ export function createObjectService(defaultConfig: iObjectServiceDefaultConfig)
101
105
  })
102
106
  );
103
107
 
104
- (!config.option.permission.permit.value.show.update || config.option.permission.permit.value.disabled.update) &&
105
- effects.push(
106
- config.option.hooks.onDblclickRow.use(async () => {
107
- await delay();
108
- handler.handleConfirm();
109
- })
110
- );
111
-
112
108
  const close = $dialog({
113
109
  ...publicDialogOption,
110
+ ...serviceConfig.dialogProps,
111
+ ...serviceConfig.readonly ? { confirmButton: false, cancelButton: false } : {},
112
+ title: serviceConfig.option.config.title || publicDialogOption.title,
114
113
  onClose: () => {effects.clear();},
115
114
  onOpen: () => config.option.methods.pageMethods.reload(),
116
115
  handleConfirm: handler.handleConfirm,
@@ -124,6 +123,14 @@ export function createObjectService(defaultConfig: iObjectServiceDefaultConfig)
124
123
  }
125
124
  });
126
125
 
126
+ !serviceConfig.readonly && (!config.option.permission.permit.value.show.update || config.option.permission.permit.value.disabled.update) &&
127
+ effects.push(
128
+ config.option.hooks.onDblclickRow.use(async () => {
129
+ await delay();
130
+ handler.handleConfirm();
131
+ })
132
+ );
133
+
127
134
  return dfd.promise;
128
135
  }
129
136
 
@@ -145,7 +152,7 @@ export function createObjectService(defaultConfig: iObjectServiceDefaultConfig)
145
152
  selected: (!config.selected ? undefined : deepcopy(convertRowToSelected(config.selected, config.map))) as undefined | PlainObject[]
146
153
  });
147
154
 
148
- effects.push(
155
+ !serviceConfig.readonly && effects.push(
149
156
  config.option.hooks.onRenderColumns.use({
150
157
  processor: ({ list, render }) => {list.push({ render, key: 'object-check', seq: 0 });},
151
158
  render: () => (
@@ -155,7 +162,11 @@ export function createObjectService(defaultConfig: iObjectServiceDefaultConfig)
155
162
  );
156
163
 
157
164
  $dialog({
165
+ headAlign: 'left',
158
166
  ...publicDialogOption,
167
+ ...serviceConfig.dialogProps,
168
+ ...serviceConfig.readonly ? { confirmButton: false, cancelButton: false } : {},
169
+ title: serviceConfig.option.config.title || publicDialogOption.title,
159
170
  onClose: () => {effects.clear();},
160
171
  onOpen: () => config.option.methods.pageMethods.reload(),
161
172
  handleConfirm: async () => {
@@ -1,6 +1,8 @@
1
1
  import {PlainObject} from "plain-utils/utils/event";
2
2
  import {iObjectConverter} from "./object.conver";
3
3
  import {TableOptionSpace} from "../AutoTable/utils/TableOption.space";
4
+ import {ComponentPropsType} from "plain-design-composition";
5
+ import {Dialog} from "../Dialog";
4
6
 
5
7
  /**
6
8
  * 创建Object服务需要的默认的配置参数
@@ -17,9 +19,11 @@ export interface iObjectServiceDefaultConfig {
17
19
  * @date 2023.1.24 20:14
18
20
  */
19
21
  export interface iObjectServicePickPublicConfig extends Partial<iObjectServiceDefaultConfig> {
20
- option: TableOptionSpace.iTableOption, // TableOption对象
21
- map?: Record<string, string> | [iObjectConverter, iObjectConverter], // 用来转化选中行与目标行对象的规则
22
- beforeCancel?: () => void | boolean | Promise<void | boolean>, // 取消之前的动作
22
+ option: TableOptionSpace.iTableOption, // TableOption对象
23
+ map?: Record<string, string> | [iObjectConverter, iObjectConverter], // 用来转化选中行与目标行对象的规则
24
+ beforeCancel?: () => void | boolean | Promise<void | boolean>, // 取消之前的动作
25
+ readonly?: boolean, // 只读,不需要选择数据,只需要关闭
26
+ dialogProps?: Partial<ComponentPropsType<typeof Dialog>> // dialog属性
23
27
  }
24
28
 
25
29
  /**
@@ -0,0 +1,108 @@
1
+ import {designComponent, getComponentCls, iHTMLDivElement, nextIndex, onBeforeUnmount, onMounted, PropType, reactive, useClasses, useRefs, useStyles} from "plain-design-composition";
2
+ import {getCenterRect, iImagePreviewerOption, ImagePreviewerHooks} from "../ImagePreviewer/image-previewer.utils";
3
+ import {ImagePreviewer} from "../ImagePreviewer";
4
+ import {getRectAutoFormat} from "../../utils/getRectAutoFormat";
5
+ import {unit} from "plain-utils/string/unit";
6
+ import {createEffects} from "plain-utils/utils/createEffects";
7
+ import {addElementListener} from "plain-utils/dom/addElementListener";
8
+ import {delay} from "plain-utils/utils/delay";
9
+ import './image-previewer-fixed-container.scss';
10
+
11
+ export const ImagePreviewerFixedContainer = designComponent({
12
+ name: 'image-previewer-fixed-container',
13
+ props: {
14
+ option: { type: Object as PropType<iImagePreviewerOption>, required: true }
15
+ },
16
+ setup({ props }) {
17
+
18
+ const { refs, onRef } = useRefs({ el: iHTMLDivElement });
19
+
20
+ const state = reactive({
21
+ ready: false,
22
+ });
23
+
24
+ const classes = useClasses(() => [
25
+ getComponentCls('image-previewer-fixed-container')
26
+ ]);
27
+
28
+ const styles = useStyles(style => {style.zIndex = nextIndex();});
29
+
30
+ const { effects: setupEffects } = createEffects();
31
+
32
+ onMounted(async () => {
33
+ const containerWidth = Math.floor(refs.el!.offsetWidth);
34
+ const containerHeight = Math.floor(refs.el!.offsetHeight - props.option.galleryHeight - props.option.separatorHeight);
35
+ const containerRatio = Number((containerWidth / containerHeight).toFixed(1));
36
+
37
+ const imageElement = props.option.imageElement;
38
+
39
+ if (!imageElement) {
40
+ state.ready = true;
41
+ return;
42
+ }
43
+ /**
44
+ * 如果原始imageElement存在,则创建一个影子图片元素展示过度动画
45
+ * @author 韦胜健
46
+ * @date 2024/1/5 11:22
47
+ */
48
+ const shadowImageElement = imageElement.cloneNode(true) as HTMLImageElement;
49
+ const imageElementRect = getRectAutoFormat(imageElement);
50
+ props.option.oldSourceImageOpacity = imageElement.style.opacity;
51
+ imageElement.style.opacity = "0";
52
+
53
+ shadowImageElement.style.position = 'fixed';
54
+ shadowImageElement.style.top = unit(imageElementRect.top)!;
55
+ shadowImageElement.style.left = unit(imageElementRect.left)!;
56
+ shadowImageElement.style.width = unit(imageElementRect.width)!;
57
+ shadowImageElement.style.height = unit(imageElementRect.height)!;
58
+ shadowImageElement.style.transition = 'all ease 300ms';
59
+ shadowImageElement.style.zIndex = '999999';
60
+ shadowImageElement.style.objectFit = window.getComputedStyle(imageElement).objectFit
61
+
62
+ /*开启动画时阻止页面滚动*/
63
+ setupEffects.push(
64
+ addElementListener(shadowImageElement, 'wheel', e => {
65
+ e.preventDefault();
66
+ e.stopPropagation();
67
+ })
68
+ );
69
+
70
+ const newRect = getCenterRect({ containerElement: { containerHeight, containerWidth, containerRatio }, imageElement });
71
+
72
+ document.body.appendChild(shadowImageElement);
73
+ setupEffects.push(() => {document.body.removeChild(shadowImageElement);});
74
+ await delay();
75
+ shadowImageElement.style.top = unit(newRect.top.toFixed(0))!;
76
+ shadowImageElement.style.left = unit(newRect.left.toFixed(0))!;
77
+ shadowImageElement.style.height = unit(newRect.height.toFixed(0))!;
78
+ shadowImageElement.style.width = unit(newRect.width.toFixed(0))!;
79
+ const clearListener = addElementListener(shadowImageElement, 'transitionend', () => {
80
+ state.ready = true;
81
+ const clearHook = ImagePreviewerHooks.onImagePreviewerReady.use(async (data) => {
82
+ if (data.option.id !== props.option.id) {
83
+ return;
84
+ }
85
+ await delay();
86
+ clearHook();
87
+ setupEffects.clear();
88
+ });
89
+ setupEffects.push(clearHook);
90
+ });
91
+ setupEffects.push(clearListener);
92
+ });
93
+
94
+ onBeforeUnmount(setupEffects.clear);
95
+
96
+ return () => (
97
+ <div className={classes.value} ref={onRef.el}>
98
+ {state.ready && (
99
+ <ImagePreviewer
100
+ closable
101
+ option={props.option}
102
+ style={styles.value}
103
+ />
104
+ )}
105
+ </div>
106
+ );
107
+ },
108
+ });
@@ -0,0 +1,18 @@
1
+ @include comp(image-previewer-fixed-container) {
2
+ position: fixed;
3
+ inset: 0;
4
+
5
+ @include comp(carousel) {
6
+ position: absolute;
7
+ top: 0;
8
+ right: 0;
9
+ left: 0;
10
+ }
11
+
12
+ .image-previewer-component-gallery {
13
+ position: absolute;
14
+ bottom: 0;
15
+ left: 0;
16
+ right: 0;
17
+ }
18
+ }
@@ -0,0 +1,52 @@
1
+ import {reactive} from "plain-design-composition";
2
+ import {createImagePreviewerOption, iImagePreviewerOption, iImagePreviewerParamOption} from "../ImagePreviewer/image-previewer.utils";
3
+ import {ImagePreviewerFixedContainer} from "./ImagePreviewerFixedContainer";
4
+ import {getDeviceInfo} from "../../utils/getDeviceInfo";
5
+
6
+ /**
7
+ * 图片预览服务
8
+ * @author 韦胜健
9
+ * @date 2024/1/8 10:04
10
+ */
11
+ export const $previewer = (() => {
12
+
13
+ const state = reactive({
14
+ /*有service option不同,image previewer同时只能显示一个*/
15
+ option: null as null | iImagePreviewerOption,
16
+ });
17
+
18
+ /**
19
+ * 大图查看图片
20
+ * @author 韦胜健
21
+ * @date 2024/1/5 11:22
22
+ */
23
+ const preview = async (param: iImagePreviewerParamOption, imageElement?: HTMLImageElement) => {
24
+
25
+ const isMobile = getDeviceInfo().deviceType === 'mobile';
26
+
27
+ state.option = createImagePreviewerOption(param, imageElement, {
28
+ autoHeight: false,
29
+ mask: true,
30
+ globalKeyboardEvent: true,
31
+ button: true,
32
+ ...isMobile ? {
33
+ gallery: false,
34
+ button: false,
35
+ swipeButton: false,
36
+ galleryHeight: 0,
37
+ } : {},
38
+ });
39
+ };
40
+
41
+ const close = (optionOrId: string | iImagePreviewerOption) => {
42
+ const optionId = typeof optionOrId === "string" ? optionOrId : optionOrId.id;
43
+ if (!!state.option && state.option.id === optionId) {state.option = null;}
44
+ };
45
+
46
+ const render = () => !!state.option && <ImagePreviewerFixedContainer option={state.option}/>;
47
+
48
+ return { preview, render, close };
49
+
50
+ })();
51
+
52
+ export default $previewer;
@@ -7,12 +7,12 @@
7
7
 
8
8
  .alert-label {
9
9
  font-size: plv(font-size-small);
10
- line-height: 1.5715;
10
+ line-height: plv(line-height);
11
11
  }
12
12
 
13
13
  .alert-desc {
14
14
  font-size: plv(font-size-small);
15
- line-height: 1.5715;
15
+ line-height: plv(line-height);
16
16
  }
17
17
 
18
18
  &.alert-has-icon {
@@ -125,7 +125,7 @@
125
125
  &.alert-theme-deep {
126
126
  @include statusMixin(alert) {
127
127
  background-color: $color-6;
128
- color: white;
128
+ color: plv(pbfc);
129
129
  .alert-close {
130
130
  &:hover {
131
131
  background-color: $color-8;
@@ -2,6 +2,7 @@ import {getComponentCls, getCurrentDesignInstance, markRaw, onBeforeUnmount, Por
2
2
  import {defer, DFD} from 'plain-utils/utils/defer';
3
3
  import {createCounter} from "plain-utils/utils/createCounter";
4
4
  import {APPLICATION_SERVICE_CONTAINER_CLASS, ApplicationHooks} from "../utils/application.utils";
5
+ import {$previewer} from "../../$previewer";
5
6
 
6
7
  /**
7
8
  * applications渲染manager数组的时候,给manager传递的 getManagerData函数的返回值类型
@@ -104,6 +105,7 @@ export function useApplicationService() {
104
105
  render: () => (
105
106
  <Portal to="body">
106
107
  <div className={getComponentCls(APPLICATION_SERVICE_CONTAINER_CLASS)}>
108
+ {$previewer.render()}
107
109
  {state.managers.map(({ getManagerData, RenderComponent, dfd, id }, index) => {
108
110
  return (
109
111
  <RenderComponent
@@ -75,6 +75,7 @@ function createOtherVars(prefix: string | null, referenceVariable: (name: string
75
75
  'background-hover': referenceVariable("gray-2"),
76
76
  'scrollbar-color': referenceVariable("gray-3"),
77
77
  'loading-mask-color': 'rgba(255,255,255,0.5)',
78
+ 'line-height': 'plv(line-height)',
78
79
 
79
80
  'font-size-mini': '12px',
80
81
  'font-size-small': '12px',
@@ -128,9 +129,7 @@ function createOtherVars(prefix: string | null, referenceVariable: (name: string
128
129
  'dialog-foot-padding': '8px 16px',
129
130
  'dialog-head-size': '48px',
130
131
  /*---------------------------------------message-------------------------------------------*/
131
- 'message-padding': '12px 20px',
132
132
  'message-box-shadow': '0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)',
133
- 'message-font-size': referenceVariable('font-size-normal'),
134
133
  /*---------------------------------------notice-------------------------------------------*/
135
134
  'notice-padding': '20px 24px',
136
135
  'notice-box-shadow': '0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)',
@@ -203,7 +202,7 @@ export function createThemeConfigurationData(prefix: string | null, config?: Dee
203
202
 
204
203
  const baseColorList: Record<tGenerateBaseColorList<iThemeBaseColors>, string> = (() => {
205
204
  const colors = {} as any;
206
- Object.keys(BaseColors).forEach((colorName) => {
205
+ Object.keys(base).forEach((colorName) => {
207
206
  const baseColor = (base as any)[colorName];
208
207
  if (!baseColor) {return;}
209
208
  ThemeColorNum.forEach(i => {
@@ -232,6 +231,7 @@ export function createThemeConfigurationData(prefix: string | null, config?: Dee
232
231
  ...secondaryColorList,
233
232
  ...createGrayColors(dark, false),
234
233
  ...createGrayColors(dark, true),
234
+ ...base.primary === '#ffffff' ? { 'pbfc': 'black' } : { 'pbfc': 'white' },
235
235
  ...dark ? {
236
236
  'background-hover': '#3c3c4d',
237
237
  'scrollbar-color': '#141414',
@@ -32,7 +32,7 @@
32
32
  align-items: center;
33
33
  justify-content: center;
34
34
  padding: 0 16px;
35
- color: white;
35
+ color: plv(pbfc);
36
36
  }
37
37
 
38
38
  .#{componentName(triangle)} {
@@ -73,7 +73,7 @@
73
73
  &.arrow-step-status-process, &.arrow-step-status-finish {
74
74
  .arrow-step-content {
75
75
  background-color: plv(primary-6);
76
- color: white;
76
+ color: plv(pbfc);
77
77
  }
78
78
 
79
79
  .#{componentName(triangle)} {
@@ -84,7 +84,7 @@
84
84
  &.arrow-step-status-success {
85
85
  .arrow-step-content {
86
86
  background-color: plv(success-6);
87
- color: white;
87
+ color: plv(pbfc);
88
88
  }
89
89
 
90
90
  .#{componentName(triangle)} {
@@ -95,7 +95,7 @@
95
95
  &.arrow-step-status-error {
96
96
  .arrow-step-content {
97
97
  background-color: plv(error-6);
98
- color: white;
98
+ color: plv(pbfc);
99
99
  }
100
100
 
101
101
  .#{componentName(triangle)} {
@@ -171,6 +171,7 @@ export const useTableOptionFilterForm = AutoModule.createRegistration((
171
171
  initialState={state.data}
172
172
  onSearch={handler.onNormalSearch}
173
173
  column={config.filterFormColumn}
174
+ searchButtonAttrs={{ mode: 'flat' }}
174
175
  v-slots={{
175
176
  operation: () => (
176
177
  <Button label={i18n('base.collapse').d('收起')} icon="pi-shrink" onClick={methods.toggleShow}/>
@@ -161,6 +161,7 @@ export const useTableOptionMethods = AutoModule.createRegistration((
161
161
  }
162
162
  };
163
163
  const reload = async (reloadParam?: { size?: number }) => {
164
+ if (!state.isInit) {state.isInit = true;}
164
165
  await load({
165
166
  page: 1,
166
167
  size: reloadParam?.size,
@@ -488,6 +489,7 @@ export const useTableOptionMethods = AutoModule.createRegistration((
488
489
  })();
489
490
 
490
491
  hooks.onTableSetup.use(() => {
492
+ if (state.isInit) {return;}
491
493
  if (config.loadOnStart !== false) {pageMethods.reload();}
492
494
  });
493
495
 
@@ -14,6 +14,7 @@ declare module '../utils/TableOption.space' {
14
14
 
15
15
  export const useTableOptionState = AutoModule.createRegistration(({ config, hooks }) => {
16
16
  const state: TableOptionSpace.iTableOptionState = reactive({
17
+ isInit: false,
17
18
  getTable: () => null,
18
19
  getAutoTable: () => null,
19
20
  list: [],
@@ -5,7 +5,7 @@ import {PlainObject} from "plain-utils/utils/event";
5
5
  import '../utils/TableOption.space';
6
6
  import {PlcIndex} from "../../Table/standard/PlcIndex";
7
7
  import {AutoModule} from "../utils/AutoModule";
8
- import {iMouseEvent} from "plain-design-composition";
8
+ import {Fragment, iMouseEvent} from "plain-design-composition";
9
9
 
10
10
  declare module '../utils/TableOption.space' {
11
11
  namespace TableOptionSpace {
@@ -46,8 +46,8 @@ export const useTableOptionTable = AutoModule.createRegistration((
46
46
  hooks.onRenderColumns.use({
47
47
  processor: ({ list, render }) => {list.push({ key: 'index', seq: 0, render });},
48
48
  render: () => <>
49
- {config.indexing != false && <PlcIndex start={(pagination.state.page - 1) * pagination.state.size}/>}
50
- {render.default()}
49
+ {config.indexing != false && <PlcIndex start={(pagination.state.page - 1) * pagination.state.size} key="key_standard_index"/>}
50
+ <Fragment key="key_option_render">{render.default()}</Fragment>
51
51
  </>
52
52
  });
53
53
 
@@ -50,6 +50,7 @@ export namespace TableOptionSpace {
50
50
  * @date 2022.12.20 10:47
51
51
  */
52
52
  export interface iTableOptionCustomConfig {
53
+ title?: string, // 表格标题
53
54
  url?: iUrl, // 请求配置
54
55
  data?: any[], // 默认数据
55
56
  fill?: boolean, // 是否自动计算高度
@@ -118,6 +119,7 @@ export namespace TableOptionSpace {
118
119
  * @date 2023/2/7 9:47
119
120
  */
120
121
  export interface iTableOptionState {
122
+ isInit: boolean,
121
123
  getTable: () => null | iTableRefer,
122
124
  getAutoTable: () => null | iAutoTableRefer;
123
125
  list: PlainObject[],
@@ -160,6 +162,8 @@ export namespace TableOptionSpace {
160
162
  */
161
163
  export interface iTableOption {
162
164
  config: iTableOptionConfig;
165
+ useConfig: iTableOptionUseConfig,
166
+ defaultConfig: iTableOptionDefaultConfig,
163
167
  clone: iTableOptionClone;
164
168
  }
165
169
 
@@ -18,7 +18,7 @@
18
18
  @include statusMixin(badge-content) {
19
19
  background-color: $color-6;
20
20
  border-radius: 100px;
21
- color: white;
21
+ color: plv(pbfc);
22
22
  }
23
23
 
24
24
  &.badge-content-top {
@@ -7,7 +7,7 @@
7
7
  outline: none;
8
8
  position: relative;
9
9
  text-align: center;
10
- line-height: 1.5715;
10
+ line-height: plv(line-height);
11
11
  white-space: nowrap;
12
12
  display: inline-block;
13
13
  user-select: none;
@@ -37,7 +37,7 @@
37
37
  @include statusMixin(button) {
38
38
  background-color: $color-6;
39
39
  border-color: $color-6;
40
- color: white;
40
+ color: plv(pbfc);
41
41
  @include hover(button) {
42
42
  background-color: $color-4;
43
43
  border-color: $color-4;
@@ -48,7 +48,7 @@
48
48
  width: 100%;
49
49
  color: plv(text-2);
50
50
  padding: 9px 12px;
51
- line-height: 1.5715;
51
+ line-height: plv(line-height);
52
52
  }
53
53
 
54
54
  .card-poster {