orion-design 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (350) hide show
  1. package/README.md +5 -0
  2. package/dist/Throne/index.d.ts +18 -0
  3. package/dist/Throne/index.js +20 -0
  4. package/dist/Throne/index.js.map +1 -0
  5. package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
  6. package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
  7. package/dist/components/Button/Button.vue.d.ts +2 -0
  8. package/dist/components/Button/index.d.ts +2 -0
  9. package/dist/components/Button/index.js +27 -0
  10. package/dist/components/Button/index.js.map +1 -0
  11. package/dist/components/Flex/Col.d.ts +4 -4
  12. package/dist/components/Flex/Item.d.ts +4 -4
  13. package/dist/components/Flex/Row.d.ts +4 -4
  14. package/dist/components/Flex/index.d.ts +4 -4
  15. package/dist/components/Flex/index.js +95 -127
  16. package/dist/components/Flex/index.js.map +1 -0
  17. package/dist/components/Form/ButtonGroup/ButtonGroup.d.ts +5 -0
  18. package/dist/components/Form/ButtonGroup/ButtonGroup.js +2 -0
  19. package/dist/components/Form/ButtonGroup/ButtonGroup.js.map +1 -0
  20. package/dist/components/Form/ButtonGroup/ButtonGroup.vue.d.ts +17 -0
  21. package/dist/components/Form/ButtonGroup/index.d.ts +1 -0
  22. package/dist/components/Form/ButtonGroup/index.js +2 -0
  23. package/dist/components/Form/ButtonGroup/index.js.map +1 -0
  24. package/dist/components/Form/Checkbox/Checkbox.d.ts +10 -0
  25. package/dist/components/Form/Checkbox/Checkbox.js +2 -0
  26. package/dist/components/Form/Checkbox/Checkbox.js.map +1 -0
  27. package/dist/components/Form/Checkbox/Checkbox.vue.d.ts +3 -0
  28. package/dist/components/Form/Checkbox/index.d.ts +1 -0
  29. package/dist/components/Form/Checkbox/index.js +2 -0
  30. package/dist/components/Form/Checkbox/index.js.map +1 -0
  31. package/dist/components/Form/CheckboxGroup/CheckboxGroup.d.ts +14 -0
  32. package/dist/components/Form/CheckboxGroup/CheckboxGroup.js +2 -0
  33. package/dist/components/Form/CheckboxGroup/CheckboxGroup.js.map +1 -0
  34. package/dist/components/Form/CheckboxGroup/CheckboxGroup.vue.d.ts +3 -0
  35. package/dist/components/Form/CheckboxGroup/index.d.ts +1 -0
  36. package/dist/components/Form/CheckboxGroup/index.js +2 -0
  37. package/dist/components/Form/CheckboxGroup/index.js.map +1 -0
  38. package/dist/components/Form/DateInput/DateInput.d.ts +17 -0
  39. package/dist/components/Form/DateInput/DateInput.js +2 -0
  40. package/dist/components/Form/DateInput/DateInput.js.map +1 -0
  41. package/dist/components/Form/DateInput/DateInput.vue.d.ts +3 -0
  42. package/dist/components/Form/DateInput/index.d.ts +1 -0
  43. package/dist/components/Form/DateInput/index.js +2 -0
  44. package/dist/components/Form/DateInput/index.js.map +1 -0
  45. package/dist/components/Form/FileInput/FileInput.d.ts +10 -0
  46. package/dist/components/Form/FileInput/FileInput.js +2 -0
  47. package/dist/components/Form/FileInput/FileInput.js.map +1 -0
  48. package/dist/components/Form/FileInput/FileInput.vue.d.ts +451 -0
  49. package/dist/components/Form/FileInput/index.d.ts +1 -0
  50. package/dist/components/Form/FileInput/index.js +2 -0
  51. package/dist/components/Form/FileInput/index.js.map +1 -0
  52. package/dist/components/Form/Form.d.ts +21 -0
  53. package/dist/components/Form/Form.js +5 -0
  54. package/dist/components/Form/Form.js.map +1 -0
  55. package/dist/components/Form/Form.vue.d.ts +465 -0
  56. package/dist/components/Form/MultiSelect/MultiSelect.d.ts +15 -0
  57. package/dist/components/Form/MultiSelect/MultiSelect.js +2 -0
  58. package/dist/components/Form/MultiSelect/MultiSelect.js.map +1 -0
  59. package/dist/components/Form/MultiSelect/MultiSelect.vue.d.ts +3 -0
  60. package/dist/components/Form/MultiSelect/index.d.ts +1 -0
  61. package/dist/components/Form/MultiSelect/index.js +2 -0
  62. package/dist/components/Form/MultiSelect/index.js.map +1 -0
  63. package/dist/components/Form/PasswordInput/PasswordInput.d.ts +13 -0
  64. package/dist/components/Form/PasswordInput/PasswordInput.js +2 -0
  65. package/dist/components/Form/PasswordInput/PasswordInput.js.map +1 -0
  66. package/dist/components/Form/PasswordInput/PasswordInput.vue.d.ts +3 -0
  67. package/dist/components/Form/PasswordInput/index.d.ts +1 -0
  68. package/dist/components/Form/PasswordInput/index.js +2 -0
  69. package/dist/components/Form/PasswordInput/index.js.map +1 -0
  70. package/dist/components/Form/RadioGroup/RadioGroup.d.ts +14 -0
  71. package/dist/components/Form/RadioGroup/RadioGroup.js +2 -0
  72. package/dist/components/Form/RadioGroup/RadioGroup.js.map +1 -0
  73. package/dist/components/Form/RadioGroup/RadioGroup.vue.d.ts +3 -0
  74. package/dist/components/Form/RadioGroup/index.d.ts +1 -0
  75. package/dist/components/Form/RadioGroup/index.js +2 -0
  76. package/dist/components/Form/RadioGroup/index.js.map +1 -0
  77. package/dist/components/Form/SingleSelect/SingleSelect.d.ts +17 -0
  78. package/dist/components/Form/SingleSelect/SingleSelect.js +2 -0
  79. package/dist/components/Form/SingleSelect/SingleSelect.js.map +1 -0
  80. package/dist/components/Form/SingleSelect/SingleSelect.vue.d.ts +3 -0
  81. package/dist/components/Form/SingleSelect/index.d.ts +1 -0
  82. package/dist/components/Form/SingleSelect/index.js +2 -0
  83. package/dist/components/Form/SingleSelect/index.js.map +1 -0
  84. package/dist/components/Form/StringInput/StringInput.d.ts +13 -0
  85. package/dist/components/Form/StringInput/StringInput.js +2 -0
  86. package/dist/components/Form/StringInput/StringInput.js.map +1 -0
  87. package/dist/components/Form/StringInput/StringInput.vue.d.ts +3 -0
  88. package/dist/components/Form/StringInput/index.d.ts +1 -0
  89. package/dist/components/Form/StringInput/index.js +2 -0
  90. package/dist/components/Form/StringInput/index.js.map +1 -0
  91. package/dist/components/Form/Switch/Switch.d.ts +10 -0
  92. package/dist/components/Form/Switch/Switch.js +2 -0
  93. package/dist/components/Form/Switch/Switch.js.map +1 -0
  94. package/dist/components/Form/Switch/Switch.vue.d.ts +3 -0
  95. package/dist/components/Form/Switch/index.d.ts +1 -0
  96. package/dist/components/Form/Switch/index.js +2 -0
  97. package/dist/components/Form/Switch/index.js.map +1 -0
  98. package/dist/components/Form/Textarea/Textarea.d.ts +14 -0
  99. package/dist/components/Form/Textarea/Textarea.js +2 -0
  100. package/dist/components/Form/Textarea/Textarea.js.map +1 -0
  101. package/dist/components/Form/Textarea/Textarea.vue.d.ts +3 -0
  102. package/dist/components/Form/Textarea/index.d.ts +1 -0
  103. package/dist/components/Form/Textarea/index.js +2 -0
  104. package/dist/components/Form/Textarea/index.js.map +1 -0
  105. package/dist/components/Form/hooks/useForm.d.ts +7 -0
  106. package/dist/components/Form/hooks/useForm.js +44 -0
  107. package/dist/components/Form/hooks/useForm.js.map +1 -0
  108. package/dist/components/Form/index.d.ts +301 -0
  109. package/dist/components/Form/index.js +660 -0
  110. package/dist/components/Form/index.js.map +1 -0
  111. package/dist/components/Form/utils/index.d.ts +8 -0
  112. package/dist/components/Form/utils/index.js +26 -0
  113. package/dist/components/Form/utils/index.js.map +1 -0
  114. package/dist/components/Modal/index.d.ts +1 -14
  115. package/dist/components/Modal/useModal.d.ts +1 -1
  116. package/dist/components/Modal/useModal.js +7 -7
  117. package/dist/components/Modal/useModal.js.map +1 -0
  118. package/dist/components/Pagetable/Pagetable.d.ts +91 -0
  119. package/dist/components/Pagetable/columns/PagetableCellButton.d.ts +24 -0
  120. package/dist/components/Pagetable/columns/PagetableColumnButtongroup.d.ts +78 -0
  121. package/dist/components/Pagetable/columns/PagetableColumnDate.d.ts +101 -0
  122. package/dist/components/Pagetable/columns/PagetableColumnDiy.d.ts +78 -0
  123. package/dist/components/Pagetable/columns/PagetableColumnIndex.d.ts +5 -0
  124. package/dist/components/Pagetable/columns/PagetableColumnMultiselect.d.ts +109 -0
  125. package/dist/components/Pagetable/columns/PagetableColumnNumber.d.ts +114 -0
  126. package/dist/components/Pagetable/columns/PagetableColumnSingleselect.d.ts +109 -0
  127. package/dist/components/Pagetable/columns/PagetableColumnString.d.ts +75 -0
  128. package/dist/components/Pagetable/columns/PagetableColumngroup.d.ts +35 -0
  129. package/dist/components/Pagetable/hooks/useColumns.d.ts +1 -0
  130. package/dist/components/Pagetable/hooks/useColumns.js +96 -0
  131. package/dist/components/Pagetable/hooks/useColumns.js.map +1 -0
  132. package/dist/components/Pagetable/index.d.ts +85 -0
  133. package/dist/components/Pagetable/index.js +521 -0
  134. package/dist/components/Pagetable/index.js.map +1 -0
  135. package/dist/components/Pagetable/interface.d.ts +10 -0
  136. package/dist/components/Pagetable/interface.js +2 -0
  137. package/dist/components/Pagetable/interface.js.map +1 -0
  138. package/dist/components/Pagetable/utils/index.d.ts +15 -0
  139. package/dist/components/Pagetable/utils/index.js +169 -0
  140. package/dist/components/Pagetable/utils/index.js.map +1 -0
  141. package/dist/components/Space/index.d.ts +12 -12
  142. package/dist/components/_util/arrays.d.ts +5 -0
  143. package/dist/components/_util/arrays.js +8 -0
  144. package/dist/components/_util/arrays.js.map +1 -0
  145. package/dist/components/_util/browser.d.ts +3 -0
  146. package/dist/components/_util/browser.js +9 -0
  147. package/dist/components/_util/browser.js.map +1 -0
  148. package/dist/components/_util/classNames.js +20 -27
  149. package/dist/components/_util/classNames.js.map +1 -0
  150. package/dist/components/_util/dom/aria.d.ts +30 -0
  151. package/dist/components/_util/dom/aria.js +46 -0
  152. package/dist/components/_util/dom/aria.js.map +1 -0
  153. package/dist/components/_util/dom/element.d.ts +3 -0
  154. package/dist/components/_util/dom/element.js +18 -0
  155. package/dist/components/_util/dom/element.js.map +1 -0
  156. package/dist/components/_util/dom/event.d.ts +6 -0
  157. package/dist/components/_util/dom/event.js +10 -0
  158. package/dist/components/_util/dom/event.js.map +1 -0
  159. package/dist/components/_util/dom/index.d.ts +6 -0
  160. package/dist/components/_util/dom/index.js +39 -0
  161. package/dist/components/_util/dom/index.js.map +1 -0
  162. package/dist/components/_util/dom/position.d.ts +7 -0
  163. package/dist/components/_util/dom/position.js +30 -0
  164. package/dist/components/_util/dom/position.js.map +1 -0
  165. package/dist/components/_util/dom/scroll.d.ts +11 -0
  166. package/dist/components/_util/dom/scroll.js +78 -0
  167. package/dist/components/_util/dom/scroll.js.map +1 -0
  168. package/dist/components/_util/dom/style.d.ts +9 -0
  169. package/dist/components/_util/dom/style.js +58 -0
  170. package/dist/components/_util/dom/style.js.map +1 -0
  171. package/dist/components/_util/easings.d.ts +1 -0
  172. package/dist/components/_util/easings.js +8 -0
  173. package/dist/components/_util/easings.js.map +1 -0
  174. package/dist/components/_util/error.d.ts +3 -0
  175. package/dist/components/_util/error.js +22 -0
  176. package/dist/components/_util/error.js.map +1 -0
  177. package/dist/components/_util/functions.d.ts +1 -0
  178. package/dist/components/_util/functions.js +6 -0
  179. package/dist/components/_util/functions.js.map +1 -0
  180. package/dist/components/_util/i18n.d.ts +1 -0
  181. package/dist/components/_util/i18n.js +5 -0
  182. package/dist/components/_util/i18n.js.map +1 -0
  183. package/dist/components/_util/index.d.ts +15 -0
  184. package/dist/components/_util/index.js +140 -0
  185. package/dist/components/_util/index.js.map +1 -0
  186. package/dist/components/_util/isValid.js +4 -4
  187. package/dist/components/_util/isValid.js.map +1 -0
  188. package/dist/components/_util/objects.d.ts +8 -0
  189. package/dist/components/_util/objects.js +17 -0
  190. package/dist/components/_util/objects.js.map +1 -0
  191. package/dist/components/_util/props-util/index.d.ts +4 -4
  192. package/dist/components/_util/props-util/index.js +23 -50
  193. package/dist/components/_util/props-util/index.js.map +1 -0
  194. package/dist/components/_util/props-util/initDefaultProps.d.ts +2 -2
  195. package/dist/components/_util/props-util/initDefaultProps.js +13 -24
  196. package/dist/components/_util/props-util/initDefaultProps.js.map +1 -0
  197. package/dist/components/_util/raf.d.ts +2 -0
  198. package/dist/components/_util/raf.js +7 -0
  199. package/dist/components/_util/raf.js.map +1 -0
  200. package/dist/components/_util/rand.d.ts +12 -0
  201. package/dist/components/_util/rand.js +6 -0
  202. package/dist/components/_util/rand.js.map +1 -0
  203. package/dist/components/_util/strings.d.ts +6 -0
  204. package/dist/components/_util/strings.js +11 -0
  205. package/dist/components/_util/strings.js.map +1 -0
  206. package/dist/components/_util/throttleByRaf.d.ts +4 -0
  207. package/dist/components/_util/throttleByRaf.js +16 -0
  208. package/dist/components/_util/throttleByRaf.js.map +1 -0
  209. package/dist/components/_util/type.d.ts +5 -1
  210. package/dist/components/_util/type.js +52 -65
  211. package/dist/components/_util/type.js.map +1 -0
  212. package/dist/components/_util/types.d.ts +10 -0
  213. package/dist/components/_util/types.js +25 -0
  214. package/dist/components/_util/types.js.map +1 -0
  215. package/dist/components/_util/typescript.d.ts +12 -0
  216. package/dist/components/_util/typescript.js +5 -0
  217. package/dist/components/_util/typescript.js.map +1 -0
  218. package/dist/components/_util/util.d.ts +1 -1
  219. package/dist/components/_util/util.js +46 -74
  220. package/dist/components/_util/util.js.map +1 -0
  221. package/dist/components/_util/vue/global-node.d.ts +3 -0
  222. package/dist/components/_util/vue/global-node.js +21 -0
  223. package/dist/components/_util/vue/global-node.js.map +1 -0
  224. package/dist/components/_util/vue/icon.d.ts +23 -0
  225. package/dist/components/_util/vue/icon.js +154 -0
  226. package/dist/components/_util/vue/icon.js.map +1 -0
  227. package/dist/components/_util/vue/index.d.ts +9 -0
  228. package/dist/components/_util/vue/index.js +44 -0
  229. package/dist/components/_util/vue/index.js.map +1 -0
  230. package/dist/components/_util/vue/install.d.ts +6 -0
  231. package/dist/components/_util/vue/install.js +21 -0
  232. package/dist/components/_util/vue/install.js.map +1 -0
  233. package/dist/components/_util/vue/props/index.d.ts +3 -0
  234. package/dist/components/_util/vue/props/index.js +9 -0
  235. package/dist/components/_util/vue/props/index.js.map +1 -0
  236. package/dist/components/_util/vue/props/runtime.d.ts +29 -0
  237. package/dist/components/_util/vue/props/runtime.js +37 -0
  238. package/dist/components/_util/vue/props/runtime.js.map +1 -0
  239. package/dist/components/_util/vue/props/types.d.ts +120 -0
  240. package/dist/components/_util/vue/props/types.js +2 -0
  241. package/dist/components/_util/vue/props/types.js.map +1 -0
  242. package/dist/components/_util/vue/props/util.d.ts +8 -0
  243. package/dist/components/_util/vue/props/util.js +2 -0
  244. package/dist/components/_util/vue/props/util.js.map +1 -0
  245. package/dist/components/_util/vue/refs.d.ts +3 -0
  246. package/dist/components/_util/vue/refs.js +12 -0
  247. package/dist/components/_util/vue/refs.js.map +1 -0
  248. package/dist/components/_util/vue/size.d.ts +2 -0
  249. package/dist/components/_util/vue/size.js +6 -0
  250. package/dist/components/_util/vue/size.js.map +1 -0
  251. package/dist/components/_util/vue/typescript.d.ts +5 -0
  252. package/dist/components/_util/vue/typescript.js +2 -0
  253. package/dist/components/_util/vue/typescript.js.map +1 -0
  254. package/dist/components/_util/vue/validator.d.ts +3 -0
  255. package/dist/components/_util/vue/validator.js +7 -0
  256. package/dist/components/_util/vue/validator.js.map +1 -0
  257. package/dist/components/_util/vue/vnode.d.ts +50 -0
  258. package/dist/components/_util/vue/vnode.js +68 -0
  259. package/dist/components/_util/vue/vnode.js.map +1 -0
  260. package/dist/components/_util/vue-types/index.d.ts +3 -3
  261. package/dist/components/_util/vue-types/index.js +275 -417
  262. package/dist/components/_util/vue-types/index.js.map +1 -0
  263. package/dist/components/components.d.ts +4 -0
  264. package/dist/components/components.js +19 -12
  265. package/dist/components/components.js.map +1 -0
  266. package/dist/components/index.d.ts +1 -1
  267. package/dist/components/index.js +26 -24
  268. package/dist/components/index.js.map +1 -0
  269. package/dist/components-CutWiB7Q.js +68 -0
  270. package/dist/components-CutWiB7Q.js.map +1 -0
  271. package/dist/error/OrionError.js +7 -12
  272. package/dist/error/OrionError.js.map +1 -0
  273. package/dist/functions-DzLqXvGt.js +33 -0
  274. package/dist/functions-DzLqXvGt.js.map +1 -0
  275. package/dist/index-BbsXWo7C.js +44 -0
  276. package/dist/index-BbsXWo7C.js.map +1 -0
  277. package/dist/index-C8JNJPWW.js +8 -0
  278. package/dist/index-C8JNJPWW.js.map +1 -0
  279. package/dist/index.css +1 -44
  280. package/dist/index.d.ts +2 -1
  281. package/dist/index.js +27 -14
  282. package/dist/index.js.map +1 -0
  283. package/dist/print/LodopFuncs.js +48 -111
  284. package/dist/print/LodopFuncs.js.map +1 -0
  285. package/dist/print/index.d.ts +2 -2
  286. package/dist/print/index.js +111 -220
  287. package/dist/print/index.js.map +1 -0
  288. package/dist/request/ErrorHandlerChain.js +17 -15
  289. package/dist/request/ErrorHandlerChain.js.map +1 -0
  290. package/dist/request/RequestFilterChain.d.ts +1 -1
  291. package/dist/request/RequestFilterChain.js +16 -14
  292. package/dist/request/RequestFilterChain.js.map +1 -0
  293. package/dist/request/ResponseParserChain.d.ts +1 -1
  294. package/dist/request/ResponseParserChain.js +17 -15
  295. package/dist/request/ResponseParserChain.js.map +1 -0
  296. package/dist/request/disivion/DateSerializer.js +25 -46
  297. package/dist/request/disivion/DateSerializer.js.map +1 -0
  298. package/dist/request/disivion/DivisionErrorHandler.d.ts +1 -1
  299. package/dist/request/disivion/DivisionErrorHandler.js +30 -52
  300. package/dist/request/disivion/DivisionErrorHandler.js.map +1 -0
  301. package/dist/request/disivion/DivisionResponseParser.d.ts +2 -2
  302. package/dist/request/disivion/DivisionResponseParser.js +13 -25
  303. package/dist/request/disivion/DivisionResponseParser.js.map +1 -0
  304. package/dist/request/disivion/index.d.ts +3 -3
  305. package/dist/request/disivion/index.js +230 -480
  306. package/dist/request/disivion/index.js.map +1 -0
  307. package/dist/request/error/BizExceptionResponseError.d.ts +2 -2
  308. package/dist/request/error/BizExceptionResponseError.js +8 -15
  309. package/dist/request/error/BizExceptionResponseError.js.map +1 -0
  310. package/dist/request/error/ExceptionResponseError.d.ts +2 -2
  311. package/dist/request/error/ExceptionResponseError.js +8 -15
  312. package/dist/request/error/ExceptionResponseError.js.map +1 -0
  313. package/dist/request/error/ResponseError.d.ts +1 -1
  314. package/dist/request/error/ResponseError.js +7 -14
  315. package/dist/request/error/ResponseError.js.map +1 -0
  316. package/dist/request/error/SessionExceptionResponseError.d.ts +2 -2
  317. package/dist/request/error/SessionExceptionResponseError.js +8 -15
  318. package/dist/request/error/SessionExceptionResponseError.js.map +1 -0
  319. package/dist/request/index.js +11 -17
  320. package/dist/request/index.js.map +1 -0
  321. package/dist/style/index.d.ts +0 -3
  322. package/dist/style/index.js +1 -0
  323. package/dist/style/index.js.map +1 -0
  324. package/dist/utils/DateUtil.js +36 -50
  325. package/dist/utils/DateUtil.js.map +1 -0
  326. package/dist/utils/NumberUtil.js +9 -8
  327. package/dist/utils/NumberUtil.js.map +1 -0
  328. package/dist/utils/cloneDeep.js +5 -1
  329. package/dist/utils/cloneDeep.js.map +1 -0
  330. package/dist/utils/delay.js +6 -4
  331. package/dist/utils/delay.js.map +1 -0
  332. package/dist/utils/functions.d.ts +1 -0
  333. package/dist/utils/functions.js +6 -0
  334. package/dist/utils/functions.js.map +1 -0
  335. package/dist/utils/index.js +15 -9
  336. package/dist/utils/index.js.map +1 -0
  337. package/dist/utils/md5.js +120 -245
  338. package/dist/utils/md5.js.map +1 -0
  339. package/dist/utils/uuid.js +28 -58
  340. package/dist/utils/uuid.js.map +1 -0
  341. package/dist/version/index.d.ts +1 -1
  342. package/dist/version/index.js +5 -6
  343. package/dist/version/index.js.map +1 -0
  344. package/dist/version/version.d.ts +1 -1
  345. package/dist/version/version.js +5 -3
  346. package/dist/version/version.js.map +1 -0
  347. package/dist/vite.svg +1 -0
  348. package/global.d.ts +6 -0
  349. package/package.json +53 -63
  350. package/dist/components-BTX5S_6V.js +0 -128
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Vue 3 + TypeScript + Vite
2
+
3
+ This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
+
5
+ Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
@@ -0,0 +1,18 @@
1
+ import { Ref } from 'vue';
2
+ export interface CodeItem {
3
+ value: string;
4
+ content: string;
5
+ }
6
+ export type CascadeSysCodeItem = {
7
+ value: string;
8
+ content: string;
9
+ parent?: string;
10
+ };
11
+ export interface ThroneType {
12
+ hasAuth: (authId: string) => boolean | null;
13
+ getIcon: (iconId: string) => () => unknown;
14
+ getCode: (codeName: string) => Ref<Array<CodeItem>>;
15
+ impl: (throne: Partial<ThroneType>) => void;
16
+ }
17
+ declare const Throne: ThroneType;
18
+ export default Throne;
@@ -0,0 +1,20 @@
1
+ import o from "../error/OrionError.js";
2
+ let t = () => {
3
+ throw new o("Throne.hasAuth not configured!");
4
+ }, n = (e) => {
5
+ throw new o("Throne.getIcon not configured!");
6
+ }, r = (e) => {
7
+ throw new o("Throne.getCode not configured!");
8
+ };
9
+ const h = {
10
+ hasAuth: (e) => t(e),
11
+ getIcon: (e) => n(e),
12
+ getCode: (e) => r(e),
13
+ impl: (e) => {
14
+ e.hasAuth && (t = e.hasAuth), e.getIcon && (n = e.getIcon), e.getCode && (r = e.getCode);
15
+ }
16
+ };
17
+ export {
18
+ h as default
19
+ };
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/Throne/index.ts"],"sourcesContent":["import OrionError from '../error/OrionError'\r\nimport type { Ref } from 'vue'\r\n\r\nexport interface CodeItem {\r\n value: string\r\n content: string\r\n}\r\n\r\nexport type CascadeSysCodeItem = {\r\n value: string\r\n content: string\r\n parent?: string\r\n}\r\n\r\nexport interface ThroneType {\r\n hasAuth: (authId: string) => boolean | null\r\n getIcon: (iconId: string) => () => unknown\r\n getCode: (codeName: string) => Ref<Array<CodeItem>>\r\n impl: (throne: Partial<ThroneType>) => void\r\n}\r\n\r\nlet hasAuth: ThroneType['hasAuth'] = () => {\r\n throw new OrionError(`Throne.hasAuth not configured!`)\r\n}\r\n\r\nlet getIcon: ThroneType['getIcon'] = (iconId) => {\r\n throw new OrionError(`Throne.getIcon not configured!`)\r\n}\r\n\r\nlet getCode: ThroneType['getCode'] = (codeName) => {\r\n throw new OrionError(`Throne.getCode not configured!`)\r\n}\r\n\r\nconst Throne: ThroneType = {\r\n hasAuth: (authId) => {\r\n return hasAuth(authId)\r\n },\r\n getIcon: (iconId) => {\r\n return getIcon(iconId)\r\n },\r\n getCode: (codeName) => {\r\n return getCode(codeName)\r\n },\r\n impl: (throne) => {\r\n if (throne.hasAuth) {\r\n hasAuth = throne.hasAuth\r\n }\r\n\r\n if (throne.getIcon) {\r\n getIcon = throne.getIcon\r\n }\r\n\r\n if (throne.getCode) {\r\n getCode = throne.getCode\r\n }\r\n },\r\n}\r\n\r\nexport default Throne\r\n"],"names":["hasAuth","OrionError","getIcon","iconId","getCode","codeName","Throne","authId","throne"],"mappings":";AAqBA,IAAIA,IAAiC,MAAM;AACnC,QAAA,IAAIC,EAAW,gCAAgC;AACvD,GAEIC,IAAiC,CAACC,MAAW;AACzC,QAAA,IAAIF,EAAW,gCAAgC;AACvD,GAEIG,IAAiC,CAACC,MAAa;AAC3C,QAAA,IAAIJ,EAAW,gCAAgC;AACvD;AAEA,MAAMK,IAAqB;AAAA,EACzB,SAAS,CAACC,MACDP,EAAQO,CAAM;AAAA,EAEvB,SAAS,CAACJ,MACDD,EAAQC,CAAM;AAAA,EAEvB,SAAS,CAACE,MACDD,EAAQC,CAAQ;AAAA,EAEzB,MAAM,CAACG,MAAW;AAChB,IAAIA,EAAO,YACTR,IAAUQ,EAAO,UAGfA,EAAO,YACTN,IAAUM,EAAO,UAGfA,EAAO,YACTJ,IAAUI,EAAO;AAAA,EAErB;AACF;"}
@@ -0,0 +1,9 @@
1
+ var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function l(e) {
3
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
+ }
5
+ export {
6
+ o as c,
7
+ l as g
8
+ };
9
+ //# sourceMappingURL=_commonjsHelpers-DaMA6jEr.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_commonjsHelpers-DaMA6jEr.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('../_util').SFCWithInstall<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>> & {};
2
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import "lodash-es";
2
+ import { defineComponent as u, onMounted as c, openBlock as s, createBlock as p, unref as _, withCtx as a, createTextVNode as l } from "vue";
3
+ import { withInstall as m } from "../_util/vue/install.js";
4
+ import { ElButton as d } from "element-plus";
5
+ const f = /* @__PURE__ */ u({
6
+ name: "OButton",
7
+ __name: "Button",
8
+ setup(o) {
9
+ return c(() => {
10
+ console.log("Button onMounted1");
11
+ }), (n, t) => (s(), p(_(d), null, {
12
+ default: a(() => t[0] || (t[0] = [
13
+ l("XX")
14
+ ])),
15
+ _: 1
16
+ }));
17
+ }
18
+ }), i = (o, n) => {
19
+ const t = o.__vccOpts || o;
20
+ for (const [e, r] of n)
21
+ t[e] = r;
22
+ return t;
23
+ }, B = /* @__PURE__ */ i(f, [["__scopeId", "data-v-e59d2724"]]), w = m(B);
24
+ export {
25
+ w as default
26
+ };
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Button/Button.vue","../../../src/components/Button/index.ts"],"sourcesContent":["<template>\r\n <el-button>XX</el-button>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { onMounted } from 'vue'\r\n\r\nimport { ElButton } from 'element-plus'\r\n\r\ndefineOptions({ name: 'OButton' })\r\n\r\nonMounted(() => {\r\n console.log('Button onMounted1')\r\n})\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.app {\r\n p {\r\n font-size: 32px;\r\n color: aqua;\r\n }\r\n button {\r\n color: red;\r\n }\r\n}\r\n</style>\r\n","import { withInstall } from '../_util'\r\n\r\nimport Button from './Button.vue'\r\n\r\nexport default withInstall<typeof Button, {}>(Button)\r\n"],"names":["onMounted","index","withInstall","Button"],"mappings":";;;;;;;;AAUA,WAAAA,EAAU,MAAM;AACd,cAAQ,IAAI,mBAAmB;AAAA,IAAA,CAChC;;;;;;;;;;;;iECRcC,IAAAC,EAA+BC,CAAM;"}
@@ -1,4 +1,4 @@
1
- import type { PropType, ExtractPropTypes } from 'vue';
1
+ import { PropType, ExtractPropTypes } from 'vue';
2
2
  export declare const colProps: () => {
3
3
  gutter: {
4
4
  default: string | boolean;
@@ -7,13 +7,13 @@ export declare const colProps: () => {
7
7
  height: StringConstructor;
8
8
  };
9
9
  export type ColProps = Partial<ExtractPropTypes<ReturnType<typeof colProps>>>;
10
- declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
10
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
11
11
  gutter: {
12
12
  default: string | boolean;
13
13
  type: PropType<string | boolean>;
14
14
  };
15
15
  height: StringConstructor;
16
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
17
17
  gutter: {
18
18
  default: string | boolean;
19
19
  type: PropType<string | boolean>;
@@ -21,5 +21,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
21
21
  height: StringConstructor;
22
22
  }>> & Readonly<{}>, {
23
23
  gutter: string | boolean;
24
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
25
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { ExtractPropTypes } from 'vue';
1
+ import { ExtractPropTypes } from 'vue';
2
2
  export declare const itemProps: () => {
3
3
  flexBasic: StringConstructor;
4
4
  hidden: {
@@ -7,13 +7,13 @@ export declare const itemProps: () => {
7
7
  };
8
8
  };
9
9
  export type ItemProps = Partial<ExtractPropTypes<ReturnType<typeof itemProps>>>;
10
- declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
10
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
11
11
  flexBasic: StringConstructor;
12
12
  hidden: {
13
13
  type: BooleanConstructor;
14
14
  default: boolean;
15
15
  };
16
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
17
17
  flexBasic: StringConstructor;
18
18
  hidden: {
19
19
  type: BooleanConstructor;
@@ -21,5 +21,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
21
21
  };
22
22
  }>> & Readonly<{}>, {
23
23
  hidden: boolean;
24
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
25
  export default _default;
@@ -1,4 +1,4 @@
1
- import type { PropType, ExtractPropTypes } from 'vue';
1
+ import { PropType, ExtractPropTypes } from 'vue';
2
2
  export declare const rowProps: () => {
3
3
  gutter: {
4
4
  default: string | boolean;
@@ -7,13 +7,13 @@ export declare const rowProps: () => {
7
7
  height: StringConstructor;
8
8
  };
9
9
  export type RowProps = Partial<ExtractPropTypes<ReturnType<typeof rowProps>>>;
10
- declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
10
+ declare const _default: import('vue').DefineComponent<ExtractPropTypes<{
11
11
  gutter: {
12
12
  default: string | boolean;
13
13
  type: PropType<string | boolean>;
14
14
  };
15
15
  height: StringConstructor;
16
- }>, () => any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
16
+ }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
17
17
  gutter: {
18
18
  default: string | boolean;
19
19
  type: PropType<string | boolean>;
@@ -21,5 +21,5 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
21
21
  height: StringConstructor;
22
22
  }>> & Readonly<{}>, {
23
23
  gutter: string | boolean;
24
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
25
  export default _default;
@@ -1,7 +1,7 @@
1
- import type { Plugin } from 'vue';
2
- import Row from './Row';
3
- import Col from './Col';
4
- import Item from './Item';
1
+ import { Plugin } from 'vue';
2
+ import { default as Row } from './Row';
3
+ import { default as Col } from './Col';
4
+ import { default as Item } from './Item';
5
5
  export declare const Rowflex: typeof Row & Plugin;
6
6
  export declare const Colflex: typeof Col & Plugin;
7
7
  export declare const Flexitem: typeof Item & Plugin;
@@ -1,151 +1,119 @@
1
- import { defineComponent, computed, createVNode } from 'vue';
2
- import classNames from '../_util/classNames.js';
3
- import OrionError from '../../error/OrionError.js';
4
- import { anyType, booleanType } from '../_util/type.js';
5
- import '../_util/util.js';
6
-
7
- const rowProps = () => ({
8
- gutter: anyType(),
1
+ import { defineComponent as s, computed as h, createVNode as a } from "vue";
2
+ import m from "../_util/classNames.js";
3
+ import d from "../../error/OrionError.js";
4
+ import { anyType as y, booleanType as w } from "../_util/type.js";
5
+ const v = () => ({
6
+ gutter: y(),
9
7
  height: String
10
- });
11
- var Row = defineComponent({
12
- name: 'ORowflex',
13
- inheritAttrs: false,
14
- props: rowProps(),
15
- setup(props, {
16
- slots,
17
- attrs,
18
- emit,
19
- expose
8
+ }), f = /* @__PURE__ */ s({
9
+ name: "ORowflex",
10
+ inheritAttrs: !1,
11
+ props: v(),
12
+ setup(e, {
13
+ slots: i,
14
+ attrs: r,
15
+ emit: x,
16
+ expose: g
20
17
  }) {
21
- const style = computed(() => {
22
- const rowStyle = {};
23
- rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined;
24
- if (props.height) {
25
- if (props.height == 'fill') {
26
- throw new OrionError(`ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`);
27
- } else if (props.height == 'need') ; else {
28
- rowStyle.height = props.height;
29
- }
30
- } else {
31
- rowStyle.height = '100%';
32
- }
33
- return rowStyle;
18
+ const o = h(() => {
19
+ const t = {};
20
+ if (t.gap = e.gutter === !0 || e.gutter === "" ? "var(--orion-flex-gutter)" : e.gutter ? e.gutter : void 0, e.height) {
21
+ if (e.height == "fill")
22
+ throw new d("ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!");
23
+ e.height == "need" || (t.height = e.height);
24
+ } else
25
+ t.height = "100%";
26
+ return t;
34
27
  });
35
28
  return () => {
36
- const children = slots.default?.();
37
- const cn = classNames('orion-flex', 'orion-flex-row', 'orion-flex-justify-start');
38
- return createVNode("div", {
39
- "class": [cn, attrs.class],
40
- "style": [style.value, attrs.style]
41
- }, [children]);
29
+ var n;
30
+ const t = (n = i.default) == null ? void 0 : n.call(i), l = m("orion-flex", "orion-flex-row", "orion-flex-justify-start");
31
+ return a("div", {
32
+ class: [l, r.class],
33
+ style: [o.value, r.style]
34
+ }, [t]);
42
35
  };
43
36
  }
44
- });
45
-
46
- const colProps = () => ({
47
- gutter: anyType(),
37
+ }), B = () => ({
38
+ gutter: y(),
48
39
  height: String
49
- });
50
- var Col = defineComponent({
51
- name: 'OColflex',
52
- inheritAttrs: false,
53
- props: colProps(),
54
- setup(props, {
55
- slots,
56
- attrs,
57
- emit,
58
- expose
40
+ }), c = /* @__PURE__ */ s({
41
+ name: "OColflex",
42
+ inheritAttrs: !1,
43
+ props: B(),
44
+ setup(e, {
45
+ slots: i,
46
+ attrs: r,
47
+ emit: x,
48
+ expose: g
59
49
  }) {
60
- const style = computed(() => {
61
- const rowStyle = {};
62
- rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined;
63
- if (props.height) {
64
- if (props.height == 'fill') {
65
- throw new OrionError(`OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`);
66
- } else if (props.height == 'need') ; else {
67
- rowStyle.height = props.height;
68
- }
69
- } else {
70
- rowStyle.height = '100%';
71
- }
72
- return rowStyle;
50
+ const o = h(() => {
51
+ const t = {};
52
+ if (t.gap = e.gutter === !0 || e.gutter === "" ? "var(--orion-flex-gutter)" : e.gutter ? e.gutter : void 0, e.height) {
53
+ if (e.height == "fill")
54
+ throw new d("OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!");
55
+ e.height == "need" || (t.height = e.height);
56
+ } else
57
+ t.height = "100%";
58
+ return t;
73
59
  });
74
60
  return () => {
75
- const children = slots.default?.();
76
- const cn = classNames('orion-flex', 'orion-flex-column');
77
- return createVNode("div", {
78
- "class": [cn, attrs.class],
79
- "style": [style.value, attrs.style]
80
- }, [children]);
61
+ var n;
62
+ const t = (n = i.default) == null ? void 0 : n.call(i), l = m("orion-flex", "orion-flex-column");
63
+ return a("div", {
64
+ class: [l, r.class],
65
+ style: [o.value, r.style]
66
+ }, [t]);
81
67
  };
82
68
  }
83
- });
84
-
85
- const itemProps = () => ({
69
+ }), C = () => ({
86
70
  flexBasic: String,
87
- hidden: booleanType(false)
88
- });
89
- var Item = defineComponent({
90
- name: 'OFlexitem',
91
- inheritAttrs: false,
92
- props: itemProps(),
93
- setup(props, {
94
- slots,
95
- attrs,
96
- emit,
97
- expose
71
+ hidden: w(!1)
72
+ }), u = /* @__PURE__ */ s({
73
+ name: "OFlexitem",
74
+ inheritAttrs: !1,
75
+ props: C(),
76
+ setup(e, {
77
+ slots: i,
78
+ attrs: r,
79
+ emit: x,
80
+ expose: g
98
81
  }) {
99
- const style = computed(() => {
100
- const itemStyle = {};
101
- if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {
102
- itemStyle['flex'] = `0 0 ${props.flexBasic}`;
103
- }
104
- return itemStyle;
105
- });
106
- const classes = computed(() => {
82
+ const o = h(() => {
83
+ const l = {};
84
+ return e.flexBasic !== "need" && e.flexBasic !== "fill" && (l.flex = `0 0 ${e.flexBasic}`), l;
85
+ }), t = h(() => {
107
86
  const {
108
- hidden
109
- } = props;
110
- let flexClass = 'orion-flexitem-fill';
111
- if (props.flexBasic) {
112
- if (props.flexBasic == 'need') {
113
- flexClass = 'orion-flexitem-auto';
114
- } else if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {
115
- flexClass = 'orion-flexitem-fixed';
116
- }
117
- }
118
- return ['orion-flexitem', flexClass, {
119
- [`orion-hidden`]: hidden
87
+ hidden: l
88
+ } = e;
89
+ let n = "orion-flexitem-fill";
90
+ return e.flexBasic && (e.flexBasic == "need" ? n = "orion-flexitem-auto" : e.flexBasic !== "need" && e.flexBasic !== "fill" && (n = "orion-flexitem-fixed")), ["orion-flexitem", n, {
91
+ "orion-hidden": l
120
92
  }];
121
93
  });
122
94
  return () => {
123
- const children = slots.default?.();
124
- return createVNode("div", {
125
- "class": [classes.value, attrs.class],
126
- "style": [style.value, attrs.style]
127
- }, [children]);
95
+ var n;
96
+ const l = (n = i.default) == null ? void 0 : n.call(i);
97
+ return a("div", {
98
+ class: [t.value, r.class],
99
+ style: [o.value, r.style]
100
+ }, [l]);
128
101
  };
129
102
  }
130
103
  });
131
-
132
- Row.install = function (app) {
133
- // @ts-ignore
134
- app.component(Row.name, Row);
135
- return app;
104
+ f.install = function(e) {
105
+ return e.component(f.name, f), e;
106
+ };
107
+ c.install = function(e) {
108
+ return e.component(c.name, c), e;
136
109
  };
137
- Col.install = function (app) {
138
- // @ts-ignore
139
- app.component(Col.name, Col);
140
- return app;
110
+ u.install = function(e) {
111
+ return e.component(u.name, u), e;
141
112
  };
142
- Item.install = function (app) {
143
- // @ts-ignore
144
- app.component(Item.name, Item);
145
- return app;
113
+ const P = f, F = c, N = u;
114
+ export {
115
+ F as Colflex,
116
+ N as Flexitem,
117
+ P as Rowflex
146
118
  };
147
- const Rowflex = Row;
148
- const Colflex = Col;
149
- const Flexitem = Item;
150
-
151
- export { Colflex, Flexitem, Rowflex };
119
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../src/components/Flex/Row.tsx","../../../src/components/Flex/Col.tsx","../../../src/components/Flex/Item.tsx","../../../src/components/Flex/index.ts"],"sourcesContent":["import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport OrionError from '../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple } from '../_util/type'\r\n\r\nexport const rowProps = () => ({\r\n gutter: anyType<boolean | string>(),\r\n height: String,\r\n})\r\n\r\nexport type RowProps = Partial<ExtractPropTypes<ReturnType<typeof rowProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'ORowflex',\r\n inheritAttrs: false,\r\n props: rowProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined\r\n\r\n if (props.height) {\r\n if (props.height == 'fill') {\r\n throw new OrionError(`ORowflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`)\r\n } else if (props.height == 'need') {\r\n } else {\r\n rowStyle.height = props.height\r\n }\r\n } else {\r\n rowStyle.height = '100%'\r\n }\r\n\r\n return rowStyle\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n const cn = classNames('orion-flex', 'orion-flex-row', 'orion-flex-justify-start')\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport OrionError from '../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple } from '../_util/type'\r\n\r\nexport const colProps = () => ({\r\n gutter: anyType<boolean | string>(),\r\n height: String,\r\n})\r\n\r\nexport type ColProps = Partial<ExtractPropTypes<ReturnType<typeof colProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OColflex',\r\n inheritAttrs: false,\r\n props: colProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const rowStyle: CSSProperties = {}\r\n rowStyle.gap = props.gutter === true || props.gutter === '' ? `var(--orion-flex-gutter)` : props.gutter ? props.gutter : undefined\r\n\r\n if (props.height) {\r\n if (props.height == 'fill') {\r\n throw new OrionError(`OColflex的height无法配置为['fill'],可以设置的值如['need', '100%', '200px'],请检查!`)\r\n } else if (props.height == 'need') {\r\n } else {\r\n rowStyle.height = props.height\r\n }\r\n } else {\r\n rowStyle.height = '100%'\r\n }\r\n\r\n return rowStyle\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n const cn = classNames('orion-flex', 'orion-flex-column')\r\n\r\n return (\r\n <div class={[cn, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import { computed, defineComponent } from 'vue'\r\nimport type { PropType, ExtractPropTypes, CSSProperties, Plugin, App } from 'vue'\r\nimport classNames from '../_util/classNames'\r\nimport OrionError from '../../error/OrionError'\r\nimport { anyType, booleanType, functionType, objectType, someType, stringType, tuple } from '../_util/type'\r\n\r\nexport const itemProps = () => ({\r\n flexBasic: String,\r\n hidden: booleanType(false),\r\n})\r\n\r\nexport type ItemProps = Partial<ExtractPropTypes<ReturnType<typeof itemProps>>>\r\n\r\nexport default defineComponent({\r\n name: 'OFlexitem',\r\n inheritAttrs: false,\r\n props: itemProps(),\r\n setup(props, { slots, attrs, emit, expose }) {\r\n const style = computed(() => {\r\n const itemStyle: CSSProperties = {}\r\n\r\n if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {\r\n itemStyle['flex'] = `0 0 ${props.flexBasic}`\r\n }\r\n\r\n return itemStyle\r\n })\r\n\r\n const classes = computed(() => {\r\n const { hidden } = props\r\n\r\n let flexClass = 'orion-flexitem-fill'\r\n if (props.flexBasic) {\r\n if (props.flexBasic == 'need') {\r\n flexClass = 'orion-flexitem-auto'\r\n } else if (props.flexBasic !== 'need' && props.flexBasic !== 'fill') {\r\n flexClass = 'orion-flexitem-fixed'\r\n }\r\n }\r\n\r\n return ['orion-flexitem', flexClass, { [`orion-hidden`]: hidden }]\r\n })\r\n\r\n return () => {\r\n const children = slots.default?.()\r\n\r\n return (\r\n <div class={[classes.value, attrs.class]} style={[style.value, attrs.style as CSSProperties]}>\r\n {children}\r\n </div>\r\n )\r\n }\r\n },\r\n})\r\n","import type { App, Plugin } from 'vue'\r\n\r\nimport Row from './Row'\r\nimport Col from './Col'\r\nimport Item from './Item'\r\n\r\nRow.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Row.name, Row)\r\n return app\r\n}\r\nCol.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Col.name, Col)\r\n return app\r\n}\r\nItem.install = function (app: App) {\r\n // @ts-ignore\r\n app.component(Item.name, Item)\r\n return app\r\n}\r\n\r\nexport const Rowflex = Row as typeof Row & Plugin\r\nexport const Colflex = Col as typeof Col & Plugin\r\nexport const Flexitem = Item as typeof Item & Plugin\r\n\r\nexport type { RowProps as RowflexProps } from './Row'\r\nexport type { ColProps as ColflexProps } from './Col'\r\nexport type { ItemProps as FlexitemProps } from './Item'\r\n"],"names":["rowProps","gutter","anyType","height","String","defineComponent","name","inheritAttrs","props","setup","slots","attrs","emit","expose","style","computed","rowStyle","gap","undefined","OrionError","children","default","cn","classNames","_createVNode","class","value","colProps","itemProps","flexBasic","hidden","booleanType","itemStyle","classes","flexClass","Row","app","Col","Item","Rowflex","Colflex","Flexitem"],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ export interface ButtonGroupProps {
2
+ span?: number;
3
+ gutter?: boolean | string;
4
+ align?: 'left' | 'center' | 'right';
5
+ }
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=ButtonGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ButtonGroup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { ButtonGroupProps } from './ButtonGroup';
2
+ declare function __VLS_template(): {
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ attrs: Partial<{}>;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<ButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ButtonGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1 @@
1
+ export * from './ButtonGroup';
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import { FormItemRule, Arrayable } from '../Form';
2
+ export interface CheckboxProps {
3
+ name: string;
4
+ label?: string;
5
+ span?: number;
6
+ labelWidth?: string | number;
7
+ required?: boolean;
8
+ rules?: Arrayable<FormItemRule>;
9
+ disabled?: boolean;
10
+ }
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=Checkbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Checkbox.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { CheckboxProps } from './Checkbox';
2
+ declare const _default: import('vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CheckboxProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export * from './Checkbox';
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import { FormItemRule, Arrayable } from '../Form';
2
+ export interface CheckboxGroupProps {
3
+ name: string;
4
+ label?: string;
5
+ span?: number;
6
+ labelWidth?: string | number;
7
+ required?: boolean;
8
+ rules?: Arrayable<FormItemRule>;
9
+ disabled?: boolean;
10
+ code?: string | Array<{
11
+ value: string;
12
+ content: string;
13
+ }>;
14
+ }
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=CheckboxGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxGroup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { CheckboxGroupProps } from './CheckboxGroup';
2
+ declare const _default: import('vue').DefineComponent<CheckboxGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CheckboxGroupProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export * from './CheckboxGroup';
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import { FormItemRule, Arrayable } from '../Form';
2
+ export interface DateInputProps {
3
+ name: string;
4
+ label?: string;
5
+ span?: number;
6
+ labelWidth?: string | number;
7
+ required?: boolean;
8
+ rules?: Arrayable<FormItemRule>;
9
+ maxlength?: string | number;
10
+ placeholder?: string;
11
+ disabled?: boolean;
12
+ readonly?: boolean;
13
+ editable?: boolean;
14
+ clearable?: boolean;
15
+ format?: string;
16
+ sourceFormat?: string;
17
+ }