@thestarweb/ui 1.7.0 → 2.0.0-beta.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 (256) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.mjs +7 -0
  2. package/dist/components/base/button/button.vue.mjs +5 -0
  3. package/dist/components/base/button/button.vue_vue_type_script_setup_true_lang.mjs +27 -0
  4. package/dist/components/base/button/index.mjs +1 -0
  5. package/dist/components/base/index.mjs +2 -0
  6. package/dist/components/data/card/card.vue.mjs +5 -0
  7. package/dist/components/data/card/card.vue_vue_type_script_setup_true_lang.mjs +50 -0
  8. package/dist/components/data/card/index.mjs +1 -0
  9. package/dist/components/data/index.mjs +11 -0
  10. package/dist/components/data/popover/index.mjs +1 -0
  11. package/dist/components/data/popover/popover.vue.mjs +5 -0
  12. package/dist/components/data/popover/popover.vue_vue_type_script_setup_true_lang.mjs +123 -0
  13. package/dist/components/data/popover/utils.mjs +68 -0
  14. package/dist/components/data/table/index.mjs +1 -0
  15. package/dist/components/data/table/table.vue.mjs +5 -0
  16. package/dist/components/data/table/table.vue_vue_type_script_setup_true_lang.mjs +45 -0
  17. package/dist/components/data/tag/index.mjs +1 -0
  18. package/dist/components/data/tag/tag.vue.mjs +5 -0
  19. package/dist/components/data/tag/tag.vue_vue_type_script_setup_true_lang.mjs +21 -0
  20. package/dist/components/data/tree/index.mjs +1 -0
  21. package/dist/components/data/tree/tree-item.vue.mjs +5 -0
  22. package/dist/components/data/tree/tree-item.vue_vue_type_script_setup_true_lang.mjs +77 -0
  23. package/dist/components/data/tree/tree-raw.vue.mjs +5 -0
  24. package/dist/components/data/tree/tree-raw.vue_vue_type_script_setup_true_lang.mjs +104 -0
  25. package/dist/components/data/tree/tree.vue.mjs +4 -0
  26. package/dist/components/data/tree/tree.vue_vue_type_script_setup_true_lang.mjs +60 -0
  27. package/dist/components/data/tree/utils.mjs +66 -0
  28. package/dist/components/form/checkbox/checkbox.vue.mjs +5 -0
  29. package/dist/components/form/checkbox/checkbox.vue_vue_type_script_setup_true_lang.mjs +50 -0
  30. package/dist/components/form/checkbox/index.mjs +1 -0
  31. package/dist/components/form/index.mjs +11 -0
  32. package/dist/components/form/input/index.mjs +1 -0
  33. package/dist/components/form/input/input.vue.mjs +5 -0
  34. package/dist/components/form/input/input.vue_vue_type_script_setup_true_lang.mjs +34 -0
  35. package/dist/components/form/select/index.mjs +1 -0
  36. package/dist/components/form/select/select.vue.mjs +5 -0
  37. package/dist/components/form/select/select.vue_vue_type_script_setup_true_lang.mjs +148 -0
  38. package/dist/components/form/slider/index.mjs +1 -0
  39. package/dist/components/form/slider/slider.vue.mjs +5 -0
  40. package/dist/components/form/slider/slider.vue_vue_type_script_setup_true_lang.mjs +67 -0
  41. package/dist/components/form/switch/index.mjs +1 -0
  42. package/dist/components/form/switch/switch.vue.mjs +5 -0
  43. package/dist/components/form/switch/switch.vue_vue_type_script_setup_true_lang.mjs +38 -0
  44. package/dist/components/index.mjs +21 -0
  45. package/dist/components/layout/index.mjs +4 -0
  46. package/dist/components/layout/layout/index.mjs +9 -0
  47. package/dist/components/layout/layout/layout-dividing.vue.mjs +10 -0
  48. package/dist/components/layout/layout/layout-main.vue.mjs +10 -0
  49. package/dist/components/layout/layout/layout.vue.mjs +5 -0
  50. package/dist/components/layout/layout/layout.vue_vue_type_script_setup_true_lang.mjs +14 -0
  51. package/dist/components/layout/page/Page.vue.mjs +5 -0
  52. package/dist/components/layout/page/Page.vue_vue_type_script_setup_true_lang.mjs +63 -0
  53. package/dist/components/layout/page/index.mjs +1 -0
  54. package/dist/components/other/calendar/calendar.vue.mjs +5 -0
  55. package/dist/components/other/calendar/calendar.vue_vue_type_script_setup_true_lang.mjs +103 -0
  56. package/dist/components/other/calendar/index.mjs +1 -0
  57. package/dist/components/other/index.mjs +5 -0
  58. package/dist/components/other/menu/index.mjs +1 -0
  59. package/dist/components/other/menu/index.vue.mjs +5 -0
  60. package/dist/components/other/menu/index.vue_vue_type_script_setup_true_lang.mjs +22 -0
  61. package/dist/components/other/menu/menu-h/index.vue.mjs +5 -0
  62. package/dist/components/other/menu/menu-h/index.vue_vue_type_script_setup_true_lang.mjs +22 -0
  63. package/dist/components/other/menu/menu-h/menu-h-item.vue.mjs +5 -0
  64. package/dist/components/other/menu/menu-h/menu-h-item.vue_vue_type_script_setup_true_lang.mjs +30 -0
  65. package/dist/components/other/menu/menu-v/index.vue.mjs +4 -0
  66. package/dist/components/other/menu/menu-v/index.vue_vue_type_script_setup_true_lang.mjs +33 -0
  67. package/dist/context/index.mjs +1 -0
  68. package/dist/context/is-mobile.mjs +10 -0
  69. package/dist/icons/arrow-down.svg_component.mjs +12 -0
  70. package/dist/icons/arrow-right.svg_component.mjs +12 -0
  71. package/dist/icons/home.svg_component.mjs +12 -0
  72. package/dist/icons/index.mjs +5 -0
  73. package/dist/icons/menu.svg_component.mjs +12 -0
  74. package/dist/index.mjs +20 -0
  75. package/dist/style.css +2 -0
  76. package/dist/utils/index.mjs +9 -0
  77. package/dist/utils/z-index.mjs +6 -0
  78. package/package.json +33 -81
  79. package/types/src/components/base/button/button.vue.d.ts +21 -0
  80. package/types/src/components/base/button/example/base.vue.d.ts +3 -0
  81. package/types/src/components/base/button/index.d.ts +1 -0
  82. package/types/src/components/base/index.d.ts +1 -0
  83. package/types/src/components/data/card/card.vue.d.ts +32 -0
  84. package/types/src/components/data/card/index.d.ts +1 -0
  85. package/types/src/components/data/index.d.ts +5 -0
  86. package/types/src/components/data/pagination/example/base.vue.d.ts +3 -0
  87. package/types/src/components/data/pagination/index.d.ts +1 -0
  88. package/types/src/components/data/pagination/pagination.vue.d.ts +20 -0
  89. package/types/src/components/data/popover/example/base.vue.d.ts +3 -0
  90. package/types/src/components/data/popover/index.d.ts +1 -0
  91. package/types/src/components/data/popover/popover.vue.d.ts +39 -0
  92. package/types/src/components/data/popover/type.d.ts +1 -0
  93. package/types/src/components/data/popover/utils.d.ts +12 -0
  94. package/types/src/components/data/table/example/base.vue.d.ts +3 -0
  95. package/types/src/components/data/table/example/render.vue.d.ts +3 -0
  96. package/types/src/components/data/table/index.d.ts +2 -0
  97. package/types/src/components/data/table/table.vue.d.ts +36 -0
  98. package/types/src/components/data/table/types.d.ts +12 -0
  99. package/types/src/components/data/tag/example/base.vue.d.ts +3 -0
  100. package/types/src/components/data/tag/index.d.ts +1 -0
  101. package/types/src/components/data/tag/tag.vue.d.ts +20 -0
  102. package/types/src/components/data/tree/example/base.vue.d.ts +3 -0
  103. package/types/src/components/data/tree/index.d.ts +2 -0
  104. package/types/src/components/data/tree/tree-item.vue.d.ts +36 -0
  105. package/types/src/components/data/tree/tree-raw.vue.d.ts +47 -0
  106. package/types/src/components/data/tree/tree.vue.d.ts +34 -0
  107. package/types/src/components/data/tree/type.d.ts +40 -0
  108. package/types/src/components/data/tree/utils.d.ts +10 -0
  109. package/types/src/components/form/checkbox/checkbox.vue.d.ts +32 -0
  110. package/types/src/components/form/checkbox/example/base.vue.d.ts +3 -0
  111. package/types/src/components/form/checkbox/example/group.vue.d.ts +3 -0
  112. package/types/src/components/form/checkbox/index.d.ts +1 -0
  113. package/types/src/components/form/index.d.ts +5 -0
  114. package/types/src/components/form/input/example/base.vue.d.ts +3 -0
  115. package/types/src/components/form/input/index.d.ts +1 -0
  116. package/types/src/components/form/input/input.vue.d.ts +17 -0
  117. package/types/src/components/form/select/example/base.vue.d.ts +3 -0
  118. package/types/src/components/form/select/example/tree-select.vue.d.ts +3 -0
  119. package/types/src/components/form/select/index.d.ts +2 -0
  120. package/types/src/components/form/select/select.vue.d.ts +25 -0
  121. package/types/src/components/form/select/types.d.ts +25 -0
  122. package/types/src/components/form/slider/example/base.vue.d.ts +3 -0
  123. package/types/src/components/form/slider/index.d.ts +1 -0
  124. package/types/src/components/form/slider/slider.vue.d.ts +19 -0
  125. package/types/src/components/form/switch/example/base.vue.d.ts +3 -0
  126. package/types/src/components/form/switch/index.d.ts +1 -0
  127. package/types/src/components/form/switch/switch.vue.d.ts +17 -0
  128. package/types/src/components/index.d.ts +5 -0
  129. package/types/src/components/layout/index.d.ts +2 -0
  130. package/types/src/components/layout/layout/index.d.ts +42 -0
  131. package/types/src/components/layout/layout/layout-dividing.vue.d.ts +3 -0
  132. package/types/src/components/layout/layout/layout-main.vue.d.ts +15 -0
  133. package/types/src/components/layout/layout/layout.vue.d.ts +18 -0
  134. package/types/src/components/layout/page/Page.vue.d.ts +39 -0
  135. package/types/src/components/layout/page/index.d.ts +1 -0
  136. package/types/src/components/other/calendar/calendar.vue.d.ts +41 -0
  137. package/types/src/components/other/calendar/index.d.ts +1 -0
  138. package/types/src/components/other/index.d.ts +2 -0
  139. package/types/src/components/other/menu/index.d.ts +2 -0
  140. package/types/src/components/other/menu/index.vue.d.ts +46 -0
  141. package/types/src/components/other/menu/menu-h/index.vue.d.ts +19 -0
  142. package/types/src/components/other/menu/menu-h/menu-h-item.vue.d.ts +27 -0
  143. package/types/src/components/other/menu/menu-v/index.vue.d.ts +24 -0
  144. package/types/src/components/other/menu/types.d.ts +6 -0
  145. package/types/src/components/other/view-control/index.d.ts +1 -0
  146. package/types/src/components/other/view-control/view-control.vue.d.ts +20 -0
  147. package/types/src/context/index.d.ts +1 -0
  148. package/types/src/context/is-mobile.d.ts +4 -0
  149. package/types/src/icons/index.d.ts +4 -0
  150. package/types/src/index.d.ts +3 -0
  151. package/types/src/types.d.ts +2 -0
  152. package/types/src/utils/index.d.ts +6 -0
  153. package/types/src/utils/z-index.d.ts +1 -0
  154. package/types/vite.config.d.ts +2 -0
  155. package/build-ts/main.js +0 -63
  156. package/dist/demo.html +0 -8
  157. package/dist/star-ui.common.js +0 -33764
  158. package/dist/star-ui.common.js.map +0 -1
  159. package/dist/star-ui.umd.js +0 -33774
  160. package/dist/star-ui.umd.js.map +0 -1
  161. package/dist/star-ui.umd.min.js +0 -299
  162. package/dist/star-ui.umd.min.js.map +0 -1
  163. package/readme.md +0 -16
  164. package/src/components/button.vue +0 -34
  165. package/src/components/calendar.vue +0 -244
  166. package/src/components/call-render.tsx +0 -22
  167. package/src/components/card.vue +0 -126
  168. package/src/components/common/base-popper.vue +0 -132
  169. package/src/components/content/context-menu-box/index.vue +0 -117
  170. package/src/components/content/index.ts +0 -5
  171. package/src/components/content/menu/index.vue +0 -86
  172. package/src/components/content/menu/menu-h/index.vue +0 -68
  173. package/src/components/content/menu/menu-h/menu-h-child.vue +0 -74
  174. package/src/components/content/menu/menu-h/menu-h-item.vue +0 -66
  175. package/src/components/content/menu/menu-v/index.vue +0 -56
  176. package/src/components/content/modals/confirm.vue +0 -45
  177. package/src/components/content/modals/modal.vue +0 -110
  178. package/src/components/content/page.vue +0 -134
  179. package/src/components/form/form/form-item.vue +0 -116
  180. package/src/components/form/form/form.vue +0 -109
  181. package/src/components/form/form/index.ts +0 -2
  182. package/src/components/form/index.ts +0 -1
  183. package/src/components/input.vue +0 -81
  184. package/src/components/layout/auto-direction/index.vue +0 -28
  185. package/src/components/layout/index.ts +0 -1
  186. package/src/components/layout-h.vue +0 -34
  187. package/src/components/layout-main.vue +0 -25
  188. package/src/components/layout-v.vue +0 -36
  189. package/src/components/line-h.vue +0 -29
  190. package/src/components/line-v.vue +0 -29
  191. package/src/components/select.vue +0 -265
  192. package/src/components/slider.vue +0 -171
  193. package/src/components/switch.vue +0 -95
  194. package/src/components/table.vue +0 -59
  195. package/src/components/tree/index.vue +0 -116
  196. package/src/components/tree/tree-item.vue +0 -157
  197. package/src/components/view-control.vue +0 -83
  198. package/src/directives/is-focus.ts +0 -10
  199. package/src/func/download.ts +0 -15
  200. package/src/func/index.ts +0 -2
  201. package/src/func/modal/index.ts +0 -72
  202. package/src/global-style.css +0 -127
  203. package/src/icon-font/iconfont.css +0 -75
  204. package/src/icon-font/iconfont.eot +0 -0
  205. package/src/icon-font/iconfont.json +0 -114
  206. package/src/icon-font/iconfont.svg +0 -62
  207. package/src/icon-font/iconfont.ttf +0 -0
  208. package/src/icon-font/iconfont.woff +0 -0
  209. package/src/icon-font/iconfont.woff2 +0 -0
  210. package/src/main.ts +0 -57
  211. package/src/outher/index.ts +0 -8
  212. package/src/reg.ts +0 -129
  213. package/src/shims-vue.d.ts +0 -8
  214. package/src/types.d.ts +0 -15
  215. package/src/utils.ts +0 -24
  216. package/types/components/button.vue.d.ts +0 -5
  217. package/types/components/calendar.vue.d.ts +0 -26
  218. package/types/components/call-render.d.ts +0 -6
  219. package/types/components/card.vue.d.ts +0 -13
  220. package/types/components/common/base-popper.vue.d.ts +0 -21
  221. package/types/components/content/context-menu-box/index.vue.d.ts +0 -20
  222. package/types/components/content/index.d.ts +0 -5
  223. package/types/components/content/menu/index.vue.d.ts +0 -12
  224. package/types/components/content/menu/menu-h/index.vue.d.ts +0 -8
  225. package/types/components/content/menu/menu-h/menu-h-child.vue.d.ts +0 -7
  226. package/types/components/content/menu/menu-h/menu-h-item.vue.d.ts +0 -8
  227. package/types/components/content/menu/menu-v/index.vue.d.ts +0 -9
  228. package/types/components/content/modals/confirm.vue.d.ts +0 -7
  229. package/types/components/content/modals/modal.vue.d.ts +0 -12
  230. package/types/components/content/page.vue.d.ts +0 -9
  231. package/types/components/form/form/form-item.vue.d.ts +0 -22
  232. package/types/components/form/form/form.vue.d.ts +0 -24
  233. package/types/components/form/form/index.d.ts +0 -2
  234. package/types/components/form/index.d.ts +0 -1
  235. package/types/components/input.vue.d.ts +0 -15
  236. package/types/components/layout/auto-direction/index.vue.d.ts +0 -4
  237. package/types/components/layout/index.d.ts +0 -1
  238. package/types/components/layout-h.vue.d.ts +0 -4
  239. package/types/components/layout-main.vue.d.ts +0 -4
  240. package/types/components/layout-v.vue.d.ts +0 -4
  241. package/types/components/line-h.vue.d.ts +0 -4
  242. package/types/components/line-v.vue.d.ts +0 -4
  243. package/types/components/select.vue.d.ts +0 -26
  244. package/types/components/slider.vue.d.ts +0 -29
  245. package/types/components/switch.vue.d.ts +0 -12
  246. package/types/components/table.vue.d.ts +0 -5
  247. package/types/components/tree/index.vue.d.ts +0 -15
  248. package/types/components/tree/tree-item.vue.d.ts +0 -18
  249. package/types/components/view-control.vue.d.ts +0 -16
  250. package/types/directives/is-focus.d.ts +0 -4
  251. package/types/func/download.d.ts +0 -1
  252. package/types/func/index.d.ts +0 -2
  253. package/types/func/modal/index.d.ts +0 -13
  254. package/types/main.d.ts +0 -75
  255. package/types/outher/index.d.ts +0 -5
  256. package/types/reg.d.ts +0 -45
@@ -1,62 +0,0 @@
1
- <?xml version="1.0" standalone="no"?>
2
- <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
- <!--
4
- 2013-9-30: Created.
5
- -->
6
- <svg>
7
- <metadata>
8
- Created by iconfont
9
- </metadata>
10
- <defs>
11
-
12
- <font id="star-ui-iconfont" horiz-adv-x="1024" >
13
- <font-face
14
- font-family="star-ui-iconfont"
15
- font-weight="500"
16
- font-stretch="normal"
17
- units-per-em="1024"
18
- ascent="896"
19
- descent="-128"
20
- />
21
- <missing-glyph />
22
-
23
- <glyph glyph-name="code" unicode="&#58983;" d="M322.133333 599.466667c-12.8 12.8-32 12.8-44.8 0l-192-192c-12.8-12.8-12.8-32 0-44.8l192-192c6.4-6.4 14.933333-8.533333 23.466667-8.533334s17.066667 2.133333 23.466667 8.533334c12.8 12.8 12.8 32 0 44.8L151.466667 384l168.533333 168.533333c12.8 12.8 12.8 34.133333 2.133333 46.933334zM940.8 407.466667l-192 192c-12.8 12.8-32 12.8-44.8 0-12.8-12.8-12.8-32 0-44.8l168.533333-168.533334-168.533333-168.533333c-12.8-12.8-12.8-32 0-44.8 6.4-6.4 14.933333-8.533333 23.466667-8.533333s17.066667 2.133333 23.466666 8.533333l192 192c8.533333 8.533333 8.533333 29.866667-2.133333 42.666667zM622.933333 819.2c-17.066667 4.266667-34.133333-6.4-38.4-23.466667L366.933333-6.4c-4.266667-17.066667 6.4-34.133333 23.466667-38.4 2.133333 0 6.4-2.133333 8.533333-2.133333 14.933333 0 27.733333 8.533333 29.866667 23.466666L644.266667 780.8c4.266667 17.066667-4.266667 34.133333-21.333334 38.4z" horiz-adv-x="1024" />
24
-
25
-
26
- <glyph glyph-name="close" unicode="&#58984;" d="M556.8 384L832 659.2c12.8 12.8 12.8 32 0 44.8-12.8 12.8-32 12.8-44.8 0L512 428.8l-275.2 277.333333c-12.8 12.8-32 12.8-44.8 0-12.8-12.8-12.8-32 0-44.8l275.2-277.333333-277.333333-275.2c-12.8-12.8-12.8-32 0-44.8 6.4-6.4 14.933333-8.533333 23.466666-8.533333s17.066667 2.133333 23.466667 8.533333L512 339.2 787.2 64c6.4-6.4 14.933333-8.533333 23.466667-8.533333s17.066667 2.133333 23.466666 8.533333c12.8 12.8 12.8 32 0 44.8L556.8 384z" horiz-adv-x="1024" />
27
-
28
-
29
- <glyph glyph-name="clean" unicode="&#58880;" d="M512 821.333333C270.933333 821.333333 74.666667 625.066667 74.666667 384S270.933333-53.33333300000004 512-53.33333300000004 949.333333 142.93333299999995 949.333333 384 753.066667 821.333333 512 821.333333z m0-810.666666c-204.8 0-373.333333 168.533333-373.333333 373.333333S307.2 757.333333 512 757.333333 885.333333 588.8 885.333333 384 716.8 10.666666999999961 512 10.666666999999961zM657.066667 535.4666669999999c-12.8 12.8-32 12.8-44.8 0l-102.4-102.4-102.4 102.4c-12.8 12.8-32 12.8-44.8 0-12.8-12.8-12.8-32 0-44.8l102.4-102.4-102.4-102.4c-12.8-12.8-12.8-32 0-44.8 6.4-6.4 14.933333-8.533333 23.466666-8.533334s17.066667 2.133333 23.466667 8.533334l102.4 102.4 102.4-102.4c6.4-6.4 14.933333-8.533333 23.466667-8.533334s17.066667 2.133333 23.466666 8.533334c12.8 12.8 12.8 32 0 44.8l-106.666666 100.266666 102.4 102.4c12.8 12.8 12.8 34.133333 0 46.933334z" horiz-adv-x="1024" />
30
-
31
-
32
- <glyph glyph-name="select" unicode="&#59006;" d="M409.6 138.666667c-8.533333 0-17.066667 2.133333-23.466667 8.533333l-238.933333 234.666667c-12.8 12.8-12.8 32 0 44.8 12.8 12.8 32 12.8 44.8 0l215.466667-213.333334 422.4 428.8c12.8 12.8 32 12.8 44.8 0 12.8-12.8 12.8-32 0-44.8L430.933333 149.333333c-4.266667-8.533333-12.8-10.666667-21.333333-10.666666z" horiz-adv-x="1024" />
33
-
34
-
35
- <glyph glyph-name="arrow-left" unicode="&#58884;" d="M384 384L731.733333 693.333333c17.066667 14.933333 19.2 42.666667 4.266667 59.733334-14.933333 17.066667-42.666667 19.2-59.733333 4.266666l-384-341.333333c-10.666667-8.533333-14.933333-19.2-14.933334-32s4.266667-23.466667 14.933334-32l384-341.333333c8.533333-6.4 19.2-10.666667 27.733333-10.666667 12.8 0 23.466667 4.266667 32 14.933333 14.933333 17.066667 14.933333 44.8-4.266667 59.733334L384 384z" horiz-adv-x="1024" />
36
-
37
-
38
- <glyph glyph-name="arrow-up" unicode="&#58881;" d="M904.533333 221.866667l-362.666666 362.666666c-17.066667 17.066667-42.666667 17.066667-59.733334 0l-362.666666-362.666666c-17.066667-17.066667-17.066667-42.666667 0-59.733334 17.066667-17.066667 42.666667-17.066667 59.733333 0L512 494.933333l332.8-332.8c8.533333-8.533333 19.2-12.8 29.866667-12.8s21.333333 4.266667 29.866666 12.8c17.066667 17.066667 17.066667 42.666667 0 59.733334z" horiz-adv-x="1024" />
39
-
40
-
41
- <glyph glyph-name="arrow-down" unicode="&#58883;" d="M904.533333 584.5333330000001c-17.066667 17.066667-42.666667 17.066667-59.733333 0L512 251.73333300000002 179.2 584.5333330000001c-17.066667 17.066667-42.666667 17.066667-59.733333 0-17.066667-17.066667-17.066667-42.666667 0-59.733333l362.666666-362.666667c8.533333-8.533333 19.2-12.8 29.866667-12.8s21.333333 4.266667 29.866667 12.8l362.666666 362.666667c17.066667 17.066667 17.066667 42.666667 0 59.733333z" horiz-adv-x="1024" />
42
-
43
-
44
- <glyph glyph-name="arrow-right" unicode="&#58882;" d="M731.733333 416l-384 341.333333c-17.066667 14.933333-44.8 14.933333-59.733333-4.266666-14.933333-17.066667-14.933333-44.8 4.266667-59.733334L640 384 292.266667 74.66666699999996c-17.066667-14.933333-19.2-42.666667-4.266667-59.733334 8.533333-8.533333 19.2-14.933333 32-14.933333 10.666667 0 19.2 4.266667 27.733333 10.666667l384 341.333333c8.533333 8.533333 14.933333 19.2 14.933334 32s-4.266667 23.466667-14.933334 32z" horiz-adv-x="1024" />
45
-
46
-
47
- <glyph glyph-name="arrow-up-filling" unicode="&#59017;" d="M541.866667 610.133333l345.6-345.6c17.066667-17.066667 17.066667-42.666667 0-59.733333-8.533333-8.533333-19.2-12.8-29.866667-12.8H168.533333c-23.466667 0-42.666667 19.2-42.666666 42.666667 0 10.666667 4.266667 21.333333 12.8 29.866666l343.466666 345.6c17.066667 17.066667 42.666667 17.066667 59.733334 0z" horiz-adv-x="1024" />
48
-
49
-
50
- <glyph glyph-name="arrow-down-filling" unicode="&#59018;" d="M482.133333 157.866667L136.533333 503.466667c-17.066667 17.066667-17.066667 42.666667 0 59.733333 8.533333 8.533333 19.2 12.8 29.866667 12.8h689.066667c23.466667 0 42.666667-19.2 42.666666-42.666667 0-10.666667-4.266667-21.333333-12.8-29.866666L541.866667 157.866667c-17.066667-17.066667-42.666667-17.066667-59.733334 0z" horiz-adv-x="1024" />
51
-
52
-
53
- <glyph glyph-name="arrow-left-filling" unicode="&#59019;" d="M268.8 416L633.6 746.666667c17.066667 14.933333 44.8 14.933333 59.733333-2.133334 6.4-8.533333 10.666667-19.2 10.666667-29.866666v-661.333334c0-23.466667-19.2-42.666667-42.666667-42.666666-10.666667 0-21.333333 4.266667-27.733333 10.666666l-362.666667 330.666667c-17.066667 14.933333-19.2 42.666667-2.133333 59.733333-2.133333 2.133333 0 2.133333 0 4.266667z" horiz-adv-x="1024" />
54
-
55
-
56
- <glyph glyph-name="arrow-right-filling" unicode="&#59020;" d="M755.2 352L390.4 21.333333c-17.066667-14.933333-44.8-14.933333-59.733333 2.133334-6.4 8.533333-10.666667 19.2-10.666667 29.866666v661.333334c0 23.466667 19.2 42.666667 42.666667 42.666666 10.666667 0 21.333333-4.266667 27.733333-10.666666l362.666667-330.666667c17.066667-14.933333 19.2-42.666667 2.133333-59.733333 2.133333-2.133333 0-2.133333 0-4.266667z" horiz-adv-x="1024" />
57
-
58
-
59
-
60
-
61
- </font>
62
- </defs></svg>
Binary file
Binary file
Binary file
package/src/main.ts DELETED
@@ -1,57 +0,0 @@
1
- //布局
2
- export { default as SuHLayout } from "./components/layout-h.vue";
3
- export { default as SuVLayout } from "./components/layout-v.vue";
4
- export { default as SuMain } from "./components/layout-main.vue";
5
- export { default as SuTable } from "./components/table.vue";
6
- export { default as SuHLine } from "./components/line-h.vue";
7
- export { default as SuVLine } from "./components/line-v.vue";
8
- export { default as SuCard } from "./components/card.vue";
9
- export { default as SuTree } from "./components/tree/index.vue";
10
- //表单
11
- export * from "./components/form";
12
- export { default as SuInput } from "./components/input.vue";
13
- export { default as SuSelect } from "./components/select.vue";
14
- export { default as SuButton } from "./components/button.vue";
15
- export { default as SuSwitch } from "./components/switch.vue";
16
- export { default as SuSlider } from "./components/slider.vue";
17
-
18
-
19
- export { default as SuCalendar } from "./components/calendar.vue";
20
-
21
- export { default as SuViewControl } from "./components/view-control.vue";
22
-
23
- export * from "./components/layout"
24
- export * from "./components/content";
25
-
26
- export * as func from "./func/index";
27
-
28
- import { data } from "./reg";
29
- export * from "./outher";
30
-
31
- import { App, readonly } from "vue";
32
-
33
- // eslint-disable-next-line
34
- export const components:Record<string,any>={};
35
- Object.keys(data).map((key) => {
36
- if(data[key].component&&!data[key].internalOnly){
37
- components[key]=data[key].component;
38
- }
39
- });
40
- export const allData = readonly(data);
41
-
42
- const registComponents=function(app:App):void{
43
- Object.keys(data).map((key) => {
44
- if(data[key].component&&!data[key].internalOnly){
45
- app.component(components[key].__o.name,components[key]);
46
- }
47
- });
48
- }
49
- export const infos = readonly(data);
50
- export default {
51
- ...components,
52
- components,
53
- install(app:App):void{
54
- registComponents(app)
55
- app.config.globalProperties
56
- }
57
- }
@@ -1,8 +0,0 @@
1
- import { Inject } from "vue-property-decorator";
2
-
3
- export const SuViewCtrlInjectKeyIsMobile=Symbol('SuViewCtrlInjectKeyIsMobile');
4
- export const SuViewCtrlInjectIsMobile = Inject({from:SuViewCtrlInjectKeyIsMobile,default:false});
5
- export const SuViewCtrlInjectKeyClassName=Symbol('SuViewCtrlInjectKeyClassName');
6
- export const SuViewCtrlInjectClassName = Inject({from:SuViewCtrlInjectKeyClassName,default:[]});
7
-
8
- export type TypeFormLabelAlign = 'left'|'right'|'top'|undefined;
package/src/reg.ts DELETED
@@ -1,129 +0,0 @@
1
- import { VueDecorator, PropOptions, createDecorator, Vue, VueConstructor, VueBase } from "vue-class-component";
2
- import { ComponentOptions, PropType, reactive } from "vue";
3
- interface ComponentInfo{
4
- hideInDoc?:boolean;
5
- internalOnly?:boolean;
6
- type?:'from'|'layout';
7
- }
8
-
9
- const AutoTypes = {
10
- FormLabelAlign: {
11
- allow: ['left','right','top'],
12
- type: String,
13
- }
14
- }
15
-
16
- export const data = reactive({
17
- //
18
- } as {[key:string]: {
19
- props?:{
20
- [key:string]: PropOptions
21
- };
22
- component?:VueConstructor<VueBase>;
23
- }&ComponentInfo});
24
-
25
- export type RegisterOptions<V> = ComponentOptions & ThisType<V> & ComponentInfo;
26
- export function Register<V extends Vue>({ hideInDoc, internalOnly, ...options }:RegisterOptions<V>):<VC extends VueConstructor<VueBase>>(target: VC) => VC{
27
- return (Component) => {
28
- if(options.name){
29
- if(!data[options.name]) data[options.name] = {};
30
- // eslint-disable-next-line
31
- data[options.name].component = Component;
32
- data[options.name].hideInDoc = hideInDoc;
33
- data[options.name].internalOnly = internalOnly;
34
- }
35
- // eslint-disable-next-line
36
- (Component as any).__o = options
37
- return Component
38
- }
39
- }
40
-
41
- const hyphenate = (str:string) => str.replace(/\B([A-Z])/g, '-$1').toLowerCase();
42
- // eslint-disable-next-line
43
- function isPromise(obj:any) {
44
- return obj instanceof Promise || (obj && typeof obj.then === 'function');
45
- }
46
- // eslint-disable-next-line
47
- export function Emit(event?:string, shouldEmit?:(res:any)=>boolean):VueDecorator{
48
- return createDecorator((componentOptions, propertyKey) => {
49
- //获取事件名称
50
- const emitName = event || hyphenate(propertyKey);
51
- //告知vue有这个事件
52
- componentOptions.emits || (componentOptions.emits = []);
53
- componentOptions.emits.push(emitName);
54
- const original = componentOptions.methods[propertyKey];
55
- // eslint-disable-next-line
56
- componentOptions.methods[propertyKey] = function emitter(...args:any[]) {
57
- // eslint-disable-next-line
58
- const emit = (returnValue:any) => {
59
- if (returnValue === undefined) {
60
- if (args.length === 0) {
61
- this.$emit(emitName);
62
- }
63
- else if (args.length === 1) {
64
- this.$emit(emitName, args[0]);
65
- }
66
- else {
67
- this.$emit(emitName, ...args);
68
- }
69
- }
70
- else {
71
- args.unshift(returnValue);
72
- this.$emit(emitName, ...args);
73
- }
74
- };
75
- const returnValue = original.apply(this, args);
76
- if(shouldEmit && ! shouldEmit(returnValue)){
77
- return;
78
- }
79
- if (isPromise(returnValue)) {
80
- returnValue.then(emit);
81
- }
82
- else {
83
- emit(returnValue);
84
- }
85
- return returnValue;
86
- };
87
- });
88
- }
89
-
90
- interface RegPropOptions<T = any, D = T> extends PropOptions<T>{
91
- autoType?: keyof typeof AutoTypes;
92
- }
93
-
94
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
95
- function checkPropInAllow(list:any[]){
96
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
97
- return function(value:any){
98
- return list.includes(value);
99
- }
100
- }
101
- export function Prop({ autoType , ...propOptions}:RegPropOptions):VueDecorator{
102
- return createDecorator((componentOptions, key) => {
103
- if(componentOptions.name){
104
- if(!data[componentOptions.name]) data[componentOptions.name] = {};
105
- if(!data[componentOptions.name].props) data[componentOptions.name].props={};
106
- // eslint-disable-next-line
107
- (data[componentOptions.name].props!)[key] = propOptions;
108
- }
109
- const eData:PropOptions = {};
110
- if(autoType){
111
- const autoTypeData = AutoTypes[autoType];
112
- if(autoTypeData.type){
113
- eData.type = autoTypeData.type;
114
- }
115
- const validator = [];
116
- if(autoTypeData.allow){
117
- validator.push(checkPropInAllow(autoTypeData.allow))
118
- }
119
- if(validator.length === 1){
120
- eData.validator = validator[0];
121
- }
122
- }
123
- if(!componentOptions.props) componentOptions.props={};
124
- componentOptions.props[key] = {
125
- ...eData,
126
- ...propOptions
127
- };
128
- });
129
- }
@@ -1,8 +0,0 @@
1
- /* eslint-disable */
2
- declare module '*.vue' {
3
- import type { DefineComponent } from 'vue'
4
- const component: DefineComponent<{}, {}, any>
5
- export default component
6
- }
7
-
8
-
package/src/types.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export interface ViewCtrlInfo{
2
- isMobile?:boolean;
3
- }
4
- export interface MenuItem{
5
- name?:string;
6
- path?:string;
7
- title:string;
8
- children?:MenuItem[];
9
- }
10
- export interface ContextMenuItem{
11
- name?:string;
12
- click?:() => unknown;
13
- title:string;
14
- children?:ContextMenuItem[];
15
- }
package/src/utils.ts DELETED
@@ -1,24 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
-
3
- export function getParentNodeByClass(node:HTMLElement,className:string):HTMLElement|null{
4
- let p:HTMLElement|null = node;
5
- while(p){
6
- if(p.className&&p.className.split(" ").indexOf(className)!=-1){
7
- return p;
8
- }
9
- p=p.parentElement;
10
- }
11
- return null;
12
- }
13
-
14
- export function isMobile(vue:Vue):boolean{
15
- const node = getParentNodeByClass(vue.$el,"su-view-control");
16
- if(node){
17
- // eslint-disable-next-line
18
- const ctrl = (node as any)._vue;
19
- if(ctrl){
20
- return ctrl.$isMobile;
21
- }
22
- }
23
- return false;
24
- }
@@ -1,5 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import "../global-style.css";
3
- export default class SuButton extends Vue {
4
- size: string;
5
- }
@@ -1,26 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import moment from "moment";
3
- import "../global-style.css";
4
- interface DateBaseInfo {
5
- display: number;
6
- isPrevious: boolean;
7
- isNext: boolean;
8
- week: string;
9
- date: moment.Moment;
10
- }
11
- export default class SuCalendar extends Vue {
12
- readonly displayMonth: Date | string;
13
- private dYear;
14
- private dMonth;
15
- private get displayMonthDate();
16
- readonly weekName: string[];
17
- weekOffect: number;
18
- private get displayHead();
19
- private get displayData();
20
- readonly renderCell: (arg: DateBaseInfo) => unknown;
21
- private showSelYear;
22
- private dShowSelYear;
23
- private showSelMonth;
24
- private dateClick;
25
- }
26
- export {};
@@ -1,6 +0,0 @@
1
- import { Vue } from 'vue-class-component';
2
- export default class CallRender extends Vue {
3
- func: (...arg: any[]) => any;
4
- args: any[];
5
- render(): any;
6
- }
@@ -1,13 +0,0 @@
1
- import { Vue } from 'vue-class-component';
2
- import "../global-style.css";
3
- export default class SuCard extends Vue {
4
- $refs: {
5
- body: HTMLDivElement;
6
- bodyInner: HTMLDivElement;
7
- };
8
- readonly title: string;
9
- readonly collapsible: boolean;
10
- isCollaps: boolean;
11
- collapsChange(): void;
12
- handleTransitionEnd(): void;
13
- }
@@ -1,21 +0,0 @@
1
- import { Vue } from 'vue-class-component';
2
- import "../../global-style.css";
3
- export default class SuButton extends Vue {
4
- $refs: {
5
- root: HTMLDivElement;
6
- };
7
- fromItem: Vue | HTMLElement;
8
- private div;
9
- private id;
10
- private updateType;
11
- private visible;
12
- readonly isMobile: false;
13
- mounted(): void;
14
- beforeUnmount(): void;
15
- _clickCheck(ev: MouseEvent): boolean;
16
- private syncRequestId;
17
- _updateVisible(): void;
18
- readonly ctrlClass: string[];
19
- private baseStyle;
20
- updatePos(): void;
21
- }
@@ -1,20 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import "@ui-root/global-style.css";
3
- import { ContextMenuItem } from "../../../types";
4
- export default class SuMain extends Vue {
5
- private itemComponent;
6
- $refs: {
7
- mask: HTMLDivElement;
8
- };
9
- readonly isMobile: boolean;
10
- readonly ctrlClass: string[];
11
- private get component();
12
- private menu;
13
- private isOpenMenu;
14
- private currentMenu;
15
- private currentX;
16
- private currentY;
17
- private handleContextMenu;
18
- handleMaskClick(ev: MouseEvent): void;
19
- handleItemClick(item: ContextMenuItem): void;
20
- }
@@ -1,5 +0,0 @@
1
- export { default as SuPage } from "./page.vue";
2
- export { default as SuMenu } from "./menu/index.vue";
3
- export { default as SuContextMenuBox } from "./context-menu-box/index.vue";
4
- export { default as SuModal } from "./modals/modal.vue";
5
- export { default as SuModalConfirm } from "./modals/confirm.vue";
@@ -1,12 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import '@ui-root/global-style.css';
3
- export default class SuHMenu extends Vue {
4
- private menu;
5
- private direction;
6
- private get menuComponent();
7
- private component;
8
- private get displayComponent();
9
- private key;
10
- private get useedKey();
11
- private handleItemClick;
12
- }
@@ -1,8 +0,0 @@
1
- import { Vue } from 'vue-class-component';
2
- import '@ui-root/global-style.css';
3
- export default class SuHMenu extends Vue {
4
- private menu;
5
- private splitMenu;
6
- private displayItem;
7
- created(): void;
8
- }
@@ -1,7 +0,0 @@
1
- import { Vue } from 'vue-class-component';
2
- import '@ui-root/global-style.css';
3
- export default class SuHMenuChild extends Vue {
4
- private menu;
5
- private itemComponent;
6
- private direction;
7
- }
@@ -1,8 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import '@ui-root/global-style.css';
3
- export default class SuHMenuItem extends Vue {
4
- isFocus: boolean;
5
- private item;
6
- private selfClass;
7
- private childDirection;
8
- }
@@ -1,9 +0,0 @@
1
- import { Vue } from 'vue-class-component';
2
- import '@ui-root/global-style.css';
3
- export default class SuHMenu extends Vue {
4
- private menu;
5
- private path;
6
- private get current();
7
- private handlePathClick;
8
- private handleItemClick;
9
- }
@@ -1,7 +0,0 @@
1
- import { Vue } from 'vue-class-component';
2
- export default class SuModalConfirm extends Vue {
3
- private readonly title;
4
- private readonly visible;
5
- private close;
6
- private confirm;
7
- }
@@ -1,12 +0,0 @@
1
- import { Vue } from 'vue-class-component';
2
- import "@ui-root/global-style.css";
3
- export default class SuModalConfirm extends Vue {
4
- private readonly visible;
5
- private locVisable;
6
- private updateVisable;
7
- close(): void;
8
- show(): void;
9
- private readonly title;
10
- created(): void;
11
- readonly isMobile: boolean;
12
- }
@@ -1,9 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import "@ui-root/global-style.css";
3
- export default class SuMain extends Vue {
4
- readonly isMobile: boolean;
5
- private title;
6
- private logo;
7
- private menu;
8
- private isOpenMenu;
9
- }
@@ -1,22 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import { TypeFormLabelAlign } from "../../../outher";
3
- import { Bus } from "./form.vue";
4
- import "@ui-root/global-style.css";
5
- export declare const InjectLabelWidth: unique symbol;
6
- export declare const InjectLabelAlign: unique symbol;
7
- export declare const InjectEventBus: unique symbol;
8
- export default class SuButton extends Vue {
9
- $refs: {
10
- labelDiv: HTMLDivElement;
11
- };
12
- readonly label: string;
13
- readonly labelWidth: string | number | undefined;
14
- readonly pLabelWidth: string | number | undefined;
15
- readonly labelAlign: TypeFormLabelAlign;
16
- readonly pLabelAlign: TypeFormLabelAlign;
17
- readonly col: number;
18
- private get labelStyle();
19
- readonly bus: Bus | undefined;
20
- created(): void;
21
- beforeUnmount(): void;
22
- }
@@ -1,24 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import type { TypeFormLabelAlign } from "../../../outher";
3
- import Item from "./form-item.vue";
4
- import "@ui-root/global-style.css";
5
- export interface Bus {
6
- addItem: (item: Item) => void;
7
- removeItem: (item: Item) => void;
8
- labelUpdate: (item: Item) => void;
9
- }
10
- export default class SuButton extends Vue {
11
- readonly labelAlign: TypeFormLabelAlign;
12
- readonly labelWidth: number | undefined;
13
- readonly allowAotoMobile: boolean;
14
- private bus;
15
- private items;
16
- private addItem;
17
- private removeItem;
18
- private updateLabelWidth;
19
- private isLoaded;
20
- private sendLabelWidth;
21
- created(): void;
22
- mounted(): void;
23
- beforeUnmount(): void;
24
- }
@@ -1,2 +0,0 @@
1
- export { default as SuForm } from "./form.vue";
2
- export { default as SuFormItem } from "./form-item.vue";
@@ -1 +0,0 @@
1
- export * from "./form/index";
@@ -1,15 +0,0 @@
1
- import { Vue } from 'vue-class-component';
2
- import "../global-style.css";
3
- export default class SuInput extends Vue {
4
- modelValue: string | number;
5
- $refs: {
6
- input: HTMLInputElement;
7
- };
8
- name: string;
9
- size: string;
10
- isFocused: boolean;
11
- emitInput(data: string): string;
12
- handleInput(event: InputEvent): void;
13
- handleFocus(): void;
14
- handleBlur(): void;
15
- }
@@ -1,4 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import "@ui-root/global-style.css";
3
- export default class SuAutoDirection extends Vue {
4
- }
@@ -1 +0,0 @@
1
- export { default as SuAutoDirection } from "./auto-direction/index.vue";
@@ -1,4 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import "../global-style.css";
3
- export default class SuHLayout extends Vue {
4
- }
@@ -1,4 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import "../global-style.css";
3
- export default class SuMain extends Vue {
4
- }
@@ -1,4 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import "../global-style.css";
3
- export default class SuVLayout extends Vue {
4
- }
@@ -1,4 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import "../global-style.css";
3
- export default class SuHLine extends Vue {
4
- }
@@ -1,4 +0,0 @@
1
- import { Vue } from "vue-class-component";
2
- import "../global-style.css";
3
- export default class SuVLine extends Vue {
4
- }
@@ -1,26 +0,0 @@
1
- import { Vue } from 'vue-class-component';
2
- import SuTree from "./tree/index.vue";
3
- import "../global-style.css";
4
- export default class SuSelect extends Vue {
5
- mounted(): void;
6
- $refs: {
7
- tree: SuTree;
8
- };
9
- readonly modelValue: string;
10
- readonly name: string;
11
- private size;
12
- readonly options: Record<string, unknown>[];
13
- readonly valueName: string;
14
- readonly labelName: string;
15
- children: string | ((item: Record<string, unknown>) => Record<string, unknown>[]);
16
- readonly showAsTree: boolean;
17
- readonly pooperClass: string;
18
- isFocused: boolean;
19
- readonly isMobile: boolean;
20
- get valueMap(): Map<string | number, string>;
21
- get showValue(): string;
22
- private width;
23
- private updateTree;
24
- handleSelect(value: string): string;
25
- haandleNodeClick(item: Record<string, unknown>, value: string | number | undefined): string | number | undefined;
26
- }