vxe-pc-ui 0.0.1 → 0.0.2

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 (498) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +48 -5
  3. package/es/anchor/index.js +8 -0
  4. package/es/anchor/src/anchor.js +202 -0
  5. package/es/anchor/style.css +40 -0
  6. package/es/anchor/style.min.css +1 -0
  7. package/es/anchor-link/index.js +8 -0
  8. package/es/anchor-link/src/anchor-link.js +94 -0
  9. package/es/anchor-link/src/util.js +19 -0
  10. package/es/anchor-link/style.css +0 -0
  11. package/es/anchor-link/style.min.css +0 -0
  12. package/es/breadcrumb/index.js +8 -0
  13. package/es/breadcrumb/src/breadcrumb.js +44 -0
  14. package/es/breadcrumb/style.css +19 -0
  15. package/es/breadcrumb/style.min.css +1 -0
  16. package/es/breadcrumb-item/index.js +8 -0
  17. package/es/breadcrumb-item/src/breadcrumb-item.js +54 -0
  18. package/es/breadcrumb-item/style.css +0 -0
  19. package/es/breadcrumb-item/style.min.css +0 -0
  20. package/es/button/index.js +8 -0
  21. package/es/button/src/button.js +487 -0
  22. package/es/button/style.css +513 -0
  23. package/es/button/style.min.css +1 -0
  24. package/es/button-group/index.js +8 -0
  25. package/es/button-group/src/button-group.js +66 -0
  26. package/es/button-group/style.css +0 -0
  27. package/es/button-group/style.min.css +0 -0
  28. package/es/col/index.js +8 -0
  29. package/es/col/src/col.js +80 -0
  30. package/es/col/style.css +95 -0
  31. package/es/col/style.min.css +1 -0
  32. package/es/components.js +57 -0
  33. package/es/design/index.js +8 -0
  34. package/es/design/src/design.js +41 -0
  35. package/es/design/style.css +0 -0
  36. package/es/design/style.min.css +0 -0
  37. package/es/hooks/size.js +10 -0
  38. package/es/icon/index.js +8 -0
  39. package/es/icon/src/icon.js +24 -0
  40. package/es/icon/style.css +766 -0
  41. package/es/icon/style.min.css +1 -0
  42. package/es/index.esm.js +3 -0
  43. package/es/layout-aside/index.js +8 -0
  44. package/es/layout-aside/src/layout-aside.js +68 -0
  45. package/es/layout-aside/style.css +12 -0
  46. package/es/layout-aside/style.min.css +1 -0
  47. package/es/layout-body/index.js +8 -0
  48. package/es/layout-body/src/layout-body.js +37 -0
  49. package/es/layout-body/style.css +3 -0
  50. package/es/layout-body/style.min.css +1 -0
  51. package/es/layout-container/index.js +8 -0
  52. package/es/layout-container/src/layout-container.js +41 -0
  53. package/es/layout-container/style.css +10 -0
  54. package/es/layout-container/style.min.css +1 -0
  55. package/es/layout-footer/index.js +8 -0
  56. package/es/layout-footer/src/layout-footer.js +41 -0
  57. package/es/layout-footer/style.css +10 -0
  58. package/es/layout-footer/style.min.css +1 -0
  59. package/es/layout-header/index.js +8 -0
  60. package/es/layout-header/src/layout-header.js +41 -0
  61. package/es/layout-header/style.css +10 -0
  62. package/es/layout-header/style.min.css +1 -0
  63. package/es/locale/lang/en-US.d.ts +2 -0
  64. package/es/locale/lang/en-US.js +463 -0
  65. package/es/locale/lang/es-ES.d.ts +2 -0
  66. package/es/locale/lang/es-ES.js +463 -0
  67. package/es/locale/lang/ja-JP.d.ts +2 -0
  68. package/es/locale/lang/ja-JP.js +463 -0
  69. package/es/locale/lang/pt-BR.d.ts +2 -0
  70. package/es/locale/lang/pt-BR.js +463 -0
  71. package/es/locale/lang/zh-CN.d.ts +2 -0
  72. package/es/locale/lang/zh-CN.js +463 -0
  73. package/es/locale/lang/zh-HK.d.ts +2 -0
  74. package/es/locale/lang/zh-HK.js +2 -0
  75. package/es/locale/lang/zh-MO.d.ts +2 -0
  76. package/es/locale/lang/zh-MO.js +2 -0
  77. package/es/locale/lang/zh-TC.d.ts +2 -0
  78. package/es/locale/lang/zh-TC.js +463 -0
  79. package/es/locale/lang/zh-TW.d.ts +2 -0
  80. package/es/locale/lang/zh-TW.js +2 -0
  81. package/es/row/index.js +8 -0
  82. package/es/row/src/row.js +69 -0
  83. package/es/row/style.css +10 -0
  84. package/es/row/style.min.css +1 -0
  85. package/es/style.css +1 -0
  86. package/es/style.min.css +1 -0
  87. package/es/ui/index.js +4 -0
  88. package/es/ui/src/core.js +41 -0
  89. package/es/ui/src/dom.js +90 -0
  90. package/es/ui/src/event.js +75 -0
  91. package/es/ui/src/globalStore.js +8 -0
  92. package/es/ui/src/iconStore.js +76 -0
  93. package/es/ui/src/log.js +13 -0
  94. package/es/ui/src/theme.js +10 -0
  95. package/es/ui/src/utils.js +17 -0
  96. package/es/ui/style.css +0 -0
  97. package/es/ui/style.min.css +0 -0
  98. package/es/vxe-anchor/index.js +3 -0
  99. package/es/vxe-anchor/style.css +40 -0
  100. package/es/vxe-anchor/style.min.css +1 -0
  101. package/es/vxe-anchor-link/index.js +3 -0
  102. package/es/vxe-anchor-link/style.css +0 -0
  103. package/es/vxe-anchor-link/style.min.css +0 -0
  104. package/es/vxe-breadcrumb/index.js +3 -0
  105. package/es/vxe-breadcrumb/style.css +19 -0
  106. package/es/vxe-breadcrumb/style.min.css +1 -0
  107. package/es/vxe-breadcrumb-item/index.js +3 -0
  108. package/es/vxe-breadcrumb-item/style.css +0 -0
  109. package/es/vxe-breadcrumb-item/style.min.css +0 -0
  110. package/es/vxe-button/index.js +3 -0
  111. package/es/vxe-button/style.css +513 -0
  112. package/es/vxe-button/style.min.css +1 -0
  113. package/es/vxe-button-group/index.js +3 -0
  114. package/es/vxe-button-group/style.css +0 -0
  115. package/es/vxe-button-group/style.min.css +0 -0
  116. package/es/vxe-col/index.js +3 -0
  117. package/es/vxe-col/style.css +95 -0
  118. package/es/vxe-col/style.min.css +1 -0
  119. package/es/vxe-design/index.js +3 -0
  120. package/es/vxe-design/style.css +0 -0
  121. package/es/vxe-design/style.min.css +0 -0
  122. package/es/vxe-icon/index.js +3 -0
  123. package/es/vxe-icon/style.css +766 -0
  124. package/es/vxe-icon/style.min.css +1 -0
  125. package/es/vxe-layout-aside/index.js +3 -0
  126. package/es/vxe-layout-aside/style.css +12 -0
  127. package/es/vxe-layout-aside/style.min.css +1 -0
  128. package/es/vxe-layout-body/index.js +3 -0
  129. package/es/vxe-layout-body/style.css +3 -0
  130. package/es/vxe-layout-body/style.min.css +1 -0
  131. package/es/vxe-layout-container/index.js +3 -0
  132. package/es/vxe-layout-container/style.css +10 -0
  133. package/es/vxe-layout-container/style.min.css +1 -0
  134. package/es/vxe-layout-footer/index.js +3 -0
  135. package/es/vxe-layout-footer/style.css +10 -0
  136. package/es/vxe-layout-footer/style.min.css +1 -0
  137. package/es/vxe-layout-header/index.js +3 -0
  138. package/es/vxe-layout-header/style.css +10 -0
  139. package/es/vxe-layout-header/style.min.css +1 -0
  140. package/es/vxe-row/index.js +3 -0
  141. package/es/vxe-row/style.css +10 -0
  142. package/es/vxe-row/style.min.css +1 -0
  143. package/es/vxe-ui/index.js +3 -0
  144. package/es/vxe-ui/style.css +0 -0
  145. package/es/vxe-ui/style.min.css +0 -0
  146. package/lib/anchor/index.js +15 -0
  147. package/lib/anchor/index.min.js +1 -0
  148. package/lib/anchor/src/anchor.js +220 -0
  149. package/lib/anchor/src/anchor.min.js +1 -0
  150. package/lib/anchor/style/index.js +1 -0
  151. package/lib/anchor/style/style.css +40 -0
  152. package/lib/anchor/style/style.min.css +1 -0
  153. package/lib/anchor-link/index.js +15 -0
  154. package/lib/anchor-link/index.min.js +1 -0
  155. package/lib/anchor-link/src/anchor-link.js +106 -0
  156. package/lib/anchor-link/src/anchor-link.min.js +1 -0
  157. package/lib/anchor-link/src/util.js +29 -0
  158. package/lib/anchor-link/src/util.min.js +1 -0
  159. package/lib/anchor-link/style/index.js +1 -0
  160. package/lib/anchor-link/style/style.css +0 -0
  161. package/lib/anchor-link/style/style.min.css +0 -0
  162. package/lib/breadcrumb/index.js +15 -0
  163. package/lib/breadcrumb/index.min.js +1 -0
  164. package/lib/breadcrumb/src/breadcrumb.js +53 -0
  165. package/lib/breadcrumb/src/breadcrumb.min.js +1 -0
  166. package/lib/breadcrumb/style/index.js +1 -0
  167. package/lib/breadcrumb/style/style.css +19 -0
  168. package/lib/breadcrumb/style/style.min.css +1 -0
  169. package/lib/breadcrumb-item/index.js +15 -0
  170. package/lib/breadcrumb-item/index.min.js +1 -0
  171. package/lib/breadcrumb-item/src/breadcrumb-item.js +58 -0
  172. package/lib/breadcrumb-item/src/breadcrumb-item.min.js +1 -0
  173. package/lib/breadcrumb-item/style/index.js +1 -0
  174. package/lib/breadcrumb-item/style/style.css +0 -0
  175. package/lib/breadcrumb-item/style/style.min.css +0 -0
  176. package/lib/button/index.js +15 -0
  177. package/lib/button/index.min.js +1 -0
  178. package/lib/button/src/button.js +540 -0
  179. package/lib/button/src/button.min.js +1 -0
  180. package/lib/button/style/index.js +1 -0
  181. package/lib/button/style/style.css +513 -0
  182. package/lib/button/style/style.min.css +1 -0
  183. package/lib/button-group/index.js +15 -0
  184. package/lib/button-group/index.min.js +1 -0
  185. package/lib/button-group/src/button-group.js +88 -0
  186. package/lib/button-group/src/button-group.min.js +1 -0
  187. package/lib/button-group/style/index.js +1 -0
  188. package/lib/button-group/style/style.css +0 -0
  189. package/lib/button-group/style/style.min.css +0 -0
  190. package/lib/col/index.js +15 -0
  191. package/lib/col/index.min.js +1 -0
  192. package/lib/col/src/col.js +96 -0
  193. package/lib/col/src/col.min.js +1 -0
  194. package/lib/col/style/index.js +1 -0
  195. package/lib/col/style/style.css +95 -0
  196. package/lib/col/style/style.min.css +1 -0
  197. package/lib/components.js +230 -0
  198. package/lib/components.min.js +1 -0
  199. package/lib/design/index.js +15 -0
  200. package/lib/design/index.min.js +1 -0
  201. package/lib/design/src/design.js +48 -0
  202. package/lib/design/src/design.min.js +1 -0
  203. package/lib/design/style/index.js +1 -0
  204. package/lib/design/style/style.css +0 -0
  205. package/lib/design/style/style.min.css +0 -0
  206. package/lib/hooks/size.js +16 -0
  207. package/lib/hooks/size.min.js +1 -0
  208. package/lib/icon/index.js +15 -0
  209. package/lib/icon/index.min.js +1 -0
  210. package/lib/icon/src/icon.js +36 -0
  211. package/lib/icon/src/icon.min.js +1 -0
  212. package/lib/icon/style/index.js +1 -0
  213. package/lib/icon/style/style.css +766 -0
  214. package/lib/icon/style/style.min.css +1 -0
  215. package/lib/index.common.js +22 -0
  216. package/lib/index.umd.js +4461 -0
  217. package/lib/index.umd.min.js +1 -0
  218. package/lib/layout-aside/index.js +15 -0
  219. package/lib/layout-aside/index.min.js +1 -0
  220. package/lib/layout-aside/src/layout-aside.js +80 -0
  221. package/lib/layout-aside/src/layout-aside.min.js +1 -0
  222. package/lib/layout-aside/style/index.js +1 -0
  223. package/lib/layout-aside/style/style.css +12 -0
  224. package/lib/layout-aside/style/style.min.css +1 -0
  225. package/lib/layout-body/index.js +15 -0
  226. package/lib/layout-body/index.min.js +1 -0
  227. package/lib/layout-body/src/layout-body.js +46 -0
  228. package/lib/layout-body/src/layout-body.min.js +1 -0
  229. package/lib/layout-body/style/index.js +1 -0
  230. package/lib/layout-body/style/style.css +3 -0
  231. package/lib/layout-body/style/style.min.css +1 -0
  232. package/lib/layout-container/index.js +15 -0
  233. package/lib/layout-container/index.min.js +1 -0
  234. package/lib/layout-container/src/layout-container.js +50 -0
  235. package/lib/layout-container/src/layout-container.min.js +1 -0
  236. package/lib/layout-container/style/index.js +1 -0
  237. package/lib/layout-container/style/style.css +10 -0
  238. package/lib/layout-container/style/style.min.css +1 -0
  239. package/lib/layout-footer/index.js +15 -0
  240. package/lib/layout-footer/index.min.js +1 -0
  241. package/lib/layout-footer/src/layout-footer.js +50 -0
  242. package/lib/layout-footer/src/layout-footer.min.js +1 -0
  243. package/lib/layout-footer/style/index.js +1 -0
  244. package/lib/layout-footer/style/style.css +10 -0
  245. package/lib/layout-footer/style/style.min.css +1 -0
  246. package/lib/layout-header/index.js +15 -0
  247. package/lib/layout-header/index.min.js +1 -0
  248. package/lib/layout-header/src/layout-header.js +50 -0
  249. package/lib/layout-header/src/layout-header.min.js +1 -0
  250. package/lib/layout-header/style/index.js +1 -0
  251. package/lib/layout-header/style/style.css +10 -0
  252. package/lib/layout-header/style/style.min.css +1 -0
  253. package/lib/locale/lang/en-US.d.ts +2 -0
  254. package/lib/locale/lang/en-US.js +469 -0
  255. package/lib/locale/lang/en-US.min.js +1 -0
  256. package/lib/locale/lang/en-US.umd.js +483 -0
  257. package/lib/locale/lang/es-ES.d.ts +2 -0
  258. package/lib/locale/lang/es-ES.js +469 -0
  259. package/lib/locale/lang/es-ES.min.js +1 -0
  260. package/lib/locale/lang/es-ES.umd.js +483 -0
  261. package/lib/locale/lang/ja-JP.d.ts +2 -0
  262. package/lib/locale/lang/ja-JP.js +469 -0
  263. package/lib/locale/lang/ja-JP.min.js +1 -0
  264. package/lib/locale/lang/ja-JP.umd.js +483 -0
  265. package/lib/locale/lang/pt-BR.d.ts +2 -0
  266. package/lib/locale/lang/pt-BR.js +469 -0
  267. package/lib/locale/lang/pt-BR.min.js +1 -0
  268. package/lib/locale/lang/pt-BR.umd.js +483 -0
  269. package/lib/locale/lang/zh-CN.d.ts +2 -0
  270. package/lib/locale/lang/zh-CN.js +469 -0
  271. package/lib/locale/lang/zh-CN.min.js +1 -0
  272. package/lib/locale/lang/zh-CN.umd.js +483 -0
  273. package/lib/locale/lang/zh-HK.d.ts +2 -0
  274. package/lib/locale/lang/zh-HK.js +9 -0
  275. package/lib/locale/lang/zh-HK.min.js +1 -0
  276. package/lib/locale/lang/zh-HK.umd.js +483 -0
  277. package/lib/locale/lang/zh-MO.d.ts +2 -0
  278. package/lib/locale/lang/zh-MO.js +9 -0
  279. package/lib/locale/lang/zh-MO.min.js +1 -0
  280. package/lib/locale/lang/zh-MO.umd.js +483 -0
  281. package/lib/locale/lang/zh-TC.d.ts +2 -0
  282. package/lib/locale/lang/zh-TC.js +469 -0
  283. package/lib/locale/lang/zh-TC.min.js +1 -0
  284. package/lib/locale/lang/zh-TC.umd.js +483 -0
  285. package/lib/locale/lang/zh-TW.d.ts +2 -0
  286. package/lib/locale/lang/zh-TW.js +9 -0
  287. package/lib/locale/lang/zh-TW.min.js +1 -0
  288. package/lib/locale/lang/zh-TW.umd.js +483 -0
  289. package/lib/row/index.js +15 -0
  290. package/lib/row/index.min.js +1 -0
  291. package/lib/row/src/row.js +82 -0
  292. package/lib/row/src/row.min.js +1 -0
  293. package/lib/row/style/index.js +1 -0
  294. package/lib/row/style/style.css +10 -0
  295. package/lib/row/style/style.min.css +1 -0
  296. package/lib/style.css +1 -0
  297. package/lib/style.min.css +1 -0
  298. package/lib/ui/index.js +25 -0
  299. package/lib/ui/index.min.js +1 -0
  300. package/lib/ui/src/core.js +53 -0
  301. package/lib/ui/src/core.min.js +1 -0
  302. package/lib/ui/src/dom.js +127 -0
  303. package/lib/ui/src/dom.min.js +1 -0
  304. package/lib/ui/src/event.js +100 -0
  305. package/lib/ui/src/event.min.js +1 -0
  306. package/lib/ui/src/globalStore.js +14 -0
  307. package/lib/ui/src/globalStore.min.js +1 -0
  308. package/lib/ui/src/iconStore.js +82 -0
  309. package/lib/ui/src/iconStore.min.js +1 -0
  310. package/lib/ui/src/log.js +22 -0
  311. package/lib/ui/src/log.min.js +1 -0
  312. package/lib/ui/src/theme.js +17 -0
  313. package/lib/ui/src/theme.min.js +1 -0
  314. package/lib/ui/src/utils.js +28 -0
  315. package/lib/ui/src/utils.min.js +1 -0
  316. package/lib/ui/style/index.js +1 -0
  317. package/lib/ui/style/style.css +0 -0
  318. package/lib/ui/style/style.min.css +0 -0
  319. package/lib/vxe-anchor/index.js +22 -0
  320. package/lib/vxe-anchor/index.min.js +1 -0
  321. package/lib/vxe-anchor/style/index.js +1 -0
  322. package/lib/vxe-anchor/style/style.css +40 -0
  323. package/lib/vxe-anchor/style/style.min.css +1 -0
  324. package/lib/vxe-anchor-link/index.js +22 -0
  325. package/lib/vxe-anchor-link/index.min.js +1 -0
  326. package/lib/vxe-anchor-link/style/index.js +1 -0
  327. package/lib/vxe-anchor-link/style/style.css +0 -0
  328. package/lib/vxe-anchor-link/style/style.min.css +0 -0
  329. package/lib/vxe-breadcrumb/index.js +22 -0
  330. package/lib/vxe-breadcrumb/index.min.js +1 -0
  331. package/lib/vxe-breadcrumb/style/index.js +1 -0
  332. package/lib/vxe-breadcrumb/style/style.css +19 -0
  333. package/lib/vxe-breadcrumb/style/style.min.css +1 -0
  334. package/lib/vxe-breadcrumb-item/index.js +22 -0
  335. package/lib/vxe-breadcrumb-item/index.min.js +1 -0
  336. package/lib/vxe-breadcrumb-item/style/index.js +1 -0
  337. package/lib/vxe-breadcrumb-item/style/style.css +0 -0
  338. package/lib/vxe-breadcrumb-item/style/style.min.css +0 -0
  339. package/lib/vxe-button/index.js +22 -0
  340. package/lib/vxe-button/index.min.js +1 -0
  341. package/lib/vxe-button/style/index.js +1 -0
  342. package/lib/vxe-button/style/style.css +513 -0
  343. package/lib/vxe-button/style/style.min.css +1 -0
  344. package/lib/vxe-button-group/index.js +22 -0
  345. package/lib/vxe-button-group/index.min.js +1 -0
  346. package/lib/vxe-button-group/style/index.js +1 -0
  347. package/lib/vxe-button-group/style/style.css +0 -0
  348. package/lib/vxe-button-group/style/style.min.css +0 -0
  349. package/lib/vxe-col/index.js +22 -0
  350. package/lib/vxe-col/index.min.js +1 -0
  351. package/lib/vxe-col/style/index.js +1 -0
  352. package/lib/vxe-col/style/style.css +95 -0
  353. package/lib/vxe-col/style/style.min.css +1 -0
  354. package/lib/vxe-design/index.js +22 -0
  355. package/lib/vxe-design/index.min.js +1 -0
  356. package/lib/vxe-design/style/index.js +1 -0
  357. package/lib/vxe-design/style/style.css +0 -0
  358. package/lib/vxe-design/style/style.min.css +0 -0
  359. package/lib/vxe-icon/index.js +22 -0
  360. package/lib/vxe-icon/index.min.js +1 -0
  361. package/lib/vxe-icon/style/index.js +1 -0
  362. package/lib/vxe-icon/style/style.css +766 -0
  363. package/lib/vxe-icon/style/style.min.css +1 -0
  364. package/lib/vxe-layout-aside/index.js +22 -0
  365. package/lib/vxe-layout-aside/index.min.js +1 -0
  366. package/lib/vxe-layout-aside/style/index.js +1 -0
  367. package/lib/vxe-layout-aside/style/style.css +12 -0
  368. package/lib/vxe-layout-aside/style/style.min.css +1 -0
  369. package/lib/vxe-layout-body/index.js +22 -0
  370. package/lib/vxe-layout-body/index.min.js +1 -0
  371. package/lib/vxe-layout-body/style/index.js +1 -0
  372. package/lib/vxe-layout-body/style/style.css +3 -0
  373. package/lib/vxe-layout-body/style/style.min.css +1 -0
  374. package/lib/vxe-layout-container/index.js +22 -0
  375. package/lib/vxe-layout-container/index.min.js +1 -0
  376. package/lib/vxe-layout-container/style/index.js +1 -0
  377. package/lib/vxe-layout-container/style/style.css +10 -0
  378. package/lib/vxe-layout-container/style/style.min.css +1 -0
  379. package/lib/vxe-layout-footer/index.js +22 -0
  380. package/lib/vxe-layout-footer/index.min.js +1 -0
  381. package/lib/vxe-layout-footer/style/index.js +1 -0
  382. package/lib/vxe-layout-footer/style/style.css +10 -0
  383. package/lib/vxe-layout-footer/style/style.min.css +1 -0
  384. package/lib/vxe-layout-header/index.js +22 -0
  385. package/lib/vxe-layout-header/index.min.js +1 -0
  386. package/lib/vxe-layout-header/style/index.js +1 -0
  387. package/lib/vxe-layout-header/style/style.css +10 -0
  388. package/lib/vxe-layout-header/style/style.min.css +1 -0
  389. package/lib/vxe-row/index.js +22 -0
  390. package/lib/vxe-row/index.min.js +1 -0
  391. package/lib/vxe-row/style/index.js +1 -0
  392. package/lib/vxe-row/style/style.css +10 -0
  393. package/lib/vxe-row/style/style.min.css +1 -0
  394. package/lib/vxe-ui/index.js +22 -0
  395. package/lib/vxe-ui/index.min.js +1 -0
  396. package/lib/vxe-ui/style/index.js +1 -0
  397. package/lib/vxe-ui/style/style.css +0 -0
  398. package/lib/vxe-ui/style/style.min.css +0 -0
  399. package/package.json +83 -55
  400. package/packages/anchor/index.ts +11 -0
  401. package/packages/anchor/src/anchor.ts +233 -0
  402. package/packages/anchor-link/index.ts +11 -0
  403. package/packages/anchor-link/src/anchor-link.ts +118 -0
  404. package/packages/anchor-link/src/util.ts +23 -0
  405. package/packages/breadcrumb/index.ts +11 -0
  406. package/packages/breadcrumb/src/breadcrumb.ts +60 -0
  407. package/packages/breadcrumb-item/index.ts +11 -0
  408. package/packages/breadcrumb-item/src/breadcrumb-item.ts +71 -0
  409. package/packages/button/index.ts +11 -0
  410. package/packages/button/src/button.ts +526 -0
  411. package/packages/button-group/index.ts +11 -0
  412. package/packages/button-group/src/button-group.ts +81 -0
  413. package/packages/col/index.ts +11 -0
  414. package/packages/col/src/col.ts +98 -0
  415. package/packages/components.ts +66 -0
  416. package/packages/design/index.ts +11 -0
  417. package/packages/design/src/design.ts +55 -0
  418. package/packages/hooks/size.ts +14 -0
  419. package/packages/icon/index.ts +11 -0
  420. package/packages/icon/src/icon.ts +27 -0
  421. package/packages/index.ts +4 -0
  422. package/packages/layout-aside/index.ts +11 -0
  423. package/packages/layout-aside/src/layout-aside.ts +85 -0
  424. package/packages/layout-body/index.ts +11 -0
  425. package/packages/layout-body/src/layout-body.ts +52 -0
  426. package/packages/layout-container/index.ts +11 -0
  427. package/packages/layout-container/src/layout-container.ts +56 -0
  428. package/packages/layout-footer/index.ts +11 -0
  429. package/packages/layout-footer/src/layout-footer.ts +56 -0
  430. package/packages/layout-header/index.ts +11 -0
  431. package/packages/layout-header/src/layout-header.ts +56 -0
  432. package/packages/locale/lang/en-US.ts +465 -0
  433. package/packages/locale/lang/es-ES.ts +465 -0
  434. package/packages/locale/lang/ja-JP.ts +465 -0
  435. package/packages/locale/lang/pt-BR.ts +465 -0
  436. package/packages/locale/lang/zh-CN.ts +465 -0
  437. package/packages/locale/lang/zh-HK.ts +3 -0
  438. package/packages/locale/lang/zh-MO.ts +3 -0
  439. package/packages/locale/lang/zh-TC.ts +465 -0
  440. package/packages/locale/lang/zh-TW.ts +3 -0
  441. package/packages/row/index.ts +11 -0
  442. package/packages/row/src/row.ts +86 -0
  443. package/packages/ui/index.ts +6 -0
  444. package/packages/ui/src/core.ts +51 -0
  445. package/packages/ui/src/dom.ts +103 -0
  446. package/packages/ui/src/event.ts +88 -0
  447. package/packages/ui/src/globalStore.ts +11 -0
  448. package/packages/ui/src/iconStore.ts +88 -0
  449. package/packages/ui/src/log.ts +16 -0
  450. package/packages/ui/src/theme.ts +13 -0
  451. package/packages/ui/src/utils.ts +22 -0
  452. package/styles/all.scss +17 -0
  453. package/styles/base.scss +16 -0
  454. package/styles/components/anchor-link.scss +0 -0
  455. package/styles/components/anchor.scss +42 -0
  456. package/styles/components/breadcrumb-item.scss +0 -0
  457. package/styles/components/breadcrumb.scss +20 -0
  458. package/styles/components/button-group.scss +0 -0
  459. package/styles/components/button.scss +357 -0
  460. package/styles/components/col.scss +32 -0
  461. package/styles/components/design.scss +1 -0
  462. package/styles/components/icon.scss +785 -0
  463. package/styles/components/layout-aside.scss +14 -0
  464. package/styles/components/layout-body.scss +5 -0
  465. package/styles/components/layout-container.scss +12 -0
  466. package/styles/components/layout-footer.scss +12 -0
  467. package/styles/components/layout-header.scss +12 -0
  468. package/styles/components/row.scss +10 -0
  469. package/styles/components/ui.scss +0 -0
  470. package/styles/helpers/mixin.scss +82 -0
  471. package/styles/icon/iconfont.ttf +0 -0
  472. package/styles/icon/iconfont.woff +0 -0
  473. package/styles/icon/iconfont.woff2 +0 -0
  474. package/styles/theme/base.scss +81 -0
  475. package/styles/theme/dark.scss +7 -0
  476. package/styles/theme/default.scss +5 -0
  477. package/types/all.d.ts +67 -0
  478. package/types/component/anchor-link.d.ts +74 -0
  479. package/types/component/anchor.d.ts +79 -0
  480. package/types/component/breadcrumb-item.d.ts +58 -0
  481. package/types/component/breadcrumb.d.ts +61 -0
  482. package/types/component/button-group.d.ts +86 -0
  483. package/types/component/button.d.ts +157 -0
  484. package/types/component/col.d.ts +58 -0
  485. package/types/component/design.d.ts +63 -0
  486. package/types/component/icon.d.ts +67 -0
  487. package/types/component/layout-aside.d.ts +57 -0
  488. package/types/component/layout-body.d.ts +58 -0
  489. package/types/component/layout-container.d.ts +58 -0
  490. package/types/component/layout-footer.d.ts +58 -0
  491. package/types/component/layout-header.d.ts +58 -0
  492. package/types/component/row.d.ts +65 -0
  493. package/types/index.d.ts +4 -0
  494. package/types/tool/common.d.ts +52 -0
  495. package/types/tool/index.d.ts +6 -0
  496. package/types/ui/global-config.d.ts +15 -0
  497. package/types/ui/global-icon.d.ts +15 -0
  498. package/types/ui/index.d.ts +42 -0
@@ -0,0 +1,465 @@
1
+ export default {
2
+ vxe: {
3
+ base: {
4
+ pleaseInput: '请输入',
5
+ pleaseSelect: '请选择'
6
+ },
7
+ loading: {
8
+ text: '加載中...'
9
+ },
10
+ error: {
11
+ groupFixed: '如果使用分組表頭,固冻结列必須按組設定',
12
+ groupMouseRange: '分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',
13
+ groupTag: '分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',
14
+ scrollErrProp: '啟用虛擬滾動後不支持該參數 "{0}"',
15
+ errConflicts: '參數 "{0}" 與 "{1}" 有衝突',
16
+ unableInsert: '無法插入到指定位置,請檢查參數是否正確',
17
+ useErr: '安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',
18
+ barUnableLink: '工具欄無法關聯表格',
19
+ expandContent: '展開行的插槽應該是 “content”,請檢查是否正確',
20
+ reqModule: '缺少 "{0}" 模組',
21
+ reqProp: '缺少必要的 "{0}" 參數,可能會導致出現錯誤',
22
+ emptyProp: '參數 "{0}" 不允許為空',
23
+ errProp: '不支持的參數 "{0}",可能為 "{1}"',
24
+ colRepet: 'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',
25
+ notFunc: '方法 "{0}" 不存在',
26
+ errFunc: '參數 "{0}" 不是一個方法',
27
+ notValidators: '全局校验 "{0}" 不存在',
28
+ notFormats: '全局格式化 "{0}" 不存在',
29
+ notCommands: '全局指令 "{0}" 不存在',
30
+ notSlot: '插槽 "{0}" 不存在',
31
+ noTree: '樹狀結構不支援 {0}',
32
+ notProp: '不支持的參數 "{0}"',
33
+ checkProp: '當數據量過大時可能會導致複選框卡頓,建議設置參數 "{0}" 提升渲染速度',
34
+ coverProp: '"{0}" 的參數 "{1}" 重複定義,這可能會出現錯誤',
35
+ delFunc: '方法 "{0}" 已停用,請使用 "{1}"',
36
+ delProp: '參數 "{0}" 已停用,請使用 "{1}"',
37
+ delEvent: '事件 "{0}" 已停用,請使用 "{1}"',
38
+ removeProp: '參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',
39
+ errFormat: '全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',
40
+ notType: '不支持的檔案類型 "{0}"',
41
+ notExp: '該瀏覽器不支持導入/匯出功能',
42
+ impFields: '導入失敗,請檢查欄位名和數據格式是否正確',
43
+ treeNotImp: '樹狀表格不支持導入'
44
+ },
45
+ table: {
46
+ emptyText: '暫無資料',
47
+ allTitle: '全選/取消',
48
+ seqTitle: '#',
49
+ confirmFilter: '篩選',
50
+ resetFilter: '重置',
51
+ allFilter: '全部',
52
+ sortAsc: '按低到高排序',
53
+ sortDesc: '按高到低排序',
54
+ filter: '對所選的列啟用篩選',
55
+ impSuccess: '成功導入 {0} 條記錄',
56
+ expLoading: '正在匯出中',
57
+ expSuccess: '匯出成功',
58
+ expOriginFilename: '匯出_{0}',
59
+ expSrcFilename: '匯出_從_{0}',
60
+ customTitle: '列設定',
61
+ customAll: '全部',
62
+ customConfirm: '確認',
63
+ customRestore: '重置',
64
+ maxFixedCol: '最大冻结列的數量不能超過 {0} 個'
65
+ },
66
+ grid: {
67
+ selectOneRecord: '請至少選擇一條記錄!',
68
+ deleteSelectRecord: '您確定要刪除所選記錄嗎?',
69
+ removeSelectRecord: '您確定要移除所選記錄嗎?',
70
+ dataUnchanged: '資料未更改! ',
71
+ delSuccess: '成功删除所選記錄!',
72
+ saveSuccess: '保存成功!',
73
+ operError: '發生錯誤,操作失敗!'
74
+ },
75
+ select: {
76
+ search: '蒐索',
77
+ loadingText: '加載中',
78
+ emptyText: '暫無資料'
79
+ },
80
+ pager: {
81
+ goto: '前往',
82
+ pagesize: '{0}項/頁',
83
+ total: '共 {0} 項記錄',
84
+ pageClassifier: '頁',
85
+ homePage: '首頁',
86
+ homePageTitle: '首頁',
87
+ prevPage: '上一頁',
88
+ prevPageTitle: '上一頁',
89
+ nextPage: '下一頁',
90
+ nextPageTitle: '下一頁',
91
+ prevJump: '向上跳頁',
92
+ prevJumpTitle: '向上跳頁',
93
+ nextJump: '向下跳頁',
94
+ nextJumpTitle: '向下跳頁',
95
+ endPage: '末頁',
96
+ endPageTitle: '末頁'
97
+ },
98
+ alert: {
99
+ title: '系統提示'
100
+ },
101
+ button: {
102
+ confirm: '確認',
103
+ cancel: '取消'
104
+ },
105
+ filter: {
106
+ search: '搜索'
107
+ },
108
+ custom: {
109
+ cstmTitle: '列設定',
110
+ cstmRestore: '恢復默認',
111
+ cstmCancel: '取消',
112
+ cstmConfirm: '確認',
113
+ cstmConfirmRestore: '請確認是否恢復成默認列配置?',
114
+ cstmDragTarget: '移動目標:{0}',
115
+ setting: {
116
+ colSort: '排序',
117
+ sortHelpTip: '點擊並拖動圖標可以調整列的排序',
118
+ colTitle: '標題',
119
+ colVisible: '是否顯示',
120
+ colFixed: '冻结列(最多 {0} 列)',
121
+ fixedLeft: '左側',
122
+ fixedUnset: '不設定',
123
+ fixedRight: '右側'
124
+ }
125
+ },
126
+ import: {
127
+ modes: {
128
+ covering: '覆盖',
129
+ insert: '新增'
130
+ },
131
+ impTitle: '導入數據',
132
+ impFile: '檔名',
133
+ impSelect: '選擇檔案',
134
+ impType: '檔案類型',
135
+ impOpts: '參數設置',
136
+ impConfirm: '導入',
137
+ impCancel: '取消'
138
+ },
139
+ export: {
140
+ types: {
141
+ csv: 'CSV (逗号分隔)(*.csv)',
142
+ html: '網頁(*.html)',
143
+ xml: 'XML 文件(*.xml)',
144
+ txt: '文本文件(制表符分隔)(*.txt)',
145
+ xls: 'Excel 97-2003 工作簿(*.xls)',
146
+ xlsx: 'Excel 工作簿(*.xlsx)',
147
+ pdf: 'PDF (*.pdf)'
148
+ },
149
+ modes: {
150
+ current: '當前數據(當前頁的數據)',
151
+ selected: '選中數據(當前頁選中的數據)',
152
+ all: '全量數據(包括所有分頁的數據)'
153
+ },
154
+ printTitle: '列印數據',
155
+ expTitle: '匯出數據',
156
+ expName: '檔名',
157
+ expNamePlaceholder: '請輸入檔名',
158
+ expSheetName: '標題',
159
+ expSheetNamePlaceholder: '請輸入標題',
160
+ expType: '保存類型',
161
+ expMode: '選擇數據',
162
+ expCurrentColumn: '全部欄位',
163
+ expColumn: '選擇欄位',
164
+ expOpts: '參數設置',
165
+ expOptHeader: '表頭',
166
+ expHeaderTitle: '是否需要表頭',
167
+ expOptFooter: '表尾',
168
+ expFooterTitle: '是否需要表尾',
169
+ expOptColgroup: '分组表头',
170
+ expColgroupTitle: '如果存在,則支持帶有分組結構的表頭',
171
+ expOptMerge: '合併',
172
+ expMergeTitle: '如果存在,則支持帶有合併結構的儲存格',
173
+ expOptAllExpand: '展開層級',
174
+ expAllExpandTitle: '如果存在,則支持將帶有樹結構的數據全部展開',
175
+ expOptUseStyle: '樣式',
176
+ expUseStyleTitle: '如果存在,則支持帶樣式的儲存格',
177
+ expOptOriginal: '源數據',
178
+ expOriginalTitle: '如果為源數據,則支持導入到表格中',
179
+ expPrint: '列印',
180
+ expConfirm: '匯出',
181
+ expCancel: '取消'
182
+ },
183
+ modal: {
184
+ zoomIn: '最大化',
185
+ zoomOut: '還原',
186
+ close: '關閉'
187
+ },
188
+ form: {
189
+ folding: '收起',
190
+ unfolding: '展開'
191
+ },
192
+ toolbar: {
193
+ import: '導入',
194
+ export: '匯出',
195
+ print: '列印',
196
+ refresh: '刷新',
197
+ zoomIn: '全螢幕',
198
+ zoomOut: '還原',
199
+ custom: '列設定',
200
+ customAll: '全部',
201
+ customConfirm: '確認',
202
+ customRestore: '重置',
203
+ fixedLeft: '冻结在左側',
204
+ fixedRight: '冻结在右側',
205
+ cancelfixed: '取消冻结列'
206
+ },
207
+ input: {
208
+ date: {
209
+ m1: '01 月',
210
+ m2: '02 月',
211
+ m3: '03 月',
212
+ m4: '04 月',
213
+ m5: '05 月',
214
+ m6: '06 月',
215
+ m7: '07 月',
216
+ m8: '08 月',
217
+ m9: '09 月',
218
+ m10: '10 月',
219
+ m11: '11 月',
220
+ m12: '12 月',
221
+ quarterLabel: '{0} 年',
222
+ monthLabel: '{0} 年',
223
+ dayLabel: '{0} 年 {1}',
224
+ labelFormat: {
225
+ date: 'yyyy-MM-dd',
226
+ time: 'HH:mm:ss',
227
+ datetime: 'yyyy-MM-dd HH:mm:ss',
228
+ week: 'yyyy 年第 WW 周',
229
+ month: 'yyyy-MM',
230
+ quarter: 'yyyy 年第 q 季度',
231
+ year: 'yyyy'
232
+ },
233
+ weeks: {
234
+ w: '周',
235
+ w0: '周日',
236
+ w1: '周一',
237
+ w2: '周二',
238
+ w3: '周三',
239
+ w4: '周四',
240
+ w5: '周五',
241
+ w6: '周六'
242
+ },
243
+ months: {
244
+ m0: '一月',
245
+ m1: '二月',
246
+ m2: '三月',
247
+ m3: '四月',
248
+ m4: '五月',
249
+ m5: '六月',
250
+ m6: '七月',
251
+ m7: '八月',
252
+ m8: '九月',
253
+ m9: '十月',
254
+ m10: '十一月',
255
+ m11: '十二月'
256
+ },
257
+ quarters: {
258
+ q1: '第一季度',
259
+ q2: '第二季度',
260
+ q3: '第三季度',
261
+ q4: '第四季度'
262
+ }
263
+ }
264
+ },
265
+
266
+ /**
267
+ * 扩展插件
268
+ */
269
+ plugins: {
270
+ extendCellArea: {
271
+ area: {
272
+ mergeErr: '無法對合併儲存格進行該操作',
273
+ multiErr: '無法對多重選擇區域進行該操作',
274
+ extendErr: '如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同',
275
+ pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作',
276
+ cpInvalidErr: '該操作無法進行,您選擇的區域中存在被禁止的列({0})'
277
+ },
278
+ fnr: {
279
+ title: '查找和替換',
280
+ findLabel: '查找',
281
+ replaceLabel: '替換',
282
+ findTitle: '查找內容:',
283
+ replaceTitle: '替換為:',
284
+ tabs: {
285
+ find: '查找',
286
+ replace: '替換'
287
+ },
288
+ filter: {
289
+ re: '規則運算式',
290
+ whole: '全詞匹配',
291
+ sensitive: '區分大小寫'
292
+ },
293
+ btns: {
294
+ findNext: '查找下一個',
295
+ findAll: '查找全部',
296
+ replace: '替换',
297
+ replaceAll: '替换全部',
298
+ cancel: '取消'
299
+ },
300
+ header: {
301
+ seq: '#',
302
+ cell: '儲存格',
303
+ value: '值'
304
+ },
305
+ empty: '(空值)',
306
+ reError: '無效的規則運算式',
307
+ recordCount: '已找到 {0} 個儲存格',
308
+ notCell: '找不到匹配的儲存格',
309
+ replaceSuccess: '成功替換 {0} 個儲存格'
310
+ }
311
+ },
312
+ filterComplexInput: {
313
+ menus: {
314
+ fixedColumn: '凍結列',
315
+ fixedGroup: '凍結分组',
316
+ cancelFixed: '取消凍結',
317
+ fixedLeft: '凍結左侧',
318
+ fixedRight: '凍結右侧'
319
+ },
320
+ cases: {
321
+ equal: '等於',
322
+ gt: '大於',
323
+ lt: '小於',
324
+ begin: '開頭是',
325
+ endin: '結尾是',
326
+ include: '包含',
327
+ isSensitive: '區分大小寫'
328
+ }
329
+ },
330
+ filterCombination: {
331
+ menus: {
332
+ clearSort: '清除排序',
333
+ sortAsc: '昇冪',
334
+ sortDesc: '降序',
335
+ fixedColumn: '凍結列',
336
+ fixedGroup: '凍結分組',
337
+ cancelFixed: '取消凍結',
338
+ fixedLeft: '凍結左側',
339
+ fixedRight: '凍結右側',
340
+ clearFilter: '清除篩選',
341
+ textOption: '文字篩選',
342
+ numberOption: '數值篩選'
343
+ },
344
+ popup: {
345
+ title: '自定義篩選的管道',
346
+ currColumnTitle: '當前列:',
347
+ and: '與',
348
+ or: '或',
349
+ describeHtml: '用 ? 代表單個字元<br/>用 * 代表任意多個字元'
350
+ },
351
+ cases: {
352
+ equal: '等於',
353
+ unequal: '不等於',
354
+ gt: '大於',
355
+ ge: '大於或等於',
356
+ lt: '小於',
357
+ le: '小於或等於',
358
+ begin: '開頭是',
359
+ notbegin: '開頭不是',
360
+ endin: '結尾是',
361
+ notendin: '結尾不是',
362
+ include: '包含',
363
+ exclude: '不包含',
364
+ between: '介於',
365
+ custom: '自定義篩選',
366
+ insensitive: '不區分大小寫',
367
+ isSensitive: '區分大小寫'
368
+ },
369
+ empty: '(空白)',
370
+ notData: '無匹配項'
371
+ }
372
+ },
373
+
374
+ /**
375
+ * 以下废弃
376
+ * @deprecated
377
+ */
378
+ renderer: {
379
+ search: '蒐索',
380
+ cases: {
381
+ equal: '等於',
382
+ unequal: '不等於',
383
+ gt: '大於',
384
+ ge: '大於或等於',
385
+ lt: '小於',
386
+ le: '小於或等於',
387
+ begin: '開頭是',
388
+ notbegin: '開頭不是',
389
+ endin: '結尾是',
390
+ notendin: '結尾不是',
391
+ include: '包含',
392
+ exclude: '不包含',
393
+ between: '介於',
394
+ custom: '自定義篩選',
395
+ insensitive: '不區分大小寫',
396
+ isSensitive: '區分大小寫'
397
+ },
398
+ combination: {
399
+ menus: {
400
+ clearSort: '清除排序',
401
+ sortAsc: '昇冪',
402
+ sortDesc: '降序',
403
+ fixedColumn: '鎖定列',
404
+ fixedGroup: '鎖定組',
405
+ cancelFixed: '取消鎖定',
406
+ fixedLeft: '鎖定左側',
407
+ fixedRight: '鎖定右側',
408
+ clearFilter: '清除篩選',
409
+ textOption: '文字篩選',
410
+ numberOption: '數值篩選'
411
+ },
412
+ popup: {
413
+ title: '自定義篩選的管道',
414
+ currColumnTitle: '當前列:',
415
+ and: '與',
416
+ or: '或',
417
+ describeHtml: '用 ? 代表單個字元<br/>用 * 代表任意多個字元'
418
+ },
419
+ empty: '(空白)',
420
+ notData: '無匹配項'
421
+ }
422
+ },
423
+ pro: {
424
+ area: {
425
+ mergeErr: '無法對合併儲存格進行該操作',
426
+ multiErr: '無法對多重選擇區域進行該操作',
427
+ extendErr: '如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同',
428
+ pasteMultiErr: '无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作'
429
+ },
430
+ fnr: {
431
+ title: '查找和替換',
432
+ findLabel: '查找',
433
+ replaceLabel: '替換',
434
+ findTitle: '查找內容:',
435
+ replaceTitle: '替換為:',
436
+ tabs: {
437
+ find: '查找',
438
+ replace: '替換'
439
+ },
440
+ filter: {
441
+ re: '規則運算式',
442
+ whole: '全詞匹配',
443
+ sensitive: '區分大小寫'
444
+ },
445
+ btns: {
446
+ findNext: '查找下一個',
447
+ findAll: '查找全部',
448
+ replace: '替换',
449
+ replaceAll: '替换全部',
450
+ cancel: '取消'
451
+ },
452
+ header: {
453
+ seq: '#',
454
+ cell: '儲存格',
455
+ value: '值'
456
+ },
457
+ empty: '(空值)',
458
+ reError: '無效的規則運算式',
459
+ recordCount: '已找到 {0} 個儲存格',
460
+ notCell: '找不到匹配的儲存格',
461
+ replaceSuccess: '成功替換 {0} 個儲存格'
462
+ }
463
+ }
464
+ }
465
+ }
@@ -0,0 +1,3 @@
1
+ import zhTC from './zh-TC'
2
+
3
+ export default zhTC
@@ -0,0 +1,11 @@
1
+ import { App } from 'vue'
2
+ import VxeRowComponent from './src/row'
3
+
4
+ const VxeRow = Object.assign({}, VxeRowComponent, {
5
+ install (app: App) {
6
+ app.component(VxeRowComponent.name as string, VxeRowComponent)
7
+ }
8
+ })
9
+
10
+ export const Row = VxeRow
11
+ export default VxeRow
@@ -0,0 +1,86 @@
1
+ import { defineComponent, ref, h, reactive, provide, PropType, computed } from 'vue'
2
+ import XEUtils from 'xe-utils'
3
+ import { toCssUnit } from '../../ui/src/dom'
4
+
5
+ import { VxeRowPropTypes, RowReactData, RowPrivateRef, VxeRowPrivateComputed, VxeRowConstructor, VxeRowPrivateMethods } from '../../../types'
6
+
7
+ export default defineComponent({
8
+ name: 'VxeRow',
9
+ props: {
10
+ gutter: [Number, String, Array] as PropType<VxeRowPropTypes.Gutter>,
11
+ wrap: {
12
+ type: Boolean as PropType<VxeRowPropTypes.Wrap>,
13
+ default: true
14
+ },
15
+ vertical: Boolean as PropType<VxeRowPropTypes.Vertical>
16
+ },
17
+ emits: [],
18
+ setup (props, context) {
19
+ const { slots } = context
20
+
21
+ const xID = XEUtils.uniqueId()
22
+
23
+ const refElem = ref<HTMLDivElement>()
24
+
25
+ const reactData = reactive<RowReactData>({
26
+ })
27
+
28
+ const refMaps: RowPrivateRef = {
29
+ refElem
30
+ }
31
+
32
+ const computeRowStyle = computed(() => {
33
+ const { gutter } = props
34
+ const style: Record<string, string | number> = {}
35
+ if (gutter) {
36
+ const [lrGutter, tbGutter] = XEUtils.isArray(gutter) ? gutter : [gutter]
37
+ if (lrGutter) {
38
+ const offsetSize = XEUtils.isNumber(lrGutter) ? toCssUnit(-(lrGutter / 2)) : `calc(${toCssUnit(lrGutter)} / 2 * -1)`
39
+ style.marginLeft = offsetSize
40
+ style.marginRight = offsetSize
41
+ }
42
+ if (tbGutter) {
43
+ const offsetSize = XEUtils.isNumber(tbGutter) ? toCssUnit(-(tbGutter / 2)) : `calc(${toCssUnit(tbGutter)} / 2 * -1)`
44
+ style.marginTop = offsetSize
45
+ style.marginBottom = offsetSize
46
+ }
47
+ }
48
+ return style
49
+ })
50
+
51
+ const computeMaps: VxeRowPrivateComputed = {
52
+ }
53
+
54
+ const $xeRow = {
55
+ xID,
56
+ props,
57
+ context,
58
+ reactData,
59
+
60
+ getRefMaps: () => refMaps,
61
+ getComputeMaps: () => computeMaps
62
+ } as unknown as VxeRowConstructor & VxeRowPrivateMethods
63
+
64
+ const renderVN = () => {
65
+ const { vertical } = props
66
+ const rowStyle = computeRowStyle.value
67
+ const defaultSlot = slots.default
68
+ return h('div', {
69
+ ref: refElem,
70
+ class: ['vxe-row', {
71
+ 'is--vertical': vertical
72
+ }],
73
+ style: rowStyle
74
+ }, defaultSlot ? defaultSlot({}) : [])
75
+ }
76
+
77
+ $xeRow.renderVN = renderVN
78
+
79
+ provide('$xeRow', $xeRow)
80
+
81
+ return $xeRow
82
+ },
83
+ render () {
84
+ return this.renderVN()
85
+ }
86
+ })
@@ -0,0 +1,6 @@
1
+ import VxeCore from './src/core'
2
+
3
+ export const VxeUI = VxeCore
4
+
5
+ export * from './src/core'
6
+ export default VxeCore
@@ -0,0 +1,51 @@
1
+ import XEUtils from 'xe-utils'
2
+ import DomZIndex from 'dom-zindex'
3
+ import globalConfigStore from './globalStore'
4
+ import iconConfigStore from './iconStore'
5
+ import setTheme from './theme'
6
+
7
+ import { VxeUIExport, VxeGlobalConfig } from '../../../types'
8
+
9
+ /**
10
+ * 全局参数设置
11
+ */
12
+ export function setConfig (options?: VxeGlobalConfig) {
13
+ if (options) {
14
+ if (options.theme) {
15
+ setTheme(options)
16
+ }
17
+ if (options.zIndex) {
18
+ DomZIndex.setCurrent(options.zIndex)
19
+ }
20
+ }
21
+ return options ? XEUtils.merge(globalConfigStore, options) : globalConfigStore
22
+ }
23
+
24
+ /**
25
+ * 获取全局参数
26
+ */
27
+ export function getConfig (key: string | number | null | undefined, defaultValue?: any) {
28
+ return arguments.length ? XEUtils.get(globalConfigStore, key, defaultValue) : globalConfigStore
29
+ }
30
+
31
+ export function setIcon (options?: any) {
32
+ return options ? Object.assign(iconConfigStore, options) : iconConfigStore
33
+ }
34
+
35
+ export function getIcon (key: string) {
36
+ return arguments.length ? XEUtils.get(iconConfigStore, key) : iconConfigStore
37
+ }
38
+
39
+ export const version = process.env.VUE_APP_VXE_TABLE_VERSION
40
+
41
+ const VxeCore: VxeUIExport = {
42
+ version,
43
+ setConfig,
44
+ getConfig,
45
+ setIcon,
46
+ getIcon
47
+ }
48
+
49
+ setTheme()
50
+
51
+ export default VxeCore