yuang-framework-ui-pc 1.0.20 → 1.2.1

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 (398) hide show
  1. package/README.md +17 -41
  2. package/es/ele-admin-layout/components/layout-skeleton.d.ts +10 -0
  3. package/es/ele-admin-layout/components/layout-skeleton.js +47 -0
  4. package/es/ele-admin-layout/components/layout-tabs.d.ts +64 -0
  5. package/es/ele-admin-layout/components/layout-tabs.js +132 -0
  6. package/es/ele-admin-layout/components/layout-tool.d.ts +2 -0
  7. package/es/ele-admin-layout/components/layout-tool.js +21 -0
  8. package/es/ele-admin-layout/index.d.ts +293 -0
  9. package/es/ele-admin-layout/index.js +693 -0
  10. package/es/ele-admin-layout/props.d.ts +182 -0
  11. package/es/ele-admin-layout/props.js +169 -0
  12. package/es/ele-admin-layout/style/css-var.scss +14 -0
  13. package/es/ele-admin-layout/style/header.scss +192 -0
  14. package/es/ele-admin-layout/style/index.d.ts +1 -0
  15. package/es/ele-admin-layout/style/index.js +9 -0
  16. package/es/ele-admin-layout/style/index.scss +313 -0
  17. package/es/ele-admin-layout/style/sidebar.scss +187 -0
  18. package/es/ele-admin-layout/style/tabs.scss +59 -0
  19. package/es/ele-admin-layout/types.d.ts +54 -0
  20. package/es/ele-app/components/message-body.d.ts +46 -0
  21. package/es/ele-app/components/message-body.js +98 -0
  22. package/es/ele-app/components/message-box-icon.d.ts +31 -0
  23. package/es/ele-app/components/message-box-icon.js +63 -0
  24. package/es/ele-app/el.d.ts +304 -0
  25. package/es/ele-app/index.d.ts +4 -0
  26. package/es/ele-app/index.js +13 -0
  27. package/es/ele-app/plus.d.ts +181 -0
  28. package/es/ele-app/style/common/index.d.ts +1 -0
  29. package/es/ele-app/style/common/index.js +1 -0
  30. package/es/ele-app/style/common/index.scss +55 -0
  31. package/es/ele-app/style/css-var.scss +11 -0
  32. package/es/ele-app/style/index.d.ts +1 -0
  33. package/es/ele-app/style/index.js +4 -0
  34. package/es/ele-app/style/index.scss +4 -0
  35. package/es/ele-app/style/message/css-var.scss +8 -0
  36. package/es/ele-app/style/message/index.d.ts +1 -0
  37. package/es/ele-app/style/message/index.js +2 -0
  38. package/es/ele-app/style/message/index.scss +261 -0
  39. package/es/ele-app/style/overwrite/autocomplete/css-var.scss +8 -0
  40. package/es/ele-app/style/overwrite/autocomplete/index.d.ts +1 -0
  41. package/es/ele-app/style/overwrite/autocomplete/index.js +1 -0
  42. package/es/ele-app/style/overwrite/autocomplete/index.scss +33 -0
  43. package/es/ele-app/style/overwrite/backtop/index.d.ts +1 -0
  44. package/es/ele-app/style/overwrite/backtop/index.js +1 -0
  45. package/es/ele-app/style/overwrite/backtop/index.scss +8 -0
  46. package/es/ele-app/style/overwrite/cascader/css-var.scss +8 -0
  47. package/es/ele-app/style/overwrite/cascader/index.d.ts +1 -0
  48. package/es/ele-app/style/overwrite/cascader/index.js +1 -0
  49. package/es/ele-app/style/overwrite/cascader/index.scss +166 -0
  50. package/es/ele-app/style/overwrite/checkbox/css-var.scss +8 -0
  51. package/es/ele-app/style/overwrite/checkbox/index.d.ts +1 -0
  52. package/es/ele-app/style/overwrite/checkbox/index.js +1 -0
  53. package/es/ele-app/style/overwrite/checkbox/index.scss +161 -0
  54. package/es/ele-app/style/overwrite/color-picker/index.d.ts +1 -0
  55. package/es/ele-app/style/overwrite/color-picker/index.js +1 -0
  56. package/es/ele-app/style/overwrite/color-picker/index.scss +42 -0
  57. package/es/ele-app/style/overwrite/css-var.scss +33 -0
  58. package/es/ele-app/style/overwrite/date-picker/css-var.scss +16 -0
  59. package/es/ele-app/style/overwrite/date-picker/index.d.ts +1 -0
  60. package/es/ele-app/style/overwrite/date-picker/index.js +1 -0
  61. package/es/ele-app/style/overwrite/date-picker/index.scss +895 -0
  62. package/es/ele-app/style/overwrite/descriptions/css-var.scss +8 -0
  63. package/es/ele-app/style/overwrite/descriptions/index.d.ts +1 -0
  64. package/es/ele-app/style/overwrite/descriptions/index.js +1 -0
  65. package/es/ele-app/style/overwrite/descriptions/index.scss +52 -0
  66. package/es/ele-app/style/overwrite/index.d.ts +1 -0
  67. package/es/ele-app/style/overwrite/index.js +16 -0
  68. package/es/ele-app/style/overwrite/index.scss +16 -0
  69. package/es/ele-app/style/overwrite/input/css-var.scss +34 -0
  70. package/es/ele-app/style/overwrite/input/index.d.ts +1 -0
  71. package/es/ele-app/style/overwrite/input/index.js +1 -0
  72. package/es/ele-app/style/overwrite/input/index.scss +540 -0
  73. package/es/ele-app/style/overwrite/message-box/css-var.scss +8 -0
  74. package/es/ele-app/style/overwrite/message-box/index.d.ts +1 -0
  75. package/es/ele-app/style/overwrite/message-box/index.js +2 -0
  76. package/es/ele-app/style/overwrite/message-box/index.scss +148 -0
  77. package/es/ele-app/style/overwrite/notification/css-var.scss +8 -0
  78. package/es/ele-app/style/overwrite/notification/index.d.ts +1 -0
  79. package/es/ele-app/style/overwrite/notification/index.js +2 -0
  80. package/es/ele-app/style/overwrite/notification/index.scss +65 -0
  81. package/es/ele-app/style/overwrite/popper/css-var.scss +14 -0
  82. package/es/ele-app/style/overwrite/popper/index.d.ts +1 -0
  83. package/es/ele-app/style/overwrite/popper/index.js +1 -0
  84. package/es/ele-app/style/overwrite/popper/index.scss +9 -0
  85. package/es/ele-app/style/overwrite/radio/css-var.scss +8 -0
  86. package/es/ele-app/style/overwrite/radio/index.d.ts +1 -0
  87. package/es/ele-app/style/overwrite/radio/index.js +1 -0
  88. package/es/ele-app/style/overwrite/radio/index.scss +128 -0
  89. package/es/ele-app/style/overwrite/select/css-var.scss +8 -0
  90. package/es/ele-app/style/overwrite/select/index.d.ts +1 -0
  91. package/es/ele-app/style/overwrite/select/index.js +1 -0
  92. package/es/ele-app/style/overwrite/select/index.scss +203 -0
  93. package/es/ele-app/style/overwrite/tag/css-var.scss +8 -0
  94. package/es/ele-app/style/overwrite/tag/index.d.ts +1 -0
  95. package/es/ele-app/style/overwrite/tag/index.js +1 -0
  96. package/es/ele-app/style/overwrite/tag/index.scss +346 -0
  97. package/es/ele-app/style/overwrite/tree/css-var.scss +8 -0
  98. package/es/ele-app/style/overwrite/tree/index.d.ts +1 -0
  99. package/es/ele-app/style/overwrite/tree/index.js +1 -0
  100. package/es/ele-app/style/overwrite/tree/index.scss +106 -0
  101. package/es/ele-app/style/overwrite/tree-select/css-var.scss +8 -0
  102. package/es/ele-app/style/overwrite/tree-select/index.d.ts +1 -0
  103. package/es/ele-app/style/overwrite/tree-select/index.js +1 -0
  104. package/es/ele-app/style/overwrite/tree-select/index.scss +108 -0
  105. package/es/ele-app/style/scrollbar/css-var.scss +71 -0
  106. package/es/ele-app/style/scrollbar/index.d.ts +1 -0
  107. package/es/ele-app/style/scrollbar/index.js +1 -0
  108. package/es/ele-app/style/scrollbar/index.scss +9 -0
  109. package/es/ele-app/types.d.ts +48 -0
  110. package/es/ele-pro-layout/components/pro-iframe.vue +120 -0
  111. package/es/ele-pro-layout/index.vue +1277 -0
  112. package/es/ele-pro-layout/props.ts +255 -0
  113. package/es/ele-pro-layout/style/index.scss +41 -0
  114. package/es/ele-pro-layout/style/index.ts +2 -0
  115. package/es/ele-pro-layout/types.ts +212 -0
  116. package/es/ele-pro-layout/util.ts +277 -0
  117. package/es/ele-tabs/index.d.ts +149 -0
  118. package/es/ele-tabs/index.js +480 -0
  119. package/es/ele-tabs/props.d.ts +82 -0
  120. package/es/ele-tabs/props.js +46 -0
  121. package/es/ele-tabs/style/css-var.scss +8 -0
  122. package/es/ele-tabs/style/index.d.ts +1 -0
  123. package/es/ele-tabs/style/index.js +5 -0
  124. package/es/ele-tabs/style/index.scss +1074 -0
  125. package/es/ele-tabs/types.d.ts +70 -0
  126. package/es/icons/AnalysisOutlined.d.ts +2 -0
  127. package/es/icons/AnalysisOutlined.js +35 -0
  128. package/es/icons/ApplicationOutlined.d.ts +2 -0
  129. package/es/icons/ApplicationOutlined.js +26 -0
  130. package/es/icons/AppstoreAddOutlined.d.ts +2 -0
  131. package/es/icons/AppstoreAddOutlined.js +35 -0
  132. package/es/icons/AppstoreOutlined.d.ts +2 -0
  133. package/es/icons/AppstoreOutlined.js +35 -0
  134. package/es/icons/ArrowDown.d.ts +2 -0
  135. package/es/icons/ArrowDown.js +31 -0
  136. package/es/icons/ArrowDownOutlined.d.ts +2 -0
  137. package/es/icons/ArrowDownOutlined.js +30 -0
  138. package/es/icons/ArrowLeft.d.ts +2 -0
  139. package/es/icons/ArrowLeft.js +31 -0
  140. package/es/icons/ArrowLeftOutlined.d.ts +2 -0
  141. package/es/icons/ArrowLeftOutlined.js +30 -0
  142. package/es/icons/ArrowRight.d.ts +2 -0
  143. package/es/icons/ArrowRight.js +31 -0
  144. package/es/icons/ArrowRightOutlined.d.ts +2 -0
  145. package/es/icons/ArrowRightOutlined.js +30 -0
  146. package/es/icons/ArrowUp.d.ts +2 -0
  147. package/es/icons/ArrowUp.js +31 -0
  148. package/es/icons/ArrowUpOutlined.d.ts +2 -0
  149. package/es/icons/ArrowUpOutlined.js +30 -0
  150. package/es/icons/BellOutlined.d.ts +2 -0
  151. package/es/icons/BellOutlined.js +29 -0
  152. package/es/icons/BookOutlined.d.ts +2 -0
  153. package/es/icons/BookOutlined.js +29 -0
  154. package/es/icons/CalendarOutlined.d.ts +2 -0
  155. package/es/icons/CalendarOutlined.js +29 -0
  156. package/es/icons/CaretDownFilled.d.ts +2 -0
  157. package/es/icons/CaretDownFilled.js +26 -0
  158. package/es/icons/CaretUpFilled.d.ts +2 -0
  159. package/es/icons/CaretUpFilled.js +26 -0
  160. package/es/icons/CheckCircleFilled.d.ts +2 -0
  161. package/es/icons/CheckCircleFilled.js +26 -0
  162. package/es/icons/CheckCircleOutlined.d.ts +2 -0
  163. package/es/icons/CheckCircleOutlined.js +32 -0
  164. package/es/icons/CheckOutlined.d.ts +2 -0
  165. package/es/icons/CheckOutlined.js +30 -0
  166. package/es/icons/CityOutlined.d.ts +2 -0
  167. package/es/icons/CityOutlined.js +35 -0
  168. package/es/icons/ClockCircleOutlined.d.ts +2 -0
  169. package/es/icons/ClockCircleOutlined.js +32 -0
  170. package/es/icons/CloseCircleFilled.d.ts +2 -0
  171. package/es/icons/CloseCircleFilled.js +26 -0
  172. package/es/icons/CloseCircleOutlined.d.ts +2 -0
  173. package/es/icons/CloseCircleOutlined.js +31 -0
  174. package/es/icons/CloseOutlined.d.ts +2 -0
  175. package/es/icons/CloseOutlined.js +30 -0
  176. package/es/icons/CloudUploadOutlined.d.ts +2 -0
  177. package/es/icons/CloudUploadOutlined.js +32 -0
  178. package/es/icons/ClusterOutlined.d.ts +2 -0
  179. package/es/icons/ClusterOutlined.js +29 -0
  180. package/es/icons/CodeOutlined.d.ts +2 -0
  181. package/es/icons/CodeOutlined.js +34 -0
  182. package/es/icons/ColumnHeightOutlined.d.ts +2 -0
  183. package/es/icons/ColumnHeightOutlined.js +35 -0
  184. package/es/icons/CompassOutlined.d.ts +2 -0
  185. package/es/icons/CompassOutlined.js +34 -0
  186. package/es/icons/CompressOutlined.d.ts +2 -0
  187. package/es/icons/CompressOutlined.js +36 -0
  188. package/es/icons/ConnectionOutlined.d.ts +2 -0
  189. package/es/icons/ConnectionOutlined.js +31 -0
  190. package/es/icons/ControlOutlined.d.ts +2 -0
  191. package/es/icons/ControlOutlined.js +33 -0
  192. package/es/icons/CopyOutlined.d.ts +2 -0
  193. package/es/icons/CopyOutlined.js +35 -0
  194. package/es/icons/CornerLeftFilled.d.ts +2 -0
  195. package/es/icons/CornerLeftFilled.js +26 -0
  196. package/es/icons/CornerRightFilled.d.ts +2 -0
  197. package/es/icons/CornerRightFilled.js +26 -0
  198. package/es/icons/CpuOutlined.d.ts +2 -0
  199. package/es/icons/CpuOutlined.js +30 -0
  200. package/es/icons/DashboardOutlined.d.ts +2 -0
  201. package/es/icons/DashboardOutlined.js +37 -0
  202. package/es/icons/DatabaseOutlined.d.ts +2 -0
  203. package/es/icons/DatabaseOutlined.js +35 -0
  204. package/es/icons/DeleteOutlined.d.ts +2 -0
  205. package/es/icons/DeleteOutlined.js +34 -0
  206. package/es/icons/DesktopOutlined.d.ts +2 -0
  207. package/es/icons/DesktopOutlined.js +29 -0
  208. package/es/icons/DownloadOutlined.d.ts +2 -0
  209. package/es/icons/DownloadOutlined.js +32 -0
  210. package/es/icons/DragOutlined.d.ts +2 -0
  211. package/es/icons/DragOutlined.js +30 -0
  212. package/es/icons/EditOutlined.d.ts +2 -0
  213. package/es/icons/EditOutlined.js +32 -0
  214. package/es/icons/EllipsisOutlined.d.ts +2 -0
  215. package/es/icons/EllipsisOutlined.js +42 -0
  216. package/es/icons/EnvironmentOutlined.d.ts +2 -0
  217. package/es/icons/EnvironmentOutlined.js +31 -0
  218. package/es/icons/ExclamationCircleFilled.d.ts +2 -0
  219. package/es/icons/ExclamationCircleFilled.js +26 -0
  220. package/es/icons/ExpandOutlined.d.ts +2 -0
  221. package/es/icons/ExpandOutlined.js +36 -0
  222. package/es/icons/EyeOutlined.d.ts +2 -0
  223. package/es/icons/EyeOutlined.js +30 -0
  224. package/es/icons/FileOutlined.d.ts +2 -0
  225. package/es/icons/FileOutlined.js +35 -0
  226. package/es/icons/FilterFilled.d.ts +2 -0
  227. package/es/icons/FilterFilled.js +26 -0
  228. package/es/icons/FolderAddOutlined.d.ts +2 -0
  229. package/es/icons/FolderAddOutlined.js +31 -0
  230. package/es/icons/FolderOutlined.d.ts +2 -0
  231. package/es/icons/FolderOutlined.js +29 -0
  232. package/es/icons/FormOutlined.d.ts +2 -0
  233. package/es/icons/FormOutlined.js +31 -0
  234. package/es/icons/FullscreenExitOutlined.d.ts +2 -0
  235. package/es/icons/FullscreenExitOutlined.js +34 -0
  236. package/es/icons/FullscreenOutlined.d.ts +2 -0
  237. package/es/icons/FullscreenOutlined.js +34 -0
  238. package/es/icons/FundOutlined.d.ts +2 -0
  239. package/es/icons/FundOutlined.js +31 -0
  240. package/es/icons/GlobalOutlined.d.ts +2 -0
  241. package/es/icons/GlobalOutlined.js +28 -0
  242. package/es/icons/HolderOutlined.d.ts +2 -0
  243. package/es/icons/HolderOutlined.js +26 -0
  244. package/es/icons/HomeOutlined.d.ts +2 -0
  245. package/es/icons/HomeOutlined.js +29 -0
  246. package/es/icons/IdcardOutlined.d.ts +2 -0
  247. package/es/icons/IdcardOutlined.js +38 -0
  248. package/es/icons/InfoCircleFilled.d.ts +2 -0
  249. package/es/icons/InfoCircleFilled.js +26 -0
  250. package/es/icons/LinkOutlined.d.ts +2 -0
  251. package/es/icons/LinkOutlined.js +32 -0
  252. package/es/icons/LoadingDotOutlined.d.ts +2 -0
  253. package/es/icons/LoadingDotOutlined.js +29 -0
  254. package/es/icons/LoadingOutlined.d.ts +2 -0
  255. package/es/icons/LoadingOutlined.js +29 -0
  256. package/es/icons/LockOutlined.d.ts +2 -0
  257. package/es/icons/LockOutlined.js +32 -0
  258. package/es/icons/LogOutlined.d.ts +2 -0
  259. package/es/icons/LogOutlined.js +35 -0
  260. package/es/icons/LogoutOutlined.d.ts +2 -0
  261. package/es/icons/LogoutOutlined.js +31 -0
  262. package/es/icons/MailOutlined.d.ts +2 -0
  263. package/es/icons/MailOutlined.js +29 -0
  264. package/es/icons/MenuFoldOutlined.d.ts +2 -0
  265. package/es/icons/MenuFoldOutlined.js +28 -0
  266. package/es/icons/MenuOutlined.d.ts +2 -0
  267. package/es/icons/MenuOutlined.js +32 -0
  268. package/es/icons/MenuUnfoldOutlined.d.ts +2 -0
  269. package/es/icons/MenuUnfoldOutlined.js +28 -0
  270. package/es/icons/MessageOutlined.d.ts +2 -0
  271. package/es/icons/MessageOutlined.js +50 -0
  272. package/es/icons/MinusCircleOutlined.d.ts +2 -0
  273. package/es/icons/MinusCircleOutlined.js +31 -0
  274. package/es/icons/MobileOutlined.d.ts +2 -0
  275. package/es/icons/MobileOutlined.js +37 -0
  276. package/es/icons/MoonOutlined.d.ts +2 -0
  277. package/es/icons/MoonOutlined.js +29 -0
  278. package/es/icons/MoreOutlined.d.ts +2 -0
  279. package/es/icons/MoreOutlined.js +42 -0
  280. package/es/icons/PauseFilled.d.ts +2 -0
  281. package/es/icons/PauseFilled.js +30 -0
  282. package/es/icons/PieChartOutlined.d.ts +2 -0
  283. package/es/icons/PieChartOutlined.js +31 -0
  284. package/es/icons/PlayFilled.d.ts +2 -0
  285. package/es/icons/PlayFilled.js +26 -0
  286. package/es/icons/PlusCircleOutlined.d.ts +2 -0
  287. package/es/icons/PlusCircleOutlined.js +31 -0
  288. package/es/icons/PlusOutlined.d.ts +2 -0
  289. package/es/icons/PlusOutlined.js +29 -0
  290. package/es/icons/PrinterOutlined.d.ts +2 -0
  291. package/es/icons/PrinterOutlined.js +29 -0
  292. package/es/icons/ProtectOutlined.d.ts +2 -0
  293. package/es/icons/ProtectOutlined.js +32 -0
  294. package/es/icons/QuestionCircleFilled.d.ts +2 -0
  295. package/es/icons/QuestionCircleFilled.js +26 -0
  296. package/es/icons/QuestionCircleOutlined.d.ts +2 -0
  297. package/es/icons/QuestionCircleOutlined.js +39 -0
  298. package/es/icons/ReloadOutlined.d.ts +2 -0
  299. package/es/icons/ReloadOutlined.js +30 -0
  300. package/es/icons/ResizeOutlined.d.ts +2 -0
  301. package/es/icons/ResizeOutlined.js +30 -0
  302. package/es/icons/SearchOutlined.d.ts +2 -0
  303. package/es/icons/SearchOutlined.js +29 -0
  304. package/es/icons/SettingOutlined.d.ts +2 -0
  305. package/es/icons/SettingOutlined.js +31 -0
  306. package/es/icons/ShoppingOutlined.d.ts +2 -0
  307. package/es/icons/ShoppingOutlined.js +29 -0
  308. package/es/icons/SizeCompactOutlined.d.ts +2 -0
  309. package/es/icons/SizeCompactOutlined.js +34 -0
  310. package/es/icons/SizeMiddleOutlined.d.ts +2 -0
  311. package/es/icons/SizeMiddleOutlined.js +34 -0
  312. package/es/icons/SizeSlackOutlined.d.ts +2 -0
  313. package/es/icons/SizeSlackOutlined.js +34 -0
  314. package/es/icons/SortOutlined.d.ts +2 -0
  315. package/es/icons/SortOutlined.js +32 -0
  316. package/es/icons/StarFilled.d.ts +2 -0
  317. package/es/icons/StarFilled.js +26 -0
  318. package/es/icons/StepBackwardFilled.d.ts +2 -0
  319. package/es/icons/StepBackwardFilled.js +33 -0
  320. package/es/icons/StepForwardFilled.d.ts +2 -0
  321. package/es/icons/StepForwardFilled.js +33 -0
  322. package/es/icons/SuitcaseOutlined.d.ts +2 -0
  323. package/es/icons/SuitcaseOutlined.js +29 -0
  324. package/es/icons/SunOutlined.d.ts +2 -0
  325. package/es/icons/SunOutlined.js +29 -0
  326. package/es/icons/SwapOutlined.d.ts +2 -0
  327. package/es/icons/SwapOutlined.js +32 -0
  328. package/es/icons/SyncOutlined.d.ts +2 -0
  329. package/es/icons/SyncOutlined.js +32 -0
  330. package/es/icons/TableOutlined.d.ts +2 -0
  331. package/es/icons/TableOutlined.js +29 -0
  332. package/es/icons/TagOutlined.d.ts +2 -0
  333. package/es/icons/TagOutlined.js +31 -0
  334. package/es/icons/TimerOutlined.d.ts +2 -0
  335. package/es/icons/TimerOutlined.js +31 -0
  336. package/es/icons/UndoOutlined.d.ts +2 -0
  337. package/es/icons/UndoOutlined.js +30 -0
  338. package/es/icons/UnlockOutlined.d.ts +2 -0
  339. package/es/icons/UnlockOutlined.js +32 -0
  340. package/es/icons/UploadOutlined.d.ts +2 -0
  341. package/es/icons/UploadOutlined.js +32 -0
  342. package/es/icons/UserOutlined.d.ts +2 -0
  343. package/es/icons/UserOutlined.js +29 -0
  344. package/es/icons/VerticalAlignMiddleOutlined.d.ts +2 -0
  345. package/es/icons/VerticalAlignMiddleOutlined.js +32 -0
  346. package/es/icons/VerticalLeftOutlined.d.ts +2 -0
  347. package/es/icons/VerticalLeftOutlined.js +28 -0
  348. package/es/icons/VerticalRightOutlined.d.ts +2 -0
  349. package/es/icons/VerticalRightOutlined.js +28 -0
  350. package/es/icons/WarningOutlined.d.ts +2 -0
  351. package/es/icons/WarningOutlined.js +42 -0
  352. package/es/icons/ZoomInOutlined.d.ts +2 -0
  353. package/es/icons/ZoomInOutlined.js +31 -0
  354. package/es/icons/ZoomOutOutlined.d.ts +2 -0
  355. package/es/icons/ZoomOutOutlined.js +31 -0
  356. package/es/icons/index.d.ts +115 -0
  357. package/es/icons/index.js +232 -0
  358. package/es/utils/chart-theme-dark.d.ts +373 -0
  359. package/es/utils/chart-theme-dark.js +397 -0
  360. package/es/utils/chart-theme.d.ts +368 -0
  361. package/es/utils/chart-theme.js +392 -0
  362. package/es/utils/core.d.ts +168 -0
  363. package/es/utils/core.js +318 -0
  364. package/es/utils/hook.d.ts +113 -0
  365. package/es/utils/hook.js +264 -0
  366. package/es/utils/menu-util.d.ts +14 -0
  367. package/es/utils/menu-util.js +78 -0
  368. package/es/utils/message-box.d.ts +25 -0
  369. package/es/utils/message-box.js +98 -0
  370. package/es/utils/message.d.ts +66 -0
  371. package/es/utils/message.js +267 -0
  372. package/es/utils/resolvers.d.ts +18 -0
  373. package/es/utils/resolvers.js +50 -0
  374. package/es/utils/theme-util.d.ts +6 -0
  375. package/es/utils/theme-util.js +42 -0
  376. package/es/utils/validate.d.ts +182 -0
  377. package/es/utils/validate.js +197 -0
  378. package/package.json +184 -45
  379. package/typings/global.d.ts +64 -0
  380. package/dist/favicon.ico +0 -0
  381. package/dist/style.css +0 -1
  382. package/dist/yuang-framework-ui-pc.es.js +0 -78
  383. package/dist/yuang-framework-ui-pc.umd.js +0 -1
  384. package/lib/utils/vueRouterUtils.ts +0 -30
  385. package/src/App.vue +0 -31
  386. package/src/components/YuButton/index.vue +0 -35
  387. package/src/components/YuRow/index.vue +0 -16
  388. package/src/components/index.ts +0 -14
  389. package/src/main.ts +0 -42
  390. package/src/router/index.ts +0 -26
  391. package/src/shims-vue.d.ts +0 -10
  392. package/src/views/components/yu-button/index.vue +0 -15
  393. package/src/views/exception/403/components/icon-svg.vue +0 -276
  394. package/src/views/exception/403/index.vue +0 -25
  395. package/src/views/exception/404/components/icon-svg.vue +0 -288
  396. package/src/views/exception/404/index.vue +0 -25
  397. package/src/views/exception/500/components/icon-svg.vue +0 -331
  398. package/src/views/exception/500/index.vue +0 -25
@@ -0,0 +1,480 @@
1
+ import { defineComponent, inject, ref, computed, shallowRef, onMounted, onBeforeUnmount, watch, nextTick, resolveComponent, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementBlock, Fragment, renderList, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode, createCommentVNode } from "vue";
2
+ import SortableJs from "sortablejs";
3
+ import { ElTabs, ElTabPane, ElIcon } from "element-plus";
4
+ import { CornerLeftFilled, CornerRightFilled } from "../icons";
5
+ import { pick, omit } from "../utils/core";
6
+ import { useTimer, useMousewheel, useTouchEvent } from "../utils/hook";
7
+ import EleDropdown from "../ele-dropdown/index";
8
+ import { tabsProps, tabsEmits, TAB_WRAP_KEY, tabPropKeys } from "./props";
9
+ const _sfc_main = defineComponent({
10
+ name: "EleTabs",
11
+ components: {
12
+ ElTabs,
13
+ ElTabPane,
14
+ ElIcon,
15
+ EleDropdown,
16
+ CornerLeftFilled,
17
+ CornerRightFilled
18
+ },
19
+ props: tabsProps,
20
+ emits: tabsEmits,
21
+ setup(props, { emit }) {
22
+ let sortableIns = null;
23
+ let currentSortItemId = null;
24
+ let contextMenuTabItem = null;
25
+ let contextMenuTabName = null;
26
+ const wrapProps = inject(TAB_WRAP_KEY, null);
27
+ const [startScrollTimer, _stopScrollTimer, scrollWaiting] = useTimer(320);
28
+ const { bindMousewheel, unbindMousewheel } = useMousewheel((param) => {
29
+ const { e, direction } = param;
30
+ scrollTabs(direction === "up" ? "prev" : "next", () => {
31
+ e.preventDefault();
32
+ e.stopPropagation();
33
+ });
34
+ });
35
+ const { bindTouchEvent, unbindTouchEvent } = useTouchEvent({
36
+ end: (param) => {
37
+ if (param.distanceX && param.distanceX > 80) {
38
+ scrollTabs("prev");
39
+ } else if (param.distanceX && param.distanceX < 80) {
40
+ scrollTabs("next");
41
+ }
42
+ }
43
+ });
44
+ const [startGhostTimer] = useTimer(100);
45
+ const tabRef = ref(null);
46
+ const isOnlyTab = computed(() => wrapProps == null);
47
+ const tabSize = computed(
48
+ () => wrapProps == null ? props.size : wrapProps.size
49
+ );
50
+ const tabType = computed(
51
+ () => wrapProps == null ? props.type : wrapProps.type
52
+ );
53
+ const tabProps = computed(() => {
54
+ return pick(props, tabPropKeys);
55
+ });
56
+ const ctxMenuDropdownRef = ref(null);
57
+ const ctxMenuDropdownItems = shallowRef([]);
58
+ const ctxMenuDropdownVirtualRef = ref();
59
+ const updateModelValue = (name) => {
60
+ emit("update:modelValue", name);
61
+ };
62
+ const handleContextmenu = (e) => {
63
+ if (!props.contextMenu) {
64
+ return;
65
+ }
66
+ const el = e.target;
67
+ if (el && (el.classList.contains("is-icon-close") || el.classList.contains("el-tabs__nav") || el.classList.contains("el-tabs__item"))) {
68
+ e.preventDefault();
69
+ }
70
+ };
71
+ const handleTabClick = (pane, e) => {
72
+ emit("tabClick", pane, e);
73
+ };
74
+ const handleTabChange = (name) => {
75
+ emit("tabChange", name);
76
+ };
77
+ const handleTabRemove = (name) => {
78
+ emit("tabRemove", name);
79
+ };
80
+ const handleTabAdd = () => {
81
+ emit("tabAdd");
82
+ };
83
+ const handleEdit = (name, action) => {
84
+ emit("edit", name, action);
85
+ };
86
+ const handleItemClick = (item, tabName, e) => {
87
+ if (props.handleClick) {
88
+ e.stopPropagation();
89
+ }
90
+ emit("tabItemClick", {
91
+ item,
92
+ name: item ? item.name : tabName,
93
+ active: props.modelValue
94
+ });
95
+ };
96
+ const handleItemCtxMenuVisible = (visible) => {
97
+ if (visible) {
98
+ emit(
99
+ "tabContextOpen",
100
+ ctxMenuDropdownRef.value,
101
+ contextMenuTabItem,
102
+ contextMenuTabName
103
+ );
104
+ }
105
+ };
106
+ const handleItemCtxMenuClick = (command) => {
107
+ if (contextMenuTabItem != null || contextMenuTabName != null) {
108
+ emit("tabContextMenu", {
109
+ command,
110
+ item: contextMenuTabItem,
111
+ name: contextMenuTabItem ? contextMenuTabItem.name : contextMenuTabName,
112
+ active: props.modelValue
113
+ });
114
+ }
115
+ };
116
+ const getContextMenus = (item, tabName) => {
117
+ if (typeof props.contextMenus === "function") {
118
+ return props.contextMenus(item, tabName);
119
+ }
120
+ return props.contextMenus;
121
+ };
122
+ const hideAllDropdown = () => {
123
+ if (ctxMenuDropdownRef.value) {
124
+ ctxMenuDropdownRef.value.handleClose();
125
+ }
126
+ };
127
+ const showItemContextMenu = (item, tabName, itemEl) => {
128
+ if (contextMenuTabItem != null && contextMenuTabItem === item || contextMenuTabName != null && contextMenuTabName === tabName) {
129
+ return;
130
+ }
131
+ hideAllDropdown();
132
+ nextTick(() => {
133
+ contextMenuTabItem = item;
134
+ contextMenuTabName = tabName;
135
+ ctxMenuDropdownItems.value = getContextMenus(item, tabName) || [];
136
+ ctxMenuDropdownVirtualRef.value = itemEl;
137
+ if (props.contextMenu && ctxMenuDropdownItems.value.length) {
138
+ nextTick(() => {
139
+ ctxMenuDropdownRef.value && ctxMenuDropdownRef.value.handleOpen();
140
+ });
141
+ }
142
+ });
143
+ };
144
+ const handleItemContextmenu = (item, tabName, e) => {
145
+ const itemEl = e.currentTarget;
146
+ if (!props.contextMenu || ctxMenuDropdownVirtualRef.value === itemEl) {
147
+ return;
148
+ }
149
+ e.preventDefault();
150
+ showItemContextMenu(item, tabName, itemEl);
151
+ };
152
+ const getHeaderEl = () => {
153
+ const tabEl = tabRef.value ? tabRef.value.$el : void 0;
154
+ return tabEl ? tabEl.querySelector(".el-tabs__header") : void 0;
155
+ };
156
+ const getNavEl = () => {
157
+ const headerEl = getHeaderEl();
158
+ return headerEl ? headerEl.querySelector(".el-tabs__nav") : void 0;
159
+ };
160
+ const updateActiveBar = () => {
161
+ const el = getNavEl();
162
+ if (el) {
163
+ const bar = el.querySelector(".el-tabs__active-bar");
164
+ if (bar) {
165
+ bar.style.width = "0px";
166
+ }
167
+ }
168
+ };
169
+ const scrollTabs = (direction, done) => {
170
+ const tabEl = getHeaderEl();
171
+ if (tabEl && !scrollWaiting.value) {
172
+ const el = tabEl.querySelector(`.el-tabs__nav-${direction}`);
173
+ if (el && !el.classList.contains("is-disabled")) {
174
+ startScrollTimer();
175
+ done && done();
176
+ el.click();
177
+ }
178
+ }
179
+ };
180
+ const checkSortGhostTab = () => {
181
+ const navEl = getNavEl();
182
+ if (navEl == null) {
183
+ return;
184
+ }
185
+ if (currentSortItemId == null) {
186
+ const el2 = navEl.querySelector(".el-tabs__item.sortable-ghost");
187
+ if (el2 != null) {
188
+ el2.classList.remove("sortable-ghost");
189
+ }
190
+ return;
191
+ }
192
+ const el = navEl.querySelector(
193
+ `.el-tabs__item[id="${currentSortItemId}"]`
194
+ );
195
+ if (el != null) {
196
+ el.classList.add("sortable-ghost");
197
+ }
198
+ };
199
+ const bindDragSort = () => {
200
+ unbindDragSort();
201
+ const navEl = getNavEl();
202
+ if (!props.sortable || !navEl) {
203
+ return;
204
+ }
205
+ sortableIns = new SortableJs(navEl, {
206
+ draggable: ".el-tabs__item",
207
+ delay: 20,
208
+ onUpdate: ({ oldDraggableIndex, newDraggableIndex }) => {
209
+ if (typeof oldDraggableIndex === "number" && typeof newDraggableIndex === "number") {
210
+ const data = [...props.items];
211
+ data.splice(
212
+ newDraggableIndex,
213
+ 0,
214
+ data.splice(oldDraggableIndex, 1)[0]
215
+ );
216
+ emit("tabSortChange", data);
217
+ }
218
+ },
219
+ onStart: (e) => {
220
+ currentSortItemId = e.item.getAttribute("id");
221
+ checkSortGhostTab();
222
+ startGhostTimer(() => {
223
+ checkSortGhostTab();
224
+ });
225
+ },
226
+ onEnd: () => {
227
+ currentSortItemId = null;
228
+ checkSortGhostTab();
229
+ },
230
+ onChange: () => {
231
+ checkSortGhostTab();
232
+ startGhostTimer(() => {
233
+ checkSortGhostTab();
234
+ });
235
+ },
236
+ onMove: () => {
237
+ checkSortGhostTab();
238
+ startGhostTimer(() => {
239
+ checkSortGhostTab();
240
+ });
241
+ },
242
+ setData: () => {
243
+ }
244
+ });
245
+ };
246
+ const unbindDragSort = () => {
247
+ sortableIns && sortableIns.destroy();
248
+ sortableIns = null;
249
+ currentSortItemId = null;
250
+ };
251
+ const initMousewheelEvent = () => {
252
+ const el = getHeaderEl();
253
+ if (el != null) {
254
+ unbindMousewheel(el);
255
+ if (props.mousewheel) {
256
+ bindMousewheel(el);
257
+ }
258
+ }
259
+ };
260
+ const initTouchEvent = () => {
261
+ const el = getHeaderEl();
262
+ if (el != null) {
263
+ unbindTouchEvent(el);
264
+ if (!props.sortable) {
265
+ bindTouchEvent(el);
266
+ }
267
+ }
268
+ };
269
+ if (wrapProps && wrapProps.setTabMethods) {
270
+ wrapProps.setTabMethods({
271
+ triggerTabItemClick: handleItemClick,
272
+ triggerItemContextMenu: handleItemContextmenu
273
+ });
274
+ }
275
+ onMounted(() => {
276
+ initMousewheelEvent();
277
+ initTouchEvent();
278
+ bindDragSort();
279
+ });
280
+ onBeforeUnmount(() => {
281
+ if (wrapProps && wrapProps.setTabMethods) {
282
+ wrapProps.setTabMethods({
283
+ triggerTabItemClick: void 0,
284
+ triggerItemContextMenu: void 0
285
+ });
286
+ }
287
+ contextMenuTabItem = null;
288
+ contextMenuTabName = null;
289
+ const el = getHeaderEl();
290
+ if (el != null) {
291
+ unbindMousewheel(el);
292
+ unbindTouchEvent(el);
293
+ }
294
+ unbindDragSort();
295
+ });
296
+ watch(
297
+ () => props.sortable,
298
+ () => {
299
+ bindDragSort();
300
+ initTouchEvent();
301
+ }
302
+ );
303
+ watch(
304
+ () => props.mousewheel,
305
+ () => {
306
+ initMousewheelEvent();
307
+ }
308
+ );
309
+ return {
310
+ omit,
311
+ tabRef,
312
+ isOnlyTab,
313
+ tabSize,
314
+ tabType,
315
+ tabProps,
316
+ ctxMenuDropdownRef,
317
+ ctxMenuDropdownItems,
318
+ ctxMenuDropdownVirtualRef,
319
+ updateModelValue,
320
+ handleContextmenu,
321
+ handleTabClick,
322
+ handleTabChange,
323
+ handleTabRemove,
324
+ handleTabAdd,
325
+ handleEdit,
326
+ handleItemClick,
327
+ handleItemCtxMenuVisible,
328
+ handleItemCtxMenuClick,
329
+ handleItemContextmenu,
330
+ hideAllDropdown,
331
+ updateActiveBar,
332
+ scrollTabs
333
+ };
334
+ }
335
+ });
336
+ const _export_sfc = (sfc, props) => {
337
+ const target = sfc.__vccOpts || sfc;
338
+ for (const [key, val] of props) {
339
+ target[key] = val;
340
+ }
341
+ return target;
342
+ };
343
+ const _hoisted_1 = ["onClick", "onContextmenu"];
344
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
345
+ const _component_CornerLeftFilled = resolveComponent("CornerLeftFilled");
346
+ const _component_ElIcon = resolveComponent("ElIcon");
347
+ const _component_CornerRightFilled = resolveComponent("CornerRightFilled");
348
+ const _component_ElTabPane = resolveComponent("ElTabPane");
349
+ const _component_EleDropdown = resolveComponent("EleDropdown");
350
+ const _component_ElTabs = resolveComponent("ElTabs");
351
+ return openBlock(), createBlock(_component_ElTabs, mergeProps(_ctx.tabProps, {
352
+ ref: "tabRef",
353
+ type: _ctx.tabType === "card" || _ctx.tabType === "border-card" ? _ctx.tabType : void 0,
354
+ class: [
355
+ "ele-tabs",
356
+ { "ele-tabs-wrap": _ctx.isOnlyTab },
357
+ { "is-small": _ctx.tabSize === "small" },
358
+ { "is-large": _ctx.tabSize === "large" },
359
+ { "is-default": !_ctx.tabType || _ctx.tabType === "default" },
360
+ { "is-plain": _ctx.tabType === "plain" },
361
+ { "is-simple": _ctx.tabType === "simple" },
362
+ { "is-indicator": _ctx.tabType === "indicator" },
363
+ { "is-button": _ctx.tabType === "button" },
364
+ { "is-tag": _ctx.tabType === "tag" },
365
+ { "is-center": _ctx.center },
366
+ { "is-sortable": _ctx.sortable },
367
+ { "is-flex-table": _ctx.flexTable }
368
+ ],
369
+ "onUpdate:modelValue": _ctx.updateModelValue,
370
+ onTabClick: _ctx.handleTabClick,
371
+ onTabChange: _ctx.handleTabChange,
372
+ onTabRemove: _ctx.handleTabRemove,
373
+ onTabAdd: _ctx.handleTabAdd,
374
+ onEdit: _ctx.handleEdit,
375
+ onContextmenu: _ctx.handleContextmenu
376
+ }), createSlots({
377
+ default: withCtx(() => [
378
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.items, (item, index2) => {
379
+ return openBlock(), createBlock(_component_ElTabPane, mergeProps({
380
+ key: [
381
+ index2,
382
+ item.name,
383
+ item.label,
384
+ !!item.closable,
385
+ !!item.disabled,
386
+ !!item.lazy
387
+ ].join("-"),
388
+ ref_for: true
389
+ }, _ctx.omit(item, ["slot", "meta"])), createSlots({
390
+ label: withCtx(() => [
391
+ createElementVNode("div", {
392
+ class: "ele-tab-title",
393
+ onClick: (e) => _ctx.handleItemClick(item, void 0, e),
394
+ onContextmenu: (e) => _ctx.handleItemContextmenu(item, void 0, e)
395
+ }, [
396
+ renderSlot(_ctx.$slots, "label", {
397
+ item,
398
+ label: item.label,
399
+ active: _ctx.modelValue
400
+ }, () => [
401
+ createTextVNode(toDisplayString(item.label), 1)
402
+ ])
403
+ ], 40, _hoisted_1),
404
+ _ctx.tabType === "simple" || _ctx.tabType === "indicator" ? (openBlock(), createBlock(_component_ElIcon, {
405
+ key: 0,
406
+ class: "ele-tab-corner-left"
407
+ }, {
408
+ default: withCtx(() => [
409
+ createVNode(_component_CornerLeftFilled)
410
+ ]),
411
+ _: 1
412
+ })) : createCommentVNode("", true),
413
+ _ctx.tabType === "simple" || _ctx.tabType === "indicator" ? (openBlock(), createBlock(_component_ElIcon, {
414
+ key: 1,
415
+ class: "ele-tab-corner-right"
416
+ }, {
417
+ default: withCtx(() => [
418
+ createVNode(_component_CornerRightFilled)
419
+ ]),
420
+ _: 1
421
+ })) : createCommentVNode("", true)
422
+ ]),
423
+ _: 2
424
+ }, [
425
+ item.name && _ctx.$slots[item.slot || item.name] ? {
426
+ name: "default",
427
+ fn: withCtx(() => [
428
+ renderSlot(_ctx.$slots, item.slot || item.name, { item })
429
+ ]),
430
+ key: "0"
431
+ } : void 0
432
+ ]), 1040);
433
+ }), 128)),
434
+ _ctx.contextMenu ? (openBlock(), createBlock(_component_EleDropdown, mergeProps(
435
+ {
436
+ key: 0,
437
+ triggerKeys: [],
438
+ persistent: false,
439
+ placement: "bottom-start",
440
+ popperClass: "ele-tab-popup",
441
+ popperOptions: {
442
+ modifiers: [{ name: "offset", options: { offset: [0, 8] } }]
443
+ }
444
+ },
445
+ !_ctx.contextMenu || typeof _ctx.contextMenu == "boolean" ? {} : _ctx.contextMenu,
446
+ {
447
+ ref: "ctxMenuDropdownRef",
448
+ componentType: "pro",
449
+ preventContextmenu: true,
450
+ trigger: "contextmenu",
451
+ virtualTriggering: true,
452
+ virtualRef: _ctx.ctxMenuDropdownVirtualRef,
453
+ disabled: !_ctx.ctxMenuDropdownItems.length,
454
+ items: _ctx.ctxMenuDropdownItems,
455
+ onCommand: _ctx.handleItemCtxMenuClick,
456
+ onVisibleChange: _ctx.handleItemCtxMenuVisible
457
+ }
458
+ ), null, 16, ["virtualRef", "disabled", "items", "onCommand", "onVisibleChange"])) : createCommentVNode("", true)
459
+ ]),
460
+ _: 2
461
+ }, [
462
+ _ctx.$slots["add-icon"] ? {
463
+ name: "add-icon",
464
+ fn: withCtx(() => [
465
+ renderSlot(_ctx.$slots, "add-icon")
466
+ ]),
467
+ key: "0"
468
+ } : _ctx.$slots.addIcon ? {
469
+ name: "addIcon",
470
+ fn: withCtx(() => [
471
+ renderSlot(_ctx.$slots, "addIcon")
472
+ ]),
473
+ key: "1"
474
+ } : void 0
475
+ ]), 1040, ["type", "class", "onUpdate:modelValue", "onTabClick", "onTabChange", "onTabRemove", "onTabAdd", "onEdit", "onContextmenu"]);
476
+ }
477
+ const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
478
+ export {
479
+ index as default
480
+ };
@@ -0,0 +1,82 @@
1
+ import { PropType, ExtractPropTypes, InjectionKey } from 'vue';
2
+ import { tabsProps as elTabsProps } from 'element-plus';
3
+ import { EleDropdownProps, EleDropdownInstance } from '../ele-app/plus';
4
+ import { TabPaneItem, TabSize, TabType, ContextMenus, TabEventOption, TabWrapProvide } from './types';
5
+
6
+ /**
7
+ * 属性
8
+ */
9
+ export declare const tabsProps: {
10
+ /** 标签页数据 */
11
+ items: {
12
+ type: PropType<TabPaneItem[]>;
13
+ required: boolean;
14
+ };
15
+ /** 尺寸 */
16
+ size: PropType<TabSize>;
17
+ /** 风格类型 */
18
+ type: PropType<TabType>;
19
+ /** 标签是否居中显示 */
20
+ center: BooleanConstructor;
21
+ /** 是否支持右键菜单 */
22
+ contextMenu: PropType<boolean | EleDropdownProps>;
23
+ /** 右键菜单 */
24
+ contextMenus: PropType<ContextMenus>;
25
+ /** 是否支持拖动排序 */
26
+ sortable: BooleanConstructor;
27
+ /** 是否支持鼠标滚轮滑动 */
28
+ mousewheel: BooleanConstructor;
29
+ /** 是否自己处理页签点击事件 */
30
+ handleClick: BooleanConstructor;
31
+ /** 内部表格是否弹性布局 */
32
+ flexTable: BooleanConstructor;
33
+ closable: BooleanConstructor;
34
+ addable: BooleanConstructor;
35
+ modelValue: {
36
+ readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
37
+ readonly required: false;
38
+ readonly validator: ((val: unknown) => boolean) | undefined;
39
+ __epPropKey: true;
40
+ };
41
+ editable: BooleanConstructor;
42
+ tabPosition: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, "top" | "bottom" | "left" | "right", unknown, "top", boolean>;
43
+ beforeLeave: import('element-plus/es/utils/index').EpPropFinalized<(new (...args: any[]) => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | (() => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | {
44
+ (): (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>;
45
+ new (): any;
46
+ readonly prototype: any;
47
+ } | ((new (...args: any[]) => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | (() => (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>) | {
48
+ (): (newName: import('element-plus').TabPaneName, oldName: import('element-plus').TabPaneName) => import('element-plus/es/utils/typescript').Awaitable<void | boolean>;
49
+ new (): any;
50
+ readonly prototype: any;
51
+ })[], unknown, unknown, () => true, boolean>;
52
+ stretch: BooleanConstructor;
53
+ };
54
+ export type TabsProps = ExtractPropTypes<typeof tabsProps>;
55
+ /**
56
+ * 事件
57
+ */
58
+ export declare const tabsEmits: {
59
+ /** 页签点击事件 */
60
+ tabItemClick: (_opt: TabEventOption) => boolean;
61
+ /** 页签右键菜单项点击事件 */
62
+ tabContextMenu: (_opt: TabEventOption) => boolean;
63
+ /** 页签右键菜单打开事件 */
64
+ tabContextOpen: (_ref: EleDropdownInstance, _item?: TabPaneItem | null, _name?: string | number | null) => boolean;
65
+ /** 拖动排序改变事件 */
66
+ tabSortChange: (_data: TabPaneItem[]) => boolean;
67
+ "update:modelValue": (name: import('element-plus').TabPaneName) => boolean;
68
+ tabClick: (pane: import('element-plus').TabsPaneContext, ev: Event) => boolean;
69
+ tabChange: (name: import('element-plus').TabPaneName) => boolean;
70
+ edit: (paneName: import('element-plus').TabPaneName | undefined, action: "remove" | "add") => boolean;
71
+ tabRemove: (name: import('element-plus').TabPaneName) => boolean;
72
+ tabAdd: () => boolean;
73
+ };
74
+ /**
75
+ * 标签页组件属性名
76
+ */
77
+ export type TabPropKeys = Array<keyof typeof elTabsProps>;
78
+ export declare const tabPropKeys: TabPropKeys;
79
+ /**
80
+ * 标签页容器依赖注入key
81
+ */
82
+ export declare const TAB_WRAP_KEY: InjectionKey<TabWrapProvide>;
@@ -0,0 +1,46 @@
1
+ import { tabsProps as tabsProps$1, tabsEmits as tabsEmits$1 } from "element-plus";
2
+ const tabsProps = {
3
+ ...tabsProps$1,
4
+ /** 标签页数据 */
5
+ items: {
6
+ type: Array,
7
+ required: true
8
+ },
9
+ /** 尺寸 */
10
+ size: String,
11
+ /** 风格类型 */
12
+ type: String,
13
+ /** 标签是否居中显示 */
14
+ center: Boolean,
15
+ /** 是否支持右键菜单 */
16
+ contextMenu: [Boolean, Object],
17
+ /** 右键菜单 */
18
+ contextMenus: [Array, Function],
19
+ /** 是否支持拖动排序 */
20
+ sortable: Boolean,
21
+ /** 是否支持鼠标滚轮滑动 */
22
+ mousewheel: Boolean,
23
+ /** 是否自己处理页签点击事件 */
24
+ handleClick: Boolean,
25
+ /** 内部表格是否弹性布局 */
26
+ flexTable: Boolean
27
+ };
28
+ const tabsEmits = {
29
+ ...tabsEmits$1,
30
+ /** 页签点击事件 */
31
+ tabItemClick: (_opt) => true,
32
+ /** 页签右键菜单项点击事件 */
33
+ tabContextMenu: (_opt) => true,
34
+ /** 页签右键菜单打开事件 */
35
+ tabContextOpen: (_ref, _item, _name) => true,
36
+ /** 拖动排序改变事件 */
37
+ tabSortChange: (_data) => true
38
+ };
39
+ const tabPropKeys = Object.keys(tabsProps$1);
40
+ const TAB_WRAP_KEY = Symbol("tabWrap");
41
+ export {
42
+ TAB_WRAP_KEY,
43
+ tabPropKeys,
44
+ tabsEmits,
45
+ tabsProps
46
+ };
@@ -0,0 +1,8 @@
1
+ @use '../../style/util.scss' as *;
2
+
3
+ /* 标签页主题变量 */
4
+ @mixin set-tab-var($var) {
5
+ .ele-tabs-wrap {
6
+ @include set-ele-var('tab', $var);
7
+ }
8
+ }
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,5 @@
1
+ import "element-plus/es/components/tabs/style/index";
2
+ import "element-plus/es/components/tab-pane/style/index";
3
+ import "element-plus/es/components/icon/style/index";
4
+ import "../../ele-dropdown/style/index";
5
+ import "./index.scss";